@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('vendor/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url('vendor/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('vendor/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('vendor/fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('vendor/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('vendor/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  /* Pesadithi light green: money in is green, money out is red, credit is violet, loans amber */
  --bg: #ffffff; --ink: #0f2620; --text: #1b2e28; --muted: #55665f; --faint: #5f6f69; --line: #dce4e0; --ctl: #8fa29a; --panel: #f2f6f4; --panel2: #e9f1ec; --soft: #f2f6f4; --mint: #e4f4ec;
  --brand: #17694e; --brand-dk: #0f4f3a; --brand-tint: #e4f4ec; --brand-tint2: #c9e9d8; --leaf: #6dbb95; --glow: #3ddc97;
  --in: #17803f; --out: #d23b2e; --credit: #2457d6; --loan: #e08a00; --fee: #5b6670; --bad: #a3170f; --good: #17803f; --focus: #17694e;
  --in-tint: #e6f5ec; --out-tint: #fcecea; --credit-tint: #e9effc;
  --serif: 'Besley', Georgia, serif; --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 12px; --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); max-width: 17ch; }
h2 { font-size: clamp(26px, 3.6vw, 38px); max-width: 24ch; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.kicker { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.lede { font-size: clamp(17px, 2vw, 20px); color: #2b2b33; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { font-family: var(--serif); font-size: 21px; text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand b { font-weight: 600; }
.brand .tag { font-family: var(--sans); font-size: 11px; border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--panel); font-weight: 500; }
.demo-badge { background: #fff4dc; color: #6d4a00; border: 1px solid #f0d48f; border-radius: 99px; font-size: 12px; padding: 2px 10px; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 16px var(--sans); cursor: pointer; text-decoration: none; touch-action: manipulation; }
.btn:hover { background: #33333b; color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--panel); color: var(--ink); }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* landing */
.hero { padding-block: 64px 36px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 34px 0 10px; }
.trust div { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 15px; }
.trust b { display: block; font-weight: 600; margin-bottom: 2px; }
.preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 26px 0 40px; }
.preview .card h3 { font-size: 18px; }
.card { background: var(--panel); border-radius: var(--r); padding: 20px; border: 1px solid var(--line); }
.card.white { background: #fff; }
.honest { border-left: 4px solid var(--credit); background: #fffaf0; padding: 18px 20px; border-radius: 0 var(--r) var(--r) 0; margin: 10px 0 50px; }
.honest ul { margin: 6px 0 0; padding-left: 20px; }

/* start */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 18px 0; }
.source { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; cursor: pointer; font: inherit; color: inherit; position: relative; }
.source:hover { border-color: #b9b9c4; }
.source[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.source h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.source .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--panel2); color: #33333b; }
.pill.rec { background: #e3f4f2; color: #00544f; }
.pill.risk { background: #fdeaea; color: #8c1d24; }
.pill.beta { background: #fff1d6; color: #6d4a00; }
.steps { background: var(--panel); border-radius: var(--r); padding: 18px 20px; margin: 16px 0; }
.steps ol { margin: 6px 0 0; padding-left: 20px; }
.drop { border: 2px dashed #c6c6d0; border-radius: var(--r); padding: 26px; text-align: center; background: #fff; }
.drop.over { border-color: var(--in); background: #f0faf9; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field label { font-weight: 500; font-size: 15px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea { font: 16px var(--sans); padding: 11px 12px; border: 1.5px solid #c9c9d3; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; max-width: 520px; }
textarea { max-width: 100%; min-height: 160px; resize: vertical; }
.status { min-height: 24px; margin: 12px 0; font-size: 15px; }
.status.err { color: var(--bad); }
.status.ok { color: var(--good); }
.found { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 18px 0; }
.periods { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.periods button { font: 500 14px var(--sans); border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.periods button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* story */
.storynav { position: sticky; top: 60px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.storynav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.storynav a { font-size: 13px; text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.storynav a.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.chapter { padding: 64px 0 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.chapter:last-of-type { border-bottom: 0; }
.chapter .k { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.chapter .k span { color: var(--ink); }
.bigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 22px 0; }
.big { background: var(--panel); border-radius: var(--r); padding: 18px; }
.big .v { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.big .l { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.chart { position: relative; width: 100%; margin: 18px 0 8px; }
.chart svg { display: block; overflow: visible; }
.chart text { font: 11.5px var(--sans); fill: #5b5b66; }
.chart .ink { fill: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(20,20,30,.12); border-radius: 10px; padding: 8px 11px; font-size: 13px; line-height: 1.5; z-index: 10; max-width: 260px; }
.tip b { font-weight: 600; }
.tip span { color: var(--muted); }
.insight { border-left: 3px solid var(--ink); padding: 4px 0 4px 16px; margin: 18px 0; max-width: 66ch; font-size: 17px; }
.try { background: #f0faf9; border-radius: var(--r); padding: 16px 18px; margin: 18px 0; max-width: 70ch; }
.try b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #00544f; margin-bottom: 4px; }
.mcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 16px 0; }
.mcard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.mcard .n { font-weight: 600; }
.mcard .c { font-size: 13px; color: var(--muted); }
.mcard .a { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; margin: 4px 0; }
.mcard .note { font-size: 13px; color: #3c3c46; line-height: 1.45; }
.ledger .row { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger .d { font-size: 13px; color: var(--muted); }
.ledger .w { font-weight: 600; }
.ledger .nt { font-size: 14px; color: var(--muted); }
.ledger .a { font-family: var(--serif); font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .a.bad { color: var(--bad); }
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 20px 0 60px; }
.next a, .next button { display: block; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; font: inherit; color: inherit; cursor: pointer; }
.next a:hover, .next button:hover { border-color: var(--ink); color: inherit; }
.next b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 4px; }

/* sort game */
.game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 28px; align-items: start; margin: 18px 0 60px; }
@media (max-width: 820px) { .game { grid-template-columns: 1fr; } }
.deck { position: relative; min-height: 330px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(20,20,30,.08); padding: 24px; touch-action: pan-y; user-select: none; transition: transform .25s ease, opacity .25s ease; }
.pcard.fly-r { transform: translateX(120%) rotate(12deg); opacity: 0; }
.pcard.fly-l { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.pcard .who { font-family: var(--serif); font-size: 28px; line-height: 1.15; word-break: break-word; }
.pcard .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.pcard .facts div { background: var(--panel); border-radius: 10px; padding: 10px; }
.pcard .facts b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.pcard .facts span { font-size: 12px; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.cats button { text-align: left; font: 500 14px var(--sans); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; min-height: 48px; }
.cats button:hover { border-color: var(--ink); }
.cats button kbd { float: right; font: 12px var(--sans); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.narr { min-height: 48px; font-size: 16px; margin: 12px 0; }
.progress { height: 6px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: var(--in); width: 0; transition: width .3s; }
.tally .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* budget */
table.budget { width: 100%; border-collapse: collapse; font-size: 15px; }
table.budget th, table.budget td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.budget th { font-size: 13px; color: var(--muted); font-weight: 500; }
table.budget td.n, table.budget th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.budget input { width: 120px; padding: 7px 8px; text-align: right; }
.over { color: var(--bad); }
.under { color: var(--good); }

/* ai */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.choices button { font: 500 14px var(--sans); border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.choices button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
pre.out { white-space: pre-wrap; word-break: break-word; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 420px; overflow: auto; }
.advice { background: #f0faf9; border-radius: var(--r); padding: 14px 18px; margin: 10px 0 16px; }

/* privacy */
.risk-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 24px; }
.risk-table th, .risk-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.risk-table th { font-size: 13px; color: var(--muted); font-weight: 500; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 40px; }

/* story mode (vertical, for screen recording) */
.sm { position: fixed; inset: 0; background: #0f0f12; z-index: 100; display: grid; place-items: center; }
.sm[hidden] { display: none; }
.sm .frame { width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); background: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 7% 7% 10%; container-type: size; }
.sm .bar { display: flex; gap: 4px; margin-bottom: 7%; }
.sm .bar i { flex: 1; height: 3px; background: #e2e2e8; border-radius: 3px; }
.sm .bar i.on { background: var(--ink); }
.sm .slide { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sm .slide .sk { font-size: clamp(11px, 2.2cqh, 34px); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2cqh; }
.sm .slide .sv { font-family: var(--serif); font-size: clamp(34px, 9cqh, 190px); line-height: 1.02; font-variant-numeric: tabular-nums; }
.sm .slide .st { font-family: var(--serif); font-size: clamp(19px, 4cqh, 84px); line-height: 1.2; margin-top: 2.4cqh; }
.sm .slide .sd { font-size: clamp(14px, 2.6cqh, 48px); color: var(--muted); margin-top: 2cqh; line-height: 1.45; }
.sm .slide svg { margin-top: 3cqh; width: 100%; height: auto; }
.sm .foot { position: absolute; left: 7%; right: 7%; bottom: 3.2%; display: flex; justify-content: space-between; font-size: clamp(10px, 1.8cqh, 32px); color: var(--faint); }
.sm .ctrl { position: fixed; bottom: 14px; right: 14px; display: flex; gap: 8px; z-index: 101; }
.sm .ctrl button { background: #24242b; color: #fff; border: 1px solid #5c5c68; min-height: 44px; border-radius: 99px; padding: 8px 14px; font: 500 14px var(--sans); cursor: pointer; }
.sm .tapl, .sm .tapr { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 2; background: transparent; border: 0; cursor: pointer; }
.sm .tapl { left: 0; } .sm .tapr { right: 0; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 40px; }
  .ledger .row { grid-template-columns: 1fr auto; }
  .ledger .d { grid-column: 1 / -1; }
  .pcard .who { font-size: 24px; }
  .top .wrap { gap: 8px; }
  .brand .tag { display: none; }
}

/* Round 1 QA fixes */
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 10px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.source, .choices button, .periods button, .cats button { border-color: var(--ctl); }
.periods button, .choices button, .linkbtn.small, .nav a { min-height: 44px; }
.periods button:disabled { opacity: .4; cursor: not-allowed; }
#srcHelp, #loader, #found, #notice { scroll-margin-top: 80px; }
.notice { background: #fff4dc; border: 1px solid #f0d48f; color: #5a3d00; border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.demo-badge { text-decoration: none; font-weight: 600; font-size: 13px; padding: 6px 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; min-height: 44px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.chart { position: relative; }
.chart.scrollx { overflow-x: auto; }
.tip { pointer-events: none; }
details.datatable { margin: 8px 0 4px; font-size: 14px; }
details.datatable summary { cursor: pointer; color: var(--muted); min-height: 32px; }
details.datatable table { border-collapse: collapse; font-size: 13px; margin-top: 6px; }
details.datatable th, details.datatable td { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--line); text-align: left; }
details.datatable .n { text-align: right; font-variant-numeric: tabular-nums; }
.sm .ctrl { flex-wrap: wrap; justify-content: flex-end; }
.sm.rec .ctrl { display: none; }
.sm .slide .sv.small { font-size: clamp(28px, 6.5cqh, 136px); }
.sm .slide .surl { margin-top: 4cqh; font: 600 clamp(16px, 3.4cqh, 68px) var(--sans); background: var(--ink); color: #fff; padding: 1.6cqh 2.4cqh; border-radius: 1.6cqh; align-self: flex-start; }
.sm .smdemo { position: absolute; top: 4.4cqh; right: 8cqw; background: #fff4dc; color: #5a3d00; border: 1px solid #f0d48f; border-radius: 99px; font: 600 clamp(11px, 2cqh, 36px) var(--sans); padding: .6cqh 1.6cqh; z-index: 3; }
.sm .smcount { position: absolute; inset: 0; display: grid; place-items: center; font: 600 22cqh var(--serif); background: rgba(255,255,255,.85); z-index: 4; }
@media (max-width: 720px) {
  .top { position: static; }
  .top .wrap { flex-wrap: wrap; height: auto; padding-block: 8px; }
  .nav { margin-left: 0; width: 100%; flex-wrap: wrap; overflow: visible; }
  .storynav { top: 0; }
  table.budget thead { display: none; }
  table.budget, table.budget tbody, table.budget tr, table.budget td { display: block; width: 100%; }
  table.budget tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  table.budget td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  table.budget td.n { text-align: right; }
  table.budget td[data-l]:not(:first-child)::before { content: attr(data-l); color: var(--muted); font-size: 13px; }
  table.budget td:first-child { font-weight: 600; }
}
@media (hover: none), (pointer: coarse) { .cats kbd { display: none; } }

/* Round 2 QA fixes */
html, body { overscroll-behavior-x: none; }
.h3 { font-size: 22px; }
.storynav a { min-height: 44px; display: inline-flex; align-items: center; }
footer .linkbtn { min-height: 44px; padding: 0 4px; }
.sm.playing .ctrl { opacity: .18; transition: opacity .3s; }
.sm.playing .ctrl:hover, .sm.playing .ctrl:focus-within { opacity: 1; }
.sm.rec, .sm.rec * { cursor: none; }
@media (hover: none), (pointer: coarse) { .kbdonly { display: none; } }
.scrollhint { margin: 0 0 4px; }
.cats button { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.cats button kbd { float: none; flex: none; }
.tally .row span:first-child { overflow-wrap: anywhere; min-width: 0; }

.big .v { font-size: clamp(24px, 2.9vw, 34px); white-space: nowrap; }

/* ================= Pesadithi look (builds on the October prototype) ================= */
body { color: var(--text); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); font-weight: 350; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--brand); }
.lede { color: var(--text); }
.mono, .ledger .d { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; }
a { color: var(--brand-dk); }
:focus-visible { outline-color: var(--brand); }

/* header and lockup */
.top { background: color-mix(in srgb, #fff 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -.02em; color: var(--ink); gap: 10px; }
.brand b { font-weight: 400; }
.brand i { font-style: italic; font-weight: 300; color: var(--brand); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .tag { font-family: var(--sans); }
.nav a { color: var(--muted); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--mint); }

/* buttons */
.btn { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; min-height: 52px; padding: 0 26px; }
.btn:hover { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--mint); color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.linkbtn { color: var(--brand-dk); }

/* home hero */
#v-home { background: none; }
.hero { display: grid; gap: 34px; padding-block: 40px 56px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 20px 56px; padding-block: 64px 90px; } }
.hero h1 { font-size: clamp(42px, 8.4vw, 76px); max-width: 12ch; margin-bottom: 18px; }
.hero .kicker { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--brand); font-weight: 400; }
.trust div { border-top: 2px solid var(--ink); }
.honest { border-left: 3px solid var(--brand); background: var(--soft); border-radius: 0 16px 16px 0; }
.preview .card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }

/* the phone: money texts being read and tagged */
.phonewrap { position: relative; display: grid; justify-items: center; }
.phone { position: relative; width: min(100%, 360px); height: 520px; border-radius: 42px; background: #0f2620; padding: 12px; box-shadow: 0 40px 70px -34px rgba(15,38,32,.55), 0 2px 8px rgba(15,38,32,.12); }
.phone .screen { position: relative; height: 100%; border-radius: 32px; background: #f4f7f5; overflow: hidden; }
.phone .bar { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; background: #fff; border-bottom: 1px solid #e3e9e6; font: 600 14px var(--sans); color: var(--ink); }
.phone .bar .av { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font: 700 11px var(--sans); color: var(--brand); }
.phone .bar small { display: block; font: 400 11px var(--sans); color: var(--muted); }
.phone .feed { padding: 10px 12px 60px; display: grid; gap: 8px; }
.msg { position: relative; background: #fff; border-radius: 16px 16px 16px 4px; padding: 9px 11px; font: 400 11.5px/1.42 var(--sans); color: #22312c; box-shadow: 0 1px 2px rgba(15,38,32,.06); border: 1px solid transparent; transition: border-color .35s, background .35s, transform .35s; max-width: 92%; }
.msg .ts { display: block; font: 400 9.5px var(--mono); color: #7a8a84; margin-top: 3px; }
.msg .tg { position: absolute; right: -6px; top: -9px; opacity: 0; transform: translateY(4px) scale(.9); transition: opacity .35s, transform .35s; font: 700 10px var(--sans); color: #fff; padding: 3px 9px; border-radius: 99px; box-shadow: 0 3px 8px rgba(0,0,0,.18); white-space: nowrap; }
.msg.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.msg.on .tg { opacity: 1; transform: none; background: var(--c); }
.phone .scan { position: absolute; left: 0; right: 0; height: 3px; top: 70px; background: linear-gradient(90deg, transparent, var(--glow), transparent); box-shadow: 0 0 18px 4px rgba(61,220,151,.45); opacity: 0; z-index: 3; pointer-events: none; transition: top .25s linear; }
.phone .fadeb { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(244,247,245,0), #f4f7f5); }
.tally4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(100%, 520px); margin-top: 22px; }
.tally4 div { border-top: 2px solid var(--c); padding-top: 7px; }
.tally4 b { display: block; font: 300 clamp(19px, 4.6vw, 25px)/1.1 var(--serif); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally4 small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.cap { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
@media (max-width: 520px) { .phone { height: 440px; } .tally4 { grid-template-columns: repeat(2, 1fr); } }

/* chapters */
.chapter { padding: 76px 0 34px; border-bottom: 1px solid var(--line); }
.chapter .k { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 18px; font-weight: 400; color: var(--brand); margin-bottom: 10px; }
.chapter .k span { color: var(--brand); }
.chapter h1, .chapter h2 { font-weight: 300; }
.chapter h2 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.06; max-width: 22ch; }
.chapter > p.muted, .chapter > .muted { max-width: 64ch; }
.chapter#cover { background: radial-gradient(120% 90% at 100% 0%, var(--mint) 0, #fff 60%); margin: 0 -20px; padding: 64px 20px 44px; border-radius: 0 0 28px 28px; border-bottom: 0; }
.chapter#cover h1 { font-size: clamp(40px, 7.6vw, 70px); max-width: 14ch; }
.bigs { gap: 16px; margin: 28px 0; }
.big { background: none; border-radius: 0; padding: 10px 0 0; border-top: 2px solid var(--ink); }
.big .v { font: 300 clamp(26px, 3.3vw, 38px)/1.08 var(--serif); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.big .l { font-size: 13.5px; }
.big.in { border-top-color: var(--in); } .big.in .v { color: var(--in); }
.big.out { border-top-color: var(--out); } .big.out .v { color: var(--out); }
.big.credit { border-top-color: var(--credit); } .big.credit .v { color: var(--credit); }
.big.fee { border-top-color: var(--fee); }
.chart { background: var(--soft); border-radius: 22px; padding: 22px 18px 16px; }
.chart text { font: 12px var(--sans); fill: var(--muted); }
.chart .ink { fill: var(--ink); font-weight: 600; }
.legend { color: var(--muted); }
.insight { border-left: 3px solid var(--brand); font-family: var(--serif); font-weight: 300; font-size: 21px; line-height: 1.38; color: var(--ink); max-width: 46ch; }
.try { background: var(--mint); border-radius: 18px; }
.try b { color: var(--brand); font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 400; }
.habit { border-radius: 18px; border: 1px solid var(--line); }
.habit .v { font-weight: 300; font-size: 34px; }
.mcard { border-radius: 18px; }
.mcard .a { font-weight: 300; }
.ledger .a { font-weight: 300; font-size: 22px; }
.storynav { background: color-mix(in srgb, #fff 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.storynav a.on, .periods button[aria-pressed="true"], .choices button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toggle button[data-m="net"][aria-pressed="true"] { background: var(--ink); }
.qa { border-radius: 18px; }
.qa b { font-weight: 300; font-size: 22px; }
.source { border-radius: 18px; }
.source[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.pill.rec { background: var(--mint); color: var(--brand-dk); }
.steps { background: var(--soft); border-left: 3px solid var(--brand); border-radius: 0 16px 16px 0; }
.found { border-radius: 18px; }
.pcard { border-top: 4px solid var(--brand); border-radius: 22px; }
footer { background: var(--soft); }

/* reveal: marks grow, lines draw and dots drop as each chart scrolls into view */
.anim .g { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.anim .g.dn { transform-origin: 50% 0%; }
.anim .gx { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.anim .f { opacity: 0; transition: opacity .5s ease; transition-delay: var(--d, 0ms); }
.anim .p { opacity: 0; transform: translateY(-12px); transition: opacity .4s ease, transform .55s cubic-bezier(.3,1.4,.5,1); transition-delay: var(--d, 0ms); transform-box: fill-box; }
.anim .ln { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s ease; transition-delay: var(--d, 0ms); }
.anim.in .g, .anim.in .gx { transform: none; }
.anim.in .f, .anim.in .p { opacity: 1; transform: none; }
.anim.in .ln { stroke-dashoffset: 0; }
.count { font-variant-numeric: tabular-nums; }

/* story mode as a "Wrapped": full-bleed colour per slide */
.sm { background: #0b1c17; }
.sm .frame { --sbg: #fff; --sfg: var(--ink); --sac: var(--brand); background: var(--sbg); color: var(--sfg); transition: background .5s ease; }
.sm .frame[data-tone="in"] { --sbg: #17803f; --sfg: #fff; --sac: #c7f5d9; }
.sm .frame[data-tone="out"] { --sbg: #d23b2e; --sfg: #fff; --sac: #ffd9d4; }
.sm .frame[data-tone="credit"] { --sbg: #2457d6; --sfg: #fff; --sac: #d6e2ff; }
.sm .frame[data-tone="mint"] { --sbg: #e4f4ec; --sfg: #0f2620; --sac: #17694e; }
.sm .frame[data-tone="ink"] { --sbg: #0f2620; --sfg: #fff; --sac: #3ddc97; }
.sm .slide .sk { color: var(--sac); font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 400; }
.sm .slide .sv, .sm .slide .sv.in, .sm .slide .sv.out, .sm .slide .sv.credit { color: var(--sfg); font-weight: 300; letter-spacing: -.035em; }
.sm .slide .st { color: var(--sfg); font-weight: 300; }
.sm .slide .sd { color: var(--sfg); opacity: .82; }
.sm .slide > * { animation: smIn .6s cubic-bezier(.2,.8,.2,1) both; }
.sm .slide > :nth-child(2) { animation-delay: .08s; } .sm .slide > :nth-child(3) { animation-delay: .18s; } .sm .slide > :nth-child(4) { animation-delay: .28s; } .sm .slide > :nth-child(5) { animation-delay: .38s; }
@keyframes smIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sm .bar i { background: color-mix(in srgb, var(--sfg) 25%, transparent); }
.sm .bar i.on { background: var(--sfg); }
.sm .foot { color: var(--sfg); opacity: .7; }
.sm .slide .surl { background: var(--sfg); color: var(--sbg); }
.sm .slide svg path, .sm .slide svg rect { fill: var(--sac); }
.sm .lock { display: inline; font: 400 clamp(14px, 2.4cqh, 30px) var(--serif); }
.sm .lock i { font-style: italic; font-weight: 300; }
@media (prefers-reduced-motion: reduce) { .anim .g, .anim .gx, .anim .f, .anim .p, .anim .ln { transform: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; } }

/* ================= Type, locked Nov 2026: Besley headings, Hanken Grotesk text, JetBrains Mono figures =================
   Never use: Inter, Fraunces, Bricolage Grotesque, Young Serif, Funnel Display, Montserrat, Raleway, Merriweather,
   Source Serif, Poppins, Outfit, Space Grotesk, Archivo, Public Sans; Literata reads too thin. */
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('vendor/fonts/besley-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Besley'; font-style: italic; font-weight: 400 900; font-display: swap; src: url('vendor/fonts/besley-latin-wght-italic.woff2') format('woff2-variations'); }
:root { --serif: 'Besley', Georgia, serif; --mono: 'JetBrains Mono', ui-monospace, monospace; --hw: 640; --ew: 560; --ls: -.025em; }
h1, h2, h3, .chapter h1, .chapter h2, .chapter#cover h1, .hero h1, .big .v, .habit .v, .ledger .a, .mcard .a, .tally4 b, .insight, .qa b, .sm .slide .sv, .sm .slide .st, .next b { font-weight: var(--hw); letter-spacing: var(--ls); }
h1 em, h2 em, h3 em { font-weight: var(--ew); }
.insight, .sm .slide .st, .tally4 b, .big .v { font-weight: calc(var(--hw) - 100); }
.chapter .k, .hero .kicker, .try b, .sm .slide .sk { font-weight: 500; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); }
.chapter#cover h1 { font-size: clamp(36px, 6.4vw, 62px); }

/* ================= Hero phone: a Tecno Spark-style Android (centred punch-hole, gesture bar) running Google Messages, the default texting app on most Androids sold in Kenya ================= */
@font-face { font-family: 'Roboto'; font-weight: 400; font-display: swap; src: url('vendor/fonts/roboto-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 500; font-display: swap; src: url('vendor/fonts/roboto-latin-500-normal.woff2') format('woff2'); }
.devbox { width: min(100%, 360px); aspect-ratio: 432 / 936; position: relative; margin: 0 auto; }
.dev { position: absolute; left: 0; top: 0; width: 432px; height: 936px; transform-origin: 0 0; transform: scale(var(--s, .833));
  border-radius: 52px; padding: 10px; background: linear-gradient(145deg, #3a4150 0%, #1b2029 38%, #2b313d 70%, #151920 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #0c0f14, 0 50px 80px -40px rgba(15,38,32,.55), 0 18px 30px -18px rgba(0,0,0,.35); }
.dev .key { position: absolute; right: -3px; width: 4px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #2a303b, #4a5262); }
.dev .key.vol { top: 196px; height: 104px; }
.dev .key.pwr { top: 322px; height: 62px; }
.dev .glass { position: relative; width: 412px; height: 916px; border-radius: 42px; overflow: hidden; background: #f8fafd; color: #1f1f1f; font-family: 'Roboto', 'Hanken Grotesk', system-ui, sans-serif; display: flex; flex-direction: column; }
.dev .sbar { height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font: 500 15px 'Roboto', sans-serif; color: #1f1f1f; position: relative; }
.dev .sbar .hole { position: absolute; left: 50%; top: 13px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2c3340 0 25%, #07090c 26% 100%); box-shadow: 0 0 0 2px #0b0d11; }
.dev .sicons { display: flex; align-items: center; gap: 5px; }
.dev .sicons svg { width: 17px; height: 17px; }
.dev .sicons b { font-weight: 500; font-size: 13.5px; }
.dev .sicons .net { font-size: 11px; margin-right: 3px; }
.dev .appbar { height: 64px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px 0 16px; background: #f8fafd; }
.dev .appbar .ic { width: 24px; height: 24px; color: #444746; flex: none; }
.dev .appbar .ic:last-child { margin-left: 6px; }
.dev .appbar .av { width: 40px; height: 40px; border-radius: 50%; background: #c4eed0; color: #0a3818; display: grid; place-items: center; font: 500 18px 'Roboto', sans-serif; flex: none; }
.dev .appbar .who { flex: 1; font: 400 22px 'Roboto', sans-serif; color: #1f1f1f; letter-spacing: 0; }
.dev .convo { position: relative; flex: 1; overflow: hidden; background: #f8fafd; }
.dev .track { position: absolute; left: 0; right: 0; top: 0; padding: 6px 0 18px; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.dev .day { text-align: center; font: 500 12.5px 'Roboto', sans-serif; color: #444746; margin: 14px 0 10px; }
.dev .row { display: flex; align-items: flex-end; gap: 8px; padding: 0 64px 0 12px; margin-top: 3px; position: relative; }
.dev .row .ava { width: 32px; height: 32px; border-radius: 50%; background: #c4eed0; color: #0a3818; display: grid; place-items: center; font: 500 14px 'Roboto', sans-serif; flex: none; visibility: hidden; }
.dev .row.last .ava { visibility: visible; }
.dev .bub { position: relative; background: #e9eef6; color: #1f1f1f; font: 400 16px/1.36 'Roboto', sans-serif; letter-spacing: .1px; padding: 10px 14px 11px; border-radius: 20px 20px 20px 4px; transition: box-shadow .4s ease, background .4s ease; overflow-wrap: anywhere; }
.dev .row:not(.last) .bub { border-radius: 20px 20px 20px 4px; }
.dev .row.first .bub { border-radius: 20px 20px 20px 4px; }
.dev .row.mid .bub, .dev .row.last .bub { border-top-left-radius: 4px; }
.dev .row.last .bub { border-bottom-left-radius: 20px; }
.dev .when { font: 400 12px 'Roboto', sans-serif; color: #444746; padding: 4px 0 0 52px; }
.dev .bub .amt, .dev .bub .pay { border-radius: 4px; transition: background .45s ease, color .45s ease, box-shadow .45s ease; }
.dev .row.on .bub { box-shadow: 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 6%, #e9eef6); }
.dev .row.on .amt { background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 22%, transparent); color: #111; font-weight: 500; }
.dev .row.on .pay { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dev .tag { position: absolute; right: 8px; bottom: -11px; transform: translateY(6px) scale(.85); opacity: 0; transition: opacity .35s ease .15s, transform .45s cubic-bezier(.3,1.5,.5,1) .15s; background: var(--c); color: #fff; font: 600 13px 'Hanken Grotesk', 'Roboto', sans-serif; padding: 5px 11px 5px 9px; border-radius: 99px; box-shadow: 0 4px 10px rgba(0,0,0,.18); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; z-index: 2; }
.dev .tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .9; }
.dev .row.on .tag { opacity: 1; transform: none; }
.dev .row.has-tag { margin-bottom: 14px; }
.dev .scan { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: linear-gradient(90deg, transparent, #3ddc97 30%, #3ddc97 70%, transparent); box-shadow: 0 0 22px 6px rgba(61,220,151,.45); opacity: 0; z-index: 3; pointer-events: none; transition: top .45s ease, opacity .3s; }
.dev .compose { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; background: #f8fafd; }
.dev .compose .plus, .dev .compose .mic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #444746; flex: none; }
.dev .compose .plus { background: #e1e3e1; }
.dev .compose .plus svg, .dev .compose .mic svg { width: 24px; height: 24px; }
.dev .compose .field { flex: 1; height: 48px; border-radius: 24px; background: #e9eef6; display: flex; align-items: center; gap: 12px; padding: 0 16px; font: 400 16px 'Roboto', sans-serif; color: #444746; }
.dev .compose .field svg { width: 22px; height: 22px; color: #444746; }
.dev .compose .field svg:first-of-type { margin-left: auto; }
.dev .gnav { height: 30px; flex: none; display: grid; place-items: center; background: #f8fafd; }
.dev .gnav i { width: 108px; height: 4px; border-radius: 4px; background: #1f1f1f; opacity: .85; }
.phonewrap { gap: 0; }
.tally4 { margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { .dev .track, .dev .scan { transition: none; } }
.dev .row.on .bub { box-shadow: 0 0 0 1.5px var(--c); }

/* ===== Home page: wallets, live minis, questions first, shared money (Nov 2026) ===== */
.honest { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--credit); }
.sec-h { font-size: clamp(28px, 4vw, 44px); max-width: 22ch; margin-bottom: 18px; }
.sec-h em { display: block; }
.sec-h3 { font-size: 22px; margin-bottom: 8px; }
.lede-s { font-size: 18px; max-width: 62ch; }

.rails { border-block: 1px solid var(--line); background: #fff; padding: 34px 0 30px; }
.rails-head { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; justify-content: space-between; }
.rails-head h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0; max-width: none; }
.rails-head p { margin: 0; max-width: 52ch; }
.rail-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rail { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; background: #fff; }
.rail b { font: 700 19px/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.rail span { font-size: 13px; color: var(--muted); }
.rail em { font-style: normal; font-size: 12.5px; margin-top: 8px; line-height: 1.35; color: var(--text); }
.rail::after { content: ''; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; }
.rail.full { border-color: var(--in); box-shadow: 0 0 0 1px var(--in) inset; }
.rail.full::after { background: var(--in); box-shadow: 0 0 0 4px var(--in-tint); }
.rail.beta::after { background: var(--loan); box-shadow: 0 0 0 4px #fdf0d9; }
.rail.soon { border-style: dashed; }
.rail.soon::after { background: #fff; border: 1.5px solid var(--ctl); }
.ticker { margin-top: 16px; display: flex; gap: 12px; align-items: center; font: 13px/1.4 var(--mono); color: var(--text); background: var(--panel); border-radius: 10px; padding: 10px 14px; overflow: hidden; min-height: 42px; }
.tk-prov { flex: none; font: 600 12px var(--sans); background: var(--ink); color: #fff; border-radius: 99px; padding: 3px 10px; }
.tk-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .amt { color: var(--in); font-weight: 700; } .ticker .pay { color: #8a5300; font-weight: 600; }
.ticker.go .tk-msg, .ticker.go .tk-prov { animation: tkIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes tkIn { from { opacity: 0; transform: translateY(8px); } }

.see { padding-top: 64px; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.mini { border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; background: #fff; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.mini:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(15,38,32,.35); }
.mv { height: 150px; display: grid; place-items: center; margin-bottom: 12px; background: linear-gradient(180deg, #f7faf8, #fff); border-radius: 12px; padding: 8px; position: relative; }
.mv svg { width: 100%; height: 100%; max-height: 136px; overflow: visible; }
.vt { font: 10.5px var(--sans); fill: var(--muted); } .vt.b { font-weight: 700; fill: var(--out); }
.mn { display: flex; flex-direction: column; gap: 1px; }
.mbig { font: var(--hw) clamp(26px, 2.8vw, 32px)/1.1 var(--serif); letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1.1em; }
.mlab { font-weight: 600; font-size: 15px; }
.mini p { margin: 6px 0 0; }
/* minis: motion */
.mini .wipe { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.3,.7,.2,1) .1s; }
.mini.in .wipe { transform: scaleX(1); }
.mini .half { opacity: 0; transition: opacity .4s 1.3s; } .mini.in .half { opacity: 1; }
.mini .cell { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--d), transform .35s var(--d); }
.mini.in .cell { opacity: 1; transform: none; }
.mini .hb { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .6s var(--d) cubic-bezier(.2,.8,.2,1); }
.mini.in .hb { stroke-dashoffset: 0; }
.vkey { position: absolute; right: 10px; bottom: 6px; display: flex; gap: 10px; font-size: 11px; color: var(--muted); }
.vkey i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; } .vkey i.dot { border-radius: 50%; width: 8px; height: 8px; }
.mv[data-viz="fees"] { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 10px; padding: 14px; }
.feebar { position: relative; height: 26px; border-radius: 6px; background: var(--panel); overflow: hidden; }
.feebar .seg { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--d) cubic-bezier(.2,.8,.2,1); border-right: 2px solid #fff; }
.mini.in .feebar .seg { transform: none; }
.feekey { display: grid; gap: 3px; font-size: 12px; color: var(--text); }
.feekey span { display: flex; align-items: center; gap: 6px; } .feekey i { width: 10px; height: 10px; border-radius: 3px; } .feekey b { margin-left: auto; font: 500 12px var(--mono); }
.avoid { font-size: 12.5px; color: var(--out); } .avoid b { font-family: var(--mono); }
.mv[data-viz="sort"] { grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.deckm { position: relative; height: 110px; }
.pc { position: absolute; inset: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; transform: rotate(calc((var(--i) - 1.5) * 3deg)) translateY(calc(var(--i) * -2px)); transition: transform .6s cubic-bezier(.3,.7,.2,1), opacity .6s; }
.pc b { font: 700 16px/1.15 var(--serif); } .pc small { font: 11px var(--mono); color: var(--muted); margin-top: 3px; }
.pc.out { transform: translateX(120%) rotate(14deg); opacity: 0; }
.chips { display: flex; flex-direction: column; gap: 5px; }
.chips span { font-size: 11.5px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; background: #fff; transition: background .3s, color .3s, border-color .3s; }
.chips span.hit { background: var(--in); color: #fff; border-color: var(--in); }
.mv[data-viz="ai"] { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; padding: 12px; }
.ai-row { display: flex; justify-content: space-between; gap: 4px; }
.ai-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); }
.ai { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); overflow: hidden; flex: none; }
.ai .lm { font: 700 15px var(--serif); color: var(--ink); }
.ai img { width: 22px; height: 22px; object-fit: contain; }
.ai-prompt { font: 12px/1.45 var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 62px; color: var(--text); }
.caret { display: inline-block; width: 7px; height: 13px; background: var(--brand); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-choices button { display: inline-flex; align-items: center; gap: 8px; }
.ai-choices .ai { width: 24px; height: 24px; border-radius: 7px; } .ai-choices .ai .lm { font-size: 12px; } .ai-choices .ai img { width: 17px; height: 17px; }

.share-strip { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: center; margin: 44px 0 70px; padding: 30px; border-radius: 22px; background: var(--ink); color: #fff; }
.share-strip h3, .share-strip .kicker { color: #fff; } .share-strip .kicker { opacity: .7; }
.share-strip .muted { color: #c9dcd4; max-width: 52ch; }
.share-strip .btn { background: #3ddc97; border-color: #3ddc97; color: var(--ink); }
.share-card { aspect-ratio: 9 / 16; border-radius: 18px; background: linear-gradient(165deg, #17803f 0%, #0f4f3a 70%); color: #fff; padding: 18px 16px 14px; display: flex; flex-direction: column; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transform: rotate(-3deg); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.share-card.in { transform: rotate(-3deg) translateY(-4px); }
.sc-top { font-size: 12px; opacity: .85; } .sc-big { font: 700 28px/1.05 var(--serif); letter-spacing: -.03em; margin-top: 18px; font-variant-numeric: tabular-nums; } .sc-sub { font-size: 12px; opacity: .8; }
.sc-lines { margin-top: auto; display: grid; gap: 10px; }
.sc-lines div { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.25); padding-top: 7px; } .sc-lines b { font: 700 18px var(--serif); } .sc-lines span { font-size: 11px; opacity: .8; }
.sc-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 8.5px; opacity: .85; } .sc-foot .lock { font: 700 13px var(--serif); } .sc-foot .lock i { font-weight: 500; }

.asks { background: var(--panel); border-block: 1px solid var(--line); padding: 64px 0; }
.asks-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 26px; }
.ladder { list-style: none; padding: 0; margin: 14px 0 0; position: relative; }
.ladder::before { content: ''; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--in-tint), var(--in)); }
.ladder li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; position: relative; }
.rung { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--in); display: grid; place-items: center; font: 700 15px var(--serif); color: var(--in); z-index: 1; }
.ladder li:last-child .rung { background: var(--in); color: #fff; }
.ladder b { display: block; font-size: 16px; } .ladder small { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: block; }
.ladder a, .ladder .linkbtn { white-space: nowrap; font-weight: 600; }
.proof { margin-top: 18px; background: #fff; border: 1.5px dashed var(--in); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.proof b { display: block; font: 700 17px var(--serif); margin-bottom: 2px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 10px; font: 400 24px var(--sans); color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--text); font-size: 15px; }

.shared { padding-top: 70px; }
.shared .kicker .pill { margin-left: 6px; text-transform: none; letter-spacing: 0; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 18px; }
.roles button { font: 600 14.5px var(--sans); border: 1.5px solid var(--ctl); background: #fff; color: var(--ink); border-radius: 99px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.roles button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.role-panel { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #fff; animation: tkIn .45s cubic-bezier(.2,.8,.2,1); }
.rq { font: var(--hw) clamp(22px, 2.6vw, 30px)/1.2 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; color: var(--ink); }
.rd { margin: 0; display: grid; gap: 12px; } .rd div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.rd dt { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding-top: 2px; } .rd dd { margin: 0; }
.rt { margin: 18px 0 0; background: var(--mint); border-radius: 12px; padding: 12px 14px; font-size: 15px; } .rt b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-dk); margin-bottom: 3px; }
.receipt { background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; padding: 16px; font-family: var(--mono); font-size: 13px; box-shadow: 8px 8px 0 var(--mint); transform: rotate(1.2deg); }
.receipt .rh { font: 700 15px var(--serif); text-transform: none; border-bottom: 1.5px dashed var(--ctl); padding-bottom: 8px; margin-bottom: 6px; }
.rl { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.rl span { display: flex; flex-direction: column; } .rl small { color: var(--muted); font-size: 11px; } .rl b { font-weight: 600; white-space: nowrap; }
.rf { margin-top: 10px; color: var(--in); font-weight: 600; font-family: var(--sans); font-size: 13.5px; }
.rc { margin-top: 12px; font: 600 11px var(--serif); color: var(--muted); } .rc i { font-weight: 400; }
.rp-r .small { text-align: center; margin-top: 12px; }
.contract { margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px 30px; }
.contract h3 { grid-row: span 2; }
.contract ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tm { flex-basis: 100%; margin: 6px 0 0; font-size: 12.5px; max-width: 90ch; }

@media (max-width: 960px) {
  .rail-list { grid-template-columns: repeat(2, 1fr); } .rail-list .rail:last-child { grid-column: span 2; }
  .minis { grid-template-columns: repeat(2, 1fr); }
  .asks-grid, .role-panel, .contract { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .minis { grid-template-columns: 1fr; }
  .share-strip { grid-template-columns: 1fr; padding: 22px; } .share-card { max-width: 200px; margin: 0 auto; }
  .rd div { grid-template-columns: 1fr; gap: 2px; }
  .ladder li { grid-template-columns: 36px 1fr; } .ladder li > a, .ladder li > .linkbtn { grid-column: 2; justify-self: start; }
  .role-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .mini .wipe, .mini .half, .mini .cell, .mini .hb, .feebar .seg, .pc, .share-card { transition: none !important; } .caret, .ticker.go .tk-msg { animation: none; } }

.mv[data-viz="sort"] { place-items: stretch; align-items: center; }
.deckm { width: 100%; }
.mv[data-viz="ai"] { height: auto; min-height: 150px; }
.ai .lm { font-size: 11.5px; letter-spacing: -.02em; }
.ai-choices .ai .lm { font-size: 9.5px; }
.mv[data-viz="clock"] svg { max-height: 142px; }
.rail-list { align-items: stretch; }
.mv[data-viz="clock"] svg { width: 142px; height: 142px; }
.rail b { padding-right: 16px; }

.rail-list { grid-template-columns: repeat(4, 1fr); }
.wl.has-logo { padding: 0; line-height: 0; } .wl img { height: 30px; width: auto; max-width: 150px; display: block; }
.rail span { line-height: 1.5; }
.fict { margin: 6px 0 0; max-width: 80ch; font-size: 13px; }
@media (max-width: 960px) { .rail-list .rail:last-child { grid-column: auto; } }
@media (max-width: 600px) { .rail-list { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .rail { min-width: 0; } }

.wl[data-logo="mtn"] img { height: 42px; margin: -6px 0 -2px; }
.rl-logos { display: flex; gap: 10px; align-items: center; margin: 4px 0 2px; }
.wl-sm { font-style: normal; font-size: 12px; } .wl-sm img { height: 26px; max-width: 100%; }
.rl-logos { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; max-width: 100%; }

.wl[data-logo="airtel"] img { height: 40px; margin: -5px 0 -1px; }

.aq { margin: 26px 0 10px; display: flex; flex-direction: column; gap: 2px; } .aq b { font-size: 17px; }
.choices.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; max-width: 900px; }
.choices.opts button { border-radius: 14px; text-align: left; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-height: 0; }
.choices.opts button b { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.choices.opts button small { font-size: 13.5px; line-height: 1.4; color: var(--muted); font-weight: 400; }
.choices.opts button[aria-pressed="true"] { background: var(--mint); color: var(--ink); border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand) inset; }
.choices.opts button[aria-pressed="true"] small { color: var(--text); }

.rail .flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; font-size: 22px; line-height: 1; }
.rail .flags i { font-style: normal; cursor: default; }
.rail .rest { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* Flags as round badges in an overlapping stack */
.rail .flags { gap: 0; margin: 8px 0 2px; padding-left: 6px; }
.rail .flags i { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 40px; line-height: 1; margin-left: -6px; box-shadow: 0 0 0 2.5px #fff, 0 1px 3px rgba(15,38,32,.25); background: #fff; position: relative; transition: transform .2s; }
.rail .flags i:hover { transform: translateY(-3px); z-index: 2; }
.rail .flags { gap: 7px; padding-left: 0; }
.rail .flags i { width: 32px; height: 22px; border-radius: 5px; margin-left: 0; font-size: 34px; box-shadow: 0 0 0 1px rgba(15,38,32,.14), 0 2px 5px -2px rgba(15,38,32,.35); }
/* Flags: plain emoji, nothing else */
.rail .flags { gap: 6px; margin: 8px 0 2px; padding-left: 0; font-size: 22px; }
.rail .flags i { width: auto; height: auto; border-radius: 0; overflow: visible; display: inline; font-size: 22px; margin: 0; box-shadow: none; background: none; transform: none; }
.rail .flags i:hover { transform: none; }
.ai-empty { border: 1.5px solid var(--brand); background: var(--mint); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; margin: 22px 0; max-width: 760px; }
.ai-empty b { font-size: 18px; } .ai-empty span { color: var(--text); } .ai-empty .btn-row { margin-top: 8px; }

.theme-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; margin-left: 6px; }
.theme-btn:hover { background: var(--panel); }
.theme-btn svg { width: 18px; height: 18px; } .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; } html[data-theme="dark"] .theme-btn .moon { display: none; }

.rp-r { position: relative; }
.rphoto { margin: 0 0 -70px; position: relative; }
.rphoto img { width: 100%; height: auto; aspect-ratio: 960 / 717; object-fit: cover; border-radius: 16px; display: block; }
.rphoto figcaption { position: absolute; left: 10px; top: 10px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 99px; }
.rp-r .receipt { position: relative; width: 82%; margin-left: auto; margin-right: 6px; z-index: 1; }

/* Ask your AI: every option is a visible card, chosen or not */
.choices.opts button { background: var(--panel); border: 1.5px solid var(--ctl); color: var(--ink); }
.choices.opts button:hover { border-color: var(--brand); }
.choices.opts button small { color: var(--text); }
.choices.opts button[aria-pressed="true"] { background: var(--mint); border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand) inset; color: var(--ink); }
.choices.opts button[aria-pressed="true"] b::after { content: '✓'; margin-left: auto; color: var(--brand); font-weight: 700; }
.choices.opts button b { width: 100%; }
.ai-choices.opts { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.ai-choices.opts button { padding: 12px 14px; }
.ai-choices.opts .ai { width: 30px; height: 30px; border-radius: 8px; } .ai-choices.opts .ai img { width: 20px; height: 20px; } .ai-choices.opts .ai .lm { font-size: 11px; }
.ai-other { font: 600 18px var(--sans); color: var(--muted); }

/* Story mode wallpapers (override the per-slide tones) */
.sm .frame { background: var(--sbgi, var(--sbg)); }
.sm .frame[data-wall="paper"] { --sbg: #ffffff; --sbgi: none; --sfg: #0f2620; --sac: #17694e; }
.sm .frame[data-wall="night"] { --sbg: #121416; --sbgi: radial-gradient(120% 80% at 80% 0%, #24302a 0, #121416 60%); --sfg: #f2f5f3; --sac: #5fd39a; }
.sm .frame[data-wall="savannah"] { --sbg: #e7b44c; --sbgi: linear-gradient(170deg, #f3d27a 0%, #e0a03a 55%, #b8661f 100%); --sfg: #2a1606; --sac: #5a2a07; }
.sm .frame[data-wall="jacaranda"] { --sbg: #5b3fb0; --sbgi: linear-gradient(165deg, #8a6be0 0%, #5b3fb0 50%, #2c1c63 100%); --sfg: #ffffff; --sac: #e6dcff; }
.sm .frame[data-wall="sunset"] { --sbg: #e8573a; --sbgi: linear-gradient(170deg, #ffb35c 0%, #f0643e 50%, #a8234a 100%); --sfg: #ffffff; --sac: #fff0d6; }
.sm .frame[data-wall="paper"] .bar i, .sm .frame[data-wall="savannah"] .bar i { background: rgba(0,0,0,.18); }
.sm .frame.hideamt .slide .sv.money { filter: blur(.42em); user-select: none; }
.sm .walls { display: flex; gap: 6px; align-items: center; padding: 4px 8px; background: #24242b; border: 1px solid #5c5c68; border-radius: 99px; }
.sm .walls .wsw { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; cursor: pointer; }
.sm .walls .wsw[aria-pressed="true"] { box-shadow: 0 0 0 2px #3ddc97; }
.wsw[data-wall="auto"] { background: conic-gradient(#17803f 0 25%, #d23b2e 0 50%, #2457d6 0 75%, #e4f4ec 0); }
.wsw[data-wall="paper"] { background: #fff; } .wsw[data-wall="night"] { background: #121416; }
.wsw[data-wall="savannah"] { background: linear-gradient(170deg, #f3d27a, #b8661f); } .wsw[data-wall="jacaranda"] { background: linear-gradient(165deg, #8a6be0, #2c1c63); } .wsw[data-wall="sunset"] { background: linear-gradient(170deg, #ffb35c, #a8234a); }

/* Hero proof row, language switch, five-figure tally, plans */
.proofrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--mint); color: var(--brand-dk); border: 1px solid var(--brand-tint2); }
.chip svg { width: 15px; height: 15px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.lang button { font: 500 12.5px var(--sans); border: 0; background: transparent; color: var(--muted); padding: 6px 11px; cursor: pointer; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tally4 { grid-template-columns: repeat(5, 1fr); width: min(100%, 600px); }
@media (max-width: 520px) { .tally4 { grid-template-columns: repeat(3, 1fr); } }
.minis { grid-template-columns: repeat(3, 1fr); }
.plans { padding-top: 70px; }
.plan-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 14px; }
.plan { border: 1.5px solid var(--line); border-radius: 18px; padding: 22px; background: var(--bg); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan h3 { font-size: 24px; margin: 0; }
.price { font: 700 18px var(--mono); color: var(--brand); white-space: nowrap; }
.plan p { color: var(--text); margin: 8px 0 10px; }
.plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }
.rescue { margin-top: 12px; border: 1px dashed var(--brand); border-radius: 12px; padding: 10px 14px; background: var(--mint); }
.rescue summary { font-weight: 600; cursor: pointer; }
.rescue ol { margin: 8px 0 4px; }
@media (max-width: 960px) { .plan-cards, .minis { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 16ch; }
.tally4 b { font-size: clamp(16px, 1.9vw, 21px); }

.seen { padding-top: 70px; }
.seen-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 14px; }
.seen-card { border: 1.5px solid var(--line); border-radius: 18px; padding: 22px; background: var(--bg); }
.seen-card h3 { font-size: 23px; margin: 0 0 8px; }
.seen-card p { margin: 0 0 10px; color: var(--text); }
.seen-card .seen-tip { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--mint); font-size: 15px; }
.seen-card .seen-tip b { color: var(--brand-dk); }
@media (max-width: 960px) { .seen-cards { grid-template-columns: 1fr; } }

/* Hero: the phone held in a hand, Apple-style. The photo sits on top; its screen is a transparent hole, and the live chat sits behind it. */
.inhand { position: relative; width: min(100%, 470px); aspect-ratio: 780 / 1380; margin: 0 auto; }
.inhand .handimg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.inhand .devbox { position: absolute; left: 16.85%; top: 3.38%; width: 56.1%; height: 68.2%; aspect-ratio: auto; margin: 0; z-index: 1; overflow: hidden; border-radius: 7% / 3.2%; background: #f8fafd; }
.inhand .dev { width: 412px; height: 886px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.inhand .dev .key { display: none; }
.inhand .dev .glass { border-radius: 0; height: 886px; }
.inhand .dev .sbar .hole { opacity: 0; }
.inhand .dev .gnav { padding-bottom: 6px; }
@media (max-width: 520px) { .inhand { width: min(100%, 360px); } }

.seen-cards { grid-template-columns: repeat(3, 1fr); }
.seen-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.seen-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.seen-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.seen-card h3 { margin: 0; }
.seen-card p { margin: 0; }
.seen-check { font-size: 14.5px; color: var(--muted); } .seen-check b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin-bottom: 2px; }
.seen-card .seen-tip { margin-top: auto; } .seen-card .seen-tip b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 2px; }
.pats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.pat { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--bg); }
.pat img, .pat-noimg { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; }
.pat-noimg { display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 600 13px var(--mono); }
.pat b { display: block; font: var(--hw) 19px var(--serif); margin-bottom: 3px; } .pat span { font-size: 15px; color: var(--text); }
@media (max-width: 960px) { .seen-cards { grid-template-columns: repeat(2, 1fr); } .pats { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .seen-cards { grid-template-columns: 1fr; } }

.worth { margin: 40px 0 70px; padding: 30px; border: 1.5px solid var(--brand); border-radius: 22px; background: var(--mint); }
.worth h2 { margin-bottom: 8px; } .worth .k { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.wq { margin: 18px 0 8px; }
.worth .choices.opts { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); max-width: none; }
.worth .choices.opts button { background: var(--bg); }
.wuse { display: flex; flex-wrap: wrap; gap: 8px; }
.wuse button { font: 500 14px var(--sans); border: 1.5px solid var(--ctl); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.wuse button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wthanks { margin-top: 10px; font-size: 17px; } .wthanks .btn-row { margin-top: 14px; }

.nw { white-space: nowrap }

/* Ask your own AI: a 2x2 bento tile with real logos */
.minis .mini-ai { grid-column: 2 / span 2; grid-row: 1 / span 2; }
.minis .mini[data-m="lasts"] { grid-column: 1; grid-row: 1; }
.minis .mini[data-m="cal"] { grid-column: 1; grid-row: 2; }
.mini-ai .mn { order: -2; } .mini-ai > p { order: -1; margin: 4px 0 14px; max-width: 58ch; }
.mv-ai { height: auto; display: flex; flex-direction: column; gap: 14px; align-items: stretch; padding: 16px; }
.mini-ai .ai-row { justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
.mini-ai .ai-tile { font-size: 12px; transition: color .3s; }
.mini-ai .ai { width: 48px; height: 48px; border-radius: 13px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.mini-ai .ai img { width: 30px; height: 30px; }
.mini-ai .ai-tile.on { color: var(--ink); font-weight: 600; }
.mini-ai .ai-tile.on .ai { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,105,78,.14); transform: translateY(-2px); }
.ai-chat { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ai-who { font-size: 11.5px; color: var(--muted); }
.ai-bubble { align-self: flex-end; max-width: 92%; background: var(--brand); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 14.5px; line-height: 1.45; min-height: 44px; }
.ai-bubble .caret { background: #fff; }
.ai-att { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.ai-clip { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; background: var(--mint, #e4f4ec); color: var(--brand); font-weight: 700; }
.ai-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 16px 0 6px; }
.ai-facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.ai-facts dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.ai-go { align-self: flex-start; margin-top: 8px; }
@media (max-width: 1100px) { .minis .mini-ai, .minis .mini[data-m="lasts"], .minis .mini[data-m="cal"] { grid-column: auto; grid-row: auto; } .minis .mini-ai { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ai-facts { grid-template-columns: 1fr; } .mini-ai .ai { width: 42px; height: 42px; } }
html[data-theme="dark"] .ai img[src$="chatgpt.png"] { filter: invert(1); }

/* Hero: the period word turns over without moving the line below */
.hero-h em { display: block; }
.hero h1.hero-h { max-width: none; }
.rot { display: inline-grid; vertical-align: baseline; color: #c0392b; }
.rot b { grid-area: 1 / 1; font-weight: inherit; opacity: 0; transform: translateY(28%); transition: opacity .45s, transform .45s cubic-bezier(.3,.7,.2,1); white-space: nowrap; }
.rot b.on { opacity: 1; transform: none; }
.rot b.out { opacity: 0; transform: translateY(-28%); }
.hero-h em { font-size: .86em; margin-top: .12em; text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ask your AI page: what to do next, per assistant */
.ai-next { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 14px 0 18px; background: #fff; }
.ai-next-h { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ai-next-h .ai { width: 36px; height: 36px; } .ai-next-h .ai img { width: 24px; height: 24px; }
.ai-steps { margin: 12px 0 8px; padding-left: 22px; line-height: 1.6; }
.ai-steps li { margin: 2px 0; }
.ai-priv { margin: 8px 0 0; font-size: 14px; color: var(--text); background: #f6f8f7; border-radius: 10px; padding: 10px 12px; }
.ai-pre-h { margin: 18px 0 6px; }
.ai-follow { margin-top: 22px; }
.ai-fq { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ai-fq button { font: 14px var(--sans); text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; min-height: 44px; cursor: pointer; color: var(--ink); }
.ai-fq button:hover { border-color: var(--brand); }

.gh { display: inline-flex; align-items: center; gap: 5px; }
.gh img { width: 16px; height: 16px; }
html[data-theme="dark"] .gh img { filter: invert(1); }

/* Restored base styles (lost in the November restyle) */
.toggle { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.toggle button { font: 500 14px var(--sans); border: 1.5px solid var(--ctl); background: #fff; border-radius: 99px; padding: 8px 14px; min-height: 44px; cursor: pointer; color: var(--ink); }
.toggle button[aria-pressed="true"] { color: #fff; }
.toggle button[data-m="in"][aria-pressed="true"] { background: var(--in); border-color: var(--in); }
.toggle button[data-m="out"][aria-pressed="true"] { background: var(--out); border-color: var(--out); }
.toggle button[data-m="net"][aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.toggle button[data-m="credit"][aria-pressed="true"] { background: var(--credit); border-color: var(--credit); }
.habits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.habit { padding: 16px 18px; background: #fff; }
.habit .t { font-size: 13px; color: var(--muted); }
.habit .v { font-family: var(--serif); line-height: 1.1; margin: 4px 0; font-variant-numeric: tabular-nums; }
.habit .s { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
table.merch { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
table.merch th, table.merch td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.merch th { font-size: 13px; color: var(--muted); font-weight: 500; }
table.merch .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.credit-line { font-size: 14px; color: var(--muted); }

/* Swipe rows and dots (phones only) */
.swipe-dots { display: none; }
.mcta { display: none; }
@media (max-width: 720px) {
  /* Header: one brand row, one scrolling nav row */
  .top .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 2px; column-gap: 10px; padding-block: 8px 4px; }
  .top .brand { grid-column: 1; grid-row: 1; }
  .top .demo-badge { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin: 2px 0 6px; }
  .top .theme-btn { grid-column: 2; grid-row: 1; }
  .top .nav { grid-column: 1 / -1; grid-row: 2; width: auto; flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; gap: 2px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); scroll-snap-type: x proximity; }
  .top .nav a { padding: 10px 12px; min-height: 40px; display: inline-flex; align-items: center; font-size: 14.5px; scroll-snap-align: start; }
  /* Horizontal swipe for the 6 minis and the 6 patterns */
  [data-swipe] { display: flex !important; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -20px; padding: 4px 20px 6px; scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] { align-items: flex-start; }
  [data-swipe] > * { flex: 0 0 86%; scroll-snap-align: start; grid-column: auto !important; grid-row: auto !important; margin: 0 !important; }
  .swipe-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 12px 0 4px; font-size: 12.5px; color: var(--muted); }
  .swipe-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
  .swipe-dots i.on { background: var(--ink); width: 18px; border-radius: 4px; }
  .swipe-dots span { margin-left: 8px; }
  .mini-ai .ai-row { gap: 8px; flex-wrap: nowrap; }
  .mini-ai .ai { width: 40px; height: 40px; border-radius: 11px; } .mini-ai .ai img { width: 24px; height: 24px; }
  .mini-ai .ai-tile small { font-size: 10.5px; }
  /* Sticky call to action on the home page */
  .mcta { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(15,38,32,.16); transform: translateY(140%); transition: transform .3s ease; }
  .mcta.on { transform: none; }
  .mcta[hidden] { display: none; }
  .mcta .btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: 15px; }
  /* Privacy routes as cards */
  table.risk-table, table.risk-table tbody, table.risk-table tr, table.risk-table td { display: block; width: 100%; }
  table.risk-table thead { display: none; }
  table.risk-table tr { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
  table.risk-table td { border: 0; padding: 4px 0; }
  table.risk-table td:first-child { font-size: 17px; padding-bottom: 6px; }
  table.risk-table td:nth-child(2)::before { content: "Who it suits"; }
  table.risk-table td:nth-child(3)::before { content: "What you give access to"; }
  table.risk-table td:nth-child(4)::before { content: "Watch out for"; }
  table.risk-table td:not(:first-child)::before { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-top: 6px; }
  .scrollx:has(> table.risk-table) { overflow: visible; }
  /* Rails: no sideways overflow */
  .rails, .rail { min-width: 0; max-width: 100%; }
  .habits { grid-template-columns: 1fr 1fr; gap: 10px; }
  .habit { padding: 12px 14px; } .habit .v { font-size: 26px; }
  .ladder a, .try a { display: inline-flex; min-height: 40px; align-items: center; }
}

/* ===== November 20 round: icons, privacy, attach, AI show-and-tell, sort, budget, currency, legal ===== */
.ic { width: 22px; height: 22px; flex: none; color: currentColor; vertical-align: middle; }
.ic.lg { width: 30px; height: 30px; } .ic.xl { width: 40px; height: 40px; } .ic.big { width: 34px; height: 34px; }
kbd { font: 600 12px var(--mono); border: 1px solid var(--ctl); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: #fff; color: var(--ink); }
.keys { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }

/* Currency control and note */
.cursel select { font: 600 13px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 26px 7px 12px; min-height: 38px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 12px center, right 7px center; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.top .wrap { gap: 10px; }
.fxnote { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13.5px; padding: 6px 0; color: var(--muted); }
.fxnote.conv { background: #fff8e6; border-bottom-color: #f1dfae; color: #5c4400; }
.fxin { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.cursel { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-left: auto; white-space: nowrap; }
.fxmsg { flex: 1 1 260px; }
.fxnote .linkbtn { margin-left: 6px; }

/* Privacy */
.pflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin: 26px 0 18px; }
.pf-step { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.pf-step .ic { color: var(--brand); } .pf-step b { font-size: 16px; } .pf-step span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pf-here { background: var(--brand-tint); border-color: var(--brand-tint2); }
.pf-none { border-style: dashed; } .pf-none .ic { color: var(--out); } .pf-none b { color: var(--out); }
.pf-arrow { display: grid; place-items: center; color: var(--ctl); } .pf-stop { color: var(--out); }
.ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.ptile { background: var(--panel); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.ptile .ic { color: var(--brand); } .ptile b { font-size: 16px; } .ptile span { font-size: 14px; color: var(--text); line-height: 1.5; }
.ptest { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; border: 1.5px dashed var(--brand); border-radius: 18px; padding: 20px 22px; margin: 6px 0 34px; }
.ptest-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.ptest-steps { margin: 6px 0 8px; padding-left: 20px; } .ptest-steps li { margin: 3px 0; }
.pkeep { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 8px; }
.pk { border-radius: 16px; padding: 16px 18px; } .pk b { display: flex; align-items: center; gap: 8px; } .pk ul { margin: 8px 0 0; padding-left: 20px; } .pk li { margin: 3px 0; font-size: 15px; }
.pk-yes { background: var(--in-tint); } .pk-yes .ic { color: var(--in); }
.pk-no { background: var(--out-tint); } .pk-no .ic { color: var(--out); }
.routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin: 14px 0 12px; }
.route { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; display: flex; flex-direction: column; }
.route h3 { font-size: 19px; margin: 12px 0 8px; }
.route-ic { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); flex-wrap: wrap; }
.route-ic .wl img { height: 30px; }
.route-ic .ai { width: 34px; height: 34px; border-radius: 10px; } .route-ic .ai img { width: 20px; height: 20px; }
.route dl { margin: 10px 0 0; } .route dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-top: 10px; } .route dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; }
.meter { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.meter .bars { display: inline-flex; gap: 3px; } .meter .bars i { width: 16px; height: 7px; border-radius: 3px; background: var(--line); }
.meter.m1 .bars i.on { background: var(--in); } .meter.m2 .bars i.on { background: var(--loan); } .meter.m3 .bars i.on { background: var(--out); }
.meter.m1 span:last-child { color: var(--in); } .meter.m2 span:last-child { color: #a86500; } .meter.m3 span:last-child { color: var(--out); }
.pfinal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 10px; }
.pfin { background: var(--panel); border-radius: 16px; padding: 16px 18px; } .pfin h3 { font-size: 18px; } .pfin p { font-size: 14.5px; margin: 0; }

/* Attach */
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--panel); }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 12px; }
.stepper li.on { color: var(--ink); } .stepper li.on span { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper li.now { background: var(--brand-tint); font-weight: 600; }
.getrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 22px; }
.get { background: var(--panel); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.get svg { width: 100%; height: 54px; margin-bottom: 6px; } .get b { font-size: 15px; } .get span { font-size: 13px; color: var(--muted); }
.src-ic { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 10px; color: var(--brand); flex-wrap: wrap; }
.src-ic .wl img { height: 26px; } .src-ic .keys { margin-left: 2px; }
.source[aria-pressed="true"] .src-ic { color: var(--ink); }

/* Ask your AI: show and tell */
.ai-demo-note { background: #fff8e6; border: 1px solid #f1dfae; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; margin: 6px 0 16px; color: #4d3a00; }
.ai-show { border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 12px; background: linear-gradient(180deg, var(--panel) 0%, #fff 70%); margin: 10px 0 8px; max-width: 720px; }
.ai-show-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-show-h .ai { width: 34px; height: 34px; } .ai-show-h .ai img { width: 22px; height: 22px; }
.ai-show-chat { display: flex; flex-direction: column; gap: 10px; }
.bub { border-radius: 18px; padding: 12px 15px; max-width: 88%; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.bub.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.bub.me .att { font: 13px var(--mono); background: rgba(255,255,255,.16); border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.bub.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bub.them p { margin: 0 0 6px; } .bub.them ol { margin: 0 0 8px; padding-left: 20px; } .bub.them li { margin: 4px 0; }
.bub > .small:first-child { opacity: .75; }
.ai-show-cap { margin: 10px 2px 0; }

/* Sort: setup */
.setup { margin: 22px 0 60px; display: flex; flex-direction: column; gap: 22px; }
.setup-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.setup-step .sn { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.presets, .areas, .yesno { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.presets button, .areas button, .yesno button { font: 500 15px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--ctl); border-radius: 999px; padding: 9px 15px 9px 11px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.presets button:hover, .areas button:hover, .yesno button:hover { border-color: var(--ink); }
.presets button[aria-pressed="true"], .areas button[aria-pressed="true"], .yesno button[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand); font-weight: 600; }
.areas button[aria-pressed="false"] { opacity: .72; }
.em { font-size: 20px; line-height: 1; }
.addarea { display: flex; gap: 8px; margin-top: 12px; max-width: 460px; }
.addarea input { flex: 1; font: 15px var(--sans); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; min-height: 44px; }

/* Sort: play */
.sort-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; margin-top: 10px; }
.sort-top .progress { grid-column: 1 / -1; }
.deck { position: relative; min-height: 420px; }
.pstack i { position: absolute; left: 10px; right: 10px; top: 10px; height: 100%; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.pstack i:nth-child(2) { left: 20px; right: 20px; top: 20px; opacity: .6; }
.pcard { position: relative; z-index: 2; transition: transform .22s ease, opacity .22s ease; }
.pcard.nudge-r { transform: translateX(14px) rotate(1.5deg); } .pcard.nudge-l { transform: translateX(-14px) rotate(-1.5deg); }
.phead { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 19px var(--sans); flex: none; }
.ask { font-family: var(--serif); font-size: 21px; margin: 18px 0 6px; }
.bp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bp button { font: 600 17px var(--sans); border-radius: 16px; padding: 16px; min-height: 64px; cursor: pointer; border: 2px solid; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bp-p { background: #eef3fd; border-color: #2a78d6 !important; color: #174f99; }
.bp-b { background: #fdf0e8; border-color: #eb6834 !important; color: #9b3a12; }
.bp button:hover { transform: translateY(-1px); }
.swipe-hint { margin: 10px 0 0; text-align: center; }
.emo-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.emo-cats button { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; min-height: 76px; position: relative; }
.emo-cats .em { font-size: 26px; } .emo-cats .cl { font-size: 14px; line-height: 1.3; }
.emo-cats kbd { position: absolute; top: 8px; right: 8px; }
.stamp { position: absolute; top: 22px; font: 800 22px var(--sans); letter-spacing: .06em; border: 3px solid; border-radius: 8px; padding: 2px 10px; opacity: 0; pointer-events: none; z-index: 3; }
.st-l { right: 22px; color: #2a78d6; transform: rotate(12deg); } .st-r { left: 22px; color: #eb6834; transform: rotate(-12deg); }
.pcard.done { text-align: center; } .big-emo { font-size: 54px; }
.trow { padding: 9px 0; border-bottom: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.tl .em { font-size: 18px; } .tl .num small { color: var(--muted); font-size: 12px; }
.tbar { height: 8px; background: var(--panel2); border-radius: 99px; margin-top: 6px; overflow: hidden; } .tbar i { display: block; height: 100%; border-radius: 99px; transition: width .4s ease; }
#narr b { font-weight: 600; }

/* Budget */
.b-in .v { color: var(--in); } .b-out .v { color: var(--out); }
.bstack-wrap { margin: 26px 0 8px; }
.bstack { display: flex; height: 34px; border-radius: 12px; overflow: hidden; gap: 2px; background: #fff; }
.bstack i { display: block; min-width: 4px; transition: flex-grow .5s ease; }
.blegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13.5px; }
.blegend span { display: inline-flex; align-items: center; gap: 6px; } .blegend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; } .blegend b { font-weight: 600; }
.bhead { margin: 30px 0 6px; }
.blist { display: flex; flex-direction: column; gap: 8px; }
.brow { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(120px, 2fr) 120px 120px 140px; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; background: #fff; }
.bname { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; } .bname .em { font-size: 22px; }
.btrack { position: relative; height: 12px; background: var(--panel2); border-radius: 99px; }
.bavg { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--c); transition: width .5s ease; }
.btgt { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); transition: left .3s ease; }
.btgt.under { background: var(--in); } .btgt.over { background: var(--out); }
.bnum { text-align: right; font-variant-numeric: tabular-nums; } .bnum b { display: block; font-family: var(--serif); font-weight: 400; font-size: 18px; } .bnum small { color: var(--muted); font-size: 12px; }
.bin input { width: 100%; font: 15px var(--sans); text-align: right; border: 1.5px solid var(--ctl); border-radius: 10px; padding: 8px 10px; min-height: 42px; font-variant-numeric: tabular-nums; }
.bdiff { font-size: 13.5px; font-weight: 600; text-align: right; } .bdiff.under { color: var(--in); } .bdiff.over { color: var(--out); }

/* Legal */
details.legal { flex-basis: 100%; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; background: #fff; }
details.legal summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
details.legal ol { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.55; } details.legal li { margin: 6px 0; }

@media (max-width: 860px) {
  .pflow { grid-template-columns: 1fr; } .pf-arrow { transform: rotate(90deg); height: 26px; }
  .ptiles, .pkeep, .pfinal, .getrow { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 1fr auto; grid-template-areas: "name num" "track track" "inp diff"; gap: 10px 12px; }
  .bname { grid-area: name; } .bnum { grid-area: num; } .btrack { grid-area: track; } .bin { grid-area: inp; } .bdiff { grid-area: diff; align-self: center; }
}
@media (max-width: 720px) {
  .getrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .get { padding: 10px; } .get b { font-size: 13px; line-height: 1.3; } .get span { display: none; } .get svg { height: 40px; }
  .ptest { grid-template-columns: 1fr; } .deck { min-height: 460px; }
  .emo-cats { grid-template-columns: 1fr 1fr; } .bp button { font-size: 16px; padding: 12px; }
  .stamp { font-size: 18px; top: 16px; }
}


/* After the generated dark block: hand-tuned dark fixes */
html[data-theme="dark"] .bub.me { background: #1d5c45; color: #fff; }
html[data-theme="dark"] .fxnote.conv, html[data-theme="dark"] .ai-demo-note { background: #2a2414; border-color: #4d4120; color: #f2dfa8; }

html[data-theme="dark"] .bub.me { background: #1d5c45; color: #fff; }
html[data-theme="dark"] .fxnote.conv, html[data-theme="dark"] .ai-demo-note { background: #2a2414; border-color: #4d4120; color: #f2dfa8; }

/* Hero tally: a mark on every tile, so meaning never rests on colour alone */
.tally4 .tl-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; margin-bottom: 7px; color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); }
.tally4 .tl-ic svg { width: 17px; height: 17px; }
.tally4 .tl-ic .lm { font: 700 13px/1 var(--sans); color: #fff; background: var(--c); width: 100%; height: 100%; display: grid; place-items: center; border-radius: 8px; }
.tally4 .tl-ic.has-logo { background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.tally4 .tl-ic.has-logo img { width: 24px; height: 24px; object-fit: contain; }
@media (max-width: 520px) { .tally4 .tl-ic { width: 24px; height: 24px; margin-bottom: 5px; } .tally4 .tl-ic svg { width: 15px; height: 15px; } }

.tally4 .tl-ic.has-logo { width: auto; height: 28px; padding: 0 7px; background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 8px; }
.tally4 .tl-ic.has-logo img { width: auto; height: 15px; max-width: 76px; object-fit: contain; }
@media (max-width: 520px) { .tally4 .tl-ic.has-logo { height: 24px; padding: 0 6px; } .tally4 .tl-ic.has-logo img { height: 13px; max-width: 64px; } }

.rail.full .rl-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 2px 0 4px; }
.rail.full .rl-logos .wl-sm img { height: 15px; width: auto; max-width: 84px; }

/* Home rebalance (Nov 2026): one line of ticks in the hero, trust as its own band, a headline total, calm rails */
.hero .ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text); }
.hero .ticks li { display: inline-flex; align-items: center; gap: 7px; }
.hero .ticks .ic { width: 17px; height: 17px; color: var(--brand); flex: none; }
.trustband { border-top: 1px solid var(--line); padding: 26px 0 28px; }
.trustband .tb { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.trustband li { display: flex; gap: 14px; align-items: flex-start; }
.trustband .tb-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--in-tint); color: var(--brand); }
.trustband .tb-ic .ic { width: 24px; height: 24px; }
.trustband .tb-ic.gh { background: #f1f3f2; } .trustband .tb-ic img { width: 26px; height: 26px; }
.trustband b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.trustband li span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) { .trustband .tb { grid-template-columns: 1fr; gap: 14px; } .trustband .tb-ic { width: 40px; height: 40px; border-radius: 11px; } .trustband .tb-ic .ic { width: 21px; height: 21px; } }

/* Hero totals: money in leads, the other four sit under it */
.tally4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; width: min(100%, 600px); gap: 14px 14px; margin-top: 24px; }
.tally4 > div:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.tally4 > div:first-child .tl-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; margin: 0; }
.tally4 > div:first-child .tl-ic svg { width: 22px; height: 22px; }
.tally4 > div:first-child b { font-size: clamp(34px, 4.4vw, 46px) !important; line-height: 1; }
.tally4 > div:first-child small { font-size: 14px; }
.tally4 b { font-size: clamp(21px, 2.1vw, 25px) !important; }
.tally4 small { font-size: 13px; }
@media (max-width: 520px) { .tally4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 18px; } .tally4 b { font-size: 24px !important; } .tally4 > div:first-child b { font-size: 38px !important; } }

/* Rails: equal cards, a written status instead of a dot, nothing that looks selected or tappable */
.rail.full { border-color: var(--line); box-shadow: none; }
.rail::after { display: none; }
.rail { cursor: default; padding-top: 12px; }
.rail .rstat { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 8px; background: #eef1f0; color: var(--muted); }
.rail.full .rstat { background: var(--in-tint); color: var(--in); }
.rail.beta .rstat { background: #fdf0d9; color: #8a5a00; }
.rail b { padding-right: 0; }
.rail.full .rl-logos { gap: 8px 14px; margin: 8px 0 2px; }
.rail.full .rl-logos .wl-sm img { width: auto; max-width: none; }
.rail.full .rl-logos [data-logo="fuliza"] img { height: 17px !important; }
.rail.full .rl-logos [data-logo="mshwari"] img { height: 12px !important; }
.rail.full .rl-logos [data-logo="ziidi"] img { height: 13px !important; }

/* Hero layout: copy and totals on the left, the phone on the right; on phones the totals follow the phone */
@media (min-width: 960px) {
  .hero { grid-template-areas: "copy phone" "nums phone"; grid-template-rows: auto 1fr; align-items: start; row-gap: 0; }
  .hero > .hero-copy { grid-area: copy; align-self: end; padding-top: 40px; }
  .hero > .phonewrap { grid-area: phone; }
  .hero > .hero-nums { grid-area: nums; align-self: start; }
  .hero-nums .tally4 { margin-top: 38px; }
  .hero-nums .tally4 > div:not(:first-child) b { font-size: clamp(18px, 1.75vw, 22px) !important; }
}
.hero-nums .cap { text-align: left; font-size: 12.5px; color: var(--muted); margin-top: 14px; max-width: 60ch; }
@media (max-width: 959px) { .hero-nums { margin-top: -10px; } }

/* Besley's tabular figures draw the zero lighter than the other digits, so serif numbers use proportional lining figures */
h1, h2, h3, .big .v, .mcard .a, .ledger .a, .pcard .facts b, .sm .slide .sv, .tally4 b, .habit .v, .insight, .pa, .bstat b, .sv, .v, .a { font-variant-numeric: lining-nums proportional-nums !important; }

/* Who got paid most: one ranked list, bars to compare at a glance */
.paidlist { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 4px; }
.paidlist li { display: grid; grid-template-columns: 18px 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.paidlist .pr { font-size: 13px; color: var(--muted); text-align: right; }
.paidlist .pav { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--sans); color: hsl(var(--h) 45% 28%); background: hsl(var(--h) 55% 92%); }
.paidlist .pn { font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paidlist .pcat { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.paidlist .pbar { height: 8px; border-radius: 4px; background: #eef1f0; margin-top: 7px; overflow: hidden; }
.paidlist .pbar i { display: block; height: 100%; border-radius: 4px; background: var(--out); opacity: .82; }
.paidlist .pa { font: 600 19px/1 var(--serif); color: var(--ink); white-space: nowrap; }
@media (max-width: 520px) { .paidlist li { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; } .paidlist .pr { display: none; } .paidlist .pav { width: 34px; height: 34px; font-size: 12px; } .paidlist .pa { font-size: 16px; } }

/* Habits: a mark on every card, plus a meter for shares and a dot row for weekly counts */
.habit .ht { display: flex; align-items: center; gap: 8px; }
.habit .he { font-size: 20px; line-height: 1; flex: none; }
.hmeter { display: block; height: 7px; border-radius: 4px; background: #eef1f0; margin: 8px 0 6px; overflow: hidden; }
.hmeter i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.hdots { display: block; letter-spacing: 3px; color: var(--brand); font-size: 18px; line-height: 1; margin: 4px 0 4px; }

/* Long lists fold after 3 rows */
details.more { margin-top: 0; }
details.more > summary { cursor: pointer; list-style: none; padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--brand-dk); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+ '; }
details.more[open] > summary::before { content: '− '; }

/* Before you hand over anything: heading and proof side by side, then two titled columns */
.asks-head { display: grid; gap: 18px; align-items: end; margin-bottom: 30px; }
@media (min-width: 960px) { .asks-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; } }
.asks-head .sec-h { margin-bottom: 0; }
.asks-head .proof { display: flex; gap: 14px; align-items: flex-start; margin: 0; border: 1.5px dashed var(--in); background: #fff; border-radius: 14px; padding: 16px 18px; font-size: 14.5px; line-height: 1.5; }
.asks-head .proof b { display: block; font: 600 17px/1.3 var(--serif); color: var(--ink); margin-bottom: 3px; }
.asks-head .proof .tb-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--in-tint); color: var(--brand); }
.faq > .sec-h3 { margin-bottom: 12px; }
.lad-act { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 13.5px/1 var(--sans); color: var(--brand-dk); text-decoration: none; white-space: nowrap; cursor: pointer; }
.lad-act:hover { border-color: var(--brand); }
.ladder li:first-child .lad-act { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 720px) { .ladder li { grid-template-columns: 36px 1fr; } .ladder .lad-act { grid-column: 2; justify-self: start; margin-top: 4px; } }

@media (min-width: 900px) { .habits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 520px) {
  .paidlist .pnote { display: none; }
  .habit .ht { flex-direction: column; align-items: flex-start; gap: 6px; }
  #ch-borrow .bigs, .chapter .bigs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 16px; }
}
html[data-theme="dark"] .paidlist .pbar, html[data-theme="dark"] .hmeter { background: rgba(255,255,255,.09); }
html[data-theme="dark"] .paidlist .pav { background: hsl(var(--h) 30% 22%); color: hsl(var(--h) 60% 82%); }
html[data-theme="dark"] .lad-act { background: transparent; border-color: rgba(255,255,255,.22); color: var(--ink); }
html[data-theme="dark"] .ladder li:first-child .lad-act { background: var(--ink); color: var(--bg, #0f1412); }
html[data-theme="dark"] .asks-head .proof { background: transparent; }

/* Short version first: only the overview, 3 findings and what to try until the reader asks for the full story */
body:not(.story-full) #story .chapter.extra, body:not(.story-full) #chapterNav a.extra { display: none; }
body.story-full #short .fullbar { display: none; }
.short .finds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 22px; }
.find { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.find:hover { border-color: var(--ink); transform: translateY(-2px); }
.find .fi { position: absolute; top: 14px; right: 16px; font: 600 12px/1 var(--sans); color: var(--muted); }
.find .fv { font: 600 34px/1.05 var(--serif); color: var(--ink); font-variant-numeric: lining-nums proportional-nums; }
.find .fl { font-size: 14.5px; line-height: 1.45; color: var(--text); }
.find .fm { display: block; height: 7px; border-radius: 4px; background: #eef1f0; overflow: hidden; margin-top: auto; }
.find .fm i { display: block; height: 100%; border-radius: 4px; }
.find .fgo { font-size: 13px; font-weight: 600; color: var(--brand-dk); }
.find .fgo::after { content: ' →'; }
.fullbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 0 4px; border-top: 1px dashed var(--line); }
@media (max-width: 760px) { .short .finds { grid-template-columns: 1fr; gap: 10px; } .find .fv { font-size: 30px; } .fullbar .btn { width: 100%; justify-content: center; } }
html[data-theme="dark"] .find { background: transparent; }
html[data-theme="dark"] .find .fm { background: rgba(255,255,255,.09); }

/* How to read this: one small link instead of a paragraph before every chart */
details.howto { margin: 6px 0 14px; }
details.howto > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 4px 0; }
details.howto > summary::-webkit-details-marker { display: none; }
details.howto > summary::before { content: 'i'; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid currentColor; font: italic 700 11px/1 var(--serif); }
details.howto[open] > summary { color: var(--ink); }
details.howto p { margin: 6px 0 4px; color: var(--muted); max-width: 66ch; font-size: 14.5px; line-height: 1.55; }

/* Pull-out sentences: lighter on phones */
@media (max-width: 520px) { .insight { font-size: 17px !important; line-height: 1.45 !important; padding-left: 13px; } }

footer .labback { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--brand-dk); }

/* DARK:START (generated by tools/theme/build_dark.py; do not edit by hand) */
html[data-theme="dark"] { color-scheme: dark; --bg: #121416; --ink: #eef2f0; --text: #d5dcd9; --muted: #9ba6a2; --faint: #8d9894; --line: #2b3033; --ctl: #4b5357; --panel: #1a1d20; --panel2: #212529; --soft: #1a1d20; --mint: #1b2621; --brand: #56c596; --brand-dk: #7fd6ae; --brand-tint: #1b2621; --brand-tint2: #24372e; --leaf: #6dbb95; --in: #36a865; --out: #ee5a4c; --credit: #7f97f0; --loan: #cf8519; --fee: #a4adb5; --bad: #ff8a80; --good: #36a865; --focus: #56c596; --in-tint: #16281d; --out-tint: #2e1916; --credit-tint: #1a2033; }
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .lede { color:#dadade; }
html[data-theme="dark"] /* header */
.top { background:rgba(18,20,22,.94); }
html[data-theme="dark"] .demo-badge { background:#292417; color:#fbc656; border:1px solid #615842; }
html[data-theme="dark"] .btn.ghost { background:#131313; }
html[data-theme="dark"] .card.white { background:#131313; }
html[data-theme="dark"] .honest { background:#201b12; }
html[data-theme="dark"] .source { background:#131313; }
html[data-theme="dark"] .source:hover { border-color:#505054; }
html[data-theme="dark"] .pill { color:#d4d4d7; }
html[data-theme="dark"] .pill.rec { background:#1e2625; color:#56fbf1; }
html[data-theme="dark"] .pill.risk { background:#221515; color:#de7279; }
html[data-theme="dark"] .pill.beta { background:#2c2619; color:#fbc656; }
html[data-theme="dark"] .drop { border:2px dashed #49494c; background:#131313; }
html[data-theme="dark"] .drop.over { background:#171e1e; }
html[data-theme="dark"] input[type="text"], html[data-theme="dark"] input[type="password"], html[data-theme="dark"] input[type="number"], html[data-theme="dark"] input[type="date"], html[data-theme="dark"] select, html[data-theme="dark"] textarea { border:1.5px solid #47474b; background:#131313; }
html[data-theme="dark"] .periods button { background:#131313; }
html[data-theme="dark"] /* story */
.storynav { background:#131313; }
html[data-theme="dark"] .chart text { fill:#afafb5; }
html[data-theme="dark"] .tip { background:#131313; }
html[data-theme="dark"] .try { background:#171e1e; }
html[data-theme="dark"] .try b { color:#56fbf1; }
html[data-theme="dark"] .mcard .note { color:#cbcbcf; }
html[data-theme="dark"] .pcard { background:#131313; }
html[data-theme="dark"] .cats button { background:#131313; }
html[data-theme="dark"] .choices button { background:#131313; }
html[data-theme="dark"] .advice { background:#171e1e; }
html[data-theme="dark"] .notice { background:#292417; border:1px solid #615842; color:#fbc656; }
html[data-theme="dark"] /* header and lockup */
.top { background:color-mix(in srgb, #131313 92%, transparent); }
html[data-theme="dark"] .preview .card { background:#131313; }
html[data-theme="dark"] .phone .screen { background:#191b1a; }
html[data-theme="dark"] .phone .bar { background:#131313; border-bottom:1px solid #393c3a; }
html[data-theme="dark"] .msg { background:#131313; color:#dee4e2; }
html[data-theme="dark"] .msg .ts { color:#929a97; }
html[data-theme="dark"] .msg.on { background:color-mix(in srgb, var(--c) 7%, #131313); }
html[data-theme="dark"] .phone .fadeb { background:linear-gradient(rgba(244,247,245,0), #191b1a); }
html[data-theme="dark"] .chapter#cover { background:radial-gradient(120% 90% at 100% 0%, var(--mint) 0, #131313 60%); }
html[data-theme="dark"] .storynav { background:color-mix(in srgb, #131313 94%, transparent); }
html[data-theme="dark"] /* ===== Home page: wallets, html[data-theme="dark"] live minis, html[data-theme="dark"] questions first, html[data-theme="dark"] shared money (Nov 2026) ===== */
.honest { background:#131313; }
html[data-theme="dark"] .rails { background:#131313; }
html[data-theme="dark"] .rail { background:#131313; }
html[data-theme="dark"] .rail.beta::after { box-shadow:0 0 0 4px #2c3236; }
html[data-theme="dark"] .rail.soon::after { background:#131313; }
html[data-theme="dark"] .ticker .pay { color:#fbb956; }
html[data-theme="dark"] .mini { background:#131313; }
html[data-theme="dark"] .mv { background:linear-gradient(180deg, #161a17, #131313); }
html[data-theme="dark"] .feebar .seg { border-right:2px solid #2b2b2b; }
html[data-theme="dark"] .pc { background:#131313; }
html[data-theme="dark"] .chips span { background:#131313; }
html[data-theme="dark"] .ai { background:#131313; }
html[data-theme="dark"] .ai-prompt { background:#131313; }
html[data-theme="dark"] .rung { background:#131313; }
html[data-theme="dark"] .proof { background:#131313; }
html[data-theme="dark"] .faq details { background:#131313; }
html[data-theme="dark"] .roles button { background:#131313; }
html[data-theme="dark"] .role-panel { background:#131313; }
html[data-theme="dark"] .rail .flags i { box-shadow:0 0 0 2.5px #2c3236, 0 1px 3px rgba(15,38,32,.25); background:#131313; }
html[data-theme="dark"] .wsw[data-wall="auto"] { background:conic-gradient(#17803f 0 25%, #d23b2e 0 50%, #2457d6 0 75%, #1d2521 0); }
html[data-theme="dark"] .wsw[data-wall="paper"] { background:#131313; }
html[data-theme="dark"] .wsw[data-wall="savannah"] { background:linear-gradient(170deg, #5b5138, #b8661f); }
html[data-theme="dark"] .wsw[data-wall="sunset"] { background:linear-gradient(170deg, #67523a, #a8234a); }
html[data-theme="dark"] .ai-bubble .caret { background:#131313; }
html[data-theme="dark"] .ai-att { background:#131313; }
html[data-theme="dark"] .ai-clip { background:var(--mint, #1d2521); }
html[data-theme="dark"] .rot { color:#dd7e74; }
html[data-theme="dark"] /* Ask your AI page: what to do next, html[data-theme="dark"] per assistant */
.ai-next { background:#131313; }
html[data-theme="dark"] .ai-priv { background:#181a19; }
html[data-theme="dark"] .ai-fq button { background:#131313; }
html[data-theme="dark"] .toggle button { background:#131313; }
html[data-theme="dark"] .habit { background:#131313; }
html[data-theme="dark"] /* Sticky call to action on the home page */
  .mcta { background:rgba(18,20,22,.96); }
html[data-theme="dark"] kbd { background:#131313; }
html[data-theme="dark"] /* Currency control and note */
.cursel select { background:#131313; }
html[data-theme="dark"] .fxnote.conv { background:#242015; border-bottom-color:#554e3b; color:#fbd056; }
html[data-theme="dark"] .pf-step { background:#131313; }
html[data-theme="dark"] .route { background:#131313; }
html[data-theme="dark"] .meter.m2 span:last-child { color:#fbb956; }
html[data-theme="dark"] .stepper li span { background:#131313; }
html[data-theme="dark"] /* Ask your AI: show and tell */
.ai-demo-note { background:#242015; border:1px solid #554e3b; color:#fbd256; }
html[data-theme="dark"] .ai-show { background:linear-gradient(180deg, var(--panel) 0%, #131313 70%); }
html[data-theme="dark"] .bub.me .att { background:rgba(18,20,22,.16); }
html[data-theme="dark"] .bub.them { background:#131313; }
html[data-theme="dark"] .presets button, html[data-theme="dark"] .areas button, html[data-theme="dark"] .yesno button { background:#131313; }
html[data-theme="dark"] .pstack i { background:#131313; }
html[data-theme="dark"] .bp-p { background:#141820; color:#6ba0e5; }
html[data-theme="dark"] .bp-b { background:#231b16; border-color:#856458 !important; color:#ea8d67; }
html[data-theme="dark"] .st-l { color:#71a3e0; }
html[data-theme="dark"] .st-r { color:#ec8b65; }
html[data-theme="dark"] .bstack { background:#131313; }
html[data-theme="dark"] .brow { background:#131313; }
html[data-theme="dark"] /* Legal */
details.legal { background:#131313; }
html[data-theme="dark"] .trustband .tb-ic.gh { background:#1c1d1d; }
html[data-theme="dark"] .rail .rstat { background:#1e201f; }
html[data-theme="dark"] .rail.beta .rstat { background:#2b251a; color:#fbc156; }
html[data-theme="dark"] .paidlist .pbar { background:#1e201f; }
html[data-theme="dark"] .hmeter { background:#1e201f; }
html[data-theme="dark"] .asks-head .proof { background:#131313; }
html[data-theme="dark"] .lad-act { background:#131313; }
html[data-theme="dark"] html[data-theme="dark"] .paidlist .pbar, html[data-theme="dark"] html[data-theme="dark"] .hmeter { background:rgba(18,20,22,.09); }
html[data-theme="dark"] html[data-theme="dark"] .ladder li:first-child .lad-act { color:var(--bg, #f1f3f2); }
html[data-theme="dark"] .find { background:#131313; }
html[data-theme="dark"] .find .fm { background:#1e201f; }
html[data-theme="dark"] html[data-theme="dark"] .find .fm { background:rgba(18,20,22,.09); }
html[data-theme="dark"] .sm, html[data-theme="dark"] .dev, html[data-theme="dark"] .share-card, html[data-theme="dark"] .receipt { --ink: #0f2620; --text: #1b2e28; --muted: #55665f; --faint: #5f6f69; --line: #dce4e0; --ctl: #8fa29a; --panel: #f2f6f4; --panel2: #e9f1ec; --soft: #f2f6f4; --mint: #e4f4ec; --brand: #17694e; --brand-dk: #0f4f3a; --brand-tint: #e4f4ec; --brand-tint2: #c9e9d8; --leaf: #6dbb95; --glow: #3ddc97; --in: #17803f; --out: #d23b2e; --credit: #2457d6; --loan: #e08a00; --fee: #5b6670; --bad: #a3170f; --good: #17803f; --focus: #17694e; --in-tint: #e6f5ec; --out-tint: #fcecea; --credit-tint: #e9effc; color: var(--text); }
html[data-theme="dark"] .receipt { background: #fff; box-shadow: 8px 8px 0 #24372e; }
html[data-theme="dark"] .roles button[aria-selected="true"], html[data-theme="dark"] .periods button[aria-pressed="true"], html[data-theme="dark"] .choices:not(.opts) button[aria-pressed="true"], html[data-theme="dark"] .storynav a.on { background: var(--ink); border-color: var(--ink); }
html[data-theme="dark"] .btn:not(.ghost), html[data-theme="dark"] .periods button[aria-pressed="true"], html[data-theme="dark"] .choices:not(.opts) button[aria-pressed="true"], html[data-theme="dark"] .roles button[aria-selected="true"], html[data-theme="dark"] .storynav a.on, html[data-theme="dark"] .tk-prov, html[data-theme="dark"] .skip { color: #121416; }
html[data-theme="dark"] .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ctl); }
html[data-theme="dark"] .wl img, html[data-theme="dark"] .ai img { background: #fff; border-radius: 8px; padding: 4px 6px; }
html[data-theme="dark"] .wl.has-logo img { height: 38px; }
html[data-theme="dark"] .share-strip { background: #1a1d20; border: 1px solid var(--line); }
html[data-theme="dark"] .top { background: rgba(18,20,22,.9); }
html[data-theme="dark"] .mini:hover { box-shadow: 0 14px 30px -18px rgba(0,0,0,.8); }
html[data-theme="dark"] .mv { background: linear-gradient(180deg, #1a1d20, #16181b); }
html[data-theme="dark"] .ai .lm { color: var(--ink); }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: #16181b; color: var(--ink); border-color: var(--ctl); }
/* DARK:END */
