/* =============================================================================
   The Performance Matrix® — styles.
   Design tokens + structure carried over from the approved design sample
   (theperformancematrix.netlify.app). See LAYOUT.md in the site-starter-kit for
   the reasoning behind the container/grid/breakpoint/button defaults this builds on.
   ============================================================================= */

:root {
  /* Brand palette — approved red direction (CMS sign-off, Jul 2026).
     These values match the Comera brand kit's tokens exactly
     (final-kit/tokens/tokens.css): --tpm-accent → --pulse, --tpm-accent-ink →
     --pulse-deep, --tpm-accent-on-dark → --pulse-light, --tpm-accent-2 → --red-deep,
     --tpm-dark → --ink, --tpm-light → --chart. The kit is the authority; if it changes,
     change these. (They were originally derived from the logo artwork before the kit's
     colour side was regenerated, and turned out identical.)

     The previous direction had TWO accents (teal + orange). The approved brand has ONE
     (red), so --pulse and --signal now resolve to the same red; both names are kept
     because they still carry distinct SEMANTIC roles in the stylesheet (informational
     accent vs. call-to-action) and may diverge again later.

     Three reds, because one can't cover every surface at AA contrast:
       --pulse        brand red. Backgrounds, borders, graphics, large text. On white it
                      is 4.37:1 — fine for large/UI, NOT for small body text.
       --pulse-deep   darker red for SMALL text on light surfaces (7.01:1 on white).
       --pulse-light  the logo's own mid tint, for accent text on DARK surfaces
                      (6.02:1 on ink) where the full-strength red only reaches 4.14:1. */
  --ink: #14161A;
  --ink-soft: #2A2E35;
  --chart: #F4F5F6;
  --white: #FFFFFF;
  --pulse: #E1382A;
  --pulse-deep: #A9271C;
  --pulse-light: #E97066;
  --red-deep: #7C1B13;      /* deepest red — final-CTA gradient only */
  --signal: #E1382A;
  --signal-deep: #A9271C;
  /* Success needs its own colour now the single accent is red — a red "success"
     message would read as an error. Errors keep the brand red. */
  --success: #146C43;
  --gridline: #E6E8EA;
  --muted: #55606B;
  --radius: 10px;
  --maxw: 1180px;
  /* Header height is a token because the sticky nav, the mobile dropdown's offset and
     every anchor target's scroll-margin all have to agree with it. It is sized to fit the
     approved lockup: that artwork is ~2.58:1 with the wordmark only ~18% of its height,
     so the lockup needs ~66px of height before the wordmark is comfortably readable. */
  --header-h: 88px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation: none !important; transition: none !important; }
}
/* Every in-page jump target (#solutions, #enquire, #checkout …) sits under a sticky
   header, so without this the section heading lands hidden behind it. Pinned to the
   header token so the two can't drift apart. */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Archivo, sans-serif; line-height: 1.05; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--pulse); outline-offset: 2px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; padding: 15px 28px; border-radius: 6px;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer; border: none;
}
.btn:focus-visible { outline: 3px solid var(--pulse); outline-offset: 3px; }
.btn-signal { background: var(--signal); color: #fff; box-shadow: 0 4px 14px rgba(225,56,42,.35); }
.btn-signal:hover { background: var(--signal-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-pulse { background: var(--pulse); color: #fff; }
.btn-pulse:hover { background: var(--pulse-deep); transform: translateY(-2px); }
.btn .arrow { font-family: 'IBM Plex Mono', monospace; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gridline);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; }
/* The approved lockup, used as-is — no re-setting of the wordmark in a web font, so what
   ships is exactly what was signed off. Width drives the size; height is auto so the
   2.58:1 artwork ratio can never be distorted. */
.logo-lockup { width: 170px; height: auto; flex: none; }
.logo .tm-sub {
  font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 10px;
  color: var(--muted); letter-spacing: .08em; max-width: 8em; line-height: 1.4;
}
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
nav.links a:hover { color: var(--pulse-deep); }
/* aria-current alone is announced but invisible — mark the active page visually too. */
nav.links a[aria-current="page"] { color: var(--pulse-deep); font-weight: 700; }
nav.links .btn { padding: 10px 20px; font-size: 13px; color: #fff; }
.menu-toggle {
  display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink);
  width: 44px; height: 44px; align-items: center; justify-content: center;
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 88px 0 96px; }
/* Default is the DARK-surface tint (the hero) — light-surface uses override inline to
   var(--pulse-deep), because full-strength red is only 4.14:1 on ink at this size. */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pulse-light); margin-bottom: 22px; display: block;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--pulse); }
.hero p.lede { font-size: 19px; color: #C7CCD1; max-width: 34em; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8A929B; }

.matrix-frame {
  background: var(--ink-soft); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.matrix-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.matrix-head .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .14em; color: #AEB4BB; text-transform: uppercase; }
.matrix-head .live { display: flex; align-items: center; gap: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--pulse-light); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pulse); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.cells { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.cell { aspect-ratio: 1 / 1; border-radius: 4px; background: rgba(255,255,255,.06); animation: cellPulse 5s ease-in-out infinite; }
/* The legend has to stay readable with ONE accent: previously "efficient" was teal and
   "retraining target" orange. Now only the retraining target is red — the thing the
   practitioner acts on — and efficient cells recede to neutral. Same approach the
   approved red mockup takes with its isometric cube. */
.cell.on { background: #565A61; }
.cell.flag { background: var(--signal); }
@keyframes cellPulse { 0%, 100% { opacity: .85; } 50% { opacity: .45; } }
.matrix-legend { display: flex; gap: 20px; margin-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #AEB4BB; flex-wrap: wrap; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.swatch-pulse { background: #565A61; }   /* efficient — neutral, matches .cell.on */
.swatch-signal { background: var(--signal); }
.swatch-untested { background: rgba(255,255,255,.15); }

/* ---------- trust strip ---------- */
.trust { background: var(--chart); border-bottom: 1px solid var(--gridline); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 34px 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .num { font-family: Archivo, sans-serif; font-weight: 900; font-size: 34px; color: var(--pulse-deep); line-height: 1.05; }
.trust-item p { font-size: 14px; color: var(--muted); max-width: 22em; }

/* ---------- section rhythm ---------- */
section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.015em; margin-bottom: 16px; }
.sec-head p { font-size: 17px; color: var(--muted); }

/* ---------- how it works steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--gridline); border: 1px solid var(--gridline); border-radius: var(--radius); overflow: hidden;
}
.step { background: #fff; padding: 34px 26px; transition: background .2s; }
.step:hover { background: var(--chart); }
.step .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--pulse-deep); letter-spacing: .14em; display: block; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- demo ---------- */
.demo { background: var(--ink); color: #fff; }
.demo .sec-head h2 { color: #fff; }
.demo .sec-head p { color: #C7CCD1; }
.video-shell {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px rgba(0,0,0,.45);
  aspect-ratio: 16/9; background: var(--ink-soft);
}
.video-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Click-to-load poster: a real <button> (it performs an action, it doesn't navigate),
   filling the shell so the whole area is the hit target. */
.video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 2.4vw, 22px); text-align: center; padding: 24px;
  background: transparent; border: 0; cursor: pointer; font: inherit; color: #fff;
}
/* flex:none on both — the shell is a fixed 16:9 box, so without it a column flex
   container shrinks its children to fit and the play ring renders as an oval. */
.video-poster-logo { width: min(280px, 46%); height: auto; opacity: .92; flex: none; }
.play-ring {
  width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--signal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(225,56,42,.18); transition: transform .2s;
}
.video-poster:hover .play-ring,
.video-poster:focus-visible .play-ring { transform: scale(1.08); }
.video-poster:focus-visible { outline: 3px solid var(--pulse-light); outline-offset: -4px; }
.play-ring svg { margin-left: 5px; }
.video-poster-text { color: #C7CCD1; font-size: 15px; max-width: 30em; }
.video-noscript { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #C7CCD1; font-size: 15px; }
.video-noscript a { color: var(--pulse-light); }
.demo-caption { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8A929B; margin-top: 16px; }

/* ---------- pricing tiers ---------- */
.products { background: var(--chart); }
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 48px; }
.tier {
  background: #fff; border: 1px solid var(--gridline); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,22,26,.12); }
.tier.popular { border: 2px solid var(--signal); }
.badge {
  position: absolute; top: -13px; left: 26px; background: var(--signal); color: #fff;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em;
  padding: 4px 12px; border-radius: 99px; text-transform: uppercase;
}
.tier .t-name { font-family: Archivo, sans-serif; font-weight: 900; font-size: 22px; margin-bottom: 6px; }
.tier .t-tag { font-size: 14px; color: var(--muted); margin-bottom: 20px; min-height: 3.2em; }
.tier ul { list-style: none; margin-bottom: 26px; flex: 1; }
.tier li { font-size: 14px; padding: 8px 0; border-top: 1px dashed var(--gridline); display: flex; gap: 10px; }
.tier li::before { content: "■"; color: var(--pulse); font-size: 9px; line-height: 2.3; }
.tier .btn { justify-content: center; width: 100%; }
.spec { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--pulse-deep); margin-bottom: 14px; }
.price-row { border-top: 2px solid var(--gridline); padding: 16px 0 18px; margin-bottom: 6px; }
.price-row .licence { font-family: Archivo, sans-serif; font-weight: 900; font-size: 17px; }
.price-row .p-note { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.licence-price {
  font-family: Archivo, sans-serif; font-weight: 900; font-size: 26px; color: var(--ink);
  min-height: 1.2em; /* reserves space before /api/prices resolves, so nothing jumps */
}
.addl-seat-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.addl-seat-note[hidden] { display: none; }
.coe-buy .addl-seat-note { color: #C7CCD1; }
.buy-error { font-size: 13px; color: var(--signal-deep); margin-top: 10px; }
.buy-error[hidden] { display: none; }
.buy-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- seat-quantity stepper ---------- */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.qty-label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.qty-stepper {
  display: inline-flex; align-items: stretch; border: 1.5px solid var(--gridline); border-radius: 6px;
  overflow: hidden;
}
.qty-btn {
  background: var(--chart); border: none; color: var(--ink); font-family: Archivo, sans-serif;
  font-weight: 700; font-size: 18px; width: 40px; min-height: 44px; cursor: pointer; line-height: 1;
}
.qty-btn:hover { background: var(--gridline); }
.qty-btn:focus-visible { outline: 3px solid var(--pulse); outline-offset: -3px; }
.qty-input {
  width: 48px; min-height: 44px; border: none; border-left: 1.5px solid var(--gridline);
  border-right: 1.5px solid var(--gridline); text-align: center; font: inherit; font-weight: 700;
  color: var(--ink); -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus-visible { outline: 3px solid var(--pulse); outline-offset: -3px; }
/* on the dark CoE panel, restyle for contrast */
.coe-buy .qty-row { justify-content: center; gap: 16px; }
.coe-buy .qty-label { color: #C7CCD1; }
.coe-buy .qty-stepper { border-color: rgba(255,255,255,.3); }
.coe-buy .qty-btn { background: rgba(255,255,255,.08); color: #fff; }
.coe-buy .qty-btn:hover { background: rgba(255,255,255,.18); }
.coe-buy .qty-input { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

/* ---------- billing-interval toggle (shared control above the tier grid) ---------- */
.interval-toggle {
  display: inline-flex; gap: 2px; background: var(--gridline); border-radius: 999px;
  padding: 3px; margin-bottom: 32px;
}
.interval-btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500;
  border: none; background: transparent; color: var(--ink-soft); padding: 9px 18px;
  border-radius: 999px; cursor: pointer; transition: background .15s, color .15s;
}
.interval-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.interval-btn:focus-visible { outline: 3px solid var(--pulse); outline-offset: 2px; }

/* ---------- Centre of Excellence panel ---------- */
.coe-panel {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px 34px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.coe-copy .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--pulse); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.coe-copy h3 { font-size: 24px; margin-bottom: 12px; }
.coe-copy p { color: #C7CCD1; font-size: 15px; margin-bottom: 18px; }
.coe-buy { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 24px; text-align: center; }
.coe-buy .interval-toggle { background: rgba(255,255,255,.14); margin-bottom: 18px; }
.coe-buy .interval-btn { color: #fff; }
.coe-buy .interval-btn[aria-pressed="true"] { background: var(--pulse); }
.coe-buy .licence-price { color: #fff; }
.coe-buy .p-note { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #AEB4BB; margin-bottom: 18px; }
.coe-buy .buy-btn { width: 100%; justify-content: center; }

/* ---------- sport matrices ---------- */
.sport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sport {
  border-radius: var(--radius); padding: 38px 34px; color: #fff; position: relative; overflow: hidden;
  background: var(--ink); display: flex; flex-direction: column; gap: 14px;
}
.sport::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,56,42,.35), transparent 70%); pointer-events: none;
}
.sport h3 { font-size: 26px; font-weight: 900; }
.sport p { color: #C7CCD1; font-size: 15px; max-width: 32em; }
.sport .btn { align-self: flex-start; margin-top: 8px; }
.soon { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; color: var(--pulse-light); text-transform: uppercase; }

/* ---------- education ---------- */
.edu { background: #fff; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.edu h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; margin-bottom: 18px; letter-spacing: -.015em; }
.edu-copy p { color: var(--muted); margin-bottom: 18px; }
.edu-copy .hero-ctas { margin-top: 26px; }
.edu-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 38px 34px; }
.edu-card .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--pulse-light); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.edu-card h3 { font-size: 22px; margin-bottom: 12px; }
.edu-card p { color: #C7CCD1; font-size: 15px; margin-bottom: 24px; }

/* ---------- enquiry form ---------- */
.enquire { background: var(--chart); }
.enquire-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.enquire-copy p { color: var(--muted); margin-bottom: 16px; }
.enquire-copy ul { list-style: none; margin-top: 24px; }
.enquire-copy li { font-size: 14.5px; padding: 10px 0; border-top: 1px dashed var(--gridline); display: flex; gap: 10px; }
.enquire-copy li::before { content: "■"; color: var(--pulse); font-size: 9px; line-height: 2.3; }
.enquire-form {
  background: #fff; border: 1px solid var(--gridline); border-radius: var(--radius); padding: 34px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 6px;
  border: 1.5px solid var(--gridline); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--pulse); outline-offset: 1px; border-color: var(--pulse); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.field-check input { width: auto; margin-top: 4px; }
.field-check label { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.form-msg { font-size: 14px; margin-top: 16px; display: none; padding: 12px 14px; border-radius: 6px; }
.form-msg.show { display: block; }
/* Success is deliberately NOT the brand red — with a single red accent, a red
   "thanks, we got your enquiry" would read as a failure. Errors keep the red. */
.form-msg.ok { background: rgba(20,108,67,.1); color: var(--success); }
.form-msg.err { background: rgba(225,56,42,.1); color: var(--signal-deep); }
.enquire-form button[type="submit"] { width: 100%; justify-content: center; }
.enquire-form button[type="submit"][disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- final CTA band ---------- */
.trial { background: linear-gradient(120deg, var(--red-deep), var(--pulse)); color: #fff; padding: 72px 0; }
.trial-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.trial h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: -.015em; }
.trial p { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 36em; }
/* This band is now red, so the red CTA button would vanish into it — invert to a white
   button with red-dark text (7.01:1). Scoped override so the markup stays unchanged. */
.trial .btn-signal { background: #fff; color: var(--pulse-deep); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.trial .btn-signal:hover { background: var(--chart); color: var(--red-deep); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #C7CCD1; padding: 64px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
footer h4 { font-family: Archivo, sans-serif; color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { text-decoration: none; color: #C7CCD1; }
footer a:hover { color: var(--pulse-light); }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; font-size: 12.5px; line-height: 1.7; }
.foot-legal .tm { color: #C7CCD1; }
.foot-legal .statutory { color: #8A929B; }

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--gridline);
  box-shadow: 0 -8px 24px rgba(20,22,26,.12);
}

/* =============================================================================
   Research index (research.html — generated; see scripts/generate_research.py)
   ============================================================================= */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 18px; }
.page-hero .lede { font-size: 18px; color: #C7CCD1; max-width: 46em; }
.page-hero .hero-note { margin-top: 20px; }
.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8A929B; margin-bottom: 18px; }
.breadcrumb a { color: var(--pulse-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.research-wrap { max-width: 900px; }
.research-year {
  font-size: 24px; font-weight: 900; color: var(--pulse-deep);
  padding-bottom: 10px; border-bottom: 2px solid var(--gridline); margin-bottom: 4px;
}
.research-year + .research-list { margin-bottom: 48px; }
.research-list { list-style: none; }
.research-item { padding: 20px 0; border-bottom: 1px dashed var(--gridline); }
.research-item:last-child { border-bottom: 0; }
.r-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.r-title { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 16.5px; font-weight: 600; line-height: 1.45; margin-bottom: 4px; }
.r-title a { color: var(--pulse-deep); text-decoration: underline; text-underline-offset: 2px; }
.r-title a:hover { color: var(--ink); }
.r-source { font-size: 14.5px; color: var(--muted); font-style: italic; }

/* =============================================================================
   Legal page shell (privacy.html / terms.html)
   ============================================================================= */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: 34px; margin-bottom: 6px; }
.doc .meta { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; }
.doc p, .doc li { font-size: 15.5px; color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 16px; }
.doc li { margin-bottom: 8px; }
.doc p { margin-bottom: 16px; }
.doc a { color: var(--pulse-deep); text-decoration: underline; }
.back-link { display: inline-block; font-weight: 600; font-size: 14px; color: var(--pulse-deep); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--gridline); vertical-align: top; }
.doc th { background: var(--chart); font-family: Archivo, sans-serif; font-weight: 700; }

/* =============================================================================
   404 page
   ============================================================================= */
.notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 64px 24px; }
.notfound h1 { font-size: 20px; font-family: 'IBM Plex Mono', monospace; color: var(--pulse-deep); margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

/* =============================================================================
   RESPONSIVE — the tier recipe: N-up grids step down N → 2 → 1, never straight to 1.
   ============================================================================= */
@media (max-width: 1180px) {
  .hero-grid, .edu-grid, .enquire-grid, .coe-panel { grid-template-columns: 1fr; gap: 44px; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.links { display: none; }
  nav.links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 24px; border-bottom: 1px solid var(--gridline); align-items: flex-start;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .menu-toggle { display: flex; }
}
@media (max-width: 620px) {
  /* Smaller lockup + shorter header on phones; the "by Comera Movement Science" line is
     dropped here rather than allowed to wrap beside the mark (it is still in the footer). */
  :root { --header-h: 74px; }
  .logo-lockup { width: 132px; }
  .logo .tm-sub { display: none; }
  .tier-grid, .sport-grid, .trust-row, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero-grid { padding: 56px 0 64px; }
  .foot-grid { grid-template-columns: 1fr; }
  .coe-panel { padding: 28px 22px; }
  .enquire-form { padding: 26px 22px; }
  /* the 16:9 shell gets short on a phone — shrink the poster furniture to match */
  .play-ring { width: 60px; height: 60px; box-shadow: 0 0 0 8px rgba(225,56,42,.18); }
  .play-ring svg { width: 19px; height: 22px; }
  .video-poster { padding: 16px; }
  .video-poster-text { font-size: 13px; }
}
