/* Pencilwick marketing site ("the exercise book and the margin").
   Load after tokens.css. Uses tokens only: no hard-coded colours. */

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg { flex: none; }
a { color: var(--gum); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong, b { font-weight: 700; }
var, .v { font-style: italic; font-family: var(--font-body); }
code, .mono { font-family: var(--font-mono); font-size: 0.86em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--wattle-wash); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus) !important; border-radius: var(--r-xs); }
main:focus { box-shadow: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ geometry */
:root {
  /* text colours derived from tokens so small text meets WCAG AA on paper and sheet-2 */
  --muted: color-mix(in srgb, var(--ink-3) 70%, var(--ink));
  --success-ink: color-mix(in srgb, var(--success) 76%, var(--ink));
  --gutter: 16px;
  --mcol: 0px;          /* width of the site margin column (left of the red line) */
  --pad-in: 0px;        /* space between the red line and the content */
  --sec: 72px;          /* vertical rhythm between sections */
  --maxw: 1376px;
}
@media (min-width: 760px) { :root { --gutter: 24px; --sec: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --mcol: 150px; --pad-in: 40px; --sec: 104px; } }
@media (min-width: 1280px) { :root { --mcol: 184px; --pad-in: 48px; --sec: 120px; } }

/* --------------------------------------------------------- the folio
   One exercise-book page per URL: a margin column for the tutor's notes,
   the red margin line, then the content. */
.folio {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: var(--sec);
}
@media (min-width: 1024px) {
  .folio::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(var(--gutter) + var(--mcol));
    width: 2px;
    background: var(--margin);
    opacity: 0.7;
    pointer-events: none;
  }
}
.row {
  display: grid;
  grid-template-columns: var(--mcol) minmax(0, 1fr);
}
.row > .row__body { grid-column: 2; padding-left: var(--pad-in); min-width: 0; }
.row > .side { grid-column: 1; }
.sec { padding-top: var(--sec); }
.sec--tight { padding-top: calc(var(--sec) * 0.6); }

/* Sidenotes: the tutor's voice. In the margin on wide screens, inline below. */
.side {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ocean);
  min-width: 0;
}
.side p + p { margin-top: 10px; }
.side a { color: var(--ocean); }
@media (min-width: 1024px) {
  .side { padding-right: 22px; padding-top: 6px; position: relative; }
  .side--sticky > div { position: sticky; top: 24px; }
}
@media (max-width: 1023.98px) {
  .row { display: flex; flex-direction: column; }
  .row > .row__body { order: 0; }
  .row > .side { order: 1; }
  .row > .side--top { order: -1; }
  .row > .side {
    margin-top: 28px;
    padding: 2px 0 2px 14px;
    border-left: 3px solid var(--ocean);
    max-width: var(--measure);
  }
  .row > .side--top { margin-top: 0; margin-bottom: 20px; }
  .row > .side:empty { display: none; }
}

.measure { max-width: var(--measure); }
.lede { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-2xl); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.8em; letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }

.h-xl { font-size: var(--fs-2xl); }
@media (min-width: 760px) { .h-xl { font-size: var(--fs-3xl); } }
@media (min-width: 1280px) { .h-xl { font-size: var(--fs-4xl); } }
.h-lg { font-size: var(--fs-xl); }
@media (min-width: 760px) { .h-lg { font-size: var(--fs-2xl); } }
.sec-head { margin-bottom: 32px; max-width: 60ch; }
.sec-head .lede { margin-top: 14px; }

/* highlighter: key terms only */
.hl {
  background-image: linear-gradient(to top, var(--wattle-wash) 0, var(--wattle-wash) 45%, transparent 45%);
  padding-inline: 0.08em;
  margin-inline: -0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:root[data-theme="dark"] .hl { background-image: linear-gradient(to top, color-mix(in srgb, var(--wattle) 30%, transparent) 0, color-mix(in srgb, var(--wattle) 30%, transparent) 45%, transparent 45%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .hl { background-image: linear-gradient(to top, color-mix(in srgb, var(--wattle) 30%, transparent) 0, color-mix(in srgb, var(--wattle) 30%, transparent) 45%, transparent 45%); }
}

/* ------------------------------------------------------------- buttons */
.btn {
  --_bg: transparent; --_fg: var(--gum); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--_bd);
  background: var(--_bg); color: var(--_fg);
  font: 700 var(--fs-sm)/1.1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn--primary { --_bg: var(--gum); --_fg: var(--on-gum); --_bd: var(--gum); }
.btn--primary:hover { --_bg: var(--gum-hover); --_bd: var(--gum-hover); }
.btn--secondary { --_bg: var(--sheet); --_fg: var(--gum); --_bd: color-mix(in srgb, var(--gum) 45%, var(--line)); }
.btn--secondary:hover { --_bg: var(--gum-wash); --_bd: var(--gum); }
.btn--quiet { --_fg: var(--gum); padding-inline: 12px; }
.btn--quiet:hover { --_bg: var(--gum-wash); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; padding: 2px 8px;
  border-radius: var(--r-xs);
  background: var(--sheet-2); color: var(--ink-2);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.2;
}
.curriculum-code {
  display: inline-flex; align-items: center;
  padding: 3px 7px; border-radius: var(--r-xs);
  background: var(--ocean-wash); color: var(--ocean);
  font: 600 var(--fs-xs)/1.2 var(--font-mono); letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
}
a.curriculum-code { min-height: 30px; padding-inline: 9px; }
a.curriculum-code:hover { text-decoration: underline; }
.draft-flag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--margin-wash); color: var(--ink);
  border: 1.5px dashed var(--margin);
  font-weight: 700; font-size: var(--fs-sm);
}

/* ---------------------------------------------------------------- header */
.site-head { position: relative; z-index: 10; }
.site-head__in {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--gutter);
  display: grid; grid-template-columns: var(--mcol) minmax(0, 1fr); align-items: center;
  min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 750 1.375rem/1 var(--font-display); font-stretch: 92%; letter-spacing: -0.02em;
  width: max-content;
}
.brand svg { width: 30px; height: 30px; }
.logo-stem { fill: none; stroke: var(--gum); stroke-width: 2; stroke-linecap: round; }
.logo-twig { stroke-width: 1.4; }
.logo-leaf { fill: var(--gum); }
.logo-puff { fill: var(--wattle); }
.logo-puff--deep { fill: color-mix(in srgb, var(--wattle) 82%, var(--wattle-deep)); }
.site-nav { display: flex; align-items: center; gap: 4px; padding-left: var(--pad-in); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  border-radius: var(--r-sm);
}
.site-nav ul a:hover { color: var(--ink); background: var(--sheet-2); }
.site-nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gum); border-radius: 0; }
.site-nav__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 1023.98px) {
  .site-head__in { display: flex; justify-content: space-between; gap: 12px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 14px; margin-left: auto;
    background: var(--sheet); color: var(--ink);
    border: 1.5px solid var(--line); border-radius: var(--r-sm);
    font: 700 var(--fs-sm)/1 var(--font-body); cursor: pointer;
  }
  .nav-toggle .bars { width: 18px; height: 12px; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-med) var(--ease-out); }
  .nav-toggle .bars::before { top: 2px; }
  .nav-toggle .bars::after { bottom: 2px; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-3px) rotate(-45deg); }
  .js .site-nav {
    display: none;
    position: absolute; left: var(--gutter); right: var(--gutter); top: 72px;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px; background: var(--sheet); border-radius: var(--r-md);
    box-shadow: var(--lift); border: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav { padding-left: 0; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul a { min-height: 48px; font-size: var(--fs-md); }
  .js .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gum); border-radius: 0; }
  .site-nav__actions { margin-left: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .site-nav__actions .btn { flex: 1; }
  html:not(.js) .site-head__in { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-top: 32px; }
@media (min-width: 1024px) { .hero { padding-top: 48px; } }
.hero__grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .hero__copy { padding-top: 40px; }
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 740;
  font-stretch: 90%;
  letter-spacing: -0.028em;
  line-height: 1;
  max-width: 11ch;
}
@media (min-width: 1024px) and (max-width: 1279.98px) { .hero h1 { font-size: 3.6rem; } }
.hero .lede { margin-top: 24px; }
.hero .btn-row { margin-top: 32px; }
.hero__fine { margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); }

/* ------------------------------------------------- the exercise-book sheet */
.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: var(--r-lg);
  box-shadow: var(--stack);
  overflow: hidden;
  --mx: var(--margin-x);
}
.sheet::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--mx);
  width: 2px; background: var(--margin); z-index: 1; pointer-events: none;
}
.sheet__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px calc(var(--mx) + 22px);
  min-height: 72px;
}
.sheet__title { font: 700 var(--fs-lg)/1.2 var(--font-display); font-stretch: 92%; letter-spacing: -0.01em; }
.sheet__sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.ruled {
  background-image: linear-gradient(to bottom, transparent calc(var(--ruled) - 1px), var(--rule) calc(var(--ruled) - 1px), var(--rule) var(--ruled));
  background-size: 100% var(--ruled);
  background-position: 0 -7px;
  line-height: var(--ruled);
}
@media (max-width: 599.98px) {
  .sheet { --mx: 0px; border-left: 3px solid var(--margin); }
  .sheet::before { display: none; }
  .sheet__head { padding-left: 18px; }
}

/* the live demo */
.demo { --mx: var(--margin-x); }
.demo__body {
  display: grid;
  grid-template-columns: var(--mx) minmax(0, 1fr) minmax(0, 0.9fr);
  min-height: calc(var(--ruled) * 13);
  padding-bottom: calc(var(--ruled) * 1);
}
.demo__gutter { position: relative; }
.demo__qnum {
  display: block; text-align: right; padding-right: 14px;
  font: 700 var(--fs-md)/var(--ruled) var(--font-display); color: var(--muted);
}
.demo__tick {
  position: absolute; left: 6px; top: calc(var(--ruled) * 4 - 4px);
  width: 54px; height: 54px; color: var(--success); opacity: 0; pointer-events: none;
}
.demo__tick path { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.demo.is-correct .demo__tick { opacity: 1; }
.demo.is-correct .demo__tick path { animation: draw 520ms var(--ease-out) 80ms forwards; }
.demo__work { padding: 0 18px 0 22px; min-width: 0; }
.demo__prompt { color: var(--ink-2); }
.demo__eq {
  font-family: var(--font-body);
  font-size: 1.875rem; letter-spacing: 0.01em;
  line-height: calc(var(--ruled) * 2);
  padding-top: 10px; margin-bottom: -10px;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.demo__eq var, .demo__steps var, .demo__answer var { font-style: italic; }
.op { padding-inline: 0.18em; }
.demo__answer {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  margin-top: calc(var(--ruled) * 1);
  min-height: calc(var(--ruled) * 2);
}
.demo__answer label { font-size: 1.5rem; line-height: 44px; padding-bottom: 2px; white-space: nowrap; }
.demo__answer input {
  width: 6.5em; min-width: 0; height: 46px;
  font: 400 1.5rem/1 var(--font-body);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 2px solid var(--rule-strong);
  border-radius: 0;
  padding: 4px 6px 2px;
  font-variant-numeric: tabular-nums;
}
.demo__answer input:focus-visible { border-bottom-color: var(--gum); background: var(--gum-wash); }
.demo__answer input[aria-invalid="true"] { border-bottom-color: var(--margin); }
.demo__answer .btn { margin-bottom: 1px; }
.demo__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; margin-left: -12px; }
.demo__result { margin-top: 12px; min-height: var(--ruled); line-height: 1.5; font-size: var(--fs-sm); max-width: 40ch; }
.demo__result .verdict { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.1875rem; line-height: 1.3; margin-bottom: 2px; }
.demo__result .verdict svg { width: 20px; height: 20px; }
.demo__result.is-no .verdict { color: var(--margin); }
.demo__result.is-yes .verdict { color: var(--success-ink); }
.demo__steps { list-style: none; padding: 0; margin: 0; }
.demo__steps li { font-size: 1.25rem; white-space: nowrap; color: var(--ocean); }
.demo__steps li.is-final { font-weight: 700; }

.demo__margin {
  position: relative;
  padding: 2px 20px 0 16px;
  border-left: 1px dashed color-mix(in srgb, var(--ocean) 30%, transparent);
  min-width: 0;
}
.demo__margin-empty { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; padding-top: 6px; max-width: 22ch; }
.note {
  position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px;
  color: var(--ocean); font-size: var(--fs-sm); line-height: 1.45;
  padding: 6px 0 10px;
}
.note + .note { margin-top: 4px; }
.note__mark { position: relative; width: 14px; min-height: 36px; }
.note__mark svg { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); overflow: visible; }
.note__mark path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.note__text var { font-style: italic; }
.note__text .m { white-space: nowrap; }
.note__label { display: block; font-weight: 700; font-size: var(--fs-xs); color: color-mix(in srgb, var(--ocean) 75%, var(--ink-3)); margin-bottom: 1px; }
.note--check { color: var(--success-ink); }
.note--intro .note__text { font-style: italic; }
.note--no { color: var(--ink-2); }
.note--no .note__mark { color: var(--margin); }

/* the one orchestrated write-on: bracket draws, then the words ink in */
.note.is-writing .note__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 320ms var(--ease-out) forwards; }
.note.is-writing .w { opacity: 0; animation: ink 240ms var(--ease-out) forwards; animation-delay: calc(240ms + var(--i) * 26ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { from { opacity: 0; filter: blur(1.5px); } to { opacity: 1; filter: none; } }

.demo__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 22px 16px calc(var(--mx) + 22px);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--muted);
}
.mastery { display: inline-flex; align-items: center; gap: 10px; }
.mastery__bar { display: inline-grid; grid-template-columns: repeat(4, 18px); gap: 3px; }
.mastery__bar i { height: 8px; border-radius: 2px; background: var(--m0); position: relative; overflow: hidden; }
.mastery__bar i.on { background: var(--m2); }
.mastery__bar i.on.m1 { background: var(--m1); }
.mastery__bar i.fill::after { content: ""; position: absolute; inset: 0; background: var(--m2); transform-origin: left; animation: sweep 600ms var(--ease-out) 300ms both; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mastery__label { color: var(--ink-2); font-weight: 600; }

@media (max-width: 759.98px) {
  .demo__body { grid-template-columns: var(--mx) minmax(0, 1fr); }
  .demo__margin { grid-column: 2; border-left: 0; padding: 8px 18px 0 22px; }
  .demo__margin-empty { display: none; }
  .demo__eq { font-size: 1.625rem; }
}
@media (max-width: 599.98px) {
  .demo__body { display: block; }
  .demo__gutter { display: none; }
  .demo__work { padding: 0 16px; }
  .demo__margin { padding: 0 16px; }
  .demo__qnum-inline { display: inline; }
  .demo__eq { font-size: 1.5rem; }
  .demo__foot { padding-left: 16px; }
  .demo__tick { display: none; }
}
.demo__qnum-inline { display: none; font-weight: 700; color: var(--muted); margin-right: 6px; }

/* ----------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 36px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  --_c: var(--gum);
  appearance: none; background: none; border: 0; cursor: pointer;
  min-height: 52px; padding: 0 4px; margin-right: 16px;
  font: 700 var(--fs-lg)/1 var(--font-display); font-stretch: 92%; letter-spacing: -0.015em;
  color: var(--muted);
  box-shadow: inset 0 -3px 0 transparent;
  transition: color var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  white-space: nowrap;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--_c); }
.tab[aria-selected="true"]:focus-visible { box-shadow: var(--focus), inset 0 -3px 0 var(--_c) !important; }
.tab[data-role="parent"] { --_c: var(--role-parent); }
.tab[data-role="teacher"] { --_c: var(--role-teacher); }
@media (min-width: 760px) { .tab { font-size: var(--fs-2xl); min-height: 60px; padding: 0 2px; margin-right: 36px; } }

.panel { display: grid; gap: 36px; }
.panel[hidden] { display: none; }
@media (min-width: 900px) { .panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; } }
.panel h3 { font-size: var(--fs-xl); max-width: 22ch; }
.panel p.lede { margin-top: 14px; font-size: var(--fs-md); }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; max-width: 54ch; }
.points li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--gum); }
.panel[data-role="parent"] .points li svg { color: var(--role-parent); }
.panel[data-role="teacher"] .points li svg { color: var(--role-teacher); }
.points b { color: var(--ink); }
.panel .btn-row { margin-top: 28px; }

/* small product views used as illustrations */
.ui {
  position: relative;
  background: var(--sheet); border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 20px;
  font-size: var(--fs-sm);
}
.ui--stack { box-shadow: var(--stack); border-color: transparent; }
.ui__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ui__title { font: 700 var(--fs-lg)/1.2 var(--font-display); font-stretch: 92%; }
.ui__meta { color: var(--muted); font-size: var(--fs-xs); }
.ui-list { list-style: none; padding: 0; margin: 0; }
.ui-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ui-list li:first-child { border-top: 0; }
.ui-list .grow { flex: 1; min-width: 0; }
.ui-list .t { font-weight: 700; color: var(--ink); display: block; }
.ui-list .s { color: var(--muted); font-size: var(--fs-xs); display: block; }
.tick-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.tick-dot.done { background: var(--success); border-color: var(--success); color: var(--sheet); }
.tick-dot svg { width: 14px; height: 14px; stroke-width: 3; }
.streak { display: flex; gap: 5px; align-items: center; }
.streak i { width: 11px; height: 11px; border-radius: 50%; background: var(--m0); }
.streak i.on { background: var(--wattle); }
.streak b { font: 700 var(--fs-lg)/1 var(--font-display); margin-left: 6px; }
.lang-demo { margin-top: 14px; padding: 14px; border-radius: var(--r-sm); background: var(--sheet-2); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--sheet-2); border: 1px solid var(--line); }
.seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  min-height: 38px; padding: 0 12px; border-radius: 6px;
  font: 700 var(--fs-xs)/1 var(--font-body); color: var(--ink-2);
}
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.lang-demo .seg { background: var(--sheet); }
.lang-demo .seg button[aria-pressed="true"] { background: var(--gum-wash); box-shadow: none; color: var(--gum); }
.lang-demo p { margin-top: 10px; color: var(--ocean); line-height: 1.5; }

.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; }
.report-grid div { padding: 12px; border-radius: var(--r-sm); background: var(--sheet-2); }
.report-grid b { display: block; font: 700 var(--fs-xl)/1.1 var(--font-display); font-stretch: 92%; color: var(--ink); }
.report-grid span { font-size: var(--fs-xs); color: var(--muted); }
.subj-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.subj-row .mastery__bar { grid-template-columns: repeat(4, minmax(14px, 1fr)); }
.subj-row .lvl { font-size: var(--fs-xs); color: var(--muted); min-width: 6.5em; text-align: right; }

.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: var(--fs-xs); }
.heat th { font-weight: 600; color: var(--muted); text-align: left; padding: 0 4px; white-space: nowrap; }
.heat thead th { font-family: var(--font-mono); font-size: 0.6875rem; text-align: center; padding-bottom: 4px; }
.heat td { height: 28px; min-width: 28px; border-radius: 4px; background: var(--m0); }
.heat td.l1 { background: var(--m1); }
.heat td.l2 { background: var(--m2); }
.heat td.l3 { background: var(--m3); }
.heat tbody th { color: var(--ink-2); font-weight: 700; }
.heat-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }
.heat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--m0); }
.heat-legend i.l1 { background: var(--m1); } .heat-legend i.l2 { background: var(--m2); } .heat-legend i.l3 { background: var(--m3); }
.heat-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ocean-wash); color: var(--ink); font-size: var(--fs-xs); line-height: 1.5; }

/* ------------------------------------------------------- snap & solve */
.steps4 { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 760px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; } }
@media (min-width: 1200px) { .steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.steps4 > li { counter-increment: s; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.steps4 .num {
  display: flex; align-items: baseline; gap: 10px;
  font: 700 var(--fs-lg)/1.2 var(--font-display); font-stretch: 92%; letter-spacing: -0.01em;
}
.steps4 .num::before {
  content: counter(s); flex: none;
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--ink); font-size: var(--fs-sm); line-height: 1;
  transform: translateY(-1px);
}
.steps4 p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.frame {
  height: 196px; border-radius: var(--r-md);
  background: var(--sheet); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 16px;
}
.frame--photo {
  background-color: var(--sheet-2);
  background-image: linear-gradient(to bottom, transparent 27px, var(--rule) 27px, var(--rule) 28px);
  background-size: 100% 28px;
}
.viewfinder { position: absolute; inset: 22px 26px; pointer-events: none; }
.viewfinder i { position: absolute; width: 22px; height: 22px; border: 3px solid var(--gum); }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.handwritten {
  font-family: var(--font-body); font-style: italic; font-size: 1.375rem; color: var(--ink-2);
  transform: rotate(-2.5deg); text-align: center; letter-spacing: 0.01em;
}
.handwritten small { display: block; font-size: var(--fs-xs); font-style: normal; color: var(--muted); margin-bottom: 4px; transform: none; }
.shutter { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--sheet); box-shadow: 0 0 0 2px var(--gum); background: var(--gum); }
.read-box { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 1.25rem; background: var(--sheet); }
.read-box small { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 2px; }
.frame .mini-actions { display: flex; gap: 6px; margin-top: 10px; }
.mini-btn { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 700; border: 1.5px solid var(--line); color: var(--ink-2); background: var(--sheet); }
.mini-btn--primary { background: var(--gum); border-color: var(--gum); color: var(--on-gum); }
.frame .seg { align-self: flex-start; }
.seg--static span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }
.seg--static span.is-on { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.solve-lines { margin-top: 10px; font-size: 1.0625rem; line-height: 1.7; }
.solve-lines span { display: block; }
.checked { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--success-ink); }
.checked svg { width: 16px; height: 16px; stroke-width: 2.5; }
.practice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 1.0625rem; }
.practice-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--rule); }
.practice-list li:last-child { border-bottom: 0; }

/* ---------------------------------------------------- coverage on squared paper */
.cover-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.cover-tools label { font-weight: 700; font-size: var(--fs-sm); }
.select {
  appearance: none; -webkit-appearance: none;
  min-height: 44px; padding: 0 40px 0 14px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2366796f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink); font: 600 var(--fs-sm)/1.2 var(--font-body);
}
.select:focus-visible { box-shadow: var(--focus); }
.squared {
  --sq: 22px;
  background-color: var(--sheet);
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: var(--sq) var(--sq);
  border-radius: var(--r-lg);
  box-shadow: var(--stack);
  padding: 18px 18px 14px;
}
.cover-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cover {
  width: 100%; min-width: 760px; table-layout: fixed;
  border-collapse: separate; border-spacing: 4px;
  font-variant-numeric: tabular-nums lining-nums;
}
.cover col.c-area { width: 15.5em; }
.cover tbody th, .cover thead th:first-child, .cover tfoot td { position: sticky; left: 0; z-index: 1; }
.cover tbody th, .cover thead th:first-child { background: var(--sheet); box-shadow: 6px 0 0 var(--sheet); }
.cover col.c-first { width: 7.5em; }
.cover caption { text-align: left; caption-side: bottom; padding-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.cover th, .cover td { padding: 0; }
.cover thead th {
  font: 700 var(--fs-sm)/1.1 var(--font-display); font-stretch: 92%; color: var(--ink-2);
  text-align: center; height: 40px; vertical-align: bottom; padding-bottom: 6px;
}
.cover thead th:first-child { text-align: left; }
.cover thead th .yr-f { display: inline-block; white-space: nowrap; }
.cover tbody th {
  text-align: left; font-weight: 700; font-size: var(--fs-sm); color: var(--ink);
  padding-right: 10px; white-space: nowrap; height: 44px;
}
.cover tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; white-space: normal; max-width: 15em; line-height: 1.3; }
.cover td {
  text-align: center; height: 44px;
  background: color-mix(in srgb, var(--gum-wash) 88%, transparent);
  border-radius: var(--r-xs);
  font: 700 var(--fs-md)/1 var(--font-display); color: var(--ink);
}
.cover td.band { background: color-mix(in srgb, var(--ocean-wash) 92%, transparent); }
.cover td.none { background: transparent; }
.cover td.wide { font: 600 var(--fs-sm)/1.3 var(--font-body); color: var(--ink-2); text-align: left; padding: 8px 12px; background: color-mix(in srgb, var(--sheet-2) 92%, transparent); }
.cover tfoot td { background: transparent; font: 600 var(--fs-sm)/1.3 var(--font-body); color: var(--ink-2); text-align: left; padding-top: 8px; }
@media (max-width: 1023.98px) {
  .cover col.c-area { width: 11.5em; }
  .cover col.c-first { width: 6.75em; }
  .cover tbody th { white-space: normal; }
}
@media (max-width: 759.98px) {
  .cover { min-width: 620px; }
  .cover col.c-area { width: 9.5em; }
  .cover col.c-first { width: 6.5em; }
  .cover tbody th { white-space: normal; font-size: var(--fs-xs); line-height: 1.25; }
  .cover tbody th small { display: none; }
  .cover td { font-size: var(--fs-sm); }
  .squared { padding: 12px 8px 10px; }
}
.cover-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: var(--fs-xs); color: var(--ink-2); }
.cover-key span { display: inline-flex; align-items: center; gap: 8px; }
.cover-key i { width: 16px; height: 12px; border-radius: 3px; background: var(--gum-wash); }
.cover-key i.band { background: var(--ocean-wash); }
.senior { margin-top: 28px; display: grid; gap: 8px; max-width: 70ch; }
.senior h3 { font-size: var(--fs-lg); }
.senior p { color: var(--ink-2); }

/* ---------------------------------------------------------- price list */
.pricelist { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.pricelist > li {
  display: grid; gap: 10px 32px;
  grid-template-columns: minmax(0, 1fr);
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-strong);
}
@media (min-width: 760px) {
  .pricelist > li { grid-template-columns: minmax(0, 13em) minmax(0, 11em) minmax(0, 1fr) auto; align-items: baseline; }
}
.pricelist h3 { font-size: var(--fs-xl); }
.pricelist .who { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }
.price { font: 750 var(--fs-2xl)/1 var(--font-display); font-stretch: 90%; letter-spacing: -0.02em; white-space: nowrap; }
.price small { font: 600 var(--fs-sm)/1 var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.price-alt { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.save { display: inline-block; margin-top: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink); background: var(--wattle-wash); padding: 2px 6px; border-radius: var(--r-xs); }
.pricelist .what { color: var(--ink-2); max-width: 46ch; }
.pricelist .what ul { margin: 0; padding-left: 1.1em; }
.pricelist .what li + li { margin-top: 4px; }
.pricelist .go { align-self: center; }
.pricelist > li.is-feature { position: relative; }
.pricelist > li.is-feature::before { content: ""; position: absolute; left: -16px; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: var(--wattle); }
@media (max-width: 1023.98px) { .pricelist > li.is-feature::before { left: -12px; } }
@media (max-width: 759.98px) { .pricelist .go .btn { width: 100%; } .pricelist > li.is-feature::before { display: none; } }
.billing-toggle { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.billing-toggle .seg button { min-height: 44px; padding: 0 18px; font-size: var(--fs-sm); }
.billing-toggle p { font-size: var(--fs-sm); color: var(--ink-2); }

.founding {
  display: grid; gap: 6px; margin-top: 28px; padding: 18px 20px;
  border-radius: var(--r-md); background: var(--sheet); border: 1.5px dashed var(--rule-strong);
  max-width: 64ch;
}
.founding b { font: 700 var(--fs-lg)/1.25 var(--font-display); font-stretch: 92%; }
.founding p { color: var(--ink-2); font-size: var(--fs-sm); }

/* comparison table */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--sheet); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font: 700 var(--fs-md)/1.2 var(--font-display); font-stretch: 92%; background: var(--sheet-2); position: sticky; top: 0; }
.compare thead th small { display: block; font: 600 var(--fs-xs)/1.3 var(--font-body); color: var(--muted); margin-top: 2px; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink); min-width: 14em; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr.group th { background: var(--paper); font: 700 var(--fs-sm)/1.2 var(--font-display); color: var(--ink-2); padding-top: 18px; }
.compare td { color: var(--ink-2); }
.compare .yes { display: inline-flex; color: var(--success); }
.compare .yes svg, .compare .no svg { width: 20px; height: 20px; stroke-width: 2.5; }
.compare .no { display: inline-flex; color: var(--muted); }

/* ---------------------------------------------------- commitments */
.pledges { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 48px; }
@media (min-width: 900px) { .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pledges li { padding: 20px 0 22px; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.pledges svg { width: 24px; height: 24px; color: var(--gum); margin-top: 2px; }
.pledges h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.pledges p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; max-width: 52ch; }

.helpline {
  margin-top: 36px; padding: 22px 24px; border-radius: var(--r-md);
  background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--ocean);
}
.helpline h3 { font-size: var(--fs-lg); }
.helpline > p { margin-top: 6px; color: var(--ink-2); max-width: 64ch; }
.numbers { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(13.5em, 1fr)); }
.numbers a {
  display: grid; gap: 2px; padding: 12px 14px; min-height: 44px;
  border-radius: var(--r-sm); background: var(--sheet-2); color: var(--ink); text-decoration: none;
}
.numbers a:hover { background: var(--gum-wash); }
.numbers b { font: 750 var(--fs-xl)/1.1 var(--font-display); font-stretch: 92%; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.numbers span { font-size: var(--fs-xs); color: var(--ink-2); }

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--rule-strong); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center;
  min-height: 64px; padding: 14px 0;
  font: 700 var(--fs-lg)/1.3 var(--font-display); font-stretch: 94%; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--gum), var(--gum)) center / 12px 2px no-repeat,
    linear-gradient(var(--gum), var(--gum)) center / 2px 12px no-repeat,
    var(--gum-wash);
  transition: transform var(--t-med) var(--ease-out);
}
.faq details[open] summary::after { background: linear-gradient(var(--gum), var(--gum)) center / 12px 2px no-repeat, var(--gum-wash); }
.faq summary:focus-visible { box-shadow: var(--focus); border-radius: var(--r-xs); }
.faq .a { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 68ch; }
.faq .a > * + * { margin-top: 0.8em; }
.faq .a ul { padding-left: 1.2em; }

/* -------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form .two { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); padding: 0; }
.field .help { font-size: var(--fs-xs); color: var(--muted); }
.input, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--sheet); color: var(--ink);
  font: 400 var(--fs-md)/1.4 var(--font-body);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus-visible, .textarea:focus-visible { box-shadow: var(--focus); border-color: var(--gum); border-radius: var(--r-sm); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.checks input { width: 20px; height: 20px; accent-color: var(--gum); }
.estimate {
  padding: 18px 20px; border-radius: var(--r-md);
  background: var(--sheet); border: 1px solid var(--line);
  display: grid; gap: 4px;
}
.estimate output { font: 750 var(--fs-3xl)/1 var(--font-display); font-stretch: 90%; letter-spacing: -0.02em; }
.estimate p { font-size: var(--fs-xs); color: var(--muted); }
.estimate h3 { font-size: var(--fs-lg); }
.estimate .estimate__label { margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 960px) { .estimate { position: sticky; top: 24px; } }

/* ----------------------------------------------------- generic content */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.split--wide-left { }
@media (min-width: 960px) { .split--wide-left { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 40px; }
@media (min-width: 760px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-list li { padding: 18px 0 20px; border-top: 1px solid var(--rule-strong); }
.feature-list h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.feature-list p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; max-width: 50ch; }
.page-hero { padding-top: 40px; }
@media (min-width: 1024px) { .page-hero { padding-top: 64px; } }
.page-hero h1 { font-size: var(--fs-3xl); font-weight: 760; letter-spacing: -0.03em; max-width: 18ch; }
@media (min-width: 760px) { .page-hero h1 { font-size: var(--fs-4xl); } }
@media (min-width: 1280px) { .page-hero h1 { font-size: 3.75rem; } }
.page-hero .lede { margin-top: 20px; }
.page-hero .btn-row { margin-top: 28px; }

.callout {
  padding: 18px 20px; border-radius: var(--r-md);
  background: var(--ocean-wash); color: var(--ink);
  max-width: var(--measure);
}
.callout > * + * { margin-top: 8px; }
.callout--draft { background: var(--margin-wash); border: 1.5px dashed var(--margin); }

.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--sheet); }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { font-weight: 700; color: var(--ink); background: var(--sheet-2); }
.data-table td.n, .data-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody th { font-weight: 700; color: var(--ink); }
.data-table.counts tbody th { vertical-align: top; }
.prose .callout > * + * { margin-top: 8px; }
.prose .table-wrap { margin-top: 1em; }

.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; font-size: var(--fs-sm); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--ocean); text-decoration: none; line-height: 1.35; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 1023.98px) {
  .toc { grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: 0 16px; }
}

.quote-block { border-left: 3px solid var(--rule-strong); padding: 4px 0 4px 18px; color: var(--ink-2); }

.cta-band { display: grid; gap: 20px; align-items: center; padding: 36px 0 0; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band h2 { font-size: var(--fs-2xl); max-width: 24ch; }
@media (min-width: 760px) { .cta-band h2 { font-size: var(--fs-3xl); } }
.cta-band p { margin-top: 10px; color: var(--ink-2); max-width: 56ch; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--sheet-2); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); }
.site-foot__in { max-width: var(--maxw); margin-inline: auto; padding: 56px var(--gutter) 40px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.foot-grid .about { grid-column: 1 / -1; max-width: 46ch; }
.foot-grid .foot-help { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid .foot-help { grid-column: auto; } }
.tel { font-family: var(--font-display); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 900px) { .foot-grid .about { grid-column: auto; } }
.foot-grid h2 { font-size: var(--fs-md); margin-bottom: 10px; letter-spacing: -0.005em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.foot-grid ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot-grid ul a:hover { color: var(--ink); text-decoration: underline; }
.about p + p { margin-top: 12px; }
.about__lead { margin-top: 14px; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 16px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; }
.foot-legal a { color: var(--ink-2); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.theme-switch { display: inline-flex; align-items: center; gap: 10px; }
.theme-switch .seg button { min-height: 36px; }

/* --------------------------------------------------------------- 404 */
.lost { padding-top: 56px; }
.lost__sheet { max-width: 680px; }
.lost .sheet__body { padding: 0 24px 32px calc(var(--mx) + 22px); }
.lost__h { font-size: var(--fs-2xl); line-height: calc(var(--ruled) * 2); padding-top: 12px; margin-bottom: 4px; }
.lost .crossed { text-decoration: line-through; text-decoration-color: var(--margin); text-decoration-thickness: 3px; color: var(--muted); }
.lost__links { list-style: none; padding: 0; margin: var(--ruled) 0 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.lost__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (max-width: 599.98px) { .lost .sheet__body { padding-left: 18px; } }

/* ----------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .note.is-writing .w { opacity: 1; }
}

@media print {
  .site-head, .site-foot, .nav-toggle, .skip { display: none; }
  .folio::before { display: none; }
  body { background: none; }
}

/* ------------------------------------------------ worksheet illustration */
.ws__body { padding: 0 22px 20px calc(var(--mx) + 22px); }
.ws__tabs { margin: 4px 0 10px; background: var(--sheet-2); }
.ws__q { margin: 0; padding: 0 0 0 1.4em; font-size: 1.125rem; }
.ws__q li { padding-left: 4px; }
.ws__q li::marker { font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.ws__q li > span:first-child { margin-right: 14px; }
.ws__key { color: var(--ocean); font-size: var(--fs-sm); white-space: nowrap; }
.ws__key::before { content: "Key: "; color: color-mix(in srgb, var(--ocean) 70%, var(--ink-3)); font-size: var(--fs-xs); }
.ws__gloss { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--wattle-wash); line-height: 1.5; font-size: var(--fs-sm); }
.ws__gloss-t { font-weight: 700; font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 2px; }
@media (max-width: 599.98px) { .ws__body { padding-left: 18px; padding-right: 18px; } }

/* ------------------------------------------------ numbered sequences (real sequences only) */
.seq { list-style: none; padding: 0; margin: 0; counter-reset: q; display: grid; gap: 0; }
.seq > li { counter-increment: q; position: relative; padding: 0 0 26px 52px; }
.seq > li::before {
  content: counter(q);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); background: var(--paper);
  font: 700 var(--fs-sm)/1 var(--font-display);
}
.seq > li::after { content: ""; position: absolute; left: 16.5px; top: 34px; bottom: 2px; width: 1.5px; background: var(--rule-strong); }
.seq > li:last-child { padding-bottom: 0; }
.seq > li:last-child::after { display: none; }
.seq h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.seq p { margin-top: 4px; color: var(--ink-2); max-width: 54ch; }

/* ------------------------------------------------ do / don't lists */
.dodont { display: grid; gap: 28px; }
@media (min-width: 900px) { .dodont { grid-template-columns: 1fr 1fr; gap: 48px; } }
.dodont h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.dodont ul { list-style: none; padding: 0; margin: 0; }
.dodont li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule-strong); color: var(--ink-2); }
.dodont li svg { width: 20px; height: 20px; margin-top: 3px; stroke-width: 2.25; }
.dodont .does svg { color: var(--success); }
.dodont .doesnt svg { color: var(--margin); }

/* ------------------------------------------------ status list (schools) */
.status-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.status-list > li { display: grid; gap: 6px 28px; padding: 20px 0; border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 760px) { .status-list > li { grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; align-items: baseline; } }
.status-list h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.status-list p { color: var(--ink-2); max-width: 60ch; }
.status { --_dot: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--r-xs); font-size: var(--fs-xs); font-weight: 700; color: var(--ink); white-space: nowrap; justify-self: start; background: var(--sheet-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--_dot); }
.status--now { --_dot: var(--success); background: var(--success-wash); }
.status--launch { --_dot: var(--ocean); background: var(--ocean-wash); }
.status--planned { --_dot: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); }

.mt-l { margin-top: 36px; }
.mt-xl { margin-top: 56px; }
.mt-s { margin-top: 14px; }
