/* Yours to Keep — website styles.
   One file, no build step. Colours follow the app (app/lib/ui/theme/app_theme.dart):
   brand teal is the app's seed colour, money greens/reds are MoneyColors. */

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-2: #efeee7;
  --ink: #14181a;
  --muted: #4f5653;
  --line: rgba(20, 24, 26, 0.09);
  --brand: #2f6b5a;          /* app seed colour */
  --brand-text: #2f6b5a;     /* brand used as text */
  --on-brand: #ffffff;
  --mint: #dcefe6;
  --mint-2: #eaf5ef;
  --pos: #16683d;            /* MoneyColors.positive (light) */
  --neg: #b3261e;            /* MoneyColors.negative (light) */
  --warn: #8a5100;
  --shadow: 0 1px 2px rgba(20, 24, 26, 0.04), 0 8px 24px -12px rgba(20, 24, 26, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 24, 26, 0.04), 0 30px 60px -24px rgba(20, 40, 34, 0.28);

  --radius: 24px;
  --radius-sm: 14px;
  --max: 1160px;
  --read: 720px;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1211;
    --surface: #151b19;
    --surface-2: #1c2321;
    --ink: #ecefec;
    --muted: #a6aeaa;
    --line: rgba(236, 239, 236, 0.1);
    --brand: #2f6b5a;
    --brand-text: #86d0b5;
    --on-brand: #ffffff;
    --mint: #1a2d27;
    --mint-2: #15231f;
    --pos: #6fd49b;          /* MoneyColors.positive (dark) */
    --neg: #ff8a80;          /* MoneyColors.negative (dark) */
    --warn: #ffc266;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--brand-text); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-text);
}
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }

/* "Coming soon" Google Play badge: looks like a store badge, but isn't a link yet. */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: var(--ink); color: var(--bg); text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: .75; line-height: 1.2; }
.store-badge strong { display: block; font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.01em; }
.store-badge[aria-disabled="true"] { cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-block: 12px;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; min-height: 48px; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; left: 20px; right: 20px; top: 76px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  }
  .nav-links a { min-height: 48px; font-size: 1.05rem; color: var(--ink); }
  .nav[data-open="true"] .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto 0; height: 760px; z-index: -1;
  background:
    radial-gradient(48% 52% at 78% 38%, var(--mint) 0%, transparent 70%),
    radial-gradient(40% 40% at 12% 12%, var(--mint-2) 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); letter-spacing: -0.045em; margin-top: 18px; }
.hero h1 .serif { letter-spacing: -0.02em; font-size: 1.08em; }
.hero .lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-note { font-size: 0.95rem; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 500; color: var(--muted);
}
.pill .dot { width: 22px; height: 22px; border-radius: 999px; background: var(--mint); display: grid; place-items: center; color: var(--brand-text); }
.pill .dot svg { width: 13px; height: 13px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; }
}

/* ---------- Phone mock (app UI drawn in HTML) ---------- */
.phone {
  width: min(340px, 86vw); aspect-ratio: 9 / 19; border-radius: 48px; padding: 10px;
  background: #101413; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a302e;
  position: relative;
}
.phone::before { /* camera */
  content: ""; position: absolute; top: 20px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 99px; background: #050606; z-index: 2;
}
.screen {
  height: 100%; border-radius: 39px; overflow: hidden; background: var(--app-bg);
  display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: var(--app-ink);
  --app-bg: #f7faf8; --app-surface: #ffffff; --app-ink: #171d1b; --app-muted: #5b6360; --app-line: #e3e9e6;
  --app-track: #e5ebe8;
}
@media (prefers-color-scheme: dark) {
  .screen { --app-bg: #0f1513; --app-surface: #18201d; --app-ink: #e6ebe8; --app-muted: #a3aca8; --app-line: #26302c; --app-track: #2a3430; }
}
.app-status { display: flex; justify-content: space-between; padding: 14px 24px 6px; font-size: 11px; font-weight: 600; }
.app-month { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; }
.app-month strong { font-size: 17px; letter-spacing: -0.02em; }
.app-month span { color: var(--app-muted); font-size: 16px; width: 28px; text-align: center; }
.app-rta {
  margin: 0 14px 12px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--pos) 14%, var(--app-surface));
  display: flex; justify-content: space-between; align-items: center;
}
.app-rta small { display: block; color: var(--app-muted); font-size: 11px; }
.app-rta b { font-size: 12px; }
.app-rta .amt { font-size: 18px; font-weight: 700; color: var(--pos); letter-spacing: -0.02em; }
.app-list { flex: 1; overflow: hidden; padding: 0 14px; }
.app-group { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--app-muted); margin: 10px 4px 6px; display: flex; justify-content: space-between; }
.app-env {
  background: var(--app-surface); border-radius: 14px; padding: 10px 12px; margin-bottom: 6px;
  border: 1px solid var(--app-line);
}
.app-env-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.app-env-row b { font-weight: 600; }
.app-env-row .amt { font-weight: 700; }
.app-env-sub { display: flex; justify-content: space-between; color: var(--app-muted); font-size: 11px; margin-top: 2px; }
.bar { height: 5px; border-radius: 9px; background: var(--app-track); margin-top: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--pos); }
.amt.pos { color: var(--pos); }
.amt.neg { color: var(--neg); }
.app-tabs {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 26px 18px;
  background: var(--app-surface); border-top: 1px solid var(--app-line); font-size: 10.5px; font-weight: 600; color: var(--app-muted);
}
.app-tabs span { display: grid; justify-items: center; gap: 3px; }
.app-tabs span.on { color: var(--app-ink); }
.app-tabs svg { width: 20px; height: 20px; }
.app-fab { width: 46px; height: 46px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.app-fab svg { width: 22px; height: 22px; }

/* Floating chips around the hero phone */
.hero-visual { position: relative; }
.float {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 0.875rem; font-weight: 500; white-space: nowrap;
}
.float .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--mint); color: var(--brand-text); }
.float .ic svg { width: 17px; height: 17px; }
.float-1 { bottom: 24%; left: -22%; }
.float-2 { top: 2.5%; right: -12%; }
@media (max-width: 1100px) { .float-1 { left: -10%; } .float-2 { right: -6%; } }
@media (max-width: 520px) { .float { display: none; } }

/* ---------- Chip strip ---------- */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chip {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.chip .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.chip .ic svg { width: 20px; height: 20px; }
.chip b { display: block; font-size: 0.98rem; letter-spacing: -0.01em; line-height: 1.3; }
.chip span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 920px) { .chips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .chips { grid-template-columns: 1fr; } }

/* ---------- Cards / bento ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); position: relative; overflow: hidden;
}
.card h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -0.03em; }
.card p { margin-top: 10px; color: var(--muted); }
.card .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--brand-text); display: grid; place-items: center; margin-bottom: 20px; }
.card .ic svg { width: 22px; height: 22px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > .card { grid-column: span 2; display: flex; flex-direction: column; }
.bento > .wide { grid-column: span 4; }
.bento > .half { grid-column: span 3; }
.card .demo { margin-top: auto; padding-top: 24px; }
@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .card, .bento > .wide, .bento > .half { grid-column: span 2; }
}
@media (min-width: 640px) and (max-width: 920px) {
  .bento > .card:not(.wide):not(.half) { grid-column: span 1; }
}

/* Mini UI demos inside feature cards */
.mini { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 14px; font-size: 0.9rem; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 4px; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-row b { font-weight: 600; }
.mini .bar { background: var(--surface-2); height: 6px; margin-top: 6px; }
.amt { font-variant-numeric: tabular-nums; font-weight: 650; }
@media (max-width: 480px) { .hide-sm { display: none; } }
.tag { white-space: nowrap; display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--mint); color: var(--brand-text); }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; }
.file svg { width: 16px; height: 16px; color: var(--brand-text); }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.keypad span { display: grid; place-items: center; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.qa-amount { display: flex; justify-content: space-between; align-items: baseline; }
.qa-amount strong { font-size: 1.6rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.taps { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--brand-text); }

.devices { display: flex; align-items: center; justify-content: center; gap: 14px; }
.device { width: 74px; height: 124px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.device.tab { width: 140px; height: 104px; }
.device i { width: 60%; height: 6px; border-radius: 4px; background: var(--mint); display: block; box-shadow: 0 12px 0 var(--mint), 0 24px 0 var(--mint); margin-top: -24px; }
.lock { width: 40px; height: 40px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.lock svg { width: 20px; height: 20px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding-top: 28px; }
.step .num { font-size: 0.85rem; font-weight: 700; color: var(--brand-text); letter-spacing: 0.06em; }
.step h3 { margin-top: 10px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Statement (name story / privacy) ---------- */
.statement {
  border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 6vw, 80px);
  background: #12201c; color: #eef3f0; position: relative; overflow: hidden;
}
.statement::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(111, 212, 155, 0.22), transparent);
}
.statement .eyebrow { color: #9fdcc2; }
.statement blockquote { margin: 18px 0 0; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; max-width: 22ch; }
.statement blockquote .serif { color: #9fdcc2; }
.statement cite { display: block; margin-top: 18px; font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: #b6c4bf; font-size: 1rem; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(40px, 6vw, 64px); position: relative; }
.promises h3 { font-size: 1.15rem; letter-spacing: -0.02em; color: #fff; }
.promises p { margin-top: 8px; color: #b6c4bf; font-size: 1rem; }
.promises a { color: #9fdcc2; }
@media (max-width: 820px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan .price { margin-top: 18px; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price.soon { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.25; }
.plan .for { margin-top: 10px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--brand-text); }
.plan.featured { border: 2px solid var(--brand); }
.plans-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 22px; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Closing CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.045em; }
.cta p { margin: 18px auto 0; max-width: 46ch; color: var(--muted); font-size: 1.15rem; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; margin-top: 24px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-grid p { color: var(--muted); font-size: 0.95rem; max-width: 36ch; margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.copyright { margin-top: 28px; color: var(--muted); font-size: 0.875rem; }

/* ---------- Document pages (privacy, delete account) ---------- */
.doc-hero { padding-block: clamp(40px, 6vw, 72px) 24px; }
.doc-hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -0.045em; margin-top: 14px; }
.doc-hero .meta { margin-top: 14px; color: var(--muted); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, var(--read)); gap: 56px; justify-content: start; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.92rem; }
.toc b { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
.prose { min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin-top: 2.4em; padding-top: 8px; }
.prose h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--surface-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.summary-card h2 { margin-top: 0; padding-top: 0; font-size: 1.3rem; }
.summary-card ul { margin-top: 14px; }
.callout { background: var(--mint-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0 !important; }
.steps-list li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 99px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
}
