:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --surface-2: #f4ecdc;
  --text: #1f1a14;
  --muted: #6b6153;
  --line: #e6dccb;
  --accent: #c8780a;
  --accent-strong: #9c5a00;
  --accent-soft: #fdecc8;
  --good: #2f7d4f;
  --good-soft: #dff1e5;
  --bad: #b3261e;
  --bad-soft: #fbe4e1;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 20px rgba(60, 40, 10, .06);
  --radius: 14px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15120e;
    --surface: #1e1a15;
    --surface-2: #29231b;
    --text: #f3ece0;
    --muted: #a99d8b;
    --line: #362e24;
    --accent: #f0a53a;
    --accent-strong: #ffc46b;
    --accent-soft: #3a2a12;
    --good: #6fcf97;
    --good-soft: #193323;
    --bad: #f28b82;
    --bad-soft: #3a1a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 60px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font: 800 1.25rem var(--display); color: var(--text); text-decoration: none; }
.top-nav { display: flex; gap: 20px; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top-nav a:hover { color: var(--text); }
.top-nav { align-items: center; }
.top-nav .nav-money {
  color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.top-nav .nav-money:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
/* on phones keep just the transparency link next to the logo */
@media (max-width: 720px) { .top-nav a:not(.nav-money) { display: none; } }

/* hero */
.hero { padding: 64px 0 40px; }
.eyebrow { color: var(--accent-strong); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); font-weight: 800; max-width: 15ch; letter-spacing: -.02em; text-wrap: balance; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-art { width: 100%; max-width: 460px; height: auto; justify-self: center; }
@media (max-width: 899px) { .hero-art { max-width: 320px; } }

.hero-art .coin > *, .hero-art .coin-drop { fill: #ffd54a; stroke: #b8860b; stroke-width: 1.5; }
.hero-art .coin-mark { fill: #7a5200; font: 600 11px var(--body); text-anchor: middle; }

/* every few seconds one coin falls out of the foam and lands on the tall stack */
.hero-art .coin-drop { animation: coin-drop 6s ease-in 1s infinite both; }
@keyframes coin-drop {
  0%   { transform: translateY(-120px); opacity: 0; }
  5%   { opacity: 1; }
  14%  { transform: translateY(0); }
  17%  { transform: translateY(-5px); }
  20%  { transform: translateY(0); }
  85%  { opacity: 1; }
  95%, 100% { transform: translateY(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .coin-drop { animation: none; }
}
.hero-stats div {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; display: flex; flex-direction: column; min-width: 140px;
}
.hero-stats strong { font: 800 1.6rem var(--display); color: var(--accent-strong); }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* start */
.start { padding: 24px 0 40px; }
.start-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: s; }
.start-steps li {
  counter-increment: s; background: var(--accent-soft); border-radius: var(--radius);
  padding: 18px 18px 18px 56px; position: relative;
}
.start-steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 800 .95rem var(--display);
}

/* list */
.list { padding: 24px 0 56px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.search input {
  width: min(320px, 100%); padding: 10px 14px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.search { flex: 1 1 220px; display: flex; justify-content: flex-end; }
@media (max-width: 560px) { .search { justify-content: stretch; } .search input { width: 100%; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.chip {
  font: 500 .9rem var(--body); padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.filter-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.filter-row label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.filter-row select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
}
.result-count { color: var(--muted); font-size: .9rem; margin: 8px 0 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.card-top { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font: 800 1.2rem var(--display); color: #fff;
}
.card h3 { font-size: 1.2rem; margin: 0; }
.cat { color: var(--muted); font-size: .82rem; }
.pick {
  margin-left: auto; align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  background: var(--accent-soft); color: var(--accent-strong); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.bonus { background: var(--good-soft); color: var(--good); font-weight: 600; font-size: .88rem; padding: 8px 10px; border-radius: 8px; }
.code {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--muted);
  border: 1px dashed var(--accent); border-radius: 8px; padding: 7px 10px;
}
.code b { color: var(--text); font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.code button {
  margin-left: auto; font: 600 .8rem var(--body); cursor: pointer; padding: 4px 10px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent);
}

.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .82rem; }
.meter span { color: var(--muted); display: block; }
.meter b { letter-spacing: .1em; color: var(--accent-strong); }
.meter b i { font-style: normal; color: var(--line); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .75rem; background: var(--surface-2); color: var(--muted); padding: 3px 8px; border-radius: 6px; }

.cta {
  display: block; text-align: center; text-decoration: none; font-weight: 600;
  background: var(--accent); color: #fff; padding: 11px; border-radius: 10px; transition: background .15s;
}
.cta:hover { background: var(--accent-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { color: #1f1a14; } }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* avoid */
.avoid { padding: 48px 0; border-top: 1px solid var(--line); }
.avoid-intro { color: var(--muted); margin: 0 0 20px; }
.avoid-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.avoid-list li {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--bad);
  border-radius: 10px; padding: 12px 16px; color: var(--muted);
}
.avoid-list b { display: block; color: var(--text); }
.avoid-source { color: var(--muted); font-size: .85rem; font-style: italic; margin: 0 0 24px; }
.red-flags { background: var(--bad-soft); border-radius: var(--radius); padding: 18px 20px; }
.red-flags h3 { font-size: 1.1rem; color: var(--bad); }
.red-flags ul { margin: 0; padding-left: 20px; }

/* faq */
.faq { padding: 48px 0; background: var(--surface-2); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--muted); }

/* footer */
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.disclosure { max-width: 80ch; }
.fine { margin-top: 12px; }

/* simple prose page */
.prose { padding: 48px 0; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
