/* The sign-up front door's landing page (templates/control_landing.html). Self-contained: its own fonts (the app's own files), no framework.
   Design: Fraunces display, Open Sans text; navy, cream, one terracotta accent; one dark stage (the demo) and one dark closing band. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/open-sans-400-700-latin.woff2?v=v27") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Fraunces at its TEXT optical size (opsz 9, instanced from the variable font): plain j, J, a and g, where the display size's curling tails
   looked odd in headings. The app's own stylesheet keeps the display-size file; this one is the front door's only. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/fraunces-text-500-700-latin.woff2?v=v27") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Design tokens (2026-10-27): every colour, type size and section spacing below comes from here.
   Colour: the brand (ink, navy, cream, terracotta), the neutrals and the two accents (green for "done", terracotta for emphasis).
   Type: one scale, 11px to 44px, plus three heading sizes that grow with the screen. Glyphs inside icons (9px, 10px) are not text and keep
   their own size. Spacing: a 4px-based scale, and one vertical rhythm for every full-width section. */
:root {
  --ink: #0F172A; --navy: #1E293B; --cream: #F6F5F3; --stage: #0B0D12;
  --terra: #C2714F; --terra-dark: #A0563A; --terra-deep: #8A4A31; --terra-light: #D98F6E; --terra-soft: rgba(194,113,79,.16);
  --body-soft: rgba(30,41,59,.82); --muted: rgba(30,41,59,.68);
  --line: rgba(15,23,42,.1); --tint: rgba(15,23,42,.06); --edge: rgba(15,23,42,.16);
  --paper: #FBFAF8; --mist: #F3F4FA; --stone: #E8E6E1;
  --slate-200: #E2E8F0; --slate-300: #CBD5E1; --slate-400: #94A3B8; --slate-500: #64748B;
  --green-300: #6EE7B7; --green-500: #10B981; --green-700: #047857; --green-800: #065F46; --green-soft: rgba(16,185,129,.16);
  --text-2xs: 11px; --text-xs: 12px; --text-sm: 13px; --text-md: 14px; --text-base: 15px; --text-body: 16px; --text-lg: 17px; --text-xl: 19px;
  --text-2xl: 20px; --text-3xl: 22px; --text-4xl: 24px; --text-5xl: 26px; --text-6xl: 30px; --text-7xl: 36px; --text-8xl: 44px;
  --h1: clamp(40px, 4.9vw, 62px); --h2: clamp(30px, 3.6vw, 44px); --h-page: clamp(34px, 4.4vw, 48px);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 48px; --space-10: 56px; --space-11: 64px; --space-12: 80px; --section-y: 88px;
  --wrap: 1120px;
}
/* --terra is for large headline words, bars, rings and icons only. Text and anything with white text on it use --terra-dark
   (5.4:1 on white, 5.0:1 on cream: WCAG 2.2 AA); --terra itself is 3.6:1 and 3.3:1, below AA for body-sized text. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Open Sans", system-ui, -apple-system, sans-serif; color: var(--navy); background: var(--cream); line-height: 1.55; }
body { min-height: 100vh; display: flex; flex-direction: column; }   /* a short page (a message, a form) still puts its footer at the bottom */
main { flex: 1 0 auto; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 0; line-height: 1.08; }
h1 { font-size: var(--h1); letter-spacing: -.02em; line-height: 1.02; }
h1 em { font-style: normal; color: var(--terra); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--text-4xl); line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.centre { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--text-sm); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-dark); margin: 0 0 14px; }
.stage .eyebrow, .closing .eyebrow { color: var(--terra-light); }       /* 7.5:1 on the dark bands, where --terra-dark is 3.6:1 */
.lead { font-size: var(--text-xl); line-height: 1.55; color: var(--body-soft); margin-top: 18px; }
.fine { font-size: var(--text-md); color: var(--muted); margin-top: 12px; }
.trust { font-weight: 600; letter-spacing: .01em; }
.plan .trust { margin-top: 10px; font-weight: 500; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }
/* Keyboard focus: one clear ring everywhere, 3px --ink (16:1 on cream), white on the dark bands; a component that draws its own keeps it.
   (2026-10-27 audit: most links and buttons relied on the browser's own ring, which can be faint on cream.) */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.stage :focus-visible, .closing :focus-visible, .foot :focus-visible { outline-color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 24px; font-size: var(--text-body); font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra-dark); color: #fff; box-shadow: 0 8px 24px rgba(160,86,58,.3); }
.btn-primary:hover { background: var(--terra-deep); }
.btn-ghost { background: rgba(255,255,255,.65); color: var(--ink); border-color: var(--edge); }
.btn-ghost:hover { background: #fff; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.07); }
.btn-sm { padding: 9px 16px; font-size: var(--text-base); box-shadow: none; }
.btn-lg { padding: 17px 30px; font-size: var(--text-lg); }
.btn.wide { width: 100%; }
.play-ico { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.link-btn { background: none; border: 0; padding: 0; margin-top: 14px; font: inherit; font-weight: 600; color: var(--terra-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.link-btn span { display: inline-block; transition: transform .15s; }
.link-btn:hover span { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.centre { justify-content: center; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(246,245,243,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.solid { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.lk-tutor { height: 18px; } .lk-m { height: 22px; margin: 0 2px; } .lk-aestry { height: 15px; }
.lockup { flex: none; } .lockup img { max-width: none; flex: none; width: auto; }   /* the width and height attributes give each part its proportions before it loads (no layout shift); the heights above size it */
.nav-links { display: none; gap: 28px; margin-left: auto; font-size: var(--text-base); font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--body-soft); } .nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-login { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-base); font-weight: 600; text-decoration: none; color: var(--body-soft); }
.nav-row .lockup { min-height: 44px; }                                  /* a tap target, not only the 19px of the logo */
.wide-only { display: none; }
@media (min-width: 980px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } }
/* the narrow-screen menu (templates/_landing_nav.html): a <details> below 980px, its panel the nav's full width under the bar */
.nav-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--edge);
  border-radius: 999px; background: rgba(255,255,255,.65); font-size: var(--text-base); font-weight: 600; color: var(--ink); cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu-ico { width: 14px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.nav-menu[open] > summary { background: #fff; border-color: rgba(15,23,42,.28); }
.nav-menu-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 4px 20px 12px; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(15,23,42,.12); }
.nav-menu-panel a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-size: var(--text-lg); font-weight: 600; color: var(--ink);
  text-decoration: none; }
.nav-menu-panel a:last-child { border-bottom: 0; }
@media (min-width: 980px) { .nav-menu { display: none; } }
@media (max-width: 559px) { .nav-login { display: none; } }             /* on a phone, Log in is in the menu */
@media (max-width: 440px) { .nav-row { gap: 10px; } .nav-cta { gap: 8px; } .nav-cta .btn-sm { padding: 9px 13px; white-space: nowrap; }
  .nav-menu > summary { gap: 6px; padding: 0 11px; font-size: var(--text-md); } }
@media (max-width: 360px) {                                              /* the narrowest phones: the icon alone, still named "Menu" */
  .nav-menu > summary { padding: 0 14px; }
  .nav-menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (min-width: 1100px) { .wide-only { display: inline; } }
@media (max-width: 380px) { .nav-row { gap: 10px; } .nav-cta { gap: 10px; } .nav-cta .btn-sm { padding: 8px 12px; font-size: var(--text-md); } .lk-tutor { height: 15px; } .lk-m { height: 19px; } .lk-aestry { height: 13px; } }

/* hero */
.hero { background: radial-gradient(60% 50% at 85% 20%, rgba(196,181,253,.35), transparent 70%), radial-gradient(50% 40% at 10% 90%, rgba(167,243,208,.28), transparent 70%),
  linear-gradient(180deg, var(--cream) 0%, var(--mist) 100%); }
.hero-grid { display: grid; gap: 40px; padding: 56px 20px 72px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; padding: 64px 20px 88px; } }
.hero-copy .lead { max-width: 560px; }
.hero h1 { text-wrap: balance; }
.proof { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--text-md); color: var(--muted); }
.proof li::before { content: "✓"; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--green-soft); color: var(--green-700); font-size: 10px; margin-right: 8px; }
.hero-shot { margin: 0; }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot figcaption { margin-top: 14px; font-size: var(--text-md); color: var(--muted); text-align: center; }
.hero-shot figcaption a { display: inline-block; padding: 4px 0; color: var(--terra-dark); font-weight: 600; white-space: nowrap; }
.hero-frame { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(15,23,42,.22), 0 0 0 1px var(--tint); }
.chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(15,23,42,.15); }
.chrome .url { margin-left: 8px; font-size: var(--text-2xs); color: var(--muted); background: var(--cream); padding: 2px 8px; border-radius: 6px; }
/* the risk reversal, on the trial button */
.risk { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; font-size: var(--text-base); font-weight: 600; color: var(--navy); }
.risk-tick, .ready-ico { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); }
.risk-tick::before { content: "✓"; font-size: var(--text-2xs); font-weight: 800; color: var(--green-700); }

/* the social-proof band under the hero (templates/_proof.html) and its one-line twin on the sign-up page */
.proof { background: var(--cream); border-top: 1px solid var(--line); }
.proof-card { padding: 34px 20px 36px; max-width: 820px; text-align: center; }
.proof-card .eyebrow { margin-bottom: 18px; }
.proof-fig { margin: 0; }
.proof-fig blockquote { margin: 0; text-align: left; color: var(--body-soft); font-size: var(--text-lg); line-height: 1.6; }
.proof-fig blockquote p { margin: 0 0 12px; }
.proof-fig blockquote .proof-lead { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; color: var(--ink); margin-bottom: 14px; }
.proof-fig figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; text-align: left; font-size: var(--text-base); line-height: 1.35; color: var(--muted); }
.proof-fig figcaption b { display: block; color: var(--ink); font-size: var(--text-body); }
.proof-logo { flex: none; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.proof-line { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 0; }
.proof-line .proof-logo { width: 44px; height: 44px; border-radius: 11px; }
.proof-line blockquote { margin: 0; font-size: var(--text-base); line-height: 1.45; color: var(--ink); }
.proof-line footer { margin-top: 4px; font-size: var(--text-md); color: var(--muted); }
.proof-line footer b { color: var(--ink); }
.proof-site { color: inherit; text-decoration: underline; text-decoration-color: var(--slate-400); text-underline-offset: 3px; }
.proof-site:hover, .proof-site:focus-visible { text-decoration-color: currentColor; }
.proof-case { display: grid; grid-template-columns: 96px 1fr; gap: 14px 20px; align-items: center; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }
.proof-case p { margin: 0; color: var(--body-soft); font-size: var(--text-body); line-height: 1.55; }
.proof-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.proof-facts { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.proof-facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: var(--text-md); color: var(--muted); }
.proof-facts b { display: block; font-family: Fraunces, Georgia, serif; font-size: var(--text-4xl); color: var(--ink); }
@media (max-width: 560px) { .proof-case { grid-template-columns: 1fr; justify-items: center; text-align: center; } .proof-facts { grid-template-columns: 1fr; width: 100%; } }

/* the trust strip under the hero (templates/_trust_strip.html) */
.trust-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ts-row { list-style: none; margin: 0 auto; padding: 18px 20px 10px; display: grid; gap: 14px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ts-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ts-row { grid-template-columns: repeat(4, 1fr); } }
.ts-row li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-md); line-height: 1.45; color: var(--muted); }
.ts-row b { display: block; font-size: var(--text-md); color: var(--ink); }
.ts-ico { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cream); color: var(--terra-dark); font-size: var(--text-2xs); font-weight: 800; letter-spacing: .02em; }
.ts-shield::before { content: ""; width: 13px; height: 15px; background: currentColor; clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); }
.ts-mic::before { content: ""; width: 8px; height: 13px; border-radius: 5px; background: currentColor; box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px currentColor; clip-path: inset(-6px -6px 0 -6px); }
.ts-lock::before { content: ""; width: 13px; height: 10px; margin-top: 5px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 -3px var(--cream), 0 -7px 0 -1px currentColor; }
.ts-more { margin: 0 auto; padding: 0 20px 14px; font-size: var(--text-md); text-align: right; }
.ts-more a { display: inline-block; padding: 4px 0; color: var(--terra-dark); font-weight: 600; }

/* the demo stage */
.stage { background: var(--stage); color: var(--slate-300); padding: var(--section-y) 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; }
.stage h2 { color: #fff; } .stage .lead { color: var(--slate-400); } .stage .fine { color: var(--slate-400); }
.demo-box { max-width: 1000px; margin: 44px auto 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #11141b; box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.tab { position: relative; flex: 1 1 150px; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px 12px; color: var(--slate-400); font: inherit; font-size: var(--text-md); font-weight: 600; cursor: pointer; }
.tab:hover { color: #fff; }
.tab .n { display: block; font-size: var(--text-2xs); letter-spacing: .12em; color: var(--slate-400); }
.tab .bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); }
.tab[aria-selected="true"] .bar { background: var(--terra); }
.panel { position: relative; aspect-ratio: 16 / 9; min-height: 180px; background: #000; }     /* the clip and poster swap inside a fixed box: no layout shift */
.panel video { width: 100%; height: 100%; cursor: pointer; }
.bigplay { position: absolute; inset: 0; width: 100%; background: rgba(0,0,0,.22); border: 0; cursor: pointer; display: grid; place-items: center; }
.bigplay span { width: 64px; height: 64px; border-radius: 50%; background: var(--terra); box-shadow: 0 12px 30px rgba(0,0,0,.4); position: relative; }
.bigplay span::after { content: ""; position: absolute; left: 25px; top: 20px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.bigplay[hidden] { display: none; }
.steps { list-style: none; margin: 0; padding: 14px 18px; min-height: 116px; display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--text-md); color: var(--slate-400); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 16px 24px; min-height: 76px; } }   /* min-height: the three steps are re-written per chapter without moving what is below */
.steps li { display: flex; gap: 10px; align-items: flex-start; transition: color .2s; }
.steps li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); margin-top: 7px; }
.steps li[data-on="true"] { color: #fff; } .steps li[data-on="true"]::before { background: var(--terra); }
.steps b { color: var(--slate-400); font-weight: 600; margin-right: 2px; }
.steps button { all: unset; cursor: pointer; border-radius: 6px; } .steps button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.steps button:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
/* The visitor's pace (Task 6): play/pause, back 5 seconds, speed and step by step, under the clip */
.demo-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.dc { border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--slate-200); font: inherit; font-size: var(--text-sm); font-weight: 600; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.dc:hover { background: rgba(255,255,255,.07); } .dc:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.dc[aria-pressed="true"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.dc[hidden] { display: none; }
/* Sound and Full screen: under the clip, never on it (on a phone the pill on the clip hid the screens behind it) */
.dc-sound, .dc-full { position: relative; padding-left: 30px; }
.dc-sound::before { content: ""; position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 5.5h2.5L8 2.5v11L4.5 10.5H2z' fill='%23fff'/%3E%3Cpath d='M10.5 5.5l4 5m0-5l-4 5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.dc-sound[aria-pressed="true"] { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; }
.dc-sound[aria-pressed="true"]::before { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 5.5h2.5L8 2.5v11L4.5 10.5H2z' fill='%23fff'/%3E%3Cpath d='M10.5 5.2a3.6 3.6 0 0 1 0 5.6M12.6 3.2a6.3 6.3 0 0 1 0 9.6' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.dc-full::before { content: ""; position: absolute; left: 11px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 5V1h4M9 1h4v4M13 9v4H9M5 13H1V9' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 640px) { .dc-full { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; } }   /* on a phone, the one to press */
.panel video:fullscreen { object-fit: contain; background: #000; cursor: auto; }
.panel video:-webkit-full-screen { object-fit: contain; background: #000; cursor: auto; }
.demo-next { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px; background: var(--terra-dark); color: #fff;
  font: inherit; font-size: var(--text-base); font-weight: 700; padding: 10px 20px; box-shadow: 0 12px 30px rgba(0,0,0,.45); cursor: pointer; max-width: calc(100% - 32px); }
.demo-next[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* sections */
.section { padding: var(--section-y) 0; }
.section.alt { background: #fff; }
.contrast { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 820px) { .contrast { grid-template-columns: 1fr 1fr; gap: 28px; } }
.col { border-radius: 16px; padding: 28px; }
.col h3 { margin-bottom: 14px; }
.col ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.col.old { background: rgba(15,23,42,.045); color: var(--muted); }
.col.old h3 { color: rgba(15,23,42,.6); }
.col.new { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--terra); box-shadow: 0 20px 50px rgba(15,23,42,.08); }
.verdict { text-align: center; font-family: Fraunces, Georgia, serif; font-size: var(--text-4xl); color: var(--ink); margin: 36px 0 18px; }

.pillar { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
@media (min-width: 900px) { .pillar { grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 72px; } .pillar.flip .pillar-copy { order: 2; } }
.pillar-copy p:not(.eyebrow) { margin-top: 14px; color: var(--body-soft); }
.pillar-img { border-radius: 14px; box-shadow: 0 24px 60px rgba(15,23,42,.14), 0 0 0 1px var(--tint); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green-700); font-size: var(--text-2xs); display: grid; place-items: center; }

.band { background: linear-gradient(180deg, var(--mist), var(--cream)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band p { margin-top: 18px; }
.facts { list-style: none; padding: 0; margin: 36px auto 0; max-width: 980px; display: grid; gap: 14px 28px; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts { grid-template-columns: 1fr 1fr 1fr; } }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--body-soft); line-height: 1.5; }
.facts b { display: block; color: var(--ink); font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: var(--text-xl); margin-bottom: 4px; }
/* the note under the safeguarding cards (control_landing.html #safeguarding): what stays with the tutor, said plainly */
.sg-note { max-width: 980px; margin: 22px auto 0; padding: 16px 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; font-size: var(--text-base); line-height: 1.55; color: var(--body-soft); }
.sg-note b { color: var(--ink); }
.sg-note a { color: var(--terra-dark); font-weight: 600; }

/* pricing */
.toggle { display: inline-flex; margin-top: 24px; padding: 4px; border-radius: 999px; background: var(--tint); }
.tg { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 600; color: rgba(30,41,59,.7); cursor: pointer; }
.tg[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px var(--line); }
.tg .save { font-size: var(--text-xs); color: var(--green-700); margin-left: 6px; }
.plans { display: grid; gap: 20px; margin-top: 40px; align-items: start; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan.popular { border-color: rgba(194,113,79,.5); box-shadow: 0 30px 70px var(--terra-soft); }
@media (min-width: 880px) { .plan.popular { transform: translateY(-10px); } }
.badge { position: absolute; top: -13px; left: 28px; background: var(--terra-dark); color: #fff; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan .tagline { color: var(--muted); }
.price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.amount { font-family: Fraunces, Georgia, serif; font-size: var(--text-8xl); color: var(--ink); line-height: 1; transition: opacity .2s; display: inline-block; min-width: 2.4em; }
.amount.fade { opacity: 0; }
.per { color: var(--muted); }
.eur { color: var(--muted); font-size: var(--text-md); margin-left: auto; white-space: nowrap; }
.eur-note { margin-top: 8px; text-align: center; }
.eur-note > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: var(--text-sm); font-style: italic; font-family: Georgia, serif; }
.eur-note > summary::-webkit-details-marker { display: none; }
.eur-note > p { color: var(--muted); font-size: var(--text-md); margin-top: 6px; }
.plan .btn { margin-top: auto; }
.plan .ticks { margin-bottom: 18px; }
.agency { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.agency h3 { font-size: var(--text-2xl); } .agency p { color: var(--muted); margin-top: 4px; }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terra); font-size: var(--text-3xl); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--body-soft); }

/* closing and footer */
.closing { background: var(--navy); color: var(--slate-200); padding: var(--section-y) 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; }
.closing h2 { color: #fff; } .closing .lead { color: var(--slate-300); } .closing .fine { color: var(--slate-300); } .closing .fine a { color: #fff; }
.foot { background: var(--ink); color: var(--slate-400); font-size: var(--text-md); }
.foot-grid { display: grid; gap: 28px; padding: 48px 20px 28px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
/* footer column titles are h2s (the next level under the page's h1, WCAG 1.3.1) that look like small labels */
.foot .foot-h { margin: 0 0 10px; color: #fff; font-family: inherit; font-weight: 700; line-height: 1.4; font-size: var(--text-sm); letter-spacing: .1em; text-transform: uppercase; }
.foot-grid div a { display: block; text-decoration: none; color: var(--slate-400); padding: 3px 0; } .foot-grid div a:hover { color: #fff; }
.foot-grid .foot-brand a.lockup { display: inline-flex; padding: 0; }   /* the logo keeps its row (the column links above are blocks) */
.foot-brand p { margin-top: 12px; max-width: 320px; }
.foot .lockup img { filter: brightness(0) invert(1); opacity: .9; }
.foot-trust { list-style: none; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid rgba(255,255,255,.1); }
.foot-trust li { display: inline-flex; align-items: center; gap: 9px; color: var(--slate-300); }
.foot-trust a { color: var(--slate-300); text-decoration: none; } .foot-trust a:hover { color: #fff; text-decoration: underline; }
.foot-trust .bi { background: rgba(16,185,129,.2); color: var(--green-300); }
.foot-trust .bi-shield::before { background: var(--green-300); }
.bi-eu::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px dotted currentColor; }
.bi-lock::before { content: ""; width: 10px; height: 8px; margin-top: 4px; border-radius: 2px; background: currentColor; }
.foot-company { margin: 0 auto; padding: 0 20px 18px; font-size: var(--text-sm); color: var(--slate-400); }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 20px 28px; border-top: 1px solid rgba(255,255,255,.1); }
.foot-bar a { color: var(--slate-400); } .foot-bar a:hover { color: #fff; }
.status i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); margin-right: 8px; }


/* ---- 2026-10-13: the audience switch, the content engine, the comparison, the agency calculator, the enquiry dialog ---- */
/* One page, two audiences: the server renders body[data-audience]; the script only flips it (no flash, nothing to hydrate). */
body[data-audience="solo"] .agency-only, body[data-audience="agency"] .solo-only { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.aud { display: inline-flex; padding: 4px; margin: 0 0 26px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.aud-centre { margin: 4px 0 22px; }
.aud-btn { padding: 8px 18px; border-radius: 999px; font-size: var(--text-md); font-weight: 700; text-decoration: none; color: var(--muted); white-space: nowrap; }
.aud-btn:hover { color: var(--ink); }
.aud-btn[aria-current="true"] { background: var(--ink); color: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.18); }
.aud-btn:focus-visible, .eng-tab:focus-visible, .chip:focus-visible, .qq-o:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1100px) { .hero-copy .badges { flex-wrap: nowrap; } }
.badges li { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.78);
  border: 1px solid var(--line); font-size: var(--text-md); font-weight: 600; color: var(--ink); }
.bi { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green-700); font-size: 10px; font-weight: 800; }
.bi-shield::before { content: ""; width: 10px; height: 12px; background: var(--green-700); clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); }
.bi-zero { background: var(--terra-soft); color: var(--terra-dark); font-size: 9px; }
.bi-tick::before { content: "✓"; font-size: var(--text-xs); }

/* the content engine */
.engine { background: #fff; border-bottom: 1px solid var(--line); }
.stats { list-style: none; padding: 0; margin: 34px auto 0; max-width: 900px; display: grid; gap: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats li { text-align: center; padding: 16px; border-radius: 14px; background: var(--cream); color: var(--muted); font-size: var(--text-md); }
.stats b { display: block; font-family: Fraunces, Georgia, serif; font-size: var(--text-5xl); color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.eng { margin: 36px auto 0; max-width: 1040px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--paper), var(--mist));
  box-shadow: 0 30px 80px rgba(15,23,42,.10); overflow: hidden; }
.eng-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: #fff; }
.eng-tab { text-align: left; background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 16px; font: inherit; font-weight: 700; font-size: var(--text-base); color: rgba(30,41,59,.65); cursor: pointer; }
.eng-tab .n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: rgba(15,23,42,.07); font-size: var(--text-xs); }
.eng-tab small { display: block; margin-top: 2px; font-weight: 500; font-size: var(--text-sm); color: var(--muted); }
.eng-tab:hover { color: var(--ink); }
.eng-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--terra); background: var(--paper); }
.eng-tab[aria-selected="true"] .n { background: var(--terra-dark); color: #fff; }
@media (max-width: 600px) { .eng-tab { padding: 12px 10px; font-size: var(--text-md); } .eng-tab small { display: none; } .eng-tab .n { display: grid; margin: 0 0 4px; } }
.eng-panel { padding: 24px; display: grid; gap: 24px; }
@media (min-width: 860px) { .eng-panel { grid-template-columns: 5fr 7fr; padding: 32px; gap: 32px; } #eng-report { grid-template-columns: 1fr; } }
.eng-panel[hidden] { display: none; }
.eng-panel h3 { font-size: var(--text-3xl); margin-bottom: 8px; }
.plan-form { display: flex; flex-direction: column; gap: 6px; }
.plan-form label { margin-top: 12px; font-size: var(--text-md); font-weight: 700; color: var(--ink); }
.plan-form select, .calc input[type="number"], .modal-form input:not([type="checkbox"]), .modal-form select, .modal-form textarea, .ff input:not([type="checkbox"]), .ff select, .ff textarea {
  font: inherit; font-size: var(--text-body); padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(15,23,42,.2); background: #fff; color: var(--ink); width: 100%; }
.plan-form select:focus, .calc input:focus, .modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus, .ff input:focus, .ff select:focus, .ff textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--terra); }
.plan-form .btn { margin-top: 14px; align-self: flex-start; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 12px 30px var(--tint); animation: rise .25s ease-out; }
.plan-card[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .plan-card, .qq-why[open] p { animation: none; } }
.pc-head { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-head span { font-size: var(--text-xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--navy); }
.pc-head span:first-child { background: rgba(194,113,79,.14); color: var(--terra-dark); }
.plan-card h4, .plan-card .pc-h { margin: 12px 0 0; font-family: Fraunces, Georgia, serif; font-size: var(--text-3xl); font-weight: 600; color: var(--ink); }
.pc-k { margin: 16px 0 6px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pc-obj { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pc-act { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pc-act li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--cream); font-weight: 600; color: var(--ink); font-size: var(--text-base); }
.pc-act span { flex: none; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; }
.pc-note { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--cream); color: var(--muted); font-size: var(--text-md); }
.pc-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }

.chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.chip { font: inherit; font-size: var(--text-md); font-weight: 600; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--edge); background: #fff; color: var(--navy); cursor: pointer; text-align: left; }
.chip::before { content: "›"; color: var(--terra); font-weight: 800; margin-right: 8px; }
.chip[aria-pressed="true"] { border-color: var(--terra); background: rgba(194,113,79,.08); color: var(--ink); }
.quiz-screen { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(15,23,42,.10); }
.quiz { padding: 18px 20px 20px; display: grid; gap: 14px; }
.quiz[hidden] { display: none; }
.quiz-title { font-family: Fraunces, Georgia, serif; font-size: var(--text-2xl); color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.quiz-title span { font-family: "Open Sans", sans-serif; font-size: var(--text-sm); color: var(--muted); }
.qq { padding-top: 12px; border-top: 1px solid var(--line); }
.qq-q { font-weight: 600; color: var(--ink); }
.qq-q b { color: var(--terra-dark); }
.qq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.qq-o { font: inherit; font-size: var(--text-base); padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(15,23,42,.14); background: var(--cream); color: var(--ink); cursor: pointer; text-align: left; }
.qq-o:hover { border-color: rgba(15,23,42,.35); }
.qq-o[data-picked="right"] { background: rgba(16,185,129,.14); border-color: var(--green-500); color: var(--green-800); }
.qq-o[data-picked="wrong"] { background: rgba(239,68,68,.10); border-color: #ef4444; color: #991b1b; }
.qq-o[data-picked]::after { margin-left: 8px; font-weight: 800; }
.qq-o[data-picked="right"]::after { content: "✓"; } .qq-o[data-picked="wrong"]::after { content: "✗"; }
.qq-why { margin-top: 8px; font-size: var(--text-md); color: var(--muted); }
.qq-why summary { cursor: pointer; font-weight: 600; color: var(--terra-dark); width: max-content; }
.qq-why p { margin-top: 6px; } .qq-why[open] p { animation: rise .2s ease-out; }

.rep-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .rep-grid { grid-template-columns: 1fr 1.1fr .9fr; align-items: start; } }
.rep-voice blockquote { margin: 0 0 12px; padding: 16px; border-radius: 14px; background: var(--ink); color: var(--slate-200); font-size: var(--text-base); line-height: 1.6; min-height: 150px; }
.rep-voice blockquote.typing::after { content: "▍"; color: var(--terra); animation: blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .rep-voice blockquote.typing::after { animation: none; } }
@keyframes blink { 50% { opacity: 0; } }
.mic { width: 10px; height: 14px; border-radius: 6px; background: currentColor; display: inline-block; }
.rep-note dl { margin: 0; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; gap: 4px; transition: opacity .3s; }
.rep-note dl.pending { opacity: .25; }
.rep-note dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra-dark); margin-top: 8px; }
.rep-note dt:first-child { margin-top: 0; }
.rep-note dd { margin: 0; color: var(--navy); font-size: var(--text-base); }
.rep-pdf { border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(15,23,42,.12); padding: 16px; font-size: var(--text-sm); position: relative; }
.rep-pdf::before { content: ""; position: absolute; right: 0; top: 0; border-left: 18px solid var(--stone); border-bottom: 18px solid var(--stone); border-top: 18px solid var(--cream); border-right: 18px solid var(--cream); border-radius: 0 10px 0 0; }
.pdf-head { display: grid; border-bottom: 2px solid var(--terra); padding-bottom: 8px; }
.pdf-head b { font-family: Fraunces, Georgia, serif; font-size: var(--text-lg); color: var(--ink); } .pdf-head span { color: var(--muted); }
.pdf-body { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
/* the report's own pie: app/progress.py SLICES, the same four levels and colours */
.pie { flex: none; width: 70px; height: 70px; border-radius: 50%; background: conic-gradient(#9FC5E8 0 35%, #B6D7A8 35% 65%, #FBB3EC 65% 85%, #B4A7D6 85% 100%); }
.pdf-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--navy); }
.pdf-body i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.k1 { background: #9FC5E8; } .k2 { background: #B6D7A8; } .k3 { background: #FBB3EC; } .k4 { background: #B4A7D6; }
.pdf-text { color: var(--navy); line-height: 1.5; }
.pdf-file { margin-top: 10px; font-size: var(--text-xs); font-weight: 700; color: var(--terra-dark); }

/* the comparison */
.cmp-wrap { margin: 32px auto 0; max-width: 1000px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.08); }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: var(--text-base); line-height: 1.5; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-family: Fraunces, Georgia, serif; font-size: var(--text-xl); color: var(--ink); background: var(--cream); }
.cmp thead th.us { background: var(--ink); color: #fff; }
.cmp tbody th { font-weight: 700; color: var(--ink); width: 28%; }
.cmp td.us { background: rgba(194,113,79,.06); color: var(--ink); font-weight: 600; }
.cmp td { color: var(--body-soft); width: 36%; }
.cmp tbody tr { transition: background .15s; }
.cmp tbody tr:hover td:not(.us), .cmp tbody tr:hover th { background: var(--paper); }
.yes { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green-500); margin-right: 8px; vertical-align: -3px; }
.yes::before { content: "✓"; color: #fff; font-size: var(--text-2xs); font-weight: 800; }
@media (max-width: 720px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp thead { display: none; }
  .cmp tbody tr { border-bottom: 1px solid var(--line); padding: 4px 0; }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td { border: 0; padding: 8px 16px; }
  .cmp tbody th, .cmp tbody td { width: 100%; }
  .cmp tbody th { padding-top: 14px; }
  .cmp td::before { content: attr(data-label); display: block; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .cmp td.us::before { color: var(--terra-dark); }
}

/* agency pricing and the savings calculator */
.ag-grid { display: grid; gap: 24px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .ag-grid { grid-template-columns: 5fr 6fr; gap: 32px; } }
.ag-plan { transform: none !important; }
.amount-word { font-size: var(--text-7xl); min-width: 0; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px rgba(15,23,42,.08); }
.calc h3 { margin-bottom: 8px; }
.seg { border: 0; padding: 4px; margin: 18px 0 6px; display: flex; border-radius: 12px; background: var(--tint); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1 1 0; text-align: center; padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: var(--text-md); cursor: pointer; color: var(--muted); }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 2px 8px var(--line); }
.seg input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.calc-fields { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 560px) { .calc-fields { grid-template-columns: 1fr 1fr; } .calc-fields .fine { grid-column: 1 / -1; } }
.calc-fields label { display: grid; gap: 6px; font-size: var(--text-md); font-weight: 700; color: var(--ink); }
.calc .in { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.calc[data-mode="percent"] .when-pupil, .calc[data-mode="per_pupil"] .when-percent { display: none; }
.calc:has(#m-percent:checked) .when-percent, .calc:has(#m-pupil:checked) .when-pupil { display: grid; }
.calc:has(#m-percent:checked) .when-pupil, .calc:has(#m-pupil:checked) .when-percent { display: none; }
.calc-out { margin-top: 20px; padding: 22px; border-radius: 14px; background: var(--ink); color: var(--slate-300); display: grid; gap: 8px; }
.calc-out .k { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); }
.calc-out .big { font-family: Fraunces, Georgia, serif; font-size: clamp(40px, 6vw, 56px); line-height: 1; color: #fff; }
.calc-out b { color: var(--green-300); }
.calc-out .fine { color: var(--slate-400); margin-top: 0; }
.calc-out .btn { margin-top: 8px; }

/* the enquiry dialog */
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 20px; padding: 28px; background: #fff; color: var(--navy);
  box-shadow: 0 40px 120px rgba(15,23,42,.45); overflow: auto; }
.modal::backdrop { background: rgba(11,13,18,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal h2 { font-size: var(--text-6xl); }
.modal .muted { margin-top: 8px; }
.modal-x { position: absolute; right: 14px; top: 14px; margin: 0; }
.modal-x button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tint); font-size: var(--text-3xl); line-height: 1; cursor: pointer; color: var(--ink); }
.modal-form { display: grid; gap: 6px; margin-top: 16px; }
.modal-form label { margin-top: 8px; font-size: var(--text-md); font-weight: 700; color: var(--ink); }
.modal-form .btn { margin-top: 16px; }
.modal-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; text-align: left; color: var(--navy); margin-top: 12px; line-height: 1.5; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hero-demo { margin-top: 16px; font-size: var(--text-base); font-weight: 600; }
.hero-demo a { color: var(--terra-dark); display: inline-flex; align-items: center; gap: 8px; }

/* progress at a glance (the sample chart is app/progress.py's own SVG) */
.progress-sec { background: var(--cream); }
.prog-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .prog-grid { grid-template-columns: 5fr 6fr; gap: 56px; } }
.prog-copy .ticks { margin-top: 22px; }
.prog-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(15,23,42,.08); }
.prog-pie { margin: 14px 0 6px; }
.prog-pie svg { width: 100%; height: auto; display: block; }
.prog-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.prog-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--cream); font-size: var(--text-md); color: var(--navy); }
.lv { flex: none; font-size: var(--text-xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #1d2d3e; white-space: nowrap; }
.lv1 { background: #B4A7D6; } .lv2 { background: #FBB3EC; } .lv3 { background: #B6D7A8; } .lv4 { background: #9FC5E8; }
@media (max-width: 480px) { .prog-rows li { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* the guide pages (templates/control_guide.html) */
.guide-hero { background: radial-gradient(60% 50% at 85% 20%, rgba(196,181,253,.3), transparent 70%), linear-gradient(180deg, var(--cream) 0%, var(--mist) 100%); padding: 64px 0 56px; }
.guide-hero h1 { max-width: 820px; font-size: clamp(36px, 4.4vw, 56px); }
.guide-hero .lead { max-width: 680px; }
.guide-secs { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 900px) { .guide-secs { grid-template-columns: repeat(3, 1fr); } }
.guide-sec { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.guide-sec h2 { font-size: var(--text-3xl); line-height: 1.25; }
.guide-sec p { margin-top: 10px; color: var(--body-soft); }
.guide-ex { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 760px) { .guide-ex { grid-template-columns: repeat(3, 1fr); } }
.guide-ex li { list-style: none; }
.guide-ex ul { padding: 0; margin: 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 18px; font-weight: 600; }
.guide-links a { color: var(--terra-dark); }
.guide-ex-head { margin-top: 56px; }
/* a guide section that is not built yet (control_guide.html, the SEND page): a plain tag, no date */
.soon { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--mist); color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: var(--text-sm); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.guide-soon { border-style: dashed; }
/* the source of the objectives and the lessons (templates/_curriculum_credit.html) */
.credit { max-width: 820px; margin: 22px auto 0; text-align: center; color: var(--muted); }
/* the design partners under the founder's quote (templates/_proof.html), drawn only once one is real */
.partners { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.partners-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; text-align: left; }
@media (min-width: 760px) { .partners-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.partners-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.partners-list blockquote { margin: 0; color: var(--body-soft); font-size: var(--text-md); line-height: 1.5; }
.partners-list blockquote p { margin: 0; }
.partners-who { margin: 10px 0 0; color: var(--muted); font-size: var(--text-sm); }
.partners-who b { display: block; color: var(--ink); font-size: var(--text-base); }

/* the small pages: sign up, find my app, agencies, the message pages (templates/control_signup.html and friends) */
.fp { padding: var(--space-10) 0 var(--space-11); background: radial-gradient(60% 50% at 85% 10%, rgba(196,181,253,.3), transparent 70%), linear-gradient(180deg, var(--cream) 0%, var(--mist) 100%); }
/* on a phone the form follows the headline, before "what happens next"; on a desktop the two copy blocks share the left column */
.fp-grid { display: grid; gap: 28px; align-items: start; grid-template-areas: "copy" "card" "after"; }
@media (min-width: 900px) { .fp-grid { grid-template-columns: 1fr 1fr; gap: 28px 64px; grid-template-areas: "copy card" "after card"; } }
.fp-grid > .fp-copy { grid-area: copy; } .fp-grid > .fcard { grid-area: card; } .fp-grid > .fp-after { grid-area: after; }
.fp h1 { font-size: var(--h-page); }
.fp h2 { font-size: clamp(26px, 3vw, 34px); }
.fp .lead { margin-top: 14px; }
.fp-wide { max-width: 760px; margin-bottom: 40px; }
.fp-one { max-width: 560px; }
.fp-one .fcard { margin-top: 22px; }
.fp-one .fcard p + p { margin-top: 12px; }
.fp-copy .badges { margin-top: 26px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px rgba(15,23,42,.08); }
.ff { display: grid; gap: 6px; }
.ff label { margin-top: 10px; font-size: var(--text-md); font-weight: 700; color: var(--ink); }
.ff label:first-child { margin-top: 0; }
.ff-address { display: grid; gap: 6px; border: 0; margin: 10px 0 0; padding: 0; min-width: 0; }
.ff-address legend { font-size: var(--text-md); font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 2px; }
.ff-address legend .muted { font-weight: 400; }
.ff-address label { font-weight: 600; }
.ff label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: var(--text-md); color: var(--navy); margin-top: 14px; line-height: 1.5; }
.ff label.check a { color: var(--terra-dark); }
.ready { display: flex; align-items: center; gap: 9px; margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--cream); font-size: var(--text-body); font-weight: 600; color: var(--navy); }
.ready-ico::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--green-700); }
.ff input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--terra); }
.ff .btn { margin-top: 16px; }
.ff .fine { margin-top: 12px; }
.flash-err { background: #fbe5e2; color: #8f2c24; border: 1px solid rgba(163,52,43,.25); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: var(--text-base); }
.g-start { margin-bottom: 4px; }
.ff-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; color: var(--muted); font-size: var(--text-md); }
.ff-or::before, .ff-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.ff-fixed { margin: 0 0 4px; font-size: var(--text-base); color: var(--navy); overflow-wrap: anywhere; }
.fp-links { margin-top: 28px; font-size: var(--text-base); color: var(--muted); text-align: center; }
.fp-links a { color: var(--terra-dark); font-weight: 600; }
.next { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.next li { display: flex; gap: 12px; align-items: flex-start; color: var(--body-soft); font-size: var(--text-base); line-height: 1.5; }
.next b { color: var(--ink); }
.next .n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--terra-dark); color: #fff; font-size: var(--text-sm); font-weight: 700; margin-top: 1px; }
.ag-sizes { margin-top: 0; max-width: 780px; margin-left: auto; margin-right: auto; }
@media (min-width: 880px) { .ag-sizes { grid-template-columns: repeat(2, 1fr); } }
.ag-plan .price, .ag-sizes .price { flex-wrap: wrap; }                  /* the euro line sits under the pound price */
.ag-plan .eur, .ag-sizes .eur { flex-basis: 100%; margin-left: 0; font-size: var(--text-sm); }
.plan .price + .seats { font-size: var(--text-2xl); margin-top: 2px; }
.plan .seats { font-family: Fraunces, Georgia, serif; font-size: var(--text-5xl); color: var(--ink); line-height: 1.15; margin-top: 6px; }
.ag-always { max-width: 820px; margin: 28px auto 0; display: grid; gap: 8px 24px; }
@media (min-width: 720px) { .ag-always { grid-template-columns: 1fr 1fr; } }
#talk { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.fp-err .wrap { display: flex; flex-direction: column; }                 /* sent back with an error: the form and its message come first */
.fp-err #talk { order: -1; margin: 0 0 48px; padding-top: 0; border-top: 0; }
.fp-err .ag-sizes { margin-top: 0; }

/* getting started: three true steps (templates/control_landing.html #start) */
.steps3 { list-style: none; padding: 0; margin: 36px auto 0; max-width: 980px; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.steps3 .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--terra-dark); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps3 h3 { font-size: var(--text-2xl); }
.steps3 p { margin-top: 8px; color: var(--body-soft); }

/* --- Cookie choices (templates/_consent_banner.html, _consent_form.html, control_cookie_settings.html; static/consent.js; app/control/consent.py)
   Accept all, Reject all and Manage preferences (Save preferences in the panel) share one style on purpose: refusing must be as easy and as
   visible as agreeing. The banner is a compact card at the foot of the screen; on a phone: the text, then Accept all and Reject all side by side,
   then Manage preferences. Switches: off is slate (4.8:1 on white), on is --terra-dark (5.4:1). Focus is a 3px --ink ring. */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 1080px; margin: 0 auto; background: #fff; color: var(--ink);
  border: 1px solid rgba(15,23,42,.12); border-radius: 16px; box-shadow: 0 12px 40px rgba(15,23,42,.18); padding: 14px 18px; font-size: var(--text-md); line-height: 1.45; }
.consent-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.consent-text { flex: 1 1 380px; }
.consent-h, .consent-text p { display: inline; }
.consent-h { font: inherit; font-weight: 700; color: var(--ink); margin: 0 4px 0 0; }
.consent a, .consent-panel .fine a { color: var(--terra-deep); text-decoration: underline; text-underline-offset: 2px; }
.consent-text a { white-space: nowrap; }
.consent-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.consent-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); font: inherit; font-size: var(--text-md); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; }
.consent .consent-btn { color: var(--ink); text-decoration: none; }        /* Manage preferences is a link, and looks like its two neighbours */
.consent-btn:hover, .consent .consent-btn:hover { background: var(--ink); color: #fff; }
.consent-btn:focus-visible, .consent a:focus-visible, .cp-switch:focus-visible, .consent-panel a:focus-visible, .consent-panel .modal-x button:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; }
  .consent-actions { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions .consent-btn:last-child { grid-column: 1 / -1; }
}

/* the preferences panel, and the same form on /cookie-settings */
.consent-panel { width: min(560px, calc(100vw - 24px)); padding: 26px; }
.consent-panel h2 { font-size: var(--text-5xl); padding-right: 44px; }
.cp-list { list-style: none; margin: 16px 0 0; padding: 0; }
.cp-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cp-name { font-size: var(--text-body); font-weight: 700; color: var(--ink); }
.cp-always { margin-left: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.cp-desc { grid-column: 1; font-size: var(--text-md); line-height: 1.45; color: var(--muted); }
.cp-switch { grid-column: 2; grid-row: 1 / span 2; appearance: none; -webkit-appearance: none; position: relative; width: 48px; height: 28px; margin: 0;
  border-radius: 999px; background: var(--slate-500); cursor: pointer; transition: background .15s; }
.cp-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.3); transition: transform .15s; }
.cp-switch:checked { background: var(--terra-dark); }
.cp-switch:checked::before { transform: translateX(20px); }
.cp-switch:disabled { cursor: default; opacity: .6; }
.cp-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.cp-actions .consent-btn { padding-left: 10px; padding-right: 10px; }
@media (max-width: 480px) { .cp-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cp-switch, .cp-switch::before { transition: none; } }
.consent-saved { background: #ecfdf5; border: 1px solid var(--green-500); color: var(--green-800); padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }

/* --- Legal pages (templates/legal_page.html, legal_index.html; app/legal/) ---------------------------------------------------------------------
   The website's own type at a reading measure: Open Sans 17px at 1.7, about 70 characters a line; Fraunces for the title and the section
   headings. The contents list sits beside the text, and stays in view, on a wide screen, and above it on a narrow one. Links are underlined:
   inside running text, colour alone is not enough to tell them apart. Section headings stop clear of the sticky nav when jumped to. */
.lg-page { padding: var(--space-8) 0 var(--space-12); }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.lg-head h1 { font-size: var(--h-page); }
.lg-crumb { margin-bottom: 14px; font-size: var(--text-md); font-weight: 600; }
.lg-crumb a { color: var(--terra-dark); text-decoration: none; }
.lg-crumb a:hover { text-decoration: underline; }
.lg-updated { margin-top: 14px; font-size: var(--text-base); color: var(--muted); }
.lg-draft { margin-top: 16px; padding: 10px 14px; border: 1px solid #f2ddbc; border-radius: 10px; background: #fff7ea; color: #8c4c07; font-weight: 600; }
.lg-label { font-family: inherit; font-size: var(--text-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.lg-toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: var(--text-base); }
.lg-toc ul { list-style: none; margin: 0; padding: 0; }
.lg-toc a { display: block; padding: 6px 0; color: var(--navy); text-decoration: none; line-height: 1.4; }
.lg-toc a:hover { color: var(--ink); text-decoration: underline; }
.lg-doc { max-width: 68ch; font-size: var(--text-lg); line-height: 1.7; color: var(--navy); overflow-wrap: break-word; }
.lg-doc > * + * { margin-top: 1em; }
.lg-doc h2 { font-size: var(--text-5xl); line-height: 1.25; margin-top: 2em; scroll-margin-top: 88px; }
.lg-doc h3 { font-size: var(--text-2xl); line-height: 1.3; margin-top: 1.6em; scroll-margin-top: 88px; }
.lg-doc h2 + *, .lg-doc h3 + * { margin-top: .6em; }
.lg-doc ul, .lg-doc ol { padding-left: 1.3em; }
.lg-doc li + li { margin-top: .4em; }
.lg-doc strong { color: var(--ink); }
.lg-doc a, .lg-after a, .lg-plain-foot a { color: var(--terra-deep); text-decoration: underline; text-underline-offset: 2px; }
.lg-doc code { font-size: .86em; padding: 1px 5px; border-radius: 4px; background: var(--tint); overflow-wrap: anywhere; }
.lg-doc mark.confirm { background: #fff1c2; color: #6b4a00; padding: 0 2px; border-radius: 3px; }
.lg-table { overflow-x: auto; border-radius: 10px; }
.lg-table:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.lg-doc table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; font-size: var(--text-base); line-height: 1.5; }
.lg-doc th, .lg-doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.lg-doc th { background: var(--paper); color: var(--ink); font-weight: 700; }
.lg-after { max-width: 68ch; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--text-base); }
.lg-after p { margin-bottom: 22px; }
.lg-after ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (min-width: 1000px) {
  .lg-grid { grid-template-columns: minmax(0, 68ch) 260px; grid-template-areas: "head toc" "doc toc" "after toc"; justify-content: space-between;
    column-gap: 64px; row-gap: 32px; }
  .lg-head { grid-area: head; } .lg-doc { grid-area: doc; } .lg-after { grid-area: after; }
  .lg-toc { grid-area: toc; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto;
    background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 4px 0 4px 20px; }
}
/* the list of documents */
.lg-index { max-width: 920px; }
.lg-index h1 { font-size: var(--h-page); }
.lg-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .lg-list { grid-template-columns: 1fr 1fr; } }
.lg-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  color: var(--navy); text-decoration: none; transition: border-color .15s; }
.lg-list a:hover { border-color: rgba(15,23,42,.28); }
.lg-list strong { font-family: Fraunces, Georgia, serif; font-size: var(--text-3xl); font-weight: 600; color: var(--ink); }
.lg-list span { font-size: var(--text-base); line-height: 1.5; color: var(--body-soft); }
.lg-list .lg-list-date { margin-top: auto; padding-top: 6px; font-size: var(--text-sm); color: var(--muted); }
/* inside a customer's app: a plain header and footer in place of the website's */
.lg-plain { border-bottom: 1px solid var(--line); background: #fff; }
.lg-plain .wrap { display: flex; align-items: center; height: 64px; }
.lg-plain-foot { border-top: 1px solid var(--line); padding: 20px 0; font-size: var(--text-md); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .lg-list a { transition: none; } }
/* the free tools (templates/control_free_tools.html): the hub, the curriculum browser and the invoice template */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: var(--text-md); color: var(--muted); }
.crumbs a { color: var(--terra-dark); }
.ft-cards .guide-sec h2 a { color: inherit; text-decoration: none; }
.ft-cards .btn { margin-top: 16px; }
.ft-grades { display: grid; gap: 32px; }
@media (min-width: 900px) { .ft-grades { grid-template-columns: 1fr 1fr; } }
.ft-grades h2 { font-size: var(--text-5xl); }
.ft-grades ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ft-grades a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); text-decoration: none; }
.ft-grades a:hover { border-color: var(--edge); }
.ft-grades a b { color: var(--ink); }
.ft-grades a span { font-size: var(--text-md); color: var(--muted); text-align: right; }
.ft-curr { display: grid; gap: 28px; }
@media (min-width: 980px) {
  .ft-curr { grid-template-columns: 240px 1fr; }
  .ft-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; }
}
.ft-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: var(--text-md); }
.ft-toc a { color: var(--body-soft); }
.ft-topics { display: grid; gap: 20px; min-width: 0; }
.ft-topic { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; scroll-margin-top: 88px; }
.ft-topic h2 { font-size: var(--text-3xl); line-height: 1.25; }
.ft-obj { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--body-soft); }
.ft-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ft-acts span { font-size: var(--text-xs); padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-800); }
.ft-cta { background: var(--ink); color: var(--slate-200); border-radius: 16px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.ft-topics .ft-cta { margin-top: 0; }
.ft-cta p { margin: 0; flex: 1 1 320px; }
.ft-cta b { color: #fff; }
.ft-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.ft-pager { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.ft-pager a { color: var(--terra-dark); }
.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
/* The invoice template: the app's own invoice (invoice_print.html) in its own colours, a single stacked sheet that reads the same at any width. */
.ft-info { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; background: rgba(255,255,255,.65); border: 1px solid var(--edge); color: var(--ink); cursor: pointer; }
.ft-info:hover, .ft-info[aria-expanded="true"] { background: #fff; color: var(--terra-dark); }
.ft-note { max-width: 560px; margin: 0 auto 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: var(--text-md); color: var(--body-soft); }
.ft-note[hidden] { display: none; }
.ft-note p { margin: 0; }
.ft-note p + p { margin-top: 8px; }
.ft-actions { max-width: 560px; margin-left: auto; margin-right: auto; align-items: center; }
.inv { --i-ink: #1b2a2e; --i-muted: #64777c; --i-line: #d9e2e5; --i-accent: #35798a; --i-dark: #2a616f; --i-soft: #e6f2f4;
  max-width: 560px; margin: 18px auto 0; background: #fff; border-radius: 10px; padding: 30px 24px 26px; color: var(--i-ink); font: var(--text-base)/1.55 Helvetica, Arial, sans-serif;
  box-shadow: 0 12px 30px var(--tint); }
.inv input, .inv textarea, .inv select { width: 100%; box-sizing: border-box; font: inherit; color: var(--i-ink); background: transparent; border: 1px dashed var(--i-line); border-radius: 6px; padding: 6px 8px; }
.inv input:focus, .inv textarea:focus, .inv select:focus { outline: 2px solid var(--i-accent); outline-offset: 1px; border-style: solid; }
.inv textarea { resize: none; overflow: hidden; }
.inv label { display: block; }
.inv-logo { text-align: center; margin-bottom: 8px; }
.inv-logo img { display: block; margin: 0 auto; width: 64px; height: auto; }
.inv-title { margin: 2px 0 18px; text-align: center; font-size: var(--text-5xl); font-weight: 600; letter-spacing: .01em; }
.inv-k, .inv-tag { display: block; font-size: var(--text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--i-muted); margin-bottom: 2px; }
.inv-tag { color: var(--i-accent); margin-bottom: 4px; }
.inv-due { text-align: center; padding: 4px 0 20px; }
.inv-due .inv-k { font-size: var(--text-xs); margin: 0; }
.inv-figure { margin: 0; font-size: var(--text-7xl); font-weight: 700; line-height: 1.2; color: var(--i-dark); font-variant-numeric: tabular-nums; }
.inv-sub { margin: 2px 0 0; min-height: 1.55em; font-size: var(--text-sm); color: var(--i-muted); }
.inv-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; background: var(--i-soft); border-radius: 10px; padding: 16px 18px; margin: 0 0 18px; }
.inv-band input { background: rgba(255,255,255,.6); }
.inv-parties { display: grid; gap: 16px; padding: 4px 0 18px; }
.inv-rate { margin: 0 0 8px; }
.inv-rate-in { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.inv-lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--i-soft); }
.inv-lines li { display: grid; grid-template-columns: 1fr 72px 96px; gap: 4px 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--i-line); }
.inv-desc { grid-column: 1 / -1; font-weight: 700; }
.inv-calc { font-size: var(--text-xs); color: var(--i-muted); }
.inv-hours { text-align: right; grid-column: 2; }
.inv-calc { grid-column: 1; }
.inv-amt { grid-column: 3; text-align: right; font-weight: 700; color: var(--i-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-add { margin: 10px 0 0; }
.inv-totalrow { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; padding-top: 10px; border-top: 2px solid var(--i-soft); font-size: var(--text-body); font-weight: 700; color: var(--i-dark); }
.inv-totalrow b { font-variant-numeric: tabular-nums; }
.inv-thanks { display: block; margin: 26px 0 4px; text-align: center; font-weight: 600; font-size: var(--text-sm); color: var(--i-muted); }
.inv-paytitle { text-align: center; font-weight: 600; margin: 22px 0 10px; }
.inv-pay { background: var(--i-soft); border-radius: 10px; padding: 14px 16px; }
.inv-pay .inv-paytitle { margin: 0 0 8px; color: var(--i-dark); }
.inv-pay textarea { background: rgba(255,255,255,.6); font-size: var(--text-sm); }
.inv-foot { margin: 22px 0 0; text-align: center; font-size: var(--text-2xs); color: var(--i-muted); }
.inv-foot a { color: inherit; text-decoration: none; }
.inv-foot a:hover { text-decoration: underline; }
@media (max-width: 480px) { .inv { padding: 24px 16px 22px; } .inv-figure { font-size: var(--text-6xl); } }
@media print {
  .nav, .foot, .no-print, .ft-hero, .skip, .consent { display: none !important; }
  body, .section.alt { background: #fff; }
  .section { padding: 0; }
  .inv { border-radius: 0; box-shadow: none; padding: 0; margin: 0 auto; }
  .inv input, .inv textarea, .inv select { border: 0; background: none !important; padding: 2px 0; resize: none; }
  .inv input::placeholder, .inv textarea::placeholder { color: transparent; }
  .inv select { appearance: none; }
  .inv-band input { text-align: left; }
  .inv-lines li.is-empty { display: none; }
  .inv-hours { display: none; }
  .inv-calc { grid-column: 1 / 3; }
  .inv-band, .inv-pay, .inv-due, .inv-totalrow { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* the comparison pages (templates/control_compare.html) */
.cmp-wrap .fine a { color: var(--terra-dark); }
.cmp-more { display: grid; gap: 20px; max-width: 1000px; margin: 32px auto 0; }
@media (min-width: 900px) { .cmp-more { grid-template-columns: 1fr 1fr; } }
.guide-sec h2 a { color: inherit; text-decoration: none; }
.guide-sec .btn { margin-top: 8px; }
.pc-foot a { color: var(--terra-dark); font-weight: 600; }
.plan-form .muted a { color: var(--terra-dark); }
.sg-more { margin-top: 18px; }
.facts-short li { padding: 16px 18px; }
/* the confirmed page's "while you wait" (templates/control_message.html) */
.wait-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; counter-reset: wait; }
.wait-steps li { counter-increment: wait; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center; }
.wait-steps li::before { content: counter(wait); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy); font-weight: 700; font-size: var(--text-md); }
.wait-steps li.done::before { content: "✓"; background: var(--green-soft); color: var(--green-700); }
.wait-steps b { color: var(--ink); }
.wait-steps span { font-size: var(--text-md); color: var(--muted); }
.wait-h { margin-top: 36px; font-size: var(--text-4xl) !important; }
.wait-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.wait-list a { display: grid; gap: 2px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); }
.wait-list a:hover { border-color: var(--edge); }
.wait-list b { color: var(--ink); }
.wait-list span { font-size: var(--text-md); color: var(--muted); }
.wait-prep { margin-top: 18px; }
.switch-box { max-width: 820px; margin: 32px auto 0; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.switch-box h3 { font-size: var(--text-3xl); }
.switch-box p { margin: 8px 0 0; color: var(--body-soft); }
/* What's new (templates/control_whats_new.html) */
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.news li { position: relative; padding: 0 0 28px 26px; }
.news li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); }
.news time { font-size: var(--text-sm); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-dark); }
.news h2 { margin-top: 4px; font-size: var(--text-3xl); line-height: 1.25; }
.news h2 a { color: inherit; }
.news p { margin: 6px 0 0; color: var(--body-soft); }
.ask-person { margin-top: 24px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.ask-person p { margin: 0; color: var(--body-soft); }
.ask-person b { color: var(--ink); }
.ask-person a { color: var(--terra-dark); font-weight: 600; }
/* the closing photo on the landing page: above the words on a phone, beside them from 900px */
.closing-grid { display: grid; gap: 32px; align-items: center; text-align: center; }
.closing-img img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.closing-copy { max-width: 620px; margin: 0 auto; }
@media (min-width: 900px) {
  .closing-grid { grid-template-columns: 1fr 1fr; gap: 56px; text-align: left; }
  .closing-grid .centre { text-align: left; justify-content: flex-start; }
  .closing-copy { margin: 0; }
}

.guide-credit { margin-top: 24px; font-size: var(--text-sm, .875rem); }
