/* PupilProof site, v3. Reference: Mercury (homepage, product pages) and Wellcome Collection (reading pages).
   Layout: light cream pages, full-bleed photography and colour bands that run edge to edge; text held to readable widths inside them.
   Navy is reserved for the story band, the closing band and the footer. Brand colours and Inter unchanged.
   Type: one family, medium weights, modest sizes. Spacing: an 8px rhythm that tightens inside groups and opens between them. */
:root {
  --bg: #F5F1E8;
  --surface: #FFFDF8;
  --sand: #EDE6D8;
  --ink: #0B2340;
  --muted: #3E4F68;
  --line: #DCD3C2;
  --coral: #E26D5C;
  --coral-text: #B4483A;
  --cheat: #2563EB;
  --cheat-text: #2563EB;
  --green: #15803D;
  --green-text: #15803D;
  --band-bg: #0B2340;
  --band-fg: #F5F1E8;
  --band-muted: #BAC6D6;
  --band-line: #26415F;
  --band-surface: #11304F;
  --photo-a: #E4D9C4;
  --photo-b: #C9B999;
  --photo-ink: #4A3F2C;
  --focus: #E26D5C;
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --accent: var(--coral);
  --accent-text: var(--coral-text);

  /* Type scale (px at desktop) */
  --t-display: clamp(38px, 4.4vw, 58px);
  --t-h2: clamp(28px, 2.9vw, 40px);
  --t-h3: 19px;
  --t-lede: clamp(18px, 1.35vw, 20px);
  --t-body: 17px;
  --t-small: 14px;
  --t-eyebrow: 13px;

  /* Space */
  --maxw: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --sec: clamp(80px, 9.5vw, 140px);
  --sec-tight: clamp(44px, 5vw, 72px);
  --head-gap: clamp(36px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B2340; --surface: #11304F; --sand: #0E2A47; --ink: #F5F1E8; --muted: #BAC6D6; --line: #26415F;
    --coral: #EE8273; --coral-text: #F29A8D; --cheat: #6E9EF5; --cheat-text: #8FB4F7;
    --green: #2E9E5B; --green-text: #5CC789;
    --band-bg: #071A31; --band-fg: #F5F1E8; --band-muted: #BAC6D6; --band-line: #22405F; --band-surface: #0E2A47;
    --photo-a: #1A3A5C; --photo-b: #0F2945; --photo-ink: #BAC6D6;
    --focus: #F29A8D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B2340; --surface: #11304F; --sand: #0E2A47; --ink: #F5F1E8; --muted: #BAC6D6; --line: #26415F;
  --coral: #EE8273; --coral-text: #F29A8D; --cheat: #6E9EF5; --cheat-text: #8FB4F7;
  --green: #2E9E5B; --green-text: #5CC789;
  --band-bg: #071A31; --band-fg: #F5F1E8; --band-muted: #BAC6D6; --band-line: #22405F; --band-surface: #0E2A47;
  --photo-a: #1A3A5C; --photo-b: #0F2945; --photo-ink: #BAC6D6;
  --focus: #F29A8D; color-scheme: dark;
}
[data-accent="cheat"] { --accent: var(--cheat); --accent-text: var(--cheat-text); }
[data-accent="essay"] { --accent: var(--green); --accent-text: var(--green-text); }
[data-accent="platform"] { --accent: var(--coral); --accent-text: var(--coral); }
html[data-region="uk"] .only-us, html[data-region="us"] .only-uk { display: none !important; }
html:not([data-region]) .only-us { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.65; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03"; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 80; }
.skip:focus { left: 16px; }

/* Prototype notice: quiet */
.proto { background: var(--sand); color: var(--muted); font-size: 13px; text-align: center; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.proto::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: 1px; }
.ex { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral-text); letter-spacing: 0.02em; margin-left: 6px; line-height: 1.6; }
.band .ex { color: #F6B3A8; background: rgba(238, 130, 115, 0.18); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.035em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo b { color: var(--coral); }
.menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.menu > a, .dd-btn { font: 500 15px var(--font); color: var(--ink); background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s var(--ease); }
.dd-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; }
.menu > a:hover, .dd-btn:hover, .dd.open .dd-btn { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.menu > a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dd { position: relative; }
.dd-panel { display: none; position: absolute; top: calc(100% + 12px); left: 0; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(11, 35, 64, 0.35); }
.dd-panel.wide { width: 580px; display: none; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.dd.open .dd-panel { display: block; }
.dd.open .dd-panel.wide { display: grid; }
.dd-panel a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; text-decoration: none; transition: background-color .15s var(--ease); }
.dd-panel a:hover { background: var(--bg); }
.dd-panel strong { font-size: 15px; font-weight: 600; }
.dd-panel a > span { font-size: 13px; color: var(--muted); }
.dd-panel a[aria-current="page"] strong { color: var(--coral-text); }
.dd-panel strong.pname { font-weight: 700; letter-spacing: -0.02em; }
.dd-panel a[aria-current="page"] strong.pname { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.region { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.region button { font: 500 13px var(--font); border: 0; background: transparent; color: var(--muted); padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.region button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.login { font-weight: 500; font-size: 15px; text-decoration: none; }
.menu-btn { display: none; font: 500 15px var(--font); background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
@media (max-width: 1080px) {
  .bar { flex-wrap: wrap; padding-block: 10px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .tools { margin-left: 0; width: 100%; justify-content: space-between; order: 4; display: none; padding-bottom: 8px; }
  .menu { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 4px; }
  .top.open .menu, .top.open .tools { display: flex; }
  .dd-panel, .dd-panel.wide { position: static; width: auto; box-shadow: none; margin: 4px 0 8px; grid-template-columns: 1fr; }
  .menu > a, .dd-btn { width: 100%; justify-content: space-between; font-size: 17px; padding: 12px; border-radius: 12px; }
}

/* Buttons. Interaction 1: a soft lift and colour shift on hover. */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--font); letter-spacing: -0.005em; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(11, 35, 64, 0.6); background: #163A63; border-color: #163A63; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; box-shadow: none; color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #FFFDF8; }
.btn.accent:hover { background: color-mix(in srgb, var(--accent) 86%, #0B2340); border-color: color-mix(in srgb, var(--accent) 86%, #0B2340); }
.band .btn { border-color: var(--band-fg); background: var(--band-fg); color: var(--band-bg); }
.band .btn:hover { background: #FFFFFF; border-color: #FFFFFF; }
.band .btn.ghost { background: transparent; color: var(--band-fg); border-color: rgba(245, 241, 232, 0.4); }
.band .btn.ghost:hover { border-color: var(--band-fg); color: var(--band-fg); }
.band .btn.accent { background: var(--accent); border-color: var(--accent); color: #FFFDF8; }

/* Type */
.eyebrow { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: var(--t-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.028em; max-width: 18ch; }
.h1.mid { font-size: clamp(34px, 3.8vw, 50px); max-width: 22ch; }
.h2 { font-size: var(--t-h2); font-weight: 500; line-height: 1.15; letter-spacing: -0.022em; max-width: 24ch; }
.h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.lede { font-size: var(--t-lede); line-height: 1.6; color: var(--muted); max-width: 56ch; }
.prose { color: var(--muted); max-width: 62ch; }
.fine { font-size: var(--t-small); color: var(--muted); }
.pname { font-weight: 700; letter-spacing: -0.025em; }
.pname .c { color: var(--cheat-text); } .pname .e { color: var(--green-text); } .pname .p { color: var(--coral); }
.band .pname .c { color: #8FB4F7; } .band .pname .e { color: #5CC789; } .band .pname .p { color: #F29A8D; }
.plabel { font-size: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plabel .for { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.crumb { font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
/* Interaction 2: text links thicken and take the accent colour on hover. */
.prose a, .article a, .point a, .fine a, .faq a, .more { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.prose a:hover, .article a:hover, .point a:hover, .fine a:hover, .faq a:hover, .more:hover { text-decoration-color: var(--accent-text); color: var(--accent-text); text-decoration-thickness: 2px; }

/* Sections */
section { padding-block: var(--sec); }
section.tight { padding-block: var(--sec-tight); }
section.flush-top { padding-top: 0; }
.hero { padding-block: clamp(64px, 8vw, 120px) clamp(48px, 6vw, 88px); }
.band { background: var(--band-bg); color: var(--band-fg); }
.band .lede, .band .prose, .band .fine, .band .eyebrow { color: var(--band-muted); }
.alt { background: var(--sand); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-copy .lede { margin-top: -4px; }
.hero-copy .ctas { margin-top: 8px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--head-gap); max-width: 720px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.points.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.point { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.point p { color: var(--muted); }
.band .point { border-top-color: var(--band-line); }
.band .point p { color: var(--band-muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .hero-grid, .split, .points, .points.two, .points.four { grid-template-columns: minmax(0, 1fr); } .points { gap: 32px; } }

/* Full-bleed photography */
.photo { position: relative; margin: 0; aspect-ratio: var(--r, 21 / 9); max-width: 100%; overflow: hidden;
  background: radial-gradient(120% 90% at 78% 12%, rgba(255, 253, 248, 0.55), transparent 58%), radial-gradient(80% 70% at 10% 100%, rgba(11, 35, 64, 0.16), transparent 60%), linear-gradient(160deg, var(--photo-a), var(--photo-b)); }
.photo figcaption { position: absolute; left: var(--edge); bottom: 20px; right: var(--edge); font-size: 13px; color: var(--photo-ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.photo figcaption b { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.photo.inset figcaption { left: 20px; right: 20px; }
.photo.rounded { border-radius: var(--radius); }
@media (max-width: 700px) { .photo { aspect-ratio: 4 / 3; } }
.stage { position: relative; }
.stage .photo { aspect-ratio: 21 / 8; }
.stage-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: clamp(32px, 5vw, 80px); align-items: end; margin-top: clamp(-260px, -18vw, -120px); position: relative; }
.stage-note { display: flex; flex-direction: column; gap: 12px; max-width: 420px; padding-bottom: 8px; }
.stage-card { min-width: 0; }
@media (max-width: 900px) { .stage .photo { aspect-ratio: 4 / 3; } .stage-row { grid-template-columns: minmax(0, 1fr); margin-top: -64px; } .stage-note { order: 2; } }

/* Split where the media runs to the screen edge */
.edge-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; padding: 0; }
.edge-split > .copy { padding: var(--sec) var(--edge) var(--sec) clamp(32px, 5vw, 88px); display: flex; flex-direction: column; justify-content: center; gap: 20px; min-width: 0; }
.edge-split.flip > .copy { padding: var(--sec) clamp(32px, 5vw, 88px) var(--sec) var(--edge); }
.edge-split > .photo { aspect-ratio: auto; min-height: 460px; }
.edge-split > .photo figcaption { left: 24px; right: 24px; }
@media (max-width: 900px) {
  .edge-split { grid-template-columns: minmax(0, 1fr); }
  .edge-split > .copy, .edge-split.flip > .copy { padding: var(--sec-tight) var(--gutter); }
  .edge-split > .photo { min-height: 0; aspect-ratio: 4 / 3; }
  .edge-split.flip > .photo { order: -1; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 10px; counter-increment: s; min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent-text); }
.step p { color: var(--muted); }
.band .step { border-top-color: var(--band-line); }
.band .step p { color: var(--band-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Mock UI frames */
.mock { background: var(--surface); color: var(--ink); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(11, 35, 64, 0.35), 0 2px 6px -2px rgba(11, 35, 64, 0.06); overflow: hidden; min-width: 0; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, var(--surface)); font-size: 12px; color: var(--muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar .url { flex: 1; min-width: 0; background: var(--bg); border-radius: 8px; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mock-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mock-title h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green-text); }
.pill.bad { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral-text); }
.pill.neutral { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border-radius: 12px; padding: 14px; background: var(--bg); }
.kpi b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.kpi > span { font-size: 12px; color: var(--muted); }
.meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Blocked page */
.blocked { padding: 36px 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.shield { width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; }
.blocked .t { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.blocked p { color: var(--muted); font-size: 15px; }

/* Try question */
.qcard { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.qtop { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; color: var(--muted); gap: 10px; }
.timer { display: inline-flex; align-items: center; gap: 6px; color: var(--green-text); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-t { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-t i { display: block; height: 100%; width: 100%; background: var(--green); border-radius: 999px; transition: width 1s linear; }
.excerpt { font-size: 15px; color: var(--muted); border-left: 2px solid var(--green); padding-left: 14px; }
.qtext { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font: 15px var(--font); color: var(--ink); background: var(--bg); text-align: left; width: 100%; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.opt b { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.opt:hover:not([disabled]) { border-color: var(--green); background: var(--surface); }
.opt[disabled] { cursor: default; }
.opt.right { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.opt.wrong { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral); }
.verdict { font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.verdict.miss { background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.qcard .btn { align-self: flex-start; }
.band .mock .btn, .mock .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Video poster */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: radial-gradient(90% 80% at 75% 20%, rgba(226, 109, 92, 0.18), transparent 60%), linear-gradient(150deg, #0B2340 0%, #163A63 100%); color: #F5F1E8; display: grid; place-items: center; }
.video .play { width: 72px; height: 72px; border-radius: 50%; background: rgba(245, 241, 232, 0.95); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform .25s var(--ease); }
.video:hover .play { transform: scale(1.05); }
.video .play::before { content: ""; border-left: 20px solid #0B2340; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video .cap { position: absolute; left: 22px; bottom: 18px; right: 22px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
.video .mark { position: absolute; top: 18px; left: 22px; font-weight: 800; font-size: 18px; letter-spacing: -0.035em; }
.video .mark b { color: #E26D5C; }
.vid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .vid-grid { grid-template-columns: minmax(0, 1fr); } }

/* Logos, badges, events */
.logos { display: flex; flex-wrap: wrap; gap: 16px 44px; align-items: center; }
.logo-ex { font-weight: 600; font-size: 16px; letter-spacing: -0.015em; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; opacity: 0.85; }
.logo-ex i { width: 22px; height: 22px; border-radius: 6px; background: var(--line); display: inline-block; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-s { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 14px; }
.badge-s i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); display: inline-block; }
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.event { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.event b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.event > span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .events { grid-template-columns: minmax(0, 1fr); } }

/* Quotes and stories */
.quote { display: flex; flex-direction: column; gap: 20px; max-width: 820px; margin: 0; }
.quote blockquote { margin: 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 400; line-height: 1.4; letter-spacing: -0.015em; text-wrap: pretty; }
.quote figcaption { font-size: 15px; color: var(--muted); }
.band .quote figcaption { color: var(--band-muted); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.quotes figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.quotes blockquote { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.5; }
.quotes figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px); }
/* Interaction 3: cards ease their photo and title on hover. */
.story { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.story .photo { --r: 4 / 3; border-radius: var(--radius); transition: transform .5s var(--ease); }
.story .photo-wrap { border-radius: var(--radius); overflow: hidden; }
.story:hover .photo { transform: scale(1.025); }
.story:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story .big { font-size: 28px; font-weight: 500; letter-spacing: -0.025em; color: var(--coral-text); line-height: 1; }
.story p { color: var(--muted); }
@media (max-width: 900px) { .stories { grid-template-columns: minmax(0, 1fr); } }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.fig { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.band .fig { border-top-color: var(--band-line); }
.fig b { display: block; font-size: clamp(36px, 3.8vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; color: var(--coral-text); }
.band .fig b { color: #F29A8D; }
.fig > span { font-size: 15px; color: var(--muted); }
.band .fig > span { color: var(--band-muted); }
@media (max-width: 700px) { .figs { grid-template-columns: minmax(0, 1fr); } }

/* Evidence */
.stat { display: flex; flex-direction: column; gap: 10px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.stat:first-child { padding-top: 0; }
.stat:last-child { border-bottom: 0; }
.stat .n { font-size: clamp(48px, 5.4vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--coral-text); font-variant-numeric: tabular-nums; }
.stat .w { font-size: 18px; max-width: 38ch; }
.stat .s { font-size: 13px; color: var(--muted); }

/* Product rows */
.prow { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: baseline; padding-block: 36px; border-top: 1px solid var(--line); }
.prow:last-child { border-bottom: 1px solid var(--line); }
.prow .pname { font-size: 24px; }
.prow .who { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prow .q { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 8px; }
.prow .more { font-weight: 500; white-space: nowrap; }
@media (max-width: 900px) { .prow { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 15px; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
label.chip { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 300; color: var(--accent-text); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--muted); max-width: 68ch; }

/* Reading pages (Wellcome-style): meta rail + reading column */
.read { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: clamp(32px, 6vw, 96px); justify-content: start; }
.read-meta { font-size: var(--t-small); color: var(--muted); display: flex; flex-direction: column; gap: 6px; position: sticky; top: 100px; align-self: start; padding-top: 6px; border-top: 1px solid var(--line); }
.read-meta b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .read { grid-template-columns: minmax(0, 1fr); } .read-meta { position: static; } }
.article { max-width: 700px; }
.article h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.018em; margin: 52px 0 14px; }
.article h3 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.article p, .article li { color: var(--ink); font-size: 19px; line-height: 1.75; }
.article p + p { margin-top: 18px; }
.article ul, .article ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.article strong { font-weight: 600; }
.callout { margin: 36px 0; padding: 24px 26px; border-radius: var(--radius); background: var(--sand); }
.callout p { font-size: 17px; }
.sources { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sources li { font-size: 14px; color: var(--muted); line-height: 1.6; }
.meta { font-size: var(--t-small); color: var(--muted); }
.art-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0; }
.art-table th, .art-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.art-table th { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Resource lists */
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 36px); }
.res a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding-top: 18px; border-top: 1px solid var(--ink); }
.res a .k { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-text); }
.res a b { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.res a > span { color: var(--muted); font-size: 15px; }
.res a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 900px) { .res { grid-template-columns: minmax(0, 1fr); } }
.gloss dt { font-weight: 600; font-size: 20px; margin-top: 32px; letter-spacing: -0.01em; }
.gloss dd { margin: 6px 0 0; color: var(--muted); font-size: 18px; max-width: 68ch; line-height: 1.7; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px); }
.member { display: flex; flex-direction: column; gap: 8px; }
.avatar { aspect-ratio: 4 / 5; border-radius: var(--radius); background: radial-gradient(120% 90% at 78% 12%, rgba(255, 253, 248, 0.5), transparent 58%), linear-gradient(160deg, var(--photo-a), var(--photo-b)); color: var(--photo-ink); display: grid; place-items: center; font-size: 40px; font-weight: 500; letter-spacing: -0.03em; position: relative; overflow: hidden; margin-bottom: 8px; }
.avatar::after { content: "Portrait to commission"; position: absolute; bottom: 12px; left: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.member b { font-size: 19px; font-weight: 600; }
.member .role { color: var(--coral-text); font-size: 15px; }
.member p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 18px; background: var(--surface); }
.plan .price { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 32px; border-radius: 18px; background: var(--surface); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { font: 16px var(--font); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; transition: border-color .15s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.note { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--green) 10%, var(--surface)); font-weight: 500; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); padding: 22px; } }

/* Calendar */
.cal { display: flex; flex-direction: column; gap: 14px; }
.days, .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.days button, .slots button { font: 500 15px var(--font); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease); }
.days button:hover, .slots button:hover { border-color: var(--ink); }
.days button[aria-pressed="true"], .slots button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Tool */
.tool-out { margin-top: 28px; }
.bar-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 60px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bar-row .meter i { background: var(--cheat); }
.bar-row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 110px minmax(0, 1fr) 44px; font-size: 14px; } }

/* Certified badge */
.cert { width: 200px; height: 200px; border-radius: 50%; border: 8px solid var(--coral); display: grid; place-items: center; background: var(--bg); text-align: center; margin: 0 auto; }
.cert .k { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--coral-text); display: block; }
.cert .big { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; display: block; }
.cert .y { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }

/* Closing band + footer */
.cta-band .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.tagline { font-size: clamp(34px, 4.2vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
footer { background: var(--band-bg); color: var(--band-fg); padding-block: 72px 40px; border-top: 1px solid var(--band-line); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 32px; }
.foot h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: var(--band-fg); text-decoration: none; font-size: 15px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot p { color: var(--band-muted); font-size: 15px; }
.legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--band-line); font-size: 13px; color: var(--band-muted); }
@media (max-width: 1000px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

[hidden]{display:none!important}
.stage .photo figcaption { top: 22px; bottom: auto; }

/* Homepage v3.1: short and plain */
.hero-edge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; align-items: stretch; min-height: min(720px, calc(100vh - 110px)); }
.hero-edge > .copy { padding: clamp(56px, 7vw, 104px) clamp(32px, 5vw, 88px) clamp(56px, 7vw, 104px) var(--edge); display: flex; flex-direction: column; justify-content: center; gap: 22px; min-width: 0; }
.hero-edge .h1 { font-size: clamp(34px, 3.6vw, 50px); max-width: 17ch; }
.hero-edge .ctas { margin-top: 6px; }
.hero-edge .media { position: relative; min-width: 0; }
.hero-edge .media .photo { position: absolute; inset: 0; aspect-ratio: auto; }
.hero-edge .media .photo figcaption { left: 24px; right: 24px; top: 22px; bottom: auto; }
.media-card { position: absolute; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(24px, 4vw, 56px); max-width: 560px; }
@media (max-width: 900px) {
  .hero-edge { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-edge > .copy { padding: 48px var(--gutter) 40px; }
  .hero-edge .media { padding: 104px var(--gutter) 24px; }
  .media-card { position: relative; left: auto; right: auto; bottom: auto; max-width: none; }
}
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.prod { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); border-radius: 18px; background: var(--surface); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.prod:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -32px rgba(11, 35, 64, 0.4); }
.prod .plabel { font-size: 22px; }
.prod .h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.prod p { color: var(--muted); }
.prod .more { margin-top: auto; padding-top: 6px; font-weight: 500; color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.prod:hover .more { text-decoration-color: currentColor; }
.aside { margin-top: 24px; }
@media (max-width: 800px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.proof .stat { padding: 0; border: 0; }
.proof .stat .n { font-size: clamp(40px, 4vw, 56px); }
.proof .stat .w { font-size: 16px; }
.quote.small blockquote { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }
.quote.small figcaption { font-size: 14px; }
.trustline { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
@media (max-width: 900px) { .proof { grid-template-columns: minmax(0, 1fr); } }
section.mid { padding-block: clamp(56px, 6vw, 96px); }
.cta-band { padding-block: clamp(64px, 7vw, 104px); }

/* v3.2 review fixes */
.points.stack { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.mob-demo { display: none; }
@media (max-width: 1080px) { .mob-demo { display: inline-flex; margin-left: auto; } .menu-btn { margin-left: 0; } }
@media (max-width: 380px) { .mob-demo { padding: 8px 12px; font-size: 13px; } }
.hero-edge .media.solo .photo figcaption { top: auto; bottom: 22px; }
@media (max-width: 900px) { .hero-edge .media.solo { padding: 0; aspect-ratio: 4 / 3; } }
.hero-edge .copy .h1 { max-width: 20ch; }
.login .copy { max-width: none; }
.signin { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin-top: 8px; }
.signin .btn { justify-content: center; width: 100%; }
.signin .field input { background: var(--surface); }
.signin .note { margin: 0; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-help { display: flex; flex-direction: column; gap: 12px; max-width: 420px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.login-help strong { color: var(--ink); font-weight: 600; }
.login-help a { color: var(--ink); }
@media (max-width: 700px) {
  footer { padding-block: 48px 32px; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .foot ul { gap: 7px; }
  .foot a { font-size: 14px; }
  .legal { margin-top: 32px; }
}
@media (max-width: 1080px) { .bar { gap: 10px; } }

/* v3.3 expert review */
:root { --focus: #0B2340; }
.btn.accent { background: var(--accent-text); border-color: var(--accent-text); }
.btn.accent:hover { background: color-mix(in srgb, var(--accent-text) 84%, #0B2340); border-color: color-mix(in srgb, var(--accent-text) 84%, #0B2340); }
.field input, .field select, .field textarea { border-color: color-mix(in srgb, var(--ink) 42%, var(--bg)); }
@media (max-width: 1080px) { .region button { min-height: 44px; min-width: 52px; } }
.split { align-items: start; }
.split .h2, .edge-split .h2, .faq-side .h2 { font-size: clamp(26px, 2.4vw, 32px); }
.prod .h3, .plan .h3 { font-size: 25px; }
.hero.simple { padding-bottom: clamp(32px, 4vw, 48px); }
section.flush { padding-top: clamp(24px, 3vw, 40px); }
.hero.simple + section:not(.band):not(.alt):not(.flush):not(.edge-split) { padding-top: clamp(32px, 4vw, 48px); }
.edge-split > .photo { aspect-ratio: 5 / 4; min-height: 0; align-self: center; }
@media (max-width: 900px) { .edge-split > .photo { aspect-ratio: 4 / 3; } }
.photo figcaption { opacity: 0.8; font-size: 12px; }
.media-card { left: auto; max-width: 480px; }
@media (max-width: 900px) {
  .hero-edge .media:not(.solo) { background: var(--sand); padding: 28px var(--gutter); }
  .hero-edge .media:not(.solo) .photo { display: none; }
}
.cta-band .wrap { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 28px; }
.strip { background: var(--sand); padding-block: clamp(32px, 4vw, 48px); }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.strip p { color: var(--muted); }
.strip strong { color: var(--ink); font-weight: 600; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.faq-wrap .faq { max-width: none; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } .faq-side { position: static; } }
@media (max-width: 700px) { .hide-sm { display: none; } .kpi > span { display: block; line-height: 1.35; margin-top: 4px; } .kpi { padding: 12px; } .kpi b { font-size: 20px; } }
.glance { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.glance dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.glance dt { font-size: 13px; color: var(--muted); margin-top: 10px; }
.glance dd { margin: 0; font-weight: 500; }
.toc a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.toc a:hover { color: var(--ink); }
.article h2[id] { scroll-margin-top: 100px; }
.art-photo { margin-bottom: 36px; }
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
@media (max-width: 800px) { .plans.two { grid-template-columns: minmax(0, 1fr); } }
.done { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.done p:not(.h3) { color: var(--muted); }
.trustline { margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); display: block; }
.legal-links { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--band-line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 4px; color: var(--band-muted); }
.legal-links a { color: var(--band-fg); text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
.legal { margin-top: 12px; padding-top: 0; border-top: 0; }
.foot { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.team-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mini { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.mini b { font-weight: 600; margin-top: 8px; }
.mini > span:last-child { font-size: 14px; color: var(--muted); }
.avatar.sm { font-size: 28px; margin-bottom: 0; }
.avatar.sm::after { content: ""; }
.mini:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 700px) { .team-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.facts-band { padding-block: 0 clamp(40px, 5vw, 64px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.fact { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--ink); }
.fact b { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--accent-text); }
.fact span { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote.founder { margin: 8px 0 20px; gap: 12px; }
.quote.founder blockquote { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; }
.byline { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.byline a { color: var(--ink); font-weight: 600; }
.avatar.xs { width: 40px; height: 40px; aspect-ratio: 1; border-radius: 50%; font-size: 14px; margin: 0; flex: none; }
.avatar.xs::after { content: ""; }
.author-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 48px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); }
.author-card p { font-size: 16px; line-height: 1.6; }
.author-card p + p { margin-top: 6px; color: var(--muted); }

/* v3.5 brand: navy header, PupilProof wordmark (Pupil white, Proof coral, white full stop) */
.top { background: var(--band-bg); border-bottom: 1px solid var(--band-line); backdrop-filter: none; -webkit-backdrop-filter: none; }
body::before { background: var(--band-bg); }
.logo, .logo .lc { color: #FFFFFF; }
.logo .lp, .logo .ld { color: #E26D5C; }
.logo.on-light .lc { color: var(--ink); }
.logo b { display: none; }
.top .menu > a, .top .dd-btn, .top .login { color: var(--band-fg); }
.top .menu > a:hover, .top .dd-btn:hover, .top .dd.open .dd-btn, .top .menu > a[aria-current="page"] { background: rgba(245, 241, 232, 0.12); }
.top .region { border-color: var(--band-line); }
.top .region button { color: var(--band-muted); }
.top .region button[aria-pressed="true"] { background: var(--band-fg); color: var(--band-bg); }
.top .btn { background: var(--band-fg); border-color: var(--band-fg); color: var(--band-bg); }
.top .btn:hover { background: #FFFFFF; border-color: #FFFFFF; }
.top .menu-btn { color: var(--band-fg); border-color: var(--band-line); }
.top .dd-panel a, .top .dd-panel strong { color: var(--ink); }
:focus-visible { outline-color: var(--focus); }
.top :focus-visible { outline-color: #E26D5C; }
/* PlatformProof coral matches the PupilProof coral; navy text keeps contrast */
[data-accent="platform"] .btn.accent { background: var(--coral); border-color: var(--coral); color: #0B2340; }
[data-accent="platform"] .btn.accent:hover { background: color-mix(in srgb, var(--coral) 88%, #0B2340); border-color: color-mix(in srgb, var(--coral) 88%, #0B2340); }
/* Product heroes: same rhythm on every product page */
[data-accent] .hero:not(.simple) .hero-grid { align-items: start; min-height: 440px; }
[data-accent] .hero:not(.simple) { padding-bottom: clamp(40px, 5vw, 64px); }
[data-accent] .hero:not(.simple) .h1 { font-size: clamp(36px, 3.8vw, 52px); max-width: 16ch; }
[data-accent] .hero:not(.simple) .lede { min-height: 4.8em; }
@media (max-width: 900px) { [data-accent] .hero:not(.simple) .hero-grid { min-height: 0; } [data-accent] .hero:not(.simple) .lede { min-height: 0; } }
@media (max-width: 1080px) { .top .menu > a, .top .dd-btn { color: var(--band-fg); } }
.dd-panel a[aria-current="page"] strong { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lede-line { margin-top: 28px; font-size: var(--t-lede); color: var(--ink); }
.qcard > .fine { font-size: 13px; margin-top: -4px; }
/* v3.6 founder quote band (About) */
.quote.founder-band { max-width: 900px; gap: 22px; padding-left: 28px; border-left: 3px solid var(--coral); }
.quote.founder-band blockquote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; font-weight: 400; }
.quote.founder-band figcaption { font-size: 15px; }
@media (max-width: 600px) { .quote.founder-band { padding-left: 18px; } }
/* v3.7 design audit fixes */
:root { --sec: clamp(64px, 7vw, 104px); }
section:not(.alt):not(.band):not(.edge-split):not(.hero):not(.hero-edge):not(.facts-band):not(.strip) + section:not(.alt):not(.band):not(.edge-split):not(.strip):not(.facts-band):not(.hero-edge) { padding-top: 0; }
.facts-band { padding-bottom: clamp(48px, 5vw, 72px); }
/* closing band (home only) */
.cta-band { padding-block: clamp(56px, 6vw, 88px); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; }
.cta-side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-side .lede { color: var(--band-muted); max-width: 36ch; }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
/* spec strip */
.facts { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact b { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.fact b span { font-size: inherit; color: inherit; }
.fact b.num { color: var(--accent-text); font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.fact > span { font-size: 14px; color: var(--muted); }
/* heading row above a full-width product view */
.sec-head.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; max-width: none; }
.mock-wide { max-width: 1080px; margin-inline: auto; }
@media (max-width: 900px) { .sec-head.row { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
/* product rows on home */
.prows .prow { grid-template-columns: 260px minmax(0, 1fr) auto; padding-block: 28px; }
.prow-name { text-decoration: none; color: var(--ink); }
.prow-name .pname { font-size: 24px; }
.prow p:not(.q):not(.who) { color: var(--muted); max-width: 62ch; }
@media (max-width: 900px) { .prows .prow { grid-template-columns: minmax(0, 1fr); } }
/* proof band numbers in ink */
.proof .stat .n { color: var(--ink); font-size: clamp(36px, 3.4vw, 44px); }
/* video on small screens */
@media (max-width: 600px) { .video .mark { display: none; } .video .play { width: 56px; height: 56px; } .video .play::before { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; } .video .cap { left: 16px; right: 16px; bottom: 12px; font-size: 13px; } }
.video .ex { color: #F6B3A8; background: rgba(238, 130, 115, 0.18); }
/* steps: accent rule */
[data-accent] .step { border-top: 2px solid var(--accent); }
/* platform list */
.plist { columns: 4 200px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.plist li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; break-inside: avoid; }
/* section labels: sentence case outside heroes */
section:not(.hero):not(.hero-edge) .eyebrow { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
/* definition rows */
dl.spec { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0 48px; max-width: 960px; margin: 0; }
dl.spec dt, dl.spec dd { padding: 20px 0; border-top: 1px solid var(--line); margin: 0; }
dl.spec dt { font-weight: 600; }
dl.spec dd { color: var(--muted); }
@media (max-width: 700px) { dl.spec { grid-template-columns: minmax(0, 1fr); } dl.spec dd { border-top: 0; padding-top: 0; } }
/* audience pages */
.split.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sticky { position: sticky; top: 112px; }
@media (max-width: 900px) { .split.wide-left { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } }
/* mobile CTAs */
@media (max-width: 480px) { .ctas { flex-direction: column; align-items: stretch; } .ctas .btn { justify-content: center; } .ctas .btn.ghost { border: 0; background: none; padding: 8px; text-decoration: underline; text-underline-offset: 4px; } .band .ctas .btn.ghost { color: var(--band-fg); } }
/* team on small screens */
@media (max-width: 520px) { .member { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; } .member .avatar { grid-row: 1 / span 4; margin: 0; font-size: 24px; } .member .avatar::after { display: none; } }
/* stacking order */
@media (max-width: 900px) { .glance { order: -1; margin-bottom: 32px; } .login .media { display: none; } }
/* labels in mocks, footer and tap targets */
.kpi > span { display: block; line-height: 1.35; margin-top: 4px; }
.foot a { display: inline-block; line-height: 1.4; padding-block: 4px; }
@media (max-width: 1080px) { .menu-btn, .mob-demo { min-height: 44px; } }
/* v3.8 guides hub */
.rfeature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; text-decoration: none; color: inherit; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.rf-copy { display: flex; flex-direction: column; gap: 16px; }
.rfeature:hover .h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.rdate { font-size: 14px; color: var(--muted); }
.rfilter { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: clamp(36px, 4vw, 52px) 0 8px; }
.rfilter button { font: 500 15px var(--font); color: var(--muted); background: none; border: 0; padding: 10px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.rfilter button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.rlist { border-top: 1px solid var(--line); }
.rrow { display: grid; grid-template-columns: 170px minmax(0, 1fr) 200px; gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.rrow[hidden] { display: none; }
.rmain { display: flex; flex-direction: column; gap: 6px; }
.rmain b { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.rmain > span { color: var(--muted); font-size: 15px; max-width: 62ch; }
.rtopic { font-size: 14px; color: var(--muted); text-align: right; }
.rrow:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rref { margin-top: clamp(36px, 4vw, 52px); max-width: 640px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .rfeature { grid-template-columns: minmax(0, 1fr); } .rfeature .photo { order: -1; } .rrow { grid-template-columns: minmax(0, 1fr); gap: 6px; } .rtopic { text-align: left; } }
/* v3.9 one action colour: coral (or the product colour on product pages) only on buttons and links */
:root { --link: #B4483A; --bad: #B42318; --bad-tint: rgba(180, 35, 24, 0.12); }
:root[data-theme="dark"] { --link: #F29A8D; --bad: #FDA29B; --bad-tint: rgba(253, 162, 155, 0.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --link: #F29A8D; --bad: #FDA29B; --bad-tint: rgba(253, 162, 155, 0.16); } }
/* buttons */
.btn, .top .btn, .band .btn:not(.ghost):not(.accent) { background: var(--coral); border-color: var(--coral); color: #0B2340; }
.btn:hover, .top .btn:hover, .band .btn:not(.ghost):not(.accent):hover { background: color-mix(in srgb, var(--coral) 86%, #0B2340); border-color: color-mix(in srgb, var(--coral) 86%, #0B2340); color: #0B2340; }
main[data-accent] .btn:not(.ghost) { background: var(--accent-text); border-color: var(--accent-text); color: #FFFDF8; }
main[data-accent] .btn:not(.ghost):hover { background: color-mix(in srgb, var(--accent-text) 84%, #0B2340); border-color: color-mix(in srgb, var(--accent-text) 84%, #0B2340); }
main[data-accent="platform"] .btn:not(.ghost) { background: var(--coral); border-color: var(--coral); color: #0B2340; }
:root[data-theme="dark"] main[data-accent] .btn:not(.ghost), :root[data-theme="dark"] .btn.accent { color: #0B2340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main[data-accent] .btn:not(.ghost), :root:not([data-theme="light"]) .btn.accent { color: #0B2340; } }
/* links in content */
.prose a, .article a, .point a, .fine a, .faq a, .more, .callout a, .sources a, .rref a, .done a { color: var(--link); text-decoration-color: currentColor; }
.prose a:hover, .article a:hover, .point a:hover, .fine a:hover, .faq a:hover, .more:hover, .callout a:hover, .sources a:hover { color: var(--link); text-decoration-thickness: 2px; }
main[data-accent] :is(.prose, .article, .point, .fine, .faq, .callout) a, main[data-accent] .more { color: var(--accent-text); }
.band .fine a, .band .point a, .band .more { color: #F29A8D; }
/* colour off everything that isn't clickable */
.proto::before { background: var(--muted); }
.ex, .band .ex { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
.band .ex { background: rgba(245, 241, 232, 0.10); color: var(--band-muted); }
.member .role { color: var(--muted); }
.quote.founder-band { border-left-color: rgba(245, 241, 232, 0.35); }
.stat .n, .fig b, .story .big { color: var(--ink); }
.fact b.num { color: var(--ink); }
.step::before { color: var(--muted); }
[data-accent] .step { border-top: 1px solid var(--ink); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.opt.wrong { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.verdict.miss { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
/* theme switch shares the region toggle style */
.theme button { min-width: 0; }
@media (max-width: 1080px) { .tools .btn { display: none; } .tools { flex-wrap: wrap; gap: 12px; justify-content: flex-start; } }
/* v3.10 colour fixes from audit */
/* product buttons use the true brand colours in both themes (same as the EssayProof app) */
[data-accent="cheat"] { --accent-fill: #2563EB; --accent-on: #FFFFFF; --accent-link: #1D4ED8; }
[data-accent="essay"] { --accent-fill: #15803D; --accent-on: #FFFFFF; --accent-link: #116A33; }
[data-accent="platform"] { --accent-fill: var(--coral); --accent-on: #0B2340; --accent-link: #A33F31; }
:root[data-theme="dark"] [data-accent="cheat"] { --accent-link: #8FB4F7; }
:root[data-theme="dark"] [data-accent="essay"] { --accent-link: #5CC789; }
:root[data-theme="dark"] [data-accent="platform"] { --accent-link: #F29A8D; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-accent="cheat"] { --accent-link: #8FB4F7; }
  :root:not([data-theme="light"]) [data-accent="essay"] { --accent-link: #5CC789; }
  :root:not([data-theme="light"]) [data-accent="platform"] { --accent-link: #F29A8D; }
}
main[data-accent] .btn:not(.ghost), .btn.accent,
:root[data-theme="dark"] main[data-accent] .btn:not(.ghost), :root[data-theme="dark"] .btn.accent { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-on); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main[data-accent] .btn:not(.ghost), :root:not([data-theme="light"]) .btn.accent { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-on); } }
main[data-accent] .btn:not(.ghost):hover, .btn.accent:hover { background: color-mix(in srgb, var(--accent-fill) 86%, #0B2340); border-color: color-mix(in srgb, var(--accent-fill) 86%, #0B2340); color: var(--accent-on); }
/* links: readable on cream and sand (WCAG AA) */
:root { --link: #A33F31; }
main[data-accent] :is(.prose, .article, .point, .fine, .faq, .callout) a, main[data-accent] .more { color: var(--accent-link); }
.video .mark .pname { color: #FFFFFF; } .video .mark .pname .e { color: #5CC789; } .video .mark .pname .c { color: #8FB4F7; }
/* v3.11 commissioned photography */
.photo.has-img { background: var(--sand); }
.photo.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
:root[data-theme="dark"] .photo.has-img img { filter: brightness(0.88) saturate(0.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .photo.has-img img { filter: brightness(0.88) saturate(0.92); } }
/* v3.12 photo + product card: darker photo behind the card, smaller card */
.hero-edge .media:not(.solo) .photo.has-img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(11, 35, 64, 0.10) 0%, rgba(11, 35, 64, 0.40) 50%, rgba(7, 26, 49, 0.72) 100%); }
.hero-edge .media-card { z-index: 2; right: clamp(24px, 3vw, 48px); bottom: clamp(24px, 3vw, 48px); max-width: 440px; transform: scale(0.92); transform-origin: bottom right; }
.hero-edge .media-card .mock { box-shadow: 0 32px 64px -24px rgba(4, 14, 28, 0.65), 0 2px 8px -2px rgba(4, 14, 28, 0.25); }
@media (max-width: 900px) { .hero-edge .media-card { transform: none; } }
/* v3.13 design review fixes */
/* hero card on mobile: centred, photo shown above it */
@media (max-width: 900px) {
  .hero-edge .media-card { right: auto; bottom: auto; transform: none; margin: -72px var(--gutter) 0; position: relative; z-index: 2; }
  .hero-edge .media:not(.solo) { padding: 0 0 28px; background: transparent; }
  .hero-edge .media:not(.solo) .photo { display: block; position: relative; inset: auto; aspect-ratio: 4 / 3; }
}
.hero-edge .media-card th, .hero-edge .media-card td:first-child { white-space: nowrap; }
/* lighter overlay in light mode, current strength in dark mode */
.hero-edge .media:not(.solo) .photo.has-img::after { background: linear-gradient(200deg, rgba(11, 35, 64, 0) 0%, rgba(11, 35, 64, 0.16) 45%, rgba(11, 35, 64, 0.50) 100%); }
:root[data-theme="dark"] .hero-edge .media:not(.solo) .photo.has-img::after { background: linear-gradient(200deg, rgba(11, 35, 64, 0.10) 0%, rgba(11, 35, 64, 0.40) 50%, rgba(7, 26, 49, 0.72) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-edge .media:not(.solo) .photo.has-img::after { background: linear-gradient(200deg, rgba(11, 35, 64, 0.10) 0%, rgba(11, 35, 64, 0.40) 50%, rgba(7, 26, 49, 0.72) 100%); } }
:root[data-theme="dark"] .hero-edge .photo.has-img img { filter: saturate(0.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-edge .photo.has-img img { filter: saturate(0.92); } }
/* status pills: amber for "worth a conversation" / medium, red only for high */
.pill.warn { background: #FEF3C7; color: #92400E; }
:root[data-theme="dark"] .pill.warn { background: rgba(251, 191, 36, 0.16); color: #FCD34D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.warn { background: rgba(251, 191, 36, 0.16); color: #FCD34D; } }
:root[data-theme="dark"] { --bad: #FDA29B; --bad-tint: rgba(253, 162, 155, 0.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bad: #FDA29B; --bad-tint: rgba(253, 162, 155, 0.16); } }
/* plain title in "Where to start" links */
.plink-title { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
/* team: initials in circles until headshots arrive */
.member .avatar { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; font-size: 28px; margin-bottom: 12px; }
.member .avatar::after { content: none; }
@media (max-width: 520px) { .member .avatar { width: 72px; height: 72px; font-size: 22px; } }
/* facts strip: no orphan on mobile */
@media (max-width: 800px) { .facts .fact:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* product heroes: centre the visual against the copy */
[data-accent] .hero .hero-grid > :last-child { align-self: center; }
/* v3.14 closing band quote */
.band-quote { margin: 0; display: flex; flex-direction: column; gap: 10px; max-width: 44ch; }
.band-quote blockquote { margin: 0; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.35; font-weight: 400; letter-spacing: -0.01em; color: var(--band-fg); }
.band-quote figcaption { font-size: 14px; line-height: 1.5; color: var(--band-muted); }
.band-quote figcaption a { color: var(--band-muted); text-decoration: underline; text-underline-offset: 3px; }
.band-quote figcaption a:hover { color: var(--band-fg); }
.cta-side .band-quote + .lede { margin-top: 6px; color: var(--band-fg); }
/* v3.15 product wordmarks inside links keep their own colours ("Proof" in ink, never link colour) */
a .pname { color: var(--ink); }
.band a .pname { color: var(--band-fg); }
.point a:has(.pname) { text-decoration: none; }

/* v3.16 headings: eyebrow and product label carry the h1, headline is h2 with h1 styling */
h1.eyebrow { margin: 0; font-size: var(--t-eyebrow); line-height: 1.4; }
h1.plabel, .plabel > h1 { margin: 0; }
.hero-edge .copy h1.eyebrow + .h1 { margin-top: 0; }
/* evidence links inside ledes */
.lede a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
main[data-accent] .lede a { color: var(--accent-link); }

/* Events banner (redesigned 22 Nov 2026): a cream strip above the navy bar so it reads as its own thing,
   navy date tags, a coral button (clickable, so coral is allowed) and larger type. Same in both themes. */
.evbar { background: #F5F1E8; color: #0B2340; border-bottom: 1px solid #DCD3C2; font-size: 15px; }
.evbar[hidden] { display: none; }
.evbar-in { display: flex; align-items: center; gap: 10px 16px; min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.evbar-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0B2340; white-space: nowrap; flex: none; padding-right: 16px; border-right: 1px solid #DCD3C2; }
.evbar-l-one { display: none; }
@media (max-width: 1180px) {
  .evbar-l-many { display: none; }
  .evbar-l-one { display: inline; }
}
.evbar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; flex: 1; min-width: 0; }
.evbar-list li { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: #3E4F68; }
.evbar-list li[hidden] { display: none; }
.evbar-list li b { color: #0B2340; font-weight: 700; }
.evbar-date { color: #0B2340; font-weight: 500; margin-right: 4px; }
.evbar-where { color: #3E4F68; font-size: .93em; }
/* a thin divider between events so each one reads as a group */
.evbar-list li + li { border-left: 1px solid #DCD3C2; padding-left: 12px; }
.evbar-list li.ev-first { border-left: 0; padding-left: 0; }
.evbar-x { background: none; border: 0; color: #3E4F68; font-size: 24px; line-height: 1; width: 44px; height: 44px; margin: 0 -12px 0 -6px; cursor: pointer; border-radius: 8px; flex: none; }
.evbar-x:hover { color: #0B2340; background: rgba(11, 35, 64, .08); }
.evbar-x:focus-visible { outline: 2px solid #0B2340; outline-offset: 2px; }
.event[hidden] { display: none; }
/* One line at every width: all live events on desktop, the next one below 1181px.
   The full list is also in the Meet us at section on the home and contact pages. */
.evbar-list { flex-wrap: nowrap; overflow: hidden; }
@media (min-width: 1181px) and (max-width: 1320px) {
  .evbar-in { font-size: 13.5px; gap: 10px 12px; }
  .evbar-label { font-size: 11px; padding-right: 12px; }
  .evbar-list { gap: 8px 12px; }
  .evbar-list li { gap: 6px; }
}
@media (max-width: 1180px) {
  .evbar-list li:not(.ev-first) { display: none; }
}
@media (max-width: 640px) {
  .evbar-in { font-size: 14px; gap: 6px 10px; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .evbar-list { flex-wrap: wrap; }
  .evbar-list li { flex-wrap: wrap; white-space: normal; gap: 4px 8px; }
  .evbar-where { font-size: 13px; }
  /* Label and close button on the first row, the event on the second */
  .evbar-in { flex-wrap: wrap; row-gap: 2px; padding-top: 2px; }
  .evbar-label { font-size: 11px; order: 1; flex: 1 1 auto; padding-right: 0; border-right: 0; }
  .evbar-x { order: 2; }
  .evbar-list { order: 3; flex-basis: 100%; }
  .evbar-list li { gap: 4px 8px; }
}

/* Login without a photo: one centred column, the form in a card */
.hero-edge.login-solo { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: clamp(40px, 6vw, 88px) var(--gutter); }
.hero-edge.login-solo > .copy { width: 100%; max-width: 480px; margin: 0 auto; padding: clamp(28px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; gap: 18px; }
.login-solo .signin, .login-solo .login-help { max-width: none; }

/* Brand fixes, 22 Nov 2026 */
/* Video placeholder: flat navy panel, no decorative coral glow behind the product mark */
.video { background: var(--band-surface); }
/* Example tags on navy: neutral navy tint, never coral (coral is only for things you can click) */
.band .ex, .video .ex { color: var(--band-muted); background: rgba(186, 198, 214, 0.16); }
/* Footer LinkedIn link */
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 44px; text-decoration: none; }
.social svg { width: 22px; height: 22px; flex: none; }
.social:hover span { text-decoration: underline; text-underline-offset: 4px; }
/* "Meet us at" events block (src/components/Events.astro): links use the standard text-link colour */
.event a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.event a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
/* Story cards that aren't links (customer stories are examples until real ones exist): no hover effects, no coral */
div.story:hover .photo { transform: none; }
div.story:hover b { text-decoration: none; }
div.story .big { color: var(--ink); }

/* "View this page for the US" bar (UK paired pages, visitors who chose US before). Plain text plus one link. */

/* Log in or register (23 Nov 2026): one card, two choices that go straight to the right app */
.hero.simple.auth-page { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.auth-page .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.auth-card .eyebrow { margin: 0; }
.auth-roles { display: grid; gap: 12px; }
.auth-roles a { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; position: relative; transition: border-color .15s; }
.auth-roles a::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--coral-text, var(--link)); font-size: 20px; }
.auth-roles a b { font-size: 18px; font-weight: 600; }
.auth-roles a span:not([data-t]) { font-size: 14px; color: var(--muted); }
.auth-roles a:hover { border-color: var(--coral); }
.auth-roles a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.auth-foot { margin: 0; line-height: 1.8; width: 100%; max-width: 460px; text-align: center; }
.auth-step { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.auth-step[hidden] { display: none; }
.auth-step label { font-weight: 600; font-size: 15px; }
.auth-step input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); min-height: 48px; }
.auth-step input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.auth-step .btn { width: 100%; justify-content: center; }
.auth-error { margin: 0; color: var(--bad); font-size: 14px; }
.auth-who { margin: 0; word-break: break-word; }
.auth-back { align-self: flex-start; background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--link); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Exposure levels in the CheatProof "By product" mock-up, coloured like the portal (23 Nov 2026) */
.pill.x-highest { background: #FEE4E2; color: #B42318; }
.pill.x-high { background: #FEF0EE; color: #C4320A; }
.pill.x-mod { background: #FEF3C7; color: #92400E; }
:root[data-theme="dark"] .pill.x-highest { background: #B42318; color: #FFFFFF; }
:root[data-theme="dark"] .pill.x-high { background: rgba(240, 68, 56, 0.32); color: #FFD5D0; }
:root[data-theme="dark"] .pill.x-mod { background: rgba(251, 191, 36, 0.22); color: #FCD34D; }

/* Hero without a photo (For EdTech, 23 Nov 2026): copy runs wider */
.hero-edge.no-media { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.hero-edge.no-media > .copy { max-width: 1040px; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero-edge.no-media .h1 { max-width: 24ch; }
.hero-edge.no-media .lede { max-width: 60ch; }

/* Log in, Option A (23 Nov 2026): cream card on the navy page, Google / Microsoft first, then email */
.auth-card { background: #F5F1E8; border-color: #F5F1E8; color: #0B2340; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.auth-card .eyebrow { color: #3E4F68; }
.auth-card .or { color: #3E4F68; }
.auth-card .or::before, .auth-card .or::after { background: #DCD3C2; }
.auth-sso { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1px solid #747775; background: #FFFFFF; color: #1F1F1F; font: 600 15px var(--font); cursor: pointer; }
.auth-sso:hover { background: #F2F2F2; }
.auth-sso:focus-visible { outline: 2px solid #E26D5C; outline-offset: 2px; }
.auth-email { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.auth-card .auth-step label { color: #0B2340; }
.auth-card .auth-step input { background: #FFFDF8; color: #0B2340; border-color: #C9BFAD; }
.auth-card .auth-step input:focus-visible { outline-color: #E26D5C; }
.auth-card .auth-error { color: #B42318; }
.auth-who { margin: 0; color: #3E4F68; font-size: 14px; word-break: break-word; }
.auth-card .auth-roles a { border-color: #DCD3C2; color: #0B2340; background: #FFFDF8; }
.auth-card .auth-roles a span:not([data-t]) { color: #3E4F68; }
.auth-card .auth-roles a::after { color: #A33F31; }
.auth-card .auth-roles a:hover { border-color: #E26D5C; }
.auth-card .auth-back { color: #A33F31; }
.auth-card .btn:focus-visible, .auth-card a:focus-visible { outline: 2px solid #E26D5C; outline-offset: 2px; }

/* Trust overview mock-up on /for-trusts (23 Nov 2026), built from PupilProof's own CheatProof figures */
.tv .tv-h { margin: 16px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tv .bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tv .bars li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.2em; align-items: center; gap: 10px; font-size: 13px; }
.tv .bar-l { line-height: 1.25; }
.tv .bar-t { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.tv .bar-t i { display: block; height: 100%; border-radius: 999px; background: var(--cheat); }
.tv .bars li.monitor .bar-t i { background: #D9A21B; }
.tv .bar-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tv .tv-key { display: flex; gap: 14px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.tv .tv-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--cheat); }
.tv .tv-key .k-monitor::before { background: #D9A21B; }
.tv .tv-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tv .tv-top li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.tv .tv-top li span { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 480px) { .tv .tv-top li { flex-direction: column; align-items: flex-start; gap: 2px; } .tv .bars li { grid-template-columns: minmax(0, 10em) minmax(0, 1fr) 3em; } }

/* About: one story column, with Paul's quote floated into it on the right so the text reads around it (23 Nov 2026) */
.about-story { max-width: 1080px; }
.about-story::after { content: ""; display: block; clear: both; }
.about-story h2 { margin-bottom: 20px; }
.about-story p { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.65; color: var(--ink); margin: 0 0 18px; }
.about-story .pullquote { float: right; width: min(44%, 440px); margin: 4px 0 24px clamp(32px, 4vw, 56px); padding: 0 0 0 clamp(20px, 2vw, 28px); border-left: 3px solid var(--cheat); }
.about-story .pullquote::before { content: "\201C"; display: block; font-size: 72px; line-height: .8; height: .42em; color: var(--cheat); opacity: .6; font-weight: 600; }
.about-story .pullquote blockquote { margin: 0; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.about-story .pullquote figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
@media (max-width: 800px) { .about-story .pullquote { float: none; width: auto; margin: 8px 0 28px; } }

/* EssayProof teacher results mock-up, rebuilt from the real teacher app screens (23 Nov 2026) */
.ep { --ep-ok: var(--green); --ep-mid: #E9A260; --ep-low: #DE7A7A; --ep-field: color-mix(in srgb, var(--bg) 70%, #000); }
.ep .mock-bar .ex { margin-left: 0; flex: none; color: var(--muted); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ep-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ep-brand { display: inline-flex; align-items: baseline; gap: 8px; margin-right: auto; font-size: 13px; color: var(--muted); }
.ep-brand .pname { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ep-who { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--muted); line-height: 1.35; margin-right: 6px; }
.ep-who b { color: var(--ink); font-size: 13px; }
.ep-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 13px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ep-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.ep-back { font-size: 13px; font-weight: 600; color: var(--green-text); }
.ep-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.ep-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ep-card h4 { font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.ep-sum { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ep-icons { display: flex; gap: 8px; flex: none; }
.ep-icons i { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.ep-meta { display: grid; grid-template-columns: repeat(6, auto); justify-content: start; gap: 8px 28px; margin: 0; }
.ep-meta div { min-width: 0; }
.ep-meta dt { font-size: 12px; color: var(--muted); }
.ep-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.ep-meta .ep-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; font-weight: 600; }
.ep-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ep-search { flex: 0 1 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.ep-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.ep-chip b { font-size: 13px; }
.ep-i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: #0B2340; }
.ep-i.ok { background: var(--ep-ok); } .ep-i.mid { background: var(--ep-mid); } .ep-i.low { background: var(--ep-low); }
.ep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ep-list li { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ep-list li.open { background: var(--surface); }
.ep-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; font-size: 14px; }
.ep-name { font-weight: 600; white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; }
.ep-caret { font-size: 10px; color: var(--muted); }
.ep-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-align: right; }
.ep-status b { color: var(--ink); }
.ep-detail { border-top: 1px solid var(--line); padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.55; }
.ep-detail h5 { margin: 0 0 -6px; font-size: 13px; font-weight: 600; }
.ep-grade { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.ep-grade span:not(.ep-input) { font-size: 12px; color: var(--muted); }
.ep-input { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ep-field); color: var(--ink); }
.ep-input-sm { display: inline-block; min-width: 140px; }
.ep-wrote { font-weight: 600; }
.ep-field { display: flex; flex-direction: column; gap: 8px; }
.ep-sent { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.ep-q { display: flex; flex-direction: column; gap: 8px; }
.ep-qcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--ep-field); }
.ep-qcard p { font-weight: 600; }
.ep-ans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ep-ans > span { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.ep-ans small { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ep-ans em { font-style: normal; font-weight: 600; color: var(--green-text); }
.ep-compact .ep-body { padding: 16px; gap: 10px; }
.ep-compact .ep-card { padding: 14px 16px; }
.ep-compact .ep-card h4 { font-size: 15px; }
.ep-compact .ep-chip { padding-right: 9px; font-size: 11px; }
.ep-compact .ep-row { padding: 8px 12px; font-size: 13px; }
.ep-compact .ep-status { font-size: 12px; }
@media (max-width: 1080px) { .ep-meta { grid-template-columns: repeat(3, minmax(0, auto)); } }
@media (max-width: 640px) {
  .ep-who, .ep-icons { display: none; }
  .ep-top { padding: 12px 14px; }
  .ep-body { padding: 14px; }
  .ep-card { padding: 14px; }
  .ep-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-search { flex: 1 1 100%; }
  .ep-top .ep-btn:not(:last-child) { display: none; }
  .ep-row { padding: 9px 12px; font-size: 13px; }
  .ep-status { font-size: 12px; gap: 6px; }
  .ep-detail > p:first-of-type { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
  .ep-grade span:not(.ep-input) { flex-basis: 100%; }
  .ep-ans { grid-template-columns: minmax(0, 1fr); }
}

/* Live site: "email us" panel in place of the prototype forms (23 Nov 2026) */
.form-email { display: flex; flex-direction: column; gap: 14px; align-content: start; }
.form-email a:not(.btn) { color: var(--coral-text); }

/* Home overview card, styled after the /stand-leaderboard event display (25 Nov 2026). Script: src/pages/index.astro.
   ov- prefix because the stand pages also load this file and have their own .live-dot, .feed-tag and so on. */
.ov-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ov-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green-text); animation: ov-pulse 1.6s ease-out infinite; }
@keyframes ov-pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green-text) 70%, transparent); } to { box-shadow: 0 0 0 7px transparent; } }
.ov-total > span { display: block; font-size: 12px; color: var(--muted); }
.ov-total b { display: block; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--cheat-text); font-variant-numeric: tabular-nums; }
.ov-total b.bump { animation: ov-total-bump 1.2s var(--ease); }
@keyframes ov-total-bump { from { color: var(--ink); } }
.ov-news { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.ov-news-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
/* One line tall. Lines stack on top of each other here so the old and new can pass during the slide. */
.ov-news-window { position: relative; flex: 1; min-width: 0; height: 26px; overflow: hidden; }
.ov-news-line { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.ov-news-line b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ov-news-line.is-entering { animation: ov-line-enter .6s var(--ease); }
.ov-news-line.is-leaving { animation: ov-line-leave .6s var(--ease) forwards; }
@keyframes ov-line-enter { from { transform: translateY(100%); opacity: 0; } }
@keyframes ov-line-leave { to { transform: translateY(-100%); opacity: 0; } }
.ov-tag { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ov-tag.is-block { background: color-mix(in srgb, var(--coral) 22%, transparent); color: var(--coral-text); }
.ov-tag.is-monitor { background: color-mix(in srgb, var(--orange) 22%, transparent); color: var(--orange-text); }
[data-live-row] { transition: color .6s var(--ease); }
[data-live-row].bump { animation: livebump 1.2s var(--ease); }
@keyframes livebump { 0% { color: var(--cheat-text); } 100% { color: inherit; } }
.tbl tr.is-hit td { animation: ov-row-glow 2.4s ease-out; }
@keyframes ov-row-glow { from { background: color-mix(in srgb, var(--cheat) 22%, transparent); } }

/* Home hero, shorter so the CheatProof row shows on a laptop screen without scrolling (23 Nov 2026) */
.hero-edge.home-hero { min-height: 0; }
@media (min-width: 901px) { .hero-edge.home-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.hero-edge.home-hero > .copy { padding-top: clamp(32px, 3.5vw, 52px); padding-bottom: clamp(32px, 3.5vw, 52px); gap: 16px; }
.hero-edge.home-hero .lede { max-width: 62ch; }
.hero-edge.home-hero .media-card { transform: scale(0.86); bottom: clamp(18px, 2vw, 28px); }
.home-hero .mock-bar { padding-block: 9px; }
.home-hero .mock-body { padding: 16px 20px 14px; gap: 12px; }
.home-hero .kpi { padding: 10px 12px; }
.home-hero .kpi b { font-size: 22px; }
.home-hero .tbl th { padding: 5px 10px; }
.home-hero .tbl td { padding: 7px 10px; }
.hero-edge.home-hero + section.mid { padding-top: clamp(28px, 3vw, 44px); }
@media (max-width: 900px) {
  .hero-edge.home-hero > .copy { padding: 40px var(--gutter) 32px; }
  .hero-edge.home-hero .media-card { transform: none; }
  .hero-edge.home-hero .media:not(.solo) .photo { aspect-ratio: 16 / 9; }
}


/* 404 page (24 Nov 2026) */
.nf-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.nf-hero { padding-bottom: clamp(72px, 9vw, 120px); }
