@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout: a one-page "coming soon" invitation. A dark hero, then three short hands-on hooks for kids
   (snowball race, Ella vs Leo, crash test), a locked map of all 33 lessons, a simulator teaser,
   and a separate grown-ups section that leads to the early-access page. Same tokens as the course. */
:root {
  --bg: #EEF4F0; --surface: #FFFFFF; --surface-2: #E4EEE8; --ink: #142F38; --muted: #536E75; --line: #CFDFD7; --rule: #E1ECE6;
  --teal: #0B7A75; --teal-ink: #FFFFFF; --gold: #F2AE00; --on-gold: #2A1E00; --gold-soft: #FFF1C7; --gold-ink: #3D2C00;
  --good: #16865A; --good-soft: #DDF3E8; --bad: #C2402C; --bad-soft: #FBE3DE;
  --band: #12363F; --band-2: #1B4651; --band-line: #22505B; --band-ink: #EEF8F4; --band-muted: #A9C7C2;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1D22; --surface: #152A31; --surface-2: #1C353D; --ink: #E6F0EC; --muted: #9BB5B3; --line: #29474F; --rule: #1F3940;
    --teal: #3EC2B6; --teal-ink: #062421; --gold: #FFC83A; --gold-soft: #3A2F0F; --gold-ink: #FFE7A3;
    --good: #46D49A; --good-soft: #123A2B; --bad: #FF8A75; --bad-soft: #43201B;
    --band: #102C33; --band-2: #17404A; --band-line: #1F4A54; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1D22; --surface: #152A31; --surface-2: #1C353D; --ink: #E6F0EC; --muted: #9BB5B3; --line: #29474F; --rule: #1F3940;
  --teal: #3EC2B6; --teal-ink: #062421; --gold: #FFC83A; --gold-soft: #3A2F0F; --gold-ink: #FFE7A3;
  --good: #46D49A; --good-soft: #123A2B; --bad: #FF8A75; --bad-soft: #43201B;
  --band: #102C33; --band-2: #17404A; --band-line: #1F4A54; color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
a { color: var(--teal); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.label { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
.noscript { margin: 16px; padding: 14px 16px; border: 2px solid var(--bad); border-radius: 12px; background: var(--bad-soft); color: var(--ink); }

/* Buttons */
.btn { display: inline-block; font-weight: 600; border-radius: 999px; padding: 12px 22px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-decoration: none; text-align: center; }
.btn.gold { background: var(--gold); color: var(--on-gold); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.primary { background: var(--teal); color: var(--teal-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--teal); }
.btn.on-dark { background: transparent; border-color: var(--band-line); color: var(--band-ink); }
.btn.on-dark:hover { border-color: var(--gold); }
.btn.big { padding: 15px 28px; font-size: 1.08rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--band-ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.topbar .pill { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-gold); background: var(--gold); border-radius: 99px; padding: 4px 10px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 40px 52px; }
.eyebrow { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 6vw, 4rem); line-height: .98; letter-spacing: -.025em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin: 0 0 24px; color: var(--band-muted); font-size: 1.1rem; max-width: 46ch; }
.coin-stack { display: grid; gap: 10px; background: var(--band-2); border-radius: 20px; padding: 20px; }
.coin-row { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .9rem; color: var(--band-muted); }
.coin-row .track { height: 14px; border-radius: 99px; background: var(--band); overflow: hidden; }
.coin-row .fill { display: block; height: 100%; border-radius: 99px; background: var(--gold); width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.coin-row .fill.late { background: var(--band-muted); }
.coin-row b { color: var(--band-ink); font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.coin-note { margin: 4px 0 0; font-size: .78rem; color: var(--band-muted); }

/* Sections */
section.block { padding-block: 48px 8px; }
.block h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 8px; }
.block .sub { color: var(--muted); margin: 0 0 20px; max-width: 62ch; font-size: 1.05rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3.5vw, 30px); }
.for-kids { color: var(--teal); }
.for-grownups { color: var(--gold-ink); background: var(--gold-soft); border-radius: 99px; padding: 3px 10px; display: inline-block; }

/* Snowball race */
.race-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.chip { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 15px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.q-label { font-weight: 600; margin: 0; }
.result-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; margin: 4px 0 6px; color: var(--teal); font-variant-numeric: tabular-nums; }
.result-sub { margin: 0 0 14px; color: var(--muted); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .88rem; }
.bar .track { height: 30px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.bar .fill { height: 100%; border-radius: 8px; background: var(--gold); min-width: 4px; transition: width .6s ease; }
.bar .fill.put { background: var(--muted); }
.bar .fill.late { background: var(--teal); opacity: .55; }
.bar .val { font-family: var(--font-mono); font-size: .86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fine { font-size: .8rem; color: var(--muted); }

/* Quiz-style hooks */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hook h3 { font-size: 1.4rem; margin: 0 0 6px; line-height: 1.15; }
.hook p { margin: 0 0 12px; }
.opts { display: grid; gap: 8px; margin: 12px 0 0; }
.opt { text-align: left; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 11px 14px; cursor: pointer; font-weight: 500; }
.opt:hover:not([disabled]) { border-color: var(--teal); }
.opt[disabled] { cursor: default; }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.picked { border-color: var(--teal); background: var(--surface-2); }
.reveal { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); }
.reveal p { margin: 0 0 6px; }
.reveal p:last-child { margin: 0; }

/* Lesson map */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.level h3 { font-size: 1.15rem; margin: 0 0 2px; }
.level .lvl-sub { margin: 0 0 10px; color: var(--muted); font-size: .88rem; }
.level ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.level li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 7px 10px; font-size: .9rem; line-height: 1.3; }
.level .n { font-family: var(--font-display); font-weight: 800; color: var(--muted); font-size: .85rem; text-align: center; }
.level .lock { width: 14px; height: 14px; }
.lock path, .lock rect { fill: none; stroke: var(--muted); stroke-width: 2; }
.map-note { margin: 16px 0 0; color: var(--muted); }

/* Simulator teaser */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.sim-chart svg { width: 100%; height: auto; display: block; }
.sc-grid { stroke: var(--rule); stroke-width: 1; }
.sc-line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; }
.sc-area { fill: var(--teal); opacity: .08; }
.sc-t { fill: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.sc-note { fill: var(--ink); font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.sc-dot { fill: var(--bad); }
.sc-dot.up { fill: var(--good); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.features .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: .9rem; }

/* Kids CTA */
.kid-cta { text-align: center; background: var(--teal); color: var(--teal-ink); border-radius: 24px; padding: 32px 20px; }
.kid-cta h2 { margin: 0 0 8px; }
.kid-cta p { margin: 0 0 18px; opacity: .9; }

/* Grown-ups */
.grown { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.checks li::before { content: "✓"; color: var(--good); font-weight: 700; }
.promise { background: var(--surface-2); border-radius: 16px; padding: 18px 20px; }
.promise h3 { margin: 0 0 8px; font-size: 1.1rem; }
.promise p { margin: 0 0 8px; font-size: .93rem; }

/* Simple pages (kid-yes, join, privacy) */
.page-head { background: var(--band); color: var(--band-ink); }
.page-head .topbar { padding-block: 16px; }
.page { padding-block: 36px 40px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.05; margin: 0 0 12px; }
.page h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.page p, .page li { max-width: 68ch; }
.page ul, .page ol { padding-left: 1.2em; }
.big-emoji { width: 96px; height: 96px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--teal-ink); font-family: var(--font-display); font-weight: 800; }
.callout { background: var(--gold-soft); color: var(--gold-ink); border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.callout p { margin: 0; }

footer.foot { padding-block: 36px 40px; font-size: .84rem; color: var(--muted); }
footer.foot p { margin: .4em 0; max-width: 90ch; }

@media (max-width: 820px) {
  .hero-inner, .race-grid, .sim, .grown { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bar { grid-template-columns: 1fr; gap: 4px; }
  .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .coin-row .fill, .bar .fill { transition: none; }
}
