@import url("./exam-paper.css");
@import url("./voyage.css");
@import url("./spoken.css");

@font-face {
  font-family: "Noto Sans KR";
  src: url("/landing-assets/fonts/noto-sans-kr-hangul.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7FF;
}

@font-face {
  font-family: Inter Tight;
  src: url("/landing-assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/landing-assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  /* The app's tokens its grapher draws with (frontend graph/Grapher.tsx, the flow's tutor graph). */
  --surface: #ffffff;
  --fill: #f0f0f0;
  --line-2: #d9d9d9;
  --ink: #141414;
  --muted: #5c5c5c;
  /* The app's own values (frontend/src/App.css), for the exam guide it frames. */
  --faint: #6d6d6d;
  --edge: #cfcfcf;
  --accent-soft: #f6e8ed;
  --serif: "Source Serif 4", "Noto Sans KR", Georgia, "Times New Roman", serif;
  --navy: #10202b;
  --navy-2: #16324a;
  --accent: #9b2f4c;
  --accent-deep: #7a2239;
  /* Text on an accent fill. */
  --on-accent: var(--white);
  --line: #d9d9d9;
  --paper: #fafafa;
  --sea: #edf3f7;
  --white: #fff;
  /* An exam's own ink (home.mjs sets it on an exam page's <main> from brand.mjs::examInks):
     its crew's touch of colour and its proof cards. Navy where there is no exam. */
  --exam-ink: var(--navy);
  /* The navy's light tints, palest to deepest: the water's, and a few pale controls'. */
  --navy-foam: #eef4f8;
  --navy-pale: #d7e6f0;
  --navy-mid: #b9cfdd;
  --navy-deep: #7f9fb4;
  /* THE WATER the sea passages are drawn in: the front swell, the sea behind it, the light
     front the hero's institution row rides.
     The navy and its tints; an exam's page leans them toward its ink (`.exam-page`, below). */
  --wave: var(--navy);
  --wave-sea: var(--sea);
  --wave-foam: var(--navy-foam);
  --wave-pale: var(--navy-pale);
  --wave-mid: var(--navy-mid);
  --wave-deep: var(--navy-deep);
  --water-hi: #2c5f80;
  --water-lo: #16324a;
  --voyage-gold: #9a7300;
  --voyage-gold-soft: #fff3c4;
  --voyage-silver: #4f6a80;
  --voyage-silver-soft: #dfe8f0;
  --voyage-bronze: #9e4430;
  --voyage-bronze-soft: #f8e4d6;
  --amber: #7d5a00;
  --voyage-water: #4f7f9f;
  --accent-wash: color-mix(in srgb, var(--accent-deep) 14%, transparent);
  /* Our column in the comparison table: a quieter gold than the voyage's. */
  --gold-paper: #fbf6e9;
  --gold-line: #d8bf7f;
  --gold-rule: #eadfbf;
  /* A verdict: the feedback pins and outlines. */
  --verdict-no: #c2321a;
  --verdict-no-soft: #efbfb4;
  --verdict-ok: #1f6b45;
  --verdict-ok-soft: #b9d8c7;
  /* The type scale: a title, a lead (an intro paragraph or a card's heading), running text
     and a note (labels, captions, sources). Figures, a chart's axis and bar labels, the drawn
     question papers and the product mock-ups are drawings, not text, and keep their own sizes. */
  --title: clamp(34px, calc(3.6vw / var(--zoom)), 52px);
  --lead: 18px;
  --text: 16px;
  --note: 13px;
  /* Inter Tight is cut for headlines: running text at 0 lets letters touch, and below +.02em
     a 1x screen spaces them unevenly. A reset to "normal" tracking uses this, never 0. */
  --track: .02em;
  letter-spacing: var(--track);
  font-family: "Inter Tight", "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}
/* An exam's page mixes its ink into its water, more in the deep water than the pale, so the
   sea sits with the exam's bar (2026-10-18, the owner's call; the whole ink, 2026-09-23 to
   10-08, was too much). A browser without color-mix keeps the navy rather than losing the fills. */
@supports (color: color-mix(in srgb, red, blue)) {
  .exam-page {
    --wave: color-mix(in srgb, var(--exam-ink) 30%, var(--navy));
    --wave-deep: color-mix(in srgb, var(--exam-ink) 20%, var(--navy-deep));
    --wave-mid: color-mix(in srgb, var(--exam-ink) 14%, var(--navy-mid));
    --wave-pale: color-mix(in srgb, var(--exam-ink) 10%, var(--navy-pale));
    --wave-sea: color-mix(in srgb, var(--exam-ink) 6%, var(--sea));
    --wave-foam: color-mix(in srgb, var(--exam-ink) 5%, var(--navy-foam));
  }
}
* {
  box-sizing: border-box;
}
/* Wide screens zoom the whole page, by the app's rule (frontend/src/App.css says why).
   Every vw/vh is divided by --zoom, and script converts measured boxes with pageScale(). */
/* A browser without CSS zoom or length trig keeps 1, so no vw is divided by a zoom it never applied. */
:root { --zoom: 1; }
@supports (zoom: tan(atan2(1px, 1px))) {
  :root { --zoom: max(1, calc(.95 * min(tan(atan2(100vw, 1920px)), tan(atan2(100vh, 800px))))); }
}
/* A layout wider than 1920 keeps its 1080p margins: the caps hold 2/3 and 3/4 of the width,
   bounded for ultrawides. */
:root {
  /* A section's padding above and below its content; the homepage sets its own (.home-page). */
  --section-pad: 95px;
  --page-max: clamp(1280px, calc(66.667vw / var(--zoom)), 1680px);
  --nav-max: clamp(1440px, calc(75vw / var(--zoom)), 1880px);
}
html {
  zoom: var(--zoom);
  scroll-behavior: smooth;
  /* An anchor lands clear of the bar, whatever its height (`--header-h`, site.js). */
  scroll-padding-top: calc(var(--header-h, 63px) + 28px);
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
summary {
  font: inherit;
}
/* The UA sheet resets tracking to `normal` on form controls; they take --track at their own
   size, so a control inside a tight headline does not carry its negative tracking. */
button, input, select, textarea { letter-spacing: var(--track); }
button {
  color: inherit;
  cursor: pointer;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 4px;
}
img,
svg,
video {
  max-width: 100%;
}
p {
  line-height: 1.55;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 550;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--title);
  line-height: 1.04;
  margin-bottom: 0;
}
h3 {
  font-size: 29px;
  line-height: 1.12;
}
small,
.small {
  font-size: var(--note);
  line-height: 1.6;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.hb-ic {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: visible;
}
.section {
  width: min(var(--page-max), calc(100% - 100px));
  margin: auto;
  padding: var(--section-pad) 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 15px 25px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button,
.ap-fu-mic {
  position: relative;
  z-index: 0;
  overflow: hidden;
}
/* The water a pill fills with: a hovered button's, and the app's mic while it records. */
.button::after,
.ap-fu-mic::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='8' viewBox='0 0 28 8'%3E%3Cpath d='M0 5Q7 2 14 5T28 5' fill='none' stroke='rgba(255,255,255,.5)' stroke-width='1.2'/%3E%3C/svg%3E")
      repeat-x 0 0 / 28px 8px,
    linear-gradient(180deg, var(--water-hi) 0, var(--water-hi) 5px, var(--water-lo) 30px)
      no-repeat 0 4px / 100% 100%;
  translate: 0 103%;
  transition: translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.button::before,
.ap-fu-mic::before {
  content: "";
  position: absolute;
  inset: 30% -1px -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37' height='41'%3E%3Ccircle cx='9' cy='14' r='1.4' fill='rgba(255,255,255,.32)'/%3E%3Ccircle cx='26' cy='31' r='1' fill='rgba(255,255,255,.26)'/%3E%3C/svg%3E")
      repeat 0 0 / 37px 41px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='53' height='47'%3E%3Ccircle cx='17' cy='9' r='1.1' fill='rgba(255,255,255,.28)'/%3E%3Ccircle cx='41' cy='36' r='1.6' fill='rgba(255,255,255,.2)'/%3E%3C/svg%3E")
      repeat 0 0 / 53px 47px;
  opacity: 0;
  transition: opacity 0.3s ease 0.22s;
}
/* Hover belongs to a pointer that hovers. A tap leaves :hover behind on a touch screen, which
   held a pill flooded after it was pressed, so there the water rises only while pressed. */
@media (hover: hover) {
  .button:hover {
    border-color: var(--navy-2);
    transform: translateY(-2px);
  }
  .button:hover::after {
    translate: 0 0;
    animation:
      water-live 2.4s linear infinite,
      water-bob 3s ease-in-out 0.55s infinite;
  }
  .button:hover::before {
    opacity: 1;
    animation: bubbles-rise 2.6s linear infinite;
  }
}
.button:active {
  transform: translateY(1px);
}
.button:active::after {
  translate: 0 0;
  transition-duration: 0.3s;
  animation: water-live 2.4s linear infinite;
}
@keyframes water-live {
  from {
    background-position:
      0 0,
      0 4px;
  }
  to {
    background-position:
      28px 0,
      0 4px;
  }
}
@keyframes water-bob {
  from {
    transform: none;
  }
  50% {
    transform: translateY(-1.2px);
  }
}
@keyframes bubbles-rise {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      0 -41px,
      0 -47px;
  }
}
/* The light pill: an ink outline on white, which the same water floods white on hover. */
.button.light {
  background: var(--white);
  color: var(--ink);
}
@media (hover: hover) {
  .button.light:hover {
    color: var(--white);
  }
}
.button.light:active {
  color: var(--white);
}
.button.wide {
  display: flex;
  width: 100%;
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
/* Same public document, framed by the signed-in study shell. The page keeps its original
   URL and all of its own links; only the duplicate public chrome stands down. */
html.embedded .skip,
html.embedded .header,
html.embedded .footer { display: none; }
html.embedded { scroll-padding-top: 0; }
.header {
  --bar-bg: rgba(255, 255, 255, 0.98);
  --bar-rule: var(--line);
  position: sticky;
  top: 0;
  background: var(--bar-bg);
  z-index: 20;
  transition: background 0.35s;
}
/* The bar's lower edge is a swell (2026-10-18, the owner's call): a strip of the bar's own
   ground hangs under it, cut to a wave, with the dotted rule along the wave's line. Both are
   masks of one curve, so they take the bar's colours, an exam's tint included; they sit under
   the bar's contents (a phone's open menu covers them) and take no pointer. */
.header::before,
.header::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  z-index: -1;
  height: 16px;
  pointer-events: none;
  -webkit-mask: var(--bar-edge) repeat-x 0 0 / 360px 16px;
  mask: var(--bar-edge) repeat-x 0 0 / 360px 16px;
}
.header::before {
  --bar-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='16'%3E%3Cpath d='M0 0V8q90 -12 180 0t180 0V0z'/%3E%3C/svg%3E");
  background: var(--bar-bg);
}
.header::after {
  --bar-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='16'%3E%3Cpath d='M0 8q90 -12 180 0t180 0' fill='none' stroke='%23000' stroke-dasharray='1.5 2.5'/%3E%3C/svg%3E");
  background: var(--bar-rule);
}
/* An exam's bar, on its page, guides and articles, wears the exam's ink faintly, so its
   pages read as its own (2026-10-18, the owner's call). A browser without color-mix keeps the
   white bar rather than a see-through one. */
@supports (color: color-mix(in srgb, red, blue)) {
  .exam-bar {
    --bar-bg: color-mix(in srgb, var(--exam-ink) 11%, var(--white));
    --bar-rule: color-mix(in srgb, var(--exam-ink) 30%, var(--white));
  }
}
/* The homepage's bar folds once scrolled (site.js sets `scrolled` there only): the mark and
   the exam links stay, over a white fade that
   keeps them readable against whatever is passing under. The band itself stops taking the
   pointer so the page below it is still clickable; the mark and the links take it back. Without JavaScript the
   class is never set and the whole bar stays. */
@media (min-width: 851px) {
  html.scrolled .header {
    --bar-bg: var(--white);
    pointer-events: none;
  }
  /* The scrim runs on PAST the bar rather than fading inside it. Fading within the bar left
     the ground under the mark at 0.97 and the page's own text ghosted through it; solid to the
     bar's edge and a fade below gives both controls clear ground and still dissolves into the
     page instead of ending on an edge. It takes the wave rule's place. */
  html.scrolled .header::after {
    height: 44px;
    background: linear-gradient(var(--white), rgba(255, 255, 255, 0));
    -webkit-mask: none;
    mask: none;
  }
}
html.scrolled .header nav,
html.scrolled .nav-actions,
html.scrolled .menu-toggle {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
}
html.scrolled .brand {
  pointer-events: auto;
  font-size: 28px;
}
html.scrolled .brand .hb-ic {
  width: 41px;
  height: 41px;
}
/* The homepage's folded bar: the hero's question and one pill button per exam. A hover
   fills the pill navy, which is what says it is a button; no arrows. Absent at the top,
   where the nav carries the exam menu. */
.nav-exams {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.nav-exams-lead {
  margin-inline-end: 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.nav-exams .nav-exam {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  padding-inline-start: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-exam-marker {
  font-size: 18px;
  line-height: 1;
}
.nav-exams a.nav-exam:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
/* Narrower bars drop the question, then tighten the pills, before they would meet the mark. */
@media (max-width: 1280px) {
  .nav-exams-lead { display: none; }
}
@media (max-width: 1000px) {
  .nav-exams { gap: 6px; }
  .nav-exams .nav-exam { padding: 8px 12px; padding-inline-start: 10px; font-size: 14px; }
}
html.scrolled .nav-exams {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.nav-wrap {
  position: relative;
  height: 62px;
  width: min(var(--nav-max), calc(100% - 80px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  letter-spacing: -0.045em;
  font-weight: 550;
  white-space: nowrap;
  transition: font-size 0.35s;
}
.brand .hb-ic {
  width: 34px;
  height: 34px;
  transition: width 0.35s, height 0.35s;
}
.brand-dot {
  color: var(--accent-deep);
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
}
/* The row reaches the bar's full height so the menu under it can hang off the bar's own
   rule rather than off the word "Exams". Stretching only the <details> reaches the 16px
   text row, not the bar. */
.header nav {
  align-self: stretch;
  gap: 34px;
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
}
.header nav,
.nav-actions,
.menu-toggle {
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.nav-actions {
  display: flex;
  align-items: center;
}
.mobile-nav-action {
  display: none;
}
.nav-actions .button {
  font-size: 15px;
  padding: 8px 18px;
  gap: 20px;
}
.menu-toggle {
  display: none;
}
.menu-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.menu-icon i {
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: top 220ms cubic-bezier(.22, 1, .36, 1),
    transform 220ms cubic-bezier(.22, 1, .36, 1), opacity 150ms ease;
}
.menu-icon i:nth-child(1) { top: 0; }
.menu-icon i:nth-child(2) { top: 6px; }
.menu-icon i:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
.exam-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-chevron {
  flex-shrink: 0;
  width: 9px;
  height: auto;
  transition: transform 0.2s;
}
/* The language menu names the language by its code beside a globe, so it stays narrow in the bar. */
.language-menu summary .ap-glyph {
  width: 15px;
  height: 15px;
}
.language-flag {
  width: 24px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}
.language-menu > .dropdown {
  max-block-size: min(70dvh / var(--zoom), 32rem);
  overflow-y: auto;
}
@media (min-width: 851px) {
  /* The links sit at the end of the bar; the language menu, where a page has one, stays by the mark. */
  .header nav { flex: 1; justify-content: flex-end; }
  .language-menu { margin-inline-end: auto; }
}
.exam-menu[open] .menu-chevron {
  transform: rotate(180deg);
}
.exam-menu[open] summary {
  color: var(--accent-deep);
}
/* The panel HANGS OFF the header's bottom rule rather than floating at a fixed offset from
   the word: it used to start above the rule and cross it, which is what made it read as
   broken. With the row and the details both stretched to the bar, `100%` IS that rule at
   every header height and the extra pixel clears the header's own border. */
.exam-menu {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  inset-inline-start: -24px;
  width: max-content;
  max-width: 340px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 18px 34px -20px rgba(20, 32, 43, 0.45);
  white-space: normal;
}
/* A menu that closes its bar (an exam's resources, the main bar's More) hangs back from its
   right edge instead. */
.exam-menu:has(+ .mobile-nav-action) .dropdown {
  inset-inline-start: auto;
  inset-inline-end: -24px;
}
/* One row per exam: its marker, its name and what the bank holds for it. */
.menu-exam {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 6px;
}
a.menu-exam:hover {
  background: var(--sea);
}
a.menu-exam:hover strong {
  color: var(--accent-deep);
}
.menu-marker {
  font-size: 20px;
  line-height: 1;
}
.menu-exam strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.menu-exam small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
}
.question-bank {
  padding-top: 76px;
  padding-bottom: 66px;
}
/* Every section opens the same way: the title, its lead copy or its controls to the right,
   and a dotted rule above it unless a sea passage already divides it from the one before. */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 45px;
  margin-bottom: 44px;
}
.section-head > :is(p, span) {
  flex: 0 1 440px;
}
main > section.section:not(.hero, .home-hero, .home-exams, .edu-hero, .home-trial, .home-results, .home-results + section, .sea-passage + section, .how-cue + section),
main > section:not(.sea-passage + section, .how-cue + section) > .section {
  border-top: 1px dotted var(--line);
}
.section-head > span {
  font-size: var(--text);
  line-height: 1.55;
  color: var(--muted);
}
.section-head > p {
  font-size: var(--text);
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.section-head > p strong {
  color: var(--ink);
  font-weight: 600;
}
.section-head > p a,
.faq-list p a {
  color: var(--ink);
  border-bottom: 1px dotted currentColor;
}
.title-accent { color: var(--accent-deep); }
/* A title (and its lead copy) with some of the app's crew (crew.css) hiding behind it: each
   window is clipped on the title's top edge, so a face rises over it, looks about, and ducks
   back. site.js places every turn over the title's first line and varies it. */
:is(.section-head, .home-pricing-head) > .crew-peek { flex: none; width: fit-content; max-width: 100%; }
.crew-peek {
  position: relative;
  margin-top: 48px;
}
/* The crew's five values, for the heading's peek and the flow's chat alike; their own
   touch of colour is the exam's ink. */
:is(.crew-peek, .ap-say) {
  color: var(--exam-ink);
  --crew-ink: var(--ink);
  --crew-paper: var(--white);
  --crew-warm: var(--accent);
  --crew-pale: var(--voyage-gold-soft);
  --crew-ease: cubic-bezier(.22, 1, .36, 1);
}
.crew-peek > h2 { color: var(--ink); }
.crew-peek > p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: var(--text);
  line-height: 1.55;
  color: var(--muted);
}
.peek { position: absolute; bottom: 100%; left: 0; width: 60px; clip-path: inset(-24px -24px 0 -24px); pointer-events: none; }
.crew-peek .crew { width: 60px; height: 63px; transform: translateY(112%); transform-origin: 50% 100%; }
.handwriting-section {
  position: relative;
}
.handwriting-section h2 > span {
  color: var(--accent-deep);
}
.recording {
  margin: 0;
}
.recording video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: var(--navy);
}
.recording details {
  font-size: 11px;
  margin-top: 10px;
}
.recording details p {
  font-size: 13px;
  max-width: 700px;
}
/* `html` outranks katex.min.css, which loads after this sheet, and leaves a scoped rule
   (`.sample-app`, `.worked`) free to set its own margin. */
html .katex-display {
  margin: 25px 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px;
}
/* A table clipped at its edge has to say so - but only while it actually is, which is a
   measurement (`site.js` `measure()`), not a width. Without script nothing measures, so
   nothing is claimed. */
.scroll-hint {
  display: none;
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.js .scroll-hint:not([hidden]) {
  display: block;
}
.comparison-frame { position: relative; }
.compare-more { display: none; }
/* A phone sees few platforms at once: a fade and an arrow at the edge say more wait past it. */
@media (max-width: 700px) {
  .js .comparison-frame:has(.compare-more:not([hidden]))::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 10px; z-index: 3; width: 48px;
    background: linear-gradient(90deg, transparent, var(--white) 75%); pointer-events: none;
  }
  .js .compare-more:not([hidden]) {
    position: absolute; top: -14px; right: 6px; z-index: 4;
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--ink); color: var(--white); box-shadow: 0 6px 16px -6px rgba(20, 32, 43, .5);
  }
  .compare-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
}
.comparison-scroll {
  overflow: auto;
  max-width: 100%;
  padding-bottom: 10px;
}
/* Every platform is a column. Past the width they need the table scrolls, and the row labels
   and our column stay put while the platforms pass under them. */
.comparison-matrix {
  /* Wide enough that every row label, in every language, takes at most two lines. */
  --label-w: 240px;
  width: 100%;
  min-width: calc(var(--label-w) + var(--cols) * 112px);
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
  table-layout: fixed;
}
.comparison-matrix th,
.comparison-matrix td {
  padding: 20px 12px;
  border-bottom: 1px dotted var(--line);
  line-height: 1.4;
  /* A row's figures share one line, whatever else a cell holds above or after its figure. */
  vertical-align: baseline;
}
/* The band is what carries the eye across a row; the table has no rules between its
   columns. Sea is the page's own water tint, not a new colour. */
.comparison-matrix tbody tr:nth-child(odd) > th,
.comparison-matrix tbody tr:nth-child(odd) td:not(.our-column) {
  background: var(--sea);
}
.comparison-matrix tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: var(--label-w);
  box-sizing: border-box;
  background: var(--white);
  text-align: left;
  font-weight: 450;
  font-size: 14px;
  line-height: 1.45;
  padding-left: 12px;
}
.comparison-matrix tr > th:first-child b {
  font-weight: 600;
}
.comparison-matrix thead :is(th, td) {
  height: 90px;
  font-size: 12px;
  font-weight: 550;
  border-top: 1px solid var(--ink);
  vertical-align: middle;
}
.comparison-matrix thead th .hb-ic {
  display: block;
  margin: 0 auto 7px;
  width: 29px;
  height: 29px;
}
/* Our column is gold paper, outlined in gold at its sides and foot; its head takes the table's
   black top rule (2026-10-27, the owner's call: solid navy read as a divider between the
   columns, not as the platform they are compared against). */
.comparison-matrix .our-column {
  position: sticky;
  left: var(--label-w);
  z-index: 1;
  background: var(--gold-paper);
  border-bottom-color: var(--gold-rule);
  box-shadow: inset 2px 0 var(--gold-line), inset -2px 0 var(--gold-line);
  font-weight: 500;
}
.comparison-matrix thead .our-column {
  font-size: 15px;
}
.comparison-matrix tbody tr:last-child .our-column {
  border-bottom: 0;
  box-shadow: inset 2px 0 var(--gold-line), inset -2px 0 var(--gold-line), inset 0 -2px var(--gold-line);
}
/* A VALUE CELL is a figure and the basis it rests on - "$299", then "30 days". The basis is
   the honest half: it is where "paid up front" is said, so it is never dropped. It waits behind
   an info button beside the figure, so the row reads as figures. */
.comparison-matrix .cell-figure { display: block; }
.comparison-matrix .cell-term { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.comparison-matrix td b {
  font-weight: 550;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.cell-info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 11px;
  margin-left: 3px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 8px;
  font-weight: 650;
  line-height: 1;
  /* Raised to the text's top, which keeps it inside the line: `super` made a line with a
     button taller than one without, and the row's terms stopped lining up. */
  vertical-align: text-top;
  cursor: pointer;
}
/* An 11px mark with a 29px target. */
.cell-info::before { content: ""; position: absolute; inset: -9px; }
.cell-info:hover, .cell-info:focus-visible { color: var(--accent-deep); }
.cell-info:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
/* The platform's tooltip (frontend App.css `[data-tip]::after`): ink ground, white 13px/550.
   It is a popover rather than an `::after`, which the table's scroll box would clip. */
.cell-note {
  max-width: 240px;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 10px 24px -14px rgba(20, 20, 20, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  text-align: left;
}
/* With the script, a note shows once it has been placed beside its button. */
html.js .cell-note:not(.placed) { visibility: hidden; }
.comparison-matrix .yes {
  display: inline-block;
  font-size: 19px;
  font-weight: 500;
  color: var(--water-hi);
}
.comparison-matrix .our-column .yes {
  color: var(--voyage-gold);
}
/* A half-filled ring: drawn, since a font's half circle glyph varies in size and weight. */
.comparison-matrix .partial {
  display: inline-block;
  width: 17px;
  height: 17px;
  box-sizing: border-box;
  border: 2px solid var(--water-hi);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--water-hi) 50%, transparent 50%);
  vertical-align: -2px;
}
.comparison-matrix .no {
  color: #6b767e;
  font-size: 16px;
}
/* The price rows (the price, and what another exam or subject adds) are what a reader comes
   for: filled, and their figures set larger. */
.comparison-matrix tbody tr.compare-price > :is(th, td):not(.our-column) {
  background: var(--accent-soft);
}
.comparison-matrix tr.compare-price > th:first-child { font-weight: 600; }
.comparison-matrix tr.compare-price td b { font-size: 17px; font-weight: 650; }
.comparison-matrix tr.compare-price .our-column b { font-size: 19px; }
@media (prefers-reduced-motion: reduce) {
  .header,
  .header nav,
  .nav-exams,
  .nav-actions,
  .menu-toggle,
  .menu-chevron,
  .brand,
  .brand .hb-ic {
    transition: none;
  }
}
/* The homepage's exam switch, under its label, above the tables. */
.compare-controls { display: none; margin: 28px 0 0; }
/* The comparison's table follows its head closer than another section's content does. */
.compare > .section-head { margin-bottom: 24px; }
@media (max-width: 900px) { .compare > .section-head { margin-bottom: 18px; } }
html.js .compare-controls { display: block; }
.compare-controls > span { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 550; color: var(--ink); }
.exam-switcher.compare-exams { flex-wrap: nowrap; gap: 4px; }
.exam-switcher.compare-exams button { padding: 13px 18px; font-size: 15px; white-space: nowrap; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1030px;
  margin: auto;
}
.price-card {
  padding: 35px 40px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 48px -42px rgba(20, 32, 43, .55);
}
.price-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: var(--text);
}
.price-card-head > .hb-ic {
  width: 42px;
  height: 42px;
  color: var(--navy-2);
}
.price {
  font-size: 78px;
  letter-spacing: -0.065em;
  line-height: 1;
  margin: 30px 0 25px;
}
.price > span {
  font-size: 13px;
  letter-spacing: var(--track);
  color: var(--muted);
  margin-left: 14px;
}
/* The line under a card's figure (site.js): the exam the trial covers, and how the
   membership's figure is made up once the reader sits more than one exam. */
.price-breakdown {
  margin: -12px 0 18px;
  font-size: var(--text);
  color: var(--muted);
}
.no-card {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.35em;
  margin-right: 6px;
}
.benefits {
  list-style: none;
  padding: 20px 0 0;
  margin: 0 0 27px;
  border-top: 1px dotted var(--line);
  flex: 1;
}
.benefits li {
  font-size: var(--text);
  line-height: 1.55;
  margin: 15px 0;
  padding-left: 25px;
  position: relative;
}
.subject-breakdown[hidden] { display: none; }
.subject-breakdown {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--note);
  line-height: 1.4;
}
.benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.benefits li strong {
  font-weight: 600;
}
/* The one way in, under both cards: the page sells nothing itself. */
.price-go {
  max-width: 1030px;
  margin: 42px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.price-go .button {
  max-width: 480px;
  padding: 20px 38px;
  gap: 12px;
  font-size: var(--text);
}
.price-go p {
  margin: 0;
  font-size: var(--note);
  color: var(--muted);
}
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 65px;
}
.faq-list details {
  border-bottom: 1px dotted var(--line);
  padding: 19px 0;
}
.faq-topic > details:first-of-type {
  padding-top: 0;
}
/* The topics: tabs under the heading, each with its count. Without script there are no tabs
   and every topic stands under its own heading instead. */
.faq-tabs, .article-tabs { display: none; }
html.js :is(.faq-tabs, .article-tabs) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
:is(.faq-tabs, .article-tabs) button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
:is(.faq-tabs, .article-tabs) button[aria-selected="true"] { border-color: var(--navy); background: var(--sea); }
:is(.faq-tabs, .article-tabs) button:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
:is(.faq-tabs [data-faq-count], .article-tabs span) { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* The FAQ's topics are a MENU down the left column, not a row of pills: as pills, readers took
   the open topic's questions for the whole list. Full-width rows with a count and a chevron;
   the open one is filled navy, the landing's mark of a pressed control. */
html.js .faq-tabs {
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 360px;
}
.faq-tabs button {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: var(--text);
  text-align: start;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.faq-tabs button:hover { border-color: var(--navy); }
.faq-tabs [data-faq-count] { margin-inline-start: auto; font-size: 13px; }
.faq-tabs button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 4px 2px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
}
.faq-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.faq-tabs button[aria-selected="true"] [data-faq-count] { color: var(--navy-pale); }
.faq-tabs button[aria-selected="true"]::after { opacity: 1; }
/* Side by side, the questions start level with the first topic rather than with the title:
   the head's children join the grid, the title on its own row above the menu. */
@media (min-width: 601px) {
  html.js .faq:has(.faq-tabs) { row-gap: 28px; }
  html.js .faq:has(.faq-tabs) > .section-head { display: contents; }
  html.js .faq .faq-tabs { grid-column: 1; margin-top: 0; }
  /* Down by a menu row's top padding, so the first question reads level with the first topic. */
  html.js .faq:has(.faq-tabs) > .faq-list { grid-column: 2; grid-row: 2; padding-top: 14px; }
}
.faq-topic > h3 { margin: 0 0 19px; font-size: var(--text); font-weight: 550; }
.faq-topic + .faq-topic { margin-top: 40px; }
html.js .faq-topic > h3 { display: none; }
html.js .faq-topic + .faq-topic { margin-top: 0; }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: var(--text);
  font-weight: 550;
  line-height: 1.55;
  cursor: pointer;
}
.faq-list summary span { color: var(--accent-deep); font-size: 23px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p {
  font-size: var(--text);
  line-height: 1.55;
  color: var(--muted);
  margin: 17px 25px 0 0;
}
.footer {
  padding: 30px max(50px, calc((100% - var(--page-max)) / 2)) 25px;
  border-top: 1px dotted var(--line);
}
.footer-bottom {
  display: flex;
  gap: 25px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px dotted var(--line);
  margin-top: 25px;
  padding-top: 22px;
}
.footer-bottom > span {
  margin-right: auto;
}
.guide-main .button {
  margin-top: 5px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
th,
td {
  padding: 15px;
  border-bottom: 1px dotted var(--line);
  vertical-align: top;
}
thead th {
  background: var(--paper);
}
tbody th {
  font-weight: 500;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  padding-bottom: 10px;
}
.guide-cards a:hover {
  border-color: var(--accent-deep);
}
@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(190px);
  }
}
.guide-main {
  padding-top: 58px;
}
/* THE EXAM GUIDE, laid out as the app's reader was (docs/exam-guide-one-page-plan.md D2): the
   serif heading over a dotted rule, the paper's tiles, then a searchable, numbered contents
   rail beside one scroll of chapters. The study shell frames this page, so it is the one
   design a student sees in either place. */
.guide-hero {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 32px;
  flex-wrap: wrap;
  padding-bottom: 29px;
  border-bottom: 1px dotted var(--ink);
}
.guide-hero > div {
  flex: 1 1 520px;
  min-width: 0;
  order: 1;
}
.guide-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, calc(3.6vw / var(--zoom)), 40px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0 0 12px;
}
/* The app's own setting of the holder's symbol: half the name's size read as a speck. */
.guide-mark {
  font-size: 0.8em;
  vertical-align: 0.34em;
  margin-left: 0.1em;
  font-weight: 500;
  opacity: 0.9;
}
.guide-hero .guide-intro {
  max-width: 60ch;
}
.guide-updated {
  order: 2;
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}
.guide-marks {
  max-width: 46rem;
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--faint);
}
/* The frame's notice: how the page matches the plan, in the calendar's ink band. */
.guide-scope {
  position: sticky;
  top: var(--header-h, 63px);
  z-index: 5;
  margin: -58px 0 32px;
  padding: 11px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.guide-scope button {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  padding: 0;
}
.exam-guide {
  --guide-top: calc(var(--header-h, 63px) + var(--note-h, 0px) + 16px);
}
html.embedded .exam-guide {
  --guide-top: calc(var(--note-h, 0px) + 16px);
}
.guide-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 29px;
}
/* A paper with chosen sections shows no totals until a plan names the choice. */
.guide-glance:not(:has(.guide-stat:not([hidden]))) {
  display: none;
}
.guide-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 6px;
  background: var(--paper);
}
.guide-stat-n {
  font-family: var(--serif);
  font-size: clamp(23px, calc(2.4vw / var(--zoom)), 30px);
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.guide-stat-label {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  overflow-wrap: anywhere;
}
.guide-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: clamp(24px, calc(4vw / var(--zoom)), 64px);
  align-items: start;
  margin-top: 35px;
}
/* Right of the chapters on a wide screen; above them once the column is single. */
.guide-contents {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: var(--guide-top);
  max-height: calc(calc(100dvh / var(--zoom)) - var(--guide-top) - 16px);
  overflow-y: auto;
  padding: 0 6px 13px 2px;
  font-size: 13px;
}
.guide-contents label {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
}
.guide-contents input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
}
.guide-contents input::placeholder {
  color: var(--muted);
}
.guide-contents summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
}
.guide-contents summary span,
.guide-matches {
  color: var(--muted);
  font-weight: 400;
}
.guide-matches {
  margin: 0 0 8px;
}
.guide-contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-contents li {
  margin-bottom: 4px;
}
/* Not the site bar's flex row: centred in its phone-height box, the list's first entries sat
   above it, out of scroll's reach. */
.guide-contents nav {
  display: block;
  margin-left: 0;
  font-size: inherit;
  font-weight: inherit;
}
.guide-contents nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  line-height: 1.45;
}
.guide-contents nav a:hover {
  color: var(--ink);
  background: var(--paper);
}
.guide-contents nav a[aria-current] {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: var(--accent-deep);
  font-weight: 600;
}
.guide-toc-n {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  margin-right: 9px;
}
.guide-contents nav a[aria-current] .guide-toc-n {
  color: inherit;
}
.guide-chapters {
  min-width: 0;
}
.guide-chapter {
  max-width: 66ch;
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px dotted var(--edge);
  /* On top of the page's own scroll-padding, which clears the site header (none when framed). */
  scroll-margin-top: calc(var(--note-h, 0px) + 16px);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
/* `is-first` is the script's: the first chapter left after a search or the plan's filter. */
.guide-chapter:first-child,
.guide-chapter.is-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.js .guide-chapter:first-child:not(.is-first) {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px dotted var(--edge);
}
.guide-chapter h2 {
  font-family: var(--serif);
  font-size: clamp(22px, calc(2.2vw / var(--zoom)), 27px);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 16px;
}
.guide-chapter h3 {
  font-family: "Inter Tight", "Noto Sans KR", Arial, sans-serif;
  letter-spacing: var(--track);
  font-size: 15px;
  line-height: 1.5;
  margin: 32px 0 10px;
}
.guide-chapter p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: inherit;
}
.guide-chapter a {
  color: var(--accent-deep);
  text-underline-offset: 0.17em;
}
.guide-chapter li {
  margin-bottom: 12px;
  color: var(--ink);
}
/* The chapters' furniture reads in the sans face; only prose takes the serif. */
.guide-chapter :is(.guide-facts, .guide-papers, .guide-rules, .guide-toolkit-picker, figcaption, .edition, table, .guide-cards, .topic-list, details) {
  font-family: "Inter Tight", "Noto Sans KR", Arial, sans-serif;
}
.guide-chapter.is-caution {
  padding: 22px 26px 6px;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--accent-deep);
  border-radius: 4px;
  background: var(--paper);
}
.guide-chapter.is-caution h2 {
  font-size: 20px;
}
.guide-chapter .guide-caution-label {
  font: 650 11px/1.5 "Inter Tight", "Noto Sans KR", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin: 0 0 7px;
}
.guide-chapter .guide-list {
  padding-left: 21px;
}
.guide-chapter .guide-list.is-check,
.guide-chapter .guide-list.is-cross {
  list-style: none;
  padding-left: 0;
}
.guide-chapter .guide-list.is-check li,
.guide-chapter .guide-list.is-cross li {
  position: relative;
  padding-left: 34px;
}
/* Drawn in ink rather than coloured: a checklist and a banned list are told apart by their
   mark, as in the app. */
.guide-chapter .guide-list.is-check li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.42em;
  width: 7px;
  height: 12px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  background: none;
  border-radius: 0;
  transform: rotate(45deg);
}
.guide-chapter .guide-list.is-cross li::before,
.guide-chapter .guide-list.is-cross li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.86em;
  width: 15px;
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: var(--ink);
  transform: rotate(45deg);
}
.guide-chapter .guide-list.is-cross li::after {
  transform: rotate(-45deg);
}
.guide-chapter .guide-facts {
  display: block;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
}
.guide-chapter .guide-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 3px 19px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.guide-chapter .guide-facts dt {
  font-weight: 500;
  color: var(--ink);
}
.guide-chapter .guide-facts dd {
  margin: 0;
  color: var(--ink);
}
.guide-papers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
}
.guide-chapter .guide-paper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 17px 18px 18px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: #fff;
  line-height: 1.5;
}
.guide-chapter .guide-paper-name {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
.guide-paper-figs {
  display: flex;
  gap: 26px;
}
.guide-fig {
  display: flex;
  flex-direction: column;
}
.guide-chapter .guide-paper-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.guide-paper-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-chapter .guide-paper-tasks li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
}
.guide-chapter .guide-paper-task {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.guide-paper-tasks .guide-stat-n {
  font-size: 18px;
}
.guide-rules {
  margin: 21px 0 0;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.6;
}
.guide-chapter .guide-rules li {
  margin-bottom: 5px;
}
.guide-chapter .guide-video figcaption {
  font-size: 14px;
  line-height: 1.55;
}
.guide-chapter .guide-cards {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 0;
}
.guide-chapter .guide-cards a {
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  border-color: var(--edge);
}
.guide-chapter .guide-cards h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.guide-chapter .guide-cards p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.guide-chapter .edition {
  margin: -4px 0 16px;
  font-size: 13px;
}
.guide-chapter .topic-list {
  font-size: 15px;
}
/* The chapter breaks long words anywhere; a table scrolls sideways instead (.table-scroll). */
.guide-chapter table {
  overflow-wrap: normal;
}
.guide-chapter table td {
  min-width: 70px;
}
.guide-chapter table th:first-child {
  width: 50%;
}
/* The Desmos toolkit: a task picker over one technique at a time. */
.guide-toolkit-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 22px;
  font-size: 14px;
}
.guide-toolkit-picker > label {
  font-weight: 600;
}
.guide-toolkit-control {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}
.guide-toolkit-control select {
  appearance: none;
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 10px 36px 10px 11px;
  font: inherit;
  cursor: pointer;
}
.guide-toolkit-control > span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-60%);
  pointer-events: none;
  color: var(--muted);
}
.guide-toolkit-picker output {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.guide-task-panel h3 {
  margin-top: 0;
}
.js .guide-task-panel:not(.is-active) {
  display: none;
}
html:not(.js) .guide-toolkit-picker {
  display: none;
}
html:not(.js) .guide-task-panel + .guide-task-panel {
  margin-top: 29px;
}
.guide-reader .guide-sources {
  max-width: 66ch;
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px dotted var(--edge);
}
.guide-reader .guide-sources h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: 0;
  margin: 0 0 12px;
}
/* The frame supplies the product's chrome and the way to practice. */
html.embedded .guide-cta {
  display: none;
}
html.embedded .guide-main {
  padding-top: 24px;
}
html.embedded .guide-scope {
  top: 0;
  margin-top: -24px;
}
@media (max-width: 900px) {
  .guide-reader {
    grid-template-columns: 1fr;
  }
  .guide-contents {
    grid-column: auto;
    grid-row: auto;
    position: static;
    max-height: none;
  }
  .guide-contents nav {
    max-height: 240px;
    overflow-y: auto;
  }
  .guide-chapter {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .guide-contents input {
    font-size: 16px;
  }
  .guide-chapter {
    font-size: 17px;
  }
  .guide-chapter.is-caution {
    padding: 19px 18px 5px;
  }
  .guide-chapter .guide-facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
.guide-intro {
  font-size: var(--text);
  max-width: 730px;
  color: var(--muted);
  margin-bottom: 0;
}
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 45px;
}
.guide-cards a {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.guide-cards a:hover {
  border-color: var(--accent-deep);
  transform: translateY(-3px);
}
.guide-cards p {
  font-size: var(--text);
  color: var(--muted);
  margin: 0;
}
.guide-prose {
  max-width: 850px;
}
/* An exam's articles: topic tabs over photo cards. Without script every topic stands under its
   own heading; with it the tab names the open one. */
.article-topic { margin-top: 45px; }
.article-topic > h2 { margin: 0 0 20px; font-size: 28px; }
html.js .article-topic { margin-top: 28px; }
html.js .article-topic > h2 { display: none; }
/* Under "All" every topic keeps its heading, as it does without script. */
html.js .article-tabs:has(#article-topics-tab[aria-selected="true"]) + .article-topics .article-topic > h2 { display: block; }
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-cards a {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s, transform 0.18s;
}
.article-cards a:hover { border-color: var(--accent-deep); transform: translateY(-3px); }
.article-cards img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sea);
}
.article-cards h3 { margin: 20px 22px 10px; font-size: 21px; line-height: 1.25; }
.article-cards p { margin: 0 22px 22px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.guide-prose h2 {
  font-size: 31px;
  margin: 0 0 20px;
}
.guide-prose p {
  font-size: var(--text);
  color: var(--muted);
}
/* A subject's two paper tables: the AS papers and the papers the A Level adds. */
.guide-prose h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}
.guide-prose table td {
  min-width: 70px;
}
.guide-prose table th {
  width: auto;
}
.guide-prose table th:first-child {
  width: 65%;
}
.topic-list {
  columns: 2;
  padding-left: 20px;
  color: var(--muted);
  font-size: var(--text);
  line-height: 1.65;
}
.topic-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}
.edition {
  border-left: 3px solid var(--accent);
  padding-left: 17px;
  font-size: 12px;
  color: var(--muted);
  margin: 30px 0;
}
.guide-list {
  padding-left: 20px;
  color: var(--muted);
  font-size: var(--text);
  line-height: 1.65;
}
.guide-list li {
  margin-bottom: 8px;
}
.guide-list.is-check,
.guide-list.is-cross {
  list-style: none;
  padding-left: 0;
}
.guide-list.is-check li::before,
.guide-list.is-cross li::before {
  display: inline-block;
  width: 1.4em;
  font-weight: 600;
}
.guide-list.is-check li::before {
  content: "✓";
  color: var(--water-hi);
}
.guide-list.is-cross li::before {
  content: "✕";
  color: var(--accent-deep);
}
.guide-facts {
  margin: 20px 0;
  border-top: 1px dotted var(--line);
}
.guide-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14px;
}
.guide-facts dt {
  color: var(--muted);
}
.guide-facts dd {
  margin: 0;
}
.guide-video {
  margin: 24px 0;
}
.guide-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.guide-video figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.guide-video-credit {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.guide-video-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* A public exam article (articles.mjs): one question answered, the guide's own reading type. */
.article-main {
  max-width: 850px;
}
.article-up a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.article-up a:hover {
  color: var(--ink);
}
.article-up svg {
  width: 16px;
  height: 16px;
}
/* An article's date keeps its accent-ruled block, the label over the day. */
.article-head .guide-updated {
  min-width: 174px;
  margin: 10px 0 0;
  padding: 13px 0 13px 18px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.article-head .guide-updated span,
.article-head .guide-updated time {
  display: block;
}
.article-head .guide-updated span {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.article-head {
  margin: 18px 0 30px;
}
.article-head h1 {
  font-size: clamp(34px, calc(4vw / var(--zoom)), 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.article-standfirst {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.55;
}
.article-photo {
  margin: 0 0 34px;
}
.article-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 627;
  object-fit: cover;
  border-radius: 8px;
}
.article-faq dd {
  color: var(--muted);
}
.article-prose h2 {
  font-size: 26px;
  margin: 34px 0 14px;
}
/* A section the writer marked with the platform's symbol for what it is about. */
.article-prose h2.has-symbol {
  display: flex;
  align-items: flex-start;
  gap: 0.45em;
}
/* Sized off the heading, so it stays one line tall where a phone shrinks and wraps it. */
.article-prose .article-symbol {
  width: 1.15em;
  height: 1.15em;
  color: var(--navy);
}
.article-faq {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px dotted var(--line);
}
.article-faq dt {
  font-weight: 550;
  margin-top: 20px;
}
.article-faq dd {
  margin: 8px 0 0;
  font-size: var(--text);
  line-height: 1.65;
}
.article-more {
  margin-top: 45px;
}
.article-more ul {
  columns: 2;
  column-gap: 40px;
  padding-left: 18px;
  font-size: var(--text);
  line-height: 1.8;
}
.article-more li {
  break-inside: avoid;
}
.article-more a,
.article-see a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .article-more ul {
    columns: 1;
  }
  .article-standfirst {
    font-size: 17px;
  }
}

.guide-sources {
  border-top: 1px dotted var(--line);
  margin-top: 45px;
}
.guide-sources p,
.guide-sources li {
  font-size: 12px;
}
.guide-sources ul {
  padding-left: 18px;
  line-height: 1.8;
}
.guide-sources a {
  text-decoration: underline;
  text-underline-offset: 3px;
  /* A source label is a host and a file name with no break in it, wider than a phone. */
  overflow-wrap: anywhere;
}
.guide-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: clamp(35px, calc(6vw / var(--zoom)), 82px);
  margin-top: 75px;
  padding: clamp(34px, calc(5vw / var(--zoom)), 58px);
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 115%, rgba(44, 95, 128, 0.72), transparent 38%),
    linear-gradient(135deg, var(--navy) 0%, #132d40 100%);
  color: var(--white);
}
/* An article's box has no route beside its copy: the copy takes the golden share of the width,
   the ringed corner the rest. */
.article-cta {
  grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
}
.guide-cta::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.025),
    0 0 0 90px rgba(255, 255, 255, 0.018);
}
.guide-cta-copy,
.guide-cta-route {
  position: relative;
  z-index: 1;
}
.guide-cta .eyebrow {
  margin-bottom: 13px;
  color: #a9c5d7;
  font-weight: 650;
}
.guide-cta h2 {
  max-width: 13ch;
  font-size: clamp(34px, calc(4vw / var(--zoom)), 49px);
  line-height: 1.03;
}
.guide-cta p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text);
  margin: 19px 0 27px;
}
/* The membership the reader builds: every exam a row to tick, what it costs at the row's end. */
.plan-exams {
  display: grid;
  gap: 6px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
/* The price ends the exam row; board and subject choices sit beneath it. */
.plan-exam {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.plan-exam.is-on { border-color: var(--navy); background: var(--sea); }
/* A coming-soon exam (claims.mjs `markSoon`): still listed, in grey, but with no page and no
   link. Its rows carry this tag beside the name, its homepage card says it on the card's
   button, its pricing row has no box, and its buttons are one grey pill that leads nowhere. */
.soon-tag {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
/* In a menu row the name fills the line, so the tag takes its own, under the name. */
.menu-exam strong .soon-tag { display: block; width: fit-content; margin: 3px 0 2px; }
.edu-exam > .soon-tag { align-self: flex-start; margin: 0; }
:is(.menu-exam, .home-exam, .edu-exam, .nav-exam, .plan-exam).is-soon { filter: grayscale(1); }
:is(.menu-marker, .home-exam-desk, .edu-exam-mark, .nav-exam-marker, .plan-exam-marker, .plan-check):where(.is-soon *) { opacity: 0.5; }
.plan-exam.is-soon { color: var(--muted); }
.plan-exam.is-soon .plan-exam-toggle { display: flex; align-items: center; gap: 14px; min-width: 0; }
.plan-exam.is-soon .plan-exam-cost .soon-tag { margin: 0; }
.plan-exam label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  cursor: pointer;
}
.plan-exam input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-check {
  position: relative;
  flex: none;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.plan-check::after {
  content: "";
  position: absolute;
  inset: 5px 4px 6px;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
}
.plan-exam input:checked + .plan-check { background: var(--navy); border-color: var(--navy); }
.plan-exam input:checked + .plan-check::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.plan-exam input:focus-visible + .plan-check { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.plan-exam-marker { flex: none; font-size: 22px; line-height: 1; }
.plan-exam-name { display: grid; flex: 1; gap: 2px; min-width: 0; }
.plan-exam-name b { font-weight: 600; }
.plan-exam-name small { color: var(--muted); }
.plan-exam-cost {
  font-size: var(--text);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.plan-exam.is-on .plan-exam-cost { color: var(--ink); font-weight: 600; }
/* An exam's page: its own exam is the membership, not a choice, so it has no box. */
.plan-exam.is-own .plan-exam-toggle { cursor: default; }
.plan-exam.is-own .plan-check { display: none; }
.plan-exam.is-own .plan-subjects { padding-left: 0; }
.plan-more { margin-top: 28px; }
.plan-more strong { font-weight: 600; }
.plan-more p { margin: 4px 0 0; font-size: var(--note); color: var(--muted); }
.plan-more + .plan-exams { margin-top: 14px; }
/* An A Level is chosen by board and named subjects, so the adjacent figures can
   describe exactly what the reader has selected. */
.plan-exam .plan-subjects { padding-left: 35px; }
.plan-subjects {
  display: grid;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.plan-subjects[hidden] { display: none; }
.plan-board-label { display: grid !important; gap: 5px !important; align-items: start !important; }
.plan-board-label select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.plan-subjects fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.plan-subjects legend { margin-bottom: 7px; }
.plan-subject-options { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-subject-options label {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}
.plan-subject-options label[hidden] { display: none; }
.plan-subject-options span { padding: 7px 10px; }
.plan-subject-options input:checked + span { background: var(--navy); color: var(--white); }
.plan-subject-options input:focus-visible + span { outline: 3px solid var(--accent-deep); outline-offset: -3px; }
.plan-subject-count { margin: 0; font-weight: 600; color: var(--ink); }
.plan-note { margin: -5px 0 0; font-size: var(--note); line-height: 1.4; color: var(--muted); }
.guide-cta .guide-cta-page {
  margin: 22px 0 0;
}
.guide-cta-page a {
  color: var(--white);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.6);
}
.guide-cta .guide-cta-button {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}
.guide-cta .guide-cta-button::after {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 60%, var(--white)) 0%, var(--accent) 12%, var(--accent-deep) 100%);
}
.guide-cta .guide-cta-button:hover {
  border-color: var(--accent);
  color: var(--white);
}
.guide-cta-route {
  position: relative;
  align-self: center;
  padding-left: 45px;
}
.guide-cta-ship {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 1px;
  display: block;
  width: 32px;
  height: 32px;
  color: #d9e8f0;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.24));
  transform-origin: center;
  will-change: transform;
}
.guide-cta-ship .hb-ic {
  display: block;
  width: 32px;
  height: 32px;
  animation: guide-ship-bob 1.8s ease-in-out infinite;
}
.guide-cta-loop {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-cta-loop li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}
.guide-cta-loop > li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 75%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, var(--accent) 45%, var(--white));
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  background: var(--navy);
}
.guide-cta-loop strong,
.guide-cta-loop small {
  display: block;
}
.guide-cta-loop strong {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 580;
}
.guide-cta-loop small {
  color: rgba(255, 255, 255, 0.57);
}
@keyframes guide-ship-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-1.5px) rotate(1deg); }
}
@media (max-width: 1150px) {
  .nav-wrap {
    gap: 25px;
    width: calc(100% - 50px);
  }
  .header nav {
    gap: 18px;
  }
  .section {
    width: calc(100% - 70px);
  }
  .brand {
    font-size: 23px;
  }
  .footer {
    padding-inline: 35px;
  }
}
/* Between the phone menu and the width that holds a whole bar, every bar closes up, and an
   exam's bar, whose button names the exam, says only "Start now". */
.cta-short { display: none; }
/* A signed-in account's greeting (site.js): "Hello, <name>", and for a tutor a
   badge naming the account, in the button's own colour on the ink and on the phone's accent. */
.cta-who { display: inline-flex; align-items: center; gap: 8px; }
.cta-badge {
  padding: .3em .6em;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 851px) and (max-width: 1040px) {
  .nav-actions .cta-long { display: none; }
  .nav-actions .cta-short { display: inline; }
  .nav-wrap { gap: 16px; }
  .header nav { gap: 13px; font-size: 14px; }
}
@media (max-width: 850px) {
  /* On a phone the whole navigation remains available while the reader scrolls. The
     desktop fold-to-logo treatment removes the only way back into the short menu. */
  .nav-exams {
    display: none;
  }
  html.scrolled .header nav,
  html.scrolled .nav-actions,
  html.scrolled .menu-toggle {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  html.scrolled .brand {
    font-size: 23px;
  }
  html.scrolled .brand .hb-ic {
    width: 34px;
    height: 34px;
  }
  .nav-wrap {
    height: 56px;
    gap: 15px;
  }
  .menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    padding: 0;
    order: 2;
    color: var(--ink);
  }
  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: var(--sea);
  }
  /* On a tinted bar the disc is a deeper tint, not a paler hole. */
  .exam-bar .menu-toggle:is(:hover, :focus-visible) {
    background: color-mix(in srgb, var(--exam-ink) 20%, var(--white));
  }
  .header nav {
    display: none;
    position: absolute;
    /* Under the bar at its height at every width: both resolve against `.nav-wrap`. */
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(calc(100svh / var(--zoom)) - 100%);
    padding: 12px 25px 20px;
    background: white;
    border-bottom: 1px solid var(--line);
    margin: 0;
    align-items: stretch;
    overflow-y: auto;
  }
  .header nav.is-open {
    display: flex;
    flex-direction: column;
  }
  .exam-menu {
    display: block;
    align-self: auto;
  }
  .dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    width: 100%;
    padding: 0;
  }
  .menu-exam {
    padding: 11px 0 11px 14px;
    border-bottom: 1px dotted var(--line);
    border-radius: 0;
  }
  .header nav > a,
  .exam-menu > summary {
    padding: 11px 0;
    border-bottom: 1px dotted var(--line);
  }
  /* The bar's button stays, short, just before the menu button, so the way in is one tap
     from anywhere on the page. */
  .nav-actions {
    order: 1;
    margin-left: auto;
  }
  .nav-actions .cta-long { display: none; }
  .nav-actions .cta-short { display: inline; }
  /* A signed-in reader is greeted by name here too, a long name cut short rather than the bar
     pushed off the screen. */
  .nav-actions { min-width: 0; }
  .nav-actions .button { min-width: 0; max-width: 100%; }
  .nav-actions .cta-who { min-width: 0; }
  .nav-actions .cta-who .cta-long { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-actions .cta-who .cta-short { display: none; }
  .mobile-nav-action {
    display: block;
    padding-top: 8px;
  }
  .mobile-nav-action .button {
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    border-color: var(--accent-deep);
    background: var(--accent-deep);
    color: var(--on-accent);
    font-size: 15px;
    gap: 18px;
  }
  .nav-actions .button {
    font-size: 14px;
    padding: 8px 14px;
    gap: 10px;
  }
  .section {
    width: calc(100% - 50px);
    --section-pad: 65px;
  }
  .price-card {
    padding: 28px;
  }
  .price-card-head > .hb-ic {
    width: 35px;
    height: 35px;
  }
  .price {
    font-size: 67px;
  }
  .price > span {
    font-size: 11px;
    margin-left: 10px;
  }
  .faq {
    gap: 35px;
  }
  .footer {
    padding-inline: 25px;
  }
  .guide-cards {
    grid-template-columns: 1fr 1fr;
  }
  .guide-main {
    padding-top: 30px;
  }
  .guide-prose table {
    min-width: 550px;
  }
  .guide-cta, .article-cta {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .guide-cta-loop {
    max-width: 620px;
  }
  html:not(.js) .nav-wrap {
    height: auto;
    flex-wrap: wrap;
    padding: 16px 0;
  }
  html:not(.js) .header nav {
    display: flex;
    position: static;
    width: 100%;
    flex-wrap: wrap;
    padding: 10px 0 0;
    border: 0;
  }
  html:not(.js) .menu-toggle {
    display: none;
  }
  html:not(.js) .nav-actions {
    margin-left: auto;
  }
  html:not(.js) .header {
    position: relative;
  }
}
@media (max-width: 600px) {
  /* A phone's bar draws no rule: its swell is the ground alone. */
  .header::after {
    display: none;
  }
  .section {
    width: calc(100% - 40px);
    --section-pad: 53px;
  }
  .nav-wrap {
    width: calc(100% - 30px);
    height: 54px;
    gap: 10px;
  }
  .brand {
    font-size: 22px;
    gap: 8px;
  }
  .brand .hb-ic {
    width: 32px;
    height: 32px;
  }
  html.scrolled .brand {
    font-size: 22px;
  }
  html.scrolled .brand .hb-ic {
    width: 32px;
    height: 32px;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
  /* The bar's button keeps its words and drops its compass and a tutor's badge (the menu's copy
     keeps both), so it fits beside the mark. */
  .nav-actions .button { padding: 8px 13px; }
  .nav-actions :is(.cta-compass, .cta-badge) { display: none; }
  .section-head {
    display: block;
    margin-bottom: 27px;
  }
  .section-head > :is(p, span) {
    display: block;
    margin-top: 20px;
  }
  .section-head > .crew-peek { margin-top: 52px; }
  .katex {
    font-size: 1em !important;
  }
  .comparison-matrix { --label-w: 104px; min-width: calc(var(--label-w) + var(--cols) * 92px); }
  .comparison-matrix tr > th:first-child {
    font-size: 12px;
    padding-left: 6px;
  }
  .comparison-matrix th, .comparison-matrix td { padding: 15px 7px; overflow-wrap: anywhere; }
  .comparison-matrix thead :is(th, td) { font-size: 11px; height: 82px; }
  .comparison-matrix thead .our-column { font-size: 12px; }
  .comparison-matrix thead th .hb-ic { height: 25px; width: 25px; }
  .comparison-matrix td b { font-size: 12px; }
  .comparison-matrix tr.compare-price td b { font-size: 15px; }
  .comparison-matrix tr.compare-price .our-column b { font-size: 17px; }
  .exam-switcher.compare-exams { flex-wrap: wrap; gap: 2px; }
  .exam-switcher.compare-exams button { padding: 10px 12px; font-size: 12px; }
  .price-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .price-card {
    padding: 28px;
  }
  .price-card-head > .hb-ic {
    width: 40px;
    height: 40px;
  }
  .price {
    font-size: 75px;
    margin: 27px 0 24px;
  }
  .price > span {
    font-size: 12px;
  }
  .faq {
    display: block;
  }
  .footer {
    padding: 27px 20px 22px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 15px;
    font-size: 9px;
  }
  .footer-bottom > span {
    width: 100%;
  }
  .guide-main {
    padding-top: 26px;
  }
  .guide-cards {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 30px;
  }
  .guide-cards a {
    padding: 25px;
  }
  .guide-prose h2 {
    font-size: 28px;
  }
  .topic-list {
    columns: 1;
  }
  .guide-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .edition {
    font-size: 11px;
  }
  .guide-cta {
    gap: 26px;
    padding: 28px 24px;
  }
  .guide-cta h2 {
    font-size: 34px;
  }
  .guide-prose table {
    min-width: 450px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .button:hover,
  .guide-cards a:hover,
  .article-cards a:hover {
    transform: none;
  }
  .guide-cta-ship {
    top: calc(100% - 50px);
    left: 1px;
    transform: rotate(-3deg);
  }
}

.brand:hover .lh-r1, .brand:hover .lh-r2 {stroke:var(--accent-deep);}

/* The brand boat belongs to the identity; the lighthouse remains a help symbol. */
.platform-logo{display:block;height:auto;flex-shrink:0}
.brand .platform-logo{width:32px;margin-right:3px}
.cta-compass{width:25px;height:25px;flex-shrink:0}
.compass-needle{transform-origin:16px 16px;transition:transform .7s cubic-bezier(.18,1.5,.4,1)}
a:hover .compass-needle,a:focus-visible .compass-needle{transform:rotate(22deg)}
.our-column .platform-logo{width:28px;margin:0 auto 13px}
/* ------------------------------------------------------------------------- the hero
   One column a student reads in one pass: the exams in a quiet line, the sentence, three
   short bullets, one verb. The film owns the wider column. Nothing here is drawn on: the
   full stop takes the wordmark's own clay, and that is the whole decoration. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  align-items: center;
  /* The rows pack and centre as one block, so the credit's row stays under the film
     instead of sharing the fold's leftover height with the columns. */
  align-content: center;
  column-gap: clamp(32px, calc(3.4vw / var(--zoom)), 52px);
  padding-top: clamp(30px, calc(4vh / var(--zoom)), 52px);
  padding-bottom: 0;
  text-align: start;
}
.hero-lead, .hero-visual { min-width: 0; }
/* The film grows out of the page gutter on its own side, never out of the headline's
   column: the sentence needs every pixel of its own to stay on two lines. The section's
   gutter is 50px, and 35px below 1151px, so the bleed steps down with it there. */
.hero-visual { width: calc(100% + 40px); }
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-eyebrow i { width: 3px; height: 3px; margin: 0 12px; border-radius: 50%; background: var(--line); }
.hero h1 {
  font-size: clamp(44px, calc(4.4vw / var(--zoom)), 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 24px;
}
.hero-stop { color: var(--accent); }
/* The value claim as the eyebrow: a hairline pill in the eyebrow's caps that ends in the
   one verb it offers, "Compare" with a chevron, so the way to the table is on the line
   without the line shouting. Hover inks the border and the chevron steps forward. */
/* A claim longer than its column wraps on purpose: in even lines (`balance`), in a box whose
   corners are those of the one-line pill (36px tall), so one line still reads as a pill. */
.hero-claim { display: inline-flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border: 1px solid var(--line); border-radius: 18px; line-height: 18px; color: var(--muted); transition: border-color .2s ease, color .2s ease; }
.hero-claim-desktop { text-wrap: balance; }
.hero-claim-action { flex: none; display: inline-flex; align-items: center; gap: 3px; padding-left: 14px; border-left: 1px dotted var(--line); color: var(--ink); font-weight: 600; }
.hero-claim-mobile { display: none; }
.hero-claim svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.hero-claim:hover { border-color: var(--ink); color: var(--ink); }
.hero-claim:hover span { color: var(--accent-deep); }
.hero-claim:hover svg { transform: translateX(2px); }
.hero-benefits {
  display: grid;
  gap: 13px;
  max-width: 50ch;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  font-size: var(--text);
  line-height: 1.45;
  color: var(--muted);
}
.hero-benefits li { display: flex; align-items: flex-start; gap: 14px; }
.hero-benefits .hb-ic { flex-shrink: 0; width: 24px; height: 24px; margin-top: -1px; color: var(--ink); }
.hero-benefits strong { font-weight: 550; color: var(--ink); }
/* The symbols WORK when the pointer rests on the line, one clear motion each: the quill
   writes its line again, the phone lifts to the page and the shutter star pops, the
   lighthouse sweeps its beams. */
.hero-benefits li:hover .hb-ic { color: var(--navy-2); }
.hero-benefits li:hover .ql-pen { animation: ql-pen-x 1.5s, ql-pen-y 1.5s; }
.hero-benefits li:hover .ql-line { animation: ql-write 1.5s; }
@keyframes write { from { stroke-dashoffset: 1; } }
/* THE QUILL WRITES. The pen travels back to the line's start while the line fades, sets
   the nib down and writes it again, then lifts: `translate` carries the pen along at the
   line's own pace and `transform` rides the wave's crest and trough, so the nib stays on
   the ink. */
.hb-ic .ql-line { stroke-dasharray: 1; }
@keyframes ql-pen-x {
  0% { translate: 0 0; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  16% { translate: -7.2px 0; animation-timing-function: ease-out; }
  22% { translate: -7.2px 1.6px; animation-timing-function: linear; }
  82% { translate: -2.2px 1.6px; animation-timing-function: ease-out; }
  94%, 100% { translate: 0 0; }
}
@keyframes ql-pen-y {
  0%, 22% { transform: none; animation-timing-function: ease-out; }
  37% { transform: translateY(-.6px); animation-timing-function: ease-in; }
  52% { transform: none; animation-timing-function: ease-out; }
  67% { transform: translateY(.6px); animation-timing-function: ease-in; }
  82%, 100% { transform: none; }
}
@keyframes ql-write {
  0% { stroke-dashoffset: 0; opacity: 1; }
  12% { stroke-dashoffset: 0; opacity: 0; }
  13%, 21% { stroke-dashoffset: 1; opacity: 0; }
  22% { stroke-dashoffset: 1; opacity: 1; animation-timing-function: linear; }
  82%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
.hb-ic .cp-flash { opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero-benefits li:hover .cp-phone { animation: lift 1.1s cubic-bezier(.22,1,.36,1); }
.hero-benefits li:hover .cp-flash { animation: pop 1.1s cubic-bezier(.22,1,.36,1); }
@keyframes lift { 35% { transform: translate(-1.2px, -1.4px); } 70% { transform: translate(-1.2px, -1.4px); } }
@keyframes pop { 30% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.25); } 75% { opacity: 1; transform: scale(1); } }
.hero-benefits li:hover .lh-r1 { animation: lh-beam-l 2s ease-in-out; }
.hero-benefits li:hover .lh-r2 { animation: lh-beam-r 2s ease-in-out; }
.hero-benefits li:hover .lh-lamp { animation: lh-flash 2s ease-in-out; }
/* One verb, in clay: the single thing on the page to act on. Its hover is still the
   water flooding the pill, so the label goes white as the navy rises. */
.hero-actions { display: flex; justify-content: center; max-width: 46ch; }
.hero-actions .button { font-size: 18px; padding: 20px 34px; gap: 24px; background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.hero-actions .button:hover { color: var(--white); }
.hero-actions .cta-compass { width: 30px; height: 30px; }
.hero-passage-action { display: none; }
/* Decorative water that overlaps the hero's foot must not catch the pointer meant for
   the film's touch controls beneath it. */
.sea-passage.hero-passage { margin-top: -24px; pointer-events: none; }
.sea-passage.hero-passage .swell { inset: auto auto -26px 0; }
/* CARRYING THE INSTITUTION ROW (review build only). The band grows to hold the row and
   the water goes light: the navy crest cannot stay, because dark marks over a dark wave
   read as neither. Deleting the front layer outright was tried first and left the sea
   invisible against the page, so the two layers are RECOLOURED rather than dropped - the
   wave still moves, in two light tones the crests read against. The wake lines were drawn
   to sit on the navy and have nothing to sit on here. */
.sea-passage.hero-passage.has-institutions {
  /* 20px taller than the row needs at rest: pale-wave marks climb another 14px with the
     scroll parallax, and at 186px the highest of them ran into the caption. */
  height: 206px;
  /* The row is laid out in the swell's own units, so the swell's width is named once here
     and read by both: `--unit` on `.institutions` is this over the swell's user units. */
  container-type: inline-size;
  --swell-w: max(200cqw, 1600px);
}
.sea-passage.hero-passage.has-institutions .swell { width: var(--swell-w); }
/* The swell sits flush with the band's foot here, not pushed 46px under it: dropped that
   far only its last 78px of water were in frame, the marks floated in white above the
   surface, and the two halves read as unrelated. Flush, the dark crest runs at y118..150
   and the pale one at y82..106 in a 206px band; the row is seated on both. */
.sea-passage.hero-passage.has-institutions .swell { inset: auto auto 0 0; }
.sea-passage.hero-passage.has-institutions .swell-back { fill: var(--wave-sea); }
.sea-passage.hero-passage.has-institutions .swell-front { fill: var(--wave-pale); }
.sea-passage.hero-passage.has-institutions .wake-lines { display: none; }
/* The row is seated on BOTH waves, so both have to travel with it. Everywhere else the back
   swell runs slower than the front, which is what reads as depth; here it would slide under
   the marks at ~30px/s and carry each pale crest out from under the mark sitting on it
   within a second. The price is that parallax, in this band only. */
.sea-passage.hero-passage.has-institutions .swell-back { animation-duration: var(--swell-s); }
@media (max-width: 1150px) {
  /* The page's gutter drops to 35px here, so the film's bleed drops with it. */
  .hero-visual { width: calc(100% + 20px); }
}
@media (min-width: 1001px) {
  /* Sized so the sea passage under the hero is in the first screen, not below it. */
  .hero { min-height: calc(calc(100svh / var(--zoom)) - var(--header-h, 63px) - 170px); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 44px; padding-top: 32px; }
  .hero-lead { max-width: 620px; }
  .hero-visual { width: 100%; max-width: 720px; }
  .hero h1 { font-size: clamp(38px, calc(6vw / var(--zoom)), 56px); }
}
@media (max-width: 620px) {
  /* Mobile is one compact promise: headline, demonstration, then action. `display:contents`
     lets the film sit between children that share the desktop copy column. */
  .hero {
    row-gap: 10px;
    padding-top: 44px;
    text-align: center;
  }
  .hero-lead { display: contents; }
  .hero-eyebrow,
  .hero .hero-benefits { display: none; }
  .hero-eyebrow.value-claim {
    order: 0;
    display: flex;
    justify-content: center;
    margin: 0 0 2px;
    font-size: 10px;
    letter-spacing: .11em;
  }
  .hero-eyebrow.value-claim .hero-claim {
    padding: 5px 13px 5px 5px;
    border: 1px solid #d9e1e6;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 7px 22px -18px rgba(20, 32, 43, .7);
    color: var(--ink);
  }
  .hero-eyebrow.value-claim .hero-claim-desktop,
  .hero-eyebrow.value-claim .hero-claim-action { display: none; }
  .hero-eyebrow.value-claim .hero-claim-mobile {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .105em;
    line-height: 1.2;
    text-wrap: balance;
  }
  /* The chip and the rest each wrap in even lines where a long locale needs it, the chip with
     room above and below, its corners those of its one-line form. */
  .hero-eyebrow.value-claim .hero-claim-mobile b {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .055em;
  }
  .hero h1 {
    order: 1;
    margin: 0;
    font-size: clamp(34px, calc(9.7vw / var(--zoom)), 43px);
  }
  .hero-visual {
    order: 2;
    justify-self: center;
    width: calc(100% + 40px);
    max-width: none;
    /* The film's own sky, about 40px above its highest scene, already parts it from the title. */
    margin-top: -14px;
    margin-inline: -20px;
  }
  .hero-actions {
    order: 3;
    justify-self: stretch;
    max-width: none;
  }
  .hero-actions .button { padding: 15px 28px; font-size: 16px; }
  .hero-actions .cta-compass { width: 26px; height: 26px; }
  .hero.has-institution-passage .hero-actions { display: none; }
  /* Drawn 36px up under the button; through the scroll parallax the marks stay about 40px
     below it. */
  .sea-passage.hero-passage.has-institutions {
    height: 230px;
    margin-top: -36px;
  }
  .hero-passage-action {
    display: flex;
    justify-content: center;
    width: calc(100% - 40px);
    margin: 36px auto 0;
  }
  .hero-passage-action .button {
    justify-content: center;
    width: min(100%, 500px);
    padding: 18px 26px;
    border-color: var(--accent-deep);
    background: var(--accent-deep);
    color: var(--on-accent);
    font-size: 17px;
    gap: 22px;
    box-shadow: 0 14px 30px -20px rgba(16, 32, 43, .75);
  }
  .hero-passage-action .cta-compass { width: 28px; height: 28px; }
}
.sea-passage{position:relative;--band-h:160px;height:var(--band-h);overflow:hidden;margin-top:5px;--passage:0}
.swell{display:block;width:100%;height:180px;overflow:visible}
.sea-passage .swell{position:absolute;inset:auto 0 -72px;transform:translateX(calc(var(--passage)*-18px));width:calc(100% + 36px)}
.wake-lines{position:absolute;bottom:-5px;left:0;width:100%;height:40px;fill:none;stroke:var(--white);stroke-width:.5;opacity:.2}
.credentials{border-top:0}
.question-showcase{border-bottom:1px dotted var(--line)}
.showcase-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 20px;border-bottom:1px dotted var(--line);padding:24px 0;margin-bottom:0}
.showcase-bar h2{flex:1 1 auto;margin:0}
.exam-figure{margin-bottom:24px}
.exam-figure dl{display:grid;gap:20px;margin:0}
.exam-figure dl div{display:grid;gap:4px}
.exam-figure dt{display:grid;font-size:clamp(48px,calc(4.5vw / var(--zoom)),64px);font-weight:450;font-variant-numeric:tabular-nums;letter-spacing:-.05em;line-height:1}
/* Reserve the final number's width while the visible digits count up. */
.exam-figure dt::before{content:attr(data-count-label);visibility:hidden;grid-area:1 / 1;height:0}
.exam-figure dd{margin:0;font-size:18px}
.exam-switcher{display:flex;gap:8px;flex-wrap:wrap}
.exam-switcher button{padding:14px 24px;background:none;border:1px solid transparent;border-radius:99px;font-size:15px}
/* A slide's format line, and on a page with several subjects their switch, a slightly larger
   track at the line's end. Where the two do not fit on one line, the switch goes above. */
.format-row{display:flex;flex-wrap:wrap-reverse;align-items:center;justify-content:space-between;gap:12px 16px}
.format-row>.exam-switcher{margin-inline-start:auto;flex-wrap:nowrap;gap:2px;padding:3px;border:1px solid var(--line);background:var(--white);border-radius:99px}
.format-row>.exam-switcher button{padding:9px 16px;font-size:15px;line-height:1.2;white-space:nowrap}
.exam-switcher button[aria-pressed=true]{background:var(--navy);color:var(--white)}
.question-slide{display:grid;grid-template-columns:.8fr 1.2fr;gap:72px;align-items:center;min-height:500px;padding:34px 46px;background:var(--sea);animation:paper-arrive .65s cubic-bezier(.2,.65,.3,1)}
.question-example{min-width:0;display:flex;flex-direction:column;gap:14px}
.exam-format{text-transform:uppercase;font-size:10px;letter-spacing:.12em;color:var(--muted)}
.format-tabs{display:flex;flex-wrap:wrap;gap:6px}
.format-tabs button{background:none;border:1px solid var(--line);border-radius:99px;padding:6px 13px;line-height:1}
.format-tabs button[aria-pressed=true]{border-color:var(--navy);color:var(--navy);background:var(--white)}
/* The question paper, drawn by the app's examPaper.ts too. */
.exam-paper{--pad-y:22px;--pad-x:26px;min-width:0;background:var(--white);border:1px solid var(--line);border-radius:3px;padding:var(--pad-y) var(--pad-x);position:relative;transform:rotate(-1deg);box-shadow:0 1px 2px rgba(20,20,20,.05);transition:transform .45s cubic-bezier(.22,1,.36,1),box-shadow .45s cubic-bezier(.22,1,.36,1)}
.exam-paper .katex-display{font-size:.95em;overflow-x:auto;overflow-y:hidden;padding:6px 0}
/* AN EXAMPLE IS THE PLATFORM'S OWN QUESTION SCREEN (frontend TestPage, `.problem-card`,
   AnswerInput's `.opt` rows): a window with the app's exam clock, the question card with its
   Q chip, rows to press and the ink "Check" pill, so it reads as something to answer. */
.sample-app{position:relative;min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--white);box-shadow:0 30px 60px -45px rgba(20,32,43,.45)}
/* The app's exam clock, amber (here the voyage gold) in its last quarter. */
.sample-timer{display:flex;align-items:center;gap:8px;flex:none;width:max-content;margin-left:auto;height:36px;padding:0 14px;border:1.5px solid var(--ink);border-radius:99px;background:var(--white);color:var(--ink);transition:color .3s,border-color .3s,background .3s}
.sample-timer .ap-glyph{width:15px;height:15px}
/* The app's top bar: the question's exam on the left, the clock on the right, or under it
   when the name's longest word leaves the clock no room. */
.sample-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px}
.sample-tag{flex:1 1 0;min-width:min-content}
.sample-timer-n{font-size:18px;font-weight:600;line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums;min-width:3.4ch}
.sample-timer.is-low{border-color:var(--voyage-gold);color:var(--voyage-gold);background:var(--voyage-gold-soft)}
.sample-card{padding:18px;border:1px solid var(--line);border-radius:10px}
.sample-q{display:flex;gap:10px;align-items:baseline;margin:0 0 14px;font-size:16px;line-height:1.45}.sample-para{display:block}.sample-para+.sample-para{margin-top:.6em}
.sample-qn{flex:none;padding:2px 8px;border-radius:99px;background:var(--accent-soft);color:var(--accent-deep);font-size:11px;font-weight:650;font-variant-numeric:tabular-nums;position:relative;top:-1px}
.sample-app .katex-display{font-size:.95em;overflow-x:auto;overflow-y:hidden;padding:4px 0;margin:0 0 14px}
.sample-options{display:grid;gap:8px}.sample-options.pair{grid-template-columns:1fr 1fr}
.sample-opt{position:relative;display:flex;align-items:center;gap:13px;padding:11px 14px;border:1px solid var(--line);border-radius:8px;font-size:15px;line-height:1.4;cursor:pointer;transition:border-color .15s,background .15s}
.sample-opt:hover{border-color:var(--edge);background:var(--paper)}
.sample-opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.sample-letter{flex:none;display:inline-grid;place-items:center;width:28px;height:28px;border:1.5px solid var(--edge);border-radius:50%;font-size:12px;font-weight:650;line-height:1}
/* A pick is navy, as in the working demo's rows, so it never reads as the vermilion of a wrong answer. */
.sample-opt:has(input:checked){border-color:var(--navy-2);background:color-mix(in srgb,var(--navy-2) 6%,var(--white))}
.sample-opt:has(input:checked) .sample-letter{border-color:var(--navy-2);background:var(--navy-2);color:var(--white)}
.sample-opt:has(input:focus-visible) .sample-letter{outline:2px solid var(--navy-2);outline-offset:2px}
.sample-grid-in{width:100%;max-width:260px;padding:11px 13px;border:1px solid var(--edge);border-radius:8px;background:var(--white);font:inherit;font-size:16px;color:var(--ink)}
.sample-grid-in:focus-visible{outline:2px solid var(--navy-2);outline-offset:1px}
.sample-board{--grid-line:color-mix(in srgb,var(--line) 45%,transparent);position:relative;height:240px;border:1px solid var(--line);border-radius:8px;background-color:var(--white);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:22px 22px;color:var(--ink)}
.sample-board canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.sample-board-hint{position:absolute;left:50%;bottom:14px;translate:-50% 0;padding:0 6px;background:var(--white);font-size:13px;color:var(--muted);pointer-events:none}
.sample-board.is-inked .sample-board-hint{display:none}
.sample-board-tools{position:absolute;top:8px;right:8px;display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.sample-board-tools button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:7px;background:none;color:#3d3d3d;cursor:pointer}
.sample-board-tools button:hover{background:var(--paper)}
.sample-board-tools svg{width:16px;height:16px}
/* THE PROOF (home.mjs PROOF, site.js): a slim row of tabs over ONE line of text that turns
   through the three claims by itself. Resting on a tab previews its claim on the paper above
   and pressing pins it: the rest of the paper steps back and the part the claim is about is
   ringed in the exam's ink. `.showcase-proof` is also the educator page's three blocks. */
.showcase-proof{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:30px 40px 36px;background:var(--sea);border-top:1px dotted #b8c8d3}
.question-showcase .showcase-proof{display:block;padding:18px 40px 20px}
.proof-tabs{display:flex;flex-wrap:wrap;gap:8px}
.proof-card{display:inline-flex;align-items:center;gap:8px;min-width:0;text-align:left;padding:8px 16px 8px 12px;font-size:15px;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:999px;transition:border-color .2s,box-shadow .2s,background .2s,color .2s}
.proof-card .hb-ic{flex:none;width:20px;height:20px;color:var(--exam-ink)}
.proof-card strong{font-weight:600;letter-spacing:-.01em}
@media (hover:hover){
.proof-card:hover{border-color:var(--exam-ink);box-shadow:0 0 0 1px var(--exam-ink)}
}
.proof-body{font-size:var(--text);line-height:1.5;color:var(--muted)}
.question-showcase[data-proof="original"] .sample-app :is(.sample-timer,.sample-tag,.sample-try),
.question-showcase[data-proof="original"] .paper-tags li:not([data-proof-part="original"]),
.question-showcase[data-proof="difficulty"] .sample-app>:not(.paper-tags),
.question-showcase[data-proof="difficulty"] .paper-tags li:not([data-proof-part="difficulty"]),
.question-showcase[data-proof="solution"] .sample-app :is(.sample-timer,.sample-tag,.sample-q,.sample-figure,.katex-display,.sample-options,.sample-grid-in,.sample-board,.paper-tags):not(.sample-verdict *),
.question-showcase[data-proof="real"] .sample-app :is(.sample-timer,.sample-tag,.sample-q,.sample-options,.sample-passage,.sample-chunks,.sample-speak,.sample-actions,.paper-tags):not(.sample-verdict *){opacity:.28}
.question-showcase[data-proof="original"] [data-proof-part="original"],
.question-showcase[data-proof="difficulty"] [data-proof-part="difficulty"],
.question-showcase[data-proof="solution"] [data-proof-part="solution"],
.question-showcase[data-proof="real"] [data-proof-part="real"]{border-radius:6px;outline:3px solid var(--exam-ink);outline-offset:5px;background:color-mix(in srgb,var(--exam-ink) 7%,transparent);animation:proof-lit .45s ease-out}
@keyframes proof-lit{from{outline-offset:14px;outline-color:transparent}}
@media (prefers-reduced-motion:reduce){.sample-verdict{animation:none}.proof-card{transition:none}.question-showcase[data-proof] [data-proof-part]{animation:none}}
.paper-tags{list-style:none;display:flex;flex-wrap:wrap;gap:6px 22px;margin:14px 0 0;padding:0;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.paper-tags li{display:flex;align-items:baseline;gap:7px}
.paper-tags b{font-weight:500;text-transform:none;letter-spacing:var(--track);font-size:12px;color:var(--ink)}
.slide-dots{display:flex;gap:2px}
.slide-dots button{background:none;border:0;padding:10px 6px;width:30px;height:35px}
.slide-dots span{display:block;height:3px;background:var(--line);border-radius:9px}
.slide-dots button[aria-pressed=true] span{background:var(--accent-deep)}
@keyframes paper-arrive{from{opacity:.3;transform:translateX(26px)}to{opacity:1;transform:translateX(0)}}
html:not(.js) .showcase-slides{display:grid;gap:20px}
html:not(.js) .format-row>.exam-switcher,html:not(.js) .slide-dots{display:none}
@media(max-width:1100px){
.question-slide{gap:30px;padding:30px;min-height:570px}.exam-paper{--pad-y:22px;--pad-x:22px}
}
@media(max-width:850px){
.showcase-proof{grid-template-columns:minmax(0,1fr);gap:14px}
.question-slide{gap:20px;grid-template-columns:.7fr 1.3fr;padding:25px;min-height:580px}.exam-paper{--pad-y:18px;--pad-x:18px}.exam-figure dt{font-size:48px}.exam-figure dd{font-size:18px}
}
@media(max-width:600px){
.brand .platform-logo{width:32px;margin-right:0}.cta-compass{width:23px;height:23px}.nav-actions .cta-compass{width:18px;height:18px}

.sea-passage{--band-h:105px;margin-top:0}.wake-lines{height:25px}
.showcase-bar{gap:10px 2px;padding:13px 0}.format-row>.exam-switcher{flex:1 1 100%;flex-wrap:wrap;border-radius:28px}.format-row>.exam-switcher button{flex:1;padding:9px 6px;font-size:14px}.exam-figure{margin-bottom:18px}.exam-figure dl{gap:12px}.exam-figure dt{font-size:38px}.exam-figure dd{font-size:15px}.question-slide{display:flex;flex-direction:column;gap:20px;align-items:stretch;padding:22px 16px;min-height:720px}.question-example{flex:1}.exam-format{font-size:8px}.exam-paper{--pad-y:19px;--pad-x:16px;transform:none}.exam-paper .katex-display{font-size:.85em;margin:8px 0}.sample-app{padding:10px}.sample-card{padding:14px}.sample-q{font-size:15px}.sample-opt{font-size:14px;padding:10px 12px}.showcase-proof{gap:12px;padding:20px 12px 24px}.question-showcase .showcase-proof{padding:14px 12px 16px}.proof-tabs{gap:6px}.proof-card{font-size:13px;padding:7px 12px 7px 10px}.proof-card .hb-ic{width:17px;height:17px}.paper-tags{gap:5px 14px;margin-top:12px;font-size:9px}.paper-tags b{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
.compass-needle,.sea-passage .swell{transform:none!important;transition:none!important}.question-slide{animation:none}
}

/* An exam's mark (brand.mjs examMark): a flat flag, or for a worldwide exam a globe on a navy
   one. The outline draws over the flag, so a white field keeps an edge on white. */
.exam-mark {
  display: inline-block;
  width: 1.2em;
  height: 0.76em;
  vertical-align: -0.04em;
  border-radius: 0.12em;
  overflow: hidden;
  outline: 1px solid rgb(0 0 0 / 0.1);
  outline-offset: -1px;
}
.exam-mark svg { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- the symbols work
   Not the icon moving, but the thing inside it working: a lighthouse sweeps, a compass
   needle drifts, a ship rolls. Each runs only while its section is on screen (`.lit`, set by
   the reveal observer) or its own control is hovered, never at rest on the whole page. */
.hb-ic .lh-r1 { transform-origin: 7.4px 6.6px; }
.hb-ic .lh-r2 { transform-origin: 12.6px 6.6px; }
.hb-ic .lh-lamp { transform-box: fill-box; transform-origin: center; }
.lit .hb-ic .lh-r1 { animation: lh-beam-l 3.4s ease-in-out infinite; }
.lit .hb-ic .lh-r2 { animation: lh-beam-r 3.4s ease-in-out infinite; }
.lit .hb-ic .lh-lamp { animation: lh-flash 3.4s ease-in-out infinite; }
/* The light turns: both rays go dark, the beam reaches out to the right and fades, the
   lamp flares as it faces the reader, the beam reaches out to the left, and both rays come
   back to rest, so a loop joins without a blink. */
@keyframes lh-beam-r {
  0%, 100% { opacity: 1; transform: none; }
  8% { opacity: 0; transform: scaleX(.15); }
  26% { opacity: 1; transform: none; }
  46%, 92% { opacity: 0; transform: none; }
}
@keyframes lh-beam-l {
  0%, 100% { opacity: 1; transform: none; }
  8%, 50% { opacity: 0; transform: scaleX(.15); }
  70% { opacity: 1; transform: none; }
  88%, 92% { opacity: 0; transform: none; }
}
@keyframes lh-flash { 0%, 38%, 58%, 100% { transform: none; } 48% { transform: scale(1.5); } }
/* The ship is drawn solid, as the app draws it (App.css `.hb-ship`) and the hero's voyage does:
   a hull in the ship's colour under a white sail. A surface that paints it otherwise (the
   mission's white ship) says so after this. */
.hb-ship .sh-hull { fill: currentColor; }
.hb-ship .sh-sail { fill: var(--white); }
.hb-ic .sh-hull {
  transform-origin: 50% 60%;
}
/* The compass needle swings off its heading and settles back, as a card does when the
   instrument is picked up; the ambient loop only lets it drift. */
.hb-ic .sx-needle { transform-origin: 10px 10px; }
.lit .hb-ic .sx-needle { animation: sx-drift 5s ease-in-out infinite; }
@keyframes sx-settle {
  0%, 100% { transform: none; }
  22% { transform: rotate(-38deg); }
  44% { transform: rotate(16deg); }
  64% { transform: rotate(-7deg); }
  82% { transform: rotate(3deg); }
}
@keyframes sx-drift { 0%, 100% { transform: none; } 40% { transform: rotate(-12deg); } 70% { transform: rotate(5deg); } }
@keyframes travel {
  from {
    transform: none;
    opacity: 1;
  }
  55% {
    transform: translateX(2.4px);
    opacity: 0.4;
  }
}
.lit .hb-ic .sh-hull,
.lit .hb-ic .sh-mast,
.lit .hb-ic .sh-sail {
  animation: roll 5.5s ease-in-out infinite;
}
.lit .hb-ic .sh-wave {
  animation: travel 3.2s ease-in-out infinite;
}
@keyframes roll {
  from {
    transform: none;
  }
  50% {
    transform: rotate(2.2deg);
  }
}

/* ------------------------------------------------------------------ the question bank */

@keyframes tick-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
}

/* ------------------------------------------------------------------ example questions */
.sample-actions {
  display: flex;
  width: max-content;
  margin: 16px 0 0;
  margin-inline-start: auto;
}
/* The app's "Check my solution": an ink pill, grey until there is something to check. */
.sample-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sample-check .hb-ic {
  width: 16px;
  height: 16px;
}
.sample-check:disabled {
  background: var(--paper);
  color: var(--muted);
  cursor: default;
}
/* The verdict is a modal over the whole page (site.js `showModal`), so the reader's next
   move, the trial, and the worked solution are in view at once. The dialog is only the
   frame; the card inside is what shows, so a click on the dialog itself is the backdrop. */
.sample-verdict {
  width: min(600px, 100% - 32px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  animation: verdict-in 0.25s ease-out;
}
.sample-verdict::backdrop {
  background: rgba(20, 32, 43, 0.45);
  backdrop-filter: blur(2px);
}
.verdict-card {
  position: relative;
  max-height: calc(100dvh / var(--zoom) - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px clamp(14px, 5%, 32px) 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 40px -22px rgba(20, 32, 43, 0.5);
  text-align: center;
}
.verdict-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.verdict-close:hover {
  color: var(--ink);
}
.verdict-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  background: var(--verdict-ok);
}
[data-verdict="wrong"] .verdict-mark {
  background: var(--verdict-no);
}
/* An answer the page cannot mark: the mark is how practice takes it, the quill or the microphone. */
[data-verdict="practice"] .verdict-mark {
  background: color-mix(in srgb, var(--exam-ink) 10%, var(--white));
  color: var(--exam-ink);
}
.verdict-mark svg {
  width: 22px;
  height: 22px;
}
.verdict-card strong {
  font-size: 22px;
}
.verdict-card:focus-visible {
  outline: none;
}
.verdict-card p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.verdict-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
/* Maths inline in prose, at the prose's size rather than KaTeX's 1.21em. */
:is(.sample-q, .sample-opt, .worked p) .katex {
  font-size: 1.08em;
}
/* A worked solution: its prose, each line of working displayed on the paper tint under it. */
.worked {
  align-self: stretch;
  min-width: 0;
  text-align: start;
}
.worked p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.worked > p:first-child {
  margin-top: 0;
}
.worked .katex-display {
  margin: 7px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--paper);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent);
  overflow-x: auto;
  overflow-y: hidden;
}
.worked .katex-display > .katex {
  text-align: start;
}
/* Under 600px the site sets every .katex at 1em, so the working is sized to the prose here. */
@media (max-width: 600px) {
  .worked .katex-display {
    padding-inline: 8px;
    font-size: 14px;
  }
}
.verdict-retry {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 13px;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.verdict-card:not([data-state="wrong"]) .verdict-retry {
  display: none;
}
.sample-figure {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  /* Left in every language, with the English question it belongs to. */
  margin: 0 auto 14px 0;
}
.verdict-trial {
  font-size: 12px;
  color: var(--muted);
}
@keyframes verdict-in {
  from {
    opacity: 0;
  }
}
.solution {
  align-self: stretch;
  margin-top: 8px;
  border-top: 1px dotted var(--line);
  padding-top: 14px;
  text-align: start;
}
.solution h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 13px;
  font-weight: 550;
}
.solution h3 .hb-ic {
  width: 16px;
  height: 16px;
  color: var(--exam-ink);
}
.solution .worked {
  margin-top: 14px;
}

/* THE SCORE FOOTNOTE (`scoreNote`): one quiet line under an exam's practice scores (TMUA, ESAT),
   under the results' gain and chart and under the plan's target meter, as the app's `.score-note`. */
.score-footnote { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.45; }
.results-section > .score-footnote { margin-top: 12px; }
.plan-aim .score-footnote { margin: -6px 0 14px; }

/* ---------------------------------------------------------------------- the results
   One row of students drifting past, not one student at a time. The track carries the
   list twice and slides by exactly one copy plus one gap, so the loop has no seam. */
.results-marquee {
  margin-top: 40px;
  /* Room for the cards' shadow, which the clipped box would otherwise cut. */
  padding-bottom: 30px;
  /* A drifting row is not scrolled by hand: scrolled to its end, the drift slides the cards
     out of the box until the loop wraps. Still rows below scroll as usual. */
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
}
/* A row focused from the keyboard is paused, so it gives up its edge fade: the mask would clip the focus ring,
   which is drawn outside the box. */
:is(.results-marquee, .institutions-marquee):focus-visible {
  -webkit-mask-image: none;
  mask-image: none;
}
.results-marquee::-webkit-scrollbar {
  display: none;
}
.results-track {
  --results-gap: 18px;
  position: relative;
  display: flex;
  width: max-content;
  align-items: flex-start;
  gap: var(--results-gap);
  animation: results-drift 78s linear infinite;
}
.results-marquee.is-still {
  overflow-x: auto;
  -webkit-mask-image: none;
  mask-image: none;
}
.results-marquee.is-still .results-track {
  margin-inline: auto;
  animation: none;
}
.results-marquee.is-still .results-track > [aria-hidden="true"] {
  display: none;
}
.results-marquee:focus-visible .results-track {
  animation-play-state: paused;
}
/* Two copies of N cards with N-1 gaps between them: one copy plus one gap is exactly
   half the track plus half a gap, which is where the seam is invisible. */
@keyframes results-drift {
  to {
    transform: translateX(calc(-50% - var(--results-gap) / 2));
  }
}
/* The crowd as one picture, above the row of students. Two series only: before in a quiet
   slate, after in the accent, each labelled at its average line. */
.progress-figure {
  --first: #5f6c78;
  --latest: var(--accent);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 48px;
  align-items: end;
  margin: 46px 0 0;
  padding: 40px 46px 34px;
  background: var(--sea);
  border-radius: 8px;
}
/* The exam's name at the top, the figure in the room under it; the chart's own column ends
   on its axis. */
.progress-stat {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.progress-exam {
  margin-bottom: auto;
}
.progress-stat strong {
  margin-top: 24px;
  font-size: 76px;
  font-weight: 450;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--ink);
}
.progress-stat > p {
  font-size: var(--text);
  line-height: 1.5;
  margin: 18px 0 auto;
}
/* With the gain's jump under it, the pair keeps together and the jump takes the auto margin. */
.progress-stat > p:has(+ .progress-reach) {
  margin-bottom: 0;
}
.progress-chart {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
/* Level with the exam's name and in its type, quieter; the plot sits on the axis line. */
.progress-title {
  margin: 0 0 auto;
  padding-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--muted);
}
/* The gain made concrete (reach.mjs), under the stat: one line saying what it is worth, the
   two figures on a short dashed route, the lower in the first series' slate and the top in the
   latest's accent, each over its name, which links to its source. */
.progress-reach {
  --reach-figure: 22px;
  width: 100%;
  margin: 22px 0 auto;
}
.progress-reach-lead {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
.progress-reach ol {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
/* Each figure stands over its name, the dashed route between the figures, so a pair stays on
   one line and a long name wraps only under its own figure. */
.progress-reach:not(.is-mixed) ol {
  display: grid;
  grid-template-columns: minmax(min-content, max-content) 36px minmax(min-content, max-content);
  column-gap: 12px;
  align-items: start;
}
.progress-reach:not(.is-mixed) ol::before {
  content: "";
  grid-area: 1 / 2;
  margin-top: calc(var(--reach-figure) * 0.65);
  border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
}
.progress-reach:not(.is-mixed) li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* The lower place aligns to its end, so both figures sit against the route however long its name. */
.progress-reach:not(.is-mixed) li:first-child {
  grid-area: 1 / 1;
  align-items: flex-end;
  text-align: end;
}
.progress-reach:not(.is-mixed) li:last-child {
  grid-area: 1 / 3;
}
/* A pair of two kinds stacks, each figure beside its name and its own line, with no route,
   which would point at nothing. */
.progress-reach.is-mixed ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progress-reach.is-mixed li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.progress-reach b {
  font-size: var(--reach-figure);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--first);
}
.progress-reach li:last-child b {
  color: var(--latest);
}
.progress-reach a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.progress-reach li > span {
  display: flex;
  flex-direction: column;
}
.progress-reach small {
  font-size: 13px;
}
/* What the figures are: one line under a pair of one kind, a caption per figure otherwise. */
.progress-reach-what {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
/* Low to high, left to right in every language: RTL would flip each label's anchor. */
.progress-plot {
  direction: ltr;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.progress-grid {
  stroke: #cfdbe3;
  stroke-dasharray: 2 5;
}
.progress-axis {
  stroke: var(--ink);
}
.progress-tick {
  font-size: 15px;
  fill: var(--muted);
}
.progress-series {
  --c: var(--first);
  --fill: 0.08;
  --stroke: 2;
  transform-box: view-box;
  transform-origin: 0 300px;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-series[data-series="latest"] {
  --c: var(--latest);
  --fill: 0.24;
  --stroke: 3.5;
  transition-delay: 0.35s;
}
.progress-area {
  fill: var(--c);
  fill-opacity: var(--fill);
}
.progress-line {
  fill: none;
  stroke: var(--c);
  stroke-width: var(--stroke);
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.progress-mean line {
  stroke: var(--first);
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.progress-mean[data-series="latest"] line {
  stroke: var(--latest);
}
.progress-mean text {
  font-size: 18px;
  font-weight: 650;
  fill: var(--first);
}
.progress-mean[data-series="latest"] text {
  fill: var(--latest);
}
/* The arrow from the first average to the latest, drawn left to right once both stand. */
.progress-shift {
  fill: none;
  stroke: var(--latest);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: view-box;
  transition: transform 0.7s 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-shift path {
  vector-effect: non-scaling-stroke;
}
.js .progress-figure:not(.is-drawn) .progress-shift {
  transform: scaleX(0);
}
/* Waiting to rise: only with script, which is what lifts it (site.js). */
.js .progress-figure:not(.is-drawn) .progress-series {
  transform: scaleY(0);
}
.progress-mean {
  transition: opacity 0.5s 1.1s;
}
.js .progress-figure:not(.is-drawn) .progress-mean {
  opacity: 0;
}
@media (max-width: 1100px) {
  .progress-figure {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .progress-stat > p {
    max-width: 520px;
  }
}
@media (max-width: 600px) {
  .progress-figure {
    padding: 26px 16px 22px;
    margin-top: 30px;
  }
  .progress-stat strong {
    font-size: 56px;
  }
  .progress-tick {
    font-size: 30px;
  }
  .progress-mean text {
    font-size: 36px;
  }
  .progress-head {
    transform: scale(2.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .progress-series,
  .progress-mean {
    transition: none;
  }
}
/* ===== Draft: where our students study =====================================
   Shares the results marquee's mask, narrow-screen fade, reduced-motion and
   no-script rules, declared once on both selectors up in that section. What
   differs lives here, and most of its numbers are SOLVED in home.mjs from the
   swell this row is seated on, not chosen: see landing-page.md. */
/* The row rides inside the hero's water, so it owns no ground of its own: no panel, no
   rules, nothing to end on. It is absolutely placed in the band and the sea shows through
   between the crests. */
.institutions {
  position: absolute;
  /* What a mark's own size scales by: one pixel, or less where a swell unit is less, on a
     phone. Scaling marks and pitch together keeps every advance in proportion. */
  --m: min(1px, var(--unit));
  /* Placed from the band's top, so the desktop caption sits clear above the water and the
     marquee below can be dropped onto the crest by a known amount. */
  inset: 16px 0 auto;
  /* The band sets `pointer-events: none` so decorative water cannot eat the film's
     controls; the row itself is reachable again, or it could not be focused or scrolled. */
  pointer-events: auto;
}
h2.institutions-head {
  margin: 0;
  font-size: var(--text);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
}
.institutions-head-mobile { display: none; }
.institutions-marquee {
  /* Puts each mark's unshifted centre on the front wave's baseline, from which its `--rise`
     seats it on whichever wave is higher. A clipped `overflow-x` forces `overflow-y` to auto
     too, so a mark lifted without room above it is simply cut off. `--headroom` is the
     highest seat on each wave (from home.mjs) plus that wave's full scroll parallax, and
     the margin gives the same amount back so the content box does not move. */
  --headroom: calc(max(var(--top-back) * 1px - var(--lift-back), var(--top-front) * 1px - var(--lift-front)) + 4px);
  margin-top: calc(80px - var(--headroom));
  padding-block: var(--headroom) 20px;
  /* NOT scrollable by hand while it drifts: a hand scroll moves the marks and not the water,
     so one arrow key or swipe left every mark off its wave for good. The drift already
     carries every mark past. Where the row stops (reduced motion, no script) it scrolls. */
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
}
.institutions-marquee::-webkit-scrollbar {
  display: none;
}
.institutions-track {
  /* NO `gap`. The marks are not evenly spaced: each carries its own run to the next centre so
     that it lands where home.mjs seated it. Pitch and lead are in the swell's user units
     (`--pitch`, `--unit`) and mark halves in pixels scaled by `--m`, so the centres stretch
     with the swell at every width. */
  display: flex;
  align-items: center;
  width: max-content;
  /* Fixed at the tallest mark's full height, so a phone's smaller marks keep their centres on
     the baseline; a track that shrank with them would lift every seat. */
  height: calc(var(--tallest) * 1px);
  margin: 0;
  padding-inline: calc(var(--pitch) * var(--unit) / 2 - var(--first) * var(--m)) 0;
  padding-block: 0;
  list-style: none;
  /* SAME DIRECTION AND SPEED AS THE WATER. Running it in reverse at its own pace read as
     two unrelated animations sharing a band. `--drift` is one copy of the track at the front
     swell's rate, solved in home.mjs from the mark count; both distances are in swell units,
     so the duration holds at every width. */
  animation: institutions-drift var(--drift) linear infinite;
}
/* Only a keyboard focus pauses the row; a pointer, hovering or clicking, does not. THE WATER
   PAUSES WITH IT: the track paused alone keeps the lag it gains for good, and leaves every
   mark sitting in a trough. */
.sea-passage.has-institutions:has(:focus-visible) :is(.institutions-track, .swell-back, .swell-front) {
  animation-play-state: paused;
}
/* Each mark is lifted onto whichever wave home.mjs seated it on, so the row rides the water
   instead of cutting a straight line through it. `translate` is used rather than
   `transform`, which the track's drift owns. */
.institution {
  display: flex;
  align-items: center;
  /* Its own run to the next centre, not a shared gap: the pitch in swell units less the
     halves of the two marks either side, which are pixels scaled by `--m`. */
  margin-inline-end: calc(var(--pitch) * var(--unit) - var(--pair) * var(--m));
  /* Seated on its wave, then lifted with that wave's own scroll parallax: `--wave-lift` is
     `--lift-back` or `--lift-front`, named per mark by the renderer. */
  translate: 0 calc(var(--rise) + var(--passage, 0) * var(--wave-lift));
}
/* The renderer hands each mark its settled height, `--h`, computed from that file's aspect
   ratio and already clamped: one shared height makes a square mark read as a fraction of a
   long wordmark. It arrives as a CUSTOM PROPERTY rather than an inline `height`, which would
   outrank every media query. Everything common to all of them lives here too - desaturated
   to one weight, or twenty brand palettes fight each other and the row reads as a ransom
   note. */
.institution-logo {
  flex: none;
  width: auto;
  /* Scaled by `--m` with the pitch, so a phone's marks shrink with the swell they sit on. */
  height: calc(var(--h) * var(--m));
  filter: grayscale(1);
  opacity: 0.9;
  transition: opacity 180ms ease;
}
.institution-logo:hover {
  opacity: 1;
}
/* One copy is `marks x PITCH` by construction, so the seam is that distance exactly - a
   figure the renderer knows and hands over as `--marks` and `--pitch`, in swell units. A percentage of the track would
   have to account for the lead padding as well, which is how these things drift. */
@keyframes institutions-drift {
  to {
    transform: translateX(calc(-1 * var(--marks) * var(--pitch) * var(--unit)));
  }
}
@media (max-width: 620px) {
  .institutions-head-desktop { display: none; }
  h2.institutions-head-mobile {
    position: absolute;
    z-index: 2;
    inset: auto 20px 18px;
    display: block;
  }
  .institutions {
    inset: 50px 0 0;
    /* Keep the wave seats and spacing intact, but let the marks read more clearly on a
       phone than the swell's strict geometric scale alone allows. */
    --m: min(1px, calc(var(--unit) * 1.4));
  }
  .institutions-marquee {
    margin-top: calc(86px - var(--headroom));
  }
  /* `--m` scales their advances with them, so the larger marks keep the same centres. */
}
/* One student, one layout and one size: flag, name and city, then their exam and its first and
   latest scores as the large figure, the latest in the accent. A student with several exams shows them
   one at a time in the same cell (site.js turns them), with a dot for each, so their card is no
   taller than anyone's. White on the page, drawn like the price cards, so the row reads as
   people rather than a second chart. */
.result-card {
  flex: 0 0 272px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 48px -42px rgba(20, 32, 43, .55);
}
.result-person { display: flex; align-items: center; gap: 12px; font-size: var(--text); line-height: 1.3; }
.result-person b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.result-person small { display: block; color: var(--muted); }
.result-flag { flex: none; width: 28px; height: 21px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); }
.result-score { display: grid; gap: 2px; padding-top: 14px; border-top: 1px dotted var(--line); }
/* One line, so every card is the same height whatever its exam's name. */
.result-exam { overflow: hidden; color: var(--muted); font-size: var(--note); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.result-gain { margin: 2px 0 0; font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; white-space: nowrap; }
.result-gain span { color: #8a98a3; font-weight: 500; }
.result-gain small { color: var(--muted); font-size: var(--text); font-weight: 500; letter-spacing: var(--track); }
.result-gain strong { color: var(--accent-deep); font-size: 34px; font-weight: 650; letter-spacing: -0.04em; }
.result-range { margin: 0; color: var(--muted); font-size: var(--note); }
/* -------------------------------------------------------------------- the comparison */
/* ------------------------------------------------------------------------ your waters
   The product's own reading, ported from frontend/src/App.css: the rose keeps its rings,
   axes, polygon and uncharted rim dot, and the rows keep their depth track. A landing page
   that draws a different product from the one you sign into is a lie told in pictures. */
.waters-section > .section-head { align-items: flex-start; }
/* One sheet, as the app's study page is one panel (StudyHomePage.tsx): the plan's name over
   its ink rule, the voyage, and the compass under a head of its own, each head the app's
   `.panel-hd`. The plate holds the compass and its second view. */
.plan-sheet {
  position: relative;
  padding: 30px 34px 36px;
  border: 1px solid #c8d6df;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 54px -42px rgba(20, 32, 43, .55);
}
/* The exam a section shows, named as the plan sheet names it. */
.exam-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; line-height: 1.25; text-transform: uppercase; text-wrap: balance; color: var(--ink); }
:is(.plan-sheet-hd, .waters-head) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
}
/* The plan's name as the app heads its panel, its next step at the end. The exam's ink as the
   app wears it where a plan or exam is named (`.exam-dot`). */
.plan-sheet-hd { flex-wrap: wrap; gap: 12px 20px; padding-bottom: 14px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; text-transform: none; }
.plan-sheet-name { display: flex; align-items: center; gap: 12px; }
:is(.plan-sheet-name, .exam-tag) > i { flex: none; width: .78em; height: .78em; border-radius: 50%; background: var(--exam-ink); }
.waters-head { margin-top: 44px; }
.waters-head .hd-left { display: flex; align-items: center; gap: 10px; }
.waters-head .hb-ic { width: 18px; height: 18px; }
/* The compass's subject, the app's `.panel-hd.sub`. */
.cp-subject { margin: -6px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.waters-plate { position: relative; }
.waters-body {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  align-items: start;
  gap: 52px;
  margin-top: 26px;
}
/* Two views of one plate (site.js): the compass, and the questions like the one you got
   wrong. The map takes the rose's place and the cards the rows'; the view not shown waits
   in the same cell, so the plate keeps its height. Without script both are drawn. */
.waters-figure, .waters-list { display: grid; align-items: start; min-width: 0; }
.js :is(.waters-figure, .waters-list) > * {
  grid-area: 1 / 1;
  min-width: 0;
  transition: opacity .45s ease .15s, scale .7s cubic-bezier(.22, 1, .36, 1) .15s, translate .7s cubic-bezier(.22, 1, .36, 1) .15s;
}
.js .waters-plate[data-view="like"] :is(.cp-rose, .cp-rows),
.js .waters-plate[data-view="compass"] :is(.like-map, .like-cards) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, scale .4s ease, translate .4s ease, visibility 0s .4s;
}
.js .waters-plate[data-view="like"] .cp-rose { scale: .82; }
.js .waters-plate[data-view="compass"] .like-map { scale: 1.12; }
.js .waters-plate[data-view="like"] .cp-rows { translate: -18px 0; }
.like-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px 4px 7px;
  border: 1px solid #b8c8d3;
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background .2s, opacity .3s, scale .15s;
}
.like-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.like-back:hover, .like-back.is-pressed { border-color: var(--navy-2); background: var(--navy-foam); }
.waters-plate[data-view="compass"] .like-back { opacity: 0; visibility: hidden; }
html:not(.js) .like-back { display: none; }
/* The pointer that plays the press, the flow demo's own (`.ap-cursor`). */
.cp-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 20px;
  height: 24px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
  transition: translate .55s cubic-bezier(.45, 0, .2, 1), opacity .25s, scale .15s;
}
.cp-cursor.is-on { opacity: 1; }
.cp-cursor.is-placing { transition: opacity .25s; }
.cp-cursor.is-pressing { scale: .85; }
/* The ring a press leaves under the pointer's tip. */
.cp-click {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.cp-click.is-on { animation: cp-click .6s ease-out; }
@keyframes cp-click {
  from { opacity: .9; scale: .3; }
  to { opacity: 0; scale: 1.5; }
}
html:not(.js) :is(.cp-cursor, .cp-click) { display: none; }
.cp-rose {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.cp-ring { fill: none; stroke: #b3c4cf; stroke-width: 1; stroke-dasharray: 1 4; }
.cp-axis { stroke: #b3c4cf; stroke-width: 1; }
.cp-n-rose { font-size: 13px; font-weight: 600; fill: var(--muted); }
.cp-poly {
  fill: rgba(44, 95, 128, 0.22);
  stroke: var(--navy-2);
  stroke-width: 2;
  stroke-linejoin: round;
  transform-box: view-box;
  transform-origin: 120px 120px;
}
.lit [data-view="compass"] .cp-poly { animation: cp-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes cp-in { from { transform: scale(0); opacity: 0; } }
.cp-dot { fill: var(--navy-2); stroke: var(--white); stroke-width: 1.5; }
.cp-due-dot { fill: var(--accent); }
.cp-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.cp-rows li { border-bottom: 1px dotted #c3d2dc; }
.cp-rows li:last-child { border-bottom: 0; }
.cp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 14px;
}
/* The verb on a domain row, as the app draws it: a plain labelled pill, on the opened row. */
.cp-verb { flex: none; width: 92px; display: flex; justify-content: flex-end; }
/* A domain's wrong answers as the app counted them until 2026-10-18 (a clay dot and "1 wrong";
   the app's sitting row is now a split bar). Here it opens the questions like that one; the
   pointer in site.js shows that. */
.cp-due {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  cursor: pointer;
}
.cp-due::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cp-due:hover, .cp-due.is-pressed { text-decoration: underline; text-underline-offset: 3px; }
:is(.cp-due, .like-back):focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.like-back.is-pressed { scale: .92; }
.cp-practise {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid #b8c8d3;
  border-radius: 6px;
  background: var(--white);
  font-size: 12px;
  color: var(--ink);
}
.cp-practise .hb-ic { width: 14px; height: 14px; }
.cp-practise { text-decoration: none; transition: border-color .2s, background .2s; }
.cp-practise:hover { border-color: var(--navy-2); background: var(--navy-foam); }
.cp-skills {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 32px;
  display: grid;
  gap: 2px;
}
.cp-skills li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 0;
  border: 0;
  font-size: 13px;
  color: var(--muted);
}
.cp-skills .sk-ic { width: 20px; height: 20px; flex: none; }
.sk-ic .sk-thin { stroke-width: 1.2; }
.sk-ic .sk-mark { stroke-width: 3.6; opacity: .2; stroke-linecap: butt; }
.cp-skills .depth { height: 4px; }
.cp-skills .cp-pct { font-size: 12px; }
.cp-area-domains .cp-n { width: 22px; font-size: 12px; }
.cp-n {
  flex: none;
  width: 18px;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.cp-name { flex: 1 1 auto; min-width: 0; }
.depth {
  flex: 0 1 150px;
  min-width: 50px;
  height: 6px;
  border-radius: 999px;
  background: #cfdde6;
  overflow: hidden;
}
.depth-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--water-hi);
}
.lit [data-view="compass"] .depth-fill { animation: depth-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes depth-in { from { width: 0; } }
.cp-pct {
  flex: none;
  width: 56px;
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
}
.cp-pct.ok { color: #1f6b45; }
.cp-pct.low { color: var(--accent-deep); }
/* A row off pace (the app's `.cp-pace`): a clock in amber where slow, a gauge where fast. */
.cp-pace { flex: none; display: inline-grid; place-items: center; width: 16px; color: var(--muted); }
.cp-pace.slow { color: var(--amber); }
.cp-pace :is(svg, .hb-ic) { width: 13px; height: 13px; }
/* Its sentence on hover or focus, the platform's tooltip (`.cell-note`, the app's `[data-tip]`):
   a mark nobody can read is decoration. */
.waters-plate [data-tip] { position: relative; cursor: help; }
.waters-plate [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 8px);
  inset-inline-end: -8px;
  width: max-content;
  max-width: 240px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 10px 24px -14px rgba(20, 20, 20, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  text-align: start;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s;
  pointer-events: none;
}
.waters-plate [data-tip]:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; }
/* An RTL page opens it from the left edge, also where a mark is set left-to-right for its sign
   (`.cp-change`): the logical inset follows the mark's own direction, which would open it past the page. */
.waters-plate [data-tip]:dir(rtl)::after { inset-inline: auto; left: -8px; }

/* ----------------------------------------------------------- the suggested journey
   The student's Study page as the app draws it (frontend/src/App.css, `.vy-plate`, `.pbox`,
   `.vy-aim`): the patterns box over a sea that deepens under the route, the test sailed in
   gold, the wake to the ship, the next tests as lighthouses and exam day as a cross, then the
   target meter on its own card. An example, so it names no real dates. */
/* Its own stacking context, so its cards and stops never rise over the sheet's pointer. */
.plan-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--white) 0%, var(--sea) 85%);
}
.plan-board-head { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 18px 0; }
.plan-say { max-width: 420px; font-size: 14px; color: inherit; text-decoration: none; }
.plan-say .ap-bubble { border-color: var(--accent); }
.plan-say .ap-bubble::before { background: var(--accent); border-color: var(--accent); clip-path: polygon(0 0, 0 100%, 100% 100%); }
[dir="rtl"] .plan-say .ap-bubble::before { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.plan-say-go { display: flex; align-items: center; gap: 7px; margin-top: 7px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.plan-say-go .hb-ic { width: 16px; height: 16px; }
.plan-say-chev { width: 10px; height: 10px; margin-inline-start: auto; color: var(--muted); transition: translate .2s; }
.plan-say:hover .plan-say-chev { translate: 3px 0; }
[dir="rtl"] .plan-say-chev { scale: -1 1; }
.plan-say:focus-visible { outline: none; }
.plan-say:focus-visible .ap-bubble { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.plan-say .crew { width: 52px; height: 54px; }
.plan-say .ap-bubble { display: grid; gap: 3px; padding: 11px 14px; }
.plan-say strong { font-weight: 650; }
.plan-say .ap-bubble span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.plan-swipe { display: none; }
.plan-route {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #afc3cf transparent;
}
.plan-route-scroll { position: relative; min-width: 760px; height: 260px; }
.plan-route-scroll > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.plan-lane { position: absolute; left: 0; right: 0; top: var(--y); border-top: 1.5px dotted color-mix(in srgb, var(--navy-2) 16%, transparent); }
.plan-route-ahead,
.plan-route-done { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.plan-route-ahead { stroke: var(--muted); stroke-width: 2.2; stroke-dasharray: 0 7; }
/* The wake: the water sailed since the last test, a pale band under the ship. */
.plan-route-done { stroke: color-mix(in srgb, var(--water-hi) 20%, var(--white)); stroke-width: 9; }
.plan-route ol { margin: 0; padding: 0; list-style: none; }
/* A stop's mark is centred on its point on the route; its labels hang under it. */
.plan-stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  translate: -50% -22px;
  text-align: center;
}
.plan-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #c3d2dc;
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  box-shadow: 0 5px 14px -8px rgba(20, 32, 43, .55);
}
button.plan-mark { cursor: pointer; }
button.plan-mark:hover { box-shadow: 0 8px 20px -10px rgba(20, 32, 43, .7); }
.plan-mark:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.plan-mark[aria-expanded="true"] { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-deep) 13%, transparent); }
.plan-mark .hb-ic { width: 26px; height: 26px; }
/* A test sat wears the medal its share earned (the app's `.vy-mark.lit`), bare under bronze's floor. */
.plan-stop.done .plan-mark { border-color: var(--medal); background: var(--medal-soft); color: var(--medal); }
.plan-stop.gold { --medal: var(--voyage-gold); --medal-soft: var(--voyage-gold-soft); }
.plan-stop.silver { --medal: var(--voyage-silver); --medal-soft: var(--voyage-silver-soft); }
.plan-stop.bronze { --medal: var(--voyage-bronze); --medal-soft: var(--voyage-bronze-soft); }
.plan-stop.bare { --medal: var(--faint); --medal-soft: var(--white); }
.plan-stop.test { translate: -50% -26px; }
.plan-stop.test .plan-mark { width: 52px; height: 52px; border: 3px solid var(--accent-deep); color: var(--ink); }
.plan-stop.test .plan-mark .hb-ic { width: 30px; height: 30px; }
.plan-stop-score { position: absolute; top: -28px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.plan-stop strong { margin-top: 8px; font-size: 12px; font-weight: 600; line-height: 1.25; }
.plan-stop small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.plan-stop.later strong { color: var(--muted); font-weight: 500; }
/* Exam day: the exam's name over the cross, as the app labels it. */
.plan-stop.exam { translate: -50% calc(-100% + 20px); }
.plan-stop.exam strong { margin: 0; font-size: 15px; font-weight: 650; }
.plan-stop.exam small { margin: 0 0 8px; }
.plan-x {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
}
.plan-x::before { content: ""; position: absolute; inset: -6px; border: 2px dotted var(--ink); border-radius: 50%; }
.plan-x svg { width: 18px; height: 18px; overflow: visible; }
.plan-x path { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; }
.plan-leg { position: absolute; left: var(--x); top: var(--y); translate: -50% 0; color: var(--muted); font-size: 12px; line-height: 1.3; text-align: center; }
.plan-leg b { color: var(--ink); font-size: 15px; font-weight: 600; }
.plan-leg small { display: block; font-size: inherit; }
/* The tests past the next two, folded into one pill, as the app folds them. */
.plan-fold {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 13px 3px 3px;
  translate: -50% -50%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.plan-fold > span:first-child { display: flex; }
.plan-fold .hb-ic { width: 24px; height: 24px; padding: 2px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--muted); }
.plan-fold .hb-ic + .hb-ic { margin-inline-start: -9px; }
.plan-ship {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 50px;
  height: 46px;
  translate: -50% -100%;
  color: var(--navy-2);
}
/* As in the app's voyage, a ship under way draws no wave: the route is its water. */
:is(.plan-ship, .flow-boat) .sh-wave { display: none; }
/* A roll about the waterline, livelier than the app's crew-bob at this smaller size. */
:is(.plan-ship-icon, .flow-boat .hb-ic) { transform-origin: 50% 80%; animation: ship-bob 4s ease-in-out infinite; }
@keyframes ship-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { :is(.plan-ship-icon, .flow-boat .hb-ic) { animation: none; } }
.plan-ship-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  filter: drop-shadow(0 4px 3px rgba(20, 32, 43, .16));
}
.plan-ship-icon .hb-ic {
  display: block;
  width: 46px;
  height: 46px;
}

/* The signed-in voyage opens one compact card from a mark. Test 1's action opens the report
   below; the next test's stays disabled, since this is not the student's real plan. */
.plan-test-card {
  position: absolute;
  z-index: 6;
  width: 290px;
  padding: 12px 14px 14px;
  border: 1px solid #9fb2bf;
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 18px 40px -20px rgba(20, 32, 43, .62);
  font-size: 12px;
}
/* The route is the board's last 260px, so a card is placed from the board's bottom: above the
   stop it opens from (`at-<spot>`, the route's segment ends), its tail on the stop's mark: the
   dock at x 7%, y 150 of 260; then 32%, 138; 48%, 160; 66%, 92. */
.plan-test-card.at-0 { left: max(12px, calc(7% - 68px)); bottom: 150px; }
.plan-test-card.at-1 { left: calc(32% - 145px); bottom: 162px; }
.plan-test-card.at-2 { left: calc(48% - 145px); bottom: 142px; }
.plan-test-card.at-3 { left: calc(66% - 145px); bottom: 208px; }
.plan-test-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  rotate: 45deg;
  background: var(--white);
  border: 1px solid #9fb2bf;
}
.plan-test-card.at-0::after {
  left: 68px;
  top: 100%;
  margin-top: -5px;
  border-top: 0;
  border-left: 0;
}
.plan-test-card:not(.at-0)::after {
  left: 50%;
  top: 100%;
  margin: -5px 0 0 -5px;
  border-top: 0;
  border-left: 0;
}
.plan-test-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}
.plan-test-card-head strong { font-size: 13px; font-weight: 600; }
.plan-test-card-head button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.plan-test-card-head button:hover { background: var(--sea); color: var(--ink); }
.plan-test-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.45; }
.plan-test-card > small { display: block; margin: -3px 0 10px; line-height: 1.4; }
.plan-test-card dl { margin: 0 0 10px; }
.plan-test-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dotted var(--line);
}
.plan-test-card dt { color: var(--muted); }
.plan-test-card dd { margin: 0; font-size: 20px; font-weight: 550; letter-spacing: -.03em; }
.plan-test-action {
  display: block;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 550;
}
.plan-test-action:disabled { opacity: .48; cursor: not-allowed; }

/* THE TARGET METER (the app's `.vy-aim`), its own card under the voyage: the result fills
   the track in the water's navy, the stretch to go is hatched in clay, and the target is a
   clay flag planted on the scale. Its cloth flies back over the track near the scale's end. */
.plan-aim { margin-top: 12px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
/* A scale, read from its low end on the left in every language, as the route above it. */
.plan-aim-meter { display: flex; align-items: center; gap: 12px; padding: 64px 0 34px; direction: ltr; }
.plan-aim-meter > small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.plan-aim-track {
  position: relative;
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--water-hi) 12%, var(--white));
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--water-lo) 12%, transparent);
}
.plan-aim-track > i { position: absolute; top: 0; bottom: 0; }
.plan-aim-done { left: 0; width: var(--from); border-radius: 999px; background: linear-gradient(90deg, var(--water-lo), var(--navy-2) 45%, var(--water-hi)); }
.plan-aim-gap {
  left: var(--from);
  width: calc(var(--to) - var(--from));
  border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent-deep) 55%, transparent) 0 3px, transparent 3px 7px);
}
.plan-aim-track > b { position: absolute; top: 50%; width: 0; height: 0; }
.plan-aim-now { left: var(--from); }
.plan-aim-flag { left: var(--to); }
.plan-aim-now::before {
  content: "";
  position: absolute;
  left: 0;
  translate: -50% -50%;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border: 7px solid var(--navy-2);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(20, 32, 43, .25), 0 0 0 4px color-mix(in srgb, var(--water-hi) 22%, transparent);
}
.plan-aim-now > span { position: absolute; top: 20px; left: 0; translate: -50% 0; color: var(--navy-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.plan-aim-flag::after { content: ""; position: absolute; left: 0; top: 0; translate: -50% -50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 3px var(--white); }
.plan-aim-pole { position: absolute; bottom: -9px; left: -1px; padding-bottom: 28px; border-left: 2px solid var(--accent-deep); }
.plan-aim-flag[data-fly="back"] .plan-aim-pole { left: auto; right: -1px; border-left: 0; border-right: 2px solid var(--accent-deep); }
.plan-aim-cloth {
  display: grid;
  gap: 1px;
  padding: 5px 21px 5px 10px;
  background: var(--accent-deep);
  color: var(--white);
  line-height: 1.05;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}
.plan-aim-flag[data-fly="back"] .plan-aim-cloth { padding: 5px 10px 5px 21px; text-align: end; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%); }
.plan-aim-cloth small { color: inherit; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.plan-aim-cloth strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* The plan's next step at the sheet head's end, the app's black pill. */
.plan-ready {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}
.plan-ready > span:not(.plan-ready-go) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-ready > .hb-ic { flex: none; width: 18px; height: 18px; }
.plan-ready-go { display: flex; flex: none; }
[dir="rtl"] .plan-ready-go { scale: -1 1; }
.plan-ready-go svg { width: 7px; height: 11px; animation: ready-go 1.6s ease-in-out infinite; }
.plan-ready-go svg:nth-child(2) { animation-delay: .2s; }
.plan-ready-go svg:nth-child(3) { animation-delay: .4s; }
@keyframes ready-go { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .plan-ready-go svg { animation: none; opacity: .7; } }

/* YOUR PATTERNS (the app's Patterns.tsx): each problem on the three-stop track, Confirmed,
   Watching, Fixed. The plan's box lists them; the report gives each its evidence. */
.pbox { width: min(100%, 340px); padding: 12px 18px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 18px 40px -30px rgba(20, 32, 43, .5); }
.pbox-hd { display: flex; align-items: center; gap: 8px; margin: 0; padding-bottom: 10px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.pbox-hd::-webkit-details-marker { display: none; }
.pbox-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent-deep); color: var(--white); font-size: 11px; font-weight: 650; }
.pbox-chev { width: 11px; height: 11px; margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.pbox[open] .pbox-chev { transform: rotate(180deg); }
.pbox-hd .hb-ic { width: 16px; height: 16px; }
.pbox ul { margin: 0; padding: 0; list-style: none; }
.pbox li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px dotted var(--line); }
.pbox li:first-child { border-top: 0; }
.pbox strong { display: block; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.pbox-side { flex: none; display: grid; justify-items: end; max-width: 150px; padding-top: 3px; text-align: end; }
.pbox-side .ptrack { margin-bottom: 6px; }
.pbox-side b { color: var(--ink); font-size: 12px; font-weight: 600; }
.pbox-side small { color: var(--muted); font-size: 11.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptrack { position: relative; display: flex; flex: none; justify-content: space-between; width: 220px; }
.ptrack::before { content: ""; position: absolute; left: 7px; right: 7px; top: 6px; border-top: 1.5px solid #cfdbe3; }
.ptrack.small { width: 64px; }
/* One 14px column, so each dot sits at its stop (7px in from the ends, where the arrow aims)
   and a label wider than it overflows both ways, centred under its dot. */
.ptrack-stop { position: relative; display: grid; grid-template-columns: 14px; justify-items: center; gap: 7px; width: 14px; }
.ptrack-stop i { width: 8px; height: 8px; margin-top: 2.5px; box-sizing: border-box; border: 1.5px solid #b3c4cf; border-radius: 50%; background: var(--white); }
.ptrack-stop.is-on i { width: 14px; height: 14px; margin-top: -.5px; border: 0; background: var(--accent-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-deep) 16%, transparent); }
.ptrack-stop small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ptrack-stop.is-on small { color: var(--ink); font-weight: 600; }
/* Fixed wears the green, as in the app. */
.ptrack[data-state="Fixed"] .ptrack-stop.is-on i { background: var(--verdict-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--verdict-ok) 18%, transparent); }
.ptrack[data-state="Fixed"] .ptrack-stop.is-on small { color: var(--verdict-ok); }
/* A MOVE this test made (the app's `.ptrack-arrow`): a shaft that thickens and darkens from the
   stop left toward a head that stops at the dot's halo, in the dot's colour, drawn pointing
   forward and mirrored where the move points back toward Confirmed or the page reads right to
   left. The stops' centres are 7px in from each end. It draws each time its report comes on. */
.ptrack-arrow {
  --c: var(--accent-deep); --gap: 12px; --head: 10px; --shaft: 4px;
  position: absolute; top: 7px; height: 11px; translate: 0 -50%;
  background: linear-gradient(to right, color-mix(in srgb, var(--c) 20%, transparent), var(--c) 70%);
  clip-path: polygon(0 calc(50% - .5px), calc(100% - var(--head)) calc(50% - var(--shaft) / 2),
    calc(100% - var(--head)) 0, 100% 50%, calc(100% - var(--head)) 100%,
    calc(100% - var(--head)) calc(50% + var(--shaft) / 2), 0 calc(50% + .5px));
  inset-inline-start: calc(7px + (100% - 14px) * min(var(--at), var(--from)) / 2);
  width: calc((100% - 14px) * max(var(--at) - var(--from), var(--from) - var(--at)) / 2 - var(--gap));
}
.ptrack[data-back] .ptrack-arrow { margin-inline-start: var(--gap); }
.ptrack[data-back] .ptrack-arrow, [dir="rtl"] .ptrack:not([data-back]) .ptrack-arrow { scale: -1 1; }
[dir="rtl"] .ptrack[data-back] .ptrack-arrow { scale: 1 1; }
.ptrack[data-state="Fixed"] .ptrack-arrow { --c: var(--verdict-ok); }
@media (prefers-reduced-motion: no-preference) {
  .plan-sheet[data-stage="report"] .ptrack[data-moved] .ptrack-arrow { animation: ptrack-arrow .7s cubic-bezier(.22, 1, .36, 1) .45s backwards; }
}
@keyframes ptrack-arrow { from { width: 0; opacity: 0; } }

/* THE SCORE REPORT (the app's MockTestPage report): the estimated score beside each module's
   right answers and its minutes against the time it gives, then the patterns and the compass. */
.plan-report .waters-head { margin-top: 44px; }
/* THE STAGE: the voyage and test 1's report over one another. The one not showing leaves the
   flow, fades and drops away; the stage takes the height of the one showing, eased by site.js,
   so the compass under it slides rather than jumps. */
html.js .plan-stage { position: relative; transition: height .55s cubic-bezier(.22, 1, .36, 1); }
html.js .plan-stage > div { min-width: 0; transition: opacity .45s ease, translate .6s cubic-bezier(.22, 1, .36, 1), visibility .45s; }
html.js .plan-sheet[data-stage="voyage"] .plan-stage-report,
html.js .plan-sheet[data-stage="report"] .plan-stage-voyage { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; translate: 0 16px; pointer-events: none; }
html.js .plan-report > .waters-head:first-child { margin-top: 0; }
.plan-sheet:not([data-compass="plan"]) [data-when="plan"],
.plan-sheet:not([data-compass="test"]) [data-when="test"],
.plan-sheet:not([data-compass="moved"]) [data-when="moved"] { display: none; }
/* The compass's three readings in one place: the plan's (with its second view, the questions
   like the wrong one), the reported test's, and how that test moved the plan's. The reading not
   shown leaves the flow, so the plate takes the height of the one shown (site.js eases it); the
   report's two end on the glimpse of its timing. */
.js .plan-sheet .waters-plate :is(.waters-figure, .waters-list) { position: relative; }
.js .plan-sheet[data-compass="plan"] .waters-plate :is(.cp-rose-test, .cp-test, .cp-rose-moved, .cp-moved, .pace-peek),
.js .plan-sheet[data-compass="test"] .waters-plate :is(.waters-figure > :not(.cp-rose-test), .waters-list > :not(.cp-test)),
.js .plan-sheet[data-compass="moved"] .waters-plate :is(.waters-figure > :not(.cp-rose-moved), .waters-list > :not(.cp-moved)) {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  translate: 0 12px;
  transition: opacity .3s ease, translate .4s ease, visibility 0s .4s;
}
.js .plan-sheet .pace-peek { transition: opacity .45s ease .15s, translate .7s cubic-bezier(.22, 1, .36, 1) .15s; }
.js .waters-plate.is-easing { overflow: hidden; transition: height .55s cubic-bezier(.22, 1, .36, 1); }
/* Off screen the compass turns at once, so the reader who scrolls to it finds it turned. */
.plan-sheet.is-instant .waters-plate, .plan-sheet.is-instant .waters-plate * { transition: none !important; }
/* The report's switch, the app's `.seg-views` in its heading: on the plan's compass it gives way
   to the like view's back button, and on the report's the back button to it. */
.plan-sheet[data-compass="plan"] .waters-head > .seg-views,
.plan-sheet:not([data-compass="plan"]) .like-back { display: none; }
.seg-views { display: inline-flex; flex: none; border: 1px solid var(--line-2); border-radius: 999px; text-transform: none; letter-spacing: var(--track); }
.seg-view { display: inline-flex; align-items: center; padding: 5px 12px; border: 0; border-radius: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg-view:first-child { border-start-start-radius: 999px; border-end-start-radius: 999px; }
.seg-view:last-child { border-start-end-radius: 999px; border-end-end-radius: 999px; }
.seg-view + .seg-view { border-inline-start: 1px solid var(--line-2); }
.seg-view:hover { background: var(--fill); color: var(--ink); }
.seg-view[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg-view:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
/* HOW THE PLAN'S COMPASS MOVED (the app's `.compass.moved`): test 1's shape dotted under the
   plan's, each axis that moved banded between its two levels, and each row's change in points,
   green where it rose and red where it fell. */
/* Without script there is no switch, and the change only repeats the plan's numbers. */
html:not(.js) :is(.cp-rose-moved, .cp-moved) { display: none; }
.cp-poly.was { fill: none; stroke: var(--faint); stroke-width: 1.4; stroke-dasharray: 3 3; }
.cp-band { stroke: none; }
.cp-band.up { fill: color-mix(in srgb, var(--verdict-ok) 38%, transparent); }
.cp-band.down { fill: color-mix(in srgb, var(--verdict-no) 34%, transparent); }
.cp-moved-note { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.cp-change { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.cp-change.up { color: var(--verdict-ok); }
.cp-change.down { color: var(--verdict-no); }
/* The reported test's reading, the app's sitting compass: the rose in ink, each bar right, wrong
   and not answered (`--verdict-no`, the app's `--red`). */
.cp-rose-test .cp-poly { fill: color-mix(in srgb, var(--ink) 9%, transparent); stroke: var(--ink); }
.cp-rose-test .cp-dot { fill: var(--ink); }
.depth.tally { display: flex; }
.depth.tally > span { height: 100%; }
.tally-right { background: var(--ink); }
.tally-wrong { background: var(--verdict-no); }
.tally-blank, .tally-key > .tally-blank::before { background: repeating-linear-gradient(-45deg, var(--verdict-no) 0 2px, color-mix(in srgb, var(--verdict-no) 22%, transparent) 2px 4px); }
.tally-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.tally-key > span { display: inline-flex; align-items: center; gap: 6px; background: none; }
.tally-key > span::before { content: ""; width: 14px; height: 6px; border-radius: 999px; }
.tally-key > .tally-right::before { background: var(--ink); }
.tally-key > .tally-wrong::before { background: var(--verdict-no); }
/* The report's next part, glimpsed under test 1's compass: the app's "Time by skill" head, key
   and slowest rows (`SkillPace.tsx`), fading out, so the reader sees the report goes on. */
.pace-peek { -webkit-mask-image: linear-gradient(#000 55%, transparent 98%); mask-image: linear-gradient(#000 55%, transparent 98%); }
.pace-peek .waters-head :is(svg, .hb-ic) { width: 18px; height: 18px; }
.pace-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.pace-key span { display: inline-flex; align-items: center; gap: 7px; }
.pace-key-fill { width: 18px; height: 6px; border-radius: 999px; background: var(--voyage-water); }
.pace-key-mark { width: 2px; height: 14px; background: var(--ink); }
.pace-rows { display: grid; grid-template-columns: minmax(7rem, 15rem) minmax(5rem, 1fr) auto auto; column-gap: 14px; margin: 0; padding: 0; list-style: none; }
.pace-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; grid-template-areas: "name track time band"; align-items: center; row-gap: 6px; padding: 8px 4px; border-bottom: 1px dotted #c3d2dc; font-size: 13px; }
.pace-name { grid-area: name; min-width: 0; }
.pace-track { grid-area: track; position: relative; height: 6px; border-radius: 999px; background: var(--sea); }
.pace-fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; background: var(--voyage-water); }
.pace-row.slow .pace-fill { background: var(--amber); }
.pace-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-inline-start: -1px; background: var(--ink); }
.pace-time { grid-area: time; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.pace-time small { color: var(--muted); font-size: 12px; font-weight: 400; }
.pace-band { grid-area: band; color: var(--muted); font-size: 12px; text-align: end; }
.pace-row.slow .pace-band { color: var(--amber); font-weight: 600; }
/* As the app's (App.css): on a phone each row is two lines, the name over its track. */
@media (max-width: 560px) {
  .pace-rows { grid-template-columns: 1fr auto; }
  .pace-row { grid-template-areas: "name time" "track band"; }
}
[data-when] { display: contents; }
@media (prefers-reduced-motion: reduce) { html.js :is(.plan-stage, .plan-stage > div) { transition: none; } }
/* The app's back arrow: an ink disc with a white chevron. */
.plan-back {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-inline-end: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
.plan-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .plan-back svg { scale: -1 1; }
.plan-back:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
html:not(.js) .plan-back { display: none; }
.rp-of { color: var(--muted); font-size: 12px; }
.rp-head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; align-items: start; }
.rp-total { display: grid; justify-items: center; gap: 6px; padding: 26px 12px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, var(--white), var(--sea)); }
.rp-total strong { font-size: 46px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rp-total small { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.rp-section + .rp-section { margin-top: 16px; }
.rp-name { margin: 0 0 2px; font-size: 13px; font-weight: 650; }
.rp-row {
  display: grid;
  grid-template-columns: 150px minmax(50px, 1fr) 46px minmax(50px, 1fr) 96px 48px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dotted var(--line);
  font-size: 13px;
}
.rp-mod { display: flex; align-items: center; gap: 8px; }
/* A section sat as one module is its own row, named in the section heads' weight, as the app's (`tbody.solo`). */
.rp-section.solo .rp-mod { font-weight: 650; }
.rp-harder { padding: 1px 8px; border-radius: 999px; background: var(--sea); color: var(--navy-2); font-size: 11px; font-weight: 600; }
.rp-bar { height: 5px; overflow: hidden; border-radius: 3px; background: #dbe5eb; }
.rp-bar i { display: block; height: 100%; background: var(--navy-2); }
.rp-time i { background: var(--water-hi); opacity: .7; }
.rp-time.is-out i { background: var(--accent-deep); opacity: 1; }
.rp-n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-score { font-size: 16px; font-weight: 650; text-align: end; font-variant-numeric: tabular-nums; }
.prows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.prow {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 220px;
  align-items: start;
  gap: 18px;
  padding: 16px 22px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.prow-body { min-width: 0; }
.prow.is-confirmed { border-inline-start: 4px solid var(--accent-deep); background: color-mix(in srgb, var(--accent-deep) 3%, var(--white)); }
.prow-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sea); color: var(--navy-2); }
.prow.is-confirmed .prow-ic { background: var(--accent-deep); color: var(--white); }
.prow.is-fixed .prow-ic { background: color-mix(in srgb, var(--verdict-ok) 12%, var(--white)); color: var(--verdict-ok); }
.prow-ic :is(svg, .hb-ic) { width: 16px; height: 16px; }
.prow-title { margin: 0; font-size: 14px; line-height: 1.35; }
.prow-title strong { font-weight: 650; }
/* Beside the title, the track with the kind and how often under it: how sure the verdict is. */
.prow-side { display: grid; gap: 10px; padding-top: 3px; }
.prow-kind { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
/* The stop's name beside a small track, for a phone, where the labelled track does not fit. */
.prow-state { display: none; }
.prow-say { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.prow-plan { display: flex; align-items: flex-start; gap: 7px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.prow-plan .hb-ic { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--accent-deep); }
.pq { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 9px 0 0; font-size: 11.5px; }
.pq-group { display: flex; align-items: center; gap: 4px; }
.pq-where { margin-inline-end: 3px; color: var(--muted); }
.problem-num { padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--accent-deep) 11%, var(--white)); color: var(--accent-deep); font-weight: 650; }

/* ------------------------------------------------ the questions that ask the same thing
   The map where the rose was, the cards where the rows were. A card and its dot are one
   node: they light together and open together. */
.like-map { position: relative; margin: 0; }
.like-cards { display: grid; gap: 12px; align-content: center; perspective: 900px; }
/* The cards rise out of the plate one after another as the view opens. */
.js .like-card {
  --rise: calc(.25s + var(--i) * 90ms);
  transition: border-color .2s, box-shadow .2s, transform .2s, opacity .45s ease var(--rise), translate .7s cubic-bezier(.22, 1, .36, 1) var(--rise), rotate .7s cubic-bezier(.22, 1, .36, 1) var(--rise);
}
.js .waters-plate[data-view="compass"] .like-card { --rise: 0s; opacity: 0; translate: 0 18px -60px; rotate: x 14deg; }
@media (prefers-reduced-motion: reduce) {
  .js :is(.waters-figure, .waters-list) > *, .js .like-card, .cp-cursor { transition: none; }
}
.near-map { display: block; width: 100%; height: auto; }
.like-dot {
  position: absolute;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.like-dot:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: -4px; }
.like-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.like-card.seed { border-color: var(--accent); }
.like-card.near { border-color: var(--navy-2); }
.like-card.is-active { border-color: var(--ink); box-shadow: 0 14px 28px -20px rgba(20, 32, 43, 0.55); transform: translateY(-2px); }
.like-head {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: 0;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.like-head > span:last-child { min-width: 0; }
.like-marker {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--navy-2);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}
.like-card.seed .like-marker { background: var(--accent); }
.like-tag {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
/* Two lines at rest; the whole question when opened. */
.like-snip {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.5;
}
.like-full { display: none; font-size: 13.5px; line-height: 1.5; }
.like-head[data-open="true"] .like-snip { display: none; }
.like-head[data-open="true"] .like-full { display: block; }
.like-seed-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px 50px;
}
.like-meta { font-size: 11px; color: var(--muted); }
.like-verb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
}
.like-verb .hb-ic { width: 14px; height: 14px; }
.nm-ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.nm-far { fill: #c2ccd3; }
.nm-link { stroke: var(--navy-2); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: 0.5; }
.nm-near { fill: var(--navy-2); transition: r 0.2s; }
.nm-near.is-active { r: 12; }
.nm-self.is-active { r: 13; }
.nm-halo { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.45; }
.nm-self { fill: var(--accent); transition: r 0.2s; }
/* Motion reports an event, and the event is the section arriving: the neighbourhood
   settles around the missed question rather than being drawn already settled. */
.lit [data-view="like"] :is(.nm-far, .nm-near) {
  transform-box: view-box;
  transform-origin: 150px 130px;
  animation: nm-settle 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes nm-settle { from { transform: scale(1.55); opacity: 0; } }
.lit .nm-halo { animation: nm-pulse 3.4s ease-in-out 1.1s infinite; }
@keyframes nm-pulse {
  0%, 100% { r: 17; opacity: 0.45; }
  50% { r: 21; opacity: 0.14; }
}

/* ---------------------------------------------------------------- and the rest */
/* Every card at once, in rows: three across on a desktop, two under 1000px, one on a phone. */
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.more-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px 30px;
  display: grid;
  align-content: start;
  gap: 10px;
}
@media (max-width: 1000px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
}
.more-item strong {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.more-item p {
  margin: 0;
  font-size: var(--text);
  line-height: 1.55;
  color: var(--muted);
}
/* Each row's symbol does what it does in the platform when the ROW is hovered (App.css,
   the icon line's part machinery): the day fills, the ribbon marks a place, the compass
   needle swings, the wake runs astern, the rule walks, the book opens, the bookmark
   keeps the question in clay, the lesson's arrow reaches out. At rest nothing moves: the
   section's ambient loops (`.lit`) would keep the compass going on its own. The reset
   ties with those loops on specificity, so it has to stay below them. */
.more-grid .more-item .hb-ic * { animation: none; }
.more-item .hb-ic :is(.al-day, .bm-ribbon) { fill: transparent; }
.more-item .hb-ic :is(.al-day, .lg-ribbon, .sx-needle, .wk-near, .bk-leaf, .bm-ribbon, .ls-out) {
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), fill 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.more-item .hb-ic .bk-leaf { transform-box: fill-box; transform-origin: center; }
.more-item .hb-ic .bk-leaf.l { transform-origin: right center; }
.more-item .hb-ic .bk-leaf.r { transform-origin: left center; }
.more-item .hb-bookmark { transition: color 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
.more-item:hover .hb-ic .al-day { fill: currentColor; }
.more-item:hover .hb-ic .lg-ribbon { transform: translateY(1.6px); }
.more-item:hover .hb-ic .sx-needle { transform: rotate(25deg); }
.more-item:hover .hb-ic .wk-near { transform: translateX(-1.6px); }
.more-item:hover .hb-ic :is(.pr-far, .pr-link) { animation: pr-walk 1.5s ease-in-out infinite; }
.more-item:hover .hb-ic .bk-leaf.l { transform: rotate(-13deg); }
.more-item:hover .hb-ic .bk-leaf.r { transform: rotate(13deg); }
.more-item:hover .hb-bookmark { color: var(--accent-deep); }
.more-item:hover .hb-ic .bm-ribbon { transform: translateY(1.4px); fill: currentColor; }
.more-item:hover .hb-ic .ls-out { transform: translate(1.4px, -1.4px); }
@keyframes pr-walk {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.7px, -1.5px); }
}

/* ------------------------------------------------------------------------- the footer */
.footer {
  background: var(--navy);
  color: var(--white);
  margin-top: 60px;
}
.footer-grid {
  width: min(var(--page-max), calc(100% - 100px));
  margin: auto;
  padding: 72px 0 46px;
  display: grid;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  gap: 44px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  margin: 16px 0 0;
}
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.footer-socials > a {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
}
.footer-socials svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact a {
  color: inherit;
}
.footer-contact a:hover {
  color: var(--white);
}
.registered-mark {
  margin-left: 0.08em;
  font-size: 0.58em;
  line-height: 0;
  vertical-align: super;
}
.footer .platform-logo {
  filter: invert(1);
}
.footer nav {
  display: grid;
  align-content: start;
  gap: 9px;
  margin-left: 0;
  font-size: 13px;
}
.footer nav a {
  color: rgba(255, 255, 255, 0.72);
}
.footer nav a:hover {
  color: var(--accent-soft);
}
.footer-head {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 5px;
}
.footer-disclaimer,
.footer-bottom {
  width: min(var(--page-max), calc(100% - 100px));
  margin: auto;
  border-top: 1px dotted rgba(255, 255, 255, 0.2);
}
.footer-disclaimer {
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: rgba(255, 255, 255, 0.48);
}
.footer-disclaimer p {
  max-width: 74ch;
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}
.footer-bottom {
  padding: 20px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  align-items: baseline;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom > span {
  margin-right: auto;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: inherit;
}
.footer-bottom nav a,
.footer-bottom > a {
  color: inherit;
}
.footer-bottom nav a:hover,
.footer-bottom > a:hover {
  color: var(--accent-soft);
}

/* ------------------------------------------------------------------- cookie bar */
/* A card in the corner rather than a band across the page, so the page stays usable while it
   waits for an answer. Decline and Accept are the same size. */
.cookie-bar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: min(430px, calc(100% - 32px));
  padding: 22px 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(16, 32, 43, 0.16);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.cookie-bar p {
  margin: 0;
}
.cookie-bar a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar a:hover {
  color: var(--accent-deep);
}
.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.cookie-actions .button {
  padding: 10px 20px;
  font-size: 13px;
}
@media (max-width: 560px) {
  .cookie-bar {
    right: 16px;
    bottom: 16px;
    padding: 18px 18px 16px;
  }
}

/* ------------------------------------------------------------------- mission page */
.mission-page {
  overflow: hidden;
}
.mission-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(48px, calc(7vw / var(--zoom)), 110px);
  align-items: center;
  padding-top: 70px;
}
.mission-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, calc(6vw / var(--zoom)), 86px);
  line-height: 0.96;
}
.mission-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.mission-collage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 70px -42px rgba(16, 32, 43, 0.7);
}
.mission-collage img:first-child {
  grid-column: 1 / -1;
}
.mission-intro,
.mission-parent {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(50px, calc(9vw / var(--zoom)), 140px);
  align-items: start;
  border-top: 1px dotted var(--line);
}
.mission-intro h2,
.mission-parent h2,
.mission-values > header h2 {
  margin-top: 12px;
}
.mission-copy,
.mission-parent > div:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}
.mission-values {
  padding-top: 30px;
}
.mission-values > header {
  max-width: 760px;
  margin-bottom: 50px;
}
.mission-values ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}
.mission-values li {
  min-height: 300px;
  padding: 28px;
  background: var(--white);
}
.mission-values li > span {
  display: block;
  margin-bottom: 48px;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: clamp(48px, calc(4.4vw / var(--zoom)), 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mission-values h3 {
  margin-bottom: 14px;
  font-size: 25px;
}
.mission-values li p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.mission-parent {
  padding-bottom: 20px;
}
.mission-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
/* The pill is built around the compass's 30px gap, and a flex gap would also open between
   the label and its registered mark, which are separate flex items. */
.mission-links .button {
  gap: 0;
}

/* The page ends at the water. The swell is pulled fully into the band rather than hung 72px
   below it, so the navy is water the ship can sit ON instead of a row of crest tips; the
   footer is the same navy, so the two meet with no seam. */
.mission-passage {
  --band-h: 200px;
  /* Where the 180-unit swell's own y=0 lands in the band, with the swell pulled flush to the
     band's floor. Vertical user units ARE pixels: `preserveAspectRatio="none"` stretches the
     swell horizontally only. */
  --swell-y: calc(var(--band-h) - 180px);
  --ship-h: 72px;
  /* The glyph's hull bottom sits at 16.2 of its 20-unit box (`hb-ship`, icons.tsx), which is
     where the ship's waterline is in its own height. */
  --waterline: 0.81;
  margin-top: 0;
}
/* Held above `.sea-passage .swell`'s own inset, which is declared further down the file. */
.sea-passage.mission-passage .swell {
  inset: auto auto 0 0;
}
/* The water IS the join here, so neither the footer's gap nor its dotted rule is wanted:
   both drew a line across the one place the page is meant to read as continuous. */
.mission-page + .footer {
  margin-top: 0;
  border-top: 0;
}
/* A passage draws its wake where the water ENDS and the next white section begins. This one
   ends in the footer, which is the same navy, so the lines would only draw a rule across the
   join the band exists to remove. */
.mission-passage .wake-lines {
  display: none;
}
/* THE SHIP IS CARRIED BY THE SWELL, and holds its place on screen while it is. The sail is
   the swell's own width and drifts the same width in the same time; the hold is half of it
   and carries the ship back exactly that far, so the two cancel and the water passing under
   the ship is the water it rides. Seat, rise and period are all SOLVED in `sea.mjs` from the
   same wave the path is drawn from - a literal here is a second copy of it nobody compares. */
.mission-sail {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* The same as `.sea-passage .swell`, or the ship crosses at a different speed to its wave. */
  width: max(200%, 1600px);
  max-width: none;
  pointer-events: none;
  animation: drift var(--swell-s) linear infinite;
}
.mission-hold {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  animation: mission-hold var(--swell-s) linear infinite;
}
@keyframes mission-hold {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.mission-ship {
  position: absolute;
  left: var(--x0);
  top: calc(var(--swell-y) + var(--seat) - var(--ship-h) * var(--waterline));
  width: var(--ship-h);
  height: var(--ship-h);
  margin-left: calc(var(--ship-h) / -2);
  /* The front wave rises as the band crosses the viewport, and a ship that ignored that sat
     under its own water. Same rule as the institution row's `--wave-lift`. */
  translate: 0 calc(var(--passage, 0) * var(--lift-front));
  /* It crosses two grounds - the pale sea above the navy's crest, and the navy itself - so
     it is a white hull outlined in the water's own ink, which reads on both. */
  color: var(--navy);
  filter: drop-shadow(0 3px 4px rgba(16, 32, 43, 0.25));
  animation: mission-ride var(--ride-s) ease-in-out infinite;
}
/* THE PITCH IS A SEPARATE ANIMATION ON A SEPARATE ELEMENT, and has to stay that way. Each
   keyframe segment carries its own easing, so pitch stops at the quarter points re-ease the
   RIDE either side of them and pull it off the parabola - measured 5.4px off the surface
   when the two shared one keyframe, against under 1px apart. It also leaves the ship's own
   box unrotated, which is what lets a check read its waterline straight off. */
.mission-ship .hb-ic {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% calc(var(--waterline) * 100%);
  animation: mission-pitch var(--ride-s) ease-in-out infinite;
}
.mission-ship .sh-sail,
.mission-ship .sh-hull {
  fill: var(--white);
}
/* The glyph carries its own scrap of water. This one is on the real thing. */
.mission-ship .sh-wave {
  display: none;
}
/* Crest to trough and back, in the time the swell carries one wavelength past. The eased
   half-cycle stands in for the quarter-turn's parabola, and keeping it to three stops is
   what makes it fit: it tracks the drawn surface to under a pixel. */
@keyframes mission-ride {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--ride)); }
}
/* The pitch follows the surface's SLOPE, not its height: level on the crest and in the
   trough, steepest between the two, bow down on the way in and bow up on the way out. */
@keyframes mission-pitch {
  0%, 50%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}
/* One crest is chosen for where it puts the ship across the page; a phone is narrower than a
   wavelength, so it takes the crest before it. Both are crests, so the seat is the same. */
.mission-ship-narrow {
  display: none;
}

/* -------------------------------------------------------------------- the legal pages */
.legal-page {
  font-size: var(--text);
  max-width: 76ch;
  padding-top: 60px;
}
.legal-page h1 {
  font-size: clamp(38px, calc(4.3vw / var(--zoom)), 58px);
  line-height: 1.04;
}
.legal-page h2 {
  font-size: 22px;
  margin: 44px 0 12px;
}
.legal-page p {
  color: var(--muted);
}
.legal-page a {
  border-bottom: 1px solid var(--accent-deep);
}
.legal-rows {
  margin: 34px 0 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.legal-rows > div {
  background: var(--white);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 14px 0;
}
.legal-rows dt {
  font-size: 12px;
  color: var(--muted);
}
/* A page that is rows alone (the imprint, the contact page) gives the heading more room. */
.legal-page h1 + .legal-rows {
  margin-top: 56px;
}
/* The contact page's labels stand behind the footer's marks. */
.contact-rows dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.contact-rows svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink);
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-faq {
  margin-top: 32px;
}
.legal-rows dd {
  margin: 0;
  line-height: 1.55;
}
/* The written pages (privacy, terms) are prose rather than rows: a lede, lists that read
   like the paragraphs around them, and one block quoting a form the reader may copy. */
.legal-lede {
  margin-bottom: 30px;
}
.legal-page ul {
  color: var(--muted);
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-page li {
  margin: 7px 0;
  line-height: 1.55;
}
.legal-page .legal-rows {
  margin-bottom: 10px;
}
.legal-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}



.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------- which exam you sit */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.choice-card:hover { transform: translateY(-3px); border-color: #b6c3cc; }
.choice-card input {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 29px;
  height: 29px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-mark {
  pointer-events: none;
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.choice-mark::after {
  content: "";
  position: absolute;
  inset: 5px 4px 6px;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
}
.choice-card:has(input:checked) {
  border-color: var(--navy);
  background: var(--sea);
}
.choice-card:has(input:checked) .choice-mark {
  background: var(--navy);
  border-color: var(--navy);
}
.choice-card:has(input:checked) .choice-mark::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}
.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--accent-deep);
  outline-offset: 4px;
}
.choice-body { display: grid; align-content: start; gap: 7px; flex: 1; }
.choice-marker {
  min-height: 30px;
  margin-bottom: 9px;
  font-size: 27px;
  line-height: 30px;
}
.choice-body b {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.choice-body small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}
.choice-body em {
  margin-top: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--navy);
  border-top: 1px dotted var(--line);
  padding-top: 10px;
  margin-top: 5px;
}
/* The boards of an exam set per board, side by side, each with the subjects it is set for. */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.board-card {
  padding: 26px 26px 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 10px;
  background: var(--white);
}
.board-card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.board-card > p { margin: 6px 0 20px; font-size: 13px; color: var(--muted); }
.board-card > p small { display: block; margin-top: 2px; font-size: 11px; }
.board-subjects { margin: 0; padding: 0; list-style: none; border-top: 1px dotted var(--line); }
.board-subjects li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14px;
}
.board-subjects li:last-child { border-bottom: 0; }
.board-subjects small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.board-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.board-brief {
  display: none;
  max-width: 560px;
  padding: 6px 20px 8px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 10px;
  background: var(--white);
}
.board-names { margin: 0; padding: 0; list-style: none; }
.board-names li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 11px 0;
  border-bottom: 1px dotted var(--line);
}
.board-names strong { font-size: 16px; font-weight: 600; }
.board-names span { font-size: 12px; color: var(--muted); }
.board-names li:last-child { border-bottom: 0; }
.board-brief .board-subjects { margin: 8px -20px 0; padding: 4px 20px 0; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------- narrow widths
   Grid tracks default to min-content, so a long label in a fixed column count pushes the
   whole page sideways. Every new grid collapses, and `min-width: 0` stops a track from
   being sized by its longest word. */
.more-item,
.footer nav {
  min-width: 0;
}
/* The sections added by the exam-tailored page, brought down to one column. */
@media (max-width: 1000px) {
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { display: none; }
  .board-brief { display: block; }
  .waters-body { grid-template-columns: minmax(0, 1fr); gap: 30px; justify-items: center; }
  .waters-figure { width: 100%; max-width: 270px; }
  .waters-list { width: 100%; }
}
/* On the narrowest phones a long domain name and a long Practice label do not share a row:
   the button goes under the name. */
@media (max-width: 380px) {
  .cp-row:has(.cp-practise) { flex-wrap: wrap; row-gap: 6px; }
  .cp-row:has(.cp-practise) .cp-name { flex-basis: 0; }
  .cp-verb:has(.cp-practise) { order: 3; flex-basis: 100%; justify-content: flex-start; padding-inline-start: 26px; }
}
/* Under the sheet's padding the route is wider than its board up to here, so it says it scrolls. */
@media (max-width: 850px) {
  .plan-swipe {
    display: block;
    margin: 0;
    padding: 11px 16px 0;
    color: var(--muted);
    font-size: 10px;
    text-align: end;
  }
}
@media (max-width: 1000px) {
  .plan-sheet { padding: 24px 22px 28px; }
  /* The module rows need the sheet's width: the score goes over them, as one line. */
  .rp-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rp-total { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 12px; padding: 14px 18px; }
}
@media (max-width: 620px) {
  .waters-figure { max-width: 210px; }
  .waters-plate .near-extra { display: none; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-sheet { padding: 20px 14px 24px; }
  /* A long title and its aside (a language's "Full-length test 2") wrap rather than run off the sheet. */
  .waters-head { flex-wrap: wrap; row-gap: 6px; margin-top: 36px; }
  /* The report's switch takes a line of its own under the title, its halves sharing it. */
  .waters-head:has(> .seg-views) { row-gap: 10px; }
  .waters-head > .seg-views { flex-basis: 100%; }
  .waters-head .seg-view { flex: 1; justify-content: center; min-height: 44px; padding-inline: 8px; }
  /* The depth track is the first thing to go: a row must fit its name and its number. */
  .cp-row { gap: 8px; font-size: 13px; }
  .cp-verb:empty { display: none; }
  .cp-rows .depth { display: none; }
  .cp-pct { width: 40px; }
  /* The control goes before the percent, so every percent ends on one line. */
  .cp-verb { width: auto; order: 1; }
  .cp-pct { order: 2; }
  .plan-sheet-hd { font-size: 17px; }
  .plan-ready { max-width: 100%; font-size: 13px; }
  .plan-board-head { flex-direction: column; align-items: stretch; padding: 12px 12px 0; }
  .pbox { width: 100%; }
  .plan-aim { padding: 0 14px; }
  .plan-aim-cloth small { display: none; }
  .rp-row { grid-template-columns: minmax(0, 1fr) auto auto 40px; gap: 10px; }
  .rp-bar { display: none; }
  /* A pattern is its name, what was measured, where it stands and its kind, so the report is
     about as tall as the voyage it turns from. The fix, the plan's answer and the questions wait
     for the wider row. */
  .prows { gap: 8px; }
  .prow { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
  .prow-ic { width: 28px; height: 28px; }
  .prow-ic :is(svg, .hb-ic) { width: 14px; height: 14px; }
  :is(.prow-next, .prow-plan, .pq, .prow-side .ptrack-stop small) { display: none; }
  .prow-side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding-top: 0; }
  .prow-kind { flex-basis: 100%; text-align: start; }
  .prow-side > .ptrack { width: 64px; }
  .prow-side > .ptrack .ptrack-arrow { --gap: 9px; --head: 6px; --shaft: 2.5px; height: 7px; }
  .prow-state { display: inline; color: var(--ink); font-size: 12px; font-weight: 600; }
  .plan-test-card[class*="at-"] {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 0 16px 16px;
  }
  .plan-test-card::after { display: none; }
}
@media (max-width: 1150px) {
  .footer-grid {
    grid-template-columns: 1.35fr repeat(4, 1fr);
    gap: 30px;
  }
  .mission-values ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px;
    padding-top: 56px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-disclaimer { grid-template-columns: 1fr; }
  .mission-hero,
  .mission-intro,
  .mission-parent { grid-template-columns: minmax(0, 1fr); }
  .mission-collage { order: -1; }
}
@media (max-width: 600px) {
  .footer {
    padding-inline: 0;
  }
  .footer-grid {
    width: min(100% - 40px, 1280px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
    padding: 46px 0 34px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .more-item {
    padding: 22px 20px 24px;
  }
  .results-marquee,
  .institutions-marquee {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent);
  }
  .legal-rows > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .footer-disclaimer,
  .footer-bottom { width: min(100% - 40px, 1280px); }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .mission-hero { padding-top: 38px; }
  .mission-hero h1 { font-size: clamp(42px, calc(13.5vw / var(--zoom)), 62px); }
  .mission-copy,
  .mission-parent > div:last-child { font-size: var(--text); }
  .mission-values ol { grid-template-columns: minmax(0, 1fr); }
  .mission-values li { min-height: 0; }
  .mission-values li > span { margin-bottom: 28px; }
  .mission-links .button { flex: 1 1 100%; }
  /* The swell is clamped to 1600px here, so a phone shows barely half a wavelength and the
     chosen crest is off the screen to the right. The one before it is not. */
  .mission-passage { --band-h: 150px; --ship-h: 44px; }
  .mission-ship { display: none; }
  .mission-ship-narrow { display: block; }
}

/* --------------------------------------------------------------- reading without JS */
/* The marquee is pure CSS, so it runs without script; what it must not do is go on
   sliding half of itself out of a clipped box with the duplicate copy still in the row. */
/* The tracks stop dead under reduced motion, so the set past the fold needs another way
   out: the row scrolls by hand and the decorative second copy goes, or half of it is
   unreachable inside `overflow: hidden`. This sits DOWN HERE, not next to the marquees and
   not in the global reduced-motion block, because it has to outrank two things declared
   later than both: the base masks and the narrow-screen mask overrides above. Declared
   beside the marquees it silently kept the mask on at phone widths. */
@media (prefers-reduced-motion: reduce) {
  .results-marquee,
  .institutions-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .results-track > [aria-hidden="true"],
  .institutions-track > [aria-hidden="true"] {
    display: none;
  }
  .results-marquee,
  .institutions-marquee {
    overflow-x: auto;
  }
}
html:not(.js) .results-track,
html:not(.js) .institutions-track,
/* The row's water stops with it, or the marks are seated on a surface that has moved on
   without them. Same reason the focus rule pauses both. */
html:not(.js) .has-institutions .swell-back,
html:not(.js) .has-institutions .swell-front {
  animation: none;
}
html:not(.js) .results-track > [aria-hidden="true"],
html:not(.js) .institutions-track > [aria-hidden="true"] {
  display: none;
}
html:not(.js) .results-marquee,
html:not(.js) .institutions-marquee {
  -webkit-mask-image: none;
  mask-image: none;
}
html:not(.js) .results-marquee,
html:not(.js) .institutions-marquee {
  overflow-x: auto;
}
/* The handwriting flow: the platform's test page, playing its four steps by itself while
   it is on screen; pressing a stop goes straight to it (site.js). What a frame has not
   reached is hidden by SCRIPT only: without it every step shows finished. */
.flow-stage { display: flex; flex-direction: column; }
/* `--bar-h` is the window's top strip, the switch's (`.flow-bar`), added so the window keeps its size. */
.js .flow-stage { --bar-h: 64px; height: calc(calc(100svh / var(--zoom)) - var(--header-h, 63px) + 78px + var(--bar-h)); max-height: calc(1220px + var(--bar-h)); }
.flow-stage > .section-head { flex: none; margin-bottom: clamp(20px, calc(3.5vh / var(--zoom)), 44px); }

/* THE TWO MODES in the window's top strip, where the app keeps its switch (WorkingModeSwitch on
   a question's top bar): one pill of two, the place in use filled ink, each with its symbol.
   The landing names them, since a visitor has not learnt the symbols yet. The flow plays one
   mode, then the other. What one mode alone shows carries `data-mode-only`. */
.flow[data-mode="paper"] [data-mode-only="board"], .flow[data-mode="board"] [data-mode-only="paper"] { display: none; }
.js .flow-scene { display: flex; flex-direction: column; }
.flow-bar { flex: none; display: flex; justify-content: flex-end; align-items: center; height: var(--bar-h); padding: 0 12px; border: 1px solid var(--line); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); border-radius: 16px 16px 0 0; background: var(--white); }
.flow-bar + .flow-app { border-top: 0; border-radius: 0 0 16px 16px; }
.js .flow-bar + .flow-app { flex: 1; min-height: 0; height: auto; }
html:not(.js) .flow-bar { display: none; }
html:not(.js) .flow-bar + .flow-app { border-top: 1px solid var(--line); border-radius: 16px; }
.modes-tabs { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--edge); border-radius: 999px; background: var(--white); box-shadow: 0 2px 10px rgb(16 32 43 / .08); }
.mode-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; font: inherit; color: var(--ink); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.mode-tab strong { font-size: 15px; font-weight: 600; line-height: 1; }
.mode-tab small { display: none; }
.mode-tab > .ap-glyph { width: 16px; height: 16px; color: currentColor; }
.mode-tab[aria-selected="true"] { color: var(--white); background: var(--ink); }
.mode-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .mode-tab:not([aria-selected="true"]):hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } }

/* The rail, under the window, drawn as the study plan's route (`.plan-route`): navy
   behind the boat, dotted ahead, white marks on the swell. The live stop is the one in
   focus: larger, filled, with the plan's orange halo, and each stop takes it as the boat
   arrives. With script the rail runs the width of the screen: site.js places the stops
   along it by how long each step plays, draws the swell through them, and sails the boat
   at one steady speed from stop one off the screen's right edge and round from the left
   (`--boat-x`, `--boat-y`), passing behind the marks. The sailed line is the stretch
   `--route-from` to `--route-to` plus a lead-in from the left edge to `--route-lead`: it
   follows the boat from stop one, from the edge once the boat has come round, and while it
   comes round the lap just sailed stays beside the lead-in. */
.flow-rail { position: relative; flex: none; width: min(100%, 880px); margin: 0 auto clamp(8px, calc(1vh / var(--zoom)), 14px); --route-top: 12px; --route-h: 64px; --boat-x: 0px; --boat-y: 0px; --route-lead: 0px; --route-from: 0px; --route-to: 0px; }
/* Tall enough for the lowest stop's label and hint, which hang over the window otherwise. */
.js .flow-rail { width: var(--page-w, calc(100vw / var(--zoom))); margin-inline: calc(50% - var(--page-w, calc(100vw / var(--zoom))) / 2); overflow-x: clip; height: calc(var(--route-top) + var(--route-h) + 56px); }
.flow-route { position: absolute; left: 0; top: var(--route-top); width: 100%; height: var(--route-h); overflow: visible; }
html:not(.js) .flow-route { display: none; }
.flow-route path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flow-route-ahead path { stroke: #9fb5c3; stroke-width: 1.5; stroke-dasharray: 2 7; }
.flow-route-done { clip-path: polygon(0 -20px, var(--route-lead) -20px, var(--route-lead) calc(100% + 20px), var(--route-from) calc(100% + 20px), var(--route-from) -20px, var(--route-to) -20px, var(--route-to) calc(100% + 20px), 0 calc(100% + 20px)); }
.flow-route-done path { stroke: var(--navy-2); stroke-width: 2; }
.flow-rail ol { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.flow-stop { display: grid; justify-items: center; padding-top: calc(var(--route-top) + var(--y) * var(--route-h) / 100 - 18px); }
.js .flow-rail ol { position: absolute; inset: 0; display: block; }
.js .flow-stop { position: absolute; top: 0; left: var(--x, 0); width: 210px; translate: -50% 0; }
/* site.js nudges a label in from the screen's edge where its stop sits close to it. */
.js .flow-label { position: relative; left: var(--nudge, 0px); }
.flow-stop button { display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--muted); text-align: center; cursor: pointer; }
.flow-stop button:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }
/* Each stop's mark is the step's symbol; its number leads the label. */
.flow-mark > span { display: contents; }
.flow-mark svg { width: 16px; height: 16px; }
/* The marks stand still, as peers, while the boat sails between them. */
.lit .flow-mark :is(.lh-r1, .lh-r2, .lh-lamp) { animation: none; }
.flow-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--navy-2); border-radius: 50%; background: var(--white); color: var(--navy-2); box-shadow: 0 5px 14px -8px rgba(20, 32, 43, .65); transition: scale .5s cubic-bezier(.22, 1, .36, 1), background .4s, color .4s, box-shadow .4s; }
.flow-stop button:hover .flow-mark { box-shadow: 0 8px 20px -10px rgba(20, 32, 43, .75); }
.flow-stop.is-past .flow-mark { background: var(--navy-2); color: var(--white); }
.flow-stop [aria-current] .flow-mark { scale: 1.3; background: var(--navy-2); color: var(--white); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-deep) 16%, transparent), 0 8px 18px -8px rgba(20, 32, 43, .7); }
.flow-label { display: grid; gap: 2px; font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; transition: color .4s, translate .5s cubic-bezier(.22, 1, .36, 1); }
.flow-label small { color: var(--muted); font-size: 12.5px; font-weight: 400; letter-spacing: var(--track); }
.flow-stop button:hover, .flow-stop [aria-current] { color: var(--ink); }
.flow-stop [aria-current] .flow-label { translate: 0 5px; }
.flow-boat { position: absolute; z-index: 0; left: var(--boat-x); top: var(--boat-y); width: 32px; height: 32px; translate: -50% -100%; color: var(--navy-2); pointer-events: none; transition: left .5s cubic-bezier(.22, 1, .36, 1), top .5s cubic-bezier(.22, 1, .36, 1); }
.flow-boat .hb-ic { display: block; width: 32px; height: 32px; translate: 0 -4px; filter: drop-shadow(0 4px 3px rgba(20, 32, 43, .16)); }
.flow-boat::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; translate: -50% 0; border: 2px solid var(--white); border-radius: 50%; background: var(--navy-2); box-shadow: 0 0 0 1px var(--navy-2); }
.flow-route-done { transition: clip-path .5s cubic-bezier(.22, 1, .36, 1); }
.flow-rail.is-sailing :is(.flow-boat, .flow-route-done) { transition: none; }
/* The loop: as the boat comes round to stop one, the window fades; step one is set up
   unseen and fades in. */
.flow-app { transition: opacity .6s cubic-bezier(.22, 1, .36, 1), scale .6s cubic-bezier(.22, 1, .36, 1); }
.js .flow[data-looping] .flow-app { opacity: 0; }
html:not(.js) :is(.flow-boat, .flow-route-done) { display: none; }

/* The scene: the app window, and over it the paper and the phone while step two plays. */
.flow-scene { position: relative; min-width: 0; }
.js .flow-scene { flex: 1; min-height: 0; }
.flow-app { height: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 40px 70px -50px rgba(20,32,43,.45); font-size: 15px; line-height: 1.5; letter-spacing: var(--track); color: var(--ink); text-align: start; }
.js .flow-app { overflow: hidden; }
.flow-doc { position: relative; max-width: 1000px; margin-inline: auto; padding: clamp(24px, calc(3vw / var(--zoom)), 38px); }
.js .flow-doc { padding-bottom: 190px; }
.flow-app .katex { font-size: 1.05em; }
.flow-app p { margin: 0; }
.js .flow[data-mode="paper"][data-frame="1"] .flow-app { opacity: .2; scale: .985; }
/* The board's width keeps the board and its Check in the window: the window is the
   container its height is read from. */
.js .flow-app { container-type: size; }

/* ----------------------------------------------------- the platform, piece by piece
   Each fragment is the platform's own page, drawn with its tokens: ink on white, Inter at
   15px, the marked answer, the outline pills, the rows beside the page.
   `ap-` marks a piece of the app. */
.ap-glyph { width: 1em; height: 1em; flex: none; }
/* The app's `.problem-stem`: the number's pill beside the stem's blocks (`.pc`), in body weight. */
.ap-stem { display: flex; gap: 0.6em; align-items: baseline; font-size: 1.05em; line-height: 1.4; margin-bottom: 0.75em; }
.ap-pc { flex: 1; min-width: 0; }
.ap-pc p { margin: 0 0 0.45em !important; }
.ap-pc p:last-child { margin-bottom: 0 !important; }
.ap-num {
  flex: none; position: relative; top: -0.1em; padding: 0.15em 0.5em; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 0.69em; font-weight: 650; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.ap-chart { display: flex; gap: 0.7em; height: 15em; margin: 1.2em 0 2em; max-width: 30em; }
.ap-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.8em; text-align: end; transform: translateY(0.45em); }
.ap-bars { flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.9em; align-items: end; padding: 0 0.8em; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ap-bars span { position: relative; display: flex; align-items: flex-end; height: 100%; }
.ap-bars i { display: block; width: 100%; height: var(--h); background: #8b8b8b; border: 1px solid var(--ink); transform-origin: bottom; }
.ap-bars b { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; text-align: center; font-size: 0.8em; font-weight: 400; }
/* The app's option rows (`AnswerInput.tsx`, `.answer-sheet .opt`): one per line, the letter in
   its circle; the pick in burgundy until the check marks it right or wrong. */
.ap-options { display: grid; gap: 0.5em; margin: 1.4em 0 0; padding: 0; list-style: none; }
/* Two to a row when every option fits in half, as the app's `OptList` (site.js measures it;
   `.sample-options.pair` is the examples' own). */
.ap-options.pair { grid-template-columns: 1fr 1fr; }
.ap-options li { display: flex; align-items: center; gap: 0.8em; padding: 0.6em 0.9em; border: 1px solid var(--line); border-radius: 0.4em; }
.ap-options b { display: grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border: 1.5px solid var(--edge); border-radius: 50%; font-size: 0.8em; font-weight: 650; }
/* A pick is navy, so the burgundy accent never reads as the vermilion of a wrong answer. */
.ap-options .is-picked { border-color: var(--navy-2); background: color-mix(in srgb, var(--navy-2) 6%, var(--white)); }
.ap-options .is-picked b { border-color: var(--navy-2); background: var(--navy-2); color: var(--white); }
/* The verdict, under a dotted rule, as the checked question carries it. */
/* The question's pills, centred outlines. */
.ap-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7em; margin-top: 1.8em; }
.ap-btn { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.2em; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); font-size: .92em; font-weight: 500; white-space: nowrap; }
/* The pointer: onto "Show your working" (or the board's Check) in step one, onto the finding in step three, onto the mic in step four. */
.ap-cursor { position: absolute; z-index: 3; width: 20px; height: 24px; left: var(--bx, 0); top: var(--by, 0); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.flow:is([data-frame="2"], [data-frame="3"]) .ap-cursor { left: var(--ax, 0); top: var(--ay, 0); }
/* THE FEEDBACK IS A CHAT (App.css `.fb-chat.beside`, `.followups.ask`, `.crew-say`): the
   thread's white tile on the left, its first message the crew member saying the findings
   in their bubble, then what was asked about them, then the composer; the pages on the
   right with what can be done with them in the corner. */
.ap-chat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 1.2em; align-items: start; margin-top: 1em; }
.ap-thread { min-width: 0; padding: .8em .9em .9em; border: 1px solid var(--edge); border-radius: .7em; background: var(--white); box-shadow: 0 1px 2px rgba(20, 32, 43, .06), 0 6px 16px -12px rgba(20, 32, 43, .25); font-size: .92em; }
.ap-say { display: flex; align-items: flex-start; gap: .6em; }
.ap-say .crew { flex: none; width: 40px; height: 42px; }
.ap-bubble { position: relative; flex: 1; min-width: 0; padding: .55em .8em; color: var(--ink); border: 1px solid var(--edge); border-radius: .7em; background: var(--white); box-shadow: 0 10px 24px -14px rgba(20, 32, 43, .4); }
.ap-bubble::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; rotate: 45deg; background: var(--white); border: 1px solid var(--edge); border-top: 0; border-right: 0; }
.ap-fb-hd { display: flex; align-items: baseline; gap: 1em; margin-bottom: .4em; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #6d6d6d; }
.ap-fb-hd span { margin-inline-start: auto; font-size: .78rem; font-weight: 400; letter-spacing: var(--track); text-transform: none; }
/* A finding is the picker for asking about it; the picked one wears an ink rim. */
.ap-row { display: flex; align-items: flex-start; gap: .55em; margin-inline: -.5em; padding: .85em .5em; border-radius: .35em; transition: box-shadow .2s; }
:is(.flow[data-ask="open"], .flow[data-frame="3"], html:not(.js) .flow) .ap-row { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ap-mark { flex: none; display: block; width: 1.4em; height: 1.4em; margin-top: .1em; }
.ap-mark svg { width: 100%; height: 100%; overflow: visible; }
.ap-mark circle { fill: none; stroke: var(--verdict-no-soft); stroke-width: 2.4; }
.ap-mark path { fill: none; stroke: var(--verdict-no); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.ap-reason, .ap-fu-a { flex: 1; min-width: 0; font-size: 1em; line-height: 1.55; }
/* A graph under a reply, as the app's `.tutor-graph`: the plot in its bordered window, the key under it. */
.ap-graph { margin: .6em 0 0; max-width: 19em; }
.ap-graph img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .4em; }
/* Live, the app's own grapher takes the picture's box (site.js), styled as the app's `.grapher`;
   its zoom buttons carry the app's own inline icons. */
.ap-graph.is-live img { display: none; }
.ap-graph-live .grapher { position: relative; aspect-ratio: 384 / 260; border: 1px solid var(--line-2); border-radius: .4em; overflow: hidden; background: var(--surface); }
/* A vertical swipe scrolls the page; the grapher takes the rest (the app's is `none`). */
.ap-graph-live .grapher > canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.ap-graph-live .grapher > canvas:active { cursor: grabbing; }
.ap-graph-live .grapher-zoom { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; gap: 6px; }
.ap-graph-live .grapher-zoom > div { display: flex; flex-direction: column; border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 20, 20, .08); }
.ap-graph-live .grapher-zoom button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: var(--white); color: var(--ink); font: 600 15px/1 system-ui, sans-serif; cursor: pointer; }
.ap-graph-live .grapher-zoom > div > button + button { border-top: 1px solid var(--edge); }
.ap-graph-live .grapher-zoom button:hover { background: var(--fill); }
.ap-graph figcaption { display: flex; flex-wrap: wrap; gap: .25em .9em; margin: .4em 0 0; font-size: .9em; }
.ap-graph figcaption > span { display: inline-flex; align-items: center; gap: .4em; }
.ap-graph figcaption > span > i { flex: none; width: 14px; height: 3px; border-radius: 2px; }
.ap-graph figcaption > .point > i { width: 8px; height: 8px; border-radius: 50%; }
/* A list of points as text, which wraps where its KaTeX could not. */
.ap-graph figcaption > span { min-width: 0; }
.ap-graph-list { font-size: .9em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
/* The point a question is about: the composer's chip, and the same chip over the question. */
.ap-about { display: inline-flex; align-items: center; gap: .3em; padding: .15em .6em; border-radius: 999px; background: #f0f0f0; color: #3d3d3d; font-size: .8em; white-space: nowrap; }
.ap-about-chip { flex: none; padding-inline-end: .35em; color: var(--ink); }
.ap-about-chip b { display: grid; place-items: center; width: 1.3em; height: 1.3em; font-weight: 400; color: #6d6d6d; }
.ap-x { margin-top: .8em; }
.ap-x > .ap-about { margin-bottom: .3em; }
.flow-app .ap-fu-q { margin: 0 0 .35em; color: #6d6d6d; font-style: italic; line-height: 1.5; }
.ap-fu-q .ap-glyph { display: inline; margin-inline-end: .35em; vertical-align: -.1em; }
.ap-typing { display: none; gap: .3em; padding: .35em 0; }
.ap-typing i { width: 7px; height: 7px; border-radius: 50%; background: #6d6d6d; animation: ap-dot 1.2s infinite; }
.ap-typing i:nth-child(2) { animation-delay: .15s; }
.ap-typing i:nth-child(3) { animation-delay: .3s; }
/* The composer: one white bar holding the chip, the field, the mic and the send. */
.ap-compose { display: flex; align-items: center; gap: .35em; margin-top: .8em; padding: .2em .2em .2em .3em; border: 1px solid #c4c4c4; border-radius: 999px; background: var(--white); box-shadow: 0 1px 2px rgba(20, 32, 43, .06); }
.ap-fu-input { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; padding: .3em .55em; font-size: .92em; line-height: 1.4; }
.ap-fu-send { display: grid; place-items: center; flex: none; width: 1.85em; height: 1.85em; border-radius: 50%; background: #f0f0f0; color: #6d6d6d; font-size: .85em; }
.ap-sheet { position: relative; }
.ap-sheet > img { display: block; width: 100%; height: auto; border: 1px solid #d9d9d9; border-radius: 4px; box-shadow: 0 14px 30px -18px rgba(20,32,43,.5); }
/* The board's page: its ink on white, with room under the writing for the corner button. */
.ap-sheet-ink { padding: 5%; border: 1px solid #d9d9d9; border-radius: 4px; background: var(--white); box-shadow: 0 14px 30px -18px rgba(20,32,43,.5); }
.ap-ink-page { position: relative; display: block; }
.ap-ink-page > img { display: block; width: 100%; height: auto; }
.ap-region { position: absolute; border: 2px solid var(--verdict-no); border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
/* "Ask out loud", the app's mic pill (`.ask-mic`): an outline at rest, ink while recording.
   Pressed again, the question stands quoted with the mic and the app's dots while it is
   heard (`.ap-fu-hearing`), then as its transcript (`.ap-fu-heard`). */
.ap-fu-mic { display: inline-flex; align-items: center; gap: .4em; flex: none; padding: .38em .8em; border: 1px solid var(--ink); border-radius: 999px; font-size: .8em; line-height: 1.4; white-space: nowrap; transition: background-color .2s, color .2s; }
.ap-mic-held, .ap-fu-hearing { display: none; }
/* The voice as sound waves beside the recording pill, and in the line while it is heard: navy,
   work in motion, as the app draws them (`AskTutor.tsx::MicWaves`). The app's follow the
   microphone; these cannot hear anyone, so each bar keeps its own uneven rhythm. */
.ap-waves { display: none; align-items: center; gap: 3px; height: 1.4em; }
.ap-waves i { width: 3px; height: 100%; border-radius: 2px; background: var(--navy-2); transform-origin: center; animation: ap-wave .62s ease-in-out calc(var(--i) * -.23s) infinite alternate; }
.ap-waves i:nth-child(2) { animation-duration: .81s; }
.ap-waves i:nth-child(3) { animation-duration: .55s; }
.ap-waves i:nth-child(4) { animation-duration: .93s; }
.ap-waves i:nth-child(5) { animation-duration: .7s; }
@keyframes ap-wave { 0% { transform: scaleY(.2); } 30% { transform: scaleY(.85); } 55% { transform: scaleY(.4); } 80% { transform: scaleY(1); } 100% { transform: scaleY(.3); } }
.flow[data-question="recording"] .ap-compose .ap-waves, .flow[data-question="hearing"] .ap-fu-hearing .ap-waves { display: inline-flex; }
/* Recording, the pill stands flooded with its water running, as the app's `.ask-mic` does. */
.flow[data-question="recording"] .ap-fu-mic { border-color: var(--navy-2); color: var(--white); }
.flow[data-question="recording"] .ap-fu-mic::after { translate: 0 0; animation: water-live 2.4s linear infinite, water-bob 3s ease-in-out .55s infinite; }
.flow[data-question="recording"] .ap-fu-mic::before { opacity: 1; animation: bubbles-rise 2.6s linear infinite; }
.flow[data-question="recording"] .ap-mic-held { display: inline; }
.flow[data-question="recording"] .ap-mic-rest { display: none; }
.flow[data-question="hearing"] .ap-fu-hearing { display: inline-flex; align-items: center; gap: .35em; }
.flow[data-question="hearing"] :is(.ap-fu-heard, .ap-reply) { display: none; }
.ap-dots { display: inline-flex; gap: 3px; }
.ap-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: ap-dot 1s ease-in-out infinite; }
.ap-dots i:nth-child(2) { animation-delay: .15s; }
.ap-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ap-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
/* THE WHITEBOARD (App.css `.wb`): the gridded sheet, the tools floating on it in their
   white pill (the pen on, ink-filled), the ink centred under them and sized to leave the
   board and its Check in the window. Each band of ink is the whole picture clipped to its
   rows; site.js writes a band by opening its clip left to right. */
.ap-board { position: relative; margin-top: 1.4em; }
.ap-wb {
  position: relative; padding: 3.6em 1em 1.2em; border: 1px solid var(--edge); border-radius: .5em;
  background-color: var(--white);
  background-image: linear-gradient(#ececec 1px, transparent 1px), linear-gradient(90deg, #ececec 1px, transparent 1px);
  background-size: 24px 24px;
}
.ap-wb-tools {
  position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: .15em; padding: .2em .3em;
  background: var(--white); border: 1px solid var(--edge); border-radius: 999px; box-shadow: 0 8px 18px -12px rgba(20, 32, 43, .55);
}
.ap-wb-tools b { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: .55em; color: #3d3d3d; font-size: .95em; }
.ap-wb-tools b.on { background: var(--ink); color: var(--white); }
.ap-wb-tools b.off { color: var(--line); }
.ap-wb-tools i { width: 1px; height: 1.3em; margin: 0 .3em; background: var(--line); }
/* --ink-w / --ink-h: the example's ink image (home.mjs), whose shape the board takes. */
.ap-ink { position: relative; width: min(100%, 30em); aspect-ratio: var(--ink-w) / var(--ink-h); margin-inline: auto; }
.js .ap-ink { width: min(100%, 30em, max(13em, calc((100cqh - 13.5em) * var(--ink-w) / var(--ink-h)))); }
.ap-ink > i { position: absolute; inset: 0; background: var(--ink-src) 0 0 / 100% 100% no-repeat; clip-path: inset(var(--t) 0 var(--b) 0); }
.ap-stylus { position: absolute; z-index: 1; left: 0; top: 0; width: 2.6em; height: 2.6em; translate: -8% -92%; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .2)); }
.ap-actions-board { margin-top: 1.1em; }
.ap-btn-go .hb-ic { width: 1.15em; height: 1.15em; }
/* The reading line: a band of the brand's orange sweeping the board from top to foot. */
.ap-scan { position: absolute; left: 0; right: 0; height: 3.2em; top: 0; opacity: 0; pointer-events: none; --scan-top: -1.6em; --scan-end: calc(100% - 5.5em);
  background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 18%, transparent) 45%, color-mix(in srgb, var(--accent) 55%, transparent) 50%, color-mix(in srgb, var(--accent) 18%, transparent) 55%, transparent); }

/* The thinking line: the app's checking wand beside the verbs of a model at work. */
.ap-think { display: none; align-items: center; gap: .55em; height: 2.3em; color: var(--accent-deep); font-size: .9em; }
.ap-think .hb-ic { width: 1.2em; height: 1.2em; animation: think-pulse 1s ease-in-out infinite alternate; }
.ap-think-words { position: relative; display: block; min-width: 18ch; height: 1.5em; }
.ap-think-words > span { position: absolute; inset: 0; opacity: 0; animation: think-word var(--beat) calc(var(--i) * var(--beat)) forwards; }
/* One beat per verb: site.js sets `--beat` so three fill the wait it holds (WAIT_MS). */
@keyframes think-pulse { to { opacity: .5; transform: rotate(12deg); } }
@keyframes think-word { 0% { opacity: 0; } 5%,70% { opacity: 1; } 100% { opacity: 0; } }

/* Paper's step two: the two devices the photo can come from, side by side over the dimmed
   page, each with its name and its way (the phone's camera, the computer's code), then the
   page itself, large, for the phone to photograph.
   Sized in one unit, the smaller of the scene's height and a share of its width, so the
   row fits a wide window and a phone's tall one alike. */
.flow-shoot { position: absolute; inset: 0; z-index: 4; overflow: clip; pointer-events: none; container-type: size; }
.flow-devices { --u: min(1cqh, .7cqw); position: absolute; inset: 0; display: grid; place-items: center; }
/* The devices stand on one line (their frames' bottoms aligned), the row centred. */
/* CHOICES, NOT STEPS: each device on its own tile, the tiles apart, rising together, and
   the phone then PICKED (its ring and tick, the computer dimming) the way an option is
   chosen. One card or a staggered entrance read as a sequence: scan, then photograph. */
.dev-row { position: relative; z-index: 1; display: flex; align-items: stretch; gap: calc(var(--u) * 3); }
.dev {
  position: relative; z-index: 0; margin: 0; display: grid; grid-template-rows: calc(var(--u) * 34) auto;
  justify-items: center; align-items: end; row-gap: calc(var(--u) * 4);
  padding: calc(var(--u) * 3.5) calc(var(--u) * 3.5) calc(var(--u) * 3);
}
/* The tile, its own layer so it can go while the phone stays. */
.dev::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: calc(var(--u) * 2.6); background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 50px -28px rgba(20, 32, 43, .35), 0 0 0 1px rgba(20, 32, 43, .07);
}
/* The pick: the tile's ring and a tick on its corner. */
.dev-pick { position: absolute; inset: 0; border: max(2px, calc(var(--u) * .45)) solid #16324a; border-radius: calc(var(--u) * 2.6); pointer-events: none; }
.dev-pick::after {
  content: ""; position: absolute; top: calc(var(--u) * -2); right: calc(var(--u) * -2);
  width: calc(var(--u) * 4.4); height: calc(var(--u) * 4.4); border-radius: 50%; background: #16324a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 70%; background-position: center; background-repeat: no-repeat;
}
.dev figcaption {
  display: grid; justify-items: center; align-self: start; max-width: calc(var(--u) * 40);
  font-size: max(11px, calc(var(--u) * 2.6)); line-height: 1.3; color: #5c5c5c; text-align: center;
}
.dev figcaption b { color: #141414; font-weight: 650; font-size: 1.1em; }
.dev-frame {
  padding: calc(var(--u) * 1.2); border: 1px solid #3d4145;
  background: linear-gradient(145deg, #33383d 0%, #121416 42%, #070809 100%);
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.dev-screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.dev-page { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #4a4e52; }
.dev-laptop .dev-frame { width: calc(var(--u) * 40); height: calc(var(--u) * 27); border-radius: calc(var(--u) * 1.6) calc(var(--u) * 1.6) 0 0; }
.dev-laptop .dev-screen { border-radius: calc(var(--u) * .6); }
/* The laptop's base: a thin slab wider than the lid. */
.dev-laptop .dev-frame { position: relative; }
.dev-laptop .dev-frame::after {
  content: ""; position: absolute; top: 100%; left: 50%; translate: -50% 0;
  width: calc(var(--u) * 48); height: calc(var(--u) * 2.2); border-radius: 0 0 calc(var(--u) * 1.4) calc(var(--u) * 1.4);
  background: linear-gradient(#d4d7da, #9aa0a6);
}
.dev-qr { display: grid; place-items: center; height: 100%; }
.dev-qr svg { height: 78%; aspect-ratio: 1; fill: #141414; }
.dev-phone .dev-frame { width: calc(var(--u) * 17); height: calc(var(--u) * 34); border-radius: calc(var(--u) * 3); }
.dev-phone .dev-screen { border-radius: calc(var(--u) * 2.1); }
.dev-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
/* The camera's ask until the shutter: a frame for the page, and what to put in it. */
.dev-guide {
  position: absolute; inset: 18% 10% 30%; display: grid; place-items: center; padding: 0 12%;
  text-align: center; font-size: calc(var(--u) * 1.5); line-height: 1.3; font-weight: 600; color: #3a3f44;
  text-shadow: 0 0 calc(var(--u) * .6) #fff, 0 0 calc(var(--u) * .6) #fff;
}
.dev-guide i {
  position: absolute; inset: 0; border: calc(var(--u) * .25) solid #18313f; border-radius: calc(var(--u) * .8);
  -webkit-mask: conic-gradient(at calc(var(--u) * 2.2) calc(var(--u) * 2.2), #0000 75%, #000 0) 0 0 / calc(100% - var(--u) * 2.2) calc(100% - var(--u) * 2.2);
  mask: conic-gradient(at calc(var(--u) * 2.2) calc(var(--u) * 2.2), #0000 75%, #000 0) 0 0 / calc(100% - var(--u) * 2.2) calc(100% - var(--u) * 2.2);
}
/* The camera's bands, as the platform's capture page draws them: which question at the top,
   the shutter's strip at the bottom, ink over the live picture. */
.dev-band { position: absolute; inset-inline: 0; background: color-mix(in srgb, var(--ink) 74%, transparent); color: var(--white); }
.dev-band-top { top: 0; padding: calc(var(--u) * 2.2) calc(var(--u) * 1.4) calc(var(--u) * .8); font-size: calc(var(--u) * 1.3); font-weight: 620; }
.dev-band-bottom { bottom: 0; height: calc(var(--u) * 7.2); }
/* The shot, as the app's strip shows it: a thumbnail beside the shutter. */
.dev-thumb { position: absolute; left: calc(var(--u) * 1.4); bottom: calc(var(--u) * 1.8); width: calc(var(--u) * 2.6); height: calc(var(--u) * 3.5); object-fit: cover; border-radius: calc(var(--u) * .3); box-shadow: 0 0 0 calc(var(--u) * .2) var(--white); }
/* The page on its own, large and centred under the phone, as a sheet on the desk. */
.dev-paper { position: absolute; top: 50%; left: 42%; width: min(64cqw, 64cqh); aspect-ratio: 1086 / 1448; translate: -50% -50%; rotate: -2deg; }
.dev-paper img { display: block; width: 100%; height: 100%; border-radius: 3px; box-shadow: 0 30px 50px -30px rgba(20,32,43,.6), 0 2px 6px rgba(20,32,43,.15); }
.dev-shutter {
  position: absolute; left: 50%; bottom: calc(var(--u) * 1.6); translate: -50% 0;
  width: calc(var(--u) * 4); height: calc(var(--u) * 4); border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 calc(var(--u) * .3) #161616, 0 0 0 calc(var(--u) * .5) #fff;
}

/* ------------------------------------------------ the four steps, keyed on the frame */
/* Step one: the answer, the verdict, then the pointer presses "Show your working".
   `data-live` starts it when the stage is in view. */
/* `data-replay` holds every animation off for one frame so a step played again starts over. */
.flow[data-replay] * { animation: none !important; }
.js .flow[data-frame="0"]:not([data-live]) .ap-actions-ask { opacity: 0; }

/* Unpicked until the step plays; on the board, until the working is written and site.js
   sets `data-picked` as the window goes back up to the options. */
.js .flow[data-frame="0"]:is(:not([data-live]), [data-mode="board"]:not([data-picked])) .ap-options .is-picked { animation: none; border-color: var(--line); background: none; }
.js .flow[data-frame="0"]:is(:not([data-live]), [data-mode="board"]:not([data-picked])) .ap-options .is-picked b { animation: none; border-color: var(--edge); background: none; color: inherit; }
.flow[data-live][data-frame="0"] .ap-options .is-picked { animation: appear-pick .25s .7s both; }
.flow[data-live][data-frame="0"] .ap-options .is-picked b { animation: appear-pick-letter .25s .7s both; }
.flow[data-mode="board"][data-live][data-frame="0"] :is(.ap-options .is-picked, .ap-options .is-picked b) { animation-delay: .45s; }
.flow[data-live][data-frame="0"] .ap-actions-ask { animation: rise-in .45s 1.5s cubic-bezier(.22, 1, .36, 1) both; }
.js .flow:not([data-frame="0"], [data-frame="1"]) .ap-actions-ask,
.js .flow:is([data-frame="0"], [data-frame="1"]) .ap-working,
.flow:not([data-live][data-frame="0"][data-mode="paper"], [data-live][data-frame="1"][data-mode="board"], [data-ask="point"], [data-frame="3"][data-question="idle"], [data-question="recording"]) .ap-cursor,
html:not(.js) :is(.ap-actions-ask, .flow-shoot) { display: none; }
.flow[data-frame="1"] .ap-btn-check, .flow[data-live][data-frame="0"] .ap-btn-check { background: var(--navy); border-color: var(--navy); color: var(--white); }
.flow[data-live][data-frame="0"] .ap-btn-check { animation: flow-press-on .2s 3.2s both; }
.flow[data-mode="paper"][data-live][data-frame="0"] .ap-cursor { animation: flow-cursor-go 1s 2.4s both; }
.flow[data-ask="point"] .ap-cursor { animation: flow-cursor-go .6s both; }
/* THE BOARD'S FIRST TWO STEPS. Step one, 6 s: the board rising in under the question (1 s),
   the ink written band by band with the stylus on its edge (site.js, 1.4 to 4.4 s), then
   the window back up and the answer picked (about 5 s). Step two: the pointer onto "Check
   my solution" and pressing it (1 s), a reading line sweeping the board, then the verdict
   (site.js `data-checked`). */
.js .flow[data-mode="board"]:not([data-frame="0"], [data-frame="1"]) .ap-board { display: none; }
.flow[data-mode="board"][data-live][data-frame="0"] .ap-board { animation: rise-in .45s 1s cubic-bezier(.22, 1, .36, 1) both; }
.js .flow[data-mode="board"][data-frame="0"]:not([data-live]) .ap-board { opacity: 0; }
.flow[data-mode="board"][data-live][data-frame="1"] .ap-cursor { animation: flow-cursor-go 1s .2s both; }
.flow[data-mode="board"][data-frame="1"] .ap-btn-go { background: var(--navy); border-color: var(--navy); color: var(--white); animation: flow-press-on .2s 1s both; }
.flow[data-mode="board"][data-frame="1"] .ap-scan { animation: ap-scan 1.3s 1.15s cubic-bezier(.45, 0, .55, 1) both; }
@keyframes ap-scan { 0% { opacity: 0; top: var(--scan-top); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; top: var(--scan-end); } }
/* Step four: onto the mic and one press, resting there while the question is spoken. */
.flow[data-frame="3"][data-question="idle"] .ap-cursor { animation: flow-cursor-press .7s both; }
@keyframes flow-cursor-press {
  0% { opacity: 0; translate: 56px 36px; }
  15% { opacity: 1; }
  75% { translate: 0 0; scale: 1; }
  88% { translate: 0 0; scale: .96; }
  100% { translate: 0 0; scale: 1; opacity: 1; }
}
@keyframes flow-press-on { from { background: var(--white); border-color: var(--ink); color: var(--ink); } }
/* From below and right of its target, onto it, and press. */
@keyframes flow-cursor-go {
  0% { opacity: 0; translate: 56px 36px; }
  15% { opacity: 1; }
  75% { translate: 0 0; scale: 1; }
  82% { scale: .96; }
  90%, 100% { translate: 0 0; scale: 1; opacity: 1; }
}
@keyframes bar-up { from { transform: scaleY(0); } }
@keyframes flow-appear { from { opacity: 0; } }
@keyframes appear-pick { from { border-color: var(--line); background: none; } }
@keyframes appear-pick-letter { from { border-color: var(--edge); background: none; color: inherit; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } }

/* Paper's step two, one 6 s timeline (every animation runs the whole step, so its
   keyframes read as times: 10% is 0.6 s). TWO WAYS: the two tiles rise in together (to
   0.6 s). THE PICK: the phone's tile is ringed and ticked as the computer dims (1.8 to
   2.1 s). THE PHONE: the computer steps out to the side and the tiles and names go (2.5 to
   2.9 s); the page comes in large, left of
   centre, and is seen on its own (2.7 to 3.1 s); the phone grows and tilts over its right
   side (3.4 to 4.1 s), its screen turning from the tile's ask to the camera, the page live
   under the capture page's bands (3.2 to 3.5 s); the shutter and flash (4.75 s), and the
   shot dropping into the bottom band as the app's thumbnail does (4.9 s). Its
   RESTING state is that end (the phone over the page, the photo taken), so step three
   takes over without anything snapping back. */
.js .flow:not([data-frame="1"]) .flow-shoot { opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.js .dev::before, .js .dev figcaption, .js .dev-pick { opacity: 0; }
.js .dev-laptop { opacity: 0; translate: 24px 0; }
/* The phone held over the page's right side, tilted as a hand holds it to take the
   photo, large enough to read as the camera it is. */
.js .dev-guide { opacity: 0; }
.js .dev-phone .dev-frame { scale: 2.1; rotate: 4deg; translate: calc(var(--u) * 9) calc(var(--u) * 2); }
/* Into step three the phone FLIES (site.js `fly`) to where the page sits beside the
   feedback, and the shoot fades only as it lands, while the page itself appears under it. */
.js .flow[data-frame="2"] .flow-shoot { transition: opacity .25s .7s, visibility 0s .95s; }
.flow[data-mode="paper"][data-frame="2"] .ap-sheet > img { animation: flow-appear .3s .45s both; }
.flow[data-frame="1"] .dev::before { animation: dev-card 6s cubic-bezier(.4, 0, .2, 1) both; }
.flow[data-frame="1"] .dev-laptop { animation: dev-side 6s cubic-bezier(.4, 0, .2, 1) both; }
.flow[data-frame="1"] .dev-phone { animation: dev-rise 6s cubic-bezier(.4, 0, .2, 1) both; }
.flow[data-frame="1"] .dev-pick { animation: dev-pick 6s cubic-bezier(.22, 1, .36, 1) both; }
.flow[data-frame="1"] .dev-phone .dev-frame { animation: dev-hero 6s cubic-bezier(.4, 0, .2, 1) both; }
.flow[data-frame="1"] .dev figcaption { animation: dev-name 6s cubic-bezier(.4, 0, .2, 1) both; }
/* The two not picked dim inside their tiles, which stay solid: a see-through tile lets
   the page behind run into it. A filter, so it adds to the opacity the names fade by. */
.flow[data-frame="1"] .dev-laptop .dev-frame { animation: dev-dim 6s cubic-bezier(.4, 0, .2, 1) both; }
.flow[data-frame="1"] .dev-laptop figcaption { animation: dev-name 6s cubic-bezier(.4, 0, .2, 1) both, dev-dim 6s cubic-bezier(.4, 0, .2, 1) both; }
.flow[data-frame="1"] .dev-paper { animation: dev-paper 6s cubic-bezier(.22, 1, .36, 1) both; }
.flow[data-frame="1"] .dev-shutter { animation: flow-press .25s 4.75s both; }
.flow[data-frame="1"] .dev-flash { animation: flow-flash .5s 4.8s both; }
/* On its tile the phone shows its ask. Held over the page it is the camera: the page live on
   its screen under the capture page's bands, before the shutter, and the shot keeps it. */
.flow[data-frame="1"] .dev-phone :is(.dev-page, .dev-band) { animation: dev-view 6s both; }
.flow[data-frame="1"] .dev-guide { animation: dev-guide 6s both; }
.flow[data-frame="1"] .dev-thumb { animation: dev-thumb 6s both; }
@keyframes dev-guide { 0%, 53% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes dev-thumb { 0%, 81% { opacity: 0; scale: 1.6; } 84%, 100% { opacity: 1; scale: 1; } }
@keyframes dev-card { 0% { opacity: 0; } 8%, 46% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes dev-side {
  0% { opacity: 0; translate: 0 8px; }
  11%, 46% { opacity: 1; translate: 0 0; }
  54%, 100% { opacity: 0; translate: 24px 0; }
}
@keyframes dev-dim { 0%, 33% { filter: opacity(1) grayscale(0); } 39%, 100% { filter: opacity(.35) grayscale(1); } }
@keyframes dev-rise { 0% { opacity: 0; translate: 0 8px; } 11%, 100% { opacity: 1; translate: 0 0; } }
@keyframes dev-pick { 0%, 33% { opacity: 0; scale: 1.06; } 39%, 46% { opacity: 1; scale: 1; } 52%, 100% { opacity: 0; scale: 1; } }
@keyframes dev-hero {
  0%, 57% { scale: 1; rotate: 0deg; translate: 0 0; }
  69%, 100% { scale: 2.1; rotate: 4deg; translate: calc(var(--u) * 9) calc(var(--u) * 2); }
}
@keyframes dev-name { 0% { opacity: 0; } 11%, 44% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes dev-paper { 0%, 50% { opacity: 0; translate: -50% -46%; } 58%, 100% { opacity: 1; translate: -50% -50%; } }
@keyframes flow-press { 50% { scale: .85; } }
@keyframes flow-flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
@keyframes dev-view { 0%, 54% { opacity: 0; } 59%, 100% { opacity: 1; } }

/* Step three: the chat and the page beside it, the crew member reading the page and
   writing the finding out in the thread's first message, then the pointer pressing the
   finding (`data-ask`), which rims it and puts its chip in the composer. Step four: the
   question spoken (the mic held), heard, standing in the thread under its chip, and
   answered in the crew member's bubble (`data-question`). */
.flow[data-frame="2"] .ap-working { animation: rise-in .45s .25s cubic-bezier(.22, 1, .36, 1) both; }
.js .flow[data-frame="2"] .ap-region { animation: flow-appear .35s 1.3s both; }
.js .flow[data-feedback="loading"] .ap-wait { display: flex; position: absolute; top: .55em; left: .8em; }
.js .flow[data-feedback="loading"] .ap-fb { visibility: hidden; }
.js .flow:not([data-feedback="done"]) .ap-fb-hd span { opacity: 0; }
.js .flow:not([data-ask="open"], [data-frame="3"]) .ap-about-chip,
.js .flow:not([data-question="hearing"], [data-question="loading"], [data-question="done"]) .ap-x { display: none; }
.js .flow[data-ask="open"] .ap-about-chip { animation: rise-in .3s both; }
.js .flow[data-question="loading"] .ap-typing { display: inline-flex; }
.js .flow:not([data-question="done"]) :is(.ap-fu-a, .ap-graph) { display: none; }
.js .flow[data-question="done"] :is(.ap-fu-a, .ap-graph) { animation: rise-in .45s both; }

@media (prefers-reduced-motion: reduce) {
  .flow *, .flow *::before, .flow *::after { animation: none !important; transition: none !important; }
  .flow .ap-cursor { display: none; }
  /* Held still, paper's step two is the two devices side by side, not the end of the move. */
  .js .flow .dev::before, .js .flow :is(.dev figcaption, .dev-laptop) { opacity: 1; translate: none; }
  .js .flow .dev-phone .dev-frame { scale: 1; rotate: none; translate: none; }
  .flow .dev-paper { display: none; }
  .js .flow .dev-guide { opacity: 1; }
  .flow .dev-phone :is(.dev-page, .dev-band, .dev-thumb) { opacity: 0; }
}

@media (max-width: 1100px) {
  .flow-app { font-size: 14px; }
  .ap-chat { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
}
/* A phone: the rail names only the live stop; the page goes under its rows, as the
   platform stacks them. */
@media (max-width: 800px) {
  .flow-stage > .section-head { margin-bottom: 16px; }
  /* The switch fills the strip, its two halves side by side. */
  .flow-bar { justify-content: center; padding: 0 8px; }
  .mode-tab { padding: 0 10px; white-space: nowrap; }
  .js .flow-stage > .section-head > .crew-peek { margin-top: 0; }
  .js .flow-stage > .section-head > .crew-peek > :is(p, span) { display: none; }
  .flow-rail { --route-h: 50px; margin-bottom: 12px; }
  .js .flow-rail { height: calc(var(--route-top) + var(--route-h) + 46px); }
  /* A stop with no width, its mark centred on it by flex (grid would start it there). */
  .js .flow-stop { display: flex; justify-content: center; width: 0; }
  .flow-mark { width: 32px; height: 32px; }
  .flow-stop [aria-current] .flow-mark { scale: 1.15; }
  .flow-stop { padding-top: calc(var(--route-top) + var(--y) * var(--route-h) / 100 - 16px); }
  .flow-stop, .flow-stop button { position: static; }
  .flow-label { position: absolute; left: 0; right: 0; top: calc(var(--route-top) + var(--route-h) + 10px); justify-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
  /* The live label spans the rail from under its own stop. */
  .js .flow-label { position: absolute; left: calc(0px - var(--x)); right: auto; width: var(--page-w, calc(100vw / var(--zoom))); }
  .flow-stop [aria-current] .flow-label { opacity: 1; translate: none; }
  .flow-boat, .flow-boat .hb-ic { width: 26px; height: 26px; }
  html:not(.js) .flow-label { position: static; opacity: 1; }
  html:not(.js) .flow-rail { height: auto; }
  .flow-app { border-radius: 14px; font-size: 14px; }
  .flow-doc { padding: 18px; }
  .flow .ap-chart { height: clamp(8em, calc(22svh / var(--zoom)), 15em); margin-bottom: 1.6em; }
  /* Stacked, the page first, as the app stacks them: the finding points at it. */
  .ap-chat { grid-template-columns: minmax(0, 1fr); }
  /* A phone draws the bare round mic, as the app's composer does there. */
  .ap-fu-mic { justify-content: center; width: 2em; height: 2em; padding: 0; }
  .flow .ap-compose .ap-fu-mic > span { display: none; }
  .ap-sheet { order: -1; width: 72%; justify-self: center; }
  .ap-actions { flex-wrap: nowrap; gap: .5em; }
  .ap-btn { gap: .4em; padding: .5em .85em; font-size: .8em; }
}
@media (max-width: 379px) {
  .mode-tab strong { font-size: 13px; }
  .mode-tab > .ap-glyph { display: none; }
}
/* On a short screen, a phone on its side, the rail's hints and the lead paragraph give way
   to the window. */
@media (min-width: 801px) and (max-height: 620px) {
  .flow-label small { display: none; }
  .js .flow-rail { height: calc(var(--route-top) + var(--route-h) + 38px); }
  .js .flow-stage > .section-head > .crew-peek { margin-top: 0; }
  .js .flow-stage > .section-head > .crew-peek > :is(p, span) { display: none; }
}

/* Current app answer states; the boat and scene transitions remain the original journey. */
.ap-choice-result { display: none; margin-left: auto; color: var(--verdict-no); }
.flow[data-checked] .ap-choice-result { display: inline; }
/* Checked, as the app marks it: the wrong pick red and crossed, the answer it missed outlined
   in green and ticked, with no fill (it is the answer shown, not a second mistake). */
.flow[data-checked] .ap-options .is-picked { border-color: var(--verdict-no); background: #fcf3f5; }
.flow[data-checked] .ap-options .is-picked b { background: var(--verdict-no); border-color: var(--verdict-no); }
.flow[data-checked] .ap-options .is-correct { border-color: var(--verdict-ok); }
.flow[data-checked] .ap-options .is-correct :is(b, .ap-choice-result) { color: var(--verdict-ok); border-color: var(--verdict-ok); }
.ap-chart { height: 12em; }
.flow-app { box-shadow: 0 24px 50px -38px rgba(20,32,43,.3); }
.flow-stop [aria-current] .flow-mark { scale: 1.2; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-deep) 12%, transparent), 0 5px 14px -8px rgba(20,32,43,.4); }
@media (max-width: 800px) {
  .flow-stop [aria-current] .flow-mark { scale: 1.12; }
}

/* ------------------------------------------------------------------------ the water moves
   The viewBox is two container-widths wide and every wave period divides one, so sliding a
   path by exactly one width loops with no seam. The layers run at different speeds, which
   is what reads as water rather than a shape going past. */
/* The band keeps its original composition: a 180-unit swell pushed below the frame so only
   its peaks break through, the light sea behind and OUR NAVY in front. Flattening the navy
   to a wash lost the one bit of brand colour in the transition. */
.sea-passage .swell {
  /* Two container-widths on a desktop, but never narrower than this: the viewBox is fixed,
     so squeezing it into a phone would multiply the crests per screen and read as chop
     rather than swell. The drift translates in USER units, so widening changes only the
     wavelength on screen, never the seam. */
  width: max(200%, 1600px);
  /* The base `svg { max-width: 100% }` would clamp the band back to one container and
     there would be nothing to slide into view. */
  max-width: none;
  height: 180px;
  inset: auto auto -72px 0;
  transform: none;
}
.swell-back {
  fill: var(--wave-sea);
}
.swell-front {
  fill: var(--wave);
}
.swell-back {
  animation: drift 26s linear infinite;
}
.swell-front {
  /* Duration comes from `home.mjs::SWELL_SECONDS` on the SVG, because the institution row
     is carried at this same speed and solves its own duration from that constant. A
     literal here is a second number that has to agree with it, unwatched. */
  animation: drift var(--swell-s) linear infinite;
}
@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* How far each wave rises per unit of `--passage` as its band crosses the viewport. Declared
   once because the institution row rides these waves and has to rise with the one each mark
   sits on; a copy of the numbers in its rule is a second pair nobody compares. */
:root {
  --lift-back: -14px;
  --lift-front: -24px;
}
.swell-back {
  /* The scroll-linked parallax still lifts them as the passage crosses the viewport. */
  translate: 0 calc(var(--passage, 0) * var(--lift-back));
}
.swell-front {
  translate: 0 calc(var(--passage, 0) * var(--lift-front));
}

/* -------------------------------------------------- general landing page */
/* The tutor page's title is the homepage's. */
:is(.home-hero, .edu-hero) h1 {
  margin: 0 0 26px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -.03em;
}
.odds-stat p {
  margin: 0;
  color: var(--muted);
}
.hero-film {
  height: min(calc(41vw / var(--zoom)), 580px);
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sea);
}
.hero-film video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 63% 50%; }
/* The space under the promises, which the students' row repeats under itself so it sits
   evenly between the promises and the odds' title, with no rule on either side. */
/* The homepage's sections stand a little closer than the exam pages' (the owner's call 2026-10-16),
   and the hero, its pill and the exam cards a little further apart, so the two rhythms meet. */
.home-page { --why-gap: 115px; --section-pad: 80px; }
.home-why { padding-bottom: var(--why-gap); }
/* The row's own 30px padding is room for the cards' shadow, so it counts towards the gap. */
.section.home-results { padding: 0; }
.home-results + .section { padding-top: calc(var(--why-gap) - 30px); }
/* The gap already leaves the crew room to peek, so the title takes no margin of its own. */
.home-results + .section .crew-peek { margin-top: 0; }
.home-results .results-marquee { margin-top: 0; }
/* On the homepage the row stands alone, so its cards are larger. */
.home-results .result-card { gap: 20px; padding-block: 30px 28px; }
.home-results .result-score { padding-top: 20px; }
.home-results .result-gain { font-size: 30px; }
.home-results .result-gain strong { font-size: 42px; }
/* Wider only where a 312px card fits whole inside the row's 30px fade (gutters 40px). The drift
   scales with a card plus the 18px track gap (330 over 290), so it keeps its pace. */
@media (min-width: 382px) {
  .home-results .result-card { flex-basis: 312px; padding-inline: 28px; }
  .home-results .results-track { animation-duration: calc(78s * 330 / 290); }
}
.home-reason-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-reason { min-height: 344px; padding: 30px 24px; border-radius: 12px; background: var(--sea); text-align: center; }
.home-reason h3 { font-weight: 600; line-height: 1.1; }
.home-reason p { margin: 0; color: var(--muted); font-size: var(--text); line-height: 1.55; }
.home-kicker, .home-trial-label { display: block; color: var(--accent-deep); font-size: var(--note); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-kicker { margin-bottom: 20px; }
.section.home-trial {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(275px, .7fr);
  align-items: center;
  gap: clamp(35px, calc(5vw / var(--zoom)), 72px);
  margin-top: 28px;
  margin-bottom: 48px;
  padding: clamp(32px, calc(5vw / var(--zoom)), 64px);
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #e8f4f2 0%, var(--sea) 58%, color-mix(in srgb, var(--accent) 12%, var(--white)) 100%);
}
.home-trial h2 { max-width: 650px; margin: 0 0 22px; }
.home-trial-copy > p { max-width: 58ch; margin: 0; color: var(--muted); font-size: var(--lead); line-height: 1.6; }
.home-trial-action { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 0 14px clamp(28px, calc(4vw / var(--zoom)), 54px); border-left: 1px solid rgba(16, 32, 43, .18); }
.home-trial-label { color: var(--navy-2); }
.home-trial-action strong { display: flex; align-items: baseline; gap: 13px; margin: 15px 0 13px; font-size: clamp(58px, calc(6vw / var(--zoom)), 80px); font-weight: 550; line-height: 1; letter-spacing: -.06em; }
.home-trial-action strong span { max-width: 11ch; font-size: var(--lead); font-weight: 500; line-height: 1.2; letter-spacing: var(--track); }
.home-trial-action p { max-width: 31ch; margin: 0 0 24px; color: var(--muted); font-size: var(--text); line-height: 1.5; }
.home-trial-action .button { max-width: 100%; padding: 17px 27px; font-size: var(--text); white-space: normal; text-align: center; }
.home-trial-action small { margin-top: 12px; color: var(--muted); }
/* Admission by score band, after the trial offer: one headline range over the three exams'
   paired bars, on a white card so it never reads as the exam pages' progress curves on the sea. */
.odds-card { padding: 40px 46px 30px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.odds-stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 64px; align-items: center; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.odds-range strong { display: block; font-size: 80px; font-weight: 550; line-height: .9; letter-spacing: -.06em; color: var(--accent-deep); white-space: nowrap; }
/* The type's tight tracking would close the range's dash onto its figures. */
.odds-dash { margin-inline: .08em; }
.odds-range > span { display: block; margin-top: 14px; font-size: var(--text); line-height: 1.45; color: var(--muted); }
.odds-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 34px 0 28px; }
.odds-figure { min-width: 0; margin: 0; }
.odds-figure figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.odds-figure figcaption strong { font-size: var(--lead); font-weight: 600; color: var(--ink); }
.odds-figure figcaption b { font-size: var(--lead); font-weight: 600; color: var(--accent-deep); }
.odds-plot { position: relative; height: 200px; margin-bottom: 26px; padding-left: 34px; }
.odds-grid span { position: absolute; left: 0; right: 0; bottom: calc(var(--t) * 100%); font-size: 11px; line-height: 0; color: var(--muted); }
.odds-grid span::after { content: ""; position: absolute; left: 34px; right: 0; border-bottom: 1px dashed var(--line); }
.odds-grid span:last-child::after { border-bottom: 1px solid var(--ink); }
.odds-bands { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 6px; height: 100%; margin: 0; padding: 0; list-style: none; }
.odds-band { position: relative; display: flex; align-items: flex-end; }
.odds-bar { position: relative; flex: 1; height: calc(var(--v) * 100%); border-radius: 3px 3px 0 0; background: var(--exam-ink); transform-origin: bottom; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.odds-figure:nth-child(2) .odds-bar { transition-delay: .15s; }
.odds-figure:nth-child(3) .odds-bar { transition-delay: .3s; }
.odds-figure:nth-child(4) .odds-bar { transition-delay: .45s; }
.odds-bar b { position: absolute; left: 50%; bottom: 100%; padding-bottom: 5px; transform: translateX(-50%); font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--ink); opacity: 0; transition: opacity .2s; }
.odds-band:last-child .odds-bar b, .odds-band:hover .odds-bar b { opacity: 1; }
.odds-label { position: absolute; top: 100%; left: -3px; right: -3px; padding-top: 8px; text-align: center; font-size: 11px; color: var(--muted); }
.odds-sources { margin: 0; padding-top: 16px; border-top: 1px dotted var(--line); font-size: var(--note); line-height: 1.5; color: var(--muted); }
.odds-sources a { color: inherit; }
/* Waiting to rise: only with script, which is what lifts them (site.js). */
.js .odds-card:not(.is-drawn) .odds-bar { transform: scaleY(0); }
.js .odds-card:not(.is-drawn) .odds-bar b { opacity: 0; }
@media (max-width: 1240px) {
  .odds-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
}
@media (max-width: 1000px) {
  .odds-stat { grid-template-columns: minmax(0, 1fr); }
}
.odds-dots { display: none; }
/* A phone swipes through the figures one at a time, the next one peeking in. */
@media (max-width: 700px) {
  .odds-figures { position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .odds-figures::-webkit-scrollbar { display: none; }
  .odds-figure { flex: 0 0 86%; scroll-snap-align: start; }
  .js .odds-dots { display: flex; justify-content: center; gap: 8px; padding-bottom: 20px; }
  .odds-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
  .odds-dots span.is-on { width: 18px; border-radius: 4px; background: var(--accent-deep); }
}
@media (max-width: 600px) {
  .odds-card { padding: 26px 16px 20px; }
  .odds-range strong { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .odds-bar { transition: none; }
}
@media (max-width: 1050px) {
  .home-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-reason { min-height: 300px; }
}
@media (max-width: 800px) {
  .section.home-trial { grid-template-columns: 1fr; gap: 28px; }
  .home-trial-action { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(16, 32, 43, .18); }
}
@media (max-width: 620px) {
  .home-reason-grid { grid-template-columns: 1fr; }
  .home-reason { min-height: 0; padding: 26px; }
  .home-page { --why-gap: 70px; }
  .section.home-trial { padding: 28px 22px; margin-bottom: 35px; }
}
/* The general page lets a reader select a sample course, then tune the shared pricing builder. */
.home-page .pricing { padding-top: 86px; }
.home-page .pricing > .section-head { margin-bottom: 42px; }
@media (max-width: 620px) {
  .home-page .pricing { padding-top: 65px; }
}
.home-plan-empty { margin: -10px 0 12px; color: var(--muted); font-size: var(--note); line-height: 1.45; }
.home-plan-empty[hidden] { display: none; }
/* Homepage: a clear destination, an inviting image and the choice of exam beside it. */
.home-pricing { padding-top: 28px !important; }
.home-pricing-head { margin: 0 0 28px; }
.home-pricing-head h2 { margin: 0; line-height: 1.07; }
.home-pricing .price-card { border-radius: 14px; padding: clamp(24px, calc(3vw / var(--zoom)), 38px); box-shadow: none; }
.home-pricing-picker .price-card-head { font-size: var(--lead); font-weight: 650; letter-spacing: -.025em; }
.home-pricing-picker .price-card-head > .hb-ic { width: 36px; height: 36px; }
.home-pricing-picker .plan-exams { margin-top: 22px; }
.home-pricing-picker .plan-exam { padding: 14px; }
.price-card-head + .plan-exams { margin-top: 24px; }
/* The exam page's membership figure, beside what it is. */
/* The mixes, under the exams they tick: one quiet row each. */
.home-mixes { display: grid; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px dotted var(--line); }
.home-mixes-head { margin: 0 0 4px; font-size: var(--text); font-weight: 600; }
.home-mix { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border: 1px dashed var(--line); border-radius: 8px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.home-mix:hover { border-color: var(--navy-2); }
.home-mix[aria-pressed="true"] { border-style: solid; border-color: var(--navy); background: var(--sea); }
.home-mix:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.home-mix > span { display: grid; gap: 2px; min-width: 0; }
.home-mix strong { font-size: var(--text); font-weight: 600; }
.home-mix span small { color: var(--muted); line-height: 1.35; }
.home-mix b { flex: none; color: var(--navy-2); font-size: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.home-mix b small { font-weight: 500; }
/* Our first month beside what the platforms ask to start, on average. */
.home-baseline { display: grid; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px dotted var(--line); }
.home-baseline[hidden] { display: none; }
.home-baseline p { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: var(--text); }
.home-baseline p span { color: var(--muted); }
.home-baseline s, .pricing-comparable-price { color: var(--muted); font-variant-numeric: tabular-nums; text-decoration: line-through 2.5px var(--accent-deep); }
.home-baseline s { font-size: 20px; }
.home-baseline b { color: var(--accent-deep); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home-baseline p + p span { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) {
  .home-pricing-head > .crew-peek { margin-top: 52px; }
}
@media (max-width: 620px) {
  .home-pricing { padding-top: 16px !important; }
}
/* The general hero is the headline, its three points and the call beside the film, within the
   page gutter. The film's 380px floor, about the text's height, sets its height on wide screens, sized so the exam
   cards' papers show above the fold at 1440x900. */
.home-hero { display: grid; align-items: center; margin: 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 72px clamp(32px, calc(3.7vw / var(--zoom)), 56px); padding-top: 64px; padding-bottom: 48px; }
:is(.home-hero, .edu-hero) h1 { max-width: none; font-size: var(--title); }
.home-hero h1 .home-hero-line { display: block; color: var(--ink); text-wrap: balance; }
.home-hero h1 .home-hero-accent { color: var(--accent-deep); }
.home-points { gap: 22px; max-width: 50ch; margin: 34px 0 0; }
.home-points .point-narrow { display: none; }
@media (max-width: 620px) {
  .home-points { gap: 12px; margin-top: 22px; }
  .home-points .point-wide { display: none; }
  .home-points .point-narrow { display: inline; }
}
/* The hero's way on, the hero's last row: centred on a rule, down to the exam cards, not a
   sign-up. The filled pill in the accent, as every filled call to action is, led by a fan of the
   exams' papers, each headed in its exam's ink, which opens on hover. Its arrow nudges down every
   few seconds; on hover the water rises and the arrow leaves through the disc's bottom and comes
   back in at its top. The nudge is the path's and the loop the svg's, so neither replaces the
   other. */
.home-explore-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; container-type: inline-size; }
.home-explore-row::before, .home-explore-row::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.home-explore { flex: none; gap: 16px; padding: 8px 8px 8px 20px; border-color: var(--accent-deep); background: var(--accent-deep); font-size: var(--lead); font-weight: 600; letter-spacing: -.01em; box-shadow: 0 18px 34px -20px rgba(122, 34, 57, .7); transition: background .2s, transform .2s, box-shadow .4s; }
.home-explore-papers { display: flex; align-items: flex-end; height: 40px; padding-right: 4px; }
/* --i is a paper's place from the fan's middle (home-general.mjs), so the fan holds any count. */
.home-explore-papers > span { width: 24px; height: 31px; margin-left: -11px; border-radius: 3px; transform: rotate(calc(var(--i) * 9.5deg)); transform-origin: 50% 100%; box-shadow: 0 2px 7px rgba(40, 6, 16, .35); transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  background: linear-gradient(var(--exam-ink), var(--exam-ink)) 0 0 / 100% 7px no-repeat,
    linear-gradient(#cdd6dc, #cdd6dc) 4px 12px / 15px 1.6px no-repeat,
    linear-gradient(#cdd6dc, #cdd6dc) 4px 17px / 11px 1.6px no-repeat,
    linear-gradient(#cdd6dc, #cdd6dc) 4px 22px / 13px 1.6px no-repeat,
    var(--white); }
.home-explore-papers > span:first-child { margin-left: 0; }
.home-explore-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-left: 6px; overflow: hidden; border-radius: 50%; background: var(--white); color: var(--accent-deep); transition: color .3s; }
.home-explore-mark svg { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.home-explore-mark path { animation: explore-nudge 3.2s ease-in-out 1.2s infinite; }
@media (hover: hover) {
  .home-explore:hover { box-shadow: 0 18px 34px -20px rgba(16, 32, 43, .7); }
  .home-explore:hover .home-explore-mark { color: var(--navy); }
  .home-explore:hover .home-explore-mark svg { animation: explore-drop 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-explore:hover .home-explore-papers > span { transform: translateX(calc(var(--i) * 2.7px)) rotate(calc(var(--i) * 14.7deg)); }
}
/* Where the row is narrower than the pill with its papers, they go: 312px in the fallback font
   before Inter Tight arrives, 303px after, so the cut leaves room for both. */
@container (max-width: 318px) {
  .home-explore-papers { display: none; }
  .home-explore { padding-left: 26px; }
}
@keyframes explore-nudge { 0%, 30%, 100% { transform: none; } 15% { transform: translateY(4px); } }
@keyframes explore-drop { 0% { transform: none; } 17% { transform: translateY(32px); } 17.01% { transform: translateY(-32px); } 40%, 100% { transform: none; } }
.hero-media { min-width: 0; }
.hero-film { position: relative; width: 100%; height: 100%; min-height: 380px; margin: 0; border-radius: 16px; }
.hero-film video { object-position: 50% 40%; }
/* The film stands the hero's full height. The box also anchors the tutor hero's card. */
.hero-media { position: relative; align-self: stretch; }
/* The video fills the box without sizing it, so the box sets the film's size: the homepage's text
   column height, the tutor clip's own proportions. */
.hero-film video { position: absolute; inset: 0; }
/* The exam cards, full width under the hero, each a link to its exam's page (home-general.mjs
   `examCards`). A card's top is a question on its exam's paper, on the pale sea, with a pointer
   resting on option B. `--on` is the card's hover state: it lifts, its way in fills with the
   exam's ink and its paper is solved (`--solved`): the pointer moves onto A, which turns green,
   or the written answer writes itself out. site.js passes `.is-on` from card to card among
   those on screen; the card under a mouse, or tabbed to, holds the turn. Delays are on the
   way in only (`calc(var(--solved) * ...)`), so a card hands its turn on at once. */
/* The gap above the cards is mostly the hero's: a jump to #exams lands the section's top at
   the page's scroll-padding, and these 24px put the cards past the bar's 44px scrim. */
.section.home-exams { padding-top: 24px; }
/* Each card spans two rows of the grid and shares them (subgrid), so the papers and the bodies
   line up across a row whatever their content. Its one column cannot grow past the card: an
   auto column takes a one-line text's full width, and the card would clip it instead of the
   text ending in an ellipsis. */
/* Three across, five across where five fit (1600px), two on a tablet. A last row short of the
   others is centred under them, so the grid never ends on one card standing alone at the
   left: each card spans two tracks of a doubled grid, which lets a short row start half a
   card in. */
.home-exam-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; }
@media (min-width: 1600px) {
  .section.home-exams { width: min(1600px, calc(100% - 100px)); }
}
@media (min-width: 1241px) and (max-width: 1599px) {
  .home-exam-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-exam-grid > .home-exam { grid-column: span 2; }
  .home-exam-grid > .home-exam:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }
  .home-exam-grid > .home-exam:nth-child(3n + 1):last-child { grid-column: 3 / span 2; }
}
.home-exam { --on: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--exam-ink) calc(var(--on) * 100%), var(--line)); border-radius: 16px; background: var(--white); box-shadow: 0 30px 50px -38px color-mix(in srgb, var(--navy) calc(var(--on) * 100%), transparent); color: var(--ink); text-decoration: none; transform: translateY(calc(var(--on) * -4px)); transition: border-color .25s, box-shadow .25s, transform .3s cubic-bezier(.22,1,.36,1); }
.home-exam.is-on { --on: 1; }
/* Without the script nothing takes turns, and hover or keyboard focus lights a card. */
:root:not(.js) a.home-exam:is(:hover, :focus-visible) { --on: 1; }
.home-exam:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.home-exam-desk { position: relative; display: flex; flex-direction: column; padding: 22px 18px 24px; background: var(--sea); container-type: inline-size; }
.home-exams.lit .home-exam-cursor svg { animation: home-exam-hover 2.8s ease-in-out infinite; }
.home-exam-body { display: flex; flex-direction: column; gap: 10px; padding: 30px 20px 22px; container-type: inline-size; }
/* A card's exam name, and its flag with it, grows with the card from 24px to 30px, at the rate
   that keeps the longest name ("International A Levels", one line) inside it. */
.home-exam h3 { display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; font-size: clamp(24px, 10.5cqi, 30px); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.home-exam-marker { line-height: 1; }
.home-exam-body > p { margin: 0; color: var(--muted); font-size: var(--note); line-height: 1.45; }
/* One line at every width: the copy is written to fit the narrowest card (about 228px). */
.home-exam-about { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-exam-body > .home-exam-bank { display: flex; gap: 24px; margin-top: 4px; font-size: var(--note); line-height: 1.3; }
.home-exam-bank strong { display: block; color: var(--exam-ink); font-size: 26px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
/* The countdown, a small accent badge on the right of the desk's lower edge, mostly on the desk so
   it clears the title under it, its date under it at 11px, below the type scale on purpose
   (assets/countdown.mjs words it). */
.home-exam-count { position: absolute; right: 18px; bottom: 0; translate: 0 30%; z-index: 2; display: inline-flex; padding: 6px 12px; border-radius: 12px; background: var(--accent-deep); color: var(--white); font-size: var(--note); line-height: 1.2; white-space: nowrap; box-shadow: 0 8px 16px -8px rgba(122, 34, 57, .8); }
.home-exam-count > span { display: grid; line-height: 1.15; }
.home-exam-count b { font-weight: 650; }
.home-exam-count small { color: #f3c9d3; font-size: 11px; font-weight: 500; line-height: 1.2; }
.home-exam-body > :has(+ .home-exam-go) { margin-bottom: 10px; }
.home-exam-go { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding: 8px 16px; border: 1.5px solid var(--exam-ink); border-radius: 999px; background: color-mix(in srgb, var(--exam-ink) calc(var(--on) * 100%), transparent); color: color-mix(in srgb, #fff calc(var(--on) * 100%), var(--exam-ink)); font-size: var(--text); font-weight: 600; transition: background .25s, color .25s; }
.home-exam-go svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; translate: calc(var(--on) * 3px) 0; transition: translate .25s cubic-bezier(.22,1,.36,1); }
@media (min-width: 621px) and (max-width: 1240px) {
  .home-exam-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-exam-grid > .home-exam { grid-column: span 2; }
  .home-exam-grid > .home-exam:nth-child(2n + 1):last-child { grid-column: 2 / span 2; }
}
/* On a phone the card is shorter: no line on what the exam is for, and its figures centred beside
   its name, whose labels wrap before the name does. The extra top padding keeps them clear of the
   countdown. */
@media (max-width: 620px) {
  .home-exam-grid { grid-template-columns: 1fr; }
  .home-exam-desk { padding: 16px 14px 18px; }
  .home-exam-body { display: grid; grid-template-columns: minmax(min-content, 1fr) auto; align-items: center; gap: 0 16px; padding: 34px 16px 18px; }
  /* The counts share the name's row here, so the name keeps one size rather than the card's clamp. */
  .home-exam h3 { font-size: 27px; }
  .home-exam-qualifier { display: block; margin-bottom: 2px; color: var(--muted); font-size: var(--note); font-weight: 600; letter-spacing: var(--track); }
  .home-exam-about { display: none; }
  .home-exam-body > .home-exam-bank { justify-content: flex-end; gap: 14px; margin: 0; }
  .home-exam-bank strong { font-size: 22px; }
  .home-exam-go { grid-column: 1 / -1; margin-top: 22px; }
}
/* The narrowest phones have no room for the two figures side by side, so they stack. Their bar
   has no room for the button beside the mark either; the menu still holds it. */
@media (max-width: 359px) {
  .home-exam-body > .home-exam-bank { flex-direction: column; gap: 6px; }
  .nav-actions { display: none; }
  .menu-toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-exams .nav-exam { transition: none; }
  /* No turns and no motion: every paper rests solved, and nothing in a card moves, whatever
     its rule's weight. */
  .home-exam-paper { --solved: 1; }
  .home-exam, .home-exam * { transition: none !important; animation: none !important; }
}
/* The four benefits read as an open editorial list while keeping the illustrated icons. */
.home-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, calc(5vw / var(--zoom)), 76px); row-gap: 0; }
.home-reason { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 22px; min-height: 0; padding: 32px 0 35px; border-top: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.home-reason::before { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.home-reason-mark { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center start; align-self: start; }
.home-reason-number { color: var(--accent-deep); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.06em; }
@media (hover: hover) {
  .home-reason:hover::before { width: 100%; }
}
.home-reason h3 { grid-column: 2; grid-row: 1; margin: 0 0 10px; font-size: var(--lead); letter-spacing: -.02em; }
.home-reason p { grid-column: 2; grid-row: 2; max-width: 39ch; }
@media (max-width: 800px) {
  .home-hero { grid-template-columns: 1fr; gap: 22px; padding-top: 25px; }
  .home-explore-row { margin-top: 10px; }
  :is(.home-hero, .edu-hero) h1 { margin-bottom: 20px; }
  .hero-film { width: 100%; height: 340px; min-height: 0; border-radius: 10px; }
  .hero-film video { object-position: 50% 25%; }
}
@media (max-width: 620px) {
  /* The points read as the title's own lines, and the film stands off from them. */
  .home-hero { gap: 40px; padding-top: 44px; }
  .home-hero h1 { margin-bottom: 0; }
  .home-explore-row { justify-content: center; }
  .home-explore-row::before, .home-explore-row::after { display: none; }
  .hero-film { height: 300px; }
  .hero-film video { object-position: 50% 20%; }
  .home-reason-grid { grid-template-columns: 1fr; }
  .home-reason { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding: 26px 0 29px; }
  .home-reason-number { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-reason::before { transition: none; }
}

/* Student quotes: the first leads large, the rest sit beside it on desktop and under it below 1101px. */
.home-testimonial-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.home-testimonial { margin: 0; }
.home-testimonial-mark { display: block; color: var(--accent); font-family: Georgia, serif; line-height: 1; }
.home-testimonial blockquote { margin: 0; }
.home-testimonial blockquote p { margin: 0; color: var(--navy); }
.home-testimonial figcaption { display: flex; align-items: center; gap: 12px; font-size: var(--note); line-height: 1.5; }
.home-testimonial figcaption strong { color: var(--navy); font-weight: 600; }
.home-testimonial figcaption span { color: var(--muted); }
.home-testimonial-portrait { display: block; overflow: hidden; border-radius: 50%; background: var(--sea); }
.home-testimonial-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-testimonial-person { display: grid; gap: 2px; }
.home-testimonial-lead .home-testimonial-mark { height: 72px; font-size: 150px; }
.home-testimonial-lead blockquote p { font-size: 44px; font-weight: 500; line-height: 1.16; letter-spacing: -.045em; text-wrap: pretty; }
.home-testimonial-lead figcaption { margin-top: 36px; gap: 16px; font-size: var(--text); }
.home-testimonial-lead .home-testimonial-portrait { flex: 0 0 64px; width: 64px; height: 64px; }
.home-testimonial-rest .home-testimonial { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 26px 0; border-top: 1px dotted var(--line); }
.home-testimonial-rest .home-testimonial:first-child { padding-top: 6px; border-top: 0; }
.home-testimonial-rest .home-testimonial-mark { height: 30px; font-size: 46px; }
.home-testimonial-rest blockquote, .home-testimonial-rest figcaption { grid-column: 2; }
.home-testimonial-rest blockquote p { font-size: var(--lead); font-weight: 450; line-height: 1.5; letter-spacing: -.015em; }
.home-testimonial-rest figcaption { margin-top: 14px; }
.home-testimonial-rest .home-testimonial-portrait { flex: 0 0 40px; width: 40px; height: 40px; }
@media (max-width: 1100px) {
  .home-testimonial-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .home-testimonial-lead blockquote p { max-width: 28ch; }
  .home-testimonial-rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  /* A subgrid shares the caption row, so the three portraits line up whatever the quote lengths. */
  .home-testimonial-rest .home-testimonial, .home-testimonial-rest .home-testimonial:first-child { grid-row: span 2; grid-template-rows: subgrid; padding: 24px 0 0; border-top: 1px dotted var(--line); }
  .home-testimonial-rest figcaption { align-items: flex-start; }
}
@media (max-width: 800px) {
  .home-testimonial-grid { gap: 36px; }
  .home-testimonial-lead .home-testimonial-mark { height: 46px; font-size: 96px; }
  .home-testimonial-lead blockquote p { font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
  .home-testimonial-lead figcaption { margin-top: 24px; }
  .home-testimonial-lead .home-testimonial-portrait { flex-basis: 52px; width: 52px; height: 52px; }
  .home-testimonial-rest .home-testimonial { grid-template-columns: 24px minmax(0, 1fr); padding: 22px 0; }
  .home-testimonial-rest .home-testimonial:first-child { padding-top: 22px; border-top: 1px dotted var(--line); }
  .home-testimonial-rest .home-testimonial-mark { height: 26px; font-size: 40px; }
}

/* A bar's tab or menu row for the page the reader is on (build.mjs `current`). */
.header nav a[aria-current="page"] {
  color: var(--accent-deep);
}
.exam-menu:has([aria-current="page"]) summary {
  color: var(--accent-deep);
}

@media (max-width: 800px) {
  /* A compact total stays below the measured header while the choices scroll. */
  .home-pricing .price-card { padding: 18px; }
  .home-pricing-picker .plan-exam { padding: 10px; }
  .home-pricing-picker .plan-exam-name small { display: none; }
  .home-pricing-picker .plan-exam-marker { display: none; }
  .home-pricing-picker .plan-exam-name b { font-size: 14px; }
  .home-pricing-picker .plan-exam-cost { font-size: 12px; }
  .home-pricing-picker .plan-exam-toggle { min-height: 44px; }
  .home-pricing-picker .plan-exams { margin-top: 14px; }
  .home-mixes { margin-top: 18px; padding-top: 14px; }
}

/* The sample's left column reads as three small passages, with room for the
   typography and the harbour symbols. The whole passage still previews the paper. */
.showcase-content{display:grid;grid-template-columns:.8fr 1.2fr;gap:64px;align-items:center;padding:44px 40px;background:var(--sea)}
.showcase-intro,.showcase-slides{min-width:0}
.showcase-intro .exam-figure{margin-bottom:32px}
.showcase-intro .exam-figure dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.showcase-intro .exam-figure dt{font-size:clamp(40px,calc(3.8vw / var(--zoom)),56px);font-weight:450}
.showcase-intro .exam-figure dd{font-size:14px;color:var(--muted);margin-top:4px}
.showcase-content .question-slide{padding:0;min-height:0;background:none}
/* Each example fills the height site.js gives the slides, the tallest's, so a subject switch or
   a format tab never moves the page; question at the top, tags at the foot. */
.question-showcase .showcase-slides{display:flex;flex-direction:column}
.question-showcase .question-slide:not([hidden]){flex:1;display:flex;flex-direction:column;align-items:stretch}
.question-showcase .question-example{flex:1}
.question-showcase .sample-app{flex:1;display:flex;flex-direction:column}
.question-showcase .sample-app>.sample-card{flex:1}
/* The answer fills the rest of its card, so "Check my answer" stands at the card's foot, right. */
.showcase-content .sample-card:not(.is-listening){display:flex;flex-direction:column}
.showcase-content .sample-try{flex:1;display:flex;flex-direction:column}
.showcase-content .sample-actions{margin-top:auto;padding-top:16px}
/* A typed answer shares that foot line with the button. */
.showcase-content .sample-try:has(>.sample-grid-in){flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:12px}
.showcase-content .sample-try>.sample-grid-in{flex:1 1 9em;min-width:0}
.question-showcase .showcase-intro .showcase-proof{padding:0;border:0;background:none}
.showcase-intro .proof-tabs{display:grid;gap:0}
.showcase-intro .proof-card{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:18px;width:100%;padding:24px 0;border:0;border-top:1px solid color-mix(in srgb,var(--ink) 16%,transparent);border-radius:0;background:none;color:var(--ink);box-shadow:none;transition:color .2s}
.showcase-intro .proof-card>.hb-ic{width:30px;height:34px;margin-top:2px;color:var(--exam-ink);opacity:.8;transition:opacity .2s,transform .2s}
/* The title is one line in every language: it scales with its column, whose widest title is ~12.7em. */
.showcase-intro .proof-card>span{min-width:0;container-type:inline-size}
.showcase-intro .proof-card strong{display:block;font-family:var(--serif);font-size:min(25px,7.6cqi);font-weight:450;letter-spacing:-.045em;line-height:1.2}
.showcase-intro .proof-body{display:block;max-width:40ch;margin-top:10px;font-weight:400;letter-spacing:var(--track);line-height:1.65;color:var(--muted)}
.showcase-intro .proof-card:hover{background:none;border-color:color-mix(in srgb,var(--ink) 16%,transparent);box-shadow:none}
@media (hover:hover){
.showcase-intro .proof-card:hover{color:var(--exam-ink)}
.showcase-intro .proof-card:hover>.hb-ic{color:var(--exam-ink);opacity:1;transform:translateY(-2px)}
.showcase-intro .proof-card:hover::after{content:"";position:absolute;left:0;top:-1px;width:52px;height:2px;background:var(--exam-ink)}
}
@media(max-width:1100px){.showcase-content{gap:36px;padding:36px 30px}.showcase-intro .proof-card{gap:14px}}
@media(max-width:900px){.showcase-content{grid-template-columns:.85fr 1.15fr;gap:28px;padding:30px 25px}.showcase-intro .exam-figure dl{gap:16px}.showcase-intro .exam-figure dt{font-size:38px}.showcase-intro .proof-card{grid-template-columns:25px minmax(0,1fr);gap:12px;padding:20px 0}.showcase-intro .proof-card>.hb-ic{width:24px;height:28px}}
/* Below 821px the intro's column is too narrow for its titles and text: the showcase stacks. */
@media(max-width:820px){.showcase-content{grid-template-columns:1fr;gap:24px}}
@media(max-width:620px){
  .showcase-content{gap:18px;padding:20px 16px}
  .showcase-intro .exam-figure{margin-bottom:16px}
  .showcase-intro .exam-figure dl{gap:16px}
  .showcase-intro .exam-figure dt{font-size:38px}
  .showcase-intro .proof-card{grid-template-columns:20px minmax(0,1fr);gap:10px;padding:12px 0}
  .showcase-intro .proof-card>.hb-ic{width:20px;height:22px;margin-top:0}
  .showcase-intro .proof-card strong{font-size:min(18px,7.4cqi);letter-spacing:-.025em}
  .showcase-intro .proof-body{margin-top:4px}
  /* A phone shows the three heads; a tap opens one's text. */
  .showcase-intro .proof-card{cursor:pointer}
  .js .showcase-intro .proof-card[aria-expanded="false"] .proof-body{display:none}
  .showcase-intro .proof-card[aria-expanded="true"]{color:var(--exam-ink)}
}
@media(prefers-reduced-motion:reduce){.showcase-intro .proof-card,.showcase-intro .proof-card>.hb-ic{transition:none}}

/* Desktop keeps the original picker and full membership card side by side. */
.pricing-summary { order: 1; }
.pricing-picker { order: 0; }
.home-pricing .price-grid { grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); gap: 18px; align-items: stretch; max-width: none; }
.pricing-overline { color: var(--navy-2); font-size: var(--note); font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.home-pricing .pricing-summary .price { margin: 16px 0 12px; font-size: clamp(62px, calc(6vw / var(--zoom)), 86px); }
.pricing-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.pricing-comparable-price { font-size: 32px; letter-spacing: -.04em; white-space: nowrap; }
.pricing-comparison-note { margin: -12px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.pricing-summary .price-breakdown { margin: 4px 0 18px; }
.pricing-summary-perks { flex: 1; }
.pricing-mobile-copy, .pricing-perks { display: none; }
.plan-builder.is-empty .pricing-summary [data-plan-price]::before { content: attr(data-from) ' '; font-size: .28em; font-weight: 500; letter-spacing: 0; vertical-align: .28em; }
@media (max-width: 800px) {
  .pricing .price-grid { display: flex; flex-direction: column; gap: 18px; max-width: 1030px; }
  .pricing .pricing-summary { order: -1; position: sticky; top: calc(var(--header-h, 63px) + 8px); z-index: 15; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; border-radius: 12px; box-shadow: 0 8px 24px -18px var(--navy); }
  .pricing-summary-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .pricing-summary-price .price-card-head { font-size: 11px; font-weight: 650; color: var(--muted); }
  .pricing-summary-price .price-card-head > .hb-ic { display: none; }
  .pricing-overline { font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: var(--track); text-transform: none; }
  .pricing-summary-price .plan-total { text-align: right; }
  .pricing .pricing-summary .price { margin: 0 0 3px; font-size: 32px; }
  .pricing-summary .price > span { display: block; margin: 3px 0 0; font-size: 10px; }
  .pricing-price-line { justify-content: flex-end; gap: 8px; }
  .pricing-comparable-price { font-size: 20px; }
  .pricing-comparison-note { margin: 2px 0 3px; font-size: 10px; }
  .pricing-summary .home-plan-empty, .pricing-summary .price-breakdown { display: none; }
  .pricing-summary-perks { padding-top: 8px; border-top: 1px dotted var(--line); min-width: 0; }
  .pricing-perks { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0; padding: 0; }
  .pricing-perks li { font-size: 11px; line-height: 1.4; }
  .pricing-perks li::before { content: "✓"; color: var(--accent); margin-right: 6px; }
  .pricing-summary .benefits { border: 0; margin: 8px 0 0; padding: 0; }
  .pricing-summary .benefits li { font-size: 11px; line-height: 1.4; margin: 4px 0 0; padding: 0; }
  .pricing-summary .benefits li::before { content: none; }
  .pricing-summary .subject-breakdown, .pricing-summary .pricing-desktop-copy { display: none; }
  .pricing-summary .pricing-mobile-copy { display: inline; }
  .plan-builder.is-empty .pricing-summary [data-plan-price]::before { font-size: .4em; vertical-align: .2em; }
  .pricing-summary .home-baseline { display: none; }
  .pricing-picker :is(.plan-exam, .plan-exam-toggle, .home-mix, input, select) { scroll-margin-top: calc(var(--header-h, 63px) + var(--pricing-summary-h, 220px) + 24px); }
}


/* ---------------------------------------------------------------- the educator page
   /tutors/ (tutors.mjs, docs/educator-program-plan.md): its own hero, why it helps, how
   it works as a route, and what an educator sees, drawn after the platform's screens (`.ev-*`,
   the app's panels, rules and pills at card scale) and played while each is on screen (`.lit`).
   Without motion each stands at its finished state: every keyframe declares only a `from`. */
/* The hero: the copy beside the film. The clip is landscape, so the film takes the wider column
   at its own proportions, uncropped; below 1000px it comes between the title and the call. The
   frame's corners and playback are the homepage film's (`.hero-film`). */
.edu-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "copy media" "act media"; gap: 0 clamp(32px, calc(4vw / var(--zoom)), 64px); padding-top: 56px; }
.edu-hero-copy { grid-area: copy; align-self: end; }
.edu-hero-act { grid-area: act; align-self: start; }
.edu-hero .hero-media { grid-area: media; align-self: center; }
/* The figure carries the clip's own proportions (tutors.mjs). */
.edu-hero .hero-film { height: auto; min-height: 0; }
.edu-hero h1 span { display: block; color: var(--accent-deep); }
.edu-hero-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.edu-hero-go .button { font-size: 17px; padding: 17px 28px; gap: 20px; background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.edu-hero-go .button:hover { color: var(--white); }
/* Beside the call, on two lines, each with a symbol: what the account costs and how many students
   it holds. */
.edu-hero-note { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; line-height: 1.3; }
.edu-hero-note li { display: flex; align-items: center; gap: 9px; }
.edu-hero-note .hb-ic { flex: none; width: 20px; height: 20px; color: var(--navy-2); }
.edu-hero-note strong { color: var(--ink); font-weight: 650; }
/* What the students get, under a quiet rule: the exams as small cards in their inks, two by two
   (one column on phones). */
.edu-exams { margin-top: 36px; padding-top: 22px; border-top: 1px dotted var(--line); }
.edu-exams h2 { margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: var(--track); line-height: 1.3; }
.edu-exam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.edu-exam { --on: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 15px; border: 1px solid color-mix(in srgb, var(--exam-ink) calc(var(--on) * 100%), var(--line)); border-top: 4px solid var(--exam-ink); border-radius: 12px; background: var(--white); box-shadow: 0 20px 34px -30px color-mix(in srgb, var(--navy) calc(var(--on) * 100%), transparent); color: var(--ink); text-decoration: none; transform: translateY(calc(var(--on) * -3px)); transition: border-color .25s, box-shadow .25s, transform .3s cubic-bezier(.22,1,.36,1); }
.edu-exam:is(:hover, :focus-visible) { --on: 1; }
.edu-exam:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.edu-exam-name { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.edu-exam-mark { font-size: 20px; line-height: 1; }
.edu-exam-go { flex: none; width: 11px; height: 11px; margin-left: auto; fill: none; stroke: var(--exam-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; translate: calc(var(--on) * 3px) 0; transition: translate .25s cubic-bezier(.22,1,.36,1); }
.edu-exam-bank { display: flex; gap: 18px; color: var(--muted); font-size: 13px; line-height: 1.25; }
.edu-exam-bank strong { display: block; color: var(--exam-ink); font-size: 21px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
/* One of their students, as the educator's list shows her, resting on the film's right edge,
   clear of the copy. */
.edu-hero-card { position: absolute; right: -24px; bottom: 54px; width: 264px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 24px 50px -28px rgba(16, 32, 43, .55); font-size: 13px; }
.edu-hero-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.edu-hero-card-head span { color: var(--muted); font-size: 12px; }
.edu-hero-card-gain { margin: 12px 0 0; padding-top: 10px; border-top: 1px dotted var(--line); color: var(--muted); font-size: 12.5px; }
.edu-hero-card-gain b { color: var(--verdict-ok); font-size: 15px; }

/* WHY IT HELPS: the claim on the left, the four gains as a ruled list on the right. */
.edu-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, calc(6vw / var(--zoom)), 96px); align-items: start; }
.edu-why-head > p { max-width: 460px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.edu-why-list { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.edu-why-list li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px dotted var(--line); }
.edu-why-list .edu-why-ic { width: 32px; height: 32px; margin-top: 2px; color: var(--navy-2); transition: color .35s ease; }
.edu-why-list li:hover .edu-why-ic, .edu-why-list li.on .edu-why-ic { color: var(--accent-deep); }
/* While site.js turns the focus, the other gains' titles go quiet (their text stays readable)
   and a line under the focused one runs out the time until the next. Its symbol works as the app's does under a hover: the
   light turns, the day is marked, the needle settles. The section's ambient
   loops (`.lit`) are held off here, so only the focused symbol moves. */
.edu-why-list.turning li:not(.on) h3 { color: var(--muted); }
.edu-why-list.turning li.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--accent-deep); transform-origin: left; animation: edu-why-turn var(--turn) linear both; }
@keyframes edu-why-turn { from { transform: scaleX(0); } }
.edu-why .edu-why-list .hb-ic * { animation: none; }
.edu-why-list .al-day { transform-box: fill-box; transform-origin: center; fill: transparent; transition: fill .3s ease; }
@media (prefers-reduced-motion: no-preference) {
  .edu-why-list li.on .hb-ic .lh-r1 { animation: lh-beam-l 1.8s ease-in-out infinite; }
  .edu-why-list li.on .hb-ic .lh-r2 { animation: lh-beam-r 1.8s ease-in-out infinite; }
  .edu-why-list li.on .hb-ic .lh-lamp { animation: lh-flash 1.8s ease-in-out infinite; }
  .edu-why-list li.on .hb-ic .sx-needle { animation: sx-settle 1.4s ease-in-out both; }
  .edu-why-list li.on .hb-ic .al-day { animation: al-mark .45s ease-out both; }
}
.edu-why-list li.on .hb-ic .al-day { fill: currentColor; }
@keyframes al-mark { 0% { transform: scale(.5); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.edu-why-list h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; transition: color .35s ease; }
.edu-why-list p { max-width: 560px; margin: 0; color: var(--muted); font-size: var(--text); line-height: 1.55; }

/* HOW IT WORKS: four stops on a route, drawn as it comes on screen, the last two turning weekly. */
.edu-route { position: relative; padding-top: 40px; }
.edu-route-line { position: absolute; inset: 40px 0 auto; width: 100%; height: 120px; overflow: visible; }
.edu-route-line path { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.edu-route-ahead { stroke: var(--navy-mid); stroke-dasharray: 1 7; }
.edu-route-done { stroke: var(--navy); }
/* The weekly turn: an arc from the fourth stop back to the third, its head on the third. The
   stops are painted over its ends (`ol` comes after it), so it reads as leaving one and
   arriving at the other. */
.edu-route-loop { position: absolute; top: 4px; left: 62.5%; width: 25%; height: 82px; pointer-events: none; }
.edu-route-arc { position: absolute; inset: 20px 0 0; border: 1.6px dashed var(--accent-deep); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.edu-route-head { position: absolute; left: -5.2px; bottom: -6px; border: 6px solid transparent; border-top: 9px solid var(--accent-deep); border-bottom: 0; }
.edu-route-loop b { position: absolute; top: 0; left: 50%; padding: 0 8px; transform: translateX(-50%); background: var(--white); color: var(--accent-deep); font-size: 13px; font-weight: 650; white-space: nowrap; }
.edu-route-note { display: none; }
.edu-route ol { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.edu-route li { display: grid; justify-items: center; padding: 0 14px; text-align: center; }
.edu-route li:nth-child(odd) { margin-top: 56px; }
.edu-route li:nth-child(even) { margin-top: 26px; }
.edu-route-stop { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border: 2px solid var(--navy); border-radius: 50%; background: var(--white); color: var(--navy); font-size: 18px; font-weight: 700; box-shadow: 0 0 0 6px var(--white); }
.edu-route h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.03em; }
.edu-route p { max-width: 250px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@keyframes edu-route-draw { from { stroke-dashoffset: 1; } }
.edu-route-done { stroke-dasharray: 1 1; }
.lit .edu-route-done { animation: edu-route-draw 2.4s .2s cubic-bezier(.45, 0, .25, 1) both; }
.lit .edu-route-stop { animation: ev-pop .4s calc(.2s + var(--i) * .6s) both; }
@keyframes edu-loop-in { from { opacity: 0; } }
.lit .edu-route-loop { animation: edu-loop-in .6s 2.4s both; }

.edu-see { padding-bottom: 20px; }

.edu-view {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(36px, calc(5vw / var(--zoom)), 76px); align-items: center;
  width: min(var(--page-max), calc(100% - 100px)); margin: auto; padding: 36px 0 64px;
}
.edu-view.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.edu-view.flip .edu-view-art { order: 2; }
.edu-view-copy h3 { margin: 0 0 14px; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.edu-view-copy p { max-width: 440px; margin: 0; color: var(--muted); font-size: var(--text); line-height: 1.55; }
/* WHERE IN A TUTORING WEEK each view serves, at its head: the same three moments over every
   view, the one it serves marked. */
.edu-guide { display: flex; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.edu-guide li { position: relative; flex: 1; padding-top: 20px; color: var(--faint); font-size: 13px; font-weight: 600; }
.edu-guide li::before { content: ""; position: absolute; top: 3px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.edu-guide li:not(:last-child)::after { content: ""; position: absolute; top: 8px; left: 18px; right: 8px; border-top: 1.5px dotted var(--line); }
.edu-guide li.here { color: var(--accent-deep); font-size: 15px; font-weight: 700; }
.edu-guide li.here::before { background: var(--accent-deep); box-shadow: 0 0 0 4px var(--accent-soft); }

/* THE APP, at card scale. */
.ev-app { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 34px 70px -44px rgba(16, 32, 43, .55); font-size: 13px; line-height: 1.45; color: var(--ink); text-align: start; }
.ev-panel, .ev-body { padding: 20px 24px; }
.ev-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.ev-hd em { color: var(--muted); font-style: normal; font-size: 10px; }
.ev-label { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.ev-btns b { display: inline-grid; place-items: center; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; white-space: nowrap; }
.ev-strip { display: flex; gap: 8px; padding: 14px 24px 0; }
.ev-verb { display: inline-grid; place-items: center; padding: 6px 13px; border: 1px solid var(--ink); border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ev-th, .ev-tr { display: grid; grid-template-columns: 1.3fr 1.15fr .85fr 1.35fr auto; gap: 12px; align-items: center; }
.ev-person { display: grid; gap: 1px; }
.ev-person strong { color: var(--accent-deep); font-weight: 600; }
.ev-person small { color: var(--muted); font-size: 10.5px; }
.ev-activity { display: grid; gap: 5px; }
.ev-activity-when { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ev-activity-when i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.ev-activity.fresh .ev-activity-when i { background: var(--verdict-ok); }
.ev-activity.cooling .ev-activity-when i { background: #b58300; }
.ev-activity.quiet .ev-activity-when i { background: var(--verdict-no); }
.ev-activity-days { display: flex; gap: 2.5px; }
.ev-activity-days i { width: 8px; height: 8px; border-radius: 2px; background: #eef1f4; }
.ev-activity-days i.on { background: var(--navy-2); }
.ev-activity-days i:last-child { outline: 1px solid var(--line); outline-offset: 1px; }
.ev-th { padding: 0 2px 7px; color: var(--muted); font-size: 9.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.ev-tr { padding: 10px 2px; border-top: 1px dotted var(--line); font-size: 12.5px; }
.ev-btns { display: flex; gap: 5px; }
.ev-btns b { position: relative; padding: 4px 11px; font-size: 11.5px; }
.ev-cursor { position: absolute; left: 55%; top: 55%; width: 18px; height: 22px; pointer-events: none; opacity: 0; }

.ev-note { display: flex; align-items: center; gap: 9px; padding: 9px 18px; background: var(--navy); color: var(--white); font-size: 12px; }
.ev-note svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #e29ab0; stroke-width: 1.6; }
.ev-q { display: flex; gap: 9px; align-items: baseline; margin: 0 0 12px; font-size: 13.5px; }
.ev-qn { flex: none; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font-size: 10px; font-weight: 700; }
.ev-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.ev-opts span { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.ev-opts b { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; }
.ev-opts svg, .ev-mark svg { width: 15px; height: 15px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-opts .ok { border-color: var(--verdict-ok); color: var(--verdict-ok); }
.ev-opts .ok b { border-color: var(--verdict-ok); }
.ev-opts .no { border-color: var(--verdict-no); background: #fbecea; color: var(--verdict-no); }
.ev-opts .no b { border-color: var(--verdict-no); background: var(--verdict-no); color: var(--white); }
.ev-fb { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px dotted var(--line); }
.ev-find { position: relative; isolation: isolate; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; border-top: 1px dotted var(--line); }
/* The walk's highlight, under the row and a little wider, so the row keeps its own lines. */
.ev-find::before { content: ""; position: absolute; inset: 0 -6px; z-index: -1; border-radius: 6px; background: var(--sea); opacity: 0; }
/* A finding's verdict colours its pin in the list and its outline and pin on the photograph. */
:is(.ev-find, .ev-region) { --v: var(--verdict-no); }
:is(.ev-find, .ev-region).ok { --v: var(--verdict-ok); }
.ev-find p { margin: 0; font-size: 12px; line-height: 1.45; }
.ev-pin { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--v); border-radius: 50%; background: var(--white); color: var(--v); font-size: 10px; font-weight: 700; }
.ev-mark { display: grid; place-items: center; width: 18px; height: 18px; }
.ev-mark svg { margin: 0; }
.ev-mark.ok { color: var(--verdict-ok); }
.ev-mark.no { color: var(--verdict-no); }
.ev-page { align-self: start; overflow: hidden; aspect-ratio: 1086 / 600; border: 1px solid var(--line); border-radius: 8px; }
/* The page shows its working band: the sheet is drawn from a quarter of the way down. */
.ev-sheet { position: relative; margin-top: -33%; }
.ev-sheet img { display: block; width: 100%; height: auto; }
.ev-region { position: absolute; border: 2px solid var(--v); border-radius: 4px; }
.ev-region .ev-pin { position: absolute; top: -10px; left: -10px; }

.ev-stats { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 16px; }
.ev-dial { display: block; width: 150px; height: 150px; }
.ev-dial circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ev-dial-track { stroke: #e7edf2; }
.ev-dial-fill { stroke: var(--navy-2); }
.ev-dial-score { font-family: var(--serif); font-size: 30px; font-weight: 600; text-anchor: middle; fill: var(--ink); }
.ev-dial-sub { font-size: 6.5px; font-weight: 650; letter-spacing: .1em; text-anchor: middle; fill: var(--muted); }
.ev-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ev-tiles div { padding: 10px 12px; border-radius: 8px; background: var(--paper); }
.ev-tiles strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.1; }
.ev-tiles small { font-family: inherit; font-size: 10px; color: var(--muted); }
.ev-tiles span { color: var(--muted); font-size: 9.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.ev-tiles .up strong { color: var(--verdict-ok); }
.ev-skills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ev-skill { display: grid; align-content: start; justify-items: center; gap: 6px; text-align: center; }
.ev-skill-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--white); }
.ev-skill-ic svg { width: 22px; height: 22px; }
.ev-bar { width: 100%; height: 4px; overflow: hidden; border-radius: 99px; background: #e7edf2; }
.ev-bar i { display: block; width: var(--pct); height: 100%; border-radius: inherit; background: var(--navy-2); }
.ev-chip { padding: 1px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.ev-chip.up { background: #e3f1e9; color: var(--verdict-ok); }
.ev-chip.down { background: #fbecea; color: var(--verdict-no); }
.ev-skill-name { font-size: 10px; line-height: 1.3; color: var(--ink); }

/* PLAYED while on screen. */
@keyframes ev-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes ev-draw { from { opacity: 0; transform: scale(1.12); } }
@keyframes ev-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes ev-fill { from { width: 0; } }
@keyframes ev-arc { from { stroke-dashoffset: var(--from); } }
@keyframes ev-cursor {
  0% { opacity: 0; transform: translate(150px, 90px); }
  15% { opacity: 1; }
  65% { transform: translate(0, 0); }
  78% { transform: translate(0, 0) scale(.86); }
  90%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes ev-press { 0%, 100% { background: var(--white); color: var(--ink); } 25%, 75% { background: var(--ink); color: var(--white); } }
.lit .ev-tr { animation: ev-in .45s calc(.15s + var(--i) * .12s) both; }
.lit .ev-activity-days i.on { animation: ev-pop .3s calc(.5s + var(--i) * .05s) both; }
/* The list's story, once: the cursor opens the first student. */
.lit .ev-open .ev-cursor { animation: ev-cursor 2s 2.2s both; }
.lit .ev-open { animation: ev-press .6s 3.6s both; }
/* DURING: once drawn, the review walks the findings in turn, a third of the loop each, the row
   and its outline on the photograph lit together, as a tutor goes through them. */
@keyframes ev-walk-row { 0%, 34%, 100% { opacity: 0; } 4%, 30% { opacity: 1; } }
@keyframes ev-walk-box { 0%, 34%, 100% { box-shadow: 0 0 0 0 transparent; } 4%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--v) 35%, transparent); } }
.lit .ev-find { animation: ev-in .5s calc(.5s + var(--i) * .9s) both; }
.lit .ev-find::before { animation: ev-walk-row 9s calc(3.4s + var(--i) * 3s) infinite; }
.lit .ev-region { animation: ev-draw .5s calc(.5s + var(--i) * .9s) both, ev-walk-box 9s calc(3.4s + var(--i) * 3s) infinite; }
.lit .ev-region .ev-pin { animation: ev-pop .35s calc(.75s + var(--i) * .9s) both; }
/* BEFORE THE SESSION: both screens share one cell, so the drawing is as tall as the taller. The
   cursor opens the first student and the Progress page slides in over the list and stays; its
   dial, bars and chips play once it is in. Without motion the Progress page stands. */
.ev-pair { display: grid; }
.ev-pair > .ev-screen { grid-area: 1 / 1; position: relative; }
.ev-pair > .ev-progress { background: var(--white); }
@keyframes ev-slide { from { transform: translateX(102%); } }
.lit .ev-pair > .ev-progress { animation: ev-slide .6s 4.4s cubic-bezier(.22, 1, .36, 1) both; }
.lit .ev-dial-fill { animation: ev-arc 1.4s 5.1s cubic-bezier(.22, 1, .36, 1) both; }
.lit .ev-bar i { animation: ev-fill 1s calc(5.3s + var(--i) * .12s) cubic-bezier(.22, 1, .36, 1) both; }
.lit .ev-chip { animation: ev-pop .35s calc(5.9s + var(--i) * .12s) both; }
/* TUTOR NOTES, as the app's notes page draws them (App.css `.tn-*`): each note under a dotted
   rule, its day with Edit and Delete, then its parts, the tutor's own locked and muted. */
.ev-tn-title { align-items: center; }
.ev-tn-title .ev-verb { letter-spacing: var(--track); text-transform: none; }
.ev-tn-list { margin: 0; padding: 0; list-style: none; }
.ev-tn { padding: 12px 0; border-top: 1px dotted var(--ink); }
.ev-tn:first-child { border-top: 0; padding-top: 0; }
.ev-tn-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.ev-tn-head strong { font-weight: 600; }
.ev-tn-head span { display: inline-flex; gap: 5px; }
.ev-tn-head b { padding: 2px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 10.5px; font-weight: 600; }
.ev-tn-part + .ev-tn-part { margin-top: 8px; }
.ev-tn-part span { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ev-tn-part span svg { width: 9px; height: 9px; }
.ev-tn-part p { margin: 2px 0 0; }
.ev-tn-part.own p { color: var(--muted); }
/* AFTER: site.js writes the newest note, as the app does it (`[data-write]`). While it writes
   (`.writing`) the characters wait; the cursor presses "Add a note" (`.pressing`), the dialog
   opens over the list (`.open`, the note leaving it behind the scrim), each part types into its
   field (`.t` shows a character, `.at` carries the caret), the cursor presses Save (`.saving`, for
   `--press`, set from site.js), the dialog shuts and the note is back. Without JS or motion the
   note stands and the dialog is shut. */
.ev-add, .ev-save { position: relative; }
.ev-tn.new { transition: opacity .35s ease, transform .35s ease; }
[data-write].open .ev-tn.new { opacity: 0; transform: translateY(-6px); }
.ev-dialog { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(20, 20, 20, .32); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
[data-write].open .ev-dialog { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.ev-modal { display: grid; gap: 9px; width: min(540px, 100%); padding: 16px 18px; border-radius: 12px; background: var(--white); box-shadow: 0 24px 50px -24px rgba(16, 32, 43, .6); transform: translateY(8px); transition: transform .25s ease; }
[data-write].open .ev-modal { transform: none; }
.ev-modal > strong { font-size: 14px; }
.ev-dl-label { display: grid; gap: 4px; font-size: 11px; font-weight: 600; }
/* The two parts as the app's textareas, boxed; the day as its date input, ruled underneath. */
.ev-field { display: block; min-height: 30px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; font-weight: 400; transition: border-color .2s ease; }
/* As tall, for the dialog, as the app's fields are for its card (a quarter of the screen each). */
.ev-field[data-type] { min-height: 96px; }
.ev-field.ev-day { min-height: 0; padding: 4px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; }
.ev-field.on { border-color: var(--ink); }
[data-write].writing [data-type] > span:not(.t) { visibility: hidden; }
[data-write].writing [data-type] > span.at { position: relative; }
[data-write].writing [data-type] > span.at::after { content: ""; position: absolute; top: .1em; bottom: .05em; right: -1.5px; width: 1.5px; background: var(--ink); animation: ev-caret 1s steps(1) infinite; }
@keyframes ev-caret { 50% { opacity: 0; } }
.ev-modal-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.ev-modal-acts b { padding: 6px 14px; border: 1px solid var(--ink); border-radius: 99px; font-size: 11.5px; font-weight: 600; }
.ev-modal-acts .ev-save { background: var(--ink); color: var(--white); }
/* A press: the cursor comes in from `--from`, taps, and goes; the button gives under it. */
@keyframes ev-click {
  0% { opacity: 0; transform: var(--from); }
  15% { opacity: 1; }
  60% { transform: translate(0, 0); }
  70% { transform: translate(0, 0) scale(.86); }
  80% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes ev-tap { 0%, 66%, 84%, 100% { transform: none; } 70%, 80% { transform: scale(.94); } }
.ev-add .ev-cursor { --from: translate(-150px, 80px); }
.ev-save .ev-cursor { --from: translate(-170px, -60px); }
[data-write].pressing .ev-add, [data-write].saving .ev-save { animation: ev-tap var(--press) both; }
[data-write].pressing .ev-add .ev-cursor, [data-write].saving .ev-save .ev-cursor { animation: ev-click var(--press) both; }

/* From 1150px down the page gutter (`.section`) is 35px, too narrow for the card to reach past the
   film's edge. */
@media (max-width: 1150px) {
  .edu-hero-card { right: 16px; bottom: 16px; }
}
@media (max-width: 1000px) {
  .edu-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media" "act"; row-gap: 24px; padding-top: 25px; }
  .edu-hero .hero-media, .edu-exams { max-width: 720px; }
  .edu-hero-go { margin-top: 0; }
  .edu-why { grid-template-columns: minmax(0, 1fr); }
  .edu-route-line, .edu-route-loop { display: none; }
  .edu-route-note { display: block; margin: 16px 0 0; color: var(--accent-deep); font-size: 14px; font-weight: 650; }
  .edu-route ol { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 2px dotted var(--navy-mid); margin-left: 22px; }
  .edu-route li, .edu-route li:nth-child(odd), .edu-route li:nth-child(even) { grid-template-columns: auto minmax(0, 1fr); justify-items: start; column-gap: 18px; margin: 0 0 26px -24px; padding: 0; text-align: start; }
  .edu-route-stop { grid-row: span 2; margin: 0; }
  .edu-route h3 { align-self: end; }
  .edu-view, .edu-view.flip { grid-template-columns: minmax(0, 1fr); width: min(1280px, calc(100% - 48px)); padding: 24px 0 48px; }
  .edu-view.flip .edu-view-art { order: 0; }
  .ev-skills { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 600px) {
  /* On phones the card hangs off the film's lower edge rather than covering it. */
  .edu-hero-card { position: relative; right: auto; bottom: auto; margin: -40px 16px 0 auto; }
  .edu-exam-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-panel, .ev-body { padding: 16px; }
  .ev-th { display: none; }
  .ev-tr { grid-template-columns: minmax(0, 1fr) auto; }
  .ev-tr > span:nth-child(2), .ev-tr > span:nth-child(3) { display: none; }
  .ev-tr .ev-activity { grid-column: 1; }
  .ev-strip { padding: 12px 16px 0; }
  .ev-fb, .ev-stats { grid-template-columns: minmax(0, 1fr); }
  .ev-page { order: -1; }
  .ev-dial { margin: auto; }
  .edu-guide li.here { font-size: 13px; }
}

/* The way on from an exam page's results to its offer at a glance (home.mjs `howCue`): the homepage's
   "Find your exam" pill on its hairline, but its arrow does not wait for a hover. It drops out
   through the disc and comes back in from the top, again and again, so the page says "down"
   without a word more. The section under it draws no rule: the hairline is the divide. */
/* It sits close under the results and well clear of the offer it leads to (the owner's call
   2026-11-08: midway, it read as part of the cards). */
.how-cue {
  margin-top: calc(var(--section-pad) * -0.68);
  padding-block: 0;
}
/* The path moves, not the svg, as the homepage's nudge does: an animated svg inside the round
   clip is drawn on a layer of its own, which the clip loses at rest. */
.how-cue .home-explore-mark path {
  animation: how-drop 3.4s cubic-bezier(0.6, 0, 0.3, 1) 0.8s infinite;
}
/* A hover runs the homepage pill's own quicker drop, so the idle one stands down. */
@media (hover: hover) {
  .how-cue .home-explore:hover .home-explore-mark path {
    animation: none;
  }
}
@keyframes how-drop {
  0%, 46% { transform: none; }
  60% { transform: translateY(32px); }
  60.01% { transform: translateY(-32px); }
  76%, 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .how-cue .home-explore-mark path {
    animation: none;
  }
}
/* A phone's row is narrower than the line: it wraps inside the pill, set to running text. */
@media (max-width: 620px) {
  .how-cue .home-explore {
    /* The pill is `flex: none` on the homepage; here it has to shrink, or it never wraps. */
    flex-shrink: 1;
    min-width: 0;
    font-size: var(--text);
    white-space: normal;
    text-align: start;
  }
}

/* What an exam page offers, at a glance (home.mjs `offer`): four cards side by side, each a
   drawn plate over its promise, and each a link down to its section. The plates are pictures,
   not numbers: the bank's papers with its count, a working marked step by step, the route
   from the ship to the lighthouse with the rise, a price tag. The working and the tag play
   each time the section comes on screen (`lit`). The
   `howCue` pill above is their heading. */
.section.exam-offer { padding-top: calc(var(--section-pad) * .88); }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.offer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 12px 12px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s, box-shadow .35s, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.offer:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.offer-plate { position: relative; display: block; height: 176px; overflow: hidden; border-radius: 9px; background: var(--sea); }
.offer-text { display: grid; gap: 9px; padding-inline: 8px; }
.offer-text strong { color: var(--ink); font-size: var(--lead); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.offer-num { color: var(--accent-deep); }
.offer-text > span { color: var(--muted); font-size: var(--text); line-height: 1.55; }
/* Each card's way down to its own section: the pill above them, small, outlined until the card
   is hovered. */
.offer-go { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin: auto 8px 0; padding-block: 5px; padding-inline: 16px 5px; border: 1px solid var(--accent-deep); border-radius: 999px; color: var(--accent-deep); font-size: var(--text); font-weight: 600; letter-spacing: -.01em; transition: background .25s, color .25s; }
.offer-go svg { box-sizing: border-box; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--accent-deep); color: var(--white); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: background .25s, color .25s; }
@media (hover: hover) {
  .offer:hover { border-color: var(--navy-mid); box-shadow: 0 22px 40px -30px rgba(16, 32, 43, .55); transform: translateY(-3px); }
  .offer:hover .offer-go { background: var(--accent-deep); color: var(--white); }
  .offer:hover .offer-go svg { background: var(--white); color: var(--accent-deep); }
}
.offer-figure { position: absolute; display: grid; gap: 2px; }
.offer-figure b { color: var(--ink); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.offer-figure small { color: var(--muted); font-size: var(--note); }

/* The bank: three question papers fanned from their foot, each headed in the exam's ink, beside
   the count. A row, so the count never runs into the fan however narrow the card. */
.offer-questions .offer-plate { display: flex; align-items: center; justify-content: center; gap: 12px; }
.offer-papers { position: relative; flex: none; align-self: flex-end; width: 96px; height: 128px; margin: 0 28px -26px; transform-origin: 50% 100%; }
.offer-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 30px 14px 0;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(16, 32, 43, .14);
  transform: rotate(calc(var(--i) * 12deg));
  transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.offer-sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 16px; border-radius: 5px 5px 0 0; background: var(--exam-ink); }
.offer-sheet i { display: block; height: 3px; border-radius: 2px; background: var(--line); }
.offer-sheet i:nth-child(2n) { width: 72%; }
.offer-questions .offer-figure { position: static; min-width: 0; }
@media (hover: hover) {
  .offer-questions:hover .offer-sheet { transform: rotate(calc(var(--i) * 18deg)); }
}

/* The feedback: a working of three handwritten steps, the first two ticked, the third ringed in
   clay where it went wrong. */
.offer-working { position: absolute; inset: 24px 15% 0; display: grid; align-content: start; gap: 14px; padding: 22px 20px; border-radius: 6px 6px 0 0; background: var(--white); box-shadow: 0 4px 14px rgba(16, 32, 43, .1); }
/* Each step is written, then marked, then the next is written. */
.offer-step { --at: 0s; display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 14px; }
.offer-step svg { width: 100%; height: 14px; }
.offer-hand { fill: none; stroke: var(--navy-2); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; }
.offer-step-wrong .offer-hand { stroke: var(--accent-deep); }
.offer-step i { position: relative; width: 22px; height: 22px; border-radius: 50%; }
.offer-step-right i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--navy-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.offer-step-wrong i { border: 2px solid var(--accent-deep); }
.offer-step-wrong i::before, .offer-step-wrong i::after { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 2px; border-radius: 1px; background: var(--accent-deep); transform: rotate(45deg); }
.offer-step-wrong i::after { transform: rotate(-45deg); }
.offer-step:nth-child(2) { --at: .55s; }
.offer-step:nth-child(3) { --at: 1.1s; }
.exam-offer.lit .offer-hand { animation: offer-write .7s ease-out var(--at) both; }
.exam-offer.lit .offer-step i { animation: offer-mark .45s cubic-bezier(.22, 1, .36, 1) calc(var(--at) + .5s) both; }
@keyframes offer-write { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes offer-mark { from { opacity: 0; transform: scale(.4); } }

/* The plan: the dotted route from the ship past one buoy to the lighthouse, and the rise at the
   end of it. The route's ends sit where the marks are, as shares of the plate. */
.offer-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.offer-route path { fill: none; stroke: var(--navy-deep); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 .028; vector-effect: non-scaling-stroke; }
.offer-ship, .offer-light, .offer-buoy { position: absolute; translate: -50% -50%; color: var(--navy-2); }
.offer-ship { left: 9.3%; top: 76%; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.offer-light { left: 90.7%; top: 20%; }
.offer-ship .hb-ic, .offer-light .hb-ic { display: block; width: 34px; height: 34px; }
.offer-buoy { left: 53.3%; top: 50%; width: 12px; height: 12px; border: 2px solid var(--navy-2); border-radius: 50%; background: var(--white); }
.offer-rise { left: 9%; top: 16%; }
.offer-rise b { color: var(--accent-deep); }
@media (hover: hover) {
  .offer-plan:hover .offer-ship { transform: translate(14px, -6px); }
}

/* The price: a price tag, the comparable offer struck through over our price a month. It swings
   from its eyelet when it comes on screen and on a hover. */
.offer-value .offer-plate { display: grid; place-items: center; }
.offer-tag {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 16px 26px 16px 44px;
  border-radius: 8px 14px 14px 8px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(16, 32, 43, .14);
  rotate: -6deg;
  transform-origin: 20px 50%;
}
/* The eyelet the string runs through, on an edge in the exam's ink. */
.offer-tag::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; border-radius: 8px 0 0 8px; background: var(--exam-ink); }
.offer-tag::after { content: ""; position: absolute; top: 50%; left: 18px; width: 10px; height: 10px; translate: 0 -50%; border: 2px solid var(--navy-deep); border-radius: 50%; background: var(--sea); }
.offer-tag s { color: var(--muted); font-size: var(--text); font-weight: 500; text-decoration-color: var(--accent-deep); text-decoration-thickness: 2px; }
.offer-tag b { color: var(--accent-deep); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.offer-tag small { color: var(--muted); font-size: var(--note); }
.exam-offer.lit .offer-tag { animation: offer-swing 1.6s ease-in-out .2s both; }
@media (hover: hover) {
  .offer-value:hover .offer-tag { animation: offer-swing 1.6s ease-in-out both; }
}
@keyframes offer-swing { 0%, 100% { rotate: -6deg; } 30% { rotate: 4deg; } 60% { rotate: -9deg; } 80% { rotate: -4deg; } }

/* Four fit side by side only from a wide screen, where each body stays within four lines; a
   laptop's width takes them two by two. */
@media (max-width: 1359px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A phone keeps every body but tightens the card: a lower plate, its drawing moved to the left,
   and the link set on the plate's bottom right corner instead of on a row of its own. The plates
   are pictures, so they keep this one layout in a right-to-left page too: the plan's route is not
   mirrored, and the link must clear its ship. The link is 38px tall and sits 8px inside the
   plate, which starts 12px into the card. */
@media (max-width: 620px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* Every drawing keeps to the plate's top 74px or its left 40%; the link takes the corner. */
  .offer { --plate-h: 120px; position: relative; gap: 16px; padding-bottom: 20px; }
  .offer-plate { height: var(--plate-h); direction: ltr; }
  .offer-go { position: absolute; top: calc(var(--plate-h) - 34px); right: 20px; margin: 0; padding-inline: 12px 5px; gap: 8px; background: var(--white); font-size: var(--note); }
  .offer-go svg { width: 26px; height: 26px; padding: 6px; }
  .offer-questions .offer-plate { justify-content: flex-start; }
  .offer-questions .offer-figure { position: absolute; top: 10px; right: 14px; justify-items: end; }
  .offer-figure b { font-size: 30px; }
  .offer-papers { scale: .7; margin-inline: 14px -8px; }
  .offer-working { inset: 14px auto 0 16px; width: 40%; gap: 9px; padding: 14px 12px; }
  .offer-value .offer-plate { place-items: start; padding: 10px 0 0 22px; }
  .offer-tag { padding: 6px 16px 6px 34px; }
  .offer-tag::after { left: 13px; }
  .offer-tag s { font-size: var(--note); }
  .offer-tag b { font-size: 24px; }
  .offer-rise { top: 10%; }
}
/* The narrowest phones give a longer link label room beside the papers, the sheet and the tag. */
@media (max-width: 380px) {
  .offer-papers { scale: .6; margin-inline: 6px -16px; }
  .offer-value .offer-plate { padding-inline-start: 14px; }
  .offer-tag { scale: .9; transform-origin: 0 0; }
  .offer-working { width: 34%; }
}
@media (prefers-reduced-motion: reduce) {
  .offer, .offer-sheet, .offer-ship { transition: none; }
  .offer-value:hover .offer-tag { animation: none; }
}

/* The page comes in as it scrolls (site.js): a block below the first screen waits unseen and a
   little low, then rises in as it reaches the screen. `translate`, not `transform`, so a
   block's own transform is left alone. On screen only: a printed page shows everything. */
@media screen {
  .js .is-waiting {
    opacity: 0;
    translate: 0 28px;
    /* Hidden controls must wait for the entrance before accepting pointer input.
       Keyboard focus still reveals the block through the focusin handler. */
    pointer-events: none;
  }
}
.js .is-arriving {
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--arrive-delay, 0s),
    translate 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--arrive-delay, 0s);
}
/* A coming-soon exam's button (see .soon-tag). Last in the sheet, so it outranks every
   placement's own button colours (the hero's, the pricing's, a guide's). */
.button.is-soon { border-color: var(--line-2); background: var(--fill); color: var(--muted); pointer-events: none; }
/* A coming-soon card is never lit: it opens nothing. */
:is(.home-exam, .edu-exam).is-soon { --on: 0; }
.home-exam.is-soon .home-exam-go { justify-content: center; border-color: var(--line-2); background: var(--fill); color: var(--muted); }
