/* Home · Story rows — page chrome and the sections below the hero.
   Built on ../../brand/clear-brand.css: slate light (:root / .theme-light)
   and slate dark (.theme-dark), switched on <html>.

   ONE PLAIN PAGE: no grid, no sheets, no cards around sections. Everything
   below the hero sits straight on the page and is organised by type,
   spacing and the content's own shapes: three big figures under green
   labels, a course finder whose tiles are the only boxes, then three STORY
   ROWS (Learn it / Practice it / Walk in ready), each a heading, a
   three-item feature list and one large collage made of that row's real
   Clear UI, then one instructor's answer, larger, then the closing line
   with the hero's two actions. Colour is the lanes' and only where it
   means something: learn blue, practice violet, exams orange, and pink
   for flashcards in the hero's Today (each story row keeps to its one
   colour); Discuss is muted ink; green is the brand. No glows, no glass,
   no decorative rules.
   Every colour below is a Clear token or one of the page tokens defined
   here once per theme; component rules never name a theme. */

html { scroll-padding-top: 84px; }
/* html.theme-* outranks the brand sheet's theme-scope paint (.theme-light { background-color: var(--background) }). */
html, html.theme-light, html.theme-dark { background-color: var(--page); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: transparent; color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* One column: header, main (takes the spare height), footer. A short page
   keeps its footer at the bottom of the screen. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > main { flex: 1 0 auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* The page: one plain colour per theme. Light is a touch brighter than
   Clear's app background, so white UI reads crisp on it without a grid;
   dark is Clear's slate dark. */
:root, .theme-light { --page: #f5f7fa; }
.theme-dark { --page: var(--background); }

/* ── Page tokens, light (built first) ─────────────────────────────
   Paper is brighter than Clear's card so objects read as physical sheets on
   the slate page; depth is a slate-ink shadow stack. */
:root, .theme-light {
  --ink: #161d28;
  --paper: #ffffff;
  --edge: rgb(22 29 40 / 0.09);
  --hair: rgb(22 29 40 / 0.12);        /* control edges inside a card */
  --hair-soft: rgb(22 29 40 / 0.08);   /* rules inside a card */
  --shade: 22 29 40;                   /* shadow ink (rgb triplet) */
  --shade-k: 1;                        /* shadow strength multiplier */
  --sheen: 0 0 #0000;                  /* top-edge light (dark only) */
  --lift-1: 0 1px 1px rgb(22 29 40 / 0.04), 0 2px 4px -1px rgb(22 29 40 / 0.05), 0 10px 20px -6px rgb(22 29 40 / 0.08), 0 28px 56px -18px rgb(22 29 40 / 0.16);
  --lift-2: 0 1px 1px rgb(22 29 40 / 0.05), 0 4px 8px -2px rgb(22 29 40 / 0.06), 0 18px 36px -10px rgb(22 29 40 / 0.14), 0 48px 96px -28px rgb(22 29 40 / 0.26);
  --glass: rgb(255 255 255 / 0.75);
  --glass-hover: #ffffff;
  --nav-hover: color-mix(in oklab, var(--muted) 70%, transparent);
  --row-hover: var(--mono-surface);
  --toast-bg: #161d28;
  --toast-fg: #f2f4f6;
  --toast-edge: transparent;
  /* Sheets: the one lift every section's sheet carries. */
  --lift-panel: var(--lift-1);
}

/* ── Page tokens, dark ─────────────────────────────────────────────
   Not an inversion: the page is Clear's slate dark (#13161b), cards are
   Clear's card (#272a2f). Depth comes from light, not ink: every raised
   surface carries a faint top-edge sheen and a 1 px lit edge, and sits on a
   deep black shadow. */
.theme-dark {
  --ink: var(--card-foreground);
  --paper: var(--card);
  --edge: rgb(255 255 255 / 0.075);
  --hair: rgb(255 255 255 / 0.13);
  --hair-soft: rgb(255 255 255 / 0.08);
  --shade: 0 0 0;
  --shade-k: 2.2;
  --sheen: inset 0 1px 0 rgb(255 255 255 / 0.055);
  --lift-1: 0 1px 1px rgb(0 0 0 / 0.22), 0 2px 4px -1px rgb(0 0 0 / 0.28), 0 10px 20px -6px rgb(0 0 0 / 0.34), 0 28px 56px -18px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.05);
  --lift-2: 0 1px 1px rgb(0 0 0 / 0.26), 0 4px 8px -2px rgb(0 0 0 / 0.32), 0 18px 36px -10px rgb(0 0 0 / 0.44), 0 48px 96px -28px rgb(0 0 0 / 0.62), inset 0 1px 0 rgb(255 255 255 / 0.06);
  --glass: rgb(39 42 47 / 0.78);
  --glass-hover: var(--surface-raised);
  --nav-hover: rgb(255 255 255 / 0.07);
  --row-hover: var(--surface-raised);
  --toast-bg: var(--popover-elevated);
  --toast-fg: var(--card-foreground);
  --toast-edge: rgb(255 255 255 / 0.08);
  /* A softer lift than the hero's cards, so the paper between sheets never
     reads as a shadow trough. */
  --lift-panel: 0 1px 1px rgb(0 0 0 / 0.22), 0 2px 4px -1px rgb(0 0 0 / 0.26), 0 10px 20px -6px rgb(0 0 0 / 0.28), 0 28px 56px -18px rgb(0 0 0 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.05);
}

/* Theme switch: a 200 ms cross-fade of the whole page (View Transitions). */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: ease; }

/* ── Header (transparent over the hero light, frosted once scrolled) ──
   Exactly three things on the right, one text size (14/20) and one height
   (36 px), so their text sits on one line: Courses (link), Sign in (the one
   outlined button), the theme toggle (icon button). */
.site-header { position: sticky; top: 0; z-index: 11; background: color-mix(in oklab, var(--background) 0%, transparent); border-bottom: 1px solid transparent; transition: background-color 250ms ease, border-color 250ms ease; }
/* Once the page moves, the bar is solid page colour with a hairline. A
   frosted (see-through, blurred) bar turned the big headline scrolling
   under it into a smeared block on iPad. */
.site-header.is-scrolled { background: var(--page); border-bottom-color: color-mix(in oklab, var(--border) 70%, transparent); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1280px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--card-foreground); }
.brand__mark { width: 30px; height: 25px; color: var(--brand); }
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav__link, .site-nav__theme { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 36px; border-radius: var(--radius-lg); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav__courses { padding: 0 12px; border: 1px solid transparent; color: var(--card-foreground); }
.site-nav__courses:hover { background: var(--nav-hover); }
.site-nav__signin { margin-left: 2px; padding: 0 15px; border: 1px solid var(--border-strong); background: color-mix(in oklab, var(--card) 55%, transparent); color: var(--card-foreground); }
.site-nav__signin:hover { background: var(--nav-hover); }
.site-nav__theme { position: relative; width: 36px; padding: 0; border: 1px solid transparent; background: transparent; color: var(--card-foreground); cursor: pointer; }
.site-nav__theme:hover { background: var(--nav-hover); }
.site-nav__link:focus-visible, .site-nav__theme:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ring); }
html:not(.js) .site-nav__theme { display: none; } /* the toggle needs the head script */
/* Moon in light (the way to dark), sun in dark. */
.theme-ico { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 200ms ease, transform 300ms var(--ease-signature); }
.theme-ico--moon { width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; }
.theme-light .theme-ico--sun, .theme-dark .theme-ico--moon { opacity: 0; transform: rotate(-70deg) scale(0.6); }
/* Header colours ease on a theme switch. */
.site-header, .brand, .site-nav__link, .site-nav__theme { transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease; }

/* ── Courses menu (page.js; 900 px and up) ─────────────────────────────
   The button replaces the Courses link from 900 px; below that (and with
   no JS) the link goes to the All courses page. The panel hangs under the
   header across the full width: search and the five groups on the left,
   the chosen group's courses on the right. A tint covers the page behind. */
.site-nav .site-nav__menu { display: none; gap: 4px; padding-right: 9px; background: transparent; cursor: pointer; }
@media (min-width: 900px) {
  .has-cmenu .site-nav .site-nav__menu { display: inline-flex; }
  .has-cmenu a.site-nav__courses { display: none; }
}
.site-nav__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-signature); }
.site-nav__menu[aria-expanded="true"] { background: var(--nav-hover); }
.site-nav__menu[aria-expanded="true"] .site-nav__chev { transform: rotate(180deg); }
/* Open: the bar goes solid, like scrolled, so the panel reads as part of it. */
.site-header.is-menu { background: var(--page); border-bottom-color: color-mix(in oklab, var(--border) 70%, transparent); }

.cmenu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 64px); max-height: calc(100svh - 64px); overflow-y: auto; overscroll-behavior: contain; background: var(--page); border-bottom: 1px solid var(--border); box-shadow: var(--lift-2); opacity: 0; transform: translateY(-6px); transition: opacity 160ms ease, transform 220ms var(--ease-signature); }
.cmenu.is-open { opacity: 1; transform: none; }
.cmenu-scrim { position: fixed; inset: 0; z-index: 10; background: rgb(var(--shade) / calc(0.16 * var(--shade-k))); opacity: 0; transition: opacity 180ms ease; }
.cmenu-scrim.is-open { opacity: 1; }
.cmenu__inner { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 32px; box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 24px 32px 32px; }
.cmenu__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cmenu__rail { grid-column: 1; grid-row: 1; }
/* Every group's courses share one cell, the others kept but invisible, so
   the panel is always as tall as the tallest group (SOA) and doesn't
   change size as groups change. */
.cmenu__panes { grid-column: 2; grid-row: 1 / span 2; display: grid; }
.cmenu__pane { grid-area: 1 / 1; }
.cmenu__pane[hidden] { display: block; visibility: hidden; }
.cmenu__search { width: 100%; }
.cmenu__search input { height: 42px; font-size: 15px; }
.cmenu__search svg { width: 16px; height: 16px; }
.cmenu__tabs { display: grid; row-gap: 2px; margin-top: 14px; }
.cmenu__tab { display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--card-foreground); font: 600 15px/20px var(--font-sans); letter-spacing: -0.005em; text-align: left; cursor: pointer; }
.cmenu__tab-name { flex: 1; min-width: 0; }
.cmenu__tab-n { font-weight: 500; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
/* The chosen group: the All courses page's marking. No hover tint and no
   fade: resting on a group chooses it, so a tint first and a fade between
   pills read as flicker. */
.cmenu__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.cmenu__tab[aria-selected="true"] .cmenu__tab-n { color: var(--paper); }
.cmenu__all { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; display: inline-flex; gap: 5px; margin: 14px 0 0 12px; font-size: 14.5px; line-height: 20px; font-weight: 600; color: var(--primary-text); text-decoration: none; }
.cmenu__all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Courses: code, then its name; up to three columns, each at least 220 px. */
.cmenu__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 24px) / 3)), 1fr)); gap: 2px 12px; }
.cmenu__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 1px; padding: 8px 12px 9px; border-radius: var(--radius-lg); text-decoration: none; transition: background-color 150ms ease; }
.cmenu__item:hover { background: var(--nav-hover); }
.cmenu__code { grid-row: 1; grid-column: 1; font-size: 15px; line-height: 20px; font-weight: 650; letter-spacing: -0.005em; color: var(--card-foreground); }
.cmenu__free { grid-row: 1; grid-column: 2; justify-self: start; }
.cmenu__nm { grid-row: 2; grid-column: 1 / -1; font-size: 13.5px; line-height: 18px; color: var(--muted-foreground); text-wrap: pretty; }
/* SOA: one column per track, headed by its name. */
.cmenu__tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 24px) / 3)), 1fr)); gap: 18px 12px; }
.cmenu__track .cmenu__list { grid-template-columns: minmax(0, 1fr); }
.cmenu__track-h { padding: 0 12px 4px; font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }

.cmenu__tab:focus-visible, .cmenu__item:focus-visible, .cmenu__all:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ring); }
@media (prefers-reduced-motion: reduce) {
  .cmenu, .cmenu-scrim, .site-nav__chev { transition: none; }
  .cmenu { transform: none; }
}
@media (forced-colors: active) {
  .cmenu { border: 1px solid CanvasText; }
  .cmenu__tab[aria-selected="true"] { outline: 2px solid Highlight; }
}

/* ── Lane colours, two strengths ──────────────────────────────────
   Clear's lane tokens (--learn, --practice, --flashcards, --exams) are
   tuned for small text, so in light they sit at 6:1 and up and read nearly
   ink (violet) or brown (orange). Large type (24 px and up), glyphs and
   fills use a brighter step of the same hue (3.5:1 or more on the page);
   small text keeps the AA tokens. Dark's lane tokens are already bright.
   An answered exam square is a bright orange fill with an ink numeral
   (4.8:1), the same dark-on-orange dark mode uses. */
:root, .theme-light {
  --learn-hi: #1784c9;       /* 3.8:1 on the page */
  --practice-hi: #8455ec;    /* 4.4:1 */
  --exams-hi: #d65f00;       /* 3.6:1 */
  --exams-fill: #e06400;     /* ink numeral on it 4.8:1, as dark's dark-on-orange */
  --exams-fill-fg: #161d28;
}
.theme-dark {
  --learn-hi: var(--learn);
  --practice-hi: var(--practice);
  --exams-hi: var(--exams);
  --exams-fill: var(--exams);
  --exams-fill-fg: var(--on-accent-fill);
}

/* ── Section title ─────────────────────────────────────────────── */
.section-title { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; font-weight: 700; letter-spacing: -0.038em; color: var(--ink); text-wrap: balance; }
/* The one kicker style on the page: brand green, small caps. */
.kicker, .courses__eyebrow, .cred__label { display: block; font-size: 13px; line-height: 16px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-text); }

/* ── Scroll reveal (JS adds .is-in; no-JS and reduced motion show all) ── */
.js:not(.orbit-static) .reveal-up { opacity: 0; transform: translateY(18px); }
.js .reveal-up.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-signature), transform 700ms var(--ease-signature); transition-delay: var(--rd, 0ms); }
@media (prefers-reduced-motion: reduce) { .js .reveal-up { opacity: 1 !important; transform: none !important; } }

/* ── Rhythm ───────────────────────────────────────────────────────
   One gap between sections (--rhythm), measured from the hero's Today card.
   Sections have no surface of their own. */
:root { --rhythm: 136px; }
main > section { position: relative; }

/* ── Credibility: three big figures on the page ───────────────────
   One shape for all three: a green label, the figure, one line under it,
   so the figures share a left edge and a baseline. The figures stay well
   under the headline's size and hold still, so the hero is the only thing
   that leads (and moves) on first load. */
.cred { padding-top: max(0px, calc(var(--rhythm) - var(--stage-pb, 88px))); }
.cred__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; }
.cred__item dt { display: flex; flex-direction: column; }
.cred__num { margin-top: 10px; font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.cred__item dd { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--muted-foreground); max-width: 290px; }

/* ── Find your course ─────────────────────────────────────────────
   A heading row (eyebrow + title left, search right), then five group
   cards straight on the page, the only boxes, and a text link on to every
   course. The finder hands off to the All courses page: the search is a
   plain GET form to courses.html (?q=), so Enter opens it filtered with or
   without JS, and each card opens it on its group (?group=). Every card is
   a flat tile with a 1 px edge: the group name is the strongest thing on
   it, its course count muted beside it, what's in it small underneath, and
   a quiet chevron says "this opens". Hover is a colour step (fill one step
   down, edge to the 3:1 control edge, chevron to brand green), never a
   fade, and only where a pointer can hover. */
:root, .theme-light {
  --tile-bg: #ffffff;
  --tile-edge: rgb(22 29 40 / 0.13);
  --tile-hover: var(--background);           /* #eef2f6, one step down */
  --tile-press: #e4e9ef;
  --tile-chevron: var(--border-strong);
  --field-bg: #ffffff;
}
.theme-dark {
  --tile-bg: var(--card);                    /* #272a2f on the #13161b page */
  --tile-edge: rgb(255 255 255 / 0.09);
  --tile-hover: var(--popover-elevated);     /* #373b40, one step up */
  --tile-press: #33373c;                     /* back down a half step; name stays >= 4.5:1 */
  --tile-chevron: var(--border-strong);
  --field-bg: var(--card);
}
.courses { padding-top: var(--rhythm); }
.courses__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.courses__eyebrow { margin-bottom: 14px; }
.search { position: relative; width: min(440px, 100%); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted-foreground); stroke-width: 2; stroke-linecap: round; }
.search input { box-sizing: border-box; width: 100%; height: 52px; padding: 0 16px 0 44px; border: 1px solid var(--input-border); border-radius: var(--radius-xl); background: var(--field-bg); color: var(--card-foreground); font: 16px var(--font-sans); }
.search input::placeholder { color: var(--muted-foreground); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-left: 8px; cursor: pointer; background: var(--muted-foreground);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
/* An empty box shows no clear button, so it takes no room from the placeholder. */
.search input:placeholder-shown::-webkit-search-cancel-button { display: none; }
.search input::-webkit-search-cancel-button:hover { background: var(--card-foreground); }
.search input:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 22%, transparent); border-color: var(--ring); }

/* The cards: one row of five on desktop, every card the same size (equal
   columns, and every row as tall as the tallest card). A card's height is
   set from its parts: padding, the name row, and --lines (two) lines of
   what's in it, which every card's line fits in at every width; a min, not
   a fixed height, so text could never spill out. The name row is 22 px.
   The name sits at the top and the line at the foot (space-between), so a
   one-line card's spare room reads as the card's shape, the same in every
   card, not as a gap under it. */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.tiles > li { display: flex; min-width: 0; }
.tile { --chev-room: 20px; --pad-t: 11px; --pad-b: 12px; --code-lh: 22px; --row-gap: 2px; --name-fs: 13px; --name-lh: 17px; --lines: 2;
  position: relative; flex: 1; min-width: 0; min-height: calc(var(--pad-t) + var(--code-lh) + var(--row-gap) + var(--lines) * var(--name-lh) + var(--pad-b) + 2px);
  display: grid; grid-template-columns: minmax(0, 1fr) var(--chev-room); grid-template-areas: "code ." "name name"; align-content: space-between; row-gap: var(--row-gap); padding: var(--pad-t) 11px var(--pad-b); border: 1px solid var(--tile-edge); border-radius: var(--radius-xl); background: var(--tile-bg); text-decoration: none; color: var(--muted-foreground); transition: background-color 150ms ease, border-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.tile > b { grid-area: code; font-size: 17px; line-height: var(--code-lh); font-weight: 700; letter-spacing: -0.012em; color: var(--card-foreground); }
/* The count, muted after the name on its line ("Preliminary · 9"); screen readers hear "9 courses". */
.tile__count { font-weight: 500; letter-spacing: -0.005em; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile__name { grid-area: name; font-size: var(--name-fs); line-height: var(--name-lh); text-wrap: balance; }
.nw { white-space: nowrap; }
.tile::after { content: ""; position: absolute; top: calc(var(--pad-t) + var(--code-lh) / 2 - 8px); right: 10px; width: 16px; height: 16px; background: var(--tile-chevron);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 3.5 4.5 4.5L6 12.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 3.5 4.5 4.5L6 12.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  transition: background-color 150ms ease, transform 220ms var(--ease-signature); }
@media (hover: hover) {
  .tile:hover { background: var(--tile-hover); border-color: var(--border-strong); }
  .tile:hover::after { background: var(--primary-text); transform: translateX(2px); }
}
.tile:active { background: var(--tile-press); }
.tile:focus-visible { outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ring); }
.tile:focus-visible::after { background: var(--primary-text); }
@media (prefers-reduced-motion: reduce) {
  .tile::after { transition: background-color 150ms ease; }
  .tile:hover::after { transform: none; }
}
@media (forced-colors: active) { .tile::after { background: LinkText; } }

/* The Free badge (the All courses page's prices wear it). */
.badge--free { border-color: color-mix(in oklab, var(--success) 40%, transparent); background: color-mix(in oklab, var(--success) 8%, var(--tile-bg)); color: var(--card-foreground); font-size: 12px; padding: 2px 9px; }
/* A course not open yet ("Jan 2027"): neutral, as courses.css draws it. */
.badge--soon { border-color: var(--border-strong); background: var(--paper); color: var(--card-foreground); font-size: 12px; padding: 2px 9px; }
.courses .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* On to every course: the site's text link (fm.css's .prod-link), a 44 px tap row. */
.courses__all { margin-top: 12px; }
.courses__all .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 16px; line-height: 22px; font-weight: 600; }
.courses__all .link:focus-visible { border-radius: 4px; }

/* Five across needs about 197 px a card to keep "Additional skills · 2"
   on one line, so below 1140 px (a few px to spare) the cards go three
   across (3 + 2). */
@media (max-width: 1139px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Two across on small tablets (2 + 2 + 1); cards tighten a step. */
@media (max-width: 739px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { --chev-room: 16px; --pad-t: 8px; --pad-b: 9px; --row-gap: 1px; padding-inline: 10px; }
  .tile > b { font-size: 16.5px; }
  .tile::after { right: 7px; }
}
/* Phones: one card per row, the line under the name a size up (13.5 px). */
@media (max-width: 519px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { --name-fs: 13.5px; --name-lh: 18px; }
}


/* ── Everything in one place: three story rows ─────────────────────
   Each row is a heading, a three-item list and one large collage, set
   straight on the page and alternating sides (art right, left, right).
   The collage bleeds up to 60 px past the text column on its own side, so
   the pictures are Stripe-large while the headings keep the page's left
   edge. The row's lane colour shows in three places only: the heading's
   key word, the bare glyph beside each feature, and the UI in its collage.
   One colour per row: every glyph and label in a row takes the row's lane
   (Flashcards are practice violet here; the hero's Today keeps Clear's
   pink for them). The one exception is the plan card, whose blue, violet
   and orange name its phases (its own title is ink, so no fourth hue).
   Discuss has no hue. */
:root, .theme-light {
  --xl-head: #f1f4f8;          /* spreadsheet headers and the formula bar's cell box */
  /* Collage cards: crisp 1 px edges, short shadows (24 px blur at most). */
  --art-edge: rgb(22 29 40 / 0.13);
  --art-lift: 0 1px 2px rgb(22 29 40 / 0.06), 0 6px 16px -8px rgb(22 29 40 / 0.12);
  --art-lift-front: 0 1px 2px rgb(22 29 40 / 0.07), 0 10px 24px -10px rgb(22 29 40 / 0.14);
  --art-front: #ffffff;
  --note-tint: 10%;
  --xl-hi: 16%;                /* the spreadsheet's highlighted column and row headers */
  /* The instructor exchange, straight on the page: the student's bubble a
     slate fill, the instructor's reply white paper with a 1 px edge. */
  --ask-q: #e5eaf0;
  --ask-a: #ffffff;
}
.theme-dark {
  --xl-head: #383c42;
  --art-edge: rgb(255 255 255 / 0.12);
  --art-lift: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 16px -8px rgb(0 0 0 / 0.4);
  --art-lift-front: 0 1px 2px rgb(0 0 0 / 0.32), 0 10px 24px -10px rgb(0 0 0 / 0.5);
  --art-front: var(--surface-raised);
  --note-tint: 6%;             /* keeps the violet FEEDBACK kicker at 4.5:1 on the raised card */
  --xl-hi: 23%;                /* 16% reads brown on the dark card */
  --ask-q: #31353b;
  --ask-a: var(--card);
}
.inside { --bleed: clamp(0px, calc((100vw - 1176px) / 2), 60px); padding-top: var(--rhythm); padding-bottom: 0; }
.stories { display: grid; row-gap: 144px; margin-top: 64px; }
.story { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 680px); align-items: center; column-gap: 64px; margin-right: calc(-1 * var(--bleed)); }
.story--flip { grid-template-columns: minmax(0, 680px) minmax(280px, 1fr); margin-right: 0; margin-left: calc(-1 * var(--bleed)); }
.story--flip .story__text { order: 2; }
.story__title { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.story__hue { color: var(--tone); }

/* The list: a bare lane glyph on the title's line, the title, its one line. */
.feats { display: grid; row-gap: 28px; margin-top: 36px; }
.feat { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.feat__icon { grid-row: 1; display: block; width: 22px; height: 22px; margin-top: 1px; color: var(--tone); }
.feat__icon svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat__icon .fill { fill: currentColor; stroke: none; }
.feat__title { grid-column: 2; font-size: 19px; line-height: 24px; font-weight: 650; letter-spacing: -0.014em; color: var(--ink); }
.feat__copy { grid-column: 2; margin-top: 5px; max-width: 36ch; font-size: 16px; line-height: 1.55; color: var(--muted-foreground); }

/* The collage: a fixed design canvas (--cw by --ch) that page.js zooms to
   fit its column. Pieces are real Clear UI at real sizes, square to the
   page. Every pair of edges either lines up exactly or sits 40 px or more
   apart; neighbours sit on one 20 px gutter or overlap by 40 px or more,
   never a near miss. A card in front covers only empty paper on the card
   behind (or, on phones, whole rows), so no line of text is ever cut. */
.story__art { min-width: 0; }
.art { --cw: 680; --ch: 520; position: relative; width: calc(var(--cw) * 1px); height: calc(var(--ch) * 1px); margin-inline: auto; }
.art__item { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); width: calc(var(--w) * 1px); z-index: var(--z, 1); }
.art .o-card { border-color: var(--art-edge); box-shadow: var(--art-lift); transition: transform 450ms var(--ease-signature), box-shadow 450ms var(--ease-signature); }
.art__item--front > .o-card { --paper: var(--art-front); box-shadow: var(--art-lift-front); }
/* Pointing at a feature (or its card) brings its card forward (to --zh,
   9 unless set). A card whose empty half sits behind another keeps a --zh
   under that card: it lifts in place, so the front card's words are never
   covered. Not on the phone canvases, whose covers hide whole rows of the
   card behind. page.js sets .is-lift from real pointer moves only, so
   scrolling never lifts or drops a card. */
@media (hover: hover) and (min-width: 641px) {
  .art__item.is-lift { z-index: var(--zh, 9); }
  .art__item.is-lift > .o-card { transform: translateY(-6px); box-shadow: var(--art-lift-front); }
}
@media (prefers-reduced-motion: reduce) { .art__item > .o-card { transition: box-shadow 200ms ease; } .art__item.is-lift > .o-card, .story .art__item > .o-card { transform: none !important; } }

/* Row 1 · Learn: the lesson video and the study-manual page side by side
   on one 20 px gutter, feet level (323). Under the video, flush with its
   left edge and 20 below, the formula sheet; the student's note sits in
   front of the sheet's empty right side (its formulas end near x 140, the
   note starts at 200), tops level (343), its right edge flush with the
   page's (680) and its foot 40+ above the sheet's. Hovering the sheet
   lifts it in place behind the note. */
.art.art--learn { --ch: 560; }
.art__manual { --x: 420; --y: 0; --w: 260; --z: 1; }
.art__lesson { --x: 0; --y: 60; --w: 400; --z: 2; }
.art__sheet { --x: 0; --y: 343; --w: 260; --z: 3; --zh: 3; }
.art__note { --x: 200; --y: 343; --w: 480; --z: 4; }

.art .art-manual { box-sizing: border-box; padding: 20px 24px 30px; border-radius: var(--radius-md); }
.art .art-manual__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.art .art-manual__pg { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.art .art-manual__h { font-family: var(--font-reading); font-size: 16px; line-height: 22px; font-weight: 650; color: var(--ink); }
.art .art-manual__p { margin-top: 8px; font-family: var(--font-reading); font-size: 13.5px; line-height: 21px; color: var(--ink); }
.art .art-manual__eq { margin: 12px 0 4px; font-size: 15px; color: var(--ink); }

/* The player: the hero's Up next treatment, larger. A plain surface that
   follows the theme, inset in the card's paper (so on the light page it
   reads as a screen in a frame, never a hole), maths in ink, the play
   button and progress in lesson blue. */
.art .art-lesson { padding: 8px; border-radius: var(--radius-2xl); }
.art .art-vid { height: 245px; border-radius: 10px; }
.art .art-vid .chalk { left: 28px; top: 60px; font-size: 31px; }
.art .art-vid .chalk__note { margin-top: 12px; font-size: 25px; }
.art .art-vid .play { right: 28px; width: 60px; height: 60px; margin-top: -34px; }
.art .art-vid .play::after { left: 24px; top: 19px; border-width: 11px 0 11px 17px; }
.art .art-vid .vid__bar { left: 16px; right: 16px; bottom: 16px; }
.art .art-vid .vid__time { left: 18px; bottom: 30px; font-size: 13px; }
.art .art-vid__tag { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--vid-pill); box-shadow: inset 0 0 0 1px var(--hair); }

.art .art-sheet { padding: 22px 22px 8px; border-radius: var(--radius-md); }
.art .art-sheet__head { display: flex; flex-direction: column; align-items: flex-start; }
.art .art-sheet__sub { display: block; margin-top: 3px; font-size: 12.5px; line-height: 16px; color: var(--muted-foreground); }
.art .art-sheet__row { padding: 10px 0; font-size: 19px; color: var(--ink); border-bottom: 1px solid var(--hair-soft); }
.art .art-sheet__row:first-of-type { margin-top: 6px; }
.art .art-sheet__row:last-child { border-bottom: 0; }

/* The note: Clear's notes card for one lesson, typed text and one formula. */
.art .art-note { box-sizing: border-box; padding: 20px 22px 20px; border-radius: var(--radius-2xl); }
.art .art-note__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.art .art-note__saved { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted-foreground); }
.art .art-note__saved svg { width: 13px; height: 13px; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art .art-note__src { margin-top: 12px; font-size: 14.5px; line-height: 20px; font-weight: 650; letter-spacing: -0.005em; color: var(--ink); }
.art .art-note__text { margin-top: 6px; font-size: 14px; line-height: 21px; color: var(--ink); text-wrap: balance; }
.art .art-note__eq { margin-top: 12px; font-size: 18px; color: var(--ink); }

/* Row 2 · Practice: the problem and a flashcard on its stack, tops level;
   the spreadsheet working the same problem (=PV, 772.17) overlaps the
   problem's bottom-right by 28 (over choice D's empty right end, never its
   text) and clears the flashcard stack, right edge flush with the
   flashcard's. */
.art.art--practice { --ch: 465; }
.art__problem { --x: 0; --y: 0; --w: 400; --z: 2; }
.art__flash { --x: 440; --y: 0; --w: 240; --z: 3; } /* 40 off the problem; the stack's tilted back card still clears it by 20+ */
.art__xl { --x: 344; --y: 222; --w: 336; --z: 4; }

.art .art-problem { padding: 22px 22px 22px; border-radius: var(--radius-2xl); }
.art .art-problem__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted-foreground); }
.art .art-problem__stem { max-width: 320px; margin: 12px 0 16px; font-family: var(--font-reading); font-size: 15.5px; line-height: 1.55; color: var(--ink); text-wrap: balance; } /* three even lines at every zoom (one line of slack either way changes the card's height) */
.art .choices li.is-correct { border-color: var(--success); }

.art .art-flash__stack::before, .art .art-flash__stack::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-2xl); background: var(--paper); border: 1px solid var(--art-edge); box-shadow: var(--art-lift); }
.art .art-flash__stack::before { transform: rotate(-4deg) translate(-8px, 6px); }
.art .art-flash__stack::after { transform: rotate(2deg) translate(6px, 3px); }
.art .art-flash { box-sizing: border-box; display: flex; flex-direction: column; min-height: 196px; padding: 22px 18px 16px; border-radius: var(--radius-2xl); }
.art .art-flash__top { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted-foreground); }
.art .art-flash__face { flex: 1; display: flex; align-items: center; justify-content: center; margin: 8px 0 12px; font-size: 28px; color: var(--ink); }
.art .art-flash__rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.art .art-flash__rate span { display: flex; align-items: center; justify-content: center; height: 32px; border-radius: var(--radius-lg); border: 1px solid var(--hair); font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); }
.art .art-flash__rate .is-on { color: var(--ink); border-color: var(--practice-hi); background: color-mix(in srgb, var(--practice-hi) 12%, var(--paper)); }


.art .art-xl { overflow: hidden; padding-bottom: 22px; }
.art .art-xl__bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--hair-soft); font-size: 13px; color: var(--ink); white-space: nowrap; }
.art .art-xl__bar b { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; background: var(--xl-head); font-weight: 600; font-size: 12.5px; }
.art .art-xl__fx { font-family: var(--font-reading); font-style: italic; font-size: 14px; color: var(--muted-foreground); }
.art .art-xl__bar code { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); }
.art .art-xl__grid { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--hair-soft); }
.art .art-xl__grid i { box-sizing: border-box; display: flex; align-items: center; height: 36px; padding: 0 12px; border-right: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); font-style: normal; font-size: 14px; color: var(--ink); }
.art .art-xl__grid i:nth-child(3n) { border-right: 0; }
.art .art-xl__grid i:nth-last-child(-n+3) { border-bottom: 0; }
.art .art-xl__grid i.h { justify-content: center; padding: 0; background: var(--xl-head); font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.art .art-xl__grid i:nth-child(-n+3) { height: 26px; }
.art .art-xl__grid i.h.is-col, .art .art-xl__grid i.h.is-row { background: color-mix(in srgb, var(--practice-hi) var(--xl-hi), var(--paper)); color: var(--ink); }
.art .art-xl__grid i.n { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.art .art-xl__grid i.is-sel { position: relative; font-weight: 700; background: color-mix(in srgb, var(--practice-hi) 9%, var(--paper)); box-shadow: inset 0 0 0 2px var(--practice-hi); }

/* Row 3 · Walk in ready: the FM sample exam is the main object (timer up
   front), Today's plan 20 under it (learn, then review with the sample-exam
   days marked, ending on exam day), and a graded written answer 20 beside
   the exam, dropped so it overlaps the plan's empty top-right by 40. Plan and
   graded answer share their right edge. Hovering the plan lifts it in place
   behind the graded answer. */
.art.art--ready { --ch: 460; }
.art__exam { --x: 0; --y: 0; --w: 424; --z: 2; }
.art__grade { --x: 444; --y: 39; --w: 236; --z: 4; }
.art__plan { --x: 100; --y: 300; --w: 580; --z: 3; --zh: 3; }

.art .art-exam { padding: 22px 24px 24px; border-radius: var(--radius-2xl); }
.art .art-exam__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.art .art-exam__timer { height: 36px; gap: 8px; padding: 0 14px 0 11px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.art .art-exam__timer svg { width: 17px; height: 17px; stroke-width: 1.7; }
.art .art-exam__title { margin-top: 16px; font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.art .art-exam__meta { margin-top: 3px; font-size: 14px; color: var(--muted-foreground); }
.art .art-exam__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 18px; }
.art .art-exam__grid i { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--exams-hi) 40%, transparent); font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.art .art-exam__grid i.is-a { background: var(--exams-fill); border-color: var(--exams-fill); color: var(--exams-fill-fg); }
.art .art-exam__grid i.is-f { border: 2px solid var(--warning-mark); color: var(--ink); }
.art .art-exam__grid i.is-cur { border: 2px solid var(--ink); color: var(--ink); }

.art .art-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 18px 18px; border-radius: var(--radius-2xl); }
/* The score sits under the label on its own line, so a wider font can never push it past the card's edge. */
.art .art-grade__top { display: flex; align-items: center; }
.art .art-grade__total { margin: -2px 0 4px; font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.art .art-grade__total span { font-size: 18px; font-weight: 600; color: var(--muted-foreground); }
.art .art-grade__part { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--radius-lg); border: 1px solid var(--hair); font-size: 13.5px; color: var(--ink); }
.art .art-grade__part b { font-weight: 600; color: var(--muted-foreground); }
.art .art-grade__part em { margin-left: auto; white-space: nowrap; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.art .art-grade__part em.is-full { color: var(--success); }
.art .art-grade__note { padding: 10px 12px 11px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--exams-hi) var(--note-tint), var(--paper)); font-size: 13px; line-height: 1.45; color: var(--ink); }
.art .art-grade__note b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--exams); }


/* The plan: Today's run-up, one track, not to scale. Learn (blue) from
   today, then review (violet) with the sample-exam days on it (orange), to
   a flag on exam day. The labels share the track's columns, so each sits
   under its own stretch: the first two say when that stretch starts. */
.art .art-plan { --cols: minmax(0, 1.2fr) minmax(0, 1fr) 22px; padding: 22px 24px 22px; border-radius: var(--radius-2xl); }
.art .art-plan__top { display: flex; align-items: center; gap: 20px; } /* the key beside the title, so the top-right stays empty paper under the spreadsheet */
.art .art-plan__key { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--exams); }
.art .art-plan__key i { width: 12px; height: 12px; border-radius: 50%; background: var(--exams-fill); }
.art .art-plan__track { display: grid; grid-template-columns: var(--cols); column-gap: 4px; align-items: center; height: 28px; margin-top: 18px; }
.art .art-plan__seg { position: relative; height: 12px; border-radius: 6px; }
.art .art-plan__seg--learn { background: var(--learn-hi); }
.art .art-plan__seg--review { background: var(--practice-hi); }
.art .art-plan__seg i { position: absolute; left: var(--at); top: 50%; box-sizing: border-box; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid var(--paper); background: var(--exams-fill); }
.art .art-plan__flag { justify-self: end; display: block; width: 20px; height: 20px; color: var(--ink); }
.art .art-plan__flag svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.art .art-plan__flag .fill { fill: currentColor; }
.art .art-plan__labels { display: grid; grid-template-columns: var(--cols); column-gap: 4px; margin-top: 10px; }
.art .art-plan__lbl { grid-row: 1; display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 17px; color: var(--muted-foreground); white-space: nowrap; font-variant-numeric: tabular-nums; }
.art .art-plan__lbl b { font-size: 13.5px; line-height: 18px; font-weight: 650; color: var(--ink); }
.art .art-plan__lbl--learn { grid-column: 1; }
.art .art-plan__lbl--learn b { color: var(--learn); }
.art .art-plan__lbl--review { grid-column: 2; }
.art .art-plan__lbl--review b { color: var(--practice); }
.art .art-plan__lbl--exam { grid-column: 2 / 4; justify-self: end; align-items: flex-end; text-align: right; }

/* ── Meet Sidekick ─────────────────────────────────────────────────
   The heading and its line, then one wide Clear screen straight on the
   page, bleeding to the collages' edges on both sides: the practice
   problem on the left, Sidekick docked on the right. The screen is the only
   box; inside it the two sides are split by one hairline, and Sidekick
   sits a step off the problem's surface (Clear's card, or the raised
   surface in dark). Its header is Clear's: icon-only pills on a muted
   track (one sliding thumb marks the open tab), the home and close glyphs,
   a hairline, then a title line naming the open tab. Both header rows line
   up with the problem's top bar at 56 px. Every pane shares one grid cell,
   so switching tabs never changes the screen's height. Discuss has no hue.
   The problem side is a picture, so its Sidekick toggle is drawn bare (no
   pressed fill) and nothing there invites a click. From 1240 px Sidekick
   takes about 40% of the screen and the problem's column narrows, so the
   panel the section is named for leads. */
:root, .theme-light {
  --sk-pane: var(--card);
  --sk-a: #ffffff;             /* the instructor's avatar disc */
}
.theme-dark {
  --sk-pane: var(--surface-raised);
  --sk-a: var(--card);
}
.sk { margin-top: 160px; }
.sk__title { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
/* The line under "Everything you need" that names Clear (index.html#clear). */
.inside__sub { margin-top: 18px; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--muted-foreground); text-wrap: balance; }
.inside__sub b { color: var(--ink); font-weight: 650; }
.sk__copy { margin-top: 18px; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--muted-foreground); text-wrap: balance; }
.sk__screen { --skw: 400px; --bar-h: 56px; display: grid; grid-template-columns: minmax(0, 1fr) var(--skw); margin: 48px calc(-1 * var(--bleed)) 0; overflow: hidden; border: 1px solid var(--art-edge); border-radius: var(--radius-2xl); background: var(--paper); box-shadow: var(--art-lift-front); }
.skq__bar svg, .skp__chrome svg, .skp-saved svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The problem: Clear's top bar (back, set, count, the open Sidekick
   toggle), then the question centred in its reading column. */
.skq { display: flex; flex-direction: column; min-width: 0; }
.skq__bar { display: flex; align-items: center; gap: 8px; height: var(--bar-h); padding: 0 14px 0 10px; border-bottom: 1px solid var(--hair-soft); }
/* Clear's practice-session back link (practice-session.tsx): ChevronLeft + "Back to Today", text-sm, muted. */
.skq__back { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); white-space: nowrap; }
.skq__back svg { width: 16px; height: 16px; }
.skq__n { margin-left: auto; padding-right: 6px; font-size: 13.5px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.skq__sk { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--hair); border-radius: var(--radius-lg); background: transparent; font: 600 13.5px var(--font-sans); color: var(--card-foreground); white-space: nowrap; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.skq__sk[aria-expanded="true"] { background: var(--muted); }
@media (hover: hover) { .skq__sk:hover { background: var(--muted); border-color: var(--border-strong); } }
.skq__sk:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
/* After Sidekick closes, the button that brings it back pulses twice, then rests. */
.skq__sk.is-nudge { animation: sk-nudge 1.1s var(--ease-signature) 2; }
@keyframes sk-nudge { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 45% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary-text) 28%, transparent); } }
.skq__sk svg { width: 16px; height: 16px; }
.skq__body { flex: 1; display: flex; align-items: flex-start; padding: 32px 48px 40px; } /* top-aligned: the solution opening below never moves the problem */
.skq__col { width: 100%; max-width: 560px; margin: 0 auto; }
.skq__stem { font-family: var(--font-reading); font-size: 18px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.skq__choices { display: grid; gap: 10px; margin-top: 24px; }
/* The MC problem, as Clear draws it (problem-card.tsx optionStyle/badgeStyle):
   a picked choice takes the practice tint, Check Answer turns the right
   choice green with a circle-check and a wrong pick red with a circle-x, and
   the rest go quiet (muted text, softer edge, never an opacity fade). */
.skq__opt { position: relative; display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 16px; border: 1px solid var(--hair); border-radius: var(--radius-xl); background: var(--paper); font-family: var(--font-reading); font-size: 16.5px; color: var(--ink); font-variant-numeric: tabular-nums; cursor: pointer; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease; -webkit-tap-highlight-color: transparent; }
.skq__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.skq__opt b { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted-foreground) 30%, transparent); font-family: var(--font-sans); font-size: 12.5px; font-weight: 650; color: var(--muted-foreground); transition: color 150ms ease, box-shadow 150ms ease; }
.skq__val { flex: 1; min-width: 0; }
.skq__mark { display: none; flex-shrink: 0; }
.skq__mark svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skq__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skq__opt:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.skq__opt:has(input:checked) { border-color: color-mix(in srgb, var(--practice) 60%, transparent); background: color-mix(in srgb, var(--practice) 10%, var(--paper)); }
.skq__opt:has(input:checked) b { color: var(--practice); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--practice) 50%, transparent); }
.skq:not(.is-done) .skq__opt:active { transform: scale(0.97); }
@media (hover: hover) { .skq:not(.is-done) .skq__opt:not(:has(input:checked)):hover { border-color: color-mix(in srgb, var(--practice) 40%, transparent); } }
.skq.is-done .skq__opt { cursor: default; border-color: var(--hair-soft); color: var(--muted-foreground); }
.skq.is-done .skq__opt b { color: var(--muted-foreground); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted-foreground) 30%, transparent); }
.skq.is-done .skq__opt.is-right { border-color: color-mix(in srgb, var(--success) 60%, transparent); background: color-mix(in srgb, var(--success) 10%, var(--paper)); color: var(--ink); }
.skq.is-done .skq__opt.is-right b, .skq.is-done .skq__opt.is-right .skq__mark { color: var(--success); }
.skq.is-done .skq__opt.is-right b { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 50%, transparent); }
.skq.is-done .skq__opt.is-wrong { border-color: color-mix(in srgb, var(--danger) 60%, transparent); background: color-mix(in srgb, var(--danger) 10%, var(--paper)); color: var(--ink); }
.skq.is-done .skq__opt.is-wrong b, .skq.is-done .skq__opt.is-wrong .skq__mark { color: var(--danger); }
.skq.is-done .skq__opt.is-wrong b { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 50%, transparent); }
.skq.is-done .skq__opt.is-right .skq__mark, .skq.is-done .skq__opt.is-wrong .skq__mark { display: block; }
/* Check Answer: Clear's outlined full-width button; disabled until a pick. */
.skq__check { display: block; width: 100%; height: 46px; margin-top: 16px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--muted-foreground) 60%, transparent); border-radius: var(--radius-lg); background: var(--paper); font: 500 14px var(--font-sans); color: var(--card-foreground); cursor: pointer; transition: background-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.skq__check:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) { .skq__check:not(:disabled):hover { background: var(--muted); } }
.skq__check:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.skq.is-done .skq__check { display: none; }
.skq__status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The worked solution opens in the problem pane under the choices: its row
   grows from 0fr to 1fr, so the pane (and the screen) extend downward and
   the problem above never moves. */
.skq__sol-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-signature); }
.skq.is-done .skq__sol-wrap { grid-template-rows: 1fr; }
.skq__sol { min-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 200ms ease, transform 320ms var(--ease-signature), visibility 0s linear 200ms; }
.skq.is-done .skq__sol { visibility: visible; opacity: 1; transform: none; transition: opacity 260ms ease 80ms, transform 380ms var(--ease-signature) 80ms, visibility 0s; }
.skq__sol:focus { outline: none; }
.skq__sol-card { margin-top: 16px; padding: 10px 20px 18px; border: 1px solid var(--hair); border-radius: var(--radius-xl); background: var(--paper); }
.skq__sol-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -8px 2px 0; padding-bottom: 10px; border-bottom: 1px solid var(--hair-soft); }
.skq__sol-h { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.skq__sol-p { margin-top: 12px; font-family: var(--font-reading); font-size: 15.5px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.skq__sol-eq { margin-top: 6px; padding: 2px 0 4px; font-size: 16.5px; line-height: 1.5; color: var(--ink); overflow-x: auto; overflow-y: hidden; }
/* The same answer on a financial calculator: each key as a keycap, then its value. */
.skq__calc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--ink); }
.skq__key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: lining-nums; }
.skq__key kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--muted); font: 600 12px/1 var(--font-mono); color: var(--card-foreground); }

/* Sidekick, docked. */
.skp { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--sk-pane); border-left: 1px solid var(--hair); }
/* Closing folds Sidekick's column to nothing, as in Clear: the problem takes
   the full width. Its contents keep their open width, so they slide out of
   view under the fold rather than squeezing. */
.sk__screen { transition: grid-template-columns 420ms var(--ease-signature); }
.sk__screen.is-closed { grid-template-columns: minmax(0, 1fr) 0px; }
.skp { overflow: hidden; }
.skp > :not(.skp__grab) { flex-shrink: 0; width: calc(var(--skw) - 1px); box-sizing: border-box; }
.skp > .skp__body { flex: 1 0 auto; }
.sk__screen.is-closed .skp { visibility: hidden; transition: visibility 0s linear 420ms; }
.skp__grab { display: none; }
.skp__chrome { display: flex; align-items: center; gap: 8px; height: var(--bar-h); padding: 0 12px 0 16px; border-bottom: 1px solid var(--hair-soft); }
.skp__tabs { --pw: 34px; --ph: 30px; --pg: 2px; position: relative; display: flex; gap: var(--pg); padding: 4px; border-radius: 999px; background: var(--muted); }
.skp__thumb { position: absolute; left: 4px; top: 4px; width: var(--pw); height: var(--ph); border-radius: 999px; background: var(--popover-elevated); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-strong); transform: translateX(calc(var(--i, 2) * (var(--pw) + var(--pg)))); transition: transform 340ms var(--ease-signature); }
.skp__tab { position: relative; z-index: 1; display: grid; place-items: center; width: var(--pw); height: var(--ph); padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); cursor: pointer; transition: color 150ms ease; -webkit-tap-highlight-color: transparent; }
.skp__tab svg { width: 16px; height: 16px; }
.skp__tab[aria-selected="true"] { color: var(--card-foreground); }
.skp__tab:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
/* The hover hint: Clear's, opening below the pill. During the tour the
   open tab's hint is shown too (.is-shown, page.js), so the page names each
   icon as the thumb lands on it; it goes when the tour ends, and after that
   a hint shows only while pointing at (or keyboard-focused on) its pill.
   The title line sits low enough to clear it. */
.skp__hint { position: absolute; left: 50%; top: calc(100% + 6px); z-index: 2; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--popover-elevated); box-shadow: var(--shadow-xl); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--popover-foreground); white-space: nowrap; pointer-events: none; visibility: hidden; opacity: 0; transform: translate(-50%, -2px); transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms; }
.skp__tab:focus-visible .skp__hint, .skp__hint.is-shown { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) {
  .skp__tab:hover { color: var(--card-foreground); }
  .skp__tabs:hover .skp__hint.is-shown { visibility: hidden; opacity: 0; transition-delay: 0s; }
  .skp__tabs .skp__tab:hover .skp__hint { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition-delay: 0s; }
}
.skp__ctls { display: flex; gap: 4px; margin-left: auto; }
.skp__ctl { position: relative; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted-foreground); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; -webkit-tap-highlight-color: transparent; }
.skp__ctl[aria-pressed="true"] { background: var(--muted); color: var(--card-foreground); }
.skp__ctl:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
.skp__ctl .skp__hint { left: auto; right: 0; transform: translate(0, -2px); }
.skp__ctl:focus-visible .skp__hint { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (hover: hover) {
  .skp__ctl:hover { background: var(--muted); color: var(--card-foreground); }
  .skp__ctl:hover .skp__hint { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
.skp__ctl svg { width: 16px; height: 16px; }
.skp__title { padding: 30px 20px 4px; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--card-foreground); }
.skp__body { flex: 1; display: grid; align-items: start; padding: 8px 20px 24px; }
.skp__pane { grid-area: 1 / 1; min-width: 0; border-radius: var(--radius-md); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms; }
.skp__pane.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 260ms var(--ease-signature) 110ms, transform 380ms var(--ease-signature) 110ms, visibility 0s; }
.skp__pane:focus-visible { outline: 2px solid var(--ring); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .skp__thumb, .skp__pane, .skp__pane.is-on, .skp__hint, .sk__screen { transition: none; }
  .skq__sk.is-nudge { animation: none; }
  .skq__opt, .skq__sol-wrap, .skq__sol, .skq.is-done .skq__sol { transition: none; }
  .skq__sol { transform: none; }
  .skp__pane { transform: none; }
}

@media (min-width: 1240px) {
  .sk__screen { --skw: 476px; }
  .skq__col { max-width: 500px; }
  .skp__title { padding-left: 24px; padding-right: 24px; }
  .skp__body { padding: 10px 24px 28px; }
  .skp-f { padding: 14px 0; font-size: 19.5px; }
}

/* The five panes. */
.skp-sub { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
/* Sidekick home: the title line asks home's question (Clear's wording), so
   opening home never changes the panel's height. */
.skp-home__cards { display: grid; gap: 8px; }
.skp-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 14px; border: 1px solid var(--hair); border-radius: var(--radius-xl); background: var(--paper); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.skp-card[aria-pressed="true"] { border-color: var(--border-strong); background: var(--muted); }
.skp-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.skp-card__ic { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: var(--muted); color: var(--muted-foreground); transition: background-color 150ms ease, color 150ms ease; }
.skp-card[aria-pressed="true"] .skp-card__ic { background: var(--paper); color: var(--card-foreground); }
.skp-card__ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skp-card__name { display: block; font-size: 14px; line-height: 19px; font-weight: 500; color: var(--card-foreground); }
.skp-card__blurb { display: block; font-size: 12.5px; line-height: 17px; color: var(--muted-foreground); }
@media (hover: hover) {
  .skp-card:hover { background: var(--muted); border-color: var(--border-strong); }
  .skp-card:hover .skp-card__ic { background: var(--paper); color: var(--card-foreground); }
}
.skp-f { padding: 12px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--hair-soft); }
.skp-f:last-child { border-bottom: 0; }
.skp-sub + .skp-f { margin-top: 2px; }
.skp-note__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skp-src { font-size: 14px; line-height: 20px; font-weight: 650; letter-spacing: -0.005em; color: var(--ink); }
.skp-saved { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted-foreground); white-space: nowrap; }
.sk .skp-saved svg { width: 13px; height: 13px; stroke: var(--success); stroke-width: 2.4; }
.skp-text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.skp-text b { font-weight: 700; }
.skp-eq { margin-top: 14px; font-size: 18px; color: var(--ink); }
.skp-read__h { font-family: var(--font-reading); font-size: 17px; line-height: 24px; font-weight: 650; color: var(--ink); }
.skp-read__p { margin-top: 8px; font-family: var(--font-reading); font-size: 15px; line-height: 1.7; color: var(--ink); }
.skp-term dt { font-size: 17px; line-height: 24px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.skp-term dd { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.skp-term dd + dd { margin-top: 10px; color: var(--muted-foreground); }
/* Discuss: Clear's thread view in the panel, not a chat: the question as
   the thread's title with its line of meta, then the instructor's reply
   under the author's initials. No bubbles (the section after this one is
   the bubble exchange, larger). */
.skp-q { font-size: 16px; line-height: 1.45; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.skp-q .tex { font-weight: 400; }
.skp-meta { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.skp-a { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: start; margin-top: 20px; }
.skp-a__av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sk-a); box-shadow: inset 0 0 0 1px var(--art-edge); font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; color: var(--ink); }
.skp-a__who { display: block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.skp-a__text { margin-top: 3px; font-size: 15px; line-height: 1.55; color: var(--ink); }

/* ── Stuck? Ask an instructor ──────────────────────────────────────
   One human beat between the rows and the close: the heading and its line
   beside one real exchange, larger, set straight on the page. It shares the
   story rows' columns, so the exchange spans the collages' edges. The
   bubbles are the only shapes; the lesson label sits over the student's
   question, and the reply carries a person's initials and the Instructor
   label. Discuss has no hue, so everything here is ink and slate. The
   text column keeps 330 px so "Ask an instructor." holds one line; from
   1176 px up it is the rows' own 412 px column. */
.ask { display: grid; grid-template-columns: minmax(330px, 1fr) minmax(0, 680px); align-items: center; column-gap: 64px; margin-top: 160px; margin-right: calc(-1 * var(--bleed)); }
.ask__title { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.ask__copy { margin-top: 18px; max-width: 30ch; font-size: 18px; line-height: 1.55; color: var(--muted-foreground); }
.ask__thread { display: grid; row-gap: 16px; }
.ask__where { justify-self: end; margin-bottom: -4px; } /* over the question it was asked on */
.ask__q { justify-self: end; max-width: 82%; padding: 15px 22px 16px; border-radius: 24px 24px 6px 24px; background: var(--ask-q); font-size: 21px; line-height: 1.45; color: var(--ink); }
.ask__q .tex, .ask__bubble .tex { font-size: 1.04em; }
.ask__a { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: end; max-width: 90%; }
.ask__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ask-a); box-shadow: inset 0 0 0 1px var(--art-edge); font-size: 15px; font-weight: 650; letter-spacing: 0.02em; color: var(--ink); }
.ask__bubble { justify-self: start; padding: 15px 22px 18px; border-radius: 24px 24px 24px 6px; background: var(--ask-a); border: 1px solid var(--art-edge); font-size: 20px; line-height: 1.5; color: var(--ink); }
.ask__bubble b { display: block; margin-bottom: 4px; font-size: 12.5px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }

/* The close: the promise, centred like the hero's headline it answers,
   then the hero's own two actions again. */
.inside__end { margin-top: 152px; text-align: center; }
.inside__close { max-width: 15em; margin: 0 auto; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.inside__close b { color: var(--primary-text); font-weight: 700; }
.close-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; }

/* ── Footer ────────────────────────────────────────────────────────
   Its own full-width ground, one step deeper than the page, so it needs no
   rule above it. */
:root, .theme-light { --footer-bg: #e9edf2; }
.theme-dark { --footer-bg: var(--mono-deep); }
.site-footer { margin-top: 96px; padding: 48px 0 40px; background: var(--footer-bg); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.brand--footer .brand__name { font-size: 17px; }
.site-footer__since { margin-left: 6px; font-size: 13px; color: var(--muted-foreground); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; }
.site-footer__links a { text-decoration: none; color: var(--muted-foreground); padding: 4px 0; }
.site-footer__links a:hover { color: var(--card-foreground); }
.site-footer__legal { width: 100%; font-size: 13px; color: var(--muted-foreground); }

/* ── Toast ─────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: var(--radius-xl); background: var(--toast-bg); color: var(--toast-fg); font-size: 14px; box-shadow: var(--lift-2), inset 0 0 0 1px var(--toast-edge); transition: opacity 200ms ease, transform 300ms var(--ease-signature); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── Bookmark Clear (page.js): signed in, a small card in the corner
   says where the courses are. Fixed, so it never moves the page; its ×
   puts it away for good on this browser. */
.site-hint { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; align-items: flex-start; gap: 10px; box-sizing: border-box; max-width: 360px; padding: 12px 10px 12px 16px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); color: var(--card-foreground); box-shadow: var(--lift-2); font-size: 14px; line-height: 20px; }
.site-hint p { margin: 0; }
.site-hint a { font-weight: 600; color: var(--primary-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-hint a:hover { text-decoration-thickness: 2px; }
.site-hint__x { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -4px 0 0; padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--muted-foreground); cursor: pointer; }
.site-hint__x:hover { background: var(--muted); color: var(--card-foreground); }
.site-hint__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-hint a:focus-visible, .site-hint__x:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 520px) { .site-hint { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --rhythm: 112px; }
  .story { grid-template-columns: minmax(260px, 1fr) minmax(0, 680px); column-gap: 40px; }
  .story--flip { grid-template-columns: minmax(0, 680px) minmax(260px, 1fr); }
  .ask { column-gap: 40px; }
  .cred__row { column-gap: 32px; }
  .sk__screen { --skw: 360px; }
  .skq__body { padding: 32px 36px 40px; }
}
/* Narrow tablet and phone: each row stacks as heading, picture, list, so
   the picture sits right under its heading. */
@media (max-width: 900px) {
  .stories { row-gap: 104px; margin-top: 56px; }
  .story, .story--flip { grid-template-columns: minmax(0, 1fr); margin: 0; }
  .story__text { display: contents; }
  .story__title { order: 1; }
  .story__art { order: 2; margin-top: 36px; }
  .feats { order: 3; max-width: 600px; margin-top: 40px; }
  .ask { grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin: 120px 0 0; }
  .ask__thread { box-sizing: border-box; width: 100%; max-width: 680px; margin-inline: auto; } /* the collage canvas's width and centring */
  .inside__end { margin-top: 120px; }
  .sk { margin-top: 120px; }
  .sk__screen { --skw: 330px; margin-top: 36px; }
  .skq__body { padding: 28px 28px 34px; }
  .skq__stem { font-size: 17px; }
  .skq__opt { height: 46px; }
}
@media (max-width: 768px) {
  :root { --rhythm: 80px; }
  .wrap { padding: 0 20px; }
  .brand__name { font-size: 16px; }
  .cred__row { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .cred__num { margin-top: 8px; font-size: 38px; }
  .cred__item dd { margin-top: 8px; font-size: 16px; }
  .courses__head { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 28px; }
  .search { width: 100%; }
  .section-title { font-size: 36px; }
  .story__title { font-size: 30px; }
  .story__art { margin-top: 24px; }
  .feats { row-gap: 22px; margin-top: 32px; }
  .feat { column-gap: 12px; }
  .feat__title { font-size: 18px; }
  .feat__copy { font-size: 15.5px; }
  .ask { row-gap: 32px; margin-top: 96px; }
  .ask__title { font-size: 30px; }
  .ask__copy { margin-top: 12px; font-size: 16px; }
  .ask__thread { row-gap: 14px; }
  .ask__q { max-width: 88%; padding: 13px 18px 14px; border-radius: 20px 20px 6px 20px; font-size: 18px; }
  .ask__a { grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; max-width: 100%; }
  .ask__avatar { width: 36px; height: 36px; font-size: 13px; }
  .ask__bubble { padding: 13px 18px 15px; border-radius: 20px 20px 20px 6px; font-size: 17px; }
  .ask__bubble b { font-size: 12px; }
  .sk { margin-top: 96px; }
  .sk__title { font-size: 30px; }
  .sk__copy { margin-top: 12px; font-size: 16px; }
  .sk__screen { margin-top: 28px; }
  .inside__end { margin-top: 96px; }
  .inside__close { font-size: 30px; }
  .close-actions { flex-direction: column; gap: 8px; margin-top: 24px; }
  .close-actions { gap: 10px; align-items: center; } /* same button pair as the hero */
  .site-footer { margin-top: 80px; padding: 40px 0 36px; }
  .site-footer__links a { padding: 12px 0; } /* ≥44 px tap rows */
  /* Header: keep the 36 px look, widen the touch target to 44 px. */
  .site-nav__link, .site-nav__theme { position: relative; }
  .site-nav__link::after, .site-nav__theme::after { content: ""; position: absolute; inset: -5px; } /* 1 px border: 34 + 10 = 44 */
  .brand { position: relative; }
  .brand::after { content: ""; position: absolute; inset: -10px -4px; }
}
/* Phones: each collage is re-laid on a 350-wide canvas, the phone column's
   own width, so it shows at (or near) its real size. Same edge rule as
   desktop. Learn overlaps: the video hides the manual's text under its
   heading line (the manual peeks above it), and the note sits in front of
   the formula sheet's empty right half (its formulas end well short of
   x 150); the manual and note flush with the video's right edge, the sheet
   with its left. The video starts below the manual's heading (two lines
   since the full lesson titles). Practice and Ready stack in the same
   order as their feature lists, alternating edges (the main card full
   width, the next flush right, the next back to the left or full width),
   and each card tucks over the empty bottom padding of the one above, so
   every row's cards touch, as Learn's do and as on desktop. */
@media (max-width: 640px) {
  .art { --cw: 350; }
  .art.art--learn { --ch: 547; }
  .art__manual { --x: 40; --y: 0; --w: 310; }
  .art .art-manual { height: 150px; padding: 14px 18px; }
  .art .art-manual__head { margin-bottom: 8px; }
  .art .art-manual__h { font-size: 15px; line-height: 20px; }
  .art .art-manual__p, .art .art-manual__eq { display: none; } /* behind the video on phones */
  .art__lesson { --x: 0; --y: 96; --w: 350; }
  .art .art-lesson { padding: 7px; }
  .art .art-vid { height: 186px; }
  .art .art-vid .chalk { left: 18px; top: 48px; font-size: 25px; }
  .art .art-vid .chalk__note { margin-top: 6px; font-size: 21px; }
  .art .art-vid .play { right: 18px; width: 48px; height: 48px; margin-top: -24px; }
  .art .art-vid .play::after { left: 19px; top: 15px; border-width: 9px 0 9px 14px; }
  .art .art-vid .vid__bar { left: 12px; right: 12px; bottom: 12px; }
  .art .art-vid .vid__time { left: 14px; bottom: 24px; }
  .art .art-vid__tag { left: 10px; top: 10px; }
  .art__note { --x: 150; --y: 380; --w: 200; }
  .art .art-note__topic { display: none; } /* the lesson number alone fits the phone note */
  .art .art-note { min-height: 0; padding: 18px 18px 18px 16px; }
  .art .art-note__src { margin-top: 10px; font-size: 14px; line-height: 19px; }
  .art .art-note__text { font-size: 13.5px; line-height: 20px; }
  .art .art-note__eq { margin-top: 10px; font-size: 16.5px; }
  .art__sheet { --x: 0; --y: 318; --w: 200; --z: 3; } /* behind the note: its formulas stay left of the note */
  .art .art-sheet { padding: 18px 16px 4px; }
  .art .art-sheet__row { font-size: 17px; padding: 8px 0; }

  .art.art--practice { --ch: 637; }
  .art__flash { --x: 36; --y: 246; --w: 306; --z: 3; } /* its stack fans up into the problem's bottom padding, clear of choice D */ /* 8 px in from the right: the stack's tilted back card reaches the edge */
  .art .art-flash__stack::before { transform: rotate(-4deg) translate(-8px, -9px); }
  .art .art-flash__stack::after { transform: rotate(2deg) translate(6px, -4px); }
  .art .art-flash { min-height: 186px; padding: 20px 14px 14px; }
  .art .art-flash__face { font-size: 25px; }
  .art .art-flash__rate { gap: 4px; }
  .art .art-flash__rate span { font-size: 12px; height: 30px; }
  .art__problem { --x: 0; --y: 0; --w: 350; --z: 2; }
  .art .art-problem { padding: 20px 18px 20px; }
  .art .art-problem__stem { font-size: 15px; }
  .art__xl { --x: 0; --y: 420; --w: 306; --z: 4; }
  .art .art-xl { padding-bottom: 18px; }
  .art .art-xl__bar { height: 42px; padding: 0 12px; gap: 8px; }
  .art .art-xl__grid { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); }
  .art .art-xl__grid i { height: 32px; padding: 0 10px; font-size: 13.5px; }

  .art.art--ready { --ch: 639; }
  .art__grade { --x: 50; --y: 226; --w: 300; --z: 3; }
  .art .art-grade { padding: 18px 16px 16px; }
  .art__exam { --x: 0; --y: 0; --w: 350; --z: 2; }
  .art .art-exam { padding: 18px 18px 20px; }
  .art .art-exam__timer { height: 32px; font-size: 15px; padding: 0 12px 0 10px; }
  .art .art-exam__title { font-size: 22px; line-height: 26px; }
  .art .art-exam__grid { gap: 5px; margin-top: 14px; }
  .art .art-exam__grid i { font-size: 12px; border-radius: 7px; }
  .art__plan { --x: 0; --y: 493; --w: 350; --z: 4; }
  .art .art-plan { --cols: minmax(0, 1.25fr) minmax(0, 1fr) 20px; padding: 18px 18px 18px; }
  .art .art-plan__track { margin-top: 14px; }
  .art .art-plan__seg i { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-width: 2px; } /* three dots on a short bar keep clear of each other */
}
/* Sidekick on a phone: the problem on top, Sidekick under it as Clear's
   bottom sheet (rounded top, grab handle) riding over the problem's foot.
   The toggle is Clear's app-bar one, icon only; the choices pair up. */
@media (max-width: 720px) {
  .sk__screen { --bar-h: 52px; grid-template-columns: minmax(0, 1fr); }
  .skq__bar { padding: 0 8px 0 6px; }
  .skq__sk { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .skq__sk svg { width: 18px; height: 18px; }
  .skq__sk-label { display: none; }
  .skq__body { padding: 20px 18px 36px; }
  .skq__stem { font-size: 16px; line-height: 1.6; }
  .skq__choices { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .skq__opt { gap: 10px; height: 44px; padding: 0 12px; font-size: 15px; }
  .skq__opt b { width: 22px; height: 22px; font-size: 11.5px; }
  .skq__check { height: 44px; margin-top: 12px; }
  .skq__sol-card { margin-top: 12px; padding: 8px 14px 14px; }
  .skq__sol-p { font-size: 15px; }
  .skq__sol-eq { font-size: 15px; }
  .skp > :not(.skp__grab) { width: auto; }
  .sk__screen.is-closed .skp { display: none; }
  .skp { margin-top: -16px; border-left: 0; border-top: 1px solid var(--hair); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 24px -14px rgb(var(--shade) / calc(0.2 * var(--shade-k))); }
  .skp__grab { display: block; width: 36px; height: 4px; margin: 8px auto -4px; border-radius: 2px; background: var(--border-strong); }
  .skp__chrome { padding: 0 8px 0 14px; }
  .skp__title { padding: 28px 16px 4px; }
  .skp__body { padding: 8px 16px 22px; }
}
@media (max-width: 480px) {
  /* Phones: mark, Sign in, toggle. Courses would wrap the brand name onto two
     lines; the hero's "Find your course" sits right under the header. */
  .site-nav__courses { display: none; }
}

/* Phones: Sidekick's tab pills and controls get thumb-sized (they were
   34×30 and 28×28). Pills grow to 40×36 inside the 4 px track (44 tall);
   the controls get a 44 px hit area. */
@media (max-width: 640px) {
  .skp__tabs { --pw: 40px; --ph: 36px; }
  .skp__ctl { width: 36px; height: 36px; }
  .skp__ctl::after { content: ""; position: absolute; inset: -4px; }
  .skq__sk::after { content: ""; position: absolute; inset: -5px; } /* 1 px border */
  .skp__tab::after { content: ""; position: absolute; inset: -4px -1px; } /* fills the track: 42×44 */
  .skq__sk { position: relative; }
}

/* Under a form's button (mail-form.js): that it was sent, or, on the
   handoff to the visitor's email app, where to write if nothing opened. */
.mail-note { max-width: 34em; font-size: 15px; line-height: 22px; color: var(--card-foreground); overflow-wrap: anywhere; }
.mail-note__to { font-weight: 600; color: var(--primary-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mail-note__to:hover { text-decoration-thickness: 2px; }
.mail-note__to:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 3px; }
