/* The Chromozone house style (Laura 11 Nov 2026 03:28 UTC; site-wide roll-out OK'd by Robbe in MARKETING 17:29 UTC):
   Poppins for titles, headings and buttons, Nunito for text, primary green #3B6255, yellow #e3c567, red #9b4a45.
   SpecPoint — shared styles (mobile-first: base = phone, min-width queries go up) */

:root {
  --paper: #f7f4ec;
  --paper-2: #efe9da;
  --card: #fffdf8;
  --ink: #12302b;
  --ink-2: #3c5852;
  --ink-3: #566d67;
  --line: #ddd5c2;
  --line-soft: #e8e1d0;
  --grid: rgba(18, 48, 43, 0.055);
  --leaf: #3B6255;
  --leaf-strong: #2c4a40;
  --leaf-tint: #e3ede7;
  --hl: #e3c567;
  --hl-soft: #f5ebc8;
  --red: #9b4a45;
  --red-tint: #f3e3e1;
  --amber-tint: #fdf0d2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 48, 43, 0.06), 0 10px 30px -14px rgba(18, 48, 43, 0.22);
  --shadow-lg: 0 2px 4px rgba(18, 48, 43, 0.05), 0 24px 60px -24px rgba(18, 48, 43, 0.35);
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Poppins", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1160px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--leaf-strong); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.section--ink :focus-visible, .skip:focus-visible { outline-color: var(--hl); }
::selection { background: var(--hl-soft); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(2.35rem, 9vw, 4.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 6.4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #eef3ef; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--leaf);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--ink .eyebrow { color: var(--hl); }

.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.section--ink .lead { color: #c9d8d2; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }

mark, .hl {
  background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%);
  color: inherit; padding: 0 0.08em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--leaf); color: #fff; box-shadow: 0 8px 20px -10px rgba(59, 98, 85, 0.7); }
.btn--primary:hover { background: var(--leaf-strong); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--hl); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 0.95rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, 0.9); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { display: none; font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leaf); background: var(--leaf-tint); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.nav { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav a:hover { color: var(--ink); }
.header-cta { display: inline-flex; white-space: nowrap; }
.hide-sm { display: none; }
@media (min-width: 480px) { .brand small { display: inline-block; } .hide-sm { display: inline; } }

/* Phones and tablets: the menu gets its own row under the logo (Laura, 4 Nov: she could not find "All courses") */
@media (max-width: 1023px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 4px; row-gap: 2px; }
  .nav { display: flex; order: 3; flex-basis: 100%; gap: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 0.86rem; font-weight: 600; padding: 10px 0; }
}
/* "The Chromozone" is longer than the old name: keep the name and the sign-up button on one row on phones */
@media (max-width: 420px) {
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .header-cta { padding-inline: 14px; }
}

/* Hero */
.hero { position: relative; padding: 36px 0 64px; overflow: hidden; }

/* Beta bar above the header on the public pages (Robbe, 10 Nov 2026: beta and the Founding plan at a glance). Baked into
   index.html; site.js adds it on the other indexed pages. */
.beta-bar { background: var(--ink); color: var(--paper); font-size: 0.92rem; }
.beta-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.beta-bar b { color: #f6d85a; font-weight: 700; }
.beta-bar a { color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.beta-bar a:hover { color: #f6d85a; }

/* The Founding Teacher card right under the hero */
.founding { padding: 0 0 56px; }
.founding-card { background: var(--leaf-tint); border: 1px solid #bcd6c9; border-radius: 20px; padding: 28px 28px 24px; display: grid; gap: 10px; }
.founding-card h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.founding-card p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.founding-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px !important; }
.founding-note { font-size: 0.92rem; color: var(--ink-3); }
@media (min-width: 760px) { .founding-card { padding: 34px 40px 30px; } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.hero-copy { display: grid; gap: 20px; align-content: start; }
.spec-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px;
  font-size: 0.8rem; font-weight: 500; color: var(--ink-2); line-height: 1.3;
}
@media (min-width: 480px) { .spec-chip { font-size: 0.86rem; } }
.spec-chip b { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 9px; font-size: 0.74rem; letter-spacing: 0.06em; white-space: nowrap; }
.hero .lead { font-size: 1.15rem; }
.hero-ctas { display: grid; gap: 12px; margin-top: 4px; }
.hero-note { font-size: 0.92rem; color: var(--ink-3); }
.trust { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: var(--ink-2); }
.trust svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--leaf); }
.student-link { font-size: 0.95rem; }
.student-link a { color: var(--ink-2); font-weight: 500; }
.student-link a:hover { color: var(--ink); }
.student-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }

/* Hero visual: lesson card + marked review card */
.hero-visual { position: relative; display: grid; gap: 0; padding-bottom: 8px; }
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; font-size: 0.93rem;
}
.mock-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--leaf-tint); color: var(--leaf-strong); white-space: nowrap; }
.tag--ink { background: var(--ink); color: var(--paper); }
.tag--amber { background: var(--amber-tint); color: #7a5300; }
.tag--red { background: var(--red-tint); color: #8f2a19; }
.tag--plain { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.mock h3 { font-size: 1.35rem; margin-bottom: 10px; }
.mock-lesson { transform: rotate(-1.2deg); margin-right: 18px; }
.do-now { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 6px; background: #fff; }
.do-now strong { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.do-now ol { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.do-now li { padding-left: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 0.78rem; background: var(--paper-2); border-radius: 999px; padding: 3px 9px; color: var(--ink-2); }
.mock-bar { display: flex; gap: 8px; margin-top: 12px; }
.mock-bar span { font-size: 0.8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--paper-2); color: var(--ink-2); }
.mock-bar span:first-child { background: var(--leaf); color: #fff; }
.mock-review { margin: -8px 0 0 22px; transform: rotate(1.4deg); position: relative; }
.q { font-weight: 600; margin-bottom: 10px; }
.answer { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px 12px; font-family: var(--font-body); color: var(--ink-2); font-style: italic; }
.answer .stroke-ok { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; }
.answer .stroke-bad { text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; }
.pen { font-family: var(--font-hand); font-weight: 600; color: var(--red); font-size: 1.28rem; line-height: 1.1; font-style: normal; }
.pen-notes { display: grid; gap: 4px; margin-top: 10px; }
.pen-notes .ok { color: var(--leaf); }
.hinge-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hinge-opts li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 0.9rem; }
.hinge-opts li b { color: var(--ink); }
.hinge-opts li.ok { border-color: var(--leaf); background: #f3faf6; }
.score { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.score .pen { font-size: 1.7rem; }
.fake-btn { font-size: 0.82rem; font-weight: 600; background: var(--ink); color: var(--paper); padding: 7px 12px; border-radius: 999px; }

/* Code strip */
.codes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.codes .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding-top: 18px; padding-bottom: 18px; }
.codes p { font-size: 0.86rem; color: var(--ink-3); width: 100%; text-align: center; }
.codes code { font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink); background: var(--paper-2); padding: 4px 9px; border-radius: 7px; }

/* Cards */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); }
.pain .card { position: relative; padding-top: 52px; }
.pain .num { position: absolute; top: 18px; left: 22px; font-family: var(--font-hand); font-size: 1.6rem; color: var(--red); font-weight: 600; line-height: 1; }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature-copy { display: grid; gap: 12px; }
.feature-copy h3 { font-size: clamp(1.45rem, 4.6vw, 1.9rem); }
.feature-copy p { color: var(--ink-2); }
.feature-copy ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature-copy li { display: flex; gap: 10px; color: var(--ink-2); }
.feature-copy li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.62em; border-radius: 50%; background: var(--leaf); }
.feature-visual { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }

.slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slide { aspect-ratio: 4 / 3; border-radius: 10px; background: #fff; border: 1px solid var(--line-soft); padding: 9px; display: grid; align-content: start; gap: 6px; font-size: 0.66rem; color: var(--ink-3); }
.slide b { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.slide i { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); }
.slide i.s { width: 60%; }
.slide i.m { width: 80%; }
.slide i.hlb { background: var(--hl-soft); }
.slide--dark { background: var(--ink); border-color: var(--ink); }
.slide--dark b { color: var(--hl); }
.slide--dark i { background: rgba(255, 255, 255, 0.16); }
.slides-caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 0.84rem; color: var(--ink-3); }

/* Practical paper builder */
.builder { display: grid; gap: 14px; }
.builder fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.builder legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.unit-toggle { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 4px; }
.unit-toggle button { border: 0; background: transparent; font: 600 0.88rem var(--font-body); color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.unit-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.topic-list { display: grid; gap: 8px; }
.topic-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; cursor: pointer; font-size: 0.93rem; line-height: 1.35; }
.topic-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--leaf); flex: none; }
.topic-check:has(input:checked) { border-color: var(--leaf); background: #f3faf6; }
.cp-out { border-top: 1px dashed var(--line); padding-top: 12px; }
.cp-out h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.cp-list li { display: flex; gap: 8px; align-items: baseline; }
.cp-list .cp { font-family: var(--font-mono); font-size: 0.78rem; background: var(--leaf-tint); color: var(--leaf-strong); padding: 2px 6px; border-radius: 5px; flex: none; }
.cp-list .muted { color: var(--ink-3); }
.cp-summary { margin-top: 10px; font-size: 0.9rem; color: var(--ink-2); }

.fixlist { display: grid; gap: 10px; }
.fixlist-head { display: flex; justify-content: space-between; align-items: baseline; }
.fixlist-head strong { font-family: var(--font-display); font-size: 1.15rem; }
.fix { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line-soft); font-size: 0.92rem; }
.fix .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.fix .dot.r { background: var(--red); }
.fix .dot.a { background: #e0a526; }
.fix .dot.g { background: var(--leaf); }
.fix span { color: var(--ink-3); display: block; font-size: 0.84rem; }

.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.series div { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; text-align: center; }
.series b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.series span { font-size: 0.8rem; color: var(--ink-3); }

/* Heads of department band */
.hod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.hod h2 { margin-top: 14px; }
.hod-copy { display: grid; gap: 16px; }
.hod-copy p { color: #c9d8d2; }
.hod-copy .lead { color: #eef3ef; }

/* Spec map */
.units { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.unit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
.unit-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.unit-code { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink-3); }
.unit h3 { font-size: 1.18rem; }
.unit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.93rem; color: var(--ink-2); }
.unit li { display: flex; gap: 8px; }
.unit li b { font-family: var(--font-mono); font-size: 0.78rem; color: var(--leaf-strong); background: var(--leaf-tint); border-radius: 5px; padding: 1px 6px; height: fit-content; margin-top: 2px; flex: none; }
.unit--practical { background: repeating-linear-gradient(135deg, var(--card), var(--card) 12px, #fbf7ee 12px, #fbf7ee 24px); }
.next-up { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink-2); font-size: 0.95rem; }

/* Students */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.ticks .tick { font-family: var(--font-hand); color: var(--leaf); font-size: 1.7rem; line-height: 1; }
.ticks h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; }
.ticks p { color: var(--ink-2); }
/* Short "This includes" lists (Robbe, 4 Nov 2026): one line per tick, on the course pages, the walls, the sign-up
   page, the plans and the homepage. On a dark box the tick is yellow. */
.ticks--sm { gap: 6px; }
.ticks--sm li { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.ticks--sm .tick { font-size: 1.4rem; }
.section--ink .ticks .tick, .lp-end .ticks .tick { color: var(--hl); }
.section--ink .ticks li, .lp-end .ticks li { color: #dbe7e2; }
.ticks-h { font-weight: 600; }
.signup-copy .ticks li { display: grid; }
.signup-copy .ticks li::before { content: none; }
.card .ticks { margin-top: 4px; }
.calc { font-family: var(--font-body); }
.calc .line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.calc .line:last-child { border-bottom: 0; }
.calc .line span:first-child { color: var(--ink-3); }
.calc .final { font-weight: 600; }
.calc .pen { font-size: 1.25rem; }

/* Teacher block */
.teacher { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
.quote { font-family: var(--font-display); font-size: clamp(1.4rem, 4.6vw, 2rem); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.promise svg { width: 22px; height: 22px; flex: none; color: var(--leaf); margin-top: 1px; }

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; position: relative; }
.plan--now { border: 2px solid var(--leaf); box-shadow: var(--shadow-lg); }
.plan .price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.plan .price--text { font-size: 1.7rem; }
.feature-copy .tag, .plan .tag, .unit .tag { justify-self: start; }
.plan .price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.95rem; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--leaf); font-weight: 700; }
.plan .btn { margin-top: 6px; }
.small { font-size: 0.88rem; color: var(--ink-3); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 600; position: relative; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--leaf); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); }

/* Signup */
.signup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  font: 400 1rem var(--font-body); color: var(--ink);
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { border-color: var(--leaf); outline: 3px solid var(--leaf-tint); outline-offset: 0; }
.roles { border: 0; padding: 0; margin: 0; min-width: 0; }
.roles legend { padding: 0; margin-bottom: 6px; }
.role-options { display: flex; flex-wrap: wrap; gap: 8px; }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.95rem; color: var(--ink-2); transition: background-color .15s ease, border-color .15s ease; }
.role input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.role input:focus-visible + span { outline: 3px solid var(--hl); outline-offset: 2px; }
.role:hover span { border-color: var(--leaf); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--leaf); flex: none; }
.hidden-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-note { font-size: 0.85rem; color: var(--ink-3); }
.form[hidden] { display: none; }
.form-status { font-size: 0.92rem; color: var(--leaf-strong); min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red); }
.signup-copy { display: grid; gap: 16px; }
.signup-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #dbe7e2; }
.signup-copy li { display: flex; gap: 10px; }
.signup-copy li::before { content: "→"; color: var(--hl); font-weight: 700; }

/* Footer */
.site-footer { padding: 44px 0 56px; border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .wrap { display: grid; gap: 22px; }
/* Brand and links side by side when there is room, links below the brand when there is not; the brand never wraps
   (Laura, 10 Nov 2026: at a projector zoom the name broke over two lines into the links). */
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.legal { font-size: 0.84rem; color: var(--ink-3); max-width: 80ch; }

/* Simple page (thanks, privacy, 404) */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 760px; display: grid; gap: 18px; }
.page h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.page h2 { font-size: 1.4rem; margin-top: 12px; }
.page p, .page li { color: var(--ink-2); }

/* Reveal on scroll (only when JS sets .js-reveal) */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- up from tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .section { padding: 96px 0; }
  .hero { padding: 56px 0 88px; }
  .hero-ctas { display: flex; flex-wrap: wrap; }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-review { margin: -10px 0 0 64px; }
  .mock-lesson { margin-right: 64px; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .nav { display: flex; gap: 26px; align-items: center; }
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 56px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pain .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 40px 0; }
  .feature--flip .feature-copy { order: 2; }
  .hod { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
  .units { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .teacher { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .signup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

@media print {
  .site-header, .hero-visual, .form, .btn { display: none !important; }
  body { background: #fff; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* Directed study and online homework are not printable (site.js adds html.no-print) */
@media print {
  html.no-print body > * { display: none !important; }
  html.no-print body::before { content: "This page is done online. Open it on The Chromozone and hand it in there."; display: block; padding: 40px; font: 600 16pt/1.4 sans-serif; }
}

/* Cookie banner for Google Analytics (js/site.js); only shown when GA_ID is set, on public pages */
.cz-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(18, 48, 43, 0.18); font-size: 0.95rem; }
.cz-consent p { margin: 0 0 10px; }
.cz-consent a { color: inherit; }
.cz-consent__row { display: flex; gap: 10px; flex-wrap: wrap; }
/* Mark-scheme guidance lines in the board's style (house rule 50, 12 Nov 2026): ACCEPT, DO NOT ACCEPT, IGNORE, ALLOW ecf, Max N */
.ms-note { list-style: none; font-size: 0.92em; color: var(--ink-2, #3c5852); margin-left: -0.2em; }
.ms-note strong { font-weight: 700; letter-spacing: 0.02em; }

/* Inside Laura's school Moodle (js/lesson-page.js adds .cz-framed, 13 Nov 2026): the student page only */
.cz-framed .skip, .cz-framed .site-header, .cz-framed .site-footer, .cz-framed .fb, .cz-framed .cz-frame-hide { display: none !important; }
.cz-framed body { padding-top: 0; }

/* A student's answer quoted in a "spot the mistakes" or "mark the answer" task (fill-to-50 tasks, 14 Nov 2026) */
.lb blockquote, .lt-slide blockquote { margin: .6em 0; padding: .6em .9em; background: var(--card); border-left: 4px solid var(--hl); border-radius: var(--radius-sm); font-style: italic; }
.lb blockquote p, .lt-slide blockquote p { margin: .3em 0; }

/* Page help hints added by js/site.js (Laura, WEBSITE 19 Nov 2026 01:50 UTC: "every page without having instructions could
   have like 'want to set up a class?' Click here to learn how"); they link to /help/ (tools/build_help.py) */
.help-hint { margin: 12px auto 0; max-width: 1160px; padding: 0 20px; font-size: 0.93rem; }
.help-hint a { font-weight: 700; }
.help-hint__x { margin-left: 8px; background: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; opacity: 0.6; }
main .wrap > .help-hint { max-width: none; padding: 0; margin: 12px 0 10px; }
@media print { .help-hint { display: none; } }
