/* ==========================================================================
   ExamStudyAid, the site (v5): the information, navigation, account and billing pages.
   docs/redesign/SITE-DESIGN.md is the system's own description; the homepage prototype it comes from is
   ~/examstudyaid-revamp. Apple's rhythm: black where the product is shown, light where it is chosen.
   The type, the tokens, the bar, the menu, the buttons and the footer are in chrome.css (loaded first), which
   the study area loads too (docs/redesign/STUDY-DESIGN.md): one bar and one footer on every page.
   ========================================================================== */

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--gn-h);
  background: var(--snow);
  interpolate-size: allow-keywords;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body.site {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--snow);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:where(.site) h1,
:where(.site) h2,
:where(.site) h3,
:where(.site) h4,
:where(.site) p,
:where(.site) ul,
:where(.site) ol,
:where(.site) figure,
:where(.site) dl,
:where(.site) dd {
  margin: 0;
}
:where(.site) ul,
:where(.site) ol {
  padding: 0;
  list-style: none;
}
:where(.site) h1,
:where(.site) h2,
:where(.site) h3 {
  font-weight: 620;
  font-stretch: 106%;
  text-wrap: balance;
}
:where(.site) p,
:where(.site) li {
  text-wrap: pretty;
}
:where(.site) a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
:where(.site) button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:where(.site) svg {
  display: block;
}
:where(.site) img {
  display: block;
  max-width: 100%;
}
::selection {
  background: rgb(23 91 232 / 0.18);
}
:where(.site) :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
:where(.site) [data-tone="dark"] :focus-visible,
.site .gn.is-dark :focus-visible {
  outline-color: var(--blue-on-night);
}
:where(.site) [hidden] {
  display: none !important;
}
/* ==========================================================================
   Sections. A page alternates black and light bands; the bar follows them (data-tone).
   ========================================================================== */
.band {
  padding: var(--sec) 0;
  background: var(--snow);
}
.band-mist {
  background: var(--mist);
}
.band-white {
  background: var(--white);
}
.band-dark {
  background: var(--night);
  color: var(--on-night);
}
.band-tight {
  padding: clamp(64px, 8vw, 112px) 0;
}
/* a band that carries on straight from the opening above it (a list a student came to pick from) */
.band-follow {
  padding-top: clamp(40px, 5vw, 72px);
}
.band + .band:not(.band-dark):not(.band-mist):not(.band-white) {
  padding-top: 0;
}

/* a page's opening: a black band, its title large, a line under it, the page's actions */
.hero {
  padding: calc(var(--gn-h) + clamp(64px, 10vw, 140px)) 0 clamp(72px, 9vw, 128px);
  background: var(--night);
  color: var(--on-night);
}
.hero-light {
  background: var(--snow);
  color: var(--ink);
}
.hero-in {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
  max-width: 980px;
}
.hero-center .hero-in {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}
.hero-kicker {
  font-size: 17px;
  font-weight: 600;
}
.hero-kicker a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.hero-title {
  font-size: clamp(46px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.038em;
}
/* on a 320 phone a long word at 46px (ExamStudyAid, on About) was wider than the column and pushed the page sideways
   (the nitpick check, 2026-11-27) */
@media (max-width: 359px) {
  .hero-title {
    font-size: 40px;
  }
}
.hero-title-md {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.036em;
}
.hero-lead {
  max-width: 34em;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-center .hero-actions {
  justify-content: center;
}
@media (max-width: 559px) {
  .hero-actions,
  .close-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }
}

/* a section's own head */
.sec-head {
  display: grid;
  gap: 20px;
  max-width: 980px;
}
.sec-head + * {
  margin-top: clamp(40px, 5vw, 64px);
}
.sec-title {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.036em;
}
.sec-title-sm {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sec-text {
  max-width: 32em;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
}
.eyebrow {
  font-size: 15px;
  font-weight: 650;
}

/* ---------- course lists: a board, its subjects as rows, the syllabus code at the end ---------- */
.boards {
  display: grid;
  gap: 0 64px;
}
@media (min-width: 820px) {
  .boards {
    grid-template-columns: 1fr 1fr;
  }
  .boards-one {
    grid-template-columns: 1fr;
  }
}
.board {
  padding-top: 28px;
}
.board-wide {
  grid-column: 1 / -1;
}
.board-name {
  font-size: 24px;
  font-weight: 620;
  font-stretch: 106%;
  letter-spacing: -0.02em;
}
.board-name .board-count {
  display: inline;
}
.board-name span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0;
}
.board-name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.board ul {
  margin-top: 14px;
}
.board-wide ul {
  display: grid;
  column-gap: 64px;
}
@media (min-width: 820px) {
  .board-wide ul {
    grid-template-columns: 1fr 1fr;
  }
}
.row-link {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 550;
  transition: color 0.15s;
}
.row-link > span:not(.cover) {
  display: grid;
  gap: 2px;
}
.row-link small {
  font-size: 14.5px;
  font-weight: 400;
}
.row-link em,
.row-link .row-code {
  flex: none;
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
}
.row-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
a.row-link:hover {
  color: var(--blue-text);
}
a.row-link:hover::after,
a.row-link:focus-visible::after {
  transform: scaleX(1);
}
.row-link.is-soon {
  cursor: default;
}
.row-link.is-soon > span:not(.cover) {
  color: #6e6e73;
}
.row-soon {
  flex: none;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--mist);
  font-size: 13px;
  font-weight: 600;
}
.band-dark .row-link,
.band-dark .board-name {
  border-color: var(--night-line);
}
.band-dark a.row-link:hover {
  color: var(--blue-on-night);
}

/* a subject row's second line (what the subject holds), and a row that is not open yet, in a quiet ink that keeps
   AA contrast (#6e6e73 on white is 5:1) rather than a fade */
.row-link .row-meta {
  font-size: 14.5px;
  font-weight: 400;
}
.row-link.is-soon .row-code {
  color: #6e6e73;
}
/* a board's own page: its subjects in two columns on a wide screen */
.rows-grid {
  display: grid;
  column-gap: 64px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .rows-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.board-soon {
  margin-top: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: #6e6e73;
}
.board-switch {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 17px;
  line-height: 1.5;
}
.board-more {
  display: inline-flex;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-text);
}
.board-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.band-dark .board-more {
  color: var(--blue-on-night);
}

/* the subject index: one row a programme, its subjects named under it, the whole row one link */
.progs {
  border-top: 1px solid var(--line);
}
.prog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 40px;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.prog::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
a.prog:hover::after,
a.prog:focus-visible::after {
  transform: scaleX(1);
}
.prog-name {
  display: block;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 620;
  font-stretch: 106%;
  line-height: 1;
  letter-spacing: -0.038em;
  transition: color 0.2s;
}
a.prog:hover .prog-name {
  color: var(--blue-text);
}
.prog-qual {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
}
.prog-subjects {
  display: block;
  max-width: 44em;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
}
/* the programme's subjects as a small fanned stack of their covers; pointing at the row spreads them */
.prog-side {
  display: grid;
  justify-items: end;
  gap: 18px;
}
.prog-covers {
  display: flex;
  padding: 6px 6px 0;
}
.prog-covers .cover {
  margin-left: -16px;
  transform: rotate(var(--fan, 0deg));
  transform-origin: 50% 100%;
  transition:
    transform 0.5s var(--ease),
    margin 0.5s var(--ease);
}
.prog-covers .cover:first-child {
  margin-left: 0;
}
.prog-covers .cover:nth-child(1) {
  --fan: -7deg;
}
.prog-covers .cover:nth-child(2) {
  --fan: -3.5deg;
}
.prog-covers .cover:nth-child(4) {
  --fan: 3.5deg;
}
.prog-covers .cover:nth-child(5) {
  --fan: 7deg;
}
.prog-covers .cover:only-child {
  --fan: -3deg;
}
a.prog:hover .prog-covers .cover,
a.prog:focus-visible .prog-covers .cover {
  margin-left: -8px;
}
a.prog:hover .prog-covers .cover:first-child,
a.prog:focus-visible .prog-covers .cover:first-child {
  margin-left: 0;
}
@media (max-width: 699px) {
  .prog-side {
    justify-items: start;
    gap: 14px;
  }
  .prog-covers {
    order: -1;
    padding: 4px 0 0;
  }
}
.prog-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.prog-go svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
a.prog:hover .prog-go svg {
  transform: translateX(4px);
}
@media (max-width: 699px) {
  .prog {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* a shorter opening, for the pages a student passes through on the way to a course */
.hero-compact {
  padding: calc(var(--gn-h) + clamp(44px, 6vw, 88px)) 0 clamp(48px, 6vw, 88px);
}

/* ---------- subject covers (site/includes/cover.html): a subject drawn as a flat book cover in its own hue, its glyph
   and its syllabus code; a picture, so the code is drawn here from data-code and adds no words to the page ---------- */
.cover {
  --hue: var(--blue);
  position: relative;
  display: inline-block;
  flex: none;
  width: 40px;
  aspect-ratio: 3 / 4;
  border-radius: 3px 6px 6px 3px;
  background: var(--hue);
  color: #fff;
  box-shadow:
    inset 3px 0 0 rgb(255 255 255 / 0.16),
    0 1px 1px rgb(11 13 18 / 0.1),
    0 8px 16px -10px rgb(11 13 18 / 0.55);
  overflow: hidden;
}
.cover-glyph {
  position: absolute;
  top: 7px;
  left: 9px;
  width: 14px;
  height: 14px;
}
.cover[data-code]::after {
  content: attr(data-code);
  position: absolute;
  right: 4px;
  bottom: 6px;
  left: 9px;
  overflow: hidden;
  font: 700 8.5px/1 var(--font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cover.is-soon {
  --hue: #c4c6ce;
  box-shadow: inset 3px 0 0 rgb(255 255 255 / 0.22);
}
.cover-stack {
  width: 52px;
}
.cover-stack .cover-glyph {
  top: 9px;
  left: 11px;
  width: 17px;
  height: 17px;
}
.cover-stack[data-code]::after {
  bottom: 8px;
  left: 11px;
  font-size: 10px;
}
.cover-hero {
  width: 96px;
  border-radius: 5px 11px 11px 5px;
  box-shadow:
    inset 5px 0 0 rgb(255 255 255 / 0.16),
    0 1px 2px rgb(11 13 18 / 0.12),
    0 22px 40px -22px rgb(11 13 18 / 0.6);
}
.cover-hero .cover-glyph {
  top: 15px;
  left: 17px;
  width: 26px;
  height: 26px;
}
.cover-hero[data-code]::after {
  bottom: 14px;
  left: 17px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.cover-wall {
  width: 100%;
  border-radius: 4px 9px 9px 4px;
}
/* a cover that writes its name (cover.html given a name): a wider tile, the glyph at the top, then the name on one or
   two lines, its code small under it and, on the pricing page, a plain word for past papers only or Coming soon */
.cover-named {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  aspect-ratio: auto;
  padding: 10px 8px 10px 13px;
  text-decoration: none;
}
.cover-named .cover-glyph {
  position: static;
  flex: none;
  width: 16px;
  height: 16px;
}
.cover-words {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.cover-name {
  font: 650 12px/1.2 var(--font);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.cover-code {
  font: 700 10px/1.2 var(--font);
  font-variant-numeric: tabular-nums;
}
.cover-state {
  font: 500 10px/1.2 var(--font);
}
/* not there yet: a pale tile, its words in ink so they stay easy to read */
.cover-named.is-soon {
  --hue: #e4e5ea;
  color: var(--ink);
  box-shadow: inset 3px 0 0 rgb(255 255 255 / 0.6);
}
.cover-hero.cover-named {
  width: 136px;
  min-height: 160px;
  gap: 14px;
  padding: 16px 12px 16px 19px;
}
.cover-hero.cover-named .cover-glyph {
  width: 26px;
  height: 26px;
}
.cover-hero .cover-words {
  gap: 4px;
}
.cover-hero .cover-name {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.cover-hero .cover-code {
  font-size: 13px;
}
/* the hues: the app's own subject colours (pages/css/subject-hues.css, by day), the only colour these pages carry;
   any element that names a subject in data-hue carries its --hue (a cover, a subject's library) */
[data-hue^="biology"] {
  --hue: #16814f;
}
[data-hue^="chemistry"] {
  --hue: #0a7f8c;
}
[data-hue^="physics"] {
  --hue: #1d5fd8;
}
:is([data-hue^="mathematics"], [data-hue="math"]) {
  --hue: #3b53cc;
}
:is([data-hue^="further-mathematics"], [data-hue^="calculus-ab"]) {
  --hue: #a8650a;
}
:is([data-hue^="pure-mathematics"], [data-hue^="calculus-bc"]) {
  --hue: #c2432a;
}
:is([data-hue^="english"], [data-hue^="reading"], [data-hue^="writing"], [data-hue^="psychology"]) {
  --hue: #b0385a;
}
:is([data-hue^="business"], [data-hue^="economics"]) {
  --hue: #4e7d12;
}
/* a subject row with its cover: the cover first, the words taking the room, the code at the end */
.row-link > .cover {
  margin-right: 16px;
}
.row-link > .cover + span {
  flex: 1;
  min-width: 0;
}
a.row-link > .cover {
  transition: transform 0.35s var(--ease);
}
a.row-link:hover > .cover {
  transform: translateY(-2px) rotate(-2deg);
}

/* the picker: tabs for the programmes, a search across every course */
.pick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pick-tabs,
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #ececf0;
}
.pick-tabs button {
  height: 42px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}
.pick-tabs button.is-on {
  background: #fff;
  box-shadow: 0 1px 3px rgb(11 13 18 / 0.12);
}
.pick-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  max-width: 420px;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: box-shadow 0.2s;
}
.pick-search:focus-within {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.pick-search svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.pick-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 16px/1 var(--font);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.pick-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.pick-label {
  position: absolute;
  left: 46px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}
.pick-label span {
  font-weight: 400;
}
.pick-search input:not(:placeholder-shown) + .pick-label {
  visibility: hidden;
}
/* the example (like edexcel bio or 0610) only where it fits whole: beside the tabs, from 560px to about 860px, the box
   is narrower than the words and they ended in dots (the nitpick check, 2026-11-27) */
.pick-search {
  container-type: inline-size;
}
@container (max-width: 419px) {
  .pick-label span {
    display: none;
  }
}
@media (max-width: 559px) {
  .pick-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
  .pick-tabs button {
    padding: 0;
    font-size: 15px;
  }
  .pick-search {
    max-width: none;
  }
  .pick-label span {
    display: none;
  }
}
.pick-body {
  margin-top: 8px;
}
.pane {
  display: none;
  gap: 0 64px;
}
.pane.is-on {
  display: grid;
}
@media (min-width: 820px) {
  .pane {
    grid-template-columns: 1fr 1fr;
  }
  .pane-results {
    grid-template-columns: 1fr;
  }
}
html.motion .pane.is-on {
  animation: pane-in 0.5s var(--ease) both;
}
@keyframes pane-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
}
.results-head {
  padding-top: 28px;
  font-size: 15px;
  font-weight: 650;
}
.results {
  margin-top: 10px;
}
.results-empty a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- plans ---------- */
.pricing {
  padding: var(--sec) 0;
  background: var(--mist);
}
.hero + .pricing {
  padding-top: clamp(48px, 6vw, 88px);
}
.hero-line {
  display: block;
}

/* the two plans a step smaller than the page's measure (owner, 2026-11-16: "tone the premium and free boxes a little
   bit in terms of sizing ... dont make it too small"): the pair at most 1080px, on the section's left edge under the
   homepage's heading and centred under /pricing/'s centred title (with the lines under it) */
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 880px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 1080px;
  }
  .hero-center + .pricing .plans {
    margin-inline: auto;
  }
  .hero-center + .pricing .assure {
    justify-content: center;
  }
  .hero-center + .pricing .note-line {
    margin-inline: auto;
    text-align: center;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: 22px;
  background: #fff;
}
.plan-premium {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.plan-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-name {
  font-size: 22px;
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: -0.02em;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}
.plan-price b {
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 620;
  font-stretch: 106%;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.plan-price span {
  font-size: 17px;
  font-weight: 500;
}
.plan-for {
  min-height: 3em;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
}
.plan-list {
  flex: 1;
  margin: 14px 0 26px;
}
.ticks li {
  position: relative;
  padding: 13px 0 13px 32px;
  border-top: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.45;
}
.ticks li b {
  font-weight: 650;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(13px + 0.42em);
  width: 11px;
  height: 6px;
  border-left: 2.2px solid var(--blue);
  border-bottom: 2.2px solid var(--blue);
  transform: rotate(-45deg);
}
.plan .ticks li {
  padding: 11px 0 11px 30px;
  font-size: 15.5px;
}
.plan .ticks li::before {
  top: calc(11px + 0.42em);
}
/* the Premium card's periods: three tiles, each its price a month and what it bills; the checked one in ink */
.periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.period {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 44px;
  padding: 10px 12px 9px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.period:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.period input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.period:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.period:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.period-name {
  font-size: 15px;
  font-weight: 650;
}
.period-price {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.period-amount {
  white-space: nowrap;
}
.period-total {
  font-size: 12.5px;
  line-height: 1.35;
}
/* every period's figure is drawn; the checked one shows (CSS alone), the arrival one where :has() is missing */
.plan-fig {
  display: none;
  margin-top: 16px;
}
.plan-fig.is-arrival {
  display: block;
}
@supports selector(:has(a)) {
  .plan-fig.is-arrival {
    display: none;
  }
  .plan-premium:has(input[value="monthly"]:checked) .plan-fig[data-plan-fig="monthly"],
  .plan-premium:has(input[value="3_month"]:checked) .plan-fig[data-plan-fig="3_month"],
  .plan-premium:has(input[value="yearly"]:checked) .plan-fig[data-plan-fig="yearly"] {
    display: block;
  }
}
.plan-fig .plan-price {
  margin-top: 0;
}
.plan-amount {
  white-space: nowrap;
}
.plan-bill {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
}
.plan-tax {
  font-size: 14px;
  line-height: 1.5;
}
.plan-inc {
  flex: 1;
  margin: 18px 0 26px;
}
.plan-inc-h {
  font-size: 15px;
  font-weight: 650;
}
.plan-inc .plan-list {
  margin: 10px 0 0;
}
@media (max-width: 419px) {
  .period {
    padding: 10px 8px 9px;
  }
  .period-name {
    font-size: 14px;
  }
  .period-price {
    font-size: 13px;
    white-space: nowrap;
  }
  .period-total {
    font-size: 12px;
  }
}
/* on a phone under 380px three tiles are 72 to 84px wide, too narrow for $15 /month, which ran into the tile's edge; the
   periods stand as three rows instead, the name and the price on one line, what it bills under them (the nitpick
   check, 2026-11-27); at 360px what a tile bills broke onto two lines too */
@media (max-width: 379px) {
  .periods {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .period {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 12px;
    padding: 10px 14px 9px;
  }
  .period-name {
    grid-column: 1;
    grid-row: 1;
  }
  .period-price {
    grid-column: 2;
    grid-row: 1;
  }
  .period-total {
    grid-column: 1 / -1;
  }
}
.seg label {
  position: relative;
  display: inline-flex;
}
.seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}
.seg input:checked + span {
  background: #fff;
  box-shadow: 0 1px 3px rgb(11 13 18 / 0.12);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.note-line {
  max-width: 46em;
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.5;
}
html.motion .plan-price b.is-swapping,
html.motion .plan-amount.is-swapping {
  animation: swap 0.45s var(--ease) both;
}
@keyframes swap {
  from {
    opacity: 0.2;
    transform: translate3d(0, 8px, 0);
  }
}

/* the Premium card's small fan of covers beside its name: what the plan opens, at a glance */
.plan-premium .plan-top {
  align-items: flex-start;
}
.plan-fan {
  display: flex;
  padding: 2px 4px 0 0;
}
.plan-fan .cover {
  width: 32px;
  margin-left: -12px;
  transform: rotate(var(--fan, 0deg));
  transform-origin: 50% 100%;
  transition:
    transform 0.5s var(--ease),
    margin 0.5s var(--ease);
}
.plan-fan .cover:first-child {
  margin-left: 0;
}
.plan-fan .cover:nth-child(1) {
  --fan: -8deg;
}
.plan-fan .cover:nth-child(2) {
  --fan: -4deg;
}
.plan-fan .cover:nth-child(4) {
  --fan: 4deg;
}
.plan-fan .cover:nth-child(5) {
  --fan: 8deg;
}
.plan-fan .cover-glyph {
  top: 6px;
  left: 8px;
  width: 12px;
  height: 12px;
}
.plan-premium:hover .plan-fan .cover {
  margin-left: -6px;
}
.plan-premium:hover .plan-fan .cover:first-child {
  margin-left: 0;
}
/* the period chosen is marked as a store marks the option you picked: the action's 2px blue ring, and under the tile a
   muted glow in the subjects' own colours (apple.com's restrained glow: blurred, half strength), fading in as it is
   picked */
.periods {
  isolation: isolate;
}
.period {
  background: var(--white);
}
.period::before {
  content: "";
  position: absolute;
  inset: 8px 4px -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg, #16814f, #0a7f8c 22%, #1d5fd8 44%, #3b53cc 62%, #a8650a 82%, #c2432a);
  filter: blur(12px);
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.period:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.period:has(input:checked)::before {
  opacity: 0.55;
  transform: translateY(6px);
}
/* the whole shelf Premium opens, on the pricing page: a row a programme, its covers after its name */
.wall {
  margin-top: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.wall-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 12px 32px;
  padding: clamp(18px, 2vw, 24px) 0;
  border-top: 1px solid var(--line);
}
.wall-label {
  display: grid;
  gap: 2px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.wall-label span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
/* each board's tiles under its name (Cambridge, Pearson Edexcel; AP and SAT have one board and no name), wrapping
   onto as many lines as they need */
.wall-covers {
  display: grid;
  gap: 22px;
}
.wall-board {
  display: grid;
  gap: 10px;
}
.wall-board-name {
  font-size: 14px;
  font-weight: 600;
}
.wall-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 10px;
}
.wall-tiles .cover {
  min-height: 92px;
}
html.motion .wall.rv .cover {
  opacity: 0;
  transform: translate3d(0, 14px, 0) rotate(-5deg);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease);
}
html.motion .wall.rv.is-in .cover {
  opacity: 1;
  transform: none;
}
html.motion .wall.rv.is-in .wall-row:nth-child(2) .cover {
  transition-delay: 0.08s;
}
html.motion .wall.rv.is-in .wall-row:nth-child(3) .cover {
  transition-delay: 0.16s;
}
html.motion .wall.rv.is-in .wall-row:nth-child(4) .cover {
  transition-delay: 0.24s;
}
.wall-tiles a.cover:is(:hover, :focus-visible) {
  transform: translateY(-3px) rotate(-1deg);
  transition-duration: 0.35s;
}
@media (max-width: 699px) {
  .wall-row {
    grid-template-columns: minmax(0, 1fr);
  }
  /* a phone keeps the laptop's 124px tile, two across up to 427px: a 104px tile cut Macroeconomics at its edge */
  .wall-tiles {
    gap: 8px;
  }
}

/* a Premium student's own plan on /pricing/ */
/* the plan you have: a white sheet on the mist with no drawn edge (owner, 2026-11-21: the 2px ink outline "breaks away
   from the apple theme") */
.plan-active {
  max-width: 760px;
  margin-inline: auto;
}
.plan-state {
  font-size: 17px;
  font-weight: 650;
  color: var(--green);
}
.plan-active .plan-price {
  margin-top: 14px;
}
.plan-date {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
}
.plan-sub {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 650;
}
.plan-subjects {
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}
.plan-note {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 559px) {
  .plan-actions .btn {
    width: 100%;
  }
}
/* the two promises under the plans */
.assure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 600;
}
.assure li {
  position: relative;
  padding-left: 24px;
}
.assure li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.assure + .note-line {
  margin-top: 14px;
}
.note-line + .note-line {
  margin-top: 6px;
}
.library-line {
  max-width: 40em;
}
.library-line b {
  font-weight: 650;
  white-space: nowrap;
}

/* ---------- questions ---------- */
.faq {
  padding: var(--sec) 0;
  background: var(--snow);
}
.faq .sec-text {
  margin-top: 14px;
}

.faq-grid {
  display: grid;
  gap: 28px 64px;
}
@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
  }
}
.faq-list {
  border-top: 1.5px solid var(--ink);
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary:hover {
  color: var(--blue-text);
}
.plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.plus::after {
  transform: rotate(90deg);
}
.qa[open] .plus::after {
  transform: rotate(0deg);
}
.qa-body {
  max-width: 60ch;
  padding-bottom: 24px;
  font-size: 17px;
  line-height: 1.6;
}
.qa-body a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qa::details-content {
  block-size: 0;
  overflow-y: clip;
  transition:
    block-size 0.35s var(--ease),
    content-visibility 0.35s allow-discrete;
}
.qa[open]::details-content {
  block-size: auto;
}

/* ---------- prose: legal documents and long pages ---------- */
.prose {
  max-width: 68ch;
  font-size: 18px;
  line-height: 1.65;
}
.prose > * + * {
  margin-top: 1.05em;
}
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.prose h4 {
  margin-top: 1.6em;
  font-size: 18px;
  font-weight: 650;
}
.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0.6em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose li::marker {
  color: var(--ink);
}
.prose a {
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prose strong,
.prose b {
  font-weight: 650;
}
.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.prose th,
.prose td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-weight: 650;
}
.prose .table-scroll,
.prose .doc-table {
  overflow-x: auto;
}
.prose blockquote {
  margin-left: 0;
  padding-left: 18px;
  border-left: 2px solid var(--line-2);
}
.doc-meta {
  font-size: 15px;
  font-weight: 500;
}

/* ---------- forms: one column, large fields, the label always visible ---------- */
.form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
.field > label,
.form label.label,
.field-label {
  font-size: 15px;
  font-weight: 650;
}
:where(.site) :where(input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="date"], input:not([type]), select, textarea) {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  color: var(--ink);
  font: 500 16px/1.4 var(--font);
  transition: box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
:where(.site) :where(textarea) {
  min-height: 120px;
  resize: vertical;
}
:where(.site) :where(select) {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0d12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 18px;
  background-repeat: no-repeat;
}
:where(.site) :where(input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="date"], input:not([type]), select, textarea):focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--blue);
}
:where(.site) :where(.field.has-error, .has-error) :where(input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="date"], input:not([type]), select, textarea) {
  box-shadow: inset 0 0 0 2px var(--red);
}
:where(.site) input[type="checkbox"],
:where(.site) input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex: none;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}
.check a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.helptext,
.field-help {
  font-size: 14px;
  line-height: 1.45;
}
.errorlist,
.field-error {
  display: grid;
  gap: 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--red);
}
.errorlist.nonfield,
.form-error {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--red-soft);
}
.form-foot {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
  font-size: 14px;
  font-weight: 600;
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.btn-google {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn-google:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-google svg {
  width: 18px;
  height: 18px;
}

/* a password field with its show-password button inside the box, and a field's own link under it */
.pw {
  position: relative;
  display: block;
}
.pw input {
  padding-right: 56px;
}
.pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transform: translateY(-50%);
  color: var(--ink);
}
.pw-eye:hover {
  background: var(--mist);
}
.pw-eye svg {
  width: 20px;
  height: 20px;
}
.pw-eye[hidden] {
  display: none;
}
.pw-eye .pw-eye-on,
.pw-eye[data-ui-pressed="true"] .pw-eye-off {
  display: none;
}
.pw-eye[data-ui-pressed="true"] .pw-eye-on {
  display: block;
}
.field-action {
  justify-self: end;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-text);
}
.field-action:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth .notice {
  margin-bottom: 28px;
}
.auth .cf-turnstile,
.auth [data-turnstile] {
  min-height: 65px;
}

/* the account pages: one calm column on light, the title large */
.auth {
  min-height: 100svh;
  padding: calc(var(--gn-h) + clamp(48px, 9vh, 104px)) 0 clamp(64px, 9vh, 112px);
  background: var(--snow);
}
.auth-in {
  width: 100%;
  max-width: calc(460px + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.auth-in-wide {
  max-width: calc(620px + 2 * var(--pad));
}
.auth-title {
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.034em;
}
.auth-lead {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.5;
}
.auth-body {
  margin-top: 32px;
}
.auth-alt {
  margin-top: 26px;
  font-size: 16px;
}
.auth-alt a {
  color: var(--blue-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* ---------- the quiet note in the corner (pages/includes/nudge.html), in the site's own look ---------- */
body.site .nb-nudge {
  left: 24px;
  bottom: 24px;
  width: 300px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgb(11 13 18 / 0.06), 0 18px 48px rgb(11 13 18 / 0.16);
  color: var(--ink);
  font: 400 15px/1.45 var(--font);
}
body.site .nb-nudge-title {
  font: 650 17px/1.3 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.site .nb-nudge-say {
  margin: 6px 0 16px;
  font-size: 14.5px;
  color: var(--ink);
}
body.site .nb-nudge :is(.nb-nudge-go, .nb-nudge-quiet) {
  min-height: 40px;
  border-radius: 10px;
  font: 600 14px/1 var(--font);
}
body.site .nb-nudge .nb-nudge-go {
  background: var(--blue);
  color: #fff;
}
body.site .nb-nudge .nb-nudge-quiet {
  background: var(--mist);
  color: var(--ink);
}
@media (hover: hover) {
  body.site .nb-nudge .nb-nudge-go:hover {
    background: var(--blue-hover);
  }
  body.site .nb-nudge .nb-nudge-quiet:hover {
    background: var(--line);
  }
}
@media (max-width: 720px) {
  body.site .nb-nudge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

/* ---------- notices: a message the page needs to say ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  font-size: 16px;
  line-height: 1.5;
}
.notice::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.notice-success {
  background: var(--green-soft);
}
.notice-success::before {
  background: var(--green);
}
.notice-error,
.notice-warning {
  background: var(--red-soft);
}
.notice-error::before,
.notice-warning::before {
  background: var(--red);
}
.notice a {
  color: var(--blue-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Django's messages (the one renderer, pages/includes/messages.html): a notice under the bar that leaves by itself */
.esa-messages {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: calc(var(--gn-h) + 12px);
  display: grid;
  gap: 8px;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
}
.esa-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
  box-shadow:
    0 0 0 1px rgb(11 13 18 / 0.06),
    0 18px 40px -18px rgb(11 13 18 / 0.35);
}
.esa-msg-glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.esa-msg--success .esa-msg-glyph {
  background: var(--green-soft);
  color: var(--green);
}
.esa-msg--error .esa-msg-glyph,
.esa-msg--warning .esa-msg-glyph {
  background: var(--red-soft);
  color: var(--red);
}
.esa-msg-glyph svg {
  width: 14px;
  height: 14px;
}
html.motion .esa-msg {
  animation: notice-in 0.5s var(--ease) both;
}
.esa-msg.is-out {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
@keyframes notice-in {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
}

/* a page's trail, small, above its title */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 14px;
  font-weight: 500;
}
/* the separator ends the crumb before it, so a trail that wraps on a phone never starts a line with "/" */
.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  opacity: 0.5;
}
.crumbs a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.crumbs a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- cards and facts ---------- */
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .cards-2 {
    grid-template-columns: 1fr 1fr;
  }
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
  background: #fff;
}
.band-white .card,
.card-line {
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.band-dark .card {
  background: #111214;
  color: var(--on-night);
}
.card-title {
  font-size: 22px;
  font-weight: 650;
  font-stretch: 104%;
  letter-spacing: -0.015em;
}
.card p {
  font-size: 16.5px;
  line-height: 1.55;
}
a.card {
  transition: box-shadow 0.25s;
}
a.card:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.facts {
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
}
.facts dt {
  font-weight: 600;
}
.facts dd {
  text-align: right;
}

/* ---------- steps (the onboarding wizard) ---------- */
.steps-rail {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.steps-rail i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
}
.steps-rail i.is-on {
  background: var(--ink);
}
.choice-list {
  display: grid;
  gap: 10px;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 17px;
  font-weight: 550;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.choice:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.choice:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.choice small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
}

/* ---------- the closing band ---------- */
.close {
  padding: clamp(112px, 14vw, 200px) 0;
  background: var(--night);
  color: var(--on-night);
  text-align: center;
}
/* a closing call on a working page: the same words and button on the light grey, not a second black stage */
.close-light {
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--white);
  color: var(--ink);
}
.close-light .close-title {
  font-size: clamp(32px, 4vw, 56px);
}
.close-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}
.close-title {
  max-width: 10em;
  font-size: clamp(46px, 7vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.042em;
}
.close-text {
  max-width: 32em;
  font-size: clamp(18px, 1.45vw, 21px);
}
.close-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- the reveals: each part rises in once, as it arrives ---------- */
html.motion .rv {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 1s var(--ease);
}
html.motion .rv.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
