/* Hallmark · macrostructure: Workbench · nav: N9 edge-aligned minimal ·
 * footer: Ft5 Statement · genre: modern-minimal · theme: custom
 * vibe: "lime-on-paper tool, built not generated"
 * paper oklch(98.2% 0.003 250) · accent oklch(76.8% 0.204 130.8) chromatic-other
 * 2026-10-14 brand refresh: navy #08294a is the brand's dark (ink and the
 * top bar; the site is light-only, see below the :root block), lime stays
 * the action colour, cyan #58f6fc is an accent used only on navy. Neutrals re-tinted from the lime hue to the navy.
 * display: system grotesk (roman) · body: platform serif · furniture: mono
 * axes vs previous run (Split Studio, page.html): paper band light-throughout
 * (was light pane + fixed dark slab) · display style sans-display-over-serif-
 * prose (was single system face) · accent hue unchanged, it is the brand
 * pre-emit critique: P5 H5 E4 S5 R4 V5
 *
 * CourseBrain marketing site — one stylesheet, no build step, no external requests.
 *
 * WHY NO WEB FONT: every font file is a request to a third party, and school
 * networks routinely block or slow them. A visitor on a locked-down campus
 * network must see the finished page, not a fallback the design never planned
 * for. The serif stack below resolves to a real editorial face on every major
 * platform (Iowan Old Style on macOS/iOS, Palatino Linotype on Windows,
 * Georgia everywhere else), so the design is what ships, not what downloads.
 * No tokens.css is emitted alongside this file for the same reason the site
 * has no build step: the tokens live in the :root block below, which is this
 * project's own established convention and costs one request instead of two.
 *
 * THE TYPE SYSTEM, one system across all five pages: headings and interface
 * furniture in the system sans (tight, roman, never italic), running prose in
 * the platform serif, and the mono reserved for the things that are literally
 * code or a machine's own words. The homepage leans on the sans because it is
 * mostly interface; the pricing and reference pages lean on the serif because
 * they are mostly argument. That is one voice split by role, not two designs.
 *
 * WHY LIME IS THE STRUCTURE AND NOT A HIGHLIGHT: #84cc16 is the product's real
 * brand colour — it is the extension's send button and the body of the
 * CourseBrain logo. So it appears here as a surface you stand on (a full-bleed band, a
 * filled install button) rather than as a neon accent on a dark page. Body
 * text is never lime: at 1.97:1 against white it is unreadable, which is why
 * --accent below is the darkened lime-green step and --lime is used for fills
 * only, always with navy ink on top of it.
 */

/* ---- Tokens -------------------------------------------------------------
 * Four radii and seven type steps, deliberately. An audit of the extension's
 * CSS found ten ad-hoc radii and sixteen font sizes, several differing by
 * 0.01rem — invisible on screen, and the clearest signal of a design
 * assembled by accident. Add a token here rather than a one-off value below.
 *
 * Every colour pair below was measured with a WCAG contrast calculator
 * before it was committed. Numbers are in the comments so a
 * future edit can tell whether it broke something: AA needs 4.5:1 for body
 * text and 3:1 for the boundary of a control or a focus ring.
 */
:root {
  color-scheme: light;

  /* The brand colours. Not redefined anywhere else: the same hexes as the
     extension icon, window.ts's TOKENS, and
     course++/src/assets/brand/logo-source.svg. Text on lime is always
     --lime-ink (the brand navy). Cyan is only ever used on navy (1.31:1 on
     white), as the top bar's focus ring — it is not a logo colour. */
  --lime:       #84cc16;  /* 7.45:1 against --lime-ink */
  --lime-ink:   #08294a;  /* text/marks on a lime fill — navy, 7.45:1 */
  --lime-ink-2: #1d3f5f;  /* secondary text on a lime fill — 5.51:1 */
  --navy:       #08294a;
  --cyan:       #58f6fc;  /* 11.22:1 on navy */

  /* The logo's three paints (course++/tools/lib/brand-logo.mjs, "colourway
     D"). Every inline copy on the site is painted with these, so a surface
     picks its colourway here rather than in markup: light colourway on
     paper (lime body, navy eyes and dot), always the dark colourway on the
     navy top bar (.topbar), and navy-on-lime on the lime band (.band__mark). */
  --logo-body:  #84cc16;
  --logo-eyes:  #08294a;
  --logo-dot:   #08294a;

  --paper:      #f7f9fb;  /* page ground — tinted a trace toward the navy
                              rather than #fff, which reads synthetic */
  --panel:      #edf1f5;  /* raised block on paper */
  --ink:        #08294a;  /* body, the brand navy — 13.95:1 on paper, 12.97:1 on panel */
  --ink-2:      #3d5369;  /* secondary — 7.54:1 on paper, 7.01:1 on panel */
  --ink-3:      #5a6e83;  /* quiet captions — 4.98:1 on paper, 4.63:1 on panel */
  --rule:       #dde4eb;  /* hairline, decorative only (1.2:1) */
  --rule-ui:    #7b8ca0;  /* boundary of an interactive control — 3.26:1 paper, 3.03:1 panel */
  --accent:     #3f6212;  /* links, focus ring — 6.71:1 on paper, 6.24:1 on panel,
                              and 3.58:1 against the lime band, so one focus ring
                              works on every surface this site has */
  --accent-ink: #f7f9fb;  /* text on an --accent fill — 6.71:1 */
  --err:        #b3261e;  /* error text — 6.19:1 on paper, 5.76:1 on panel */

  --f-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --f-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-display: var(--f-sans);   /* headings; see the type-system note above */

  --t-label: .6875rem;
  --t-sm:    .8125rem;
  --t-base:  1.0625rem;                              /* 17px. The extension audit
                                                        flagged 11-13px body text
                                                        as an accessibility problem
                                                        for a tool sold to
                                                        institutions. Do not shrink. */
  --t-lg:    1.1875rem;
  --t-h3:    1.0625rem;
  --t-h2:    clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --t-h1:    clamp(2rem, 1.4rem + 3.1vw, 3.125rem);
  --t-display: clamp(2.375rem, 1.35rem + 4.4vw, 4.25rem);  /* homepage h1 only */

  --r-sm: 2px;
  --r-md: 5px;
  --r-lg: 9px;
  --r-pill: 99px;

  --gap: clamp(1.75rem, 4vw, 3rem);
  --measure: 34rem;      /* ~68 characters at the base size. Matches the holding
                            page this replaced; long lines are what makes a
                            text-heavy page unreadable. */

  /* Motion. One easing and two durations, used by the homepage's build
     animation and by every button press on the site. No bounce, no overshoot. */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-short: 180ms;
  --dur-long: 420ms;

  /* The only two shadows on the site, named so no rule below has to inline an
     rgb() of its own. Both are the ink colour at low alpha with a large
     negative spread — a lift, not a glow, and never a coloured halo. */
  --shadow-1: 0 18px 40px -28px rgb(8 41 74 / .45);
  --shadow-2: 0 22px 50px -34px rgb(8 41 74 / .5);
}

/* ALWAYS LIGHT (owner, 2026-10-14). The site shows this one light design
 * whatever the visitor's OS theme is, so there is no prefers-color-scheme
 * block anywhere in this stylesheet and `color-scheme: light` above keeps the
 * browser's own form controls and scrollbars light too. The navy top bar is a
 * fixed brand surface, not a dark theme. If a dark theme ever comes back, it
 * must redefine colours only, and every pair must be re-measured. */

/* ---- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--t-base)/1.62 var(--f-serif);
  /* overflow-x is not set to hidden here on purpose: hiding it masks a layout
   * bug at 320px instead of fixing it. If this page ever scrolls sideways,
   * something inside is too wide and should be fixed at the source. */
}

img, svg, table, pre { max-width: 100%; }

/* Long unbroken strings — an email address, a command — are the usual cause of
 * sideways scroll on a 320px screen. Wrap them rather than clipping them. */
pre, code, .mono { font-family: var(--f-mono); }
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--t-sm);
  line-height: 1.55;
  margin: 0;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

/* One focus style for everything, using the accent (6.71:1 on paper)
 * so the ring itself passes non-text contrast. :focus-visible rather than
 * :focus keeps it off mouse clicks without ever removing it from keyboards. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Headings are sans, roman, and tightly tracked — never italic, and never a
 * different size on one page than another. text-wrap: balance is on all three
 * because a two-word orphan on the last line of a heading is the most common
 * way a good line of copy reads as a mistake. */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.028em; }
h2 { font-size: var(--t-h2); line-height: 1.15; margin: 0 0 .6em; }
h3 { font-size: var(--t-h3); line-height: 1.35; margin: 1.9em 0 .35em; letter-spacing: -.01em; }
p, ul, ol, dl { margin: 0 0 .95em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }

/* ---- Furniture: labels, rules, notes ------------------------------------ */
/* The sans face is used only for furniture — labels, tables, buttons, form
 * controls — so prose stays in one voice and the interface stays in another.
 * That separation is what makes the page read as a document rather than a UI. */
.label {
  font: 600 var(--t-label)/1.3 var(--f-sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .9em;
}
.small { font-size: var(--t-sm); color: var(--ink-2); }
.quiet { color: var(--ink-2); }

.skip {
  position: absolute; left: -9999px; top: .5rem;
  background: var(--panel); color: var(--ink);
  padding: .6rem .9rem; border: 1px solid var(--rule-ui); border-radius: var(--r-md);
  font: var(--t-sm) var(--f-sans); z-index: 10;
}
.skip:focus { left: .75rem; }

/* WHY 58rem AND NOT WIDER: the reading column is capped at 34rem (.measure)
 * and the numbered rail takes 4rem. A 68rem shell left roughly half the screen
 * empty on the right at 1280px, which reads as an unfinished layout rather
 * than as white space. 58rem keeps a generous outer margin without the page
 * looking like it lost a column. */
.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 clamp(1.125rem, 4vw, 3rem);
}
.measure { max-width: var(--measure); }

/* ---- Masthead ----------------------------------------------------------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0 .9rem;
}
/* center, not baseline: the lockup's first item is a 2rem logo, so a
 * baseline row dropped the nav links ~12px below the wordmark. */
.masthead__row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem clamp(1rem, 3vw, 2rem);
}
/* The masthead bar matches the homepage topbar's own width and gutter
 * EXACTLY (.shell / .topbar__in, both max-width:70rem, same padding
 * formula) — not the narrower .wrap (58rem, a slightly different clamp
 * floor) it's otherwise built from — so the logo sits at the same
 * horizontal position whether you're on the homepage or you've followed a
 * link into account.html / a legal page / a billing page. .wrap itself is
 * untouched and still governs the body content below, where 58rem suits
 * prose and forms better than a full 70rem line length would. */
.masthead .wrap { max-width: 70rem; padding: 0 clamp(1rem, 4vw, 3rem); }
.wordmark {
  font: 700 1.25rem/1 var(--f-display);
  letter-spacing: -.03em; color: var(--ink); text-decoration: none;
}
.wordmark span { font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--f-sans); color: var(--ink-3); margin-left: .55rem; }

/* ---- The brand lockup: icon + "Course" + vector "++" + pipe + tagline ----
 * These six rules live in the shared stylesheet because they used to live in
 * account.html's own <style> block, and that is exactly how the rest of the
 * site ended up off-brand: every other page that "matched the branding" by
 * copying the markup inherited only ".wordmark span" below and rendered a
 * broken lockup, so the billing pages and the nine generated legal pages all
 * shipped a plain-text masthead instead. One shared definition is what stops
 * that happening again.
 *
 * "CourseBrain" is ONE flex item (.wordmark__name), not two, so inline-flex's
 * gap cannot wedge itself between the word and its plus sign.
 *
 * Every span below ALSO matches ".wordmark span" above (uppercase, tracked,
 * --t-label size, --ink-3, margin-left) — CSS resolves that PER PROPERTY, not
 * per rule, so a higher-specificity override only wins the properties it
 * actually declares. Each block therefore restates font / letter-spacing /
 * text-transform / margin in full rather than touching just colour. Delete one
 * of those restatements as redundant and the unset property falls straight
 * through from the shared rule regardless of specificity. */
.wordmark { display: inline-flex; align-items: center; gap: .4rem; }
/* The CourseBrain logo (2026-10-14). Its square frame is centred on the robot's
 * BODY — the antenna dot pokes out up-right on purpose — so flex's
 * align-items:center lands the body level with the text with no nudge. About
 * 1.6x the 1.25rem name, the same ratio as the homepage topbar's logo. */
.wordmark .wordmark__icon {
  width: 2rem; height: 2rem; flex: none; margin: 0;
}
.wordmark .wordmark__name {
  font: 700 1.25rem/1 var(--f-display); text-transform: none; letter-spacing: -.03em;
  color: var(--ink); margin: 0;
}
/* .wordmark__plus is ALSO a span inside .wordmark, so it matches the shared
 * ".wordmark span" rule too — the same per-property leak as the others, missed
 * here the first time because this rule used to set only `color` (back when
 * "++" was plain text). font-size:11px leaking in from the shared rule is what
 * shrank the SVG's em-relative width/height to ~55% and threw off where it sat
 * next to "Course". */
.wordmark .wordmark__plus { font-size: inherit; text-transform: none; letter-spacing: 0; margin: 0; }
.wordmark .wordmark__pipe {
  font: 300 1rem/1 var(--f-display); text-transform: none; letter-spacing: 0;
  color: var(--ink-3); opacity: .5; margin: 0;
}
.wordmark .wordmark__tag {
  font: 300 var(--t-sm)/1 var(--f-display); text-transform: none; letter-spacing: 0;
  color: var(--ink-3); margin: 0;
}

.masthead nav { margin-left: auto; }
/* On a phone, a masthead that also carries nav links drops the tagline (the
 * homepage's navy bar does the same below 46rem), so logo and links share
 * one line instead of the links wrapping onto a second, right-aligned one. */
@media (max-width: 30rem) {
  .masthead__row:has(nav) .wordmark__pipe,
  .masthead__row:has(nav) .wordmark__tag { display: none; }
}
.masthead nav ul { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.masthead nav a { font: var(--t-sm) var(--f-sans); }
[aria-current="page"] { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }

/* ---- Sections: numbered editorial rail ---------------------------------- */
.section { border-top: 1px solid var(--rule); padding: var(--gap) 0; }
.section:first-of-type { border-top: 0; }
.section__num {
  font: 600 var(--t-label)/1 var(--f-sans);
  letter-spacing: .1em; color: var(--ink-3);
  margin: 0 0 .75rem;
}
@media (min-width: 54rem) {
  /* The number moves into the left margin only when there is a margin to move
   * it into. Below this width it sits above the heading, which is why it is
   * marked up before it. */
  .section { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1.5rem; }
  .section__num { grid-column: 1; margin: .45rem 0 0; }
  .section__body { grid-column: 2; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: clamp(2.25rem, 6vw, 4.5rem) 0 var(--gap); }
.hero__lede { font-size: var(--t-lg); line-height: 1.5; max-width: 36rem; }
.hero__sub { max-width: 34rem; }

/* A left rule instead of a box: an editorial pull-quote, not a card. */
.pull {
  border-left: 3px solid var(--accent);
  padding: .1rem 0 .1rem 1.15rem;
  margin: 0 0 1.25rem;
  max-width: 34rem;
}
.pull p { font-size: var(--t-lg); line-height: 1.45; margin-bottom: .35em; }
.pull p:last-child { margin-bottom: 0; }

/* ---- Panels, notes, figures --------------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}
.note {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .9rem 0;
  font-size: var(--t-sm);
  color: var(--ink-2);
  max-width: 38rem;
}
.note p { margin-bottom: .5em; }
.note p:last-child { margin-bottom: 0; }

/* [PLACEHOLDER] blocks are dashed and labelled so nobody mistakes one for a
 * finished element and ships it. They exist because inventing a screenshot,
 * a testimonial or a customer count for this audience is unrecoverable. */
.placeholder {
  border: 1px dashed var(--rule-ui);
  border-radius: var(--r-md);
  padding: 1.1rem;
  color: var(--ink-2);
  font: var(--t-sm)/1.5 var(--f-sans);
  max-width: 38rem;
}
.placeholder b { font-family: var(--f-mono); font-weight: 600; color: var(--ink); }
figure { margin: 0 0 1rem; }
figcaption { font: var(--t-sm)/1.5 var(--f-sans); color: var(--ink-2); margin-top: .5rem; max-width: 38rem; }

.code {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  max-width: 38rem;
}
.code + .code { margin-top: .5rem; }

/* ---- Lists -------------------------------------------------------------- */
.plain { list-style: none; padding: 0; }
.plain > li { padding-left: 1.15rem; position: relative; }
.plain > li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: .5rem; height: 1px; background: var(--rule-ui);
}
/* A definition list is the honest markup for "term, then what it means" —
 * which is what most of this page's content actually is. */
.dl { margin: 0; }
.dl dt { font-weight: 600; margin-top: 1.05em; }
.dl dd { margin: .15em 0 0; color: var(--ink-2); }

/* ---- Table -------------------------------------------------------------- */
.scroll-x { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font: var(--t-sm)/1.5 var(--f-sans); }
caption { text-align: left; font-size: var(--t-sm); color: var(--ink-2); margin-bottom: .6rem; }
th, td { text-align: left; padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }
thead th { border-bottom: 1px solid var(--rule-ui); }

/* ---- Buttons and controls ----------------------------------------------- */
/* THE PRIMARY BUTTON IS THE BRAND LIME, on every page — filled, with the dark
 * lime-ink on top of it (9.2:1). It is the one place the brand colour is
 * allowed to be a surface rather than a detail, and it is why lime never has
 * to be used as text anywhere. `white-space: nowrap` is not cosmetic: a
 * two-line "Add to Chrome" at 320px reads as a broken control. */
.btn {
  display: inline-block;
  font: 700 var(--t-sm)/1 var(--f-sans);
  letter-spacing: -.006em;
  padding: .8rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 90ms var(--ease-out), filter var(--dur-short) var(--ease-out);
}
/* A logo inside a filled (lime) button is ink on lime, like the band's:
 * navy body and dot, see-through eyes. */
.btn { --logo-body: var(--lime-ink); --logo-eyes: transparent; --logo-dot: var(--lime-ink); }
.btn--quiet {
  background: transparent;
  border-color: var(--rule-ui);
  color: var(--accent);
}
/* The lime outline twin of the filled .btn: same border .btn already sets
 * (1px solid var(--lime)), same size/font/padding as whatever other .btn--*
 * modifier it's paired with — only the fill and text colour change. For a
 * button that needs to sit right next to a filled .btn and read as its
 * cohesive secondary rather than an unrelated control (e.g. the topbar's
 * Account button beside Add to Chrome), without competing with it the way
 * a second lime-filled button would. */
.btn--outline { background: transparent; color: var(--lime); }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn:active { transform: translateY(1px); }
.btn--quiet:hover { filter: none; background: var(--panel); }
.btn--outline:hover { filter: none; background: color-mix(in srgb, var(--lime) 12%, transparent); }
/* The waitlist submit is disabled while its request is in flight, so the
 * disabled look is a real state and not a theoretical one. Three channels, not
 * opacity alone: the native attribute (which is what actually blocks the
 * click), the cursor, and the fade. */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }

.copy {
  font: var(--t-label)/1 var(--f-sans);
  letter-spacing: .06em; text-transform: uppercase;
  background: transparent; color: var(--accent);
  border: 1px solid var(--rule-ui); border-radius: var(--r-sm);
  padding: .4rem .5rem; cursor: pointer;
}

fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }

/* Plan chooser. The selected state is carried by the border AND the radio
 * itself, never by colour alone — colour-only meaning fails WCAG 1.4.1 and is
 * invisible to a good number of the people this is sold to. */
.choice {
  display: block;
  border: 1px solid var(--rule-ui);
  border-radius: var(--r-md);
  padding: .95rem 1.05rem;
  margin: 0 0 .6rem;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--accent); border-width: 2px; padding: .875rem .975rem; }
.choice__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.choice__price { font: 600 var(--t-lg)/1.2 var(--f-sans); }
.choice__meta { font: var(--t-sm)/1.4 var(--f-sans); color: var(--ink-2); flex-basis: 100%; }
.choice input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin: 0 .55rem 0 0; }

.consent {
  display: flex; gap: .7rem; align-items: flex-start;
  font: var(--t-sm)/1.5 var(--f-sans);
  border-top: 1px solid var(--rule);
  padding: 1rem 0 0;
  margin: 0 0 .25rem;
}
.consent input { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; flex: none; }

.error {
  font: var(--t-sm)/1.5 var(--f-sans);
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: .8rem;
  margin: .75rem 0 0;
}

/* ---- Footer ------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--rule);
  margin-top: var(--gap);
  padding: var(--gap) 0 3rem;
  font: var(--t-sm)/1.6 var(--f-sans);
  color: var(--ink-2);
}
.foot p { max-width: 38rem; }
.foot a { overflow-wrap: anywhere; }

/* ---- Pricing: plan chooser extras --------------------------------------- */
/* The whole card is the click target, but only the radio inside it can take
 * focus, so the focus ring has to be lifted onto the card — otherwise keyboard
 * users get a 16px ring in the corner of a 300px control and lose their place.
 * Kept as a separate rule from the :checked one above so a browser that drops
 * one selector does not lose both. */
.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* "Save $39". A word plus a hairline, not a coloured pill — a badge is the
 * genre marker this page is avoiding, and the saving is a fact, not a shout. */
.flag {
  font: 600 var(--t-label)/1 var(--f-sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule-ui);
  border-radius: var(--r-pill);
  padding: .3rem .5rem;
}

.checkout { margin: 0; }
.checkout .btn-row { margin-bottom: .5rem; }

/* The submit button names the plan it starts ("Start $19/month subscription"),
 * which California's ARL effectively requires and which is wrong the moment the
 * other plan is selected. Both labels are in the markup and CSS picks one.
 *
 * WHY THE DEFAULT HIDES MONTHLY: annual is the pre-selected plan, so a browser
 * with no :has() support shows the annual label and is still telling the truth.
 * The @supports guard is what makes that fallback deterministic — without it,
 * a non-supporting browser would render both labels at once. Do not "simplify"
 * this to a single label; the label and the selection have to agree. */
.btn-plan[data-plan="monthly"] { display: none; }
@supports selector(:has(*)) {
  .checkout:has(#plan-monthly:checked) .btn-plan[data-plan="annual"]  { display: none; }
  .checkout:has(#plan-monthly:checked) .btn-plan[data-plan="monthly"] { display: inline; }
}

/* ---- Waitlist form -------------------------------------------------------
 * One input, one button, one honeypot. Kept close to the existing form
 * language (.btn, .error, .small) rather than inventing a second control
 * style for a single field. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form { max-width: 34rem; }
.waitlist-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.waitlist-form__input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 2.75rem;   /* the same 44px floor the submit button beside it has.
                            An input two pixels shorter than its own button is
                            the most common form-tuning slop there is. */
  font: var(--t-base) var(--f-sans);
  padding: .7rem .85rem;
  border: 1px solid var(--rule-ui);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
}
.waitlist-form__input::placeholder { color: var(--ink-3); }

/* The honeypot: a real-looking field placed off-screen, not hidden by
 * display/visibility — see the HTML comment beside it for why the distinction
 * matters to what this is defending against. */
.waitlist-form__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reuses the existing .error component (border-left accent) when the status
 * line is a refusal — see .error above; no separate error style invented. */
.waitlist-form__status {
  min-height: 1.4em;
  margin: .75rem 0 0;
}
.waitlist-form__status:empty { margin: 0; }

/* An ordered list keeps its numbers — they are the "three claims, in this
 * order" on the homepage, so the order is content. Only the indent is tuned. */
main ol, main ul:not([class]) { padding-left: 1.3rem; }
main ol li, main ul:not([class]) li { padding-left: .2rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE (body.home)
   ═══════════════════════════════════════════════════════════════════════════
   Everything below this line belongs to index.html and is scoped to it, so
   pricing.html, how-it-works.html and referral.html used to keep the
   document layout above (.wrap, .section, the numbered rail) untouched —
   all three are now deleted (pricing/how-it-works removed 2026-09-15 with
   the homepage rework; referral.html removed the same day when the
   copy-a-link referral flow was replaced by an in-product email invite).
   Nothing else on the site shares this page's shape any more.

   THE SHAPE: a Workbench. The page is a guided tour of the tool in use —
   masthead, claim, install button and demo together, then the thing
   working, then the honest limits, then install again. The two stations are
   rebuilds of the product's own interface in the product's own tokens, NOT
   screenshots inside a hand-drawn browser: there is no fake URL bar, no
   traffic-light dots and no phone frame anywhere on this page.

   ONE COLUMN WIDTH, TWO MEASURES: .shell is 70rem because the two station
   panels need the room; every run of prose inside it is still capped near
   68 characters, because that cap is what makes a text-heavy page readable
   and a wide panel does not change how eyes work.
--------------------------------------------------------------------------- */
.shell {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

/* ---- Masthead: N9, edge-aligned ------------------------------------------
 * Wordmark hard left, install button hard right, two quiet links between,
 * nothing centred. Sticky, because the install button is this page's entire
 * job and has to be reachable from any scroll position — that requirement is
 * also why there is no second floating CTA bubble. One CTA, always present.
 * backdrop-filter is a progressive nicety on a solid-ish background, not a
 * glass panel: the fallback (a flat --paper bar) is the design, and the blur
 * only softens what scrolls under it. */
/* Deliberately navy — a fixed brand surface (the brand's dark, 2026-10-14)
 * on an otherwise light site. The text colours below are fixed to this bar's
 * own navy rather than reusing --ink (which is navy itself, so would vanish
 * here): name 12.57:1, tag
 * 6.90:1. The focus ring inside it is cyan (11.22:1) — the page-wide
 * --accent is tuned for paper and is 2.1:1 on navy. */
.topbar {
  --accent: var(--cyan);
  /* Navy, so the logo here is always the dark colourway:
     bright lime body (9.76:1 on navy), deep navy eyes, white dot. */
  --logo-body: #a3e635; --logo-eyes: #071d33; --logo-dot: #ffffff;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 60%, black);
}
@supports (backdrop-filter: blur(8px)) {
  .topbar { backdrop-filter: blur(10px); }
}
.topbar__in {
  max-width: 70rem; margin: 0 auto;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; gap: .75rem clamp(1rem, 3vw, 2rem);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #e6eef6; }
.brand__badge { width: 1.9rem; height: 1.9rem; flex: none; }
.brand__name { font: 700 1.2rem/1 var(--f-display); letter-spacing: -.035em; }
/* The "++" in the brand lime — the one place lime sits on paper as a glyph.
 * It is a 2-character run at 1.2rem/700, which is large-text territory, and
 * it carries no meaning of its own: the word next to it is the name. */
.brand__plus { color: var(--lime); }
/* Pipe + tag together read as one clause after the wordmark — same
 * treatment (thin weight, reduced opacity) as the extension's own
 * icon+wordmark+pipe+tagline lockup (onboarding.html's .cpp-id-pipe /
 * .cpp-id-tag), scaled down for the topbar's own type sizes rather than
 * copied at the same rem values. */
.brand__pipe { font: 300 1rem/1 var(--f-display); color: #9fb4c9; opacity: .35; }
.brand__tag {
  font: 300 var(--t-sm)/1 var(--f-display); color: #9fb4c9;
  white-space: nowrap;
}
/* Hard right: Account + the install button sit together, the whole middle
   of the bar left empty. */
.topbar__cta { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.btn--sm { padding: .55rem .8rem; }

/* Below 46rem Account and the tagline go, the install button stays. Account
 * is repeated in the footer; the install button is not repeated anywhere
 * it could be reached as quickly. If something has to be dropped at 375px,
 * it is never the install button.
 * Qualified as ".topbar__cta .topbar__account" rather than the bare class:
 * .btn--install's unconditional "display: inline-flex" (needed so Account
 * matches Add to Chrome's own sizing) sits later in this file and is the
 * same specificity as a lone ".topbar__account", so it would otherwise win
 * this property regardless of being inside a media query. */
@media (max-width: 46rem) {
  .topbar__cta .topbar__account { display: none; }
  .topbar__cta { margin-left: auto; }
  .brand__pipe, .brand__tag { display: none; }
}

/* ---- Which store button ------------------------------------------------
 * The visitor's browser is detected once, in the script at the bottom of
 * index.html, and recorded as [data-browser] on <html>. CSS does the rest, so
 * there is no flash of the wrong button and no JS branching over the DOM.
 *
 * .pick          — shows ONLY the matching child (the big install buttons).
 * .pick-inverse  — shows everything EXCEPT the matching child (the list of
 *                  other browsers, where the one you are using would be
 *                  redundant).
 * The markup ships with data-browser="chrome" already set, so a visitor with
 * JavaScript off still gets a real, correctly-labelled button rather than an
 * empty slot or four buttons at once. */
.pick > [data-for] { display: none; }
html[data-browser="chrome"]  .pick > [data-for="chrome"],
html[data-browser="firefox"] .pick > [data-for="firefox"],
html[data-browser="edge"]    .pick > [data-for="edge"],
html[data-browser="safari"]  .pick > [data-for="safari"] { display: inline-flex; }

/* One-line note under the buttons, only for the browsers whose button opens
 * the waitlist because there is no store listing yet. */
.pick-pending { display: none; }
html[data-browser="safari"]  .pick-pending { display: block; }

.pick-inverse > [data-for] { display: inline-flex; }
html[data-browser="chrome"]  .pick-inverse > [data-for="chrome"],
html[data-browser="firefox"] .pick-inverse > [data-for="firefox"],
html[data-browser="edge"]    .pick-inverse > [data-for="edge"],
html[data-browser="safari"]  .pick-inverse > [data-for="safari"] { display: none; }

/* ---- Opening ------------------------------------------------------------
 * Not a full-viewport centred hero: it is the height of its content, biased
 * left, and the install button is inside it rather than below a fold.
 *
 * Two columns at desktop: .opening__content (headline, lede, install) and
 * .opening__demo (the compose-box + build-sequence demo, moved up here from
 * further down the page so the demo sits right beside the button it exists
 * to justify). .opening__content stays FIRST in the DOM — the <h1> is still
 * the first heading a screen reader hits — and `order` is what pushes the
 * demo to the visual left. Below 62rem both columns fall back to `order`'s
 * default (source order), so mobile reads headline → install → demo, which
 * is the right priority on a small screen. */
/* ⚠ minmax(0, 1fr), not the implicit `auto` a bare `display: grid` gives its
 * only track — an `auto` grid track refuses to shrink below its content's
 * min-content width, which is what was pushing this whole column (and
 * everything in .opening__content/.opening__demo) 26px past the viewport at
 * 375px. Pre-existing, found auditing this page at phone width — same
 * `minmax(0, ...)` pattern the desktop columns below already use. */
/* The opening's own breathing room (restored after the 2026-09-15 rework
 * left the h1 pressed against the top bar). */
.opening { padding: clamp(2.25rem, 5.5vw, 4rem) 0 clamp(3rem, 7vw, 5.25rem); }
.opening__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 62rem) {
  .opening__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
  .opening__content { order: 2; }
  .opening__demo { order: 1; padding-top: clamp(.5rem, 1vw, 1rem); }
}
/* The pitch rides alongside the (much taller) demo instead of leaving a
 * 900px empty column under the install button. top clears the sticky navy
 * bar. Only on a screen tall enough to show the whole pitch at once: a sticky
 * block taller than the viewport would hide its own bottom (the browser
 * links) until the demo scrolled past. */
@media (min-width: 62rem) and (min-height: 50rem) {
  .opening__content { position: sticky; top: 6rem; }
}
/* In-page links (#waitlist, #install) land below the sticky bar, not under it. */
.topbar ~ main [id] { scroll-margin-top: 5rem; }
.opening__h1 {
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 24ch;
  /* Last-resort break inside a word. At 68px display type a single long
     hyphenated compound is all it takes to push a 320px screen sideways, and
     the only break opportunity in one is the hyphen. */
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0 0 clamp(.9rem, 2vw, 1.25rem);
}
.opening__lede {
  font: var(--t-lg)/1.5 var(--f-serif);
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}

/* ---- Install block ------------------------------------------------------ */
.install { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.install__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; }
.btn--install { font-size: var(--t-base); padding: .95rem 1.35rem; display: inline-flex; align-items: center; gap: .55rem; }
/* Real per-browser marks (Chrome/Firefox/Edge/Safari), not the CourseBrain logo
 * — this is the one spot on the page identifying which browser a button
 * installs into, so it carries that browser's own logo, in its own colours,
 * rather than the brand mark. All four source SVGs are square, so one square
 * box sizes them evenly regardless of each one's internal viewBox. */
.btn__mark { width: 1.2rem; height: 1.2rem; flex: none; }
.install__free { font: var(--t-sm)/1.45 var(--f-sans); color: var(--ink-2); max-width: 34ch; margin: 0; }
.install__free strong { color: var(--ink); }

.install__alt-label { font: 600 var(--t-sm)/1 var(--f-sans); color: var(--ink-3); margin: 1.4rem 0 .5rem; }
.install__alts { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.install__alts li { margin: 0; }
/* An outlined chip, not a second filled button — three planned browsers must
 * not compete with the one that is real. */
.chip {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;      /* 44px touch target, WCAG 2.5.5 */
  font: 600 var(--t-sm)/1 var(--f-sans);
  color: var(--accent);
  border: 1px solid var(--rule-ui);
  border-radius: var(--r-md);
  padding: .55rem .8rem;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { background: var(--panel); text-decoration: none; }

.install__pending, .install__desktop {
  font: var(--t-sm)/1.55 var(--f-sans);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 1.1rem 0 0;
}

/* ---- Stations ------------------------------------------------------------
 * Section padding is deliberately uneven — the reference sections are
 * tighter than the ones with more to carry. Equal padding on every section
 * is what makes a long page feel machine-assembled. */
.station { border-top: 1px solid var(--rule); }
.station--spec    { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.station--wait    { padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }

.station__text { max-width: var(--measure); }
.station__text p { font-family: var(--f-serif); color: var(--ink-2); }
.station__text p.small { font-family: var(--f-sans); }
/* Narrow CONTENT, not a narrow centred box: a 44rem shell centred inside a
 * 70rem page put the waitlist's left edge 200px in from every other section's.
 * The shell keeps its full width and edge; only what's inside is capped. */
.station__in--narrow > * { max-width: 44rem; }
.station__in--narrow p { max-width: var(--measure); }

/* ---- The opening demo: compose box, then build sequence -----------------
 * Moved here from two former full-width "station" sections lower on the
 * page, so the demo sits beside the install button instead of a scroll away.
 * The two figures stack — compose first (you type), then the build sequence
 * (it builds) — which keeps their own chronological order even though the
 * whole block now sits to the LEFT of text it used to follow. */
/* Same minmax(0, 1fr) fix as .opening__in above, and for the same reason —
 * this is a SECOND grid whose bare `auto` track was refusing to shrink below
 * its content's min-content width, one level deeper in the tree. */
.opening__demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.25rem); }
.demo .station__text { max-width: none; margin-bottom: .9rem; }

.link-arrow { font: 600 var(--t-sm) var(--f-sans); text-decoration-thickness: 1px; }
.link-arrow:hover { text-decoration-thickness: 2px; }

/* ---- Station one: the compose box --------------------------------------
 * A rebuild of the extension's own compose area (window.css's .cpp-ta and its
 * send button, mirrored in course++/src/ui/page.html's .cpp-mock): ONE box,
 * with the send button riding inside its bottom-right corner rather than
 * sitting beside it. If the real one changes shape, change this one.
 *
 * min-height reserves two lines so the box does not resize as the typed text
 * grows and shrinks — a demo that reflows its own container every 30ms is the
 * definition of janky. */
.mock { margin: 0; }
.mock__box {
  background: var(--paper);
  border: 1px solid var(--rule-ui);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.mock__head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem;
  padding: .7rem .9rem;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.mock__mark { width: 1.25rem; height: 1.25rem; flex: none; align-self: center; }
.mock__ident { font: 700 var(--t-sm)/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.mock__ident-sub { font: var(--t-label)/1 var(--f-sans); color: var(--ink-3); }
.mock__compose { position: relative; padding: .9rem; }
.mock__field {
  position: relative;
  min-height: 5.5rem;
  border: 1px solid var(--rule-ui);
  border-radius: var(--r-md);
  padding: .8rem 3rem .8rem .85rem;
  font: var(--t-base)/1.5 var(--f-sans);
  color: var(--ink);
  overflow-wrap: anywhere;
}
/* Attach and send, stacked bottom-right — attach directly above send, both
 * the same size. Matches the real window's actual layout (window.css's
 * .cpp-ta/.cpp-send/.cpp-attach-btn) and course++/src/ui/page.html's own
 * marketing mock, not a guess at one. */
.mock__attach, .mock__send {
  position: absolute; right: .55rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mock__attach { bottom: 2.55rem; color: var(--ink-3); }
.mock__attach svg { width: .95rem; height: .95rem; }
.mock__send { bottom: .55rem; background: var(--lime); color: var(--lime-ink); }
.mock__send svg { width: 1.05rem; height: 1.05rem; }
/* The "sent" pulse — one brief scale, no colour change, so it reads as a
 * click rather than a state that persists. Off entirely under reduced
 * motion, same as every other animated thing on this page. */
.mock__send.is-sent { animation: send-pulse 260ms var(--ease-out); }
@keyframes send-pulse { 40% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .mock__send.is-sent { animation: none; }
}

/* The model picker: three plain-language choices, one selected. A row under
 * the compose field rather than the real window's top-bar chip — this mock
 * is a compact card, and the choices read better as their own line here. */
.mock__models {
  display: flex; gap: .4rem;
  margin-top: .65rem;
  font: 600 var(--t-label)/1 var(--f-sans);
}
.mock__model {
  padding: .35rem .6rem;
  border: 1px solid var(--rule-ui); border-radius: var(--r-pill);
  color: var(--ink-3);
}
.mock__model.is-selected { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }

/* The caret is the only blinking thing on the site, and it earns it: it is
 * what tells you the text is being typed rather than rendered. */
.caret {
  display: inline-block; width: .09em; height: 1.05em;
  margin-left: .06em; vertical-align: -.16em;
  background: var(--accent);
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---- Station two: the build --------------------------------------------
 * The panel is narrower than the shell and pushed to the RIGHT edge of it at
 * desktop, under a left-aligned block of prose. That offset is the whole
 * composition of this section: full-shell width left the item rows trailing
 * 200px of empty paper, which read as an unfinished layout rather than as
 * white space. */
/* No max-width/auto-margin trick here any more — the panel used to be pushed
 * to the right edge of a full-width "wide" station; now it just fills its
 * grid column in .opening__demo, whatever width that column is. */
.run { margin: 0; }
.run__panel {
  background: var(--paper);
  border: 1px solid var(--rule-ui);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.run__bar {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem .9rem;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.run__mark { width: 1.25rem; height: 1.25rem; flex: none; }
.run__title {
  font: 700 var(--t-sm)/1.2 var(--f-display); letter-spacing: -.015em; color: var(--ink);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* The phase pill. Quiet for the first three phases, brand-filled on the
   fourth — one state change, not a colour per phase. */
.run__state {
  margin-left: auto; flex: none;
  font: 700 var(--t-label)/1 var(--f-sans);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); background: var(--paper);
  border: 1px solid var(--rule-ui); border-radius: var(--r-pill);
  padding: .35rem .6rem;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.run__panel[data-phase="done"] .run__state {
  background: var(--lime); border-color: var(--lime); color: var(--lime-ink);
}

.run__body { padding: clamp(.9rem, 2vw, 1.35rem); display: grid; gap: .85rem; }
.run__prompt {
  font: var(--t-sm)/1.55 var(--f-mono);
  color: var(--ink-2);
  border-left: 2px solid var(--rule);   /* a quotation rule on quoted text, not
                                           a decorative stripe on a card */
  padding-left: .75rem;
  margin: 0;
  max-width: 62ch;
}
.run__card { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .8rem .9rem; }
.run__card-h { font: 700 var(--t-sm)/1.3 var(--f-sans); margin: 0 0 .45rem; color: var(--ink); }
.run__plan-list, .run__check-list { list-style: none; margin: 0; padding: 0; font: var(--t-sm)/1.55 var(--f-sans); color: var(--ink-2); }
.run__plan-list li, .run__check-list li { margin: 0 0 .2rem; }
.run__check-list li[data-fix] { color: var(--ink); }
.run__check-list li[data-fix]::before {
  content: ""; display: inline-block; width: .4rem; height: .4rem;
  border-radius: 50%; background: var(--lime); margin-right: .45rem; vertical-align: .08em;
}
.run__buttons { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0 0; }
/* Not real buttons — this whole panel is aria-hidden and inert. They look
   like the product's own controls so the sequence reads as a decision the
   instructor makes, which is the actual claim being dramatised. */
.run__btn {
  font: 700 var(--t-label)/1 var(--f-sans);
  border: 1px solid var(--rule-ui); border-radius: var(--r-sm);
  padding: .45rem .6rem; color: var(--ink-2);
}
.run__btn--go { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
.run__panel.is-approved .run__btn--go { filter: brightness(.92); }
.run__panel.is-approved .run__card--plan { border-color: var(--rule); opacity: .72; }

.run__items { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.run__items li {
  display: flex; align-items: flex-start; gap: .55rem;
  font: var(--t-sm)/1.5 var(--f-sans); color: var(--ink);
  margin: 0;
}
/* The tick: hairline ring when pending, brand ring while working, brand fill
   with a drawn check when done. Two pseudo-element-free states and one
   ::after, so nothing has to be swapped out in JS beyond a class. */
.run__tick {
  position: relative; flex: none;
  width: 1.05rem; height: 1.05rem; margin-top: .18rem;
  border: 1px solid var(--rule-ui); border-radius: 50%;
}
.run__items li.is-working .run__tick { border-color: var(--lime); border-width: 2px; }
.run__items li.is-done .run__tick { background: var(--lime); border-color: var(--lime); }
.run__items li.is-done .run__tick::after {
  content: ""; position: absolute; left: .27rem; top: .17rem;
  width: .28rem; height: .5rem;
  border: 2px solid var(--lime-ink); border-top: 0; border-left: 0;
  transform: rotate(40deg);
}
.run__done { font: var(--t-sm)/1.55 var(--f-sans); color: var(--ink); margin: 0; }
.run__cost { font-family: var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* The generated-content preview: a real recreation of one built quiz
 * question, not a screenshot and not a browser window drawn in CSS. Shares
 * the panel's own [data-step="done"] reveal, so no extra script logic. */
.run__preview { margin-top: .1rem; }
.run__preview-label { font: 700 var(--t-sm)/1.4 var(--f-sans); color: var(--ink); margin: 0 0 .5rem; }
.run__quiz {
  border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: .8rem .9rem;
  background: var(--panel);
}
.run__quiz-q { font: var(--t-sm)/1.5 var(--f-sans); color: var(--ink); margin: 0 0 .55rem; }
.run__quiz-opt {
  display: flex; align-items: center; gap: .5rem;
  font: var(--t-sm)/1.5 var(--f-sans); color: var(--ink-2);
  padding: .3rem 0;
}
.run__quiz-radio {
  flex: none; width: .95rem; height: .95rem; border-radius: 50%;
  border: 1px solid var(--rule-ui);
}
.run__quiz-opt.is-correct { color: var(--ink); }
.run__quiz-opt.is-correct .run__quiz-radio {
  border-color: var(--lime); background: var(--lime);
  box-shadow: inset 0 0 0 3px var(--panel);
}

/* THE TWO VERSIONS OF THIS PANEL.
 * Everything above renders the FINISHED state: every item ticked, the
 * read-back and the credit line both there. That is what a visitor with
 * JavaScript off, or with prefers-reduced-motion set, sees — a complete
 * panel, not an empty box waiting for a script.
 * .is-live (added by the script only when motion is allowed) hands it over to
 * the schedule: the staged blocks start hidden and are revealed by
 * [data-phase]. Nothing is ever removed from the layout, only faded and
 * nudged 6px, so the panel's height never changes mid-sequence and the page
 * below it never moves. */
.run__panel.is-live [data-item] {
  /* Pending items are DIM, not absent. An earlier version faded them in from
     nothing, which left a 150px hole in the middle of the panel for anyone
     who had scrolled to it but not yet tripped the observer — a blank box is
     a worse first impression than a quiet one. Dim-then-tick also matches
     what the thing actually does: the five items were already agreed in the
     plan above, so they exist before they are built. */
  opacity: .4;
  transition: opacity var(--dur-long) var(--ease-out);
}
.run__panel.is-live [data-step="check"],
.run__panel.is-live [data-step="done"] {
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
}
.run__panel.is-live [data-item].is-working,
.run__panel.is-live [data-item].is-done { opacity: 1; }
.run__panel.is-live[data-phase="checking"] [data-step="check"],
.run__panel.is-live[data-phase="done"] [data-step="check"],
.run__panel.is-live[data-phase="done"] [data-step="done"] { opacity: 1; transform: none; }

.run figcaption, .mock figcaption {
  font: var(--t-sm)/1.5 var(--f-sans); color: var(--ink-3);
  margin-top: .7rem; max-width: 48ch;
}

/* ---- Spec sheet + refusals --------------------------------------------- */
.spec__col + .spec__col { margin-top: clamp(2rem, 6vw, 2.75rem); }
@media (min-width: 58rem) {
  .spec__col + .spec__col { margin-top: 0; }
  .spec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
}
.spec__col > h2 { margin-bottom: .8rem; }
.spec__col p { font-family: var(--f-serif); color: var(--ink-2); max-width: var(--measure); }
.spec__col p.small { font-family: var(--f-sans); }
/* A specification sheet: term, rule, value. Hairlines between rows, no cards,
 * no icons — five identical icon tiles would say nothing that these five
 * words do not. */
.specsheet { margin: 0 0 1.1rem; border-top: 1px solid var(--rule); }
.specsheet__row {
  display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: .2rem 1.25rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}
.specsheet dt { font: 700 var(--t-sm)/1.5 var(--f-sans); color: var(--ink); }
.specsheet dd { margin: 0; font: var(--t-sm)/1.55 var(--f-sans); color: var(--ink-2); }
@media (max-width: 34rem) {
  .specsheet__row { grid-template-columns: minmax(0, 1fr); }
}
.spec__col--wont .dl dt { font-family: var(--f-sans); font-size: var(--t-sm); }
.spec__col--wont .dl dd { font-size: var(--t-sm); font-family: var(--f-sans); }

/* ---- The lime band -----------------------------------------------------
 * The one inverted surface on the page, and the brand colour doing structural
 * work rather than decorating something. The logo is at real size here, in
 * navy on brand — a 7.45:1 silhouette, not a 5%-opacity watermark behind text,
 * with its eye cut-outs left open so the band's own lime shows through them.
 * (Custom properties inherit into the <use> shadow tree, which is what lets
 * one symbol be repainted here.)
 * Both ink steps on this band were measured against #84cc16 specifically. */
.band { background: var(--lime); color: var(--lime-ink); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band__in { display: flex; align-items: flex-start; gap: clamp(1.25rem, 3vw, 2.5rem); }
/* The logo in ink on the lime band: navy body and dot (7.45:1 on the lime),
 * eyes left as see-through cut-outs so they are the band's own lime. */
.band__mark {
  width: clamp(3.5rem, 9vw, 6.5rem); flex: none; aspect-ratio: 1;
  --logo-body: var(--lime-ink); --logo-eyes: transparent; --logo-dot: var(--lime-ink);
}
.band__text { min-width: 0; }
.band__h { color: var(--lime-ink); font-size: var(--t-h1); line-height: 1.05; margin: 0 0 .5rem; max-width: 26ch; overflow-wrap: anywhere; min-width: 0; }
.band__p { font: var(--t-lg)/1.5 var(--f-serif); color: var(--lime-ink-2); max-width: 48ch; margin: 0; }
.install--band { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
/* On the band the filled-lime button would disappear, so it inverts: ink fill,
 * lime text. Same shape, same weight, opposite ground. */
.btn--band {
  background: var(--lime-ink); border-color: var(--lime-ink); color: var(--lime);
  font-size: var(--t-base); padding: .95rem 1.35rem;
}
.btn--band:hover { filter: brightness(1.35); }
.install__free--band { color: var(--lime-ink-2); font-weight: 600; }
.band :focus-visible { outline-color: var(--lime-ink); }
@media (max-width: 34rem) {
  .band__in { flex-direction: column; gap: 1rem; }
}


/* ---- Footer: Ft5, one statement ---------------------------------------- */
.foot-close {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.foot-close__line {
  font: 700 var(--t-h1)/1.05 var(--f-display);
  letter-spacing: -.03em; text-wrap: balance;
  overflow-wrap: anywhere; min-width: 0;
  color: var(--ink); max-width: 30ch; margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}
.foot-close__meta { font: var(--t-sm)/1.65 var(--f-sans); color: var(--ink-2); }
.foot-close__meta p { max-width: 58ch; }
.foot-close__links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-bottom: 1.1rem; }
.foot-close__links a { font-weight: 600; white-space: nowrap; }

/* ---- Legal documents (terms-of-service.html, privacy-policy.html) -------
 * GENERATED pages — see site/tools/build-legal-pages.mjs. They reuse the
 * secondary-page shell and the numbered `.section` rail unchanged, so there is
 * no new layout here; what follows exists because a 700-line legal document
 * uses three constructs the rest of this site never did.
 *
 * 1. `blockquote`, which was completely unstyled (the stylesheet had no rule
 *    for it at all) and which both documents use heavily for the "read this
 *    one" callouts. Given `.pull`'s left accent rule rather than a new idiom.
 * 2. A contents list, which is navigation rather than prose — 28 numbered
 *    clauses is not a page you scroll to find §14 in.
 * 3. `hr`, also previously unstyled. Most are dropped by the generator (the
 *    `.section` border already draws that line), so a surviving one is a real
 *    break inside a clause and is drawn short and centred to read as one.
 *
 * `.legal` scopes all of it, so nothing here can reach the marketing pages. */
/* Running lists keep the prose measure, so a bullet never runs 10rem wider
 * than the paragraph above it. */
.legal .section__body > ul, .legal .section__body > ol { max-width: var(--measure); }
/* A table is followed by prose more often than not; give it the paragraph gap. */
.legal .scroll-x { margin-bottom: 1.1em; }
/* The "a product of" line straight under the contents block. */
.legal > p:first-child { margin-top: 1.4rem; }
.legal blockquote {
  margin: 0 0 1.05em;
  padding: .15rem 0 .15rem 1.15rem;
  border-left: 2px solid var(--rule-ui);
  max-width: var(--measure);
}
.legal blockquote > :last-child { margin-bottom: 0; }
/* A table inside a callout keeps the callout's measure rather than stretching
 * to the section width, which is what made the metadata block read as a
 * full-width band instead of an aside. */
.legal blockquote .scroll-x { max-width: 100%; }
.legal hr {
  border: 0;
  border-top: 1px solid var(--rule);
  width: 4rem;
  margin: 1.8em 0;
}
/* ⚠ BOTH OF THESE FIX A MEASURED PHONE-WIDTH OVERFLOW, they are not
 * defensive. At 390px the privacy policy scrolled sideways 16px, from two
 * causes: its fenced ASCII diagram of the request path (509px wide inside a
 * `pre`, which does not scroll on its own), and inline code spans like
 * `/courses/1247798/assignments/98765`, which are unbreakable by default
 * because a path has no spaces in it. A legal document is read on a phone more
 * often than the marketing pages are.
 *
 * Scoped to `.legal` rather than added to the bare `pre`/`code` rules, so the
 * existing pages' deliberately-laid-out `<pre>` blocks are untouched. */
.legal pre.code { overflow-x: auto; max-width: 100%; }
.legal code { overflow-wrap: anywhere; }
/* …but not inside a table cell: `anywhere` lets the auto table layout squeeze
 * a column below its longest word, which split the limited-use scope
 * `profile` into "profil / e" at 375px. break-word still wraps a long path,
 * and the table's own .scroll-x catches anything wider. */
.legal td code { overflow-wrap: break-word; }
/* The label/value tables both documents open with are written as a pipe table
 * with an EMPTY header row, so they have no `<th>` to carry the emphasis. The
 * first cell is the label in every one of them. */
.legal table tbody td:first-child { color: var(--ink); font-weight: 600; }
.legal table thead ~ tbody td:first-child { font-weight: 400; color: inherit; }

.legal-toc {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--gap) 0;
  font: var(--t-sm)/1.6 var(--f-sans);
}
.legal-toc h2 { font-size: var(--t-label); letter-spacing: .09em; text-transform: uppercase;
                color: var(--ink-3); margin: 0 0 .9rem; }
/* Two columns, because 28 clauses in one is a page of its own. The list keeps
 * the document's OWN clause numbers in its link text (see the generator's
 * comment) — so no counter, and `.plain`'s dash marker is turned off, since
 * each line already starts with a number. */
.legal-toc ul {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 2.5rem;
}
@media (max-width: 40rem) { .legal-toc ul { columns: 1; } }
.legal-toc li { margin: 0 0 .4em; break-inside: avoid; padding-left: 0; }
.legal-toc li::before { content: none; }

/* The draft banner. Louder than `.placeholder` on purpose: a placeholder is a
 * missing screenshot, and this is a published document that is not in force.
 * It is emitted by the generator, never written into the markdown, and it
 * disappears on its own once the version string loses its `-draft` suffix and
 * the effective date is filled in. */
.legal-draft {
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--panel);
  padding: 1.1rem 1.25rem;
  margin: 0 0 var(--gap);
  max-width: 44rem;
  font: var(--t-sm)/1.6 var(--f-sans);
  color: var(--ink);
}
.legal-draft p { margin: 0 0 .7rem; max-width: none; }
.legal-draft ul { margin: 0; padding-left: 1.15rem; color: var(--ink-2); }
.legal-draft li { margin-bottom: .2em; }

/* ---- Billing confirmation: the order reference --------------------------
 * Folded into a <details> because the Stripe session id is support’s lookup
 * key, not the buyer’s receipt — collapsed it is one line of grey text. The
 * wrap is not optional: the id is 66 unbreakable characters and without it the
 * page gains a horizontal scrollbar on a phone. */
.order-ref { font-size: var(--t-sm); color: var(--ink-2); }
.order-ref summary { cursor: pointer; }
.order-ref p { margin: .6rem 0 0; }
.order-ref code { overflow-wrap: anywhere; }

/* ---- Reduced motion -----------------------------------------------------
 * The caret stops blinking and the staged reveals stop transitioning. The
 * build panel is not started at all by the script under this preference (see
 * index.html), so it renders in its finished state — every item ticked, both
 * result blocks visible. The typed compose box swaps whole prompts on a five
 * second beat instead of typing them, which is what the extension's own
 * createMockTyping() does under the same preference; the text still changes,
 * because the list of things you can ask for IS the content, but nothing
 * moves to deliver it. */
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .run__panel [data-item],
  .run__panel [data-step],
  .run__state,
  .btn { transition: none; }
}
