/* Math Scrimmage site. One stylesheet, no build step, no external fonts or scripts.
   Colors come from the app icon: deep field blue (#13235e → #1d3fa3), football orange (#c0703a)
   and the gold sparkles (#f5c36b). In light mode buttons and links use the blue (AA on white);
   orange text uses a darker ink (#9c4a16) so it also passes AA. */

:root {
  color-scheme: light dark;
  --bg: #f8f9fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --text: #141a2e;
  --muted: #4f576d;
  --line: #dde2ee;
  --brand: #1d3fa3;          /* buttons, links */
  --brand-ink: #1d3fa3;
  --accent: #c0703a;         /* decorative orange */
  --accent-ink: #9c4a16;     /* eyebrows, orange text */
  --gold: #f5c36b;
  --button-bg: #1d3fa3;
  --button-text: #ffffff;
  --tint: #e9eefc;
  --tint-ink: #1a3690;
  --warm-tint: #fdf0e4;
  --good: #1f8a4c;  --good-bg: #d9f2e3;
  --mid: #9a6a00;   --mid-bg: #fbecc4;
  --bad: #b3261e;   --bad-bg: #fbdcd9;
  --shadow: 0 1px 2px rgba(15, 25, 60, .06), 0 12px 32px rgba(15, 25, 60, .08);
  --shadow-lg: 0 30px 60px -20px rgba(15, 30, 90, .35), 0 10px 24px -12px rgba(15, 30, 90, .25);
  --header-bg: rgba(248, 249, 252, .82);
  --radius: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1022;
    --bg-alt: #0f162d;
    --surface: #141c36;
    --surface-2: #1b2444;
    --text: #eef1fa;
    --muted: #a7afc7;
    --line: #27315a;
    --brand: #9db7ff;
    --brand-ink: #a9c0ff;
    --accent: #e8935a;
    --accent-ink: #f5c36b;
    --button-bg: #f5c36b;
    --button-text: #1a1405;
    --tint: #1a2550;
    --tint-ink: #c3d3ff;
    --warm-tint: #2a1f18;
    --good: #6fd69a;  --good-bg: #173a29;
    --mid: #f3c860;   --mid-bg: #3d3214;
    --bad: #ff9b92;   --bad-bg: #4a1f1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 10px 24px -12px rgba(0, 0, 0, .6);
    --header-bg: rgba(11, 16, 34, .78);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--text); padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.site-header nav ul { display: flex; align-items: center; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
.site-header .nav-link { display: none; }
@media (min-width: 820px) { .site-header .nav-link { display: list-item; } }
.site-header .doc-nav .nav-link { display: list-item; }
@media (max-width: 420px) { .site-header nav ul { gap: .8rem; } .site-header nav a { font-size: .86rem; } }
.site-header nav .button { min-height: 34px; padding: .3rem .95rem; font-size: .88rem; color: var(--button-text); }
.site-header nav .button:hover { color: var(--button-text); }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-family: var(--font-display); }
h1 { font-size: clamp(2.5rem, 7.5vw, 4.4rem); margin: 0 0 1.1rem; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); margin: 0 0 1rem; letter-spacing: -.03em; font-weight: 750; }
h3 { font-size: 1.2rem; margin: 0 0 .45rem; line-height: 1.25; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 36em; line-height: 1.5; }
.center .lede { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .9rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.accent { color: var(--brand); }
@media (prefers-color-scheme: dark) { .accent { color: var(--gold); } }

section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
section.alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--button-bg); color: var(--button-text); font-weight: 650; text-decoration: none;
  border: 0; font-size: 1rem; cursor: pointer;
}
.button:hover { filter: brightness(1.08); color: var(--button-text); }
.button.secondary { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.button.secondary:hover { border-color: var(--muted); filter: none; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1rem; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 72px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 80px 0 104px; } }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(29, 63, 163, .14), transparent 70%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) { .hero::before { background: radial-gradient(closest-side, rgba(245, 195, 107, .1), transparent 70%); } }
.hero-grid { display: grid; gap: 48px; align-items: center; position: relative; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-visual { position: relative; }
.founding-pill {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--warm-tint); color: var(--accent-ink);
  border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; font-weight: 600; margin-bottom: 1.2rem;
}
.founding-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Illustrative mockups ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px; font-size: .92rem; line-height: 1.45; text-align: left;
}
.mock-figure { margin: 0; }
.mock-figure figcaption { margin-top: .8rem; font-size: .82rem; color: var(--muted); text-align: center; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: 14px; }
.mock-title { font-weight: 700; font-size: 1rem; }
.mock-sub { color: var(--muted); font-size: .82rem; }
.mock-label { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.badge { display: inline-block; border-radius: 999px; padding: .12rem .6rem; font-size: .76rem; font-weight: 650; background: var(--tint); color: var(--tint-ink); }
.badge.warm { background: var(--warm-tint); color: var(--accent-ink); }

/* Topic heatmap */
.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .8rem; table-layout: fixed; }
.heat th { font-weight: 600; color: var(--muted); text-align: center; padding: 0 0 2px; font-size: .74rem; }
.heat th:first-child { width: 40%; }
.heat td:first-child { color: var(--text); text-align: left; padding-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat td.c { height: 24px; border-radius: 5px; text-align: center; font-size: .7rem; font-weight: 700; }
.c.g { background: var(--good-bg); color: var(--good); }
.c.m { background: var(--mid-bg); color: var(--mid); }
.c.b { background: var(--bad-bg); color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .76rem; color: var(--muted); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.legend .lg::before { background: var(--good-bg); border: 1px solid var(--good); }
.legend .lm::before { background: var(--mid-bg); border: 1px solid var(--mid); }
.legend .lb::before { background: var(--bad-bg); border: 1px solid var(--bad); }
.callout { border-radius: 12px; padding: 10px 12px; background: var(--surface-2); margin-top: 10px; }
.callout strong { display: block; font-size: .84rem; }
.callout span { color: var(--muted); font-size: .82rem; }

.float-chip {
  position: absolute; display: inline-block;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .9rem; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.float-chip .num { color: var(--accent-ink); font-weight: 800; }
.hero-visual { padding-top: 24px; }
.chip-a { top: 0; right: 16px; }
.chip-b { top: 0; left: 16px; }
@media (max-width: 440px) { .chip-b { display: none; } }

/* Practice question mockup */
.q-text { font-size: 1.05rem; font-weight: 650; margin: 4px 0 12px; }
.choices { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices li { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.choices li.picked { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.choices li.right { border-color: var(--good); background: var(--good-bg); color: var(--good); }
.mixup { border-left: 3px solid var(--accent); background: var(--warm-tint); border-radius: 0 10px 10px 0; padding: 8px 12px; margin-bottom: 12px; font-size: .88rem; }
.walk { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 8px; }
.walk li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; font-size: .88rem; }
.walk li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); font-weight: 700; font-size: .78rem; }
.walk li.now { font-weight: 600; }
.walk li.now::before { background: var(--button-bg); color: var(--button-text); }
.nowrap { white-space: nowrap; }
.walk .blank { display: inline-block; min-width: 2.6em; border-bottom: 2px solid var(--brand); text-align: center; }

/* Parent report mockup */
.report p { color: var(--text); font-size: .9rem; margin-bottom: .6rem; }
.report ul { margin: 0 0 .6rem; padding-left: 1.1rem; font-size: .9rem; }
.report .approved { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--good); font-weight: 600; margin-top: 8px; }

/* ---------- Problem ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 2rem 0 0; justify-content: center; }
.stack li { border: 1px dashed var(--muted); border-radius: 12px; padding: .5rem .9rem; color: var(--muted); font-size: .95rem; background: var(--surface); }
.problem-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .problem-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.problem-grid .stack { justify-content: flex-start; }
.instead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.instead ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.instead li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.instead li::before { content: "\2713"; color: var(--good); font-weight: 800; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 20px; counter-reset: step; text-align: left; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; }
.steps h3::before {
  content: counter(step); flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--button-bg); color: var(--button-text); font-size: .95rem; font-weight: 700;
}
.steps p { color: var(--muted); margin: 0; }

/* ---------- Audience features ---------- */
.audience { display: grid; gap: 40px; align-items: center; margin-top: 3.5rem; }
@media (min-width: 900px) { .audience { grid-template-columns: 1fr 1fr; gap: 64px; } .audience.flip > :first-child { order: 2; } }
.audience h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin-bottom: .7rem; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 5px var(--tint), inset 0 0 0 9px var(--brand); }
.checks strong { color: var(--text); font-weight: 650; }

.features { display: grid; gap: 16px; margin-top: 2.5rem; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px; display: grid; place-items: center; background: var(--tint); color: var(--tint-ink); }
.card .icon svg { width: 22px; height: 22px; }

/* ---------- Focus band ---------- */
.focus-band {
  background: linear-gradient(135deg, #0f1c4d 0%, #1d3fa3 100%); color: #eef1fa;
}
.focus-band .eyebrow { color: #f5c36b; }
.focus-band .lede { color: #c9d3f0; }
.focus-band a { color: #f5c36b; }
.focus-band :focus-visible { outline-color: #f5c36b; }
.two-col { display: grid; gap: 20px; margin-top: 2.5rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col > div { border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 24px; background: rgba(255, 255, 255, .05); }
.two-col h3 { color: #ffffff; }
.two-col ul { margin: 0; padding-left: 1.1rem; color: #c9d3f0; }
.two-col li { margin-bottom: .35rem; }

/* ---------- Founding season CTA ---------- */
.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px); text-align: center; max-width: 860px; margin: 0 auto;
}
.cta .actions { justify-content: center; }
.cta ul { text-align: left; display: inline-grid; gap: .4rem; margin: .5rem auto 0; padding-left: 1.2rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 2.5rem auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 650; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 2.5rem; margin-bottom: 1.3rem; }

/* ---------- Docs (privacy) ---------- */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2.4rem; letter-spacing: -.01em; }
.doc li { margin-bottom: .4rem; }
.summary-box { background: var(--tint); border-radius: 16px; padding: 18px 22px; margin: 1.5rem 0; }
.summary-box ul { margin: 0; padding-left: 1.2rem; }
.notice { border: 2px dashed var(--accent); border-radius: 16px; padding: 16px 20px; margin: 1.5rem 0; background: var(--warm-tint); }
.notice strong { color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: filter .2s, border-color .2s; }
  .float-chip { animation: float 6s ease-in-out infinite; }
  .chip-b { animation-delay: -3s; }
  @keyframes float { 50% { transform: translateY(-6px); } }
}


/* Practice-sheet mockup: a section bar and two fraction bars (index.html "After every test"). */
.sheet-sec { background: var(--text); color: var(--bg); font-weight: 700; font-size: .88rem; padding: 6px 10px; border-radius: 8px; }
.bars { display: grid; gap: 6px; margin-top: 4px; }
.bar { display: grid; grid-template-columns: repeat(10, 1fr) auto; gap: 0; align-items: center; }
.bar i { height: 22px; border: 1.5px solid var(--text); margin-left: -1.5px; background: var(--surface); }
.bar i.on { background: var(--brand); }
.bar b { padding-left: 10px; font-size: .86rem; }
