/* teach2xl.com: identity 2 "Graph" (brand/README.md). Light only, on paper.
   2026-10-17 (docs/research/landing-page-2026-10-16.md, round 2): one type scale, one section rhythm, every screenshot framed.
   2026-10-18 (Omar's and his mum's notes): full width like Lessonspace, a navy hero panel with the product large inside it,
   fluid sizes from 320 px phones to 1920 px screens, bigger screenshots (cropped on phones rather than shrunk). */
:root {
  --navy: #1D2B4A;
  --navy-2: #2A3D66;         /* hover on navy */
  --navy-3: #16223B;         /* the hero panel's lower edge */
  --blue: #3D5A99;           /* 6.9:1 on paper */
  --grid: #9FB3D9;
  --hi: #F2C14E;
  --hi-2: #F6CF6E;           /* hover on highlighter */
  --paper: #FBFAF7;
  --ink: #111827;
  --muted: #4B5563;          /* 7.2:1 on paper */
  --line: rgba(29, 43, 74, 0.13);
  --line-strong: rgba(29, 43, 74, 0.22);
  --card: #FFFFFF;
  --tint: #EEF2F8;           /* blue-tinted paper behind screenshots */
  --warm: #F4F2EC;
  --on-navy: #FBFAF7;
  --on-navy-muted: #C3CEE3;  /* 9.4:1 on navy */
  --error: #B42318;          /* 6.1:1 on white */
  --focus: #3D5A99;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 24px 48px -28px rgba(29, 43, 74, 0.38);
  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
  --head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Fluid rhythm: 72px on a phone, 136px on a large screen */
  --section: clamp(72px, 40px + 5vw, 136px);
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(28px, 12px + 3.6vw, 88px);
  --logo: 52px;              /* the header logo and the header button share this height (Omar, 2026-10-18) */
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 clamp(1.0625rem, 1rem + 0.15vw, 1.125rem)/1.6 var(--text); -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; width: 100%; }
em, i, cite, address, dfn { font-style: normal; } /* the brand has no italics */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--navy); line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.2rem + 5vw, 5.75rem); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; }
h2 { font-size: clamp(2rem, 1.35rem + 2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
/* Wider than before (1200 → 1440): the page read as "smushed in" on a laptop. */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header: solid paper, a hairline under it; section links on wide screens only */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: calc(var(--logo) + 24px); gap: 12px; }
.brand { display: block; border-radius: 6px; flex: none; }
.top .brand img { height: var(--logo); width: auto; }
.sections { display: none; }
@media (min-width: 1360px) {
  .sections { display: flex; gap: 2px; margin-left: auto; padding-right: 12px; margin-right: 4px; border-right: 1px solid var(--line); }
  .sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
  .sections a:hover { color: var(--navy); background: rgba(29, 43, 74, 0.06); }
}
/* Eight menu links: keep the desktop header inside its gutters at the breakpoint. */
@media (min-width: 1360px) and (max-width: 1439px) { .sections a { padding-inline: 3px; } }
@media (min-width: 1440px) and (max-width: 1599px) { .sections a { padding-inline: 7px; } }
.top-nav { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
/* Below 1360px the section links don't fit beside the buttons: they become a row of tabs under the header that
   scrolls sideways on its own (Omar's mum, 2026-10-18: "tabs at the top"; fit checked 320–1920, tools fit.mjs). */
.tabs-row { border-bottom: 1px solid var(--line); background: var(--paper); }
.tabs-row .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; scroll-padding-inline: var(--gutter); }
.tabs-row .wrap::-webkit-scrollbar { display: none; }
.tabs-row a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.tabs-row a:first-child { margin-left: -14px; }
@media (hover: hover) { .tabs-row a:hover { color: var(--navy); background: rgba(29, 43, 74, 0.06); } }
.tabs-row a[aria-current="page"], .sections a[aria-current="page"] { color: var(--navy); background: rgba(242, 193, 78, 0.28); }
@media (max-width: 760px) { .tabs-row .wrap { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); } }
@media (min-width: 1360px) { .tabs-row { display: none; } }
/* The app is at app.teach2xl.com; students arriving here need "Join a lesson", tutors "Sign in". */
.top-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .top-link:hover { background: rgba(29, 43, 74, 0.06); color: var(--navy); } }
.top .btn-top { min-height: 0; height: var(--logo); padding: 0 20px; font-size: 1rem; white-space: nowrap; }
.btn-top .short { display: none; }
@media (max-width: 800px) { .top-join { display: none; } }
@media (max-width: 640px) { .btn-top .long { display: none; } .btn-top .short { display: inline; } }
@media (max-width: 560px) { :root { --logo: 44px; } .top-signin { display: none; } .top .btn-top { padding: 0 14px; font-size: 0.95rem; } }
@media (max-width: 420px) { .top-row { gap: 8px; } .top .btn-top { padding: 0 12px; } }
@media (max-width: 389px) { :root { --logo: 40px; } .top .btn-top { font-size: 0.9rem; } }
@media (max-width: 370px) { :root { --logo: 36px; } .top .btn-top { padding: 0 10px; font-size: 0.875rem; } }
@media (max-width: 350px) { :root { --gutter: 12px; } .top .btn-top { padding: 0 9px; font-size: 0.8125rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--navy); color: var(--paper); font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: background-color 150ms var(--ease-out), transform 120ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .btn:hover { background: var(--navy-2); color: var(--paper); } }
.btn:active { transform: translateY(1px) scale(0.99); }
/* On the navy hero: the highlighter button (brand: highlighter for buttons, never as text on white) */
.btn-hi { background: var(--hi); color: var(--navy); min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
@media (hover: hover) { .btn-hi:hover { background: var(--hi-2); color: var(--navy); } }
/* Try the demo: the board in the browser, no account (2026-10-18). Secondary to joining: outlined on the navy hero. */
.btn-demo { min-height: 56px; padding: 0 28px; background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); font-size: 1.0625rem; }
@media (hover: hover) { .btn-demo:hover { background: rgba(255, 255, 255, 0.1); color: #fff; } }
.btn-wide { width: 100%; }
.btn[aria-busy="true"] { cursor: progress; background: var(--navy-2); }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.text-link.arrow::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform 150ms var(--ease-out); }
@media (hover: hover) { .text-link.arrow:hover::after { transform: translateX(3px) rotate(45deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Graph paper, as in the mark */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(159, 179, 217, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 179, 217, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

/* Section rhythm and labels */
.section { padding: var(--section) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 20px + 3vw, 72px); }
.section-head h2 { margin-bottom: 0; }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 0.8125rem/1.2 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px; }
.kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 1px rgba(29, 43, 74, 0.18); }
.label { font: 600 0.9rem/1.3 var(--text); color: var(--blue); margin: 0 0 10px; }
.muted { color: var(--muted); }

/* ---------- Hero: a full-width navy panel (inset a little from the window), the product large inside it ---------- */
.hero { --overlap: clamp(40px, 10vw, 180px); padding: clamp(8px, 1vw, 16px) clamp(8px, 1vw, 16px) 0; }
.hero-panel {
  position: relative; display: flow-root; border-radius: clamp(20px, 2.4vw, 40px); color: var(--on-navy);
  padding-top: clamp(48px, 24px + 6vw, 128px); margin-bottom: var(--overlap);
  background-color: var(--navy);
  background-image:
    linear-gradient(to right, rgba(159, 179, 217, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 179, 217, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, var(--navy), var(--navy-3));
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 0.4em; margin: 0 0 clamp(20px, 2vw, 28px); padding: 6px 14px; border: 1px solid rgba(159, 179, 217, 0.32); border-radius: 999px; background: rgba(251, 250, 247, 0.04); color: var(--on-navy-muted); font: 600 0.875rem/1.45 var(--text); }
.tagline { margin: 0 0 clamp(14px, 1.4vw, 22px); font: 500 clamp(1.2rem, 1rem + 0.9vw, 1.75rem)/1.3 var(--head); letter-spacing: -0.015em; color: var(--on-navy); }
/* "excel.": a straight highlighter underline with rounded ends (Omar, 2026-10-18), not a box */
.ul { position: relative; display: inline-block; white-space: nowrap; }
.ul::after { content: ""; position: absolute; left: -0.04em; right: -0.02em; bottom: -0.1em; height: 0.17em; min-height: 3px; border-radius: 999px; background: var(--hi); }
.hero h1 { color: var(--on-navy); margin: 0 auto 0.28em; max-width: 13ch; }
.lead { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.5rem); line-height: 1.5; color: var(--on-navy-muted); max-width: 32em; margin: 0; text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin: clamp(28px, 2.4vw, 40px) 0 clamp(18px, 1.6vw, 24px); }
.avail { max-width: 52em; color: var(--on-navy-muted); font-size: 0.95rem; }
.avail p { text-wrap: wrap; }
.avail p { margin: 0; }
.avail p + p { margin-top: 4px; }
.hero .btn-hi:focus-visible, .hero a:focus-visible { outline-color: var(--hi); }
.hero-shot { margin: clamp(40px, 4vw, 80px) auto calc(-1 * var(--overlap)); max-width: 1280px; }
.device { position: relative; padding: clamp(7px, 1.1vw, 16px); background: #151A24; border-radius: clamp(18px, 2.2vw, 36px); box-shadow: 0 0 0 1px rgba(159, 179, 217, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 4px rgba(17, 24, 39, 0.1), 0 48px 96px -40px rgba(10, 16, 30, 0.75); }
.device img { width: 100%; border-radius: clamp(10px, 1.1vw, 20px); background: var(--navy); }
.hero-caption { margin: 18px auto 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
/* Phones: left-aligned copy, a full-width button, and the hero picture is the phone screen itself (a crop, not a shrink) */
@media (max-width: 600px) {
  .hero-copy { align-items: flex-start; text-align: left; }
  .eyebrow { justify-content: flex-start; }
  .hero h1 { margin-left: 0; }
  .lead { text-wrap: pretty; }
  .cta-row { justify-content: flex-start; width: 100%; }
  .cta-row .btn { width: 100%; }
  .hero-shot { max-width: 420px; }
  .device { border-radius: 28px; padding: 7px; }
  .device img { border-radius: 22px; }
  .hero-caption { text-align: left; }
}

/* Framed screenshots: one radius family, one shadow */
.frame { margin: 0; border-radius: var(--radius-lg); }
.panel { padding: clamp(14px, 4%, 44px); border: 1px solid var(--line);
  background-color: var(--tint);
  background-image:
    linear-gradient(to right, rgba(159, 179, 217, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 179, 217, 0.28) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; }
.panel img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.window { overflow: hidden; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.window img { width: 100%; }
.window-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; background: #F3F4F7; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; flex: none; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #CDD3DE; }
.url { flex: 1; max-width: 260px; margin: 0 auto; padding: 3px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; line-height: 1.4; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .window-bar { height: 30px; } .url { font-size: 0.75rem; } }
/* The folder on a phone: the first two workbooks, big enough to read, rather than all three shrunk */
@media (max-width: 600px) { .crop-left img { aspect-ratio: 1000 / 667; object-fit: cover; object-position: left top; } }
/* A phone screen in a thin dark bezel */
.phone-frame { justify-self: center; width: min(340px, 82%); padding: 8px; background: #151A24; border-radius: 40px; box-shadow: 0 0 0 1px rgba(29, 43, 74, 0.28), 0 2px 4px rgba(17, 24, 39, 0.08), 0 40px 80px -36px rgba(29, 43, 74, 0.55); }
.phone-frame img { width: 100%; border-radius: 32px; }

/* ---------- How it works: three steps, each with a real screenshot (a video goes above them later) ---------- */
.how { border-bottom: 1px solid var(--line); }
.how-video { margin: 0 0 clamp(40px, 5vw, 80px); }
.how-video video { width: 100%; height: auto; display: block; cursor: pointer; border-radius: var(--radius-lg); background: var(--navy); box-shadow: var(--shadow); }
.how-video figcaption { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 5vw, 56px); }
.step { display: grid; gap: 24px; align-content: start; }
.step-shot { margin: 0; padding: clamp(12px, 3.5%, 28px); }
.step-shot img { aspect-ratio: 4 / 3; object-fit: cover; }
.step-text { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.step-text > * { grid-column: 2; }
.step-n { grid-column: 1; grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--paper); font: 700 1.05rem/1 var(--head); }
.step h3 { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); margin: 6px 0 8px; }
.step p { color: var(--muted); margin: 0; max-width: 30em; }
/* Tablet portrait: picture and words side by side, one step per row */
@media (min-width: 640px) and (max-width: 979px) {
  .step { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 32px; align-items: center; }
}
@media (min-width: 980px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 44px); } }

/* ---------- Features ---------- */
.feature { display: grid; gap: clamp(24px, 3vw, 36px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 48px + 4vw, 136px); }
.feature h3 { font-size: clamp(1.6rem, 1.25rem + 1vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 14px; }
.feature-text p { max-width: 32em; }
.feature-text .detail { color: var(--muted); margin-bottom: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); }
  .feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .feature.flip .feature-text { order: 2; }
  /* The groups grid at the full width of the page, the words in a row above it */
  .feature.wide { grid-template-columns: minmax(0, 1fr); }
  .feature.wide .feature-text { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); align-items: end; }
  .feature.wide .feature-text h3 { margin-bottom: 0; }
  .feature.students { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.feature.wide .feature-text p:last-child { margin-bottom: 0; }

/* Privacy and recording: the navy band */
.band { background: var(--navy); color: var(--on-navy); }
.band h2, .band h3 { color: var(--on-navy); }
.band .kicker { color: var(--grid); }
.band .kicker::before { box-shadow: none; }
.band p { color: var(--on-navy-muted); }
.band a { color: var(--paper); text-decoration-color: var(--hi); text-decoration-thickness: 2px; font-weight: 600; }
.band a:hover { color: var(--hi); }
.band :focus-visible { outline-color: var(--hi); }
.band-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .band-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; } }
.band-intro p { font-size: 1.1rem; max-width: 26em; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promises li { padding: 24px 0; border-top: 1px solid rgba(159, 179, 217, 0.3); }
.promises h3 { font-size: 1.15rem; margin-bottom: 6px; }
.promises p { margin: 0; }

/* Who it's for, with the story teaser */
.who { background: var(--warm); border-bottom: 1px solid var(--line); }
.who-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .who-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: center; } }
.lead-sm { font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem); max-width: 30em; }
.story-teaser { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 48px); box-shadow: var(--shadow); }
.quote { margin: 0; }
.quote p { margin: 0; font: 500 clamp(1.35rem, 1.1rem + 1vw, 2rem)/1.3 var(--head); letter-spacing: -0.02em; color: var(--navy); text-wrap: balance; }
.quote-by { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-weight: 600; color: var(--navy); }
.quote-by img { width: 32px; height: 32px; flex: none; }
.teaser-text { margin: 22px 0 4px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); align-items: start; } .faq-head { position: sticky; top: 120px; } }
.faq-head p { margin-top: 16px; }
.faq-list { max-width: 52rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font: 700 1.15rem/1.3 var(--head); color: var(--navy); letter-spacing: -0.01em; border-radius: 6px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: translateY(-3px) rotate(45deg); }
details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
@media (hover: hover) { summary:hover { color: var(--blue); } }
/* Focus on a question: blue and underlined instead of a box (Omar, 2026-10-17: the box "is just wrong"). Safari counts
   a click on a question as keyboard focus, so a box showed on every tap; this still marks keyboard focus clearly. */
summary:focus-visible { outline: none; color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  summary::after { transition: transform 200ms var(--ease-out); }
  details[open] > p { animation: fade-down 220ms var(--ease-out); }
}
details p { padding-bottom: 12px; max-width: 40em; color: var(--ink); }

/* Join */
.join { border-top: 1px solid var(--line); outline: none; }
.join-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .join-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; } }
.join-intro p { font-size: 1.1rem; max-width: 28em; }
.next { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; max-width: 28em; }
.next li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--line); color: var(--muted); }
.next li:last-child { border-bottom: 1px solid var(--line); }
.next li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--navy); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .card { padding: clamp(32px, 3vw, 48px); } }
.form { display: grid; gap: 22px; max-width: 760px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
input[type="email"], input[type="text"] { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 17px/1.3 var(--text); color: var(--ink); background: #fff; border: 1.5px solid #8A94A6; border-radius: 10px; -webkit-appearance: none; appearance: none; transition: border-color 150ms var(--ease-out); }
@media (hover: hover) { input[type="email"]:hover, input[type="text"]:hover { border-color: var(--navy); } }
input[type="email"]:focus-visible, input[type="text"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 400; color: var(--ink); }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #8A94A6; border-radius: 999px; background: #fff; user-select: none; -webkit-user-select: none; transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--paper); font-weight: 600; }
.chip input:checked + span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hi); margin-right: 8px; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .chip input:not(:checked):hover + span { border-color: var(--navy); } }
.error, .form-error { color: var(--error); font-weight: 600; font-size: 0.95rem; margin: 8px 0 0; }
.form-error { background: #FEF3F2; border: 1px solid #FECDCA; border-radius: 10px; padding: 10px 12px; margin: 0; }
.form-foot { display: grid; gap: 12px; }
.fine { color: var(--muted); font-size: 0.9rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Busy button: a spinner only once it's been going a moment (no flash for a fast answer) */
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(251, 250, 247, 0.35); border-top-color: var(--paper); }
.btn[aria-busy="true"] .spinner { display: inline-block; opacity: 0; animation: appear 0s linear 400ms forwards, spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes appear { to { opacity: 1; } }

.done { text-align: left; outline: none; }
.done-mark { margin-bottom: 16px; }
.done h3 { font-size: 1.6rem; }
@media (prefers-reduced-motion: no-preference) { .done:not([hidden]) { animation: rise 320ms var(--ease-out); } }

/* Footer */
.foot { padding: clamp(56px, 4vw + 32px, 88px) 0 32px; border-top: 1px solid var(--line); background: var(--paper); }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.foot-brand .brand { display: inline-block; }
.foot-brand .brand img { height: 36px; width: auto; }
.foot-brand p { margin: 16px 0 0; color: var(--muted); }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 560px) { .foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot-h { font: 700 0.95rem/1.3 var(--head); color: var(--navy); margin: 0 0 8px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; }
.foot-nav a:hover { color: var(--navy); text-decoration: underline; }
.foot-legal { margin-top: 48px; color: var(--muted); font-size: 0.9rem; }
.foot-legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0; }

/* Plain pages: privacy, 404, thanks, the no-JavaScript error page */
.plain-main { max-width: 800px; margin: 0 auto; padding: clamp(56px, 4vw + 32px, 112px) var(--gutter) clamp(80px, 6vw + 40px, 136px); }
.plain-main h1 { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.75rem); max-width: none; }
.plain-main h2 { font-size: 1.5rem; margin-top: 1.8em; }
.plain-main ul { padding-left: 1.2em; margin: 0 0 1em; }
.plain-main li { margin-bottom: 0.4em; }
.plain-main .kicker { margin-bottom: 20px; }
.big404 { font: 700 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--head); color: var(--navy); letter-spacing: -0.05em; margin: 0 0 8px; }
.big404::after { content: ""; display: inline-block; width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--hi); margin-left: 0.05em; vertical-align: 0.6em; }
.plain-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 28px; }
.updated { color: var(--muted); font-size: 0.95rem; }
.done-big { margin-bottom: 24px; }

/* Our story: a comfortable measure, the quote set large */
.story-head { padding: clamp(56px, 5vw + 24px, 128px) 0 clamp(40px, 3vw + 24px, 72px); border-bottom: 1px solid var(--line); }
.story-head .wrap, .story-body { max-width: calc(65ch + 2 * var(--gutter)); }
.story-head h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); max-width: 12ch; margin-bottom: 0; }
.story-body { margin: 0 auto; padding: clamp(40px, 3vw + 24px, 80px) var(--gutter) var(--section); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.7; }
.story-body > p { margin: 0 0 1.25em; }
.story-body > p:first-child { font-size: 1.2em; line-height: 1.55; }
.pull { margin: clamp(40px, 4vw, 64px) 0; padding: clamp(28px, 3vw, 44px) 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); }
.pull .quote p { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.22; }
@media (min-width: 1100px) { .pull { margin-left: -6ch; margin-right: -6ch; } }
.story-end { margin-top: clamp(40px, 4vw, 64px); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy); }
.story-end h2 { color: var(--on-navy); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 8px; }
.story-end p { color: var(--on-navy-muted); margin: 0 0 20px; }
.story-end .btn:focus-visible { outline-color: var(--hi); }

/* Motion: the hero settles in once, ease-out; nothing else moves on its own */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 640ms var(--ease-out) both; }
  .rise-2 { animation-delay: 70ms; }
  .rise-3 { animation-delay: 140ms; }
  .rise-4 { animation-delay: 220ms; animation-duration: 800ms; }
}
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"] .spinner { animation: appear 0s linear 400ms forwards; border-top-color: rgba(251, 250, 247, 0.35); border-right-color: var(--paper); }
  .btn, .chip span, input, .text-link.arrow::after { transition: none; }
}

/* Pricing (Omar, 2026-10-17): four monthly plans by hours, then custom. One card style, the price set large. */
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); } }
.plan { display: grid; gap: 6px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 2vw, 32px); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan p { margin: 0; }
.plan-hours { color: var(--muted); font-weight: 600; }
.plan-price { margin-top: 14px !important; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-amount { font: 700 clamp(2.6rem, 2.2rem + 1vw, 3.25rem)/1 var(--head); letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.plan-unit { color: var(--muted); font-size: 0.95rem; }
.plan-per { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.plans-foot { display: grid; gap: 10px; margin-top: 28px; max-width: 44rem; }
.plans-foot p { margin: 0; }

.section-head .lead-sm { margin-top: 16px; }

/* Why choose teach2xl? (Omar, 2026-10-18). Compared with what tutors use today, a video call plus a notes app, without
   naming anyone (Lessonspace, Pencil Spaces and BitPaper do the same; docs/research/landing-page-2026-10-16.md). */
.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; }
.lead-sm { margin: 16px 0 0; max-width: 40em; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.55; text-wrap: pretty; }
.why-head .wrap { max-width: 1440px; }
.why-head h1 { max-width: 16ch; }
.why-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.why-table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.why-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.why-table th, .why-table td { padding: 18px 24px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.why-table thead th { border-top: 0; font: 600 0.8125rem/1.3 var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: rgba(29, 43, 74, 0.03); }
.why-table tbody th { width: 18%; font: 600 1rem/1.4 var(--head); color: var(--navy); }
.why-table td { width: 41%; color: var(--muted); }
.why-table td:last-child { color: var(--ink); background: rgba(242, 193, 78, 0.09); }
.why-table thead th:last-child { background: rgba(242, 193, 78, 0.18); }
.why-brand { font-family: var(--head); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--navy); }
/* Phones: each row becomes a card, the two answers stacked and labelled, so nothing scrolls sideways. */
@media (max-width: 720px) {
  .why-table-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .why-table, .why-table tbody, .why-table tr, .why-table th, .why-table td { display: block; width: auto; }
  .why-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .why-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
  .why-table th, .why-table td { padding: 14px 18px; border-top: 0; }
  .why-table tbody th { width: auto; padding-bottom: 4px; }
  .why-table td::before { display: block; margin-bottom: 2px; font: 600 0.75rem/1.3 var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .why-table td:nth-of-type(1)::before { content: "Standard Video and Notes Apps"; }
  .why-table td:nth-of-type(2)::before { content: "teach2xl"; color: var(--navy); }
  .why-table td:last-child { border-top: 1px solid var(--line); }
}
.why-reasons { border-top: 1px solid var(--line); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 clamp(32px, 4vw, 72px); }
.why-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.why-list .why-last { grid-column: 1 / -1; }
.why-last p { max-width: 60ch; }
.why-n { font: 700 1rem/1.6 var(--head); color: var(--blue); font-variant-numeric: tabular-nums; }
.why-list h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); margin-bottom: 8px; }
.why-list p { margin: 0; color: var(--muted); }
.why-cta { border-top: 1px solid var(--line); }
.why-cta-inner { display: grid; justify-items: start; }
.why-cta h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); margin-bottom: 0; }
.why-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-line { min-height: 56px; padding: 0 28px; background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); font-size: 1.0625rem; }
@media (hover: hover) { .btn-line:hover { background: rgba(29, 43, 74, 0.06); color: var(--navy); } }
@media (max-width: 480px) { .why-cta-row { display: grid; width: 100%; } .why-cta-row .btn { width: 100%; } }

/* Omar's mum, 2026-10-18 (second round): the hero heading on one line at every width; section labels are titles, so
   they are bigger; the Why page uses the home page's colours (navy hero panel, navy closing band). */
.hero h1 { max-width: none; font-size: min(5.25rem, 7.1vw); letter-spacing: -0.028em; text-wrap: balance; } /* a little looser than -0.04em: "rt" in Virtual touched (mum, 20 Oct) */
/* One line whatever the words (mum edits them, 20 Oct): app.js adds fit-one and shrinks the size just enough; without
   the script, or below a readable size, the heading wraps instead of running off the screen. */
.hero h1.fit-one { white-space: nowrap; }
@media (max-width: 600px) { .hero h1 { font-size: 7.4vw; letter-spacing: -0.026em; } }
.kicker { font: 700 clamp(1rem, 0.9rem + 0.45vw, 1.3rem)/1.25 var(--head); letter-spacing: 0.02em; text-transform: none; }
.kicker::before { width: 10px; height: 10px; }
.why-hero .hero-panel { margin-bottom: 0; padding-bottom: clamp(48px, 24px + 5vw, 104px); }
/* Home without the screenshot under the hero (Omar, 22 Oct): the panel ends like the Why page's. */
.hero-panel:not(:has(.hero-shot)) { margin-bottom: 0; padding-bottom: clamp(48px, 24px + 5vw, 104px); }
.why-hero .kicker { color: var(--grid); justify-content: center; }
.why-hero .kicker::before { box-shadow: none; }
.why-hero h1 { color: var(--on-navy); }
.why-hero .lead { margin: 0 auto; }
@media (max-width: 600px) { .why-hero .kicker { justify-content: flex-start; } .why-hero .lead { margin: 0; } }
.why-cta.band h2 { color: var(--on-navy); }
.why-cta.band .lead-sm { color: var(--on-navy-muted); }
.why-cta.band .btn-line { color: var(--paper); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
@media (hover: hover) { .why-cta.band .btn-line:hover { background: rgba(255, 255, 255, 0.1); color: #fff; } }

/* The video has no player controls (Omar's mum, 2026-10-18); keyboard focus still shows. */
.how-video video:focus-visible { outline: 3px solid var(--hi); outline-offset: 4px; }

/* Our story (Omar's mum, 2026-10-18): one text colour; paragraphs aligned on both edges on wider screens (left on
   phones, where justified text leaves gaps); the founder's quote centred across the page. */
@media (min-width: 640px) { .story-body > p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; } }
.pull { text-align: center; }
.pull .quote p { margin-left: auto; margin-right: auto; max-width: 28ch; }
.pull .quote-by { justify-content: center; }

/* "teach2xl" in running text wears the logo's colours (Omar's mum, 2026-10-18): teach in navy, 2xl in graph blue; on
   navy panels the logo's dark version (paper and the grid's light blue). */
.wm { color: var(--navy); white-space: nowrap; }
.wm-2 { color: var(--blue); }
.hero .wm, .band .wm, .story-end .wm { color: var(--paper); }
.hero .wm-2, .band .wm-2, .story-end .wm-2 { color: var(--grid); }
a .wm { color: var(--navy); } a .wm-2 { color: var(--blue); }
.hero a .wm-2, .band a .wm-2 { color: var(--grid); }
.btn:not(.btn-hi):not(.btn-line) .wm { color: var(--paper); } .btn:not(.btn-hi):not(.btn-line) .wm-2 { color: var(--grid); }
.wm-row { display: inline; white-space: nowrap; }

/* Mum's notes, 18 Oct 16:02: yellow underline under the wordmark in text and headings
   (not in the header tabs or on buttons); quote one size smaller and italic; both quote
   rules yellow at the top rule's 2px; "Founder" in the light (2xl) blue. */
.wm { text-decoration: underline; text-decoration-color: var(--hi-2); text-decoration-thickness: max(3px, 0.12em); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
header.top .wm, .btn .wm { text-decoration: none; }
.pull { border-top: 2px solid var(--hi); border-bottom: 2px solid var(--hi); }
.pull .quote p { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.1rem); font-style: italic; }
.quote p { font-style: italic; }
.quote-role { color: var(--blue); }
/* How it works has four steps: two by two on desktop so each picture stays readable */
@media (min-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(32px, 3.2vw, 56px); } }
/* Our story opener (Omar, 2026-10-18; Our Story Page Guide rule 2): one plain sentence on what it is, before the story */
.story-head h1 + .story-lede { margin: clamp(16px, 1.5vw, 24px) 0 0; max-width: 44ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--muted); }
/* Mum, 19 Oct: the wordmark in bold wherever it appears in text (headings are bold already) */
.wm { font-weight: 700; }

/* ============================================================================================   Consistency system (Omar, 2026-10-19: "We need consistency"). One style per role on every page; the
   rules below replace the per-section sizes above. Checked by tools/site-checks/consistency.mjs; the
   method is in the vault, wiki/concepts/Website Consistency System.md. The hero is the one exception.
   =================================================================================================== */
:root {
  --fs-label: clamp(1rem, 0.9rem + 0.45vw, 1.3rem);      /* the yellow-dot label above a heading */
  --fs-page-title: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); /* h1 on every inner page */
  --fs-section: clamp(2rem, 1.35rem + 2vw, 3.25rem);      /* h2: every section heading */
  --fs-feature: clamp(1.6rem, 1.25rem + 1vw, 2.25rem);    /* h3 beside a big picture */
  --fs-card: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem);    /* h3 in a card, step or list; document h2 */
  --fs-body: 1.125rem;                                    /* all running text */
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);   /* the sentence under a section heading */
  --gap-label: 16px;                                      /* label to heading */
  --gap-media: 28px;                                      /* words to picture in a stacked card */
  --frame-pad: clamp(14px, 2.2vw, 28px);                  /* every picture panel */
}
/* Labels: one style everywhere, sentence case; only the colour changes on navy */
main p.kicker, main .kicker { font: 700 var(--fs-label)/1.25 var(--head); letter-spacing: 0.02em; text-transform: none; margin: 0 0 var(--gap-label); color: var(--blue); }
main .band p.kicker, main .band .kicker, .why-hero p.kicker { color: var(--grid); }
.why-table thead th, .why-table td::before { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
/* Headings: one size per level */
.story-head h1, .plain-main h1 { font-size: var(--fs-page-title); line-height: 1; letter-spacing: -0.04em; }
main h2, .story-end h2, .why-cta h2 { font-size: var(--fs-section); line-height: 1.06; letter-spacing: -0.03em; }
.plain-main h2 { font-size: var(--fs-card); line-height: 1.25; letter-spacing: -0.015em; }
.feature h3 { font-size: var(--fs-feature); line-height: 1.12; letter-spacing: -0.025em; }
.step h3, .promises h3, .plan h3, .why-list h3 { font-size: var(--fs-card); line-height: 1.25; letter-spacing: -0.015em; }
/* Running text: one size and one colour (ink on paper, the on-navy colour on navy); grey only for captions,
   small print and dates */
.step-text p:not(.kicker), .feature-text p:not(.kicker), .why-list p, .plans-foot p, details p, .plain-main p:not(.kicker):not(.updated):not(.fine), .promises li, .promises p,
.join-intro p:not(.kicker), .band-intro p:not(.kicker), .story-body > p, .story-end p, .story-teaser p, .teaser-text { font-size: var(--fs-body); line-height: 1.6; }
.lead-sm, .section-head .lead-sm, .story-body > p:first-child, .story-head h1 + .story-lede, .why-cta .lead-sm { font-size: var(--fs-lead); line-height: 1.55; }
.step-text p:not(.kicker), .feature-text p:not(.kicker), .feature-text .detail, .why-list p, .plans-foot p, .lead-sm, .story-head h1 + .story-lede, .teaser-text, .join-intro p:not(.kicker), .story-teaser p, .plain-main p:not(.kicker):not(.updated):not(.fine) { color: var(--ink); }
.band p, .band li, .story-end p, .why-cta.band .lead-sm { color: var(--on-navy-muted); }
/* Pictures: one frame (the grid panel) for every screenshot and the video */
.panel, .step-shot { padding: var(--frame-pad); border-radius: var(--radius-lg); }
.phone-shot { justify-self: stretch; width: auto; }
.phone-shot img { display: block; width: min(300px, 70%); margin: 0 auto; border-radius: 26px; }
.how-video.panel video { border-radius: 12px; box-shadow: var(--shadow); }
.how-video.panel figcaption { margin: 14px 0 0; }
/* Steps: number and title, then the words, then the picture; two by two from tablet up */
.step { gap: var(--gap-media); align-content: start; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(28px, 3.2vw, 56px); }
  .step { grid-template-columns: none; align-items: start; } }
/* Heading block to its content: the same gap in every section when they stack (side by side keeps --gap) */
:root { --gap-head: clamp(36px, 20px + 3vw, 72px); }
.section-head { margin-bottom: var(--gap-head); }
.band-grid, .who-grid, .faq-grid, .join-wrap { row-gap: var(--gap-head); }
/* Steps in a row share their rows, so the pictures start at the same height however long the words are */
@media (min-width: 640px) { .steps { grid-auto-rows: auto; } .step { grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: var(--gap-media); } }
/* The wide feature stacks label, heading and words like every other feature, with its picture full width below */
@media (min-width: 900px) {
  .feature.wide .feature-text { display: block; max-width: 40em; }
  .feature.wide .feature-text h3 { margin-bottom: 14px; }
}

/* Website editor (2026-10-18): the only looks the editor offers (app.teach2xl.com/site-editor; worker/site-sanitize.ts
   keeps exactly these e2- classes and removes any other). Classes, never style attributes, so the page's CSP stays
   strict (no 'unsafe-inline'). !important because each one is a deliberate choice made on that one piece of text. */
.e2-f-head { font-family: var(--head) !important; }
.e2-f-text { font-family: var(--text) !important; }
.e2-s-sm { font-size: 0.85em !important; }
.e2-s-lg { font-size: 1.25em !important; }
.e2-s-xl { font-size: 1.6em !important; line-height: 1.15 !important; }
.e2-c-ink { color: var(--ink) !important; }
.e2-c-navy { color: var(--navy) !important; }
.e2-c-blue { color: var(--blue) !important; }
.e2-c-grey { color: var(--muted) !important; }
.e2-c-red { color: var(--error) !important; }
.e2-c-yellow { color: var(--hi) !important; }
.e2-c-white { color: #FFFFFF !important; }
.e2-it { font-style: italic !important; }
mark.e2-hl { background: rgba(242, 193, 78, 0.6); color: inherit; padding: 0 0.12em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.e2-figure { margin: 0 0 1.5em; }
.e2-figure img { border-radius: var(--radius); }
.e2-section .wrap > p { max-width: 68ch; }
/* Comparison table (Omar's mum, 19 Oct): the row headings in their own light-blue column; column titles centred;
   the words in each row centred across and down their cells. Phones keep their stacked, left-aligned cards. */
@media (min-width: 721px) {
  .why-table th, .why-table td { text-align: center; vertical-align: middle; }
  .why-table tbody th { background: rgba(61, 90, 153, 0.08); }
  .why-table thead th:first-child { background: rgba(61, 90, 153, 0.12); }
}
/* Every underline has round ends (Omar, 19 Oct: "some underlines are rounded, some are squared"): the wordmark's
   yellow underline is drawn like the hero's (.ul), a bar with fully rounded ends, instead of a square text-decoration. */
.wm { text-decoration: none; position: relative; }
.wm::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.16em; height: max(3px, 0.12em); border-radius: 999px; background: var(--hi-2); pointer-events: none; }
header.top .wm::after, .btn .wm::after { content: none; }
/* Menu (Omar's mum, 19 Oct): no box on the current page; "Why" the same colour as the rest of the menu; the wordmark
   in its colours (teach navy, 2xl light blue) with its rounded yellow underline. The footer's "excel." is underlined
   like the hero's (.ul). */
.tabs-row a[aria-current="page"], .sections a[aria-current="page"] { background: none; color: var(--muted); }
.sections a .wm, .tabs-row a .wm { color: var(--navy); }
.sections a .wm-2, .tabs-row a .wm-2 { color: var(--blue); }
header.top .sections a .wm::after, header.top .tabs-row a .wm::after { content: ""; }
.foot-brand .ul::after { height: max(3px, 0.12em); bottom: -0.16em; }
/* Contact page (2026-10-19): the waitlist form's parts (card, fields, chips, errors, busy button, done card) plus a
   message box with its character count and the list of problems shown above the form when Send is pressed. */
textarea { display: block; width: 100%; min-height: 180px; padding: 12px 14px; font: 400 17px/1.5 var(--text); color: var(--ink); background: #fff; border: 1.5px solid #8A94A6; border-radius: 10px; resize: vertical; -webkit-appearance: none; appearance: none; transition: border-color 150ms var(--ease-out); }
@media (hover: hover) { textarea:hover { border-color: var(--navy); } }
textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.count { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.count.near { color: var(--ink); font-weight: 600; }
.count.full { color: var(--error); font-weight: 600; }
.summary { padding: 14px 16px; outline: none; }
.summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.summary-h { margin: 0 0 6px; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li + li { margin-top: 4px; }
.summary a, .form-error a { color: var(--error); text-decoration: underline; }
.chip input:checked + span .wm { color: var(--paper); }
.chip input:checked + span .wm-2 { color: var(--grid); }
@media (prefers-reduced-motion: reduce) { textarea { transition: none; } }
/* Website editor, sections and blocks (2026-10-20): hide, colour scheme, spacing, alignment and focal point. Each is one
   class chosen in the editor's settings panel (worker/site-sanitize.ts keeps exactly these). Hidden things stay in
   the page's content but visitors never see them; in the editor (html.e2-editing) they show faded and striped. */
html:not(.e2-editing) .e2-hidden { display: none !important; }
.e2-bg-paper { background: var(--paper) !important; }
.e2-bg-warm { background: var(--warm) !important; }
.e2-bg-tint { background: var(--tint) !important; }
.section.e2-pad-sm, .e2-pad-sm { padding-top: calc(var(--section) * 0.5) !important; padding-bottom: calc(var(--section) * 0.5) !important; }
.section.e2-pad-lg, .e2-pad-lg { padding-top: calc(var(--section) * 1.4) !important; padding-bottom: calc(var(--section) * 1.4) !important; }
.e2-al-c { text-align: center !important; }
.e2-al-c :is(h1, h2, h3, p, ul, ol, .section-head, .lead, .lead-sm, .faq-head, .band-intro) { margin-left: auto; margin-right: auto; }
.e2-al-c :is(.cta-row, .why-cta-row, .plain-actions, .kicker, .quote-by) { justify-content: center; }
.e2-al-c .why-cta-inner { justify-items: center; }
img.e2-fp-t, .e2-fp-t img { object-position: 50% 0 !important; }
img.e2-fp-b, .e2-fp-b img { object-position: 50% 100% !important; }
img.e2-fp-l, .e2-fp-l img { object-position: 0 50% !important; }
img.e2-fp-r, .e2-fp-r img { object-position: 100% 50% !important; }
/* Website editor, text (2026-10-20): alignment right and justified (left and centre above); a list made in the editor's
   settings panel, with a hanging indent (the marker on the left, every line of the words aligned to the right of it,
   never wrapping under it); maths written as MathML by the editor (no script needed). */
.e2-al-r { text-align: right !important; }
.e2-al-j { text-align: justify !important; hyphens: auto; }
/* Lists made in the editor look exactly like the site's own points (ul.points, below): one style for every list. Her
   own looks for one list (List options, 2026-10-26) are custom properties on it, from site/style-rules.ts: the dot's
   colour (--li-dot), the gap after it (--li-gap) and the space between points (--li-space); unset, the site's own. */
ul.e2-list, ol.e2-list { margin: 0 0 1em; padding: 0 0 0 1.6em; list-style-position: outside; }
ul.e2-list { list-style-type: disc; }
ol.e2-list { list-style-type: decimal; }
.e2-list > li { margin: 0 0 var(--li-space, 0.5em); padding-left: var(--li-gap, 0.85em); } /* the same set-in as ul.points (fd1067e) */
.e2-list > li:last-child { margin-bottom: 0; }
.e2-list > li::marker { color: var(--li-dot, var(--blue)); }
.step-text .e2-list li, .why-list .e2-list li { font-size: var(--fs-body); line-height: 1.6; color: var(--ink); }
.e2-al-c .e2-list, .e2-al-r .e2-list { display: inline-block; text-align: left; }
main math[display="block"] { display: block; margin: 0.6em 0; overflow-x: auto; }
/* The comparison table on phones: each cell's label is its column's title, written into the cell by the editor
   (data-label), so renaming a column changes the phone view too. Cells without one keep the labels above. */
@media (max-width: 720px) {
  .why-table td[data-label]::before { content: attr(data-label); }
}

/* Website editor v3, stage 3 (2026-10-22): new pages, tabs and the Next links (site/pages.ts; worker/site-sanitize.ts
   keeps exactly these e2- classes). */
/* A new page's top: Why's navy top (a link in its line stays readable on navy). */
.page-hero .lead a { color: var(--on-navy); }
.page-hero .lead a:hover { color: var(--hi-2); }
/* Tabs. Without JavaScript every tab is shown, its title above its words; site/public/tabs.js makes them a row of tabs
   (the WAI-ARIA tabs pattern) and shows one at a time. */
.e2-tabs { display: grid; gap: 20px; max-width: 64rem; }
.e2-tab { padding: clamp(20px, 2.4vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.e2-tab-t { font-size: var(--fs-card); line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 12px; }
.e2-tab-b p, .e2-tab-b li { font-size: var(--fs-body); line-height: 1.6; color: var(--ink); }
.e2-tab-b > :last-child { margin-bottom: 0; }
.e2-tabs.e2-tabs-on { gap: 16px; }
.e2-tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.e2-tablist button { min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--navy); font: 600 1rem/1.2 var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
@media (hover: hover) { .e2-tablist button:hover { border-color: var(--navy); } }
.e2-tablist button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.e2-tabs-on .e2-tab-t { display: none; }
.e2-tabs-on .e2-tab:focus-visible { outline-offset: 4px; }
/* The Next links at the end of a page: written by the site from the menu, so a block with no other page is hidden. */
section.e2-next:empty { display: none; }
/* (The section rhythm of every other section: one rhythm per site, tools/site-checks/consistency.mjs.) */
.e2-next { border-top: 1px solid var(--line); }
.e2-next-main { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.35em; font: 700 var(--fs-section)/1.1 var(--head); letter-spacing: -0.03em; color: var(--navy); text-decoration: none; }
.e2-next-main .e2-next-k { color: var(--blue); }
.e2-next-main .e2-next-t { text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 0.08em; text-underline-offset: 0.14em; }
@media (hover: hover) { .e2-next-main:hover { color: var(--navy-2); } .e2-next-main:hover .e2-next-arrow { transform: translateX(4px); } }
.e2-next-arrow { display: inline-block; transition: transform 150ms var(--ease-out); }
p.e2-next-k { margin: clamp(20px, 2vw, 32px) 0 12px; font: 600 var(--fs-body)/1.4 var(--text); color: var(--muted); }
.e2-next-more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.e2-next-more a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .e2-next-more a:hover { border-color: var(--navy); } }
@media (prefers-reduced-motion: reduce) { .e2-next-arrow, .e2-tablist button { transition: none; } }

/* Omar's notes on mum's first published edits (2026-10-20). */
/* Points: real lists with a hanging indent, the marker on the left and every line of text to its right. */
ul.points { margin: 0; padding: 0 0 0 1.6em; list-style: disc; }
ul.points li { margin: 0 0 var(--li-space, 0.5em); padding-left: var(--li-gap, 0.85em); } /* mum, 20 Oct: the dot set in under the heading, a clear gap, the text lined up after it */
ul.points li:last-child { margin-bottom: 0; }
ul.points li::marker { color: var(--li-dot, var(--blue)); }
/* The points read as the paragraphs they replaced (size, line height, colour). */
.step-text ul.points li, .why-list ul.points li { font-size: var(--fs-body); line-height: 1.6; color: var(--ink); }
.step-text ul.points { max-width: 32em; }
/* How it works: one step per row, words on the left and the picture on the right (stacked on phones). */
@media (min-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: clamp(40px, 5vw, 72px); }
  .step { grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px); align-items: center; }
}
/* "See it for yourself": justified. */
.why-cta .lead-sm { text-align: justify; hyphens: auto; }
/* Maths written as LaTeX, rendered as MathML: the surrounding text's size and colour. */
main math { font-size: 1em; color: inherit; }

/* ============================================================================================================
   Editor v3 (2026-10-21): values set in the website editor, as inline styles from a strict allow-list
   (site/style-rules.ts; the server checks every one). Only elements that carry a value are touched, so everything
   else looks exactly as before.
   - Her own text size (--fs) never overflows a phone: it is capped at 11% of the screen's width.
   - The decorative underline under the wordmark (.wm) and the tagline's "excel." (.ul) reads its position, thickness,
     colour and width from --ul-offset, --ul-thick, --ul-colour and --ul-width (em, so it scales with the words at every
     width); an ordinary underline (u) reads the first three. The site's own values are the fallbacks.
   ============================================================================================================ */
main [style*="--fs"] { font-size: min(var(--fs), 11vw); overflow-wrap: break-word; }
.wm[style*="--ul-"]::after { left: calc((100% - var(--ul-width, 100%)) / 2); right: auto; width: var(--ul-width, 100%); bottom: calc(-1 * var(--ul-offset, 0.16em)); height: var(--ul-thick, max(3px, 0.12em)); min-height: 1px; background: var(--ul-colour, var(--hi-2)); }
.ul[style*="--ul-"]::after { left: calc(-0.04em + (100% - var(--ul-width, 100%)) / 2); right: auto; width: calc(var(--ul-width, 100%) + 0.06em); bottom: calc(-1 * var(--ul-offset, 0.1em)); height: var(--ul-thick, 0.17em); min-height: 1px; background: var(--ul-colour, var(--hi)); }
.foot-brand .ul[style*="--ul-"]::after { bottom: calc(-1 * var(--ul-offset, 0.16em)); height: var(--ul-thick, max(3px, 0.12em)); }
u[style*="--ul-"] { text-decoration-color: var(--ul-colour, currentcolor); text-decoration-thickness: var(--ul-thick, auto); text-underline-offset: var(--ul-offset, auto); }
/* Values set on one underline never reach another one inside it. */
:is(.wm, .ul, u)[style*="--ul-"] * { --ul-offset: initial; --ul-thick: initial; --ul-colour: initial; --ul-width: initial; }
/* ============================================================================================================
   Free layout (editor v3 stage 2, 2026-10-22; docs/editor-v3-stage2-declaration.md). A section whose grid holds text
   boxes, pictures and boxes placed freely on the computer layout. Places, sizes and looks are custom properties from
   the allow-list (site/style-rules.ts): --c/--w column and width, --r/--h row and height (whole cells), --z layer,
   --bg/--bd background and border colour, --bw/--rad/--pad border, corners and padding in design pixels, --fx/--fy the
   point of a picture kept in view, --zoom. 24 columns; a row is 1/48 of the grid's width.
   - From 1024 px the grid scales as one picture: one design pixel (--u) is 1/1178 of the grid's width (the grid at a
     1280 px screen), words included, so 1280, 1440 and 1920 look the same and 1024 is the same picture (words never
     under 15 px there; their rows grow instead). Rows grow with their words and never let them spill.
   - Below 1024 px (phones, upright tablets) it is the automatic fallback: one column in reading order (the HTML order,
     which the editor keeps top to bottom, left to right), text full width, pictures and boxes in their shape, a box
     with something on top of it (e2-under) left out. Claude's phone and tablet pass replaces it per section later.
   - Only in its own structure (section.e2-free > .wrap > .e2-grid > .e2-item; the server removes these classes
     anywhere else, and a kind or look class without e2-item), and the grid contains its items: their layers and
     anything drawn past their edges stay inside it (contain: paint), and nothing of an outer item reaches them, so
     nothing in a free section can cover the header or another section (Codex 22 Oct, blocker 1; round 2, finding 1).
   The grid's computer rules are written twice, identically: for wide screens, and for the editor's computer view
   (html.e2-desk, set only inside the editor's frame). tools/site-editor/layout_test.mjs checks the copies match.
   ============================================================================================================ */
.e2-free > .wrap { container-type: inline-size; }
.e2-free > .wrap > .e2-grid { --u: calc(100cqw / 1178); position: relative; contain: paint; display: flex; flex-direction: column; align-items: stretch; gap: clamp(16px, 3vw, 28px);
  --c: initial; --w: initial; --r: initial; --h: initial; --z: initial; --bg: initial; --bd: initial; --bw: initial; --rad: initial; --pad: initial; --fx: initial; --fy: initial; --zoom: initial; --fsn: initial; }
/* Focus rings drawn inside (the grid cuts off what is drawn outside it; Codex round 2, finding 6). */
.e2-free > .wrap > .e2-grid :focus-visible { outline-offset: -3px; }
.e2-free > .wrap > .e2-grid > .e2-item { --px: 1px; position: relative; box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; background: var(--bg, transparent);
  border: calc(var(--bw, 0) * var(--px)) solid var(--bd, var(--navy)); border-radius: calc(var(--rad, 0) * var(--px));
  padding: min(calc(var(--pad, 0) * var(--px)), 12%); } /* (never more than an eighth of a box: Codex, finding 3) */
.e2-free > .wrap > .e2-grid > .e2-item.e2-t > :first-child { margin-top: 0; }
.e2-free > .wrap > .e2-grid > .e2-item.e2-t > :last-child { margin-bottom: 0; }
.e2-free > .wrap > .e2-grid > .e2-item.e2-p { overflow: hidden; }
.e2-free > .wrap > .e2-grid > .e2-item.e2-p > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  object-position: calc(var(--fx, 50) * 1%) calc(var(--fy, 50) * 1%); transform-origin: calc(var(--fx, 50) * 1%) calc(var(--fy, 50) * 1%); scale: var(--zoom, 1); }
.e2-free > .wrap > .e2-grid > .e2-item.e2-p.e2-fit > img { object-fit: contain; scale: none; }
/* (on phones a picture or box is a share of the section's width, and its padding an eighth of its own: round 2, finding 3) */
.e2-free > .wrap > .e2-grid > .e2-item:is(.e2-p, .e2-b) { aspect-ratio: calc(var(--w, 1) * 2) / var(--h, 1); width: min(100%, calc(var(--w, 1) * 100% / 12)); align-self: center;
  padding: min(calc(var(--pad, 0) * var(--px)), calc(var(--w, 1) * 1%)); border-width: min(calc(var(--bw, 0) * var(--px)), calc(var(--w, 1) * 0.8vw)); } /* (its border too: round 3) */
.e2-free > .wrap > .e2-grid > .e2-item.e2-b.e2-under { display: none; }
@media (min-width: 1024px) {
  .e2-free > .wrap > .e2-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 1), minmax(calc(100cqw / 48), auto)); grid-auto-rows: minmax(calc(100cqw / 48), auto); gap: 0; font-size: max(var(--fmin, 15px), calc(18 * var(--u))); }
  .e2-free > .wrap > .e2-grid > .e2-item { --px: var(--u); grid-column: var(--c, 1) / span var(--w, 1); grid-row: var(--r, 1) / span var(--h, 1); z-index: var(--z, 1); }
  .e2-free > .wrap > .e2-grid > .e2-item:is(.e2-p, .e2-b) { aspect-ratio: auto; width: auto; align-self: stretch; padding: min(calc(var(--pad, 0) * var(--px)), 12%); border-width: calc(var(--bw, 0) * var(--px)); }
  .e2-free > .wrap > .e2-grid > .e2-item.e2-b.e2-under { display: block; }
  .e2-free > .wrap > .e2-grid :is(h1, h2):not([style*="--fs"]) { font-size: calc(48 * var(--u)); }
  .e2-free > .wrap > .e2-grid h3:not([style*="--fs"]) { font-size: calc(26 * var(--u)); }
  .e2-free > .wrap > .e2-grid :is(h4, h5, h6):not([style*="--fs"]) { font-size: calc(21 * var(--u)); }
  .e2-free > .wrap > .e2-grid [style*="--fsn"] { font-size: calc(var(--fsn) * var(--u)); }
}
html.e2-desk .e2-free > .wrap > .e2-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 1), minmax(calc(100cqw / 48), auto)); grid-auto-rows: minmax(calc(100cqw / 48), auto); gap: 0; font-size: max(var(--fmin, 15px), calc(18 * var(--u))); }
html.e2-desk .e2-free > .wrap > .e2-grid > .e2-item { --px: var(--u); grid-column: var(--c, 1) / span var(--w, 1); grid-row: var(--r, 1) / span var(--h, 1); z-index: var(--z, 1); }
html.e2-desk .e2-free > .wrap > .e2-grid > .e2-item:is(.e2-p, .e2-b) { aspect-ratio: auto; width: auto; align-self: stretch; padding: min(calc(var(--pad, 0) * var(--px)), 12%); border-width: calc(var(--bw, 0) * var(--px)); }
html.e2-desk .e2-free > .wrap > .e2-grid > .e2-item.e2-b.e2-under { display: block; }
html.e2-desk .e2-free > .wrap > .e2-grid :is(h1, h2):not([style*="--fs"]) { font-size: calc(48 * var(--u)); }
html.e2-desk .e2-free > .wrap > .e2-grid h3:not([style*="--fs"]) { font-size: calc(26 * var(--u)); }
html.e2-desk .e2-free > .wrap > .e2-grid :is(h4, h5, h6):not([style*="--fs"]) { font-size: calc(21 * var(--u)); }
html.e2-desk .e2-free > .wrap > .e2-grid [style*="--fsn"] { font-size: calc(var(--fsn) * var(--u)); }
/* Her own text sizes scale with the computer layout too: the server writes each one's size in design pixels (--fsn)
   beside it (the rules above, every browser). The editor's open page has no --fsn yet: there they scale where the
   browser can divide a size by a pixel (Chrome and Safari, measured 22 Oct; Firefox 155 cannot). */
@supports (width: calc(10px / 1px * 1px)) {
  @media (min-width: 1024px) { .e2-free > .wrap > .e2-grid [style*="--fs"] { font-size: calc(var(--fs) / 1px * var(--u)); } }
  html.e2-desk .e2-free > .wrap > .e2-grid [style*="--fs"] { font-size: calc(var(--fs) / 1px * var(--u)); }
}
/* =====================================================================================================
   Arrange freely on a designed section (2026-10-22, Omar's option C; src/site-editor/layout/designed.ts). A designed
   section turned into a free layout keeps its own classes (its colours, its words' looks); these rules keep it right:
   - the top of the page's heading wraps in its box like any other words (app.js's one-line fit is for the designed
     top of the page; in a free layout her box decides its width);
   - a card (a plan, the waitlist's card, the story card) fills its box, so cards side by side stay the same height;
   - on phones and upright tablets (the automatic one-column layout, until Claude's phone pass) the top of the page
     keeps its navy panel behind its words, and its caption stays readable on it.
   ============================================================================================================ */
.e2-free h1.fit-one { white-space: normal; }
.e2-free > .wrap > .e2-grid > .e2-item.e2-t > :is(.plan, .card, .story-teaser) { min-height: 100%; }
@media (max-width: 1023px) {
  html:not(.e2-desk) .hero.e2-free > .wrap { padding-top: clamp(40px, 8vw, 72px); padding-bottom: clamp(40px, 8vw, 72px); border-radius: clamp(20px, 2.4vw, 40px);
    background-color: var(--navy); background-image: linear-gradient(to right, rgba(159, 179, 217, 0.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(159, 179, 217, 0.09) 1px, transparent 1px), linear-gradient(to bottom, var(--navy), var(--navy-3));
    background-size: 32px 32px, 32px 32px, 100% 100%; background-position: -1px -1px, -1px -1px, 0 0; }
  html:not(.e2-desk) .hero.e2-free .hero-caption { color: var(--on-navy-muted); }
}
/* A picture with a phone version (<picture> and its <source>s) fills its item like a picture on its own. */
.e2-free > .wrap > .e2-grid > .e2-item.e2-p > picture { display: contents; }
.e2-free > .wrap > .e2-grid > .e2-item.e2-p > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  object-position: calc(var(--fx, 50) * 1%) calc(var(--fy, 50) * 1%); transform-origin: calc(var(--fx, 50) * 1%) calc(var(--fy, 50) * 1%); scale: var(--zoom, 1); }
.e2-free > .wrap > .e2-grid > .e2-item.e2-p.e2-fit > picture > img { object-fit: contain; scale: none; }
/* A text box made from a designed section (class "designed", and only those: her own boxes are untouched) holds the
   site's own sizes in pixels: buttons, cards, questions, the form. On computers its contents are drawn at their 1280 px
   size and zoomed by the grid's width / 1178, so the box is the same picture at every computer width (as the words of
   her own boxes are); never below 15 px words' worth (--zmin; the editor's frame sets it to 0, as it does --fmin).
   One rule for the live site, the editor and Omar's review, in every browser: tan(atan2(a, b)) is a / b as a number,
   which Chrome, Safari and Firefox 155 all work out (measured 22 Oct; Firefox cannot divide a length by a length).
   Written twice, identically, like the computer rules above (arrange_test.mjs checks the copies match). */
@supports (zoom: tan(atan2(1px, 1px))) {
  @media (min-width: 1024px) { .e2-free > .wrap > .e2-grid > .e2-item.e2-t.designed { font-size: 18px; } .e2-free > .wrap > .e2-grid > .e2-item.e2-t.designed > * { zoom: max(var(--zmin, 0.8334), tan(atan2(100cqw, 1178px))); --u: 1px; } }
  html.e2-desk .e2-free > .wrap > .e2-grid > .e2-item.e2-t.designed { font-size: 18px; } html.e2-desk .e2-free > .wrap > .e2-grid > .e2-item.e2-t.designed > * { zoom: max(var(--zmin, 0.8334), tan(atan2(100cqw, 1178px))); --u: 1px; }
}

/* Email addresses open a small menu (mail.js, 23 Oct): Gmail, the email app, or copy. */
.mail-menu { position: fixed; z-index: 100; display: grid; min-width: 210px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16); }
.mail-menu button { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer; }
.mail-menu button:hover, .mail-menu button:focus-visible { background: rgba(61, 90, 153, 0.1); outline: none; }
.mail-menu button:focus-visible { box-shadow: inset 0 0 0 2px var(--blue, #3D5A99); }
