/* GeniusPath main site.
   Layout: a wide 1200px frame on warm paper; small-capital section labels, thin rules,
   big grade numbers in the marked-script style of the funnel. One blue for actions. */

/* Fonts are hosted here, not on Google, so the first paint is not held up. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/sourceserif4-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/sourceserif4-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --paper: #F4F3EF;      /* page */
  --sheet: #FCFBF8;      /* cards and frames */
  --ink: #141619;        /* text */
  --muted: #5A5E66;      /* secondary text */
  --rule: #DCD9D1;       /* thin dividers */
  --blue: #2F4FD8;       /* buttons and the "to" grade */
  --blue-press: #2440B8;
  --blue-wash: #E7EBFB;
  --lost: #A3231C;       /* the "from" grade only */
  --night: #16181C;      /* the one dark band */
  --night-text: #E9E7E1;
  --night-muted: #A3A6AD;

  --sans: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --frame: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section: 72px;
  --radius: 14px;
}

@media (min-width: 900px) {
  :root { --section: 112px; --gutter: max(32px, env(safe-area-inset-left, 0px)); --gutter-r: max(32px, env(safe-area-inset-right, 0px)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: calc(var(--frame) + var(--gutter) + var(--gutter-r));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.narrow { max-width: 760px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 50; font-family: var(--sans); }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3, .label, .button, .pill, summary, th, label, legend, select, input, button {
  font-family: var(--sans);
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 68px); letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 16px; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.small { font-size: 15px; line-height: 1.5; color: var(--muted); }
.nowrap { white-space: nowrap; }

.label {
  display: block;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.button:hover { background: var(--blue-press); color: #fff; }
.button:active { transform: translateY(1px); }
.button--small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.button--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }
.button--light { background: var(--paper); color: var(--ink); }
.button--light:hover { background: #fff; color: var(--ink); }
.text-link { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--blue); }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { font-family: var(--sans); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--blue); }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.button) { font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.site-nav a:not(.button):hover { color: var(--blue); }
.site-nav__actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

@media (max-width: 979px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .js .site-nav { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter-r) 24px var(--gutter);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px !important; }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 18px; }
  .site-nav__actions .login { padding: 8px 0; }
  .site-nav__actions .button { min-height: 52px; font-size: 17px; }
}
@media (max-width: 979px) { .site-header__inner { position: relative; } .site-header { position: sticky; } }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }
.section--flush { padding-top: 0; }
.section__head { display: grid; gap: 20px; margin-bottom: 48px; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: 48px 72px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding-block: 72px 104px; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 72px; }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; }
.trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rule); margin: 0 12px; background: #B9B5AB; }
.trust strong { color: var(--ink); font-weight: 600; margin-right: 4px; }

.portrait { position: relative; margin: 0 auto; max-width: 440px; width: 100%; }
.portrait img { width: 100%; aspect-ratio: 747 / 1024; object-fit: cover; border-radius: 22px; background: #E8E6E0; }
.portrait__card {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--sheet); border-radius: var(--radius); padding: 16px 20px 14px;
  box-shadow: 0 1px 0 rgba(20,22,25,.04), 0 18px 40px -18px rgba(20,22,25,.35);
  font-family: var(--sans);
}
@media (max-width: 520px) { .portrait__card { left: 12px; bottom: 12px; } }
.portrait__card .label { margin-bottom: 6px; font-size: 11px; }
.portrait__name { position: absolute; right: 16px; top: 16px; background: rgba(20,22,25,.72); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }

/* The grade jump: from (struck, red) to (blue). */
.jump { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--sans); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.jump__from { color: var(--lost); position: relative; }
.jump__from::after { content: ""; position: absolute; left: -8%; right: -8%; top: 52%; height: 2px; background: var(--lost); transform: rotate(-12deg); }
.jump__arrow { color: var(--muted); font-weight: 400; font-size: .6em; }
.jump__to { color: var(--blue); }
.jump--lg { font-size: 44px; }
.jump--xl { font-size: clamp(52px, 6vw, 72px); }

/* ---------- Results ---------- */

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.result { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 560px) { .result { padding-left: 24px; border-left: 1px solid var(--rule); } .result:first-child { border-left: 0; padding-left: 0; } }
@media (min-width: 560px) and (max-width: 1099px) { .result:nth-child(odd) { border-left: 0; padding-left: 0; } }
.result__photo { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #E3E0D8; }
.result__photo--initial { display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 24px; color: var(--muted); }
.result__name { font-family: var(--sans); font-weight: 600; font-size: 17px; }
.result .jump { grid-column: 1 / -1; font-size: 56px; margin-top: 14px; }
.result__note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.results-note { margin-top: 20px; }

/* ---------- Lists ---------- */

.worries { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.worries li { padding: 20px 0; border-bottom: 1px solid var(--rule); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; font-style: italic; }
.worries li:first-child { border-top: 1px solid var(--rule); }
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } }
.callout { font-size: 19px; }
.lost { color: var(--lost); }

/* ---------- Support cards ---------- */

.support { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 26px 24px 22px;
}
.card__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); margin-bottom: 6px; }
.card__icon svg { width: 22px; height: 22px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0; }
.card .text-link { margin-top: auto; padding-top: 8px; font-size: 15px; text-decoration: none; }
.card .text-link:hover { text-decoration: underline; }
.card--key { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card--key p { color: #C6C4BE; }
.card--key .card__icon { background: rgba(255,255,255,.1); color: #fff; }
.card--key .text-link { color: #fff; }

/* ---------- Platform (dark band) ---------- */

.band-dark { background: var(--night); color: var(--night-text); }
.band-dark .label, .band-dark .small { color: var(--night-muted); }
.band-dark .section__head p { color: var(--night-text); }
.shots { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .shots { grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; gap: 32px; }
  .shot--main { grid-column: 1; grid-row: 1; }
  .shot--tall { grid-column: 2; grid-row: 1 / span 2; }
  .shot--wide { grid-column: 1; grid-row: 2; }
}
.shot { margin: 0; }
.frame { border-radius: 12px; overflow: hidden; background: #F4F3F1; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.7); }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #E4E2DD; }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9C6BF; }
.frame__url { margin-left: 10px; flex: 1; max-width: 260px; height: 18px; border-radius: 6px; background: #F4F3F1; font: 500 11px/18px var(--sans); color: #77736B; padding: 0 8px; overflow: hidden; white-space: nowrap; }
.frame img { width: 100%; }
.shot figcaption { margin-top: 14px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--night-muted); max-width: 52ch; }
.shot figcaption strong { color: var(--night-text); font-weight: 600; }
.band-dark .stat-row { border-color: rgba(255,255,255,.14); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
.stat__num { display: block; font-family: var(--sans); font-weight: 700; font-size: 40px; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat__text { font-family: var(--sans); font-size: 15px; line-height: 1.45; }

/* ---------- Subjects ---------- */

.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.subject__link {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 28px 24px 24px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.subject__link::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--subject); }
.subject__link:hover { color: var(--ink); border-color: var(--subject); transform: translateY(-2px); }
.subject__level { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subject); }
.subject__name { font-size: 28px; letter-spacing: -0.03em; }
.subject__blurb { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 0 0 8px; }
.subject__boards { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-top: auto; }
.pill { align-self: flex-start; display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.pill--open { background: #DDEFE5; color: #1E5B3E; }
.pill--soon { background: #EFEBE1; color: #6A5A2E; }
.subject--help .subject__link { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.subject--help .subject__link::before { display: none; }
.subject--help .subject__link:hover { color: var(--paper); border-color: var(--blue); }
.subject--help .subject__blurb { color: #C6C4BE; }
.subject--help .subject__level { color: #8FA4FF; }
.subject--help .text-link { margin-top: auto; color: #fff; }

/* ---------- Mark Recovery System timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { position: relative; padding: 0 0 32px 64px; counter-increment: step; }
@media (min-width: 900px) { .timeline li { padding: 64px 32px 0 0; } }
.timeline li::before {
  /* Question-number boxes, as printed on the exam papers. */
  content: "0" counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 44px; height: 30px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .32em; text-indent: .32em;
  background: var(--sheet); border: 1.5px solid var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: 1.5px 100%; background-position: center; background-repeat: no-repeat;
}
.timeline li::after { content: ""; position: absolute; left: 21px; top: 36px; bottom: 6px; width: 1.5px; background: var(--rule); }
@media (min-width: 900px) { .timeline li::after { left: 56px; right: 12px; top: 15px; bottom: auto; width: auto; height: 1.5px; } }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 8px; font-size: 22px; }
.timeline p { font-size: 16px; color: var(--muted); }
.timeline .when { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 6px; letter-spacing: .02em; }

/* ---------- Meet Abdinajib ---------- */

.meet { display: grid; gap: 48px; }
@media (min-width: 900px) { .meet { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; } }
.meet__photo img { border-radius: 18px; width: 100%; max-width: 420px; aspect-ratio: 747/1024; object-fit: cover; }
.quals { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.quals li { font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); }
.quote { margin: 32px 0; padding: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -0.01em; }
.quote p { max-width: 30ch; }
.quote footer { margin-top: 12px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.video { margin: 40px 0 0; }
.video__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video__frame video, .video__frame img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; }
.video__play img { position: absolute; inset: 0; }
.video__play > span { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.video__play:hover > span { background: #fff; }
.video figcaption { margin-top: 10px; }

/* ---------- Guarantee ---------- */

.guarantee { background: var(--sheet); border: 1px solid var(--ink); border-radius: 20px; padding: 40px 24px; display: grid; gap: 32px; }
@media (min-width: 900px) { .guarantee { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px; } }
.guarantee__promise { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.45; margin-top: 20px; }
.conditions { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.conditions li { counter-increment: c; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
.conditions li:first-child { border-top: 1px solid var(--rule); }
.conditions li::before { content: counter(c); font-family: var(--sans); font-weight: 700; font-size: 22px; color: var(--blue); line-height: 1.3; }
.signature { margin-top: 24px; display: flex; flex-direction: column; }
.signature__name { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.1; }

/* ---------- Fit ---------- */

.fit h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 22px; }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.5; }
.fit li::before { position: absolute; left: 2px; top: 14px; font-family: var(--sans); font-weight: 700; }
.fit--yes li::before { content: "✓"; color: #1E7A4C; }
.fit--no li::before { content: "✕"; color: var(--lost); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 24px; }
.faq__answer p { font-size: 17px; }

/* ---------- Final CTA ---------- */

.final { text-align: left; }
.final__inner { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .final__inner { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.final h2 { font-size: clamp(32px, 4.6vw, 54px); }
.final__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- Subject pages ---------- */

.subject-hero { padding-block: 56px 64px; border-bottom: 1px solid var(--rule); position: relative; }
.subject-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--subject); }
.subject-hero .label { color: var(--subject); }
.subject-hero h1 { margin-bottom: 20px; }
.subject-hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0 32px; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.subject-hero .pill { margin: 0; }
.crumbs { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.papers { margin-bottom: 40px; }
.papers__board { font-size: 18px; margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
tbody th { font-weight: 600; white-space: nowrap; }
.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.included li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--rule); position: relative; font-size: 17px; }
.included li::before { content: "✓"; position: absolute; left: 4px; top: 16px; color: var(--subject, var(--blue)); font-family: var(--sans); font-weight: 700; }
.action-box { background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; padding: 32px 24px; }
@media (min-width: 900px) { .action-box { padding: 48px; } }
.action-box h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.diag-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.diag-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.while-you-wait { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }

/* Forms */
.interest { display: grid; gap: 16px; margin-top: 24px; max-width: 480px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px; font-size: 17px; color: var(--ink);
  background: #fff; border: 1.5px solid #BDB9AF; border-radius: 10px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.interest .button { justify-self: start; }

/* Prose pages: about, legal */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 16px; }
.prose h2 { font-size: 26px; margin: 48px 0 16px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose table { margin: 8px 0 24px; }

.about-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-hero { grid-template-columns: 1.2fr .8fr; gap: 72px; } }
.about-hero img { border-radius: 20px; width: 100%; max-width: 420px; aspect-ratio: 747/1024; object-fit: cover; }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: var(--night-text); padding-block: 64px 40px; margin-top: 0; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer__brand p { font-size: 15px; line-height: 1.6; color: var(--night-muted); max-width: 34ch; margin-top: 12px; }
.wordmark--footer { color: var(--night-text); }
.wordmark--footer span { color: #8FA4FF; }
.wordmark--footer:hover { color: #fff; }
.site-footer .label { color: var(--night-muted); font-size: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: var(--sans); font-size: 15px; }
.site-footer__legal { margin: 24px 0 0; font-family: var(--sans); font-size: 14px; color: var(--night-muted); max-width: none; }
.site-footer__legal a { color: var(--night-muted); text-decoration: underline; }

/* ---------- Cookie banner (from tracking.js) ---------- */

.consent {
  position: fixed; z-index: 40;
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.45);
}
.consent__text { flex: 1 1 260px; margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; }
.consent__text a { color: var(--paper); }
.consent__actions { display: flex; gap: 8px; }
.consent__btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--paper); font-size: 14px; font-weight: 600; cursor: pointer; }
.consent__btn[data-choice="yes"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Motion: fade in on scroll, only with JavaScript and when motion is welcome ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-pending { opacity: 0; transform: translateY(14px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
}

/* Phones: results two to a row. */
@media (max-width: 559px) {
  .results { grid-template-columns: 1fr 1fr; }
  .result { padding: 22px 12px 22px 0; }
  .result:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .result__photo { width: 48px; height: 48px; grid-row: auto; }
  .result__photo--initial { font-size: 19px; }
  .result .jump { font-size: 42px; margin-top: 8px; }
  .trust li + li::before { display: none; }
  .trust { gap: 6px 14px; }
}

/* Paper tables line up across boards. */
.papers table { table-layout: fixed; min-width: 520px; }
.papers thead th:first-child { width: 26%; }
.papers thead th:last-child { width: 26%; }
.papers tbody th { white-space: normal; }

/* WhatsApp buttons (the number itself is never shown). */
.wa-icon { width: 20px; height: 20px; flex: none; }
.button--wa { background: #1F8F4E; }
.button--wa:hover { background: #18773F; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; }
.footer__wa .wa-icon { color: #4FD18B; }
