/* Global Test Prep Solutions — site styles.
   Tokens are copied from the family design system (Claude Design Package/tokens.css v1.1)
   with the Global Test Prep brand roles applied. */

@font-face {
  font-family: "Arapey";
  src: url("../fonts/Arapey-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Variable.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --color-navy: #1C4B82;
  --color-amethyst: #7A45A6;
  --color-amethyst-hover: #6B3D92;
  --color-amethyst-active: #5D347E;
  --color-lilac: #E7DCF2;
  --color-midnight: #0F2A4A;
  --color-gold: #B8945F;
  --color-ivory: #F4EFE7;
  --color-white: #FFFFFF;
  --color-graphite: #5F5A63;
  --color-stone: #E6E1D8;
  --color-pebble: #857E89;
  --success: #2E7D5B;
  --error: #B3261E;

  --signature: var(--color-amethyst);
  --signature-hover: var(--color-amethyst-hover);
  --signature-active: var(--color-amethyst-active);
  --signature-tint: var(--color-lilac);
  --text-primary: var(--color-midnight);
  --text-secondary: var(--color-graphite);
  --text-heading: var(--color-midnight);
  --link: var(--color-amethyst);
  --line: var(--color-stone);

  --font-display: "Arapey", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);
  --fs-h4: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --fs-lead: clamp(1.1875rem, 1.12rem + 0.3vw, 1.3125rem);
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --fs-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-caption: 0.8125rem;
  --fs-eyebrow: 0.8125rem;
  --fs-button: 1rem;
  --lh-display: 1.08; --lh-h2: 1.18; --lh-h3: 1.3; --lh-body: 1.6; --lh-small: 1.5;
  --tracking-eyebrow: 0.12em;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-y: clamp(64px, 4rem + 4vw, 96px);

  --radius-sm: 4px; --radius-md: 8px; --radius-button: 6px;
  --rule-gold-w: 48px; --rule-gold-h: 3px;
  --focus-ring: 0 0 0 2px var(--color-white), 0 0 0 5px var(--signature);
  --focus-ring-inverse: 0 0 0 2px var(--color-midnight), 0 0 0 5px var(--color-white);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --bar-h: 72px;
  --button-h: 48px;
  --input-h: 52px;

  --dur-fast: 150ms;
  --ease-hover: ease-out;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }
@media (max-width: 1279px) { :root { --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-white);
  color: var(--text-primary);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2 { font-family: var(--font-display); font-weight: 400; color: var(--text-heading); margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font: 700 var(--fs-h3)/var(--lh-h3) var(--font-body); color: var(--text-heading); margin: 0; }
h4 { font: 700 var(--fs-h4)/var(--lh-h3) var(--font-body); color: var(--text-heading); margin: 0; }
p { margin: 0; }
p + p { margin-top: var(--space-4); }
/* Faster taps on phones (no double-tap zoom delay) and a brand-tinted tap flash. */
a, button, summary, label, input, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(122, 69, 166, .15); }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 1000;
  background: var(--color-midnight); color: var(--color-white);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-button);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--color-lilac); }
.section--warm { background: var(--color-ivory); }
.section--inverse { background: var(--color-midnight); color: var(--color-white); }
.section--inverse h2, .section--inverse h3 { color: var(--color-white); }
.section--inverse :focus-visible { box-shadow: var(--focus-ring-inverse); }
.measure { max-width: 70ch; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.section-head { margin-bottom: var(--space-7); }
.section-head h2 + p { margin-top: var(--space-4); }

.eyebrow {
  font: 600 var(--fs-eyebrow)/1.4 var(--font-body);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
}
.eyebrow::after {
  content: ""; display: block;
  width: var(--rule-gold-w); height: var(--rule-gold-h);
  background: var(--color-gold);
  margin: var(--space-3) 0 var(--space-4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--button-h); padding: 0 var(--space-5);
  border-radius: var(--radius-button); border: 1.5px solid transparent;
  font: 600 var(--fs-button)/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--signature); color: var(--color-white); }
.btn--primary:hover { background: var(--signature-hover); }
.btn--primary:active { background: var(--signature-active); }
.btn--secondary { background: transparent; color: var(--signature); border-color: var(--signature); }
.btn--secondary:hover { background: var(--signature-tint); }
.btn--white { background: var(--color-white); color: var(--color-midnight); }
.btn--white:hover { background: var(--color-lilac); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: var(--header-h);
}
.site-header__logo { flex: none; display: block; }
.site-header__logo img { height: 40px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.site-nav__links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav__links a {
  color: var(--text-primary); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  padding: var(--space-2) 0; border-bottom: 2px solid transparent;
}
.site-nav__links a:hover { color: var(--signature); }
.site-nav__links a[aria-current="true"] { color: var(--signature); border-bottom-color: var(--signature); }
.gsp-link { color: var(--color-navy); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
.site-header .btn { min-height: 44px; padding: 0 var(--space-4); }
/* Sign in for enrolled students: left of the main button on desktop; an icon beside Menu when the menu collapses. */
.signin {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--color-midnight); font-weight: 600; font-size: var(--fs-small); text-decoration: none; white-space: nowrap;
}
.signin:hover, .signin[aria-current="page"] { color: var(--signature); }
.signin__icon { width: 22px; height: 22px; flex: none; }
.signin--compact { display: none; }
.menu-button {
  display: none; margin-left: auto;
  align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  background: transparent; border: 1.5px solid var(--color-midnight); border-radius: var(--radius-button);
  color: var(--color-midnight); font: 600 var(--fs-button)/1 var(--font-body); cursor: pointer;
}
.menu-button svg { width: 20px; height: 20px; }

@media (max-width: 1279px) {
  .site-header__inner { gap: var(--space-3); }
  .site-header__logo img { height: 36px; }
  .menu-button { display: inline-flex; }
  .site-nav .signin { display: none; }
  .signin--compact {
    display: inline-flex; justify-content: center; margin-left: auto; width: 44px;
    border: 1.5px solid var(--line); border-radius: var(--radius-button);
  }
  .signin--compact + .menu-button { margin-left: 0; }
  .site-nav {
    display: none; white-space: normal;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--space-5);
    background: var(--color-white); border-bottom: 1px solid var(--line);
    padding: var(--space-5) var(--gutter) var(--space-6);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .site-nav__links a[aria-current="true"] { border-bottom-color: var(--line); }
}

@media (max-width: 399px) {
  .site-header__logo img { height: 28px; }
  .menu-button { padding: 0 var(--space-3); }
  .menu-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Sign in page ---------- */
/* Two panels: the brand on Lilac and the form on white. */
.signin-page { padding: var(--space-7) 0 var(--space-8); }
.signin-page__grid {
  display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  padding: 0; max-width: calc(1040px + 2 * var(--gutter)); border-left-width: 0; border-right-width: 0;
}
@media (min-width: 768px) { .signin-page__grid { border-width: 1px; padding: 0; margin: 0 auto; max-width: 1040px; } }
.signin-page__brand {
  position: relative; overflow: hidden; background: var(--color-lilac);
  padding: var(--space-6) var(--gutter); display: grid; justify-items: center; text-align: center; gap: var(--space-4);
}
.signin-page__logo { position: relative; width: min(52%, 220px); height: auto; }
.signin-page__lead { position: relative; font: 400 var(--fs-h3)/1.3 var(--font-display); color: var(--text-heading); max-width: 15em; text-wrap: balance; }
.signin-page__list { position: relative; display: none; list-style: none; margin: 0; padding: 0; text-align: left; font-size: var(--fs-small); }
.signin-page__list li { position: relative; padding-left: var(--space-5); margin: var(--space-2) 0; }
.signin-page__list li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px;
  background: var(--color-gold); transform: rotate(45deg); border-radius: 1px;
}
.signin-page__panel { padding: var(--space-6) var(--gutter) var(--space-7); background: var(--color-white); }
.signin-page__panel h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.signin-page__sub { margin-top: var(--space-2); color: var(--text-secondary); }
.signin-page__notice {
  margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-button);
  background: var(--color-ivory); border-left: 3px solid var(--color-gold); font-size: var(--fs-small);
}
.signin-page__notice:focus { outline: none; }
.signin-form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.signin-form__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.signin-form__show {
  background: none; border: 0; padding: var(--space-1) 0; cursor: pointer;
  font: 600 var(--fs-small) var(--font-body); color: var(--link); text-decoration: underline; text-underline-offset: 3px;
}
.signin-form__forgot { margin-top: calc(-1 * var(--space-2)); font-size: var(--fs-small); font-weight: 600; }
.signin-form__submit { width: 100%; }
.signin-page__enrol { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-secondary); }
.signin-page__enrol a { font-weight: 600; }
@media (min-width: 768px) {
  .signin-page { padding: var(--space-8) 0 var(--space-9); }
  .signin-page__grid { grid-template-columns: 1fr 1fr; }
  .signin-page__brand { padding: var(--space-8) var(--space-7); align-content: center; }
  .signin-page__logo { width: min(70%, 280px); }
  .signin-page__list { display: block; }
  .signin-page__panel { padding: var(--space-8) var(--space-7); align-self: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-midnight); color: var(--color-white); padding: var(--space-6) 0 var(--space-3); font-size: var(--fs-small); line-height: 1.4; }
.site-footer a { color: var(--color-white); }
.site-footer :focus-visible { box-shadow: var(--focus-ring-inverse); }
.site-footer__logo { height: 40px; width: auto; }
.foot { display: grid; gap: var(--space-5); }
.foot__tag { margin: var(--space-3) 0 0; color: var(--color-white); text-wrap: balance; }
.foot__parent { margin: var(--space-1) 0 0; color: var(--color-lilac); }
.site-footer .foot__parent a { color: var(--color-lilac); }
.foot__title { margin: 0 0 var(--space-2); font-weight: 700; color: var(--color-lilac); }
.foot__tests { margin: 0; line-height: 1.6; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-4); }
.site-footer .foot__links a { text-decoration: none; }
.site-footer .foot__links a:hover { text-decoration: underline; }
.foot__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.foot__contact li { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.foot__contact .icon { flex: none; width: 18px; height: 18px; color: var(--color-lilac); }
.foot__contact a { overflow-wrap: anywhere; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-5); margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid rgba(255, 255, 255, .18); font-size: var(--fs-caption); color: var(--color-lilac); }
.site-footer .foot__legal a { color: var(--color-lilac); }
@media (min-width: 768px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); } }
@media (min-width: 1200px) { .foot { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); align-items: start; } }

.mobile-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: var(--bar-h); }
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--color-white); border-top: 1px solid var(--line);
    padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  }
  .mobile-bar[hidden] { display: none; }
  .mobile-bar .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(29px, 1.8rem + 1.8vw, 58px); }
.hero__grid { display: grid; gap: var(--space-6); }
.hero__brand img { width: min(72%, 300px); height: auto; }
.hero__lead { margin: var(--space-5) 0 var(--space-6); max-width: 34em; }
.hero__line { display: block; }
@media (min-width: 900px) {
  /* The stacked logo matches the height of the text beside it. */
  .hero__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); align-items: stretch; }
  .hero__brand { position: relative; min-height: 280px; }
  .hero__brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
}

/* Universities strip: two copies of the list scroll left as one loop. It pauses while the
   pointer is over the logos and with the Pause button; with reduced motion it becomes a
   static, swipeable row. */
.admits { margin-top: var(--space-6); position: relative; }
/* Centred, with equal side margins so the Pause button on the right never overlaps it. */
.admits__title { font-size: var(--fs-small); font-weight: 700; color: var(--text-secondary); text-align: center; margin: 0 var(--space-9) var(--space-5); }
.admits__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.admits__track { display: flex; width: max-content; animation: admits-scroll 260s linear infinite; }
.admits__list { display: flex; align-items: center; gap: var(--space-8); list-style: none; margin: 0; padding: 0 var(--space-8) 0 0; }
/* Each logo's --h is set from its proportions (wide ones shorter, compact ones taller) so they read at a similar size. */
.admits__list img { display: block; height: var(--h, 40px); width: auto; max-width: none; }
.admits__viewport:hover .admits__track, .admits.is-paused .admits__track { animation-play-state: paused; }
.admits__toggle {
  position: absolute; top: -6px; right: var(--gutter);
  font: 600 var(--fs-caption)/1 var(--font-body); color: var(--link);
  background: none; border: 1px solid var(--line); border-radius: var(--radius-button);
  padding: var(--space-2) var(--space-3); min-height: 32px; cursor: pointer;
}
.admits__toggle:hover { border-color: var(--color-amethyst); }
@keyframes admits-scroll { to { transform: translateX(-50%); } }
@media (max-width: 599px) {
  .admits__list { gap: var(--space-6); padding-right: var(--space-6); }
  .admits__list img { height: calc(var(--h, 40px) * 0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .admits__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .admits__track { animation: none; }
  .admits__list[aria-hidden="true"], .admits__toggle { display: none; }
}

/* ---------- Progress chart (How it works) ---------- */
.how__head { display: grid; gap: var(--space-6); margin-bottom: var(--space-8); }
.how__intro .lead { margin-top: var(--space-5); max-width: 32em; }
.how__note { margin-top: var(--space-5); padding-left: var(--space-4); border-left: 3px solid var(--color-gold); font-size: var(--fs-small); color: var(--text-secondary); max-width: 34em; }
.progress-chart { margin: 0; max-width: 640px; }
.hero-chart__title { font: 600 var(--fs-small)/1.4 var(--font-body); color: var(--text-primary); margin-bottom: var(--space-3); }
.progress-chart figcaption { margin-top: var(--space-3); font-size: var(--fs-caption); color: var(--text-secondary); }
/* Desktop: heading, chart and the six-step timeline fit one screen together (designed on a
   1470 x 956 laptop, about 780px of browser window). The chart width follows the window height:
   407px = scroll offset 88 + top padding 24 + chart title and caption 66 + gap 32 + timeline 177 + 20 clear;
   1.4 = the chart's 560:400 shape. */
@media (min-width: 1024px) {
  #how-it-works { padding-top: var(--space-5); }
  .how__head { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: start; margin-bottom: var(--space-6); }
  .how__intro .lead { max-width: 36em; }
  .how__note { max-width: none; }
  .progress-chart { width: clamp(420px, calc((100svh - 407px) * 1.4), 520px); }
  .score-chart text { font-size: 14.5px; } /* keeps labels readable (about 11-13px) at the smaller chart sizes */
}

.score-chart { width: 100%; height: auto; overflow: visible; }
.score-chart text { font-family: var(--font-body); font-size: 13px; fill: var(--color-graphite); }
.score-chart__grid line { stroke: var(--color-stone); stroke-width: 1; }
.score-chart__axis text { text-anchor: end; }
.score-chart__band { fill: var(--color-lilac); }
.score-chart__goal { stroke: var(--color-amethyst); stroke-width: 2; }
.score-chart .score-chart__goal-label { fill: var(--color-amethyst); font-weight: 600; }
.score-chart__line { fill: none; stroke: var(--color-midnight); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.score-chart__line--planned { stroke-dasharray: 2 8; }
.score-chart__points circle { fill: var(--color-midnight); stroke: var(--color-white); stroke-width: 2; }
.score-chart__points text { text-anchor: middle; font-weight: 600; fill: var(--color-midnight); }
.score-chart__diamond { fill: var(--color-gold); }
.score-chart__steps text { text-anchor: middle; font-weight: 500; fill: var(--color-midnight); }
@media (max-width: 599px) {
  /* The chart scales down on phones; enlarge its labels so they stay readable (about 11px on screen). */
  .score-chart text { font-size: 19px; }
  .score-chart__steps text { font-size: 17px; }
}

/* One orchestrated moment: the score line draws from left to right once on load. */
.score-chart .chart-reveal { transform-box: fill-box; transform-origin: left center; }
.score-chart.is-drawing .chart-reveal { animation: chart-reveal 1200ms cubic-bezier(.2, .7, .2, 1) 200ms both; }
.score-chart.is-drawing .score-chart__points > * { animation: chart-fade 300ms ease-out both; }
.score-chart.is-drawing .score-chart__points > :nth-child(-n+2) { animation-delay: 300ms; }
.score-chart.is-drawing .score-chart__points > :nth-child(n+3):nth-child(-n+4) { animation-delay: 650ms; }
.score-chart.is-drawing .score-chart__points > :nth-child(n+5):nth-child(-n+6) { animation-delay: 850ms; }
.score-chart.is-drawing .score-chart__points > :nth-child(n+7):nth-child(-n+8) { animation-delay: 1050ms; }
.score-chart.is-drawing .score-chart__points > :nth-child(9) { animation-delay: 1400ms; }
/* Hidden until it scrolls into view (only when the script runs). */
.score-chart.is-waiting .chart-reveal { transform: scaleX(0); }
.score-chart.is-waiting .score-chart__points > * { opacity: 0; }
@keyframes chart-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes chart-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .score-chart.is-waiting .chart-reveal { transform: none; }
  .score-chart.is-waiting .score-chart__points > * { opacity: 1; }
  .score-chart.is-drawing .chart-reveal,
  .score-chart.is-drawing .score-chart__points > * { animation: none; }
}

/* ---------- Icons (shared sprite at the top of <body>) ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px; height: 24px; flex: none; color: var(--color-amethyst);
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }

/* ---------- Tests we prepare for ---------- */
.section--rule { border-top: 1px solid var(--line); }
/* Intro on white, then each group in its own full-width band, tests side by side. */
/* Half the usual space above the intro, so the hero above can be taller. */
.tests > .section { padding-top: calc(var(--section-y) / 2); }
.tests-intro .lead { margin-top: var(--space-5); max-width: 46em; }

/* The list of tests is the section's main content: one row per stage, test names large in the
   headline face. Plain text, not links. */
.test-index { margin-top: var(--space-6); }
.test-index__rows { list-style: none; margin: 0; padding: 0; }
.test-index__row {
  display: grid; gap: var(--space-3); align-items: start;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.test-index__cat {
  justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm);
  font-size: var(--fs-small); font-weight: 700; white-space: nowrap;
}
.test-index__cat .icon { width: 18px; height: 18px; }
.test-index__row--lilac .test-index__cat { background: var(--color-lilac); color: var(--color-midnight); }
.test-index__row--amethyst .test-index__cat { background: var(--color-amethyst); color: var(--color-white); }
.test-index__row--midnight .test-index__cat { background: var(--color-midnight); color: var(--color-white); }
.test-index__row--amethyst .test-index__cat .icon, .test-index__row--midnight .test-index__cat .icon { color: var(--color-white); }
.test-index__who { margin: 0; max-width: 34em; font-size: var(--fs-small); line-height: var(--lh-small); }
.test-index__who p { margin: 0; }
.test-index__who .test-index__note { margin-top: var(--space-1); color: var(--text-secondary); }
.test-index__tests { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); }
.test-index__test { font: 400 clamp(1.5rem, 1.4rem + 0.4vw, 1.75rem)/1.2 var(--font-display); color: var(--text-heading); }
.test-index__dests { margin: 0; display: grid; gap: var(--space-2); }
.test-index__dest { display: grid; gap: var(--space-1); align-items: baseline; }
.test-index__dest dt { font-size: var(--fs-small); font-weight: 600; }
.test-index__dest dd { margin: 0; }
@media (min-width: 768px) {
  .test-index__row { grid-template-columns: 15rem minmax(0, 1fr); column-gap: var(--space-6); }
  .test-index__cat { grid-column: 1; grid-row: 1; }
  .test-index__who { grid-column: 1; grid-row: 2; }
  .test-index__row > .test-index__tests, .test-index__dests { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1200px) {
  /* The intro lines up with the tests column: 11rem + 22rem + two 32px gaps. */
  .tests > .section { padding-top: var(--space-5); }
  .tests-intro { display: grid; grid-template-columns: calc(33rem + var(--space-6)) minmax(0, 1fr); column-gap: var(--space-6); align-items: start; }
  .tests-intro h2 { grid-column: 1; grid-row: 1; }
  .tests-intro .lead { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  /* The button sits in the empty space under the heading, so it adds no height. */
  .tests-intro__cta { grid-column: 1; grid-row: 2; justify-self: start; margin-top: var(--space-5); }
  .test-index__row { grid-template-columns: 11rem 22rem minmax(0, 1fr); }
  .test-index__who { grid-column: 2; grid-row: 1; }
  .test-index__row > .test-index__tests, .test-index__dests { grid-column: 3; grid-row: 1; }
  .test-index__dest { grid-template-columns: 12.5rem minmax(0, 1fr); column-gap: var(--space-4); }
}
/* Phones already have the sticky Book a free diagnostic bar. */
@media (max-width: 767px) { .tests-intro__cta { display: none; } }
/* Tablets: the button shares the heading's line, so it adds no height. */
@media (min-width: 768px) and (max-width: 1199px) {
  .tests-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-5); align-items: center; }
  .tests-intro .lead { grid-column: 1 / -1; grid-row: 2; }
  .tests-intro__cta { grid-column: 2; grid-row: 1; }
}
.icon-badge {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--radius-md); background: var(--color-lilac); color: var(--color-amethyst);
}

/* ---------- How it works: gold-diamond timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--space-6); }
.steps::before {
  content: ""; position: absolute; background: var(--line);
  left: 16px; top: 16px; bottom: 16px; width: 1px;
}
.step { position: relative; padding-left: 56px; }
.step__marker {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  display: grid; place-items: center;
}
.step__marker::before {
  content: ""; position: absolute; width: 23px; height: 23px; border-radius: 3px;
  background: var(--color-gold); transform: rotate(45deg);
}
.step__marker span { position: relative; color: var(--color-white); font: 700 0.875rem/1 var(--font-body); }
.step h3 { font-size: var(--fs-h4); margin: 4px 0 var(--space-2); }
.step p { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-primary); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5); }
  .steps::before { left: 16px; right: 16px; top: 16px; bottom: auto; width: auto; height: 1px; }
  .step { padding-left: 0; padding-top: 56px; }
  .step h3 { margin-top: 0; }
}

/* ---------- Built around your student ---------- */
/* Every plan is built for one student: what the plan is built around, then what the student gets. */
.plan.section { padding-top: 58px; padding-bottom: 58px; }
.plan__head { display: grid; gap: var(--space-4); }
.plan__head .lead { margin: 0; }
.plan__lead span { display: block; }
.plan__inputs { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.plan__input { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); background: var(--color-white); border-radius: var(--radius-md); text-align: center; font-weight: 700; color: var(--color-midnight); }
.plan__input { font-size: var(--fs-small); line-height: 1.25; text-align: left; }
.plan__input:last-child { grid-column: 1 / -1; }
.plan__input .icon { flex: none; width: 28px; height: 28px; color: var(--color-amethyst); }
.plan__features { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.plan__feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); }
.plan__badge { display: grid; place-items: center; width: 44px; height: 44px; background: var(--color-amethyst); border-radius: var(--radius-md); color: var(--color-white); }
.plan__badge .icon { width: 24px; height: 24px; color: var(--color-white); }
.plan__feature h3 { font-size: var(--fs-h4); margin: 0 0 var(--space-1); }
.plan__feature p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); }
@media (min-width: 768px) {
  .plan__inputs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plan__input { flex-direction: column; padding: var(--space-4) var(--space-2); font-size: var(--fs-body); text-align: center; }
  .plan__input .icon { width: 36px; height: 36px; }
  .plan__input:last-child { grid-column: auto; }
  .plan__features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}
@media (min-width: 1200px) {
  .plan__head { grid-template-columns: calc(33rem + var(--space-6)) minmax(0, 1fr); column-gap: var(--space-6); align-items: start; }
}

/* ---------- Sample report ----------
   A wide document: each heading is one thing every report includes, so the sample does the explaining. */
.report {
  margin-top: var(--space-6); background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; font-size: var(--fs-small); line-height: var(--lh-small);
}
.report__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-5);
  padding: var(--space-3) var(--space-5); background: var(--color-midnight); color: var(--color-white);
}
.report__brand { font-weight: 700; }
.report__student { margin-top: 0; color: var(--color-lilac); }
.report__body { display: grid; gap: var(--space-6); padding: var(--space-5); }
.report__title { font: 700 var(--fs-small)/1.4 var(--font-body); margin-bottom: var(--space-3); }
.report__title--sub { margin: var(--space-4) 0 var(--space-1); }
.report dl { margin: 0; display: grid; gap: var(--space-3); }
.report dd { margin: 0; display: flex; align-items: center; gap: var(--space-3); }
.score-bar dt, .loss-bar dt { margin-bottom: var(--space-1); }
.score-bar__track { flex: 1; height: 10px; background: var(--color-lilac); border-radius: 5px; overflow: hidden; }
.score-bar__fill { display: block; height: 100%; background: var(--color-amethyst); border-radius: 5px; }
.score-bar__value, .loss-bar__value { min-width: 2.5em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.loss-bar dd { gap: var(--space-2); }
.loss-bar__fill { display: block; height: 10px; max-width: calc(100% - 3em); background: var(--color-midnight); border-radius: 2px; }
.loss-bar__value { min-width: 0; text-align: left; }
.report__total { display: flex; align-items: baseline; gap: var(--space-2); margin-top: var(--space-3); }
.report__total strong { font: 400 2.25rem/1 var(--font-display); color: var(--color-midnight); }
.report__scale { margin-left: auto; font-size: var(--fs-caption); color: var(--text-secondary); }
.report__improved strong { font-weight: 700; color: var(--color-amethyst); }
.report__priorities { margin: 0; padding-left: 1.25em; display: grid; gap: var(--space-2); }
.report__priorities li::marker { color: var(--color-amethyst); font-weight: 700; }
/* The plan: the same small gold diamonds as the How it works timeline. */
.report__plan { display: grid; gap: var(--space-1) var(--space-6); padding: var(--space-4) var(--space-5); background: var(--color-ivory); border-top: 1px solid var(--line); align-items: center; }
.report__plan .report__title { margin-bottom: 0; }
.report__timeline { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.report__timeline li { position: relative; padding-left: 18px; }
.report__timeline li::before { content: ""; position: absolute; left: 1px; top: 0.5em; width: 8px; height: 8px; background: var(--color-gold); transform: rotate(45deg); }
.report__timeline strong { display: block; font-weight: 700; }
.report__foot { padding: var(--space-2) var(--space-5); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--text-secondary); }
@media (min-width: 900px) {
  .report__body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
  /* Room for a two-line title, so the three columns' content starts level. */
  .report__block > .report__title:first-child { min-height: 2.8em; }
  .report__plan { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-7); }
  .report__timeline { grid-column: 2 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
}
@media (min-width: 1200px) {
  .loss-bar { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); align-items: center; column-gap: var(--space-2); }
  .loss-bar dt { margin-bottom: 0; }
  .report__losses.report__losses { gap: var(--space-2); }
}

/* ---------- Our method: an animated sample of the whole cycle, one idea per step ----------
   On tablet and desktop the stage is 16:9, ready for a narrated video on top: the clear corner under
   the question card is where the video sits. Without JavaScript all six panels show one after another. */
.method__body { margin-top: var(--space-5); }
.method__more { margin-top: var(--space-4); }
.method { margin: var(--space-6) 0 0; }
.method__board { display: grid; gap: var(--space-4); padding: var(--space-4); background: var(--color-ivory); border: 1px solid var(--line); border-radius: var(--radius-md); }
.method__side { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.method__question { padding: var(--space-4); background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-small); line-height: var(--lh-small); }
.method__question--next, .method__question--flip { display: none; }
.method__label { font-size: var(--fs-caption); font-weight: 600; color: var(--text-secondary); }
.method p.method__problem { margin-top: var(--space-1); }
.method p.method__note { margin-top: var(--space-1); font-size: var(--fs-caption); color: var(--text-secondary); }
.method__word { border-radius: var(--radius-sm); padding: 0 3px; transition: box-shadow .4s; }
.method p.method__answer { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.method__answer strong { font: 400 1.5rem/1.1 var(--font-display); color: var(--text-heading); margin-left: var(--space-2); }
.method__answer--now { display: none; }
.method__corner { position: relative; width: 100%; max-width: 320px; }
.method__corner video { display: block; width: 100%; height: auto; }
/* JavaScript takes over the video's controls; the edges are feathered so it melts into the Ivory stage. */
.method.is-ready .method__corner video {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 12%);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 12%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  /* Anything lighter than the stage takes the stage's color, so no box shows around the presenter on any screen. */
  mix-blend-mode: darken;
}
.method__watch {
  position: absolute; left: 50%; bottom: var(--space-2); transform: translateX(-50%); min-height: 32px; padding: 0 var(--space-3);
  background: var(--color-amethyst); border: 0; border-radius: var(--radius-sm); color: var(--color-white); font: 700 var(--fs-caption)/1 var(--font-body); white-space: nowrap; cursor: pointer;
}
.method__watch[hidden] { display: none; }
.method__watch:hover { background: var(--color-midnight); }
.method.is-paused .method__panel.is-active *, .method.is-paused .method__steps button::before { animation-play-state: paused !important; }
/* Captions: their own row below the explanations, so they can never overlap the animation. */
.method__main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.method p.method__live { display: none; }
.method.is-ready p.method__live { display: flex; align-items: center; justify-content: center; min-height: 72px; text-wrap: balance; margin: 0; padding: var(--space-2); text-align: center; font-size: var(--fs-body); line-height: 1.35; font-weight: 600; color: var(--text-heading); }
.method__transcript { margin-top: var(--space-2); font-size: var(--fs-small); }
.method__transcript summary { cursor: pointer; font-weight: 600; color: var(--link); }
.method__transcript p { margin-top: var(--space-2); }
.method__panels { display: grid; gap: var(--space-6); align-content: start; min-width: 0; padding: var(--space-2); }
.method p.method__caption { font: 400 var(--fs-h3)/1.25 var(--font-display); color: var(--text-heading); margin: 0 0 var(--space-4); }
.method__result { display: flex; align-items: baseline; gap: var(--space-4); }
.method__big { font: 400 4.5rem/1 var(--font-display); color: var(--text-heading); }
.method__wrong { font-weight: 700; color: var(--error); }
.method p.method__why--first { margin-top: 0; }
.method p.method__example { margin: var(--space-3) 0 var(--space-1); font-size: var(--fs-small); font-weight: 700; color: var(--text-heading); }
.method__list, .method__chips, .method__ladder, .method__docs, .method__skills, .method__cycle { list-style: none; margin: 0; padding: 0; }
.method__list { display: grid; gap: var(--space-4); }
.method__row { display: flex; align-items: center; gap: var(--space-3); }
.method__row .icon, .method__right .icon { flex: none; width: 20px; height: 20px; color: var(--color-amethyst); }
.method p.method__ask { font: 400 2rem/1.1 var(--font-display); color: var(--text-heading); margin: 0; }
.method__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.method__chips li { padding: var(--space-1) var(--space-3); background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-small); }
.method__chips .is-on { background: var(--color-amethyst); border-color: var(--color-amethyst); color: var(--color-white); font-weight: 700; }
.method p.method__why { margin: var(--space-3) 0 0; font-size: var(--fs-small); line-height: var(--lh-small); }
.method__ladder { display: grid; gap: var(--space-1); font-size: var(--fs-small); }
.method__ladder li { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; white-space: nowrap; }
.method__bar { display: block; height: 12px; width: calc(var(--w) * .7); background: var(--color-amethyst); border-radius: 2px; }
.method__docs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.method__docs li { padding: var(--space-1) var(--space-3); background: var(--color-lilac); border-radius: var(--radius-sm); font-size: var(--fs-small); font-weight: 700; color: var(--color-midnight); }
.method__try { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); }
.method__first { font-weight: 700; color: var(--error); }
.method__reply { flex-basis: 100%; color: var(--text-secondary); }
.method__right { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 700; }
.method__skills { display: grid; gap: var(--space-4); font-size: var(--fs-small); }
.method__skills li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); }
.method__skill { font-weight: 600; }
.method__status { grid-column: 2; grid-row: 1; color: var(--text-secondary); }
.method__meter { grid-column: 1 / -1; grid-row: 2; display: block; height: 10px; background: var(--color-lilac); border-radius: 5px; overflow: hidden; }
.method__meter span { display: block; height: 100%; width: var(--w); background: var(--color-midnight); border-radius: 5px; }
.method__skills .is-gap .method__status { font-weight: 700; color: var(--color-amethyst); }
.method__skills .is-gap .method__meter span { background: var(--color-amethyst); }
.method__next { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); background: var(--color-white); border-left: 3px solid var(--color-gold); }
.method__next strong { font: 400 var(--fs-h3)/1.2 var(--font-display); color: var(--text-heading); }
/* The cycle: a line through small gold diamonds, as in the How it works timeline. */
.method__cycle { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-5); font-size: var(--fs-caption); font-weight: 600; }
.method__cycle::before { content: ""; position: absolute; left: 4px; right: 12%; top: 4px; height: 1px; background: var(--color-gold); }
.method__cycle li { position: relative; padding-top: var(--space-4); }
.method__cycle li::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; background: var(--color-gold); transform: rotate(45deg); }
.method figcaption { margin-top: var(--space-2); font-size: var(--fs-caption); color: var(--text-secondary); }

/* Opening slides: the usual order flipped, then the platform built from the bottom up. */
.method__flip { display: grid; gap: var(--space-4); }
.method__flip-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.method__flip-label { font-size: var(--fs-small); font-weight: 600; }
.method__flip-card { padding: var(--space-3) var(--space-2); background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; font-size: var(--fs-small); font-weight: 600; }
.method__flip-card--on { background: var(--color-amethyst); border-color: var(--color-amethyst); color: var(--color-white); }
.method__cycle--how { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: var(--fs-small); }
.method__cycle--how::before { right: 30%; }
.method__rise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--space-2); }
.method__rise li { display: flex; align-items: flex-end; padding: var(--space-3); border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-size: var(--fs-small); font-weight: 600; line-height: 1.25; }
.method__rise li:nth-child(1) { min-height: 96px; background: var(--color-amethyst); color: var(--color-white); }
.method__rise li:nth-child(2) { min-height: 136px; background: var(--color-lilac); color: var(--color-midnight); }
.method__rise li:nth-child(3) { min-height: 176px; background: var(--color-white); border: 1px solid var(--line); color: var(--color-midnight); }
.method.is-animating .method__panel.is-active .method__flip-card--a { animation: method-swap-a .8s cubic-bezier(.3, .7, .2, 1) 3.5s both; }
.method.is-animating .method__panel.is-active .method__flip-card--b { animation: method-swap-b .8s cubic-bezier(.3, .7, .2, 1) 3.5s both; }
@keyframes method-swap-a { from { transform: translateX(calc(100% + var(--space-2))); } to { transform: none; } }
@keyframes method-swap-b { from { transform: translateX(calc(-100% - var(--space-2))); } to { transform: none; } }

/* With JavaScript: one panel at a time, in one fixed-height cell so nothing jumps. */
.method.is-ready .method__panels { gap: 0; }
.method.is-ready .method__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.method.is-ready .method__panel.is-active { visibility: visible; opacity: 1; transition: opacity .3s; }
.method.is-ready[data-step="6"] .method__word { box-shadow: 0 0 0 2px var(--color-amethyst); }
.method.is-ready[data-step="7"] .method__answer--was, .method.is-ready[data-step="8"] .method__answer--was { display: none; }
.method.is-ready[data-step="7"] .method__answer--now, .method.is-ready[data-step="8"] .method__answer--now { display: block; }
.method.is-ready[data-step="9"] .method__question--first { display: none; }
.method.is-ready[data-step="9"] .method__question--next { display: block; }
.method.is-ready[data-step="1"] .method__question--first, .method.is-ready[data-step="2"] .method__question--first, .method.is-ready[data-step="3"] .method__question--first { display: none; }
.method.is-ready[data-step="1"] .method__question--flip, .method.is-ready[data-step="2"] .method__question--flip, .method.is-ready[data-step="3"] .method__question--flip { display: block; }
.method.is-animating .method__panel.is-active [style*="--d"] { animation: method-in .45s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.method.is-animating .method__panel.is-active .method__ladder .method__bar,
.method.is-animating .method__panel.is-active .method__meter span { animation: method-grow .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; transform-origin: left center; }
@keyframes method-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes method-grow { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .method.is-animating .method__panel.is-active [style*="--d"],
  .method.is-animating .method__panel.is-active .method__ladder .method__bar,
  .method.is-animating .method__panel.is-active .method__meter span,
  .method.is-animating .method__panel.is-active .method__flip-card { animation: none; }
  .method.is-ready .method__panel.is-active { transition: none; }
}
.method__controls { display: flex; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-2); }
.method__controls[hidden] { display: none; }
.method__steps { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--space-1); }
.method__steps button {
  position: relative; display: flex; align-items: flex-start; gap: var(--space-1); width: 100%; min-height: 44px; padding: var(--space-2) 2px var(--space-1);
  background: none; border: 0; border-top: 3px solid var(--line); border-radius: 0; color: var(--text-secondary); font: 600 var(--fs-caption)/1.2 var(--font-body); text-align: left; cursor: pointer;
}
.method__steps button:hover { color: var(--text-primary); }
.method__steps button[aria-current] { color: var(--color-midnight); border-top-color: var(--color-amethyst); }
.method__steps button.is-playing::before {
  content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--color-amethyst); transform-origin: left center;
  animation: method-grow var(--dur, 5s) linear both;
}
.method__steps button.is-playing[aria-current] { border-top-color: var(--line); }
.method__num { flex: none; font-variant-numeric: tabular-nums; color: var(--color-amethyst); font-weight: 700; }
.method__toggle { flex: none; margin-top: var(--space-1); min-height: 36px; padding: 0 var(--space-3); background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-primary); font: 600 var(--fs-small)/1 var(--font-body); cursor: pointer; }
.method__toggle:hover { border-color: var(--color-amethyst); }
@media (max-width: 767px) {
  .method__step { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .method__steps button { justify-content: center; }
  .method__rise li { padding: var(--space-2); font-size: var(--fs-caption); }
}
@media (min-width: 768px) {
  .method { max-width: 728px; }
  .method__board { aspect-ratio: 16 / 9; grid-template-columns: 236px minmax(0, 1fr); align-items: stretch; gap: var(--space-4); padding: var(--space-4); overflow: hidden; }
  /* The video sits on the stage's bottom edge, as if the presenter were standing in the slide. */
  .method__corner { margin-top: auto; margin-bottom: calc(var(--space-4) * -1); }
  /* Nine steps: the number sits above its label so long words fit. */
  .method__steps button { flex-direction: column; gap: 0; }
}
@media (min-width: 1200px) {
  #method { padding-top: var(--space-5); }
  .method__layout { display: grid; grid-template-columns: minmax(0, 1fr) 728px; column-gap: var(--space-7); align-items: start; }
  .method { margin-top: 0; }
}

/* ---------- Progress reports ---------- */
.reports__body { margin-top: var(--space-5); max-width: 40em; }
.reports__more { margin-top: var(--space-4); max-width: 40em; }
/* Same columns as Tests, so the intro text lines up down the page. On a 1470 x 956 laptop the section fits one screen. */
@media (min-width: 1200px) {
  #reports { padding-top: var(--space-5); }
  .reports__intro { display: grid; grid-template-columns: calc(33rem + var(--space-6)) minmax(0, 1fr); column-gap: var(--space-6); align-items: start; }
  .reports__intro h2 { grid-column: 1; grid-row: 1; }
  .reports__body { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .reports__more { grid-column: 1; grid-row: 2; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-secondary); }
}

/* ---------- Led by ---------- */
.founder { display: grid; gap: var(--space-7); align-items: start; }
.founder__media { max-width: 420px; }
.founder__photo { background: var(--color-lilac); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transform: scale(1.22); transform-origin: 50% 100%; }
.founder__role { margin: var(--space-3) 0 var(--space-6); font-weight: 600; color: var(--text-secondary); font-size: var(--fs-small); }
.highlights { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-3); }
.highlights li { position: relative; padding-left: var(--space-6); font-weight: 600; }
.highlights li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px;
  background: var(--color-gold); transform: rotate(45deg); border-radius: 1px;
}
.short-link {
  display: inline-flex; align-items: center; gap: var(--space-4);
  color: var(--link); font-weight: 600; text-decoration: none;
}
.short-link { margin-top: var(--space-6); }
.short-link img { width: 84px; height: 112px; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-md); flex: none; }
.short-link > span { text-decoration: underline; text-underline-offset: 3px; }
.short-link__note { display: block; margin-top: var(--space-1); font-weight: 400; font-size: var(--fs-caption); color: var(--text-secondary); text-decoration: none; }
/* Awards with their posters sit under the bio; the other credentials are a full-width band under the photo and text. */
.founder__awards { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); max-width: 70ch; }
.founder__awards .highlights { margin: 0; row-gap: var(--space-5); }
.founder__awards .highlights li { font-weight: 400; display: flex; flex-direction: column; gap: var(--space-3); }
/* margin-top:auto keeps the two posters level when the award names wrap to different lengths. */
.award-poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-top: auto; border-radius: var(--radius-md); background: var(--color-lilac); }
@media (min-width: 768px) { .founder__awards .highlights { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); } }
.credentials { display: grid; gap: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.credentials__title { font-size: var(--fs-h4); margin-bottom: var(--space-3); }
.credentials .highlights { margin: 0; }
.credentials .highlights li { font-weight: 400; }
@media (min-width: 768px) { .credentials { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .founder { grid-template-columns: 5fr 7fr; gap: var(--space-8); }
  .credentials { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
}
/* Both columns end on the same line; the photo takes up the difference. */
@media (min-width: 1024px) {
  .founder__media { align-self: stretch; display: flex; flex-direction: column; }
  .founder__photo { position: relative; flex: 1; aspect-ratio: auto; min-height: 0; width: 100%; }
  .founder__photo img { position: absolute; inset: 0; transform: scale(1.26); transform-origin: 50% 100%; }
}

/* ---------- FAQs ---------- */
.faq { display: grid; gap: var(--space-6); }
/* Questions grouped by topic: three columns on desktop, one list on phones. */
.faq__groups { display: grid; gap: var(--space-6); align-items: start; }
.faq__group-title { font-size: var(--fs-h4); margin-bottom: var(--space-3); }
@media (min-width: 1024px) { .faq__groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: var(--space-5) var(--space-7) var(--space-5) 0;
  font-weight: 600; font-size: var(--fs-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: var(--space-2); top: 50%;
  width: 16px; height: 2px; background: var(--color-amethyst); border-radius: 1px;
}
.faq summary::after { transform: rotate(90deg); transition: transform var(--dur-fast) var(--ease-hover); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--color-amethyst); }
.faq details p { padding: 0 var(--space-7) var(--space-5) 0; max-width: 70ch; }
/* FAQs: white tiles of equal height on Lilac. */
#faq { background: var(--color-lilac); padding-top: 58px; padding-bottom: 58px; }
#faq .faq__group-title { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
#faq .faq__list { border: 0; display: grid; gap: var(--space-2); }
#faq details { background: var(--color-white); border: 0; border-radius: var(--radius-md); }
#faq summary { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-7) var(--space-3) var(--space-3); font-size: var(--fs-small); line-height: 1.35; }
#faq summary::before, #faq summary::after { right: var(--space-4); }
.faq__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--color-lilac); border-radius: var(--radius-sm); color: var(--color-amethyst); }
.faq__icon .icon { width: 22px; height: 22px; color: var(--color-amethyst); }
#faq details p { padding: 0 var(--space-4) var(--space-4) calc(40px + var(--space-3) * 2); font-size: var(--fs-small); line-height: var(--lh-small); }

#faq summary { min-height: 84px; }
@media (max-width: 767px) { #faq summary { min-height: 64px; } }
/* Tablet: two columns, the third topic runs across both. */
@media (min-width: 768px) and (max-width: 1023px) {
  #faq .faq__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #faq .faq__group:last-child { grid-column: 1 / -1; }
  #faq .faq__group:last-child .faq__list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ---------- Book a free diagnostic (form) ---------- */
.booking { display: grid; gap: var(--space-7); align-items: start; }
.booking__contact { margin-top: var(--space-6); font-size: var(--fs-small); }
.booking__contact-title { font-weight: 600; margin-bottom: var(--space-2); }
.booking__contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.booking__contact li { display: flex; align-items: center; gap: var(--space-3); }
.booking__contact .icon { width: 20px; height: 20px; }
.booking__panel {
  background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-5);
}
@media (min-width: 768px) { .booking__panel { padding: var(--space-7); } }
@media (min-width: 1024px) {
  .booking { grid-template-columns: 4fr 8fr; gap: var(--space-8); }
  .booking__intro { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}

.form__required-note { font-size: var(--fs-caption); color: var(--text-secondary); margin-bottom: var(--space-5); }
.form__grid { display: grid; gap: var(--space-5); margin-bottom: var(--space-5); }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__abroad[hidden] { display: none; }

.field { display: grid; gap: var(--space-2); align-content: start; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-small); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field select {
  width: 100%; min-height: var(--input-h); padding: 0 var(--space-4);
  border: 1px solid var(--color-pebble); border-radius: var(--radius-button);
  background: var(--color-white); color: var(--text-primary);
  font: 400 1rem/1.4 var(--font-body);
}
.field select {
  appearance: none; padding-right: var(--space-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237A45A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--signature); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__hint { font-size: var(--fs-caption); color: var(--text-secondary); }
.field__error {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--fs-small); font-weight: 600; color: var(--error);
}
.field__error::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--error); color: var(--color-white);
  font: 700 12px/18px var(--font-body); text-align: center;
}
.field__error[hidden] { display: none; }

.field--group { border: 0; margin: 0 0 var(--space-5); padding: 0; min-width: 0; }
.field--group legend { padding: 0; margin-bottom: var(--space-3); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checks--inline { display: flex; gap: var(--space-6); }
.check { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; font-weight: 400; font-size: var(--fs-small); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--color-amethyst); }
.check--consent { align-items: flex-start; min-height: 0; }
.check--consent input { margin-top: 3px; }
.check--consent label { font-weight: 400; line-height: var(--lh-small); }
.field--consent { margin: var(--space-2) 0 var(--space-6); }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  margin-bottom: var(--space-5); padding: var(--space-4);
  border-left: 3px solid var(--error); background: #FBEDEC; font-size: var(--fs-small);
}
.form-alert[hidden] { display: none; }
.form__submit { width: 100%; }
@media (min-width: 640px) { .form__submit { width: auto; min-width: 240px; } }

.form-success { display: flex; gap: var(--space-4); align-items: flex-start; font-size: var(--fs-lead); }
.form-success[hidden] { display: none; }
.form-success svg { flex: none; width: 32px; height: 32px; fill: none; stroke: var(--success); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success:focus { outline: none; }

/* ---------- Simple pages (thank you, 404, privacy) ---------- */
.simple-page h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-bottom: var(--space-5); }
.simple-page__links { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); font-weight: 600; }
.privacy__updated { color: var(--text-secondary); font-size: var(--fs-small); margin-bottom: var(--space-6); }
.privacy h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin: var(--space-7) 0 var(--space-3); }
.privacy ul { margin: var(--space-3) 0 var(--space-4); padding-left: 1.25em; display: grid; gap: var(--space-2); }
