/* ASVAB Test website. The app's "Patriot" tokens (src/constants/theme.ts, docs/design.md): paper
   white, flag navy and flag red, exactly as on the brand board. Mona Sans and B612 Mono. */

@font-face { font-family: 'Mona Display'; src: url('/assets/fonts/MonaSansDisplayExpanded-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Mona Expanded'; src: url('/assets/fonts/MonaSansExpanded-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('/assets/fonts/MonaSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('/assets/fonts/MonaSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('/assets/fonts/MonaSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'B612 Mono'; src: url('/assets/fonts/B612Mono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'B612 Mono'; src: url('/assets/fonts/B612Mono-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-muted: #ece9e2;
  --stroke: rgba(22, 33, 58, 0.1);
  --stroke-strong: rgba(22, 33, 58, 0.18);
  --contour: rgba(22, 33, 58, 0.13);
  --text: #16213a;
  --text-2: #54607a;
  --text-3: #5e6a84;
  --inverse: #132a4d;
  --on-inverse: #f5f2ec;
  --accent: #b31237;
  --accent-text: #b31237;
  --accent-soft: rgba(179, 18, 55, 0.09);
  --on-accent: #ffffff;
  --navy: #132a4d;
  --flag-red: #c8102e;
  --star-color: rgba(19, 42, 77, 0.12);
  --success: #0b7a48;
  --warning: #8a5a00;
  --wind: #0a7480;
  --cloud: #1f57b8;
  --shadow: 0 1px 2px rgba(14, 27, 51, 0.06), 0 12px 32px rgba(14, 27, 51, 0.08);
  --phone-shadow: 0 30px 60px -20px rgba(14, 27, 51, 0.35);

  --display: 'Mona Display', 'Mona Sans', system-ui, sans-serif;
  --expanded: 'Mona Expanded', 'Mona Sans', system-ui, sans-serif;
  --sans: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'B612 Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Shape lock, same as the app: capsule buttons, 22 for panels, 14 for inputs, 12 for tiles. */
  --r-panel: 22px;
  --r-input: 14px;
  --r-tile: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 16px;
  --max: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1322;
    --surface: #131c30;
    --surface-muted: #1a253d;
    --stroke: rgba(236, 238, 244, 0.08);
    --stroke-strong: rgba(236, 238, 244, 0.16);
    --contour: rgba(236, 238, 244, 0.1);
    --text: #eceef4;
    --text-2: #a4aec4;
    --text-3: #8590a8;
    --inverse: #eceef4;
    --on-inverse: #0b1322;
    --accent: #c8102e;
    --accent-text: #ff7a8c;
    --accent-soft: rgba(255, 122, 140, 0.14);
    --on-accent: #ffffff;
    --navy: #8fa8e8;
    --star-color: rgba(236, 238, 244, 0.1);
    --success: #37d68a;
    --warning: #f4b942;
    --wind: #3cc8d6;
    --cloud: #7aa7ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --phone-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--inverse); color: var(--on-inverse); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--inverse);
  color: var(--on-inverse);
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button.secondary { background: var(--surface-muted); color: var(--text); }
.button.accent { background: var(--accent); color: var(--on-accent); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.button .icon { width: 20px; height: 20px; }
@media (hover: hover) {
  .button:hover { background: color-mix(in srgb, var(--inverse) 88%, var(--accent)); }
  .button.secondary:hover { background: color-mix(in srgb, var(--surface-muted) 80%, var(--text) 8%); }
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  font-weight: 500;
  font-size: 15px;
}
.text-link { color: var(--accent-text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.site-header.scrolled { border-bottom-color: var(--stroke); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px/1 var(--expanded); letter-spacing: -0.01em; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav-links { display: none; gap: 28px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav .button { margin-left: auto; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav .button { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-stars {
  position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  width: min(760px, 150vw); right: max(-220px, -18vw); top: 50%; translate: 0 -50%;
  background: var(--star-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpolygon points='200.0,13.0 203.8,24.7 216.2,24.7 206.2,32.0 210.0,43.8 200.0,36.5 190.0,43.8 193.8,32.0 183.8,24.7 196.2,24.7'/%3E%3Cpolygon points='279.0,32.5 282.8,44.2 295.2,44.2 285.2,51.5 289.0,63.2 279.0,56.0 269.0,63.2 272.8,51.5 262.8,44.2 275.2,44.2'/%3E%3Cpolygon points='339.9,86.4 343.7,98.2 356.1,98.2 346.1,105.4 349.9,117.2 339.9,109.9 329.9,117.2 333.7,105.4 323.7,98.2 336.1,98.2'/%3E%3Cpolygon points='368.8,162.5 372.6,174.3 384.9,174.3 374.9,181.5 378.8,193.3 368.8,186.0 358.8,193.3 362.6,181.5 352.6,174.3 364.9,174.3'/%3E%3Cpolygon points='359.0,243.3 362.8,255.0 375.1,255.0 365.1,262.3 368.9,274.0 359.0,266.8 349.0,274.0 352.8,262.3 342.8,255.0 355.1,255.0'/%3E%3Cpolygon points='312.7,310.2 316.5,322.0 328.9,322.0 318.9,329.3 322.7,341.0 312.7,333.7 302.7,341.0 306.6,329.3 296.6,322.0 308.9,322.0'/%3E%3Cpolygon points='240.7,348.1 244.5,359.8 256.9,359.8 246.9,367.1 250.7,378.8 240.7,371.6 230.7,378.8 234.5,367.1 224.5,359.8 236.9,359.8'/%3E%3Cpolygon points='159.3,348.1 163.1,359.8 175.5,359.8 165.5,367.1 169.3,378.8 159.3,371.6 149.3,378.8 153.1,367.1 143.1,359.8 155.5,359.8'/%3E%3Cpolygon points='87.3,310.2 91.1,322.0 103.4,322.0 93.4,329.3 97.3,341.0 87.3,333.7 77.3,341.0 81.1,329.3 71.1,322.0 83.5,322.0'/%3E%3Cpolygon points='41.0,243.3 44.9,255.0 57.2,255.0 47.2,262.3 51.0,274.0 41.0,266.8 31.1,274.0 34.9,262.3 24.9,255.0 37.2,255.0'/%3E%3Cpolygon points='31.2,162.5 35.1,174.3 47.4,174.3 37.4,181.5 41.2,193.3 31.2,186.0 21.2,193.3 25.1,181.5 15.1,174.3 27.4,174.3'/%3E%3Cpolygon points='60.1,86.4 63.9,98.2 76.3,98.2 66.3,105.4 70.1,117.2 60.1,109.9 50.1,117.2 53.9,105.4 43.9,98.2 56.3,98.2'/%3E%3Cpolygon points='121.0,32.5 124.8,44.2 137.2,44.2 127.2,51.5 131.0,63.2 121.0,56.0 111.0,63.2 114.8,51.5 104.8,44.2 117.2,44.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpolygon points='200.0,13.0 203.8,24.7 216.2,24.7 206.2,32.0 210.0,43.8 200.0,36.5 190.0,43.8 193.8,32.0 183.8,24.7 196.2,24.7'/%3E%3Cpolygon points='279.0,32.5 282.8,44.2 295.2,44.2 285.2,51.5 289.0,63.2 279.0,56.0 269.0,63.2 272.8,51.5 262.8,44.2 275.2,44.2'/%3E%3Cpolygon points='339.9,86.4 343.7,98.2 356.1,98.2 346.1,105.4 349.9,117.2 339.9,109.9 329.9,117.2 333.7,105.4 323.7,98.2 336.1,98.2'/%3E%3Cpolygon points='368.8,162.5 372.6,174.3 384.9,174.3 374.9,181.5 378.8,193.3 368.8,186.0 358.8,193.3 362.6,181.5 352.6,174.3 364.9,174.3'/%3E%3Cpolygon points='359.0,243.3 362.8,255.0 375.1,255.0 365.1,262.3 368.9,274.0 359.0,266.8 349.0,274.0 352.8,262.3 342.8,255.0 355.1,255.0'/%3E%3Cpolygon points='312.7,310.2 316.5,322.0 328.9,322.0 318.9,329.3 322.7,341.0 312.7,333.7 302.7,341.0 306.6,329.3 296.6,322.0 308.9,322.0'/%3E%3Cpolygon points='240.7,348.1 244.5,359.8 256.9,359.8 246.9,367.1 250.7,378.8 240.7,371.6 230.7,378.8 234.5,367.1 224.5,359.8 236.9,359.8'/%3E%3Cpolygon points='159.3,348.1 163.1,359.8 175.5,359.8 165.5,367.1 169.3,378.8 159.3,371.6 149.3,378.8 153.1,367.1 143.1,359.8 155.5,359.8'/%3E%3Cpolygon points='87.3,310.2 91.1,322.0 103.4,322.0 93.4,329.3 97.3,341.0 87.3,333.7 77.3,341.0 81.1,329.3 71.1,322.0 83.5,322.0'/%3E%3Cpolygon points='41.0,243.3 44.9,255.0 57.2,255.0 47.2,262.3 51.0,274.0 41.0,266.8 31.1,274.0 34.9,262.3 24.9,255.0 37.2,255.0'/%3E%3Cpolygon points='31.2,162.5 35.1,174.3 47.4,174.3 37.4,181.5 41.2,193.3 31.2,186.0 21.2,193.3 25.1,181.5 15.1,174.3 27.4,174.3'/%3E%3Cpolygon points='60.1,86.4 63.9,98.2 76.3,98.2 66.3,105.4 70.1,117.2 60.1,109.9 50.1,117.2 53.9,105.4 43.9,98.2 56.3,98.2'/%3E%3Cpolygon points='121.0,32.5 124.8,44.2 137.2,44.2 127.2,51.5 131.0,63.2 121.0,56.0 111.0,63.2 114.8,51.5 104.8,44.2 117.2,44.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-grid { display: grid; gap: 48px; padding-top: 40px; padding-bottom: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; max-width: 700px; }
.label { font: 600 14px/1.2 var(--expanded); color: var(--accent-text); letter-spacing: 0; }
.hero h1 { font-family: var(--display); font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .nowrap { white-space: nowrap; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--text-2); max-width: 32ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-visual { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 520px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.4fr 0.8fr; min-height: min(calc(100dvh - 64px), 820px); padding-top: 24px; padding-bottom: 48px; }
}

/* A phone: the real app screenshots, in a device frame. */
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 9px;
  background: #0b0c0e;
  box-shadow: var(--phone-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 50%;
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: #0b0c0e;
  transform: translateX(-50%);
  z-index: 1;
}
.phone picture, .phone img { width: 100%; height: 100%; }
.phone img { border-radius: 38px; object-fit: cover; object-position: top; }
.hero .phone { transform: rotate(-2deg); }

/* ---------- Facts band ---------- */
.facts { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { padding: 28px 0; display: grid; gap: 4px; }
.fact b { font: 700 clamp(30px, 4vw, 44px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--text-2); font-size: 15px; max-width: 22ch; }
.fact:nth-child(odd) { padding-right: 16px; }
.fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--stroke); }
.fact:nth-child(n + 3) { border-top: 1px solid var(--stroke); }
@media (min-width: 860px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .fact { padding: 36px 24px; border-top: 0 !important; }
  .fact:first-child { padding-left: 0; }
  .fact + .fact { border-left: 1px solid var(--stroke); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section-head { display: grid; gap: 14px; max-width: 700px; margin-bottom: 48px; }
.section-head h2, .closing h2 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.section-head p { color: var(--text-2); font-size: 18px; max-width: 58ch; }

/* Complaints from other apps, and the fix for each: a two-column ledger, not cards. */
.ledger { display: grid; gap: 0; border-top: 1px solid var(--stroke-strong); }
.ledger-row { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--stroke); }
.ledger-row h3 { font: 600 19px/1.3 var(--expanded); letter-spacing: -0.01em; display: flex; gap: 12px; align-items: baseline; }
.ledger-row h3 .icon { color: var(--accent-text); transform: translateY(3px); }
.complaint { color: var(--text-3); font-size: 16px; }
.complaint q { quotes: '\201C' '\201D'; font-style: italic; }
.ledger-row p.fix { color: var(--text-2); }
@media (min-width: 860px) {
  .ledger-row { grid-template-columns: 0.9fr 1.1fr; column-gap: 48px; padding: 30px 0; }
  .ledger-row .complaint { grid-column: 1; grid-row: 1 / span 2; font-size: 18px; color: var(--text-2); }
  .ledger-row h3 { grid-column: 2; }
  .ledger-row .fix { grid-column: 2; }
}

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; }
.tile {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-panel);
  background: var(--surface);
  border: 1px solid var(--stroke);
  min-height: 340px;
}
.tile h3 { font: 600 22px/1.2 var(--expanded); letter-spacing: -0.015em; }
.tile p { color: var(--text-2); font-size: 16px; max-width: 40ch; }
.tile .shot {
  position: relative;
  margin-top: 18px;
  align-self: end;
  justify-self: center;
  width: min(270px, 80%);
  aspect-ratio: 390 / 560;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  border: 7px solid #0b0c0e;
  border-bottom: 0;
  margin-bottom: -28px;
  box-shadow: var(--phone-shadow);
}
.tile .shot img { width: 100%; height: auto; }
.tile.chart { background: #0e1013; color: #ecedef; border-color: transparent; }
.tile.chart p { color: #a0a5ae; }
.tile.chart .shot { width: min(330px, 86%); aspect-ratio: 390 / 700; border-color: #26292e; }
.tile.review { background: var(--accent-soft); border-color: transparent; }
.tile.exam { background: var(--surface-muted); border-color: transparent; }
.tile .shot.bottom img { transform: translateY(-33%); }
.tile.exam .shot + .shot { display: none; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.chart { grid-row: span 2; }
  .tile.exam { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  /* Four tiles: the chart runs down the left, two tiles sit beside it, mock exams span beneath them. */
  .bento { grid-template-columns: 1.2fr 1fr 1fr; }
  .tile.chart { grid-column: 1; grid-row: 1 / span 2; grid-template-rows: auto auto 1fr; }
  .tile.chart .shot { width: min(370px, 94%); aspect-ratio: 390 / 844; }
  .tile.review { grid-column: 2; grid-row: 1; }
  .tile.syllabus { grid-column: 3; grid-row: 1; }
  .tile.exam { grid-column: 2 / span 2; grid-row: 2; grid-template-columns: 1.15fr 1fr 1fr; align-items: end; column-gap: 20px; padding: 32px 28px 0; }
  .tile.exam > h3, .tile.exam > p, .tile.exam > .exam-stats { grid-column: 1; align-self: start; }
  .tile.exam > p { grid-row: 2; }
  .tile.exam > .exam-stats { grid-row: 3; padding-bottom: 32px; }
  .tile.exam .shot { grid-row: 1 / span 3; grid-column: 2; margin-top: 0; width: 100%; }
  .tile.exam .shot + .shot { display: block; grid-column: 3; }
}
.tile .points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.tile .points li { display: flex; gap: 10px; align-items: flex-start; }
.tile .points .icon { color: var(--accent-text); margin-top: 3px; }
.exam-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; margin-top: 14px; }
.exam-stats div { display: grid; gap: 2px; }
.exam-stats b { font: 700 26px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.exam-stats span { color: var(--text-2); font-size: 14px; white-space: nowrap; }

/* ---------- AFQT calculator ---------- */
.calc {
  display: grid; gap: 0; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-panel);
  box-shadow: var(--shadow); overflow: hidden;
}
.calc-inputs { display: grid; gap: 18px; padding: 24px; border-bottom: 1px solid var(--stroke); }
.calc-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.calc-name { font-size: 16px; color: var(--text); }
.calc-name b { font: 700 13px/1 var(--mono); color: var(--on-accent); background: var(--accent); border-radius: 6px; padding: 4px 6px; margin-right: 6px; }
.calc-value { font: 700 15px/1 var(--mono); color: var(--text-2); min-width: 4ch; text-align: right; }
.calc-row input[type='range'] {
  grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.calc-row input[type='range']::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill, 70%), var(--surface-muted) var(--fill, 70%));
}
.calc-row input[type='range']::-moz-range-track { height: 8px; border-radius: 999px; background: var(--surface-muted); }
.calc-row input[type='range']::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
.calc-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.calc-row input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.calc-row input[type='range']:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.calc-hint { font-size: 14px; color: var(--text-3); }
.calc-out { display: grid; gap: 4px; padding: 24px; background: #132a4d; color: #f5f2ec; }
.calc-label { font: 600 14px/1.2 var(--expanded); opacity: 0.8; }
.calc-score { font: 700 clamp(64px, 9vw, 96px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc-cat { font-size: 16px; opacity: 0.85; margin-bottom: 12px; }
.calc-branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.calc-branches li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; font-size: 15px; padding: 6px 10px; border-radius: 10px; background: rgba(245, 242, 236, 0.08); }
.calc-branches li.short { opacity: 0.55; }
.calc-branches .mark { font-weight: 700; }
.calc-branches li.clears .mark { color: #37d68a; }
.calc-branches .min { font: 400 14px/1 var(--mono); opacity: 0.8; }
.calc-fine { font-size: 13px; opacity: 0.7; margin-top: 12px; }
.calc-page { margin-block: 8px 32px; max-width: 760px; }
.tag { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: 0.04em; color: var(--on-accent); background: var(--accent); border-radius: 5px; padding: 3px 5px; vertical-align: 2px; }
@media (min-width: 720px) {
  .calc { grid-template-columns: 1.1fr 0.9fr; }
  .calc-inputs { border-bottom: none; border-right: 1px solid var(--stroke); }
}
@media (min-width: 960px) {
  .decoder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
  .decoder-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; max-width: 920px; }
.plan { display: grid; align-content: start; gap: 16px; padding: 32px; border-radius: var(--r-panel); border: 1px solid var(--stroke); background: var(--surface); }
.plan h3 { font: 600 20px/1.2 var(--expanded); }
.plan .price { font: 700 44px/1 var(--display); letter-spacing: -0.03em; }
.plan .price small { font: 500 16px/1 var(--sans); color: var(--text-2); letter-spacing: 0; }
.plan .note { color: var(--text-2); font-size: 15px; }
.plan.featured { background: var(--inverse); color: var(--on-inverse); border-color: transparent; }
.plan.featured .note, .plan.featured .price small { color: color-mix(in srgb, var(--on-inverse) 70%, transparent); }
.plan.featured .checks .icon { color: var(--accent); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--accent-text); margin-top: 4px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 8px; max-width: 860px; }
.faq { border-top: 1px solid var(--stroke-strong); }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font: 600 18px/1.35 var(--sans);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); margin-top: 4px; transition: transform 200ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 0 22px; color: var(--text-2); max-width: 68ch; }


/* ---------- Closing ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--stroke); }
.closing-inner { display: grid; gap: 22px; justify-items: start; padding: 96px var(--gutter) 280px; max-width: var(--max); margin: 0 auto; }
.closing p { color: var(--text-2); font-size: 18px; max-width: 46ch; }
.closing .closing-stars {
  position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; width: min(640px, 130vw); right: -120px; bottom: -260px;
  background: var(--star-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpolygon points='200.0,13.0 203.8,24.7 216.2,24.7 206.2,32.0 210.0,43.8 200.0,36.5 190.0,43.8 193.8,32.0 183.8,24.7 196.2,24.7'/%3E%3Cpolygon points='279.0,32.5 282.8,44.2 295.2,44.2 285.2,51.5 289.0,63.2 279.0,56.0 269.0,63.2 272.8,51.5 262.8,44.2 275.2,44.2'/%3E%3Cpolygon points='339.9,86.4 343.7,98.2 356.1,98.2 346.1,105.4 349.9,117.2 339.9,109.9 329.9,117.2 333.7,105.4 323.7,98.2 336.1,98.2'/%3E%3Cpolygon points='368.8,162.5 372.6,174.3 384.9,174.3 374.9,181.5 378.8,193.3 368.8,186.0 358.8,193.3 362.6,181.5 352.6,174.3 364.9,174.3'/%3E%3Cpolygon points='359.0,243.3 362.8,255.0 375.1,255.0 365.1,262.3 368.9,274.0 359.0,266.8 349.0,274.0 352.8,262.3 342.8,255.0 355.1,255.0'/%3E%3Cpolygon points='312.7,310.2 316.5,322.0 328.9,322.0 318.9,329.3 322.7,341.0 312.7,333.7 302.7,341.0 306.6,329.3 296.6,322.0 308.9,322.0'/%3E%3Cpolygon points='240.7,348.1 244.5,359.8 256.9,359.8 246.9,367.1 250.7,378.8 240.7,371.6 230.7,378.8 234.5,367.1 224.5,359.8 236.9,359.8'/%3E%3Cpolygon points='159.3,348.1 163.1,359.8 175.5,359.8 165.5,367.1 169.3,378.8 159.3,371.6 149.3,378.8 153.1,367.1 143.1,359.8 155.5,359.8'/%3E%3Cpolygon points='87.3,310.2 91.1,322.0 103.4,322.0 93.4,329.3 97.3,341.0 87.3,333.7 77.3,341.0 81.1,329.3 71.1,322.0 83.5,322.0'/%3E%3Cpolygon points='41.0,243.3 44.9,255.0 57.2,255.0 47.2,262.3 51.0,274.0 41.0,266.8 31.1,274.0 34.9,262.3 24.9,255.0 37.2,255.0'/%3E%3Cpolygon points='31.2,162.5 35.1,174.3 47.4,174.3 37.4,181.5 41.2,193.3 31.2,186.0 21.2,193.3 25.1,181.5 15.1,174.3 27.4,174.3'/%3E%3Cpolygon points='60.1,86.4 63.9,98.2 76.3,98.2 66.3,105.4 70.1,117.2 60.1,109.9 50.1,117.2 53.9,105.4 43.9,98.2 56.3,98.2'/%3E%3Cpolygon points='121.0,32.5 124.8,44.2 137.2,44.2 127.2,51.5 131.0,63.2 121.0,56.0 111.0,63.2 114.8,51.5 104.8,44.2 117.2,44.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpolygon points='200.0,13.0 203.8,24.7 216.2,24.7 206.2,32.0 210.0,43.8 200.0,36.5 190.0,43.8 193.8,32.0 183.8,24.7 196.2,24.7'/%3E%3Cpolygon points='279.0,32.5 282.8,44.2 295.2,44.2 285.2,51.5 289.0,63.2 279.0,56.0 269.0,63.2 272.8,51.5 262.8,44.2 275.2,44.2'/%3E%3Cpolygon points='339.9,86.4 343.7,98.2 356.1,98.2 346.1,105.4 349.9,117.2 339.9,109.9 329.9,117.2 333.7,105.4 323.7,98.2 336.1,98.2'/%3E%3Cpolygon points='368.8,162.5 372.6,174.3 384.9,174.3 374.9,181.5 378.8,193.3 368.8,186.0 358.8,193.3 362.6,181.5 352.6,174.3 364.9,174.3'/%3E%3Cpolygon points='359.0,243.3 362.8,255.0 375.1,255.0 365.1,262.3 368.9,274.0 359.0,266.8 349.0,274.0 352.8,262.3 342.8,255.0 355.1,255.0'/%3E%3Cpolygon points='312.7,310.2 316.5,322.0 328.9,322.0 318.9,329.3 322.7,341.0 312.7,333.7 302.7,341.0 306.6,329.3 296.6,322.0 308.9,322.0'/%3E%3Cpolygon points='240.7,348.1 244.5,359.8 256.9,359.8 246.9,367.1 250.7,378.8 240.7,371.6 230.7,378.8 234.5,367.1 224.5,359.8 236.9,359.8'/%3E%3Cpolygon points='159.3,348.1 163.1,359.8 175.5,359.8 165.5,367.1 169.3,378.8 159.3,371.6 149.3,378.8 153.1,367.1 143.1,359.8 155.5,359.8'/%3E%3Cpolygon points='87.3,310.2 91.1,322.0 103.4,322.0 93.4,329.3 97.3,341.0 87.3,333.7 77.3,341.0 81.1,329.3 71.1,322.0 83.5,322.0'/%3E%3Cpolygon points='41.0,243.3 44.9,255.0 57.2,255.0 47.2,262.3 51.0,274.0 41.0,266.8 31.1,274.0 34.9,262.3 24.9,255.0 37.2,255.0'/%3E%3Cpolygon points='31.2,162.5 35.1,174.3 47.4,174.3 37.4,181.5 41.2,193.3 31.2,186.0 21.2,193.3 25.1,181.5 15.1,174.3 27.4,174.3'/%3E%3Cpolygon points='60.1,86.4 63.9,98.2 76.3,98.2 66.3,105.4 70.1,117.2 60.1,109.9 50.1,117.2 53.9,105.4 43.9,98.2 56.3,98.2'/%3E%3Cpolygon points='121.0,32.5 124.8,44.2 137.2,44.2 127.2,51.5 131.0,63.2 121.0,56.0 111.0,63.2 114.8,51.5 104.8,44.2 117.2,44.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--stroke); padding: 48px 0 40px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; gap: 28px; padding-bottom: 28px; }
.footer-brand { display: grid; gap: 12px; max-width: 46ch; }
.footer-brand .brand { color: var(--text); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-fine { display: grid; gap: 10px; color: var(--text-3); font-size: 13px; }
.footer-fine a { color: inherit; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-links { grid-template-columns: repeat(2, auto); column-gap: 40px; }
}

/* ---------- Documents (legal, support) ---------- */
.page { padding: 56px 0 96px; }
.prose { max-width: 760px; }
.prose h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 50px); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 10px; }
.prose .updated { color: var(--text-3); margin-bottom: 36px; }
.prose h2 { font: 600 22px/1.3 var(--expanded); letter-spacing: -0.01em; margin: 48px 0 12px; }
.prose h3 { font: 600 17px/1.4 var(--sans); margin: 28px 0 6px; }
.prose p, .prose ul, .prose ol { color: var(--text-2); margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.summary-box, .steps, .contact-card { border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--stroke); padding: 24px 26px; margin: 0 0 20px; }
.summary-box ul, .steps ol { margin-bottom: 0; }
.contact-card { display: grid; gap: 16px; }
.contact-card p { margin: 4px 0 0; }
.contact-card .button { justify-self: start; }
@media (min-width: 720px) { .contact-card { grid-template-columns: 1fr auto; align-items: center; } }
.table-wrap { overflow-x: auto; margin: 8px 0 18px; border-radius: var(--r-tile); border: 1px solid var(--stroke); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--stroke); color: var(--text-2); }
.prose th { background: var(--surface-muted); color: var(--text); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.not-found { display: grid; gap: 18px; justify-items: start; padding: 40px 0 80px; }

/* ---------- Motion: reveal on scroll, only when motion is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero-copy > * { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
  .js .hero .phone { animation: float-in 900ms var(--ease-out) 180ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(28px) rotate(-2deg); } to { opacity: 1; transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------------- Flag, hero proof and count-up ---------------- */
.flag { display: inline-block; vertical-align: -2px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.made { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); margin-right: 6px; }

.hero-float { position: absolute; z-index: 2; pointer-events: none; }
.hero-float.cert {
  width: clamp(140px, 17vw, 210px); aspect-ratio: 1.414; overflow: hidden; border-radius: 10px;
  left: 0; bottom: 14%; transform: rotate(-7deg); box-shadow: var(--phone-shadow);
}
.hero-float.cert img { width: 100%; height: auto; margin-top: -26.5%; display: block; }
.hero-float.chip {
  right: -10px; bottom: 30%; display: flex; align-items: center; gap: 8px; padding: 11px 16px 11px 12px;
  background: var(--success); color: #fff; border-radius: 999px; font: 600 15px/1 var(--sans);
  box-shadow: var(--phone-shadow); transform: rotate(4deg);
}
.hero-float.chip .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-float.cert { animation: floatIn 0.9s var(--ease-out) 0.55s backwards; }
  .js .hero-float.chip { animation: floatIn 0.9s var(--ease-out) 0.75s backwards; }
  @keyframes floatIn { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-color-scheme: dark) { .hero-float.chip { color: #06140d; } }
@media (max-width: 959px) {
  .hero-float.cert { left: 2%; bottom: 8%; }
  .hero-float.chip { right: 2%; bottom: 34%; }
}

/* ---------------- More than a question bank ---------------- */
.trio { display: grid; gap: 20px; }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio-card { background: var(--surface); border-radius: var(--r-panel); padding: 22px 22px 26px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow); min-width: 0; }
.trio-card .shot { aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: 16px; background: var(--surface-muted); }
.trio-card .shot img { width: 100%; height: auto; display: block; }
.trio-card h3 { display: flex; align-items: center; gap: 10px; font: 600 18px/1.3 var(--expanded); }
.trio-card h3 .icon { width: 20px; height: 20px; color: var(--accent-text); flex: none; }
.trio-card p { color: var(--text-2); }

/* ---------------- Guides ---------------- */
.guide .crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 14px; }
.guide .crumbs a { color: var(--text-2); text-decoration: none; }
.answer-box { background: var(--accent-soft); border-radius: var(--r-panel); padding: 18px 22px; margin: 8px 0 28px; }
.answer-box p { color: var(--text); margin: 0; font-size: 17px; line-height: 1.55; }
.guide .table-wrap { overflow-x: auto; margin: 0 0 18px; }
.guide table th[scope="row"] { color: var(--text); font-weight: 600; white-space: nowrap; }
.guide table.cheat th[scope="row"] { white-space: normal; min-width: 150px; }
.guide table .src { color: var(--text-3); font-size: 13px; min-width: 120px; }
.guide-cta { background: var(--surface); border-radius: var(--r-panel); padding: 22px; margin: 36px 0 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.guide-cta p { margin: 0; }
.guide .fine, .guide .sources { font-size: 14px; color: var(--text-3); }

.practice { display: grid; gap: 18px; }
.pq { background: var(--surface); border-radius: var(--r-panel); padding: 20px 22px; box-shadow: var(--shadow); }
.pq-meta { font: 600 13px/1.2 var(--expanded); color: var(--accent-text) !important; margin: 0 0 8px !important; }
.prose .pq-stem { font: 600 19px/1.4 var(--sans); margin: 0 0 14px; letter-spacing: -0.01em; color: var(--text); }
.pq-choices { list-style: none; padding: 0 !important; display: grid; gap: 8px; margin: 0 0 12px !important; }
.pq-choices li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border: 1.5px solid var(--stroke); border-radius: var(--r-input); color: var(--text) !important; margin: 0 !important; }
.pq-key { font: 600 13px/1 var(--expanded); color: var(--text-3); }
.pq-answer summary { cursor: pointer; font-weight: 600; color: var(--accent-text); list-style: none; }
.pq-answer summary::-webkit-details-marker { display: none; }
.pq-answer[open] summary { margin-bottom: 10px; }
.pq-correct strong { color: var(--success) !important; }
.pq-source { font-size: 14px; color: var(--text-3) !important; }

.steps-list { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 4px; }
.steps-list li { counter-increment: step; position: relative; padding: 0 0 22px 52px; margin: 0 !important; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--inverse); color: var(--on-inverse); font: 600 15px/1 var(--expanded);
}
.steps-list li:nth-child(4)::before { background: var(--accent); color: var(--on-accent); }
.steps-list li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 42px; bottom: 6px; width: 2px; background: var(--stroke-strong); }
.prose .steps-list h2 { margin: 6px 0 6px; font-size: 19px; }
