/* repwiselearning.com: the closed-beta landing page (P25, Tess's landing-r13, approved by Jeff
   11-05). Sections 2-16 of the mock's own stylesheet, as drawn; the board's section 1 stays in the
   mock. The page is the container both names ask about: page (this file) and screen (components.css). */
html,
body {
  margin: 0;
  background: var(--bg);
}
.page {
  container-type: inline-size;
  container-name: page screen;
  background: var(--bg);
}

/* ==========================================================================
   2. THE DISPLAY SCALE AND THE PAGE RHYTHM
   r11's note, done (UI 4, ADR 0600): the display ramp (--display-1..3), the
   page rhythm (--rhythm, --rhythm-lg) and the page gutter (--gutter-page)
   live in tokens.css as public-page roles. They are fluid ranges built
   between token values, in cqi rather than vw, so each artboard answers to
   its own width. The page only points --gutter at its own role.
   The ramp's PROPORTIONS are the sheet's: one display step for the headline,
   one for a section heading, one for a lead, then the body floor.
   ========================================================================== */
.page {
  --gutter: var(--gutter-page);
}

/* .wrap is components.css's own primitive and already caps at 1200 and pads
   by --gutter, so nothing about it is declared here. */
.page section {
  padding-block: var(--rhythm);
}
.page [id] {
  scroll-margin-top: var(--space-6);
}

/* ONE heading block for the whole page, and therefore one alignment: the h1
   and every h2 share a left edge, a measure, the distance to the line under
   them and the distance from that line to the content. */
.mkt-head {
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure);
  margin-bottom: var(--space-6);
  text-align: start;
}
.mkt-head > * {
  margin: 0;
}
/* A hairline contained to the text column rather than bled to the artboard
   edge, on each section that follows another on the same paper. */
.hr-top {
  padding-block-start: 0;
}
.hr-top > .wrap::before {
  content: "";
  display: block;
  border-top: var(--hairline) solid var(--border);
  margin-bottom: var(--rhythm);
}

/* ---------- 3. Marketing type. The sheet's voice, in screen units. -------- */
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-announce);
  line-height: var(--lh-tight);
}
/* V16: the tightened tracking only on titles from 25px (the display steps), never on an h3. */
.h1,
.h2 {
  letter-spacing: var(--track-head);
}
.h1 {
  margin: 0;
  font-size: var(--display-1);
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-size: var(--display-2);
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--lh-snug);
  text-wrap: balance;
}
.p {
  margin: 0;
  max-width: var(--measure);
  text-wrap: pretty;
}
.p + .p {
  margin-top: var(--space-4);
}
.lead {
  max-width: var(--measure);
  font-size: var(--text-md);
  line-height: var(--lh-snug);
  color: var(--muted);
  text-wrap: pretty;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
}
.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  align-content: start;
}
/* An inline route inside running text. Brand, underlined, never the accent. */
.link {
  color: var(--brand);
  font-weight: var(--weight-ui);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: var(--underline-offset);
}
.link:hover,
.link:focus-visible {
  text-decoration-thickness: var(--edge-strong);
}
/* NO .ico RULE HERE. components.css already draws it: display block, flex
   none, sized in --ico-em so a glyph tracks the type beside it, filled with
   currentColor. The sheet declared its own because a print page had no flex
   context to answer to; redeclaring it here would override the component's
   display for every icon on the page. Where a glyph needs a size other than
   the default it is given one in its own block below. */

/* ---------- 4. The top bar's section row ----------
   components.css's .nav is the staff console rail, so this row has its own
   name. The rows inside it are the shared TEXT rank (.link-btn); only their
   placement is here. It wraps rather than overflowing, because six links
   beside a lockup is a two-line row at some width. From 960 it fits one row
   (measured); below 960 the section links and Sign in go behind the Menu and
   Join the beta stays. */
.mkt-nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin-inline-start: auto;
}
.mkt-nav .link-btn {
  margin-inline-start: 0;
}
.mkt-nav-min {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin-inline-start: auto;
  /* The row keeps --tap (48px) with Join the beta at the bar's 44px primary, so the bar keeps its height. */
  min-block-size: var(--tap);
}
/* The phone Menu (Jeff, 11-23; Landing's spec): a hamburger (an × while open) beside Join the beta, its
   panel dropping below the top bar across the page: the five section links as 48px rows, then Sign in.
   The button is the shared secondary rank (.btn-quiet .btn--sm, a 44px target); here only the disclosure's
   own marker goes, the glyph swaps, and the panel is placed. */
.mkt-menu-btn {
  min-inline-size: var(--tap-min);
  list-style: none;
  cursor: pointer;
}
.mkt-menu-btn::-webkit-details-marker {
  display: none;
}
.mkt-menu-close,
.mkt-menu[open] .mkt-menu-open {
  display: none;
}
.mkt-menu[open] .mkt-menu-close {
  display: block;
}
/* The top bar's row is the Menu panel's anchor. */
.mkt-head-row {
  position: relative;
}
.mkt-menu-panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  z-index: 10;
  display: grid;
  justify-items: start;
  padding: var(--space-2) var(--gutter) var(--space-4);
  background: var(--bg);
  border-block-end: var(--hairline) solid var(--border);
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  padding-block: var(--rhythm) var(--rhythm-lg);
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--rhythm-lg);
  align-items: start;
}
/* The spotter line, which is the sheet's .hero-sub: the display face, the
   reading weight, in --brand, under the headline. It is the one line on the
   page that is set in the display face and is not a heading. */
.hero-sub {
  /* 40ch, measured: both sentences are 39 characters, so the line breaks
     where the copy does instead of orphaning "for you." onto a third line. */
  margin: var(--space-3) 0 0;
  max-width: 40ch;
  font-family: var(--font-display);
  font-size: var(--display-3);
  font-weight: var(--weight-read);
  line-height: var(--lh-snug);
  color: var(--brand);
  text-wrap: pretty;
}
.hero-lead {
  margin-top: var(--space-5);
}
.hero-act {
  margin-top: var(--space-6);
  display: grid;
  justify-items: stretch;
}
.hero-beta {
  margin: var(--space-3) 0 0;
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-ui);
}

/* ==========================================================================
   6. THE HERO LOOP (P25 landing-r15, V20)
   The real app instead of a drawn phone: a 4:5 clip of the walkthrough,
   no device frame (the clip is the screen), clipped as a card (V10: a
   picture frame is a card, never a capsule; UI 4), no shadow (G1). Its
   Pause / Play sits inside the bottom-right corner, off the words. The
   caption under it is its text alternative.
   ========================================================================== */
.hero-loop {
  margin: 0;
  width: 100%;
  max-width: var(--device-w);
  justify-self: center;
}
.loop-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.loop-v {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.hero-loop-btn {
  /* Tess, 11-23: the circle glyph is the mark, so the button is a soft square, not a circle in a
     circle; its scrim and edge are .icon-btn--on-media's. */
  border-radius: var(--radius-control);
  position: absolute;
  inset-block-end: var(--space-3);
  inset-inline-end: var(--space-3);
}
.hero-loop-btn .loop-ico-pause,
.hero-loop-btn.is-playing .loop-ico-play {
  display: none;
}
.hero-loop-btn.is-playing .loop-ico-pause {
  display: inline;
}
.loop-cap {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
}

/* ==========================================================================
   7. HOW IT WORKS: the sheet's three numbered steps, with its three glyphs.
   ========================================================================== */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
.steps-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: start;
}
/* The numbered disc. The NUMBER is the signal and the tint is decoration, so
   the disc keeps a --brand ring: at 93% grey the wash alone is a blank
   circle. Straight off the sheet. */
.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--space-7);
  block-size: var(--space-7);
  border: var(--hairline) solid var(--brand);
  border-radius: var(--radius-pill);
  background: var(--brand-wash);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-announce);
  line-height: 1;
}
.step-t {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.step-h {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-md);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
}
.step-h .ico {
  flex: none;
  inline-size: 0.95em;
  block-size: 0.95em;
  color: var(--brand);
  transform: translateY(0.08em);
}
.step-p {
  margin: 0;
  max-width: var(--measure);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

/* ==========================================================================
   8. "IT NEVER DOES THE HOMEWORK." — THE SHEET'S BAND
   The strongest block on the page, and strong through weight and rule rather
   than through a dark fill: a --brand-wash ground between two 3px --brand
   rules, with ink text inside it. This is the sheet's closing band, which is
   why the page and the sheet read as one family at a glance.
   ========================================================================== */
.promise {
  border-block: var(--edge) solid var(--brand);
  background: var(--brand-wash);
}
.promise .mkt-head {
  margin-bottom: var(--space-5);
}
/* The pull line: the display face, on a --brand left edge, exactly as the
   founder quote below is drawn, because they are the same kind of sentence. */
.promise-q {
  margin: var(--space-6) 0 0;
  padding-inline-start: var(--space-5);
  max-width: var(--measure);
  border-inline-start: var(--edge) solid var(--brand);
  font-family: var(--font-display);
  font-size: var(--display-3);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}

/* ==========================================================================
   9. PARENTS — the largest section
   ========================================================================== */
.sub-head {
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure);
  margin-block: var(--rhythm) var(--space-5);
}
.sub-head > * {
  margin: 0;
}
.sub-head:first-child {
  margin-block-start: 0;
}

/* The four proofs. A title and the paragraph under it, four times, with no
   card and no tint: the sheet separates a block from its neighbour with space
   and nothing else. */
.proofs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) var(--space-7);
}

/* What you see, beside the drawn dashboard. */
.see-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
/* The proofs and What you see are two blocks, not one run of text (Tess, after QA). */
.proofs + .see-grid {
  margin-block-start: var(--rhythm);
}

/* ---------- The dashboard, drawn. One child's week as the parent page draws
   it: the child and their course, the unit they are in, and three topics with
   their state. The three state words and their glyphs are components.css's
   .status with --success / --warn / --info, which is the same component
   parent-r12 sets them in, so the picture cannot drift from the product.
   Sample data is 07-sample-data.md through parent-r12: Sam, Algebra 2, Unit 4
   Rational equations, and three of that unit's four topics, one per state.
   It is one labelled image. Nothing in it is a control. */
.dash {
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--bg);
  overflow: hidden;
}
.dash-head {
  padding: var(--space-4);
  border-block-end: var(--hairline) solid var(--border-strong);
  background: var(--surface);
}
.dash-who {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-announce);
  line-height: var(--lh-tight);
}
.dash-k {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
}
.dash-body {
  padding: var(--space-4);
}
.dash-unit {
  margin: 0 0 var(--space-3);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
}
.dash-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.dash-topics > li {
  /* NOT flex-wrap. With it, "Finding the LCD" kept its state beside it and
     "Factoring the denominators" dropped its onto a second line, so three
     rows of the same kind read as two kinds. The topic wraps inside its own
     column and the state, which is nowrap and flex: none, stays where it is. */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-block-start: var(--hairline) solid var(--border);
  line-height: var(--lh-snug);
}
.dash-topics > li:first-child {
  border-block-start: 0;
}
.dash-t {
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------- The comparison, the sheet's .cmp ----------
   Six kinds of help and then Repwise Math, and the last row has to be the one
   a reader finds in greyscale: bold text, a heavier rule above and below it,
   and a tint behind it. The tint is the one signal of the three that greyscale
   takes away, which is why it is never the only one.
   G7: a fixed six-row comparison is not a DataTable and gets no search, no
   filters and no sort. */
.cmp {
  inline-size: 100%;
  max-inline-size: var(--measure-wide);
  border-collapse: collapse;
}
.cmp th,
.cmp td {
  text-align: start;
  vertical-align: top;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.cmp th:first-child,
.cmp td:first-child {
  padding-inline-start: var(--space-3);
}
.cmp th:last-child,
.cmp td:last-child {
  padding-inline-end: var(--space-3);
}
.cmp thead th {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
  border-block-end: var(--edge-strong) solid var(--fg);
}
.cmp tbody th {
  inline-size: 13%;
  font-weight: var(--weight-announce);
}
.cmp tbody tr {
  border-block-end: var(--hairline) solid var(--border-strong);
}
.cmp tbody td {
  color: var(--muted);
}
.cmp-us {
  background: var(--brand-wash);
}
.cmp-us th,
.cmp-us td {
  font-weight: var(--weight-announce);
  color: var(--fg);
}
.cmp-us th {
  color: var(--brand);
}
tr.cmp-us {
  border-block-start: var(--edge-strong) solid var(--fg);
  border-block-end: var(--edge-strong) solid var(--fg);
}
/* The per-cell question label, shown only in the stacked form below 900 and
   at 200% text. aria-hidden, because the table's own header association says
   it already. */
.cmp-col {
  display: none;
}

/* ---------- Built to protect your child: the sheet's tick list. ---------- */
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
  display: grid;
  gap: var(--space-3);
}
.ticks > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-3);
  align-items: start;
  line-height: var(--lh-body);
  text-wrap: pretty;
}
.ticks .ico {
  inline-size: var(--ico-md);
  block-size: var(--ico-md);
  color: var(--brand);
  margin-block-start: 0.2em;
}

/* ---------- The founder quote, the sheet's block. ---------- */
.quote {
  margin: 0;
  padding-inline-start: var(--space-5);
  max-width: var(--measure);
  border-inline-start: var(--edge) solid var(--brand);
}
.quote-p {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--display-3);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.quote-c {
  display: block;
  margin-block-start: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-announce);
  color: var(--muted);
  font-style: normal;
}

/* ---------- The homeschool aside: a short sentence on the same paper, with
   the one rule that says it is an aside and not a section. ---------- */
.aside-hs {
  margin-block-start: var(--rhythm);
  padding-block-start: var(--space-5);
  border-block-start: var(--hairline) solid var(--border);
}
.aside-hs .sub-head {
  margin-block-start: 0;
}
/* The one route on the page that arrives at the form with an answer already
   chosen. The text rank: this section's view has no accent in it. */
.coop-act {
  margin: var(--space-5) 0 0;
}

/* ==========================================================================
   10. STUDENTS — a short strip
   ========================================================================== */
.strip {
  background: var(--surface);
}
.hooks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--space-7);
}
.hooks > li {
  max-width: var(--measure);
  line-height: var(--lh-body);
  text-wrap: pretty;
}
.hook-t {
  font-weight: var(--weight-announce);
}

/* ==========================================================================
   11. QUESTIONS: native disclosures, so the keyboard and the screen reader
   get them free, and every state is drawn: rest, hover, pressed, focused,
   open. The row's tint bleeds 12px into the gutter and its text is pushed
   back the same 12px, so the questions stay on the page's left edge.
   ========================================================================== */
.faq {
  border-top: var(--hairline) solid var(--border);
  max-width: var(--measure-faq);
}
.faq details {
  border-bottom: var(--hairline) solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: calc(var(--tap) + var(--space-2));
  padding: var(--space-3);
  margin-inline: calc(-1 * var(--space-3));
  border-radius: var(--radius-control);
  list-style: none;
  cursor: pointer;
  color: var(--fg);
  font-size: var(--display-3);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
  transition: background-color var(--dur-exit) var(--ease-out);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::marker {
  content: "";
}
.faq summary > span:first-child {
  max-width: var(--measure);
}
.faq summary:active {
  background: var(--surface-sunk);
}
@media (hover: hover) {
  .faq summary:hover {
    background: var(--surface);
  }
}
.faq summary:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 0;
}
.faq details[open] > summary {
  font-weight: var(--weight-announce);
}
.faq summary .ico {
  flex: none;
  inline-size: var(--ico-md);
  block-size: var(--ico-md);
  color: var(--muted);
  transition:
    transform var(--dur-enter) var(--ease-out),
    color var(--dur-enter) var(--ease-out);
}
.faq details[open] > summary .ico {
  transform: rotate(180deg);
  color: var(--brand);
}
@media (hover: hover) {
  .faq summary:hover .ico {
    color: var(--brand);
  }
}
.faq-a {
  margin: 0 0 var(--space-5);
  max-width: var(--measure);
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   12. THE FORM
   The form itself is drawn entirely by components.css: .field with its label,
   its .inp, its .field-hint and its .field-err; .group with its legend, its
   .opts and its .opt-row rows; .choices with its .choice boxes; .sel; the
   .fb-box textarea; .callout--danger for the send that failed; .btn-primary
   for the one action; and .sent for the done state. Nothing about any of
   those is declared here. What IS here is where the parts sit, and the
   reserved box.
   ========================================================================== */
.form-sec {
  background: var(--surface);
}
.form-slot {
  max-width: var(--measure-form);
}
/* The reserved space for Cloudflare's Managed widget, which most people never
   see. SIZE ONLY: the box is empty, because the brief asks for a reserved box
   with no drawn widget and the deck gives it no words. What a reviewer sees
   round it on the board is board-only CSS in section 1. */
.ts-slot {
  margin-block-start: var(--space-6);
  inline-size: min(var(--turnstile-w), 100%);
  min-block-size: var(--turnstile-h);
}
.form-act {
  margin-block-start: var(--space-6);
  display: grid;
  justify-items: stretch;
}
.form-fine {
  margin: var(--space-4) 0 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.sendfail {
  /* The component caps itself at the reading measure, which is right for a
     note inside running text and wrong for a form-level alert: 30px short of
     the fields it is about reads as a misalignment, not as a measure. It
     spans the form, and it sits at the TOP of the form rather than a
     component margin below the lead. */
  margin: 0 0 var(--space-5);
  max-inline-size: none;
}
/* The alert takes focus so a screen reader lands on it and a sighted reader
   is carried to it, and that focus draws NO ring. Measured, not assumed:
   Chrome matches :focus-visible on a programmatically focused tabindex="-1"
   element, so the component's own focus pair painted a second green box
   inside an alert that is already the loudest thing on the form. The line is
   not tabbable and the box around it is the indication. */
.sendfail .callout-t:focus,
.sendfail .callout-t:focus-visible {
  outline: none;
}
/* NEEDS A COMPONENT MODIFIER, and it is r11's note: .opt-row's hover tint IS
   --surface, so inside a section already on --surface the hover does not
   read. The row wants a tint knob; until it has one this section hands the
   hover back the paper it is sitting on. Pressed is --surface-sunk and still
   reads. Same for the boxed .choice. */
@media (hover: hover) {
  .form-sec .opt-row:hover {
    background: var(--bg);
  }
  .form-sec .choice:not(:has(input:checked)):hover {
    background: var(--bg);
  }
}

/* ==========================================================================
   13. FOOTER. .foot-grid, .foot-links and .wordmark are components.css's;
   what is here is this page's own made-by line and the one link colour the
   footer row needs.
   ========================================================================== */
.site-foot {
  padding-block: var(--rhythm);
  border-top: var(--hairline) solid var(--border);
  background: var(--bg);
}
.foot-brand .wordmark {
  margin-bottom: var(--space-1);
}
.foot-made {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  color: var(--brand);
  font-weight: var(--weight-announce);
  text-decoration: none;
  text-underline-offset: var(--underline-offset);
}
.foot-links a:hover,
.foot-links a:focus-visible {
  text-decoration: underline;
}
.foot-links .ico {
  inline-size: var(--ico-sm);
  block-size: var(--ico-sm);
}

/* ==========================================================================
   13b. R13: THE 12-COLUMN LOWER HALF
   Jeff, on r12: from Built to protect your child down, "it looks odd for the
   desktop layout" -- every section a single left column with blank space
   beside it. Each one now has a deliberate shape from 900 up, on one
   12-column measure, and NOTHING below 900 changes.

   HOW THE PHONE IS HELD STILL. Every wrapper this needs is display: contents
   under 900: it generates no box at all, so a phone's box tree is r12's
   element for element and its geometry is provably identical. Where the
   desktop order differs from the DOM order -- the homeschool aside sits
   beside the protect list, and in the DOM it follows the quote -- GRID
   PLACEMENT does it, not a DOM move. Nothing in those three blocks takes
   focus, so the reading order a screen reader gets (protect, the quote, the
   aside) stays a sensible one; it is simply not the order the eye takes.
   The one DOM move on the page is the form's privacy line, and a phone sends
   it back under its button with one `order`.
   ALL OF IT BELONGS IN components.css as a layout primitive if it survives
   review: .g12 is a 12-column grid and nothing else.
   ========================================================================== */
.g12,
.g12-c {
  display: contents;
}
/* ‼ MEASURED PHONE REGRESSION, and the whole reason the wrappers needed a
   geometry dump rather than an eyeball. `display: contents` removes a BOX; it
   does not remove a NODE, so SELECTORS still see the real tree. These two
   sub-heads became the first child of their new cell, `.sub-head:first-child`
   started matching, and the phone lost 48px of rhythm above both "Built to
   protect your child" and "Why I built it" -- 96px off the section. The cell
   hands it back; the 900 block takes it off again where the grid owns the
   spacing. (.aside-hs's sub-head is a grandchild, so it keeps its own 0.) */
.g12-c > .sub-head:first-child {
  margin-block-start: var(--rhythm);
}
/* The privacy line is about a form. `form.hidden = true` used to take it with
   the form, because it was inside it; now it has to be told. The failed state
   leaves the form in place, so the line stays there -- which is r12. */
.form-sec:has(.form-slot > form[hidden]) .form-fine {
  display: none;
}
/* The co-op panel is the one piece of NEW content on this page, and it says
   nothing the paragraph beside it does not. A phone gets the paragraph. */
.coop-panel {
  display: none;
}

/* ==========================================================================
   14. RESPONSIVE. Container queries, not media queries, and fluid between
   every one of them: the sizes and the rhythm above already move with the
   width, so these thresholds only change shape, never scale.
   ========================================================================== */

/* --- From 560: the short blocks pair up and the primary stops running the
       whole column. --- */
@container page (min-width: 560px) {
  .hero-act,
  .form-act {
    justify-items: start;
  }
  .proofs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hooks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- From 960: the top bar shows its section row, on one row with the lockup (measured 11-24: the lockup, five
       links and both buttons need 931-937px; below that it wrapped to two or three rows). Narrower, the Menu.
       (Its own class: .mkt-head is the section heading block.) --- */
@container page (min-width: 960px) {
  .mkt-nav {
    display: flex;
  }
  .mkt-nav-min {
    display: none;
  }
}
/* --- From 900 only (Landing's spec; Tess's fold, 11-24): the bar stays at the top as the page scrolls; below
       that it scrolls away. No shrink or slide. components.css's .site-head
       gives it the solid --bg and the hairline, so it reads over the night chapters. media.js sets the page's
       scroll-padding-top to the bar's measured height while it's sticky, so every #anchor lands below it. --- */
@container page (min-width: 900px) {
  .mkt-topbar {
    position: sticky;
    inset-block-start: 0;
    z-index: 10;
  }
}

/* The skip link: off screen until it has focus, then a full target in the top corner. */
.mkt-skip {
  position: absolute;
  inset-inline-start: var(--space-2);
  inset-block-start: var(--space-2);
  z-index: 20;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mkt-skip:focus {
  inline-size: auto;
  block-size: auto;
  min-block-size: var(--tap);
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-3);
  clip-path: none;
  background: var(--bg);
  color: var(--brand);
  font-weight: var(--weight-announce);
  outline: var(--focus-w) solid var(--focus);
  outline-offset: var(--focus-off);
}
main:focus {
  outline: none;
}

/* --- Below 900: the comparison stacks and each cell takes the question it
       answers, so the reader never has to remember which column they are in.
       The explicit ARIA roles keep the header association alive through
       display: block, which otherwise drops the table role in Chrome and
       Firefox; the per-cell labels are aria-hidden so nothing is announced
       twice. The Repwise Math block keeps all three of its signals. --- */
@container page (max-width: 899px) {
  .cmp,
  .cmp tbody,
  .cmp tr,
  .cmp th,
  .cmp td {
    display: block;
  }
  .cmp thead {
    display: none;
  }
  /* The tint bleeds 12px into the gutter and the content is pushed back the
     same 12px, so the comparison keeps the page's one left edge. Same move
     the questions and the option rows make. */
  .cmp tbody tr {
    margin-inline: calc(-1 * var(--space-3));
    padding: var(--space-5) var(--space-3);
    border-block-start: var(--hairline) solid var(--border-strong);
  }
  .cmp tbody tr:first-child {
    border-block-start: 0;
    padding-block-start: 0;
  }
  .cmp tbody th {
    inline-size: auto;
    padding: 0 0 var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-md);
    line-height: var(--lh-tight);
  }
  .cmp tbody td {
    padding: var(--space-3) 0 0;
  }
  /* The base rule's :first-child / :last-child insets are (0,2,1) and beat a
     (0,1,2) shorthand, which is how the kind heading ended up indented 12px
     further than the cells under it. */
  .cmp tbody th:first-child {
    padding-inline-start: 0;
  }
  .cmp tbody td:first-child {
    padding-inline-start: 0;
  }
  .cmp tbody td:last-child {
    padding-inline-end: 0;
  }
  /* BOTH heavy rules, as on the sheet: the Repwise block is bracketed, not
     just introduced. The bracket is the signal greyscale keeps. */
  tr.cmp-us {
    border-block-start: var(--edge-strong) solid var(--fg);
    border-block-end: var(--edge-strong) solid var(--fg);
  }
  .cmp-col {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: var(--weight-announce);
    line-height: var(--lh-snug);
  }
  .cmp-us .cmp-col {
    color: var(--brand);
  }
}

/* --- From 900: the hero splits, the dashboard sits beside What you see, and
       the picture takes its own width. --- */
@container page (min-width: 900px) {
  /* r15: the loop sits to the right of the words in about 5 of 12 columns, top-aligned, never centred. */
  .hero-grid {
    grid-template-columns: var(--grid-page);
    align-items: start;
  }
  .hero-grid > :first-child {
    grid-column: 1 / span 7;
  }
  .hero-loop {
    grid-column: 8 / span 5;
    justify-self: end;
    max-width: var(--device-w-lg);
  }
  .see-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: var(--space-7);
  }
}

/* --- From 900: THE 12-COLUMN LOWER HALF. One measure, one column gap and
       one left edge from the top of the page to the bottom: the proofs, the
       comparison and What you see already sit on the wrap's own content
       edge, which is column 1, so every section below lands on it too. --- */
@container page (min-width: 900px) {
  /* ‼ MEASURED, item 7. .cmp caps itself at 70rem = 1120px, 16px short of
     the wrap's own 1136 at both 1280 and 1440 -- the one column edge on this
     page that did not line up with the other eleven. The cap never binds
     below 900 (768 gives the table ~700), so lifting it here cannot reach a
     phone. */
  :where(html:not(.is-large-text)) .cmp {
    max-inline-size: none;
  }

  :where(html:not(.is-large-text)) .g12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-7);
    row-gap: var(--rhythm);
    align-items: start;
  }
  :where(html:not(.is-large-text)) .g12-c {
    display: block;
    min-width: 0;
  }

  /* 1. Built to protect your child, 7 | For homeschool families, 5.
     The aside's hairline-and-margin shape was how it separated itself in a
     single column; as a panel beside the list it needs neither, and both
     columns start on the same line. */
  :where(html:not(.is-large-text)) .g12--parents {
    margin-block-start: var(--rhythm);
  }
  :where(html:not(.is-large-text)) .c-protect {
    grid-column: 1 / 8;
    grid-row: 1;
  }
  :where(html:not(.is-large-text)) .c-hs {
    grid-column: 8 / 13;
    grid-row: 1;
  }
  :where(html:not(.is-large-text)) .c-protect > .sub-head:first-child {
    margin-block-start: 0;
  }
  :where(html:not(.is-large-text)) .c-protect .ticks {
    max-width: none;
  }
  :where(html:not(.is-large-text)) .c-hs .aside-hs {
    margin-block-start: 0;
    border-block-start: 0;
    /* The handout's own co-op box: --surface on a hairline, nothing else. */
    padding: var(--space-5);
    background: var(--surface);
    border: var(--hairline) solid var(--border-strong);
    border-radius: var(--radius-control);
  }
  :where(html:not(.is-large-text)) .c-hs .sub-head {
    margin-block: 0 var(--space-3);
  }

  /* 2. Why I built it: a full-width band, the quote centred across 8 of the
     12 columns. THE BLEED IS THE CONTAINER'S, NOT THE VIEWPORT'S: 100cqw is
     the artboard, which is what a viewport is on this board and what the
     viewport is on the real page, so the band reaches the edge in both and
     escapes neither. The padding puts the text back on the wrap's own left
     edge: half the overflow past --wrap-max, plus the gutter. */
  :where(html:not(.is-large-text)) .c-why {
    grid-column: 1 / -1;
    grid-row: 2;
    inline-size: 100cqw;
    margin-inline: calc(50% - 50cqw);
    padding-block: var(--rhythm);
    padding-inline: calc(max(0px, (100cqw - var(--wrap-max)) / 2) + var(--gutter));
    background: var(--brand-wash);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-7);
  }
  /* 10 of 12 to start, 8 from 1100 up. A fixed 8 is the brief and it is
     right at 1280; held at 900 it insets the band 170px and squeezes the
     quote to fourteen lines, which is the opposite of a pause. */
  :where(html:not(.is-large-text)) .c-why > * {
    grid-column: 2 / 12;
  }
  /* On the band the tint is the mark, so the quote gives up the brand edge it
     wears in a column. It stays LEFT-ALIGNED: the BLOCK is centred, the words
     are not. Measured at 1280 the quote runs ten lines, and ten centred lines
     hand the eye a new starting point on every one of them.
     (0,3,0) on the sub-head, to outrank the rule that hands the rhythm back
     to a cell's first child. */
  :where(html:not(.is-large-text)) .c-why > .sub-head:first-child {
    max-width: none;
    margin-block: 0 var(--space-4);
  }
  :where(html:not(.is-large-text)) .c-why .quote {
    max-width: none;
    padding-inline: 0;
    border-inline-start: 0;
  }
  :where(html:not(.is-large-text)) .c-why .quote-p {
    font-size: var(--display-2);
  }

  /* 3. Homeschool co-ops: the text in 6, the four steps in 6. */
  :where(html:not(.is-large-text)) .c-coop-t {
    grid-column: 1 / 7;
    grid-row: 1;
  }
  :where(html:not(.is-large-text)) .c-coop-p {
    grid-column: 7 / 13;
    grid-row: 1;
  }
  :where(html:not(.is-large-text)) .coop-panel {
    display: block;
    padding: var(--space-5);
    background: var(--surface);
    border: var(--hairline) solid var(--border-strong);
    border-radius: var(--radius-control);
  }
  /* Sentence case, not the eyebrow's caps: the label carries a month name,
     and MID-NOVEMBER is not how anybody writes it. */
  :where(html:not(.is-large-text)) .coop-k {
    margin: 0 0 var(--space-4);
    color: var(--brand);
    font-weight: var(--weight-announce);
    letter-spacing: var(--track-ui);
    line-height: var(--lh-snug);
  }
  :where(html:not(.is-large-text)) .coop-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: cs;
    display: grid;
    gap: var(--space-4);
  }
  :where(html:not(.is-large-text)) .coop-steps > li {
    counter-increment: cs;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--space-3);
    align-items: start;
    line-height: var(--lh-snug);
    text-wrap: pretty;
  }
  /* The handout's numbered disc, so the page and the sheet count the same
     way: the number is the signal and the tint is decoration, so the disc
     keeps a --brand ring. */
  :where(html:not(.is-large-text)) .coop-steps > li::before {
    content: counter(cs);
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: var(--space-6);
    block-size: var(--space-6);
    border: var(--hairline) solid var(--brand);
    border-radius: var(--radius-pill);
    background: var(--brand-wash);
    color: var(--brand);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-announce);
    line-height: 1;
  }

  /* 4. Students: the four-up strip keeps its four, and its heading takes the
     same 4-column cell the Questions heading does, so the two read as one
     system rather than as two left-aligned accidents. */
  :where(html:not(.is-large-text)) .g12--students {
    row-gap: var(--space-6);
  }
  :where(html:not(.is-large-text)) .c-st-h {
    grid-column: 1 / 5;
    grid-row: 1;
  }
  :where(html:not(.is-large-text)) .c-st-l {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  :where(html:not(.is-large-text)) .c-st-h > .mkt-head {
    margin-block-end: 0;
  }

  /* 5. Questions: the heading in 4, sticky, the accordion in 8. */
  :where(html:not(.is-large-text)) .c-faq-h {
    grid-column: 1 / 5;
    grid-row: 1;
    align-self: stretch;
  }
  :where(html:not(.is-large-text)) .c-faq-l {
    grid-column: 5 / 13;
    grid-row: 1;
  }
  :where(html:not(.is-large-text)) .c-faq-h > .mkt-head {
    position: sticky;
    top: var(--space-6);
    margin-block-end: 0;
  }
  :where(html:not(.is-large-text)) .c-faq-l .faq {
    max-width: none;
  }

  /* 6. The form: the ask in 5, the form itself in a card in 7.
     NEEDS A COMPONENT MODIFIER: the three declarations on the card are
     components.css's own .panel, applied here rather than named in the
     markup, because the class would reach the phone and the phone is held
     still. .panel wants a --panel-pad and then this is one class. */
  /* auto / 1fr, because the card spans both rows and is far the taller
     column: with two auto rows, grid hands the card's extra height to BOTH of
     them and the privacy line drifts to the foot of the column, a long way
     from the intro it belongs with. */
  :where(html:not(.is-large-text)) .g12--form {
    row-gap: 0;
    grid-template-rows: auto 1fr;
  }
  :where(html:not(.is-large-text)) .g12--form > .mkt-head {
    grid-column: 1 / 6;
    grid-row: 1;
    margin-block-end: var(--space-5);
  }
  :where(html:not(.is-large-text)) .c-form-t {
    grid-column: 1 / 6;
    grid-row: 2;
  }
  :where(html:not(.is-large-text)) .c-form-c {
    grid-column: 6 / 13;
    grid-row: 1 / span 2;
  }
  :where(html:not(.is-large-text)) .c-form-t .form-fine {
    margin-block-start: 0;
  }
  :where(html:not(.is-large-text)) .c-form-c .form-slot {
    max-width: none;
    padding: var(--space-6);
    background: var(--bg);
    border: var(--hairline) solid var(--border);
    border-radius: var(--radius-control);
  }
}

/* --- From 1100: the quote band narrows to the brief's 8 columns. --- */
@container page (min-width: 1100px) {
  :where(html:not(.is-large-text)) .c-why > * {
    grid-column: 3 / 11;
  }
}

/* --- From 1000: the three steps become three columns. --- */
@container page (min-width: 1000px) {
  .steps-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-7);
  }
  .steps-list > li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-3);
  }
}

/* --- From 1080: the four proofs and the four student hooks take four
       columns. Four never goes to three: a 4-in-3 grid leaves one block alone
       on a row, which reads as a fifth that failed to load. --- */
@container page (min-width: 1080px) {
  .proofs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hooks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   15. LARGE TEXT (root at least 1.5x). components.css section 20 already pins
   the gutter and relaxes the shared controls; what is here is this page's own
   shape: the display sizes stop scaling, everything side by side stacks, and
   the comparison takes its stacked form at any width, so nothing clips and no
   target drops below 44px.
   ========================================================================== */
html.is-large-text .page {
  --gutter: var(--space-5);
  --display-1: var(--text-xl);
  --display-3: var(--text-md);
}
html.is-large-text .hero-grid {
  grid-template-columns: minmax(0, 1fr);
}
html.is-large-text .hero-loop {
  grid-column: auto;
  justify-self: center;
  max-width: var(--device-w);
}
html.is-large-text .hero-grid > :first-child {
  grid-column: auto;
}
html.is-large-text .see-grid {
  grid-template-columns: minmax(0, 1fr);
}
html.is-large-text .steps-list {
  grid-template-columns: minmax(0, 1fr);
}
html.is-large-text .steps-list > li {
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-3);
}
html.is-large-text .proofs,
html.is-large-text .hooks {
  grid-template-columns: minmax(0, 1fr);
}
html.is-large-text .hero-act,
html.is-large-text .form-act {
  justify-items: stretch;
}
html.is-large-text .choices {
  --od-cols: 1;
}
html.is-large-text .cmp,
html.is-large-text .cmp tbody,
html.is-large-text .cmp tr,
html.is-large-text .cmp th,
html.is-large-text .cmp td {
  display: block;
}
html.is-large-text .cmp thead {
  display: none;
}
html.is-large-text .cmp tbody tr {
  margin-inline: calc(-1 * var(--space-3));
  padding: var(--space-5) var(--space-3);
  border-block-start: var(--hairline) solid var(--border-strong);
}
html.is-large-text .cmp tbody tr:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}
html.is-large-text .cmp tbody th {
  inline-size: auto;
  padding: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-md);
}
html.is-large-text .cmp tbody th:first-child {
  padding-inline-start: 0;
}
html.is-large-text .cmp tbody td {
  padding: var(--space-3) 0 0;
}
html.is-large-text .cmp tbody td:first-child {
  padding-inline-start: 0;
}
html.is-large-text .cmp tbody td:last-child {
  padding-inline-end: 0;
}
html.is-large-text tr.cmp-us {
  border-block-end: var(--edge-strong) solid var(--fg);
}
html.is-large-text .cmp-col {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
}
html.is-large-text .cmp-us .cmp-col {
  color: var(--brand);
}
/* The dashboard's rows put the state under the topic rather than beside it,
   because "Multiplying through by the LCD" and "Getting there" cannot share
   280px of paper at 34px type. */
html.is-large-text .dash-topics > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-1);
  justify-items: start;
}
html.is-large-text .dash-t {
  overflow-wrap: anywhere;
}
/* .dash clips to its own rounded corner, so a 200px nowrap state word inside
   a 190px card was not a wrap, it was a clip. Measured at 320 and 200%. */
html.is-large-text .dash-topics .status {
  white-space: normal;
  overflow-wrap: anywhere;
  max-inline-size: 100%;
}
/* Three of the eight questions pushed their chevron past the screen at 320
   and 200%: a long single word cannot shrink, and the gap and the glyph have
   to come out of the same line. */
html.is-large-text .faq summary {
  gap: var(--space-2);
}
/* R13. At 200% root text a 12-column grid is twelve columns of nothing, so
   the whole lower half stands down to the single column r12 draws. There is
   nothing to undo here: EVERY rule in the 900 block is written
   `:where(html:not(.is-large-text)) ...`, so none of it fires at 200% and
   what is left is the base -- .g12 display: contents, .coop-panel
   display: none. `:where()` carries no specificity, so the ladder inside
   that block is exactly what it reads as.
   ‼ Reverting only `.g12 { display: contents }` was NOT enough, and that is
   the bug this replaces: at 200% on a 1440 frame the CONTAINER is still
   1440, so every one of the twenty-odd descendant rules in that block kept
   firing on a wrapper that no longer laid anything out -- the quote losing
   its brand edge, the homeschool aside drawing itself as a panel, .cmp and
   .ticks losing their max-width, the Questions heading going sticky.
   The quote band's tint goes with the grid: r12 had none either, so nothing
   is lost that was there. The form section needs no reorder at any width --
   its DOM order IS the phone's order. */
html.is-large-text .faq summary > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   16. PRINT. A landing page is not a print surface and this is not
   handout-r1: what this block does is make the page readable if somebody
   prints it anyway. The paper goes white, the board's own furniture goes, the
   crop is released so nothing is cut off, and the rows that do nothing on
   paper go with it.
   ========================================================================== */
@media print {
  html,
  body {
    background: var(--bg);
  }
  .mkt-nav,
  .mkt-nav-min,
  .foot-links,
  .ts-slot {
    display: none;
  }
  .h1,
  .h2,
  .h3 {
    break-after: avoid;
  }
  .steps-list > li,
  .proofs > li,
  .cmp tbody tr,
  .faq details {
    break-inside: avoid;
  }
  .faq details {
    border-bottom: var(--hairline) solid var(--border-strong);
  }
}

/* ==========================================================================
   COURSES (P25 landing-r15; Jeff 11-23): the courses in 17's order, names
   only, with "Coming" on the two not yet built. List items, not links.
   ========================================================================== */
.ladder {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: var(--hairline) solid var(--border);
}
.ladder-r {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
  border-block-end: var(--hairline) solid var(--border);
}
.ladder-c {
  font-weight: var(--weight-announce);
}
/* Jeff 11-23: Geometry and Calculus 2 read "Coming" in the muted ink (6.2:1 on the page). The word
   carries the meaning, never the grey alone. */
.ladder-r--soon .ladder-c,
.ladder-soon {
  color: var(--muted);
}
/* The second I'm interested, at the end of Parents: the hero's button, word for word. */
.parents-act {
  margin-top: var(--space-7);
}

/* ==========================================================================
   FILMS (P25 step 2; r14's facade): a 16:9 stage with the poster and one
   play button over it, and the length in a chip. The disc keeps r14's
   two-tone ring (an ink edge on a canvas disc), so it reads on the co-ops
   film's near-white poster.
   ========================================================================== */
/* The tabs, their rule and the film share one measure, so the rule ends where the film does. */
.films {
  display: grid;
  gap: var(--space-4);
  max-inline-size: var(--measure-faq);
}
/* The film tabs are components.css's .tab rank, on one rule. */
.film-tabs {
  display: flex;
  flex-wrap: wrap;
  border-block-end: var(--hairline) solid var(--border);
}
.film-tab {
  font: inherit;
  cursor: pointer;
}
.film {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.film-title {
  margin-block-end: var(--space-3);
}
.film-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: var(--hairline) solid var(--border-strong);
  background: var(--surface-sunk);
}
.film-poster,
.film-player {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  background: var(--surface-sunk);
}
.film-play {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
}
.film-stage:has(.film-play:focus-visible) {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: var(--edge);
}
.film-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  block-size: min(4.5rem, 45%);
  aspect-ratio: 1;
  border: var(--edge) solid var(--fg);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--brand);
}
.film-disc svg {
  inline-size: 38%;
  block-size: 38%;
  margin-inline-start: 0.12em;
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .film-disc {
    transition: transform var(--dur-enter) var(--ease-out);
  }
  .film-play:hover .film-disc {
    transform: scale(1.06);
  }
}
.film-chip {
  position: absolute;
  inset-block-end: var(--space-2);
  inset-inline-end: var(--space-2);
  margin: 0;
  padding: var(--space-1) var(--space-2);
  border: var(--hairline) solid var(--fg);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--fg);
  font-size: var(--text-sm);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
}

/* ==========================================================================
   ONE WEEK STRUCTURE (UI 2): the chapters' layout and the pieces the look layer
   below doesn't name yet: two columns from 900px, problem 12's three states,
   a chapter's film card and the founder's band. Layout and legibility only;
   UI 4's look styles them (Landing BUILD-HANDOFF; the P25 fold wins).
   ========================================================================== */
.mkt-stack > * + * {
  margin-block-start: var(--space-4);
}
.mkt-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
@container page (min-width: 900px) {
  /* Two columns only when both are there: a film not yet in leaves the words alone. */
  /* The mock's .two: 5fr | 6fr, centred, a --space-7 gutter; the closing's top-aligned. */
  .mkt-two:has(> :nth-child(2)) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    column-gap: var(--space-7);
  }
  #join .mkt-two:has(> :nth-child(2)) {
    align-items: start;
  }
  .mkt-two--flip > :first-child {
    order: 2;
  }
}
/* In a chapter's half column, V20's hooks stack (their four-across grid was for the full width). */
.mkt-two > .hooks {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
/* The stamp as a chapter's own heading (Why I built it, Questions): stamp-sized, in the UI face. */
h2.mkt-stamp {
  font-family: var(--font-ui);
  letter-spacing: 0;
  line-height: var(--lh-snug);
}
/* --- Problem 12, three states: a caption over each card, side by side from 900px --- */
.mkt-lift {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
@container page (min-width: 900px) {
  .mkt-lift {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}
.mkt-lift > li {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-3);
}
.mkt-lift-cap > * + * {
  margin-block-start: var(--space-2);
}
.mkt-lift-n {
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-announce);
}
/* The cards draw the app on paper, so they read the same on any ground. */
.mkt-card {
  --focus: var(--brand);
  padding: var(--space-4);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--fg);
}
.mkt-card p {
  margin: 0;
}
.mkt-card > div > * + * {
  margin-block-start: var(--space-3);
}
.mkt-card-k {
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: var(--weight-announce);
}
.mkt-card-k span {
  font-weight: var(--weight-read);
}
.mkt-m {
  font-family: var(--font-math);
}
.mkt-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  line-height: 1.15;
}
.mkt-frac > span + span {
  border-block-start: 1px solid currentColor;
  padding-inline: 0.2em;
}
.mkt-ws-pick {
  padding: var(--space-2);
  border-radius: var(--radius-control);
  box-shadow: 0 0 0 2px var(--brand);
}
.mkt-ws-row:not(.mkt-ws-pick) {
  color: var(--muted);
}
.mkt-ws-no {
  font-family: var(--font-ui);
  font-weight: var(--weight-announce);
}
.mkt-pp {
  text-align: center;
}
.mkt-pp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mkt-pp-steps > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-2);
  padding-block: var(--space-2);
  border-block-start: var(--hairline) solid var(--border);
}
.mkt-pp-steps .ico {
  inline-size: 1rem;
  block-size: 1rem;
  fill: var(--brand);
}
.mkt-pp-steps .mkt-m {
  grid-column: 1 / -1;
}
.mkt-pp-do {
  color: var(--muted);
  font-size: var(--type-meta);
}
.mkt-pp-dock,
.mkt-ans {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.mkt-pp-ask,
.mkt-pp-spot,
.mkt-ans-box,
.mkt-ans-ck {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-control);
  box-shadow: 0 0 0 var(--hairline) var(--border);
  font-size: var(--type-meta);
}
.mkt-ans-box {
  flex: 1;
}
/* The drawn Check (handoff; Tess's P25 fold): --accent, as .btn-primary wears it. Drawn, not a control. */
.mkt-ans-ck {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 calc(-1 * var(--edge)) 0 var(--accent-edge);
  font-weight: var(--weight-ui);
}
@media (forced-colors: active) {
  .mkt-ans-ck {
    border: var(--hairline) solid CanvasText;
  }
}
.mkt-never {
  margin-block-start: var(--space-2);
  color: var(--muted);
  font-size: var(--type-meta);
}
/* --- A chapter's film card: V20's facade (.film), its caption under it --- */
.mkt-film {
  margin: 0;
}
.mkt-film-cap {
  margin-block-start: var(--space-2);
  font-size: var(--type-meta);
}
.mkt-film-cap span {
  display: block;
}
.mkt-night .mkt-film-cap span,
.mkt-dusk .mkt-film-cap span {
  color: var(--night-muted);
}
/* The comparison table scrolls inside its own box on a phone, never the page. */
.mkt-cmp-wrap {
  overflow-x: auto;
}
.mkt-test-fig {
  margin: 0;
}
.mkt-test-fig img {
  display: block;
  inline-size: 100%;
  max-inline-size: 26rem;
  block-size: auto;
  margin-inline: auto;
}

/* ==========================================================================
   ONE WEEK (Landing r15, Jeff approved 11-23; UI 4's look layer)
   The look for the one-week spine, built from Landing's mock and BUILD-HANDOFF
   until Tess's P25 fold lands (the fold wins). Markup and order are UI 2's; these
   classes are new names beside V20's (.films, .film, .ladder), so neither lane's
   change waits on the other. App tokens only; radii per Tess's G1 scan (11-23):
   cards and panels --radius-card, small tags --radius-control, pills only for dots.
   ========================================================================== */

/* --- Grounds: flat token fills, by the hour ------------------------------- */
/* Night (--fg) and forest (--brand) carry --bg text (15.7:1, 7.4:1) and
   --night-muted secondary text (10.2:1, 4.8:1). The brand focus ring vanishes on
   both (2.1:1, 1:1), so the ring turns --bg there; a paper card inside a night
   ground gets its own ring back. G7 (Tess, 11-23): the same ring, its colour
   follows the ground. */
.mkt-night,
.mkt-dusk {
  --focus: var(--bg);
  color: var(--bg);
}
.mkt-night {
  background: var(--fg);
}
.mkt-dusk {
  background: var(--brand);
}
.mkt-day {
  background: var(--bg);
}
.mkt-paper2 {
  background: var(--surface);
}
.mkt-wash {
  background: var(--brand-wash);
}
.mkt-night :is(h1, h2, h3),
.mkt-dusk :is(h1, h2, h3) {
  color: inherit;
}
.mkt-night .mkt-muted,
.mkt-dusk .mkt-muted,
.mkt-night .form-fine,
.mkt-dusk .form-fine {
  color: var(--night-muted);
}
.mkt-night a:not([class*="btn"]),
.mkt-dusk a:not([class*="btn"]),
.mkt-night .link-btn,
.mkt-dusk .link-btn {
  color: var(--bg);
}

/* --- The clock: a stamp per chapter, one rule down the rail from 900px ---- */
.mkt-stamp {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--brand);
  font-size: var(--type-meta);
  font-weight: var(--weight-announce);
  font-variant-numeric: tabular-nums;
}
.mkt-stamp::before {
  content: "";
  flex: none;
  inline-size: 10px;
  block-size: 10px;
  border-radius: var(--radius-pill);
  background: currentColor;
}
.mkt-night .mkt-stamp,
.mkt-dusk .mkt-stamp {
  color: var(--bg);
}
.mkt-chap > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}
@container page (min-width: 900px) {
  .mkt-chap > .wrap {
    position: relative;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: var(--space-6);
    /* The stamp column spans spare rows, so the rhythm is margins, not a row gap
       (a gap would open under every empty row). */
    row-gap: 0;
  }
  .mkt-chap > .wrap > :not(.mkt-stamp-col) {
    grid-column: 2;
  }
  .mkt-chap > .wrap > :not(.mkt-stamp-col) ~ :not(.mkt-stamp-col) {
    margin-block-start: var(--space-5);
  }
  .mkt-stamp-col {
    grid-column: 1;
    grid-row: 1 / span 20;
  }
  /* Below the sticky top bar (a 48px row plus its padding). */
  .mkt-stamp-col .mkt-stamp {
    position: sticky;
    inset-block-start: calc(var(--tap) + var(--space-6));
  }
  /* The rule runs the section's full height, through its padding, on the dot's centre. */
  .mkt-chap > .wrap::before {
    content: "";
    position: absolute;
    inset-block: calc(-1 * var(--rhythm));
    inset-inline-start: calc(var(--gutter) + 4px);
    inline-size: 2px;
    background: var(--border);
  }
  .mkt-night.mkt-chap > .wrap::before {
    background: var(--night-rule);
  }
  /* On forest: a quieter green than the ground (Tess, 11-23). */
  .mkt-dusk.mkt-chap > .wrap::before {
    background: var(--forest-rule);
  }
}

/* --- The three-film strip under the hero (night) ------------------------- */
.mkt-reel {
  margin-block-start: var(--space-6);
  padding-block: var(--space-5) var(--space-6);
  border-block-start: var(--hairline) solid var(--night-rule);
}
.mkt-reel h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--type-body);
  font-weight: var(--weight-announce);
  letter-spacing: 0;
}
.mkt-reel ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mkt-reel a {
  display: block;
  color: var(--bg);
  font-size: var(--type-meta);
  text-decoration: none;
}
.mkt-reel-th {
  position: relative;
  display: block;
  margin-block-end: var(--space-2);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--brand);
}
.mkt-reel-th img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.mkt-reel-len {
  position: absolute;
  inset-inline-end: var(--space-2);
  inset-block-end: var(--space-2);
  padding: 0 var(--space-2);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--fg);
  font-size: var(--type-meta);
  font-style: normal;
  font-weight: var(--weight-announce);
  font-variant-numeric: tabular-nums;
}
.mkt-reel b {
  display: block;
  font-weight: var(--weight-announce);
}
.mkt-reel-sub {
  color: var(--night-muted);
}
@container page (max-width: 420px) {
  .mkt-reel ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .mkt-reel a {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: var(--space-3);
    align-items: center;
  }
  .mkt-reel-th {
    margin: 0;
  }
}

/* --- The gym spotter scene (Every time) ----------------------------------
   The co-op film's S4Gym frame at lockout, cropped x 20-1740, y 190-1080; the
   layer boxes are the handoff's, in percent of the crop. The fingertips stay
   under the plate and never touch it. */
.mkt-gym-fig {
  inline-size: 100%;
  max-inline-size: 36rem;
  margin: 0 auto;
}
.mkt-gym {
  position: relative;
  aspect-ratio: 1720 / 890;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
}
.mkt-gym-floor {
  position: absolute;
  inset: 91% 0 0;
  border-block-start: 3px solid var(--border);
  background: var(--surface-sunk);
}
.mkt-gym img {
  position: absolute;
  max-inline-size: none;
}
.mkt-gym-coach {
  inset-inline-start: 56.06%;
  inset-block-start: 3.67%;
  inline-size: 42.56%;
  block-size: 126.6%;
}
.mkt-gym-lifter {
  inset-inline-start: 1.16%;
  inset-block-start: 20.89%;
  inline-size: 72.67%;
  block-size: 80.24%;
}
.mkt-gym-fig figcaption {
  margin-block-start: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-md);
  text-align: center;
}

/* --- The week strip and the Homework bracket (Thursday, on --brand-wash) -- */
.mkt-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-2) 6px;
  max-inline-size: 40rem;
}
.mkt-week-d {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-block-size: 76px;
  padding: var(--space-2) var(--space-1) var(--space-3);
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: 0 0 0 var(--hairline) var(--border);
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: var(--weight-announce);
  text-align: center;
}
.mkt-week-d.is-class {
  background: var(--brand);
  box-shadow: none;
  color: var(--bg);
}
/* The bracket under Fri to Wed: its end ticks rise toward those six days. */
.mkt-week-brace {
  grid-column: 2 / -1;
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: var(--lh-tight);
  text-align: center;
}
.mkt-week-brace::before {
  content: "";
  block-size: 14px;
  border: 2px solid var(--brand);
  border-block-start: 0;
  border-radius: 0 0 var(--radius-control) var(--radius-control);
}

/* --- The parent's week on the dashboard (Their week) ---------------------
   Practiced days are filled --brand (7.4:1 on the card); the others keep a
   --border-strong outline (3.5:1), so a day reads as on or off by shape, not
   by a tint alone. */
.mkt-dash {
  max-inline-size: 28rem;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: 0 0 0 var(--hairline) var(--border);
}
.mkt-dash-wk {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4) 0;
}
.mkt-dash-wk span {
  color: var(--muted);
  font-size: var(--type-meta);
  text-align: center;
}
.mkt-dash-wk i {
  display: block;
  block-size: 24px;
  margin-block-start: 2px;
  border-radius: var(--radius-control);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-strong);
}
.mkt-dash-wk i.is-on {
  background: var(--brand);
  box-shadow: none;
}

/* --- The course rack (Test day): plates rising, Coming as outlined plates - */
.mkt-rack {
  display: grid;
  gap: 6px;
  max-inline-size: 34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mkt-rack li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.mkt-rack-plate {
  display: flex;
  align-items: center;
  min-block-size: 40px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--bg);
  font-size: var(--type-meta);
  font-weight: var(--weight-announce);
  white-space: nowrap;
}
.mkt-rack .is-soon .mkt-rack-plate {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--border-strong);
  color: var(--fg);
}
.mkt-rack em {
  color: var(--muted);
  font-size: var(--type-meta);
  font-style: normal;
}
.mkt-rack li:nth-child(1) .mkt-rack-plate {
  inline-size: 44%;
}
.mkt-rack li:nth-child(2) .mkt-rack-plate {
  inline-size: 52%;
}
.mkt-rack li:nth-child(3) .mkt-rack-plate {
  inline-size: 60%;
}
.mkt-rack li:nth-child(4) .mkt-rack-plate {
  inline-size: 68%;
}
.mkt-rack li:nth-child(5) .mkt-rack-plate {
  inline-size: 76%;
}
.mkt-rack li:nth-child(6) .mkt-rack-plate {
  inline-size: 84%;
}
.mkt-rack li:nth-child(7) .mkt-rack-plate {
  inline-size: 92%;
}

/* --- The form card in the closing night scene ----------------------------
   V20's form and its app components unchanged; only the paper card around it,
   which takes the light ground's ink and focus ring back. */
.mkt-formcard {
  --focus: var(--brand);
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--fg);
}
.mkt-formcard .form-fine {
  color: var(--muted);
}
.mkt-night .mkt-formcard a:not([class*="btn"]),
.mkt-dusk .mkt-formcard a:not([class*="btn"]) {
  color: var(--brand);
}

/* --- The kitchen-table scene (hero, 9:02 pm, night) ----------------------
   Grace under a drawn lamp, the title card, and V20's own hero loop (.hero-loop,
   its pause button and caption unchanged) standing in as the phone on the table.
   The art and the loop share one grid cell; the loop sits bottom right with its
   caption under it. The lamp is a flat inline SVG coloured from tokens (no glow). */
.mkt-scene {
  display: grid;
  margin-inline: calc(-1 * var(--gutter));
}
.mkt-scene > * {
  grid-area: 1 / 1;
}
.mkt-scene-art {
  position: relative;
  aspect-ratio: 4 / 3.3;
}
.mkt-scene-who {
  position: absolute;
  inset-inline-start: -4%;
  inset-block-end: 0;
  inline-size: 66%;
  block-size: auto;
}
.mkt-scene .mkt-lamp {
  position: absolute;
  inset-inline-start: 30%;
  inset-block-start: 0;
  inline-size: 34%;
  block-size: auto;
}
.mkt-scene .hero-loop {
  align-self: end;
  justify-self: end;
  inline-size: 46%;
  max-inline-size: none;
  margin-inline-end: 5%;
}
.mkt-scene .loop-frame {
  box-shadow: 0 0 0 var(--hairline) var(--night-rule);
}
.mkt-night .loop-cap {
  color: var(--night-muted);
}
.mkt-title-card {
  position: absolute;
  inset-block-start: var(--space-4);
  inset-inline-end: var(--gutter);
  max-inline-size: 8.5em;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: var(--lh-snug);
  text-align: end;
}
.mkt-title-card-t {
  display: block;
  color: var(--night-muted);
  font-family: var(--font-ui);
  font-size: var(--type-meta);
  font-weight: var(--weight-announce);
}
@container page (min-width: 900px) {
  .mkt-scene {
    margin: 0;
  }
  .mkt-scene-art {
    aspect-ratio: 6 / 5.4;
  }
  .mkt-title-card {
    inset-inline: var(--gutter) auto;
    /* Short of the lamp's cord (~49% across): two lines at 900, one at 1280. */
    max-inline-size: calc(46% - var(--gutter));
    text-align: start;
  }
}
/* The lamp: cord, shade and a faint flat pool of light, all tokens. */
.mkt-lamp-cord {
  stroke: var(--muted);
  stroke-width: 3;
}
.mkt-lamp-shade {
  fill: var(--brand-wash);
}
.mkt-lamp-pool {
  fill: var(--bg);
  opacity: 0.07;
}
/* V20's hero words on the night ground. */
.mkt-night .hero-sub,
.mkt-night .hero-lead,
.mkt-night .hero-beta {
  color: var(--night-muted);
}
/* Stacked, the scene keeps the mock's --space-6 from the beta line (its lamp cord touched it). */
.hero.mkt-night .mkt-scene {
  margin-block-start: var(--space-6);
}
/* From 900: copy beside the scene, 5fr | 6fr (the mock's .hero .wrap). The copy has no wrapper,
   so a leading 1fr row takes the slack and the five lines sit at the bottom, as align-items:end
   does in the mock; the scene spans those rows and the films reel runs full width under both
   (the mock leaves it to auto-placement, under the copy). Stacked, the scene ran ~1000px tall at 1280. */
/* The caption under the loop, never under the art: the figure is a subgrid of the scene, its frame
   in the art's row (bottom-aligned on the table) and its caption in a row of its own below. */
.mkt-scene {
  grid-template-rows: auto auto;
}
.mkt-scene > .mkt-scene-art {
  grid-area: 1 / 1;
}
.mkt-scene > .hero-loop {
  grid-area: 1 / 1 / span 2;
  display: grid;
  grid-template-rows: subgrid;
}
.mkt-scene .loop-frame {
  align-self: end;
}
@container page (min-width: 900px) {
  .hero.mkt-night > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: 1fr repeat(5, auto) auto;
    column-gap: var(--space-7);
  }
  .hero.mkt-night > .wrap > .mkt-reel {
    grid-column: 1 / -1;
    grid-row: 7;
  }
  .hero.mkt-night > .wrap > :not(.mkt-scene, .mkt-reel) {
    grid-column: 1;
  }
  .hero.mkt-night > .wrap > .h1 {
    grid-row: 2;
  }
  .hero.mkt-night > .wrap > .hero-sub {
    grid-row: 3;
  }
  .hero.mkt-night > .wrap > .hero-lead {
    grid-row: 4;
  }
  .hero.mkt-night > .wrap > .hero-act {
    grid-row: 5;
  }
  .hero.mkt-night > .wrap > .hero-beta {
    grid-row: 6;
    margin-block-end: var(--space-8);
  }
  .hero.mkt-night .mkt-scene {
    grid-column: 2;
    grid-row: 1 / 7;
    align-self: end;
  }
}

/* --- The closing scene (One night, later): the same table, roles reversed - */
.mkt-close-scene {
  position: relative;
  aspect-ratio: 16 / 10;
  max-inline-size: 40rem;
}
.mkt-close-scene .mkt-lamp {
  position: absolute;
  inset-inline-start: 36%;
  inset-block-start: 0;
  inline-size: 28%;
  block-size: auto;
}
.mkt-close-a1,
.mkt-close-a2 {
  position: absolute;
  inset-block-end: 0;
  inline-size: 52%;
  block-size: auto;
}
.mkt-close-a1 {
  inset-inline-start: 0;
}
.mkt-close-a2 {
  inset-inline-end: 0;
}

/* --- Why I built it: the founder quote at full size, its own band (P25 row 5) --- */
.mkt-founder {
  border-block-start: var(--hairline) solid var(--border);
}
.mkt-founder .quote {
  padding-inline-start: 0;
  border-inline-start: 0;
  max-width: none;
}
/* 20 → 36: the mock's clamp(1.25rem, 4.6cqi, 2.25rem). */
.mkt-founder .quote-p {
  font-size: clamp(var(--text-md), 4.6cqi, 2.25rem);
  line-height: var(--lh-snug);
  max-width: 44ch;
}
.mkt-founder .quote-c {
  margin-block-start: var(--space-4);
  font-size: var(--text-base);
  color: var(--fg);
}
/* Tracking from 25px up only (G1, V16): 4.6cqi reaches 25px at 544px. */
@container page (min-width: 544px) {
  .mkt-founder .quote-p {
    letter-spacing: var(--track-head);
  }
}
@container page (min-width: 900px) {
  .mkt-founder.mkt-chap > .wrap > .hero-act {
    margin-block-start: var(--space-6);
  }
}

/* --- The footer on night, continuing the closing scene ------------------- */
.site-foot.mkt-night {
  border-block-start: var(--hairline) solid var(--night-rule);
  color: var(--night-muted);
}
.site-foot.mkt-night .foot-made {
  color: var(--night-muted);
}
/* On night the footer's <img> serves /repwise-learning-horizontal-paper.svg (--bg fills, 15.7:1
   on --fg; same 303x31 box as the forest lockup), never the forest one (2.1:1). */
