/* Playalis site styles.
   Rules: one page background for every section, header and footer; no lines between sections;
   no gradients, no transparency, no shadows. Depth comes from solid surface steps only.
   Only form inputs carry a border. Table rows separate by alternating fills.
   Light "Day game" theme by default; dark "Night game" theme via OS or [data-theme]. */

:root {
  /* colour: Day game (light) */
  --bg: #F3F5F1;          /* page, header, footer, every section */
  --raised: #FFFFFF;      /* cards, panels on --bg */
  --sunk: #E5EBE5;        /* wells, table stripes, chips on --bg */
  --sunk-2: #D3DCD4;      /* pressed chips, bar tracks (no small text on it) */
  --ink: #0B1A13;         /* pitch-night ink: text on every surface */
  --ink-2: #364A3F;       /* secondary text on every surface */
  --ink-3: #50635A;       /* captions, labels on --bg/--raised/--sunk */
  --turf: #0A7A3E;        /* turf green: brand fills, white text on it */
  --on-turf: #FFFFFF;     /* text on --turf */
  --turf-ink: #0A6B37;    /* turf as text/links on light surfaces */
  --turf-soft: #DAEEDF;   /* tinted fill: highlight rows, active nav, example tags */
  --blue: #1F55C9;        /* "ok" status, links in captions */
  --blue-soft: #DEE6F8;
  --orange: #AE4508;      /* alert, override, drift (always with a word) */
  --orange-soft: #F8E2D2;
  --live: #C8102E;        /* on-air tally: only on the LIVE label, always with the word */
  --on-live: #FFFFFF;
  --field: #76837B;       /* input borders on --raised (>= 3:1) */
  --go-bg: #0A7A3E; --go-ink: #FFFFFF; --go-bg-h: #0B1A13; --go-ink-h: #FFFFFF;
  --night: #0B1A13;       /* CTA block and code blocks */
  --night-ink: #EEF3EE;
  --night-dim: #A3B2A8;
  --focus: #1F55C9;
  /* match canvas (the pitch is grass in both themes) */
  --cv-grass: #1F6B40; --cv-stripe: #236F44; --cv-line: #E6EFE8; --cv-home: #FFFFFF; --cv-away: #0B1A13;
  --cv-ball: #FFD23F; --cv-trail-h: #9CC8AC; --cv-trail-a: #12432A; --cv-hull-h: #2C7C50; --cv-hull-a: #185A35; --cv-cam: #FFD23F;

  /* type */
  --f-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-data: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t-hero: clamp(2.6rem, 1.6rem + 4.2vw, 5rem);
  --t-h1: clamp(2.2rem, 1.5rem + 2.9vw, 3.9rem);
  --t-h2: clamp(1.8rem, 1.35rem + 1.8vw, 2.8rem);
  --t-h3: 1.15rem;
  --t-big: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
  --t-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  --t-body: 1rem;
  --t-sm: 0.875rem;
  --t-xs: 0.78rem;

  /* space (4px scale) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
  --section-y: clamp(64px, 5vw + 40px, 120px);
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --wrap: 1200px;

  /* shape: rounded panels like scoreboard modules; pills for controls; no cut corners */
  --r-sm: 8px; --r: 16px; --r-lg: 24px;
  --dur: 200ms; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A120E; --raised: #131E18; --sunk: #050A07; --sunk-2: #22302A;
    --ink: #ECF2ED; --ink-2: #BAC7BE; --ink-3: #8FA096;
    --turf: #2BC46F; --on-turf: #06130C; --turf-ink: #5ED692; --turf-soft: #0F3320;
    --blue: #8FB0FF; --blue-soft: #1B2950; --orange: #FF9F66; --orange-soft: #3D2110; --live: #FF5A6E; --on-live: #1A0306;
    --field: #6E7D74; --go-bg: #2BC46F; --go-ink: #06130C; --go-bg-h: #ECF2ED; --go-ink-h: #06130C;
    --night: #131E18; --night-ink: #ECF2ED; --night-dim: #97A69C; --focus: #8FB0FF;
    --cv-grass: #154A2C; --cv-stripe: #184F30; --cv-line: #CFDDD3; --cv-trail-a: #0A2717; --cv-hull-h: #1E6440; --cv-hull-a: #0F3A22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A120E; --raised: #131E18; --sunk: #050A07; --sunk-2: #22302A;
  --ink: #ECF2ED; --ink-2: #BAC7BE; --ink-3: #8FA096;
  --turf: #2BC46F; --on-turf: #06130C; --turf-ink: #5ED692; --turf-soft: #0F3320;
  --blue: #8FB0FF; --blue-soft: #1B2950; --orange: #FF9F66; --orange-soft: #3D2110; --live: #FF5A6E; --on-live: #1A0306;
  --field: #6E7D74; --go-bg: #2BC46F; --go-ink: #06130C; --go-bg-h: #ECF2ED; --go-ink-h: #06130C;
  --night: #131E18; --night-ink: #ECF2ED; --night-dim: #97A69C; --focus: #8FB0FF;
  --cv-grass: #154A2C; --cv-stripe: #184F30; --cv-line: #CFDDD3; --cv-trail-a: #0A2717; --cv-hull-h: #1E6440; --cv-hull-a: #0F3A22;
  color-scheme: dark;
}

/* ------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.6 var(--f-text); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .vis-cap a { color: var(--turf-ink); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.data { font-family: var(--f-data); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0; font-feature-settings: "zero" 1; }
.sel { user-select: all; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--turf); color: var(--on-turf); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { top: var(--s-2); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.h1, .h2, .h3, .brand span, .metric-v, .prow-name { font-family: var(--f-display); }
.h1 { font-size: var(--t-h1); line-height: 1.02; font-weight: 760; font-stretch: 112%; letter-spacing: -0.02em; text-transform: none; }
.hero-h { font-size: var(--t-hero); }
.h1 em, .h2 em { font-style: normal; color: var(--turf-ink); }
.h2 { font-size: var(--t-h2); line-height: 1.06; font-weight: 720; font-stretch: 108%; letter-spacing: -0.015em; max-width: 24ch; }
.h3 { font-size: var(--t-h3); line-height: 1.28; font-weight: 680; font-stretch: 100%; }
.lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 60ch; }
.big { font-size: var(--t-big); line-height: 1.38; font-weight: 500; letter-spacing: -0.01em; margin-bottom: var(--s-5); }
.vis-cap { font-size: var(--t-sm); color: var(--ink-3); margin-top: var(--s-4); max-width: 75ch; }

/* ------------------------------------------------ the mark */
.mark { width: 26px; height: auto; flex: none; }
.mark .m-p { fill: currentColor; }
.mark .m-b { fill: var(--turf); }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--turf); flex: none; }
.tile svg { width: 22px; height: 28px; }
.tile .t-p { fill: var(--on-turf); }
.tile .t-b { fill: var(--on-turf); }

/* ------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.bar { display: flex; align-items: center; gap: var(--s-6); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 740; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; }
.brand span { font-stretch: 112%; padding-bottom: 2px; }
.nav-main { flex: 1; }
.nav-links { display: flex; align-items: center; gap: var(--s-1); }
.nav-link, .nav-menu-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); background: transparent; border: 0; }
.nav-link:hover, .nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { background: var(--sunk); color: var(--ink); }
.nav-link[aria-current="page"], .nav-menu-btn.is-active { color: var(--ink); background: var(--turf-soft); }
.nav-menu-btn svg { width: 11px; height: 11px; transition: transform var(--dur) var(--ease); }
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 10px); left: 0; width: 470px; background: var(--raised); border-radius: var(--r); padding: var(--s-2); z-index: 60; outline: 2px solid var(--sunk-2); }
.nav-menu[hidden] { display: none; }
.menu-item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center; padding: 10px 12px; border-radius: var(--r-sm); }
.menu-item:hover, .menu-item[aria-current="page"] { background: var(--sunk); }
.menu-item strong { display: block; font-weight: 650; }
.menu-item small { display: block; color: var(--ink-3); font-size: var(--t-sm); line-height: 1.35; }
.menu-st { color: var(--ink-3); }
.menu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-1); padding: 12px; border-radius: var(--r-sm); background: var(--sunk); font-weight: 600; font-size: var(--t-sm); }
.menu-foot:hover { background: var(--turf-soft); }
.nav-tools { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; flex: none; }
.nav-account { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); padding: 8px 6px; white-space: nowrap; }
.nav-account:hover, .nav-account[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.icon-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--sunk); }
.icon-btn svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }
.panel-only { display: none; }
.glyph { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; background: var(--sunk); align-items: center; justify-content: center; color: var(--ink); flex: none; }
.glyph svg { width: 20px; height: 20px; }
.glyph .ga { fill: var(--turf); }
.glyph-lg { width: 44px; height: 44px; border-radius: 12px; }
.glyph-lg svg { width: 24px; height: 24px; }
.glyph-xl { width: 64px; height: 64px; border-radius: var(--r); background: var(--bg); }
.glyph-xl svg { width: 36px; height: 36px; }

/* ------------------------------------------------ buttons, chips, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0; font-weight: 650; font-size: 1rem; line-height: 1.1; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.9375rem; }
.btn-go { background: var(--go-bg); color: var(--go-ink); }
.btn-go:hover { background: var(--go-bg-h); color: var(--go-ink-h); }
.btn-soft { background: var(--sunk); color: var(--ink); }
.btn-soft:hover { background: var(--sunk-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); margin-bottom: var(--s-6); }
.chip-dot { width: 10px; height: 10px; background: var(--turf); border-radius: 50%; margin-left: 4px; }
.chip .chip-g { width: 24px; height: 24px; background: var(--raised); border-radius: 999px; }
.chip .chip-g svg { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font: 600 var(--t-xs)/1.3 var(--f-data); white-space: nowrap; }
.tag-ex { background: var(--turf-soft); color: var(--ink); }
.tag-risk { background: var(--orange-soft); color: var(--orange); }
.tag-plan { background: var(--sunk); color: var(--ink); }
.tag-hold { background: var(--blue-soft); color: var(--blue); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; margin-top: var(--s-5); color: var(--ink); }
.more .arr, .menu-foot .arr { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.more:hover .arr { transform: translateX(3px); }
.more:hover { color: var(--blue); }

/* ------------------------------------------------ the match-clock eyebrow */
.tl { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s-4); font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.tl-c { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 8px; background: var(--ink); color: var(--bg); border-radius: 6px; min-width: 64px; font-variant-numeric: tabular-nums; }
.tl-c i { width: 8px; height: 8px; background: var(--turf); border-radius: 50%; }
.onair { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; background: var(--live); color: var(--on-live); font: 700 var(--t-xs)/1.3 var(--f-data); text-transform: uppercase; letter-spacing: 0.06em; flex: none; }
.onair::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-live); }

/* ------------------------------------------------ sections */
.section { padding: var(--section-y) 0; }
.section + .section { padding-top: 0; }
.sec-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-10); }
.sec-head .lead { margin-top: var(--s-1); }
.sec-aside { margin-top: calc(-1 * var(--s-2)); }
.sec-aside .more { margin-top: 0; }
.grid { display: grid; gap: var(--s-4); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.split > div { min-width: 0; }
.split-alt > div:first-child { order: 2; }

/* hero */
.hero { padding-top: clamp(32px, 4vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy .lead { margin-top: var(--s-6); }
.page-hero { padding-top: clamp(40px, 5vw, 88px); }
.ph { display: grid; gap: clamp(32px, 4vw, 64px); }
.page-hero.has-side .ph { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.ph-main .lead { margin-top: var(--s-6); }

/* scene viewport: example output under a scenario ID bar */
.vp { background: var(--raised); border-radius: var(--r); padding: var(--s-2); }
.vp-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; color: var(--ink-3); }
.vp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--turf); flex: none; }
.vp-in { background: var(--bg); border-radius: 10px; padding: var(--s-5); }

/* ------------------------------------------------ match feed (home hero) */
.console { background: var(--sunk); border-radius: var(--r-lg); padding: var(--s-3); display: grid; gap: var(--s-3); }
.con-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-2) 0; color: var(--ink-2); }
.con-bar > .data { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.con-view { background: var(--cv-grass); border-radius: var(--r); overflow: hidden; }
.con-view canvas { width: 100%; height: auto; aspect-ratio: 525 / 340; }
.con-side { display: grid; gap: var(--s-3); background: var(--raised); border-radius: var(--r); padding: var(--s-4); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sunk); border-radius: 999px; }
.con-side .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg-b { border: 0; background: transparent; padding: 8px 12px; border-radius: 999px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.seg-b:hover { color: var(--ink); background: var(--sunk-2); }
.seg-b[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ro { display: grid; gap: 2px; }
.ro > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: 8px 10px; background: var(--bg); border-radius: 6px; }
.ro dt { font-size: var(--t-sm); color: var(--ink-2); }
.ro dd { font-size: 0.9375rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.con-side .ro { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.con-side .ro > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; }
.con-side .ro dt { font-size: var(--t-xs); }
.con-side .ro dd { font-size: 0.875rem; white-space: normal; }
.console[data-mode="track"] .m-cut, .console[data-mode="track"] .m-shape,
.console[data-mode="cut"] .m-track, .console[data-mode="cut"] .m-shape,
.console[data-mode="shape"] .m-track, .console[data-mode="shape"] .m-cut { display: none; }
.console[data-mode="cut"] [data-ro="c"], .console[data-mode="shape"] [data-ro="w"], .console[data-mode="track"] [data-ro="v"] { color: var(--turf-ink); }
.con-state { font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); min-height: 3em; }
.console figcaption { font-size: var(--t-sm); color: var(--ink-3); padding: 0 var(--s-2) var(--s-1); }

/* ------------------------------------------------ cards, metrics */
.card { position: relative; background: var(--raised); border-radius: var(--r); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); transition: background var(--dur) var(--ease); }
.card p { color: var(--ink-2); }
.card-k { color: var(--ink-3); }
.card-link:hover { background: var(--turf-soft); }
.card-link:hover .card-k { color: var(--ink); }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.metric { background: var(--raised); border-radius: var(--r); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); }
.metric-v { font-size: clamp(1.9rem, 1.45rem + 1.5vw, 2.6rem); font-weight: 760; font-stretch: 112%; font-variant-numeric: tabular-nums; line-height: 1.02; letter-spacing: -0.02em; }
.metric-l { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }
.metric-n { color: var(--ink-3); margin-top: auto; padding-top: var(--s-2); }
.metric-hl { background: var(--turf); }
.metric-hl .metric-l, .metric-hl .metric-n, .metric-hl .metric-v { color: var(--on-turf); }

/* ticks */
.ticks { display: grid; gap: var(--s-3); }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; }
.ck { width: 20px; height: 20px; margin-top: 2px; }
.ck rect { fill: var(--turf); }
.ck .ck-m { fill: var(--on-turf); }

/* product rows */
.prows { display: grid; gap: 4px; }
.prow { display: grid; grid-template-columns: 40px auto 150px 100px 1fr 24px; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); background: var(--raised); border-radius: var(--r); transition: background var(--dur) var(--ease); }
.prow:hover { background: var(--turf); }
.prow:hover .glyph { background: var(--raised); }
.prow:hover .prow-n, .prow:hover .prow-verb, .prow:hover .prow-line, .prow:hover .prow-name, .prow:hover .prow-go { color: var(--on-turf); }
.prow-n, .prow-verb { color: var(--ink-3); }
.prow-name { font-size: 1.45rem; font-weight: 720; font-stretch: 112%; }
.prow-line { color: var(--ink-2); }
.prow-go .arr { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.prow:hover .prow-go .arr { transform: translateX(4px); }

/* steps: stops along a lane */
.steps { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: var(--s-3); }
.step { background: var(--raised); border-radius: var(--r); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.step p:last-child { color: var(--ink-2); font-size: 0.9375rem; }
.step-t { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); }
.step-n { display: inline-flex; padding: 2px 10px; border-radius: 6px; background: var(--turf); color: var(--on-turf); font-weight: 600; }

/* code */
.code { background: var(--night); color: var(--night-ink); border-radius: var(--r); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: var(--s-3); padding: 10px 12px 10px 16px; color: var(--night-dim); }
.code-bar .data:first-child { margin-right: auto; }
.copy { border: 0; background: var(--turf); color: var(--on-turf); font: 600 var(--t-xs) var(--f-data); padding: 6px 12px; border-radius: 999px; }
.copy:hover { background: var(--night-ink); }
.code pre { margin: 0; padding: 4px 16px 20px; overflow-x: auto; font: 400 0.8125rem/1.7 var(--f-data); }
.code .c { color: var(--night-dim); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--raised); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
caption { text-align: left; padding: var(--s-4) var(--s-5) var(--s-2); font: 600 var(--t-xs) var(--f-data); color: var(--ink-3); }
thead th { background: var(--ink); color: var(--bg); font-weight: 600; text-align: left; padding: 12px 20px; font-size: var(--t-sm); }
tbody th, tbody td { text-align: left; padding: 12px 20px; vertical-align: top; }
tbody th { font-weight: 600; }
tbody td { color: var(--ink-2); }
tbody tr:nth-child(even) { background: var(--sunk); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-items: start; }
.qa { background: var(--raised); border-radius: var(--r); }
.qa summary { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-5); font-weight: 650; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--sunk); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; background: var(--ink); border-radius: 1px; }
.qa summary i::before { left: 6px; top: 10px; width: 10px; height: 2px; }
.qa summary i::after { left: 10px; top: 6px; width: 2px; height: 10px; transition: transform var(--dur) var(--ease); }
.qa[open] summary i { background: var(--turf); }
.qa[open] summary i::before { background: var(--on-turf); }
.qa[open] summary i::after { transform: scaleY(0); }
.qa[open] summary { padding-bottom: var(--s-2); }
.qa p { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); }

/* cta */
.cta-block { display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); align-items: center; background: var(--night); color: var(--night-ink); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 72px); }
.cta-block .tl { color: var(--night-ink); }
.cta-block .tl-c { background: var(--turf); color: var(--on-turf); }
.cta-block .tl-c i { background: var(--on-turf); }
.cta-block .h2 { color: var(--night-ink); }
.cta-copy > p:not(.tl) { margin-top: var(--s-4); max-width: 60ch; color: var(--night-ink); }
.cta-block .btn-go { background: var(--turf); color: var(--on-turf); }
.cta-block .btn-go:hover { background: var(--night-ink); color: var(--night); }
.cta-block .btn-soft { background: var(--night-ink); color: var(--night); }
.cta-block .btn-soft:hover { background: var(--turf); color: var(--on-turf); }
.cta-mark { width: clamp(100px, 11vw, 160px); color: var(--night-ink); }

/* layers: the stack as rows, the shared scene in the middle */
.layers { background: var(--raised); border-radius: var(--r); padding: var(--s-4); display: grid; gap: var(--s-2); }
.ly-k { color: var(--ink-3); padding: var(--s-1) var(--s-1) 0; }
.ly-row { display: grid; gap: 4px; }
.ly-2 { grid-template-columns: 1.4fr 1fr; }
.ly-3 { grid-template-columns: repeat(3, 1fr); }
.ly-c { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--bg); transition: background var(--dur) var(--ease); }
.ly-c .glyph { grid-row: span 2; }
.ly-c .data { color: var(--ink-3); }
.ly-c:hover { background: var(--turf-soft); }
.ly-core { background: var(--sunk); }
.ly-c.is-on { background: var(--turf); color: var(--on-turf); }
.ly-c.is-on .data { color: var(--on-turf); }
.ly-c.is-on .glyph { background: var(--raised); color: var(--ink); }
.ly-back { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-1) 0; color: var(--ink-2); }
.ly-ret { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--turf); position: relative; }
.ly-ret::after { content: ""; position: absolute; left: 9px; top: 7px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--on-turf); }
.ph-side .layers { padding: var(--s-3); }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-tags .tag:hover { background: var(--turf-soft); }

/* stack */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.stack li { display: grid; gap: 4px; background: var(--raised); border-radius: var(--r-sm); padding: var(--s-4) var(--s-5); }
.stack strong { font-family: var(--f-data); font-size: var(--t-sm); font-weight: 600; }
.stack span { color: var(--ink-2); font-size: var(--t-sm); }

/* chart bits */
.ch-axis { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.ch-txt { fill: var(--ink-3); font: 500 11px var(--f-data); }

/* filters and lists */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-4); }
.fchip { border: 0; background: var(--sunk); color: var(--ink-2); font-weight: 600; font-size: var(--t-sm); padding: 8px 16px; border-radius: 999px; }
.fchip:hover { background: var(--sunk-2); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.q-list { display: grid; gap: 4px; }
.q-row { display: grid; grid-template-columns: 90px 220px 110px 1fr 60px; gap: var(--s-4); align-items: center; padding: 14px var(--s-5); background: var(--raised); border-radius: var(--r-sm); font-size: 0.9375rem; }
.q-row[hidden] { display: none; }
.q-id, .q-c { color: var(--ink-3); }
.q-loc { color: var(--ink-2); font-size: var(--t-sm); }
.sc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sc { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: var(--s-5); }
.sc .data { color: var(--ink-3); }
.sc-k { padding: 2px 10px; background: var(--ink); color: var(--bg) !important; border-radius: 999px; }
.sc-out { margin-top: auto; font-size: var(--t-sm); color: var(--ink-2); }
.sc-live .sc-k { background: var(--turf); color: var(--on-turf) !important; }
.sc-cal .sc-k { background: var(--orange); color: var(--raised) !important; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-4); }
.calc-in { background: var(--raised); border-radius: var(--r); padding: var(--s-6); display: grid; gap: var(--s-5); align-content: start; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); align-items: start; }
.calc .vis-cap { grid-column: 1 / -1; margin-top: 0; }
.calc label { display: flex; justify-content: space-between; gap: var(--s-3); }
.calc output { color: var(--ink); font-weight: 600; font-size: var(--t-sm); }
input[type="range"] { width: 100%; accent-color: var(--turf); height: 28px; }
.calc .ro { margin-top: var(--s-2); }
.cam-ring svg { width: 100%; height: auto; }
.cam-ring .cr-p { fill: var(--cv-grass); }
.cam-ring .cr-l { fill: var(--cv-line); }
.cam-ring .cr-c { fill: var(--ink); }
.cam-ring .cr-v { fill: var(--turf-soft); }
.orbit-in { max-width: 560px; margin-bottom: var(--s-4); background: var(--raised); border-radius: var(--r); padding: var(--s-5); }
.orbit-in label { display: flex; justify-content: space-between; gap: var(--s-3); }
.orbit-in output { font-weight: 600; }
.orbit-svg { width: 100%; height: auto; background: var(--cv-grass); border-radius: 10px; }
.ob-patch { fill: var(--cv-stripe); stroke: var(--cv-line); stroke-width: 2; }
.ob-p line { stroke-width: 3; stroke-linecap: round; }
.ob-h line { stroke: var(--cv-home); } .ob-h circle { fill: var(--cv-home); }
.ob-a line { stroke: var(--cv-away); } .ob-a circle { fill: var(--cv-away); }
.ob-ball line { stroke: var(--cv-line); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ob-ball circle { fill: var(--cv-ball); }

/* ladder, roadmap, roles */
.ladder { display: grid; gap: 4px; }
.ladder li { display: grid; grid-template-columns: 44px 1fr; gap: 4px var(--s-3); padding: var(--s-4) var(--s-5); background: var(--raised); border-radius: var(--r-sm); }
.ladder li .data { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 28px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); font-weight: 600; }
.ladder li p { color: var(--ink-2); font-size: 0.9375rem; }
.ladder .is-on { background: var(--turf-soft); }
.ladder .is-on .data { background: var(--turf); color: var(--on-turf); }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
.roadmap li { background: var(--raised); border-radius: var(--r); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.roadmap li > .data { color: var(--ink-3); }
.roadmap li p { color: var(--ink-2); font-size: 0.9375rem; }
.roadmap .is-now { background: var(--turf); }
.roadmap .is-now > .data, .roadmap .is-now p, .roadmap .is-now .h3 { color: var(--on-turf); }
.roles { display: grid; gap: 4px; }
.role { display: grid; grid-template-columns: 1fr 110px 180px; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); background: var(--raised); border-radius: var(--r-sm); }
.role .data { color: var(--ink-3); }
.role span:last-child { color: var(--ink-2); font-size: var(--t-sm); }

/* leaders */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.leader { flex-direction: row; gap: var(--s-5); align-items: flex-start; }
.avatar { width: 96px; height: 96px; border-radius: var(--r); background: var(--sunk); color: var(--ink-3); overflow: hidden; flex: none; display: flex; align-items: flex-end; justify-content: center; }
.avatar svg { width: 84px; height: 84px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader > div:last-child { display: grid; gap: var(--s-2); }
.leader-vision { background: var(--sunk); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); }
.leader-links { display: flex; gap: var(--s-2); }
.icon-link { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 999px; background: var(--sunk); color: var(--ink); }
.icon-link:hover { background: var(--turf); color: var(--on-turf); }
.icon-link svg { width: 18px; height: 18px; }

/* forms */
.form { display: grid; gap: var(--s-4); background: var(--raised); border-radius: var(--r); padding: var(--s-6); }
.form .btn { justify-self: start; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.opt { font-weight: 400; color: var(--ink-3); font-size: var(--t-sm); }
.field input:not([type="range"]), .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; background: var(--raised); border: 1.5px solid var(--field); border-radius: var(--r-sm); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:not([type="range"]):hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.hint { font-size: var(--t-sm); color: var(--ink-3); }
.err { font-size: var(--t-sm); color: var(--orange); font-weight: 600; }
.err:empty { display: none; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--orange) !important; }
.form-ok { padding: var(--s-4); border-radius: var(--r-sm); background: var(--turf-soft); font-weight: 500; }
.mails { display: grid; gap: 4px; }
.mails li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-4) var(--s-5); background: var(--raised); border-radius: var(--r-sm); }
.mails .data { font-size: var(--t-sm); }
.signin .form { max-width: 460px; margin-left: auto; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: stretch; }
.plan { background: var(--raised); border-radius: var(--r); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.plan > p:not(.card-k) { color: var(--ink-2); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .ticks { font-size: 0.9375rem; }
.plan-hl { background: var(--night); color: var(--night-ink); }
.plan-hl > p:not(.card-k), .plan-hl .card-k { color: var(--night-ink); }
.plan-hl .btn-go { background: var(--turf); color: var(--on-turf); }
.plan-hl .btn-go:hover { background: var(--night-ink); color: var(--night); }

/* mini panels and segment cards */
.mini { display: grid; gap: 4px; }
.mini-r { display: grid; grid-template-columns: 76px 1fr auto; gap: var(--s-3); align-items: center; padding: 10px 12px; background: var(--raised); border-radius: 6px; font-size: 0.9375rem; }
.mini-r > .data:first-child { color: var(--ink-3); }
.mini-r b { font-weight: 600; color: var(--blue); }
.mini-s { color: var(--ink-3); font-size: var(--t-sm); }
.mini .vis-cap { margin-top: var(--s-3); }
.seg-vp .vp-in { padding: var(--s-8); }
.seg-card { display: grid; gap: var(--s-2); justify-items: start; }
.seg-card .glyph-xl { margin-bottom: var(--s-3); background: var(--raised); }
.seg-card .data { color: var(--ink-3); }
.seg-card p:last-child { color: var(--ink-2); }
.chat { max-width: 760px; margin-top: var(--s-6); }

/* ------------------------------------------------ footer */
.site-footer { background: var(--bg); padding: var(--s-16) 0 var(--s-10); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-8); }
.foot-brand p { color: var(--ink-2); margin-top: var(--s-4); max-width: 30ch; }
.foot-mail { display: flex; align-items: center; gap: 8px; }
.foot-mail svg { width: 18px; height: 18px; color: var(--ink); }
.foot-mail .data { font-size: var(--t-sm); color: var(--ink); }
.foot-col h2 { font: 600 var(--t-xs) var(--f-data); color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--s-4); }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { color: var(--ink-2); font-size: 0.9375rem; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-pitch { margin: var(--s-12) 0 var(--s-6); }
.foot-pitch svg { width: 100%; height: auto; overflow: visible; }
.foot-pitch .fw { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; letter-spacing: -6px; fill: var(--ink); }
.foot-pitch .pw-l { fill: var(--sunk-2); }
.foot-pitch .pw-ball { fill: var(--turf); }
.foot-base { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); color: var(--ink-3); font-size: var(--t-sm); }

/* ------------------------------------------------ reveal (transform only; content is always visible) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { transform: translateY(18px); transition: transform 600ms var(--ease); }
  .js .rv.is-in { transform: none; }
  .foot-pitch .pw-ball { animation: roll 7s cubic-bezier(.45,.05,.55,.95) infinite alternate; }
}
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(1120px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------ responsive */
@media (max-width: 1480px) {
  .theme-t { display: none; }
  .theme { padding: 0 10px; }
}
@media (max-width: 1180px) {
  .prow { grid-template-columns: 32px auto 1fr 90px 24px; }
  .prow-line { display: none; }
  .q-row { grid-template-columns: 90px 1fr 110px 60px; }
  .q-row .q-loc { display: none; }
}
@media (max-width: 1200px) {
  .icon-btn { display: inline-flex; }
  .nav-main { position: fixed; inset: 72px 0 0 0; background: var(--bg); padding: var(--s-4) var(--gutter) var(--s-10); overflow-y: auto; display: none; z-index: 49; }
  .nav-main.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link, .nav-menu-btn { width: 100%; justify-content: space-between; padding: 14px 14px; font-size: 1.0625rem; border-radius: var(--r-sm); }
  .nav-menu { position: static; width: auto; outline: 0; background: var(--sunk); margin: 4px 0 8px; }
  .panel-only { display: block; }
  .panel-only .btn { width: 100%; margin-top: var(--s-3); }
  .site-header .nav-tools .nav-account, .site-header .nav-tools .nav-cta { display: none; }
  .hero-grid, .page-hero.has-side .ph { grid-template-columns: 1fr; }
  .con-side .ro { grid-template-columns: repeat(2, 1fr); }
  .g-4, .stack, .sc-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: repeat(2, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .g-3, .plans, .leaders, .faq, .split { grid-template-columns: 1fr; }
  .split-alt > div:first-child { order: 0; }
  .cta-block { grid-template-columns: 1fr; }
  .cta-mark { width: 80px; }
  .role { grid-template-columns: 1fr auto; }
  .role span:last-child { grid-column: 1 / -1; }
  .foot-base { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .signin .form { margin-left: 0; }
}
@media (max-width: 640px) {
  .g-2, .g-4, .stack, .sc-list, .steps, .form-2, .ly-3, .ly-2 { grid-template-columns: 1fr; }
  .con-side .ro { grid-template-columns: 1fr 1fr; }
  .con-side .seg-b { font-size: var(--t-xs); padding: 8px 4px; }
  .prow { grid-template-columns: auto 1fr 24px; padding: var(--s-4); }
  .prow-n, .prow-verb { display: none; }
  .q-row { grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-3); }
  .q-row .q-sig { grid-column: 1 / -1; }
  .q-row .q-c { display: none; }
  .theme-t { display: none; }
  .theme { padding: 0 10px; }
  .bar { gap: var(--s-3); }
  .ro-row { grid-auto-flow: row; }
  .mini-r { grid-template-columns: 1fr auto; }
  .mini-r > :first-child { grid-column: 1 / -1; }
  .vp-in { padding: var(--s-3); }
  .foot { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .leader { flex-direction: column; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ================================================ brand icons + theme toggle (Playalis) */
/* Icons: pitch-lines menu (touchlines, halfway line, centre spot), corner-flag pennant caret, envelope whose flap is
   the centre-circle arc, "in" knocked out of a jersey, avatar standing in a tracking ring. All carry data-icon and inherit currentColor. */
[data-icon] { flex: none; }
[data-icon="menu"] { width: 22px; height: 22px; }
[data-icon="caret"] { width: 11px; height: 11px; }
[data-icon="mail"], [data-icon="linkedin"] { width: 18px; height: 18px; }

/* Theme toggle: a floodlight pylon. Day game = lamp bank dark, no beams.
   Night game = lamps lit turf and two beams thrown onto the pitch. */
.theme { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--sunk); color: var(--ink); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
.theme:hover { background: var(--sunk-2); }
.theme-k { display: inline-flex; flex: none; }
.theme-k svg { width: 24px; height: 22px; }
.theme-k .tk-m { fill: var(--ink); }
.theme-k .tk-l { fill: var(--sunk-2); transition: fill var(--dur) var(--ease); }
.theme-k .tk-b { fill: var(--sunk); transition: fill var(--dur) var(--ease); }
.theme:hover .tk-l { fill: var(--ink-3); }
.theme:hover .tk-b { fill: var(--sunk-2); }
.theme-t .t-d { display: none; }
.theme[aria-pressed="true"] .tk-l { fill: var(--turf); }
.theme[aria-pressed="true"] .tk-b { fill: var(--turf); }
.theme[aria-pressed="true"] .t-l { display: none; }
.theme[aria-pressed="true"] .t-d { display: inline; }
