/*
  The Broke List
  Editorial, list-first: a serif masthead, plain sans for reading, tabular
  mono figures for money, hairline rules, one green for money. Light + dark.
*/

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-600i.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f5f3ee;
  --ink: #16181b;
  --ink-2: #33363b;
  --muted: #62666c;
  --line: #e7e3db;
  --line-strong: #d2cdc2;
  --brand: #0f7a45;
  --brand-ink: #0b6338;
  --brand-soft: #e6f2eb;
  --warn: #9a4a07;
  --warn-soft: #fbefe3;
  --risk: #b42318;
  --risk-soft: #fcebe9;
  --chip: #f1eee8;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgba(22, 24, 27, 0.05), 0 8px 24px -12px rgba(22, 24, 27, 0.12);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1012; --surface: #15181b; --surface-2: #1b1f23; --ink: #ecebe7; --ink-2: #d2d1cc; --muted: #a2a6ac;
    --line: #262a2f; --line-strong: #353a41; --brand: #43c383; --brand-ink: #74d9a5; --brand-soft: #153222;
    --warn: #f0a85f; --warn-soft: #33261a; --risk: #f28b81; --risk-soft: #3a201d; --chip: #1e2226; --btn-ink: #07130c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1012; --surface: #15181b; --surface-2: #1b1f23; --ink: #ecebe7; --ink-2: #d2d1cc; --muted: #a2a6ac;
  --line: #262a2f; --line-strong: #353a41; --brand: #43c383; --brand-ink: #74d9a5; --brand-soft: #153222;
  --warn: #f0a85f; --warn-soft: #33261a; --risk: #f28b81; --risk-soft: #3a201d; --chip: #1e2226; --btn-ink: #07130c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark { width: 30px; height: 30px; flex: none; display: block; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.wordmark i { font-style: italic; color: var(--brand); }
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav a { padding: 6px 9px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; padding: 0; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
@media (max-width: 620px) { .header-nav a.hide-sm { display: none; } .wordmark { font-size: 20px; } }

.trust { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-block: 8px; font-size: 12.5px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
.trust a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero .wrap { padding-block: 36px 8px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
h1 { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 6.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; max-width: 20ch; }
.lede { margin: 0; max-width: 62ch; font-size: 17.5px; color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.stat { padding: 14px 16px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--mono); font-weight: 600; font-size: clamp(20px, 4.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat b.money { color: var(--brand); }
.stat span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

.breakdown { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.breakdown b { color: var(--ink-2); font-family: var(--mono); font-weight: 500; }

.tracker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tracker-title { font-weight: 600; font-size: 14.5px; }
.tracker-nums { font-family: var(--mono); font-size: 14px; text-align: right; color: var(--muted); }
.tracker-nums b { color: var(--brand); font-weight: 600; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width 0.3s ease; }
.tracker-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }

.steps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps-3 li { counter-increment: s; padding-top: 10px; border-top: 2px solid var(--ink); font-size: 14.5px; color: var(--ink-2); }
.steps-3 li::before { content: "Step " counter(s); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.steps-3 b { color: var(--ink); }
@media (max-width: 640px) { .steps-3 { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Section heads + toolbar ---------- */
.list-section .wrap { padding-block: 36px 48px; }
.section-head { margin-bottom: 14px; }
.section-title { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4.5vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.section-sub { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 70ch; }

.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 210px); gap: 10px; margin-bottom: 10px; }
.search input, .sort select {
  width: 100%; min-height: 44px; padding: 9px 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 8px; font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
@media (max-width: 520px) { .toolbar { grid-template-columns: 1fr; } }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 34px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.result-count { margin: 0 0 10px; font-size: 13px; color: var(--muted); }

/* ---------- The list ---------- */
.list { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.list-head, .row-main {
  display: grid;
  grid-template-columns: 26px 30px minmax(0, 2.3fr) minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 0.9fr) 26px;
  gap: 12px; align-items: center;
}
.list-head { padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.group { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 14px 16px 9px; background: var(--surface-2); border-top: 1px solid var(--line); }
.list > .group:first-child, .list-head + .group { border-top: 0; }
.row { border-top: 1px solid var(--line); }
.group h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.group span { font-size: 13px; color: var(--muted); }
.group span b { font-family: var(--mono); font-weight: 600; color: var(--brand); }

.row-main { padding: 12px 16px; cursor: pointer; }
.check { width: 22px; height: 22px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface); cursor: pointer; }
.check[aria-pressed="true"] {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: var(--brand);
}
.rank { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.app { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mono-badge { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line); font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }
.app-text { min-width: 0; }
.app-name { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 18px; letter-spacing: 0.01em; }
.tag.new { background: var(--brand-soft); color: var(--brand-ink); }
.tag.ends { background: var(--warn-soft); color: var(--warn); }
.tag.age { background: var(--chip); color: var(--ink-2); border: 1px solid var(--line); line-height: 16px; }
.tag.extra { background: var(--brand); color: var(--btn-ink); }

.bonus b { display: block; font-family: var(--mono); font-weight: 600; font-size: 14.5px; color: var(--brand); line-height: 1.3; }
.bonus small, .start small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.start b { display: block; font-family: var(--mono); font-weight: 500; font-size: 14.5px; }
.keep { justify-self: start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.keep.yes { background: var(--brand-soft); color: var(--brand-ink); }
.keep.no { background: var(--warn-soft); color: var(--warn); }
.keep.risk { background: var(--risk-soft); color: var(--risk); }
.chev { justify-self: end; width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; transition: transform 0.15s ease; }
.chev svg { width: 18px; height: 18px; }
.row.open .chev { transform: rotate(180deg); }
.row.open .row-main { background: var(--surface-2); }
.row.is-done .app-name { text-decoration: line-through; text-decoration-color: var(--brand); text-decoration-thickness: 2px; color: var(--muted); }
.row.is-done .mono-badge { opacity: 0.55; }

.detail { padding: 6px 16px 20px calc(16px + 26px + 12px + 30px + 12px); background: var(--surface-2); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 28px; }
.detail h4 { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.detail ol { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.detail li { margin: 3px 0; }
.detail dl { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.detail dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.detail dd { margin: 2px 0 0; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px; background: var(--brand); color: var(--btn-ink); border-radius: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.terms { font-size: 14px; color: var(--muted); }
.empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; }
.row-sub { display: none; }

@media (hover: hover) {
  .row-main:hover { background: var(--surface-2); }
  .header-nav a:hover { background: var(--surface-2); }
  .btn:hover { filter: brightness(1.08); }
  .cross-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
}

/* Phones: two-line rows */
@media (max-width: 760px) {
  .list-head { display: none; }
  .row-main { grid-template-columns: 24px minmax(0, 1fr) auto 20px; grid-template-areas: "chk app bonus chev" ". sub sub sub"; gap: 6px 10px; padding: 12px; }
  .row-main .check { grid-area: chk; }
  .row-main .rank, .row-main .start, .row-main .keep { display: none; }
  .row-main .app { grid-area: app; }
  .row-main .bonus { grid-area: bonus; text-align: right; max-width: 40vw; }
  .row-main .bonus small { display: none; }
  .row-main .chev { grid-area: chev; }
  .row-sub { grid-area: sub; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
  .row-sub b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }
  .row-sub .keep { display: inline-block; font-size: 11px; padding: 0 6px; }
  .mono-badge { width: 30px; height: 30px; font-size: 11px; }
  .detail { padding: 4px 12px 16px 46px; }
  .detail-grid { grid-template-columns: 1fr; }
  .group { padding: 12px 12px 8px; }
}

/* ---------- Callout ---------- */
.callout { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; background: var(--surface); }
.callout h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.callout p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.callout ol { margin: 0 0 8px; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.callout li { margin: 3px 0; }
.callout small { color: var(--muted); }

/* ---------- Age sections ---------- */
.age-section { border-top: 1px solid var(--line); }
.age-section .wrap { padding-block: 40px 44px; }
.age-badge { display: inline-grid; place-items: center; min-width: 44px; height: 26px; padding: 0 8px; border-radius: 6px; font-family: var(--mono); font-weight: 600; font-size: 13.5px; background: var(--ink); color: var(--bg); margin-right: 8px; vertical-align: 5px; }
.age-section.a18 .age-badge { background: var(--brand); color: var(--btn-ink); }
.notice { display: flex; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; color: var(--ink-2); max-width: 820px; }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--warn); }

/* ---------- Guide + method ---------- */
.prose-section { border-top: 1px solid var(--line); }
.prose-section .wrap { padding-block: 40px; }
.faq { margin-top: 12px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 14px 32px 14px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 20px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(225deg); top: 24px; }
.faq details > :not(summary) { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.faq ul, .faq ol { padding-left: 20px; }
.faq li { margin: 4px 0; }
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 16px 0 0; padding: 0; list-style: none; max-width: 900px; }
.method li { padding-left: 28px; position: relative; font-size: 15px; color: var(--ink-2); }
.method li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); }
.method li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 4px; height: 8px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); }
.method b { color: var(--ink); }
@media (max-width: 640px) { .method { grid-template-columns: 1fr; } }

.cross-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cross-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.cross-card strong { display: block; margin-bottom: 4px; font-weight: 600; }
.cross-card span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .cross-grid { grid-template-columns: 1fr; } }

.fineprint { margin: 0; max-width: 80ch; font-size: 13px; color: var(--muted); }
.fineprint strong { color: var(--ink-2); }

/* ---------- Sticky tracker ---------- */
.sticky-tally {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 20px -12px rgba(0, 0, 0, 0.25);
  font-size: 13.5px; color: var(--muted);
  transform: translateY(110%); transition: transform 0.2s ease;
}
.sticky-tally.on { transform: none; }
.sticky-tally b { font-family: var(--mono); font-weight: 600; font-size: 16px; color: var(--ink); }
.sticky-tally b.money { color: var(--brand); }
@media (min-width: 761px) { .sticky-tally { left: auto; right: 20px; bottom: 20px; width: 320px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-block: 26px calc(70px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0; padding: 0; list-style: none; font-size: 14px; }
.site-footer p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal .wrap { padding-block: 36px 60px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 6vw, 44px); }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal-sheet { margin-top: 18px; padding: 4px 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.updated { margin: 0; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Figures: sans with tabular numbers reads cleaner than mono for money */
.stat b, .breakdown b, .tracker-nums, .bonus b, .start b, .group span b, .sticky-tally b, .row-sub b {
  font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.005em;
}
.stat b { font-weight: 600; }
.bonus b { font-size: 15px; }
.start b { font-weight: 600; }
/* Sticky tracker: full-width bar on every screen, content lined up with the page */
@media (min-width: 761px) {
  .sticky-tally { left: 0; right: 0; bottom: 0; width: auto; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0;
    padding: 10px max(16px, calc((100vw - 1040px) / 2 + 16px)); justify-content: flex-end; gap: 28px; }
}
@media (max-width: 760px) {
  .row-main { grid-template-columns: 24px minmax(0, 1fr) 20px; grid-template-areas: "chk app chev" ". bonus ." ". sub ."; gap: 4px 10px; }
  .row-main .bonus { text-align: left; max-width: none; padding-left: 40px; }
  .row-main .bonus b { font-size: 15px; }
  .row-sub { padding-left: 40px; }
  .detail { padding-left: 46px; }
}
.age-section .tag.age { display: none; }

/* Gambling block inside the list */
.gamble-head { padding: 22px 16px 16px; border-top: 2px solid var(--ink); background: var(--surface); scroll-margin-top: 12px; }
.gamble-head h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; }
.gamble-head p { margin: 0; max-width: 78ch; font-size: 14px; color: var(--ink-2); }
.group.sub { background: var(--surface-2); }
.group.sub h3 { font-size: 17px; }
@media (max-width: 760px) { .gamble-head { padding: 18px 12px 14px; } }

/* ---------- Offer pages ---------- */
.crumbs { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.offer-page .notice { margin-top: 14px; }
.facts-table { margin: 18px 0 6px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts-table > div { display: grid; grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.facts-table > div:first-child { border-top: 0; }
.facts-table dt { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts-table dd { margin: 0; color: var(--ink-2); }
.money-txt { color: var(--brand); font-weight: 600; }
.rel-title { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 30px 0 10px; }
.rel { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.rel li + li { border-top: 1px solid var(--line); }
.rel a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; text-decoration: none; font-size: 15px; }
.rel a b { color: var(--brand); font-weight: 600; text-align: right; }
.disc { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.detail .more { font-size: 14px; color: var(--muted); }
.code-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-code { font-family: var(--mono); font-weight: 600; font-size: 15px; padding: 3px 8px; border: 1px dashed var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); user-select: all; }
.copy { min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; }
.tag.code { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--line-strong); font-family: var(--mono); line-height: 16px; }

/* ---------- Email signup ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.signup-card .section-title { font-size: clamp(24px, 4vw, 30px); }
.signup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; position: relative; }
.signup-form input[type="email"] { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 16px; min-width: 0; }
.signup-form input[type="email"]::placeholder { color: var(--muted); }
.signup-form .btn { min-height: 46px; border: 0; cursor: pointer; }
.signup-form .btn[disabled] { opacity: 0.6; cursor: default; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1em; font-size: 13.5px; color: var(--muted); }
.form-msg.ok { color: var(--brand-ink); font-weight: 600; }
.form-msg.err { color: var(--risk); }
.signup-form.done input, .signup-form.done .btn { display: none; }
@media (max-width: 760px) { .signup-card { grid-template-columns: 1fr; padding: 18px; } }
@media (max-width: 420px) { .signup-form { grid-template-columns: 1fr; } }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14, 16, 18, 0.55); opacity: 0; transition: opacity 0.2s ease; }
.modal-card { position: relative; width: min(460px, 100%); padding: 26px 24px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); transform: translateY(12px); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-card h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -0.015em; padding-right: 28px; }
.modal-sub { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.modal-x svg { width: 18px; height: 18px; }
.modal-later { display: block; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.modal-fine { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.modal-fine a { color: var(--muted); }
@media (max-width: 520px) {
  .modal { place-items: end center; padding: 0; }
  .modal-card { width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
}

/* ---------- Accounts ---------- */
.account-btn { min-height: 36px; padding: 6px 12px; margin-left: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-btn.in { border-color: var(--brand); color: var(--brand-ink); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.google-btn svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.magic-form { display: grid; gap: 8px; }
.magic-form input { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 16px; }
.magic-form .btn { border: 0; cursor: pointer; min-height: 46px; }
.news-opt { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 4px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.news-opt input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; margin-top: 8px; }
@media (max-width: 620px) { .account-btn { max-width: 90px; padding: 6px 10px; } }
.site-header .wrap { flex-wrap: nowrap; }
.brand { flex-shrink: 1; overflow: hidden; }
.header-nav { flex-shrink: 0; }
@media (max-width: 480px) { .header-nav a.hide-xs { display: none; } }

/* =====================================================================
   Plan quiz, starter five, pending/paid tracker, toasts
   ===================================================================== */

/* Hero plan card */
.plan-card { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--brand); border-radius: 14px; background: var(--brand-soft); }
.plan-empty, .plan-set { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.plan-copy { min-width: 0; flex: 1 1 320px; }
.plan-h { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 4vw, 29px); line-height: 1.12; letter-spacing: -0.015em; }
.plan-h i { color: var(--brand-ink); }
.plan-copy p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 56ch; }
.plan-copy .eyebrow { margin-bottom: 4px; }
.plan-big { font-size: 17px !important; color: var(--ink) !important; }
.plan-big b { font-variant-numeric: tabular-nums; }
.plan-big .money-txt { font-family: var(--serif); font-size: clamp(30px, 5.5vw, 40px); line-height: 1; letter-spacing: -0.02em; margin-right: 2px; }
.plan-small { margin-top: 4px !important; font-size: 13.5px !important; color: var(--muted) !important; }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.btn-lg { min-height: 50px; padding: 10px 22px; font-size: 16px; border: 0; cursor: pointer; }
.btn-lg span { transition: transform 0.15s ease; }
@media (hover: hover) { .btn-lg:hover span { transform: translateX(3px); } }
@media (max-width: 520px) { .plan-card { padding: 16px; } .plan-empty .btn-lg, .plan-actions .btn-lg { width: 100%; } .plan-actions { width: 100%; } }
.share-row { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.share-row .linkish { font-size: 14px; font-weight: 600; }

/* Tracker: paid + waiting */
.tracker-title small { font-weight: 500; color: var(--muted); font-size: 13px; }
.bar { display: flex; }
.bar span { flex: none; }
#bar-paid { background: var(--brand); border-radius: 99px 0 0 99px; }
#bar-pend { background: repeating-linear-gradient(-45deg, var(--warn) 0 5px, var(--warn-soft) 5px 9px); border-radius: 0 99px 99px 0; }
.wait-txt { color: var(--warn) !important; }
.mini-state { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; border: 1.5px solid var(--warn); background: var(--warn-soft); }
.mini-state.paid { border-color: var(--brand); background: var(--brand); }
@media (max-width: 560px) { .tracker { grid-template-columns: 1fr; } .tracker-nums { text-align: left; } }

/* Three-state box: empty -> waiting (orange ring) -> paid (green check) */
.check { position: relative; }
.check[aria-pressed="mixed"] { border-color: var(--warn); background: var(--warn-soft); }
.check[aria-pressed="mixed"]::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--warn); border-right-color: transparent; }
.row.is-paid .app-name { text-decoration: line-through; text-decoration-color: var(--brand); text-decoration-thickness: 2px; color: var(--muted); }
.row.is-paid .mono-badge { opacity: 0.55; }
.tag.wait { background: var(--warn-soft); color: var(--warn); }
.tag.paid { background: var(--brand-soft); color: var(--brand-ink); }
.tag.ends.soon { background: var(--risk-soft); color: var(--risk); }
.tag.proof { border: 1px solid var(--brand); color: var(--brand-ink); line-height: 16px; }

/* Status strip inside an open offer */
.status-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.status-label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dot.pending { background: var(--warn); }
.dot.paid { background: var(--brand); }
.status-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sbtn { min-height: 38px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
.sbtn.primary { background: var(--brand); border-color: var(--brand); color: var(--btn-ink); }
.sbtn.quiet { border-color: transparent; background: none; color: var(--muted); text-decoration: underline; padding-inline: 6px; }
.remind { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--muted); }
.remind a { color: var(--brand-ink); font-weight: 600; }

/* Payout proof */
.proof { margin: 14px 0 0; }
.proof img { display: block; max-width: min(240px, 100%); max-height: 220px; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.proof figcaption { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* Start with these 5 */
.starter { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.starter-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 12px 16px 10px; background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.starter-head h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.starter-head span { font-size: 13px; color: var(--ink-2); }
.starter-head b { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li + li .st-item { border-top: 1px solid var(--line); }
.st-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 11px 16px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.st-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-text { min-width: 0; }
.st-name { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.st-sub { display: block; font-size: 12.5px; color: var(--muted); }
.st-bonus { font-weight: 600; font-size: 14.5px; color: var(--brand); font-variant-numeric: tabular-nums; text-align: right; max-width: 15ch; }
@media (hover: hover) { .st-item:hover { background: var(--surface-2); } }
@media (min-width: 761px) {
  .starter:not(.compact) .st-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .starter:not(.compact) .st-list li + li .st-item { border-top: 0; border-left: 1px solid var(--line); }
  .starter:not(.compact) .st-item { height: 100%; grid-template-columns: 1fr; align-content: start; gap: 6px; padding: 14px; }
  .starter:not(.compact) .st-bonus { text-align: left; max-width: none; }
}
.starter.compact { margin: 16px 0 0; box-shadow: none; }
.starter.compact .st-item { padding: 9px 12px; }

/* List: plan banner */
.plan-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; margin: 0 0 10px; padding: 10px 14px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand-soft); font-size: 14px; color: var(--ink-2); }
.plan-banner b { color: var(--ink); }
.plan-banner .linkish { font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.pb-links { white-space: nowrap; color: var(--muted); }

/* Quiz modal */
.quiz-card { width: min(540px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.q-progress { display: flex; gap: 6px; margin: 4px 44px 18px 0; }
.q-progress span { flex: 1; height: 4px; border-radius: 99px; background: var(--chip); transition: background 0.2s ease; }
.q-progress span.on { background: var(--brand); }
.q-step { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
#plan-body h2:focus { outline: none; }
.q-opts { display: grid; gap: 8px; margin-top: 4px; }
.q-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease; }
.q-opt::after { content: "→"; color: var(--muted); font-weight: 400; }
.q-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.q-opt[aria-pressed="true"]::after { color: var(--brand-ink); }
@media (hover: hover) { .q-opt:hover { border-color: var(--brand); } }
.q-back { display: inline-block; margin-top: 12px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.q-result-h { font-size: clamp(28px, 6vw, 34px) !important; }
.q-result-h .money-txt { white-space: nowrap; }
.tier-table { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tier-table li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 14.5px; color: var(--ink-2); }
.tier-table li + li { border-top: 1px solid var(--line); }
.tier-table strong { color: var(--ink); font-weight: 600; }
.tier-table b { color: var(--brand); font-variant-numeric: tabular-nums; }
.q-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
.q-actions .btn { flex: 1 1 180px; border: 0; cursor: pointer; }
.q-actions .btn.ghost { margin-top: 0; border: 1px solid var(--line-strong); }
@media (max-width: 520px) { .quiz-card { max-height: 92dvh; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); font-size: 14.5px; line-height: 1.35; transform: translate(-50%, 16px); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast-msg { min-width: 0; }
.toast-act { flex: none; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: var(--brand); color: var(--btn-ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.toast-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; opacity: 0.7; cursor: pointer; }
.toast-x svg { width: 16px; height: 16px; }
/* Phones: get the plan button closer to the top */
@media (max-width: 520px) {
  .trust span:nth-child(2), .trust span:nth-child(3) { display: none; }
  .hero .wrap { padding-top: 26px; }
  .lede { font-size: 16px; }
  .stats { margin-top: 20px; }
  .breakdown { font-size: 12.5px; }
}
