/* ============================================================
   estadioiq — global stylesheet
   Palettes: pitch (default), stadium, mono
   ============================================================ */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --ink: #0c1411;
  --ink-2: #4a554f;
  --ink-3: #8a948e;
  --line: #e7e5dc;
  --line-2: #dcdacf;
  --accent: oklch(0.55 0.13 150);
  --accent-soft: oklch(0.93 0.05 150);
  --accent-fg: #ffffff;
  --data-up: oklch(0.55 0.13 150);
  --data-down: oklch(0.6 0.18 25);
  --data-flat: var(--ink-3);
  --pip-w-bg: oklch(0.93 0.06 150);
  --pip-w-fg: oklch(0.32 0.1 150);
  --pip-d-bg: #ece9dd;
  --pip-d-fg: #6a6453;
  --pip-l-bg: oklch(0.94 0.04 25);
  --pip-l-fg: oklch(0.45 0.13 25);

  --font-display: 'Space Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Söhne', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 20, 17, 0.04);
  --shadow-md: 0 6px 24px -8px rgba(15, 20, 17, 0.10), 0 2px 4px rgba(15, 20, 17, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 20, 17, 0.18), 0 6px 12px rgba(15, 20, 17, 0.06);
}

/* Stadium palette: warm ivory + navy + electric green */
:root[data-palette="stadium"] {
  --bg: #f3f1ea;
  --surface: #fbfaf6;
  --surface-2: #ecead9;
  --ink: #0b1736;
  --ink-2: #3a4666;
  --ink-3: #8a93ad;
  --line: #d9d6c7;
  --line-2: #c8c4b2;
  --accent: oklch(0.78 0.17 145);
  --accent-soft: oklch(0.94 0.07 145);
  --accent-fg: #0b1736;
  --data-up: oklch(0.65 0.16 145);
  --data-down: oklch(0.6 0.18 25);
  --pip-w-bg: oklch(0.92 0.08 145);
  --pip-w-fg: oklch(0.30 0.10 145);
}

/* Mono palette: pure B&W + single saturated highlight */
:root[data-palette="mono"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --ink: #000000;
  --ink-2: #424242;
  --ink-3: #9a9a9a;
  --line: #e6e6e6;
  --line-2: #d4d4d4;
  --accent: oklch(0.62 0.22 30);
  --accent-soft: oklch(0.95 0.04 30);
  --accent-fg: #ffffff;
  --data-up: oklch(0.55 0.13 150);
  --data-down: oklch(0.62 0.22 30);
  --pip-w-bg: #ededed;
  --pip-w-fg: #000;
  --pip-d-bg: #f5f5f5;
  --pip-d-fg: #666;
  --pip-l-bg: oklch(0.95 0.04 30);
  --pip-l-fg: oklch(0.45 0.18 30);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; }
.mono { font-family: var(--font-mono); }
.micro { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--ink-3); }

/* ---- Dynamic primary logo: italic two-tone wordmark + pixel trail ---- */
.logo-dynamic {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.045em;
  line-height: 1;
  transform: skewX(-5deg);
  white-space: nowrap;
  padding-right: 0.55em;
}
.logo-dynamic .ld-word { display: inline; }
.logo-dynamic .ld-iq { font-weight: 700; }
.logo-dynamic .ld-pixels {
  position: absolute;
  top: -0.52em;
  right: -0.12em;
  width: 0.95em;
  height: 0.78em;
  pointer-events: none;
}
.logo-dynamic .ld-px {
  position: absolute;
  display: block;
  background: var(--accent);
  transform: skewX(5deg);
}
.logo-dynamic .ld-px1 { width: 0.27em; height: 0.27em; right: 0.34em; top: 0.42em; opacity: 1; }
.logo-dynamic .ld-px2 { width: 0.2em;  height: 0.2em;  right: 0.04em; top: 0.16em; opacity: 0.72; }
.logo-dynamic .ld-px3 { width: 0.14em; height: 0.14em; right: -0.2em; top: 0; opacity: 0.45; }
.ink-accent { color: var(--accent); }
.arrow { display: inline-block; transition: transform .15s ease; }
button:hover .arrow, a:hover .arrow { transform: translateX(2px); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: all .14s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: var(--accent-fg); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.link-btn { color: var(--accent); font-size: 13px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.link-inline { color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ============================================================
   Landing — Nav
   ============================================================ */
.landing { min-height: 100vh; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-select {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-2);
  cursor: pointer;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-inner { max-width: 600px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.display {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 520px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-meta .sep { width: 1px; height: 14px; background: var(--line-2); }

/* ===== Hero card ===== */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: rotate(-0.5deg);
}
.hc-head { display: flex; justify-content: space-between; align-items: center; }
.hc-team { display: flex; align-items: center; gap: 12px; }
.hc-crest {
  width: 36px; height: 36px;
  background: var(--surface-2);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-2);
}
.hc-team-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.hc-team-sub { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.hc-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: var(--data-down);
  color: white;
  border-radius: 4px;
}
.hc-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
  background: var(--surface-2);
  border-radius: 10px;
}
.hc-side { display: flex; align-items: center; gap: 12px; }
.hc-side:last-child { justify-content: flex-end; }
.hc-abbr { font-size: 13px; letter-spacing: 0.08em; color: var(--ink-2); }
.hc-num { font-family: var(--font-display); font-size: 38px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.hc-min { font-size: 12px; color: var(--ink-3); padding: 0 8px; }
.hc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label {}
.stat-row { display: flex; justify-content: space-between; font-size: 14px; }
.stat-us { color: var(--ink); font-weight: 500; }
.stat-them { font-size: 12px; }
.stat-bar { height: 3px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: var(--accent); }
.hc-chart { display: flex; flex-direction: column; gap: 8px; }
.hc-chart-head { display: flex; justify-content: space-between; }
.hc-svg { display: block; }
.hc-foot { display: flex; align-items: center; gap: 6px; }
.hc-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--data-up); }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ============================================================
   Trust bar
   ============================================================ */
.trust {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 60px;
  text-align: center;
}
.trust-label { margin-bottom: 22px; }
.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 36px;
}
.trust-club { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.trust-mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.trust-mark::after {
  content: '';
  position: absolute; inset: 5px;
  background: var(--ink-3);
  border-radius: 1px;
  opacity: 0.5;
}
.trust-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; }

/* ============================================================
   Section heads (shared)
   ============================================================ */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .micro { display: block; margin-bottom: 12px; }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-lede {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   Features
   ============================================================ */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  min-height: 300px;
  display: flex;
  background: #0c1411;
}
.feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.feature-bg::part(frame) { background: #11201a; }
.feature-bg::part(empty) { color: rgba(255,255,255,0.5); }
.feature-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, #0c1411 35%, transparent) 0%,
      color-mix(in oklab, #0c1411 10%, transparent) 38%,
      color-mix(in oklab, #0c1411 78%, transparent) 100%);
}
.feature-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
  color: #fff;
}
.feature-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}
.feature-head .mono.muted { color: rgba(255,255,255,0.65); }
.feat-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: color-mix(in oklab, var(--accent) 30%, transparent);
  backdrop-filter: blur(4px);
  color: #fff;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
.feature-body {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 34ch;
}

/* ============================================================
   Dashboard preview (in landing)
   ============================================================ */
.dash-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}
.dash-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.dash-mock-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.dot-row { display: flex; gap: 6px; }
.dot-row span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2);
}
.dash-mock-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}
.dash-side {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 20px 16px;
}
.dash-side-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.dash-crest {
  width: 30px; height: 30px;
  background: var(--ink);
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}
.dash-crest::after {
  content: ''; position: absolute;
  inset: 8px;
  border: 1.5px solid var(--bg);
  border-radius: 2px;
}
.dash-side-team-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.dash-nav-item.active { background: var(--surface); color: var(--ink); font-weight: 500; }
.dash-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dash-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 130px;
}
.dash-tile.span-2 { grid-column: span 2; }
.tile-head { display: flex; justify-content: space-between; align-items: center; }
.form-row { display: flex; gap: 4px; flex-wrap: wrap; }
.form-pip {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.pip-W { background: var(--pip-w-bg); color: var(--pip-w-fg); }
.pip-D { background: var(--pip-d-bg); color: var(--pip-d-fg); }
.pip-L { background: var(--pip-l-bg); color: var(--pip-l-fg); }
.big-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.performer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}
.perf-avatar {
  width: 28px; height: 28px;
  background: var(--surface-2);
  border-radius: 50%;
}
.perf-name { line-height: 1.2; font-size: 13px; font-weight: 500; }
.perf-score { font-size: 14px; font-weight: 500; }
.perf-trend { font-size: 12px; }
.trend-up { color: var(--data-up); }
.trend-down { color: var(--data-down); }
.trend-flat { color: var(--ink-3); }
.next-fix-team { font-weight: 600; font-size: 16px; margin-top: 6px; }
.dossier-pill {
  margin-top: auto;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.load-bars { display: flex; flex-direction: column; gap: 8px; }
.load-bar-row { display: grid; grid-template-columns: 36px 1fr 38px; gap: 8px; align-items: center; }
.load-bar-track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.load-bar-fill { height: 100%; background: var(--accent); }
.load-bar-label { letter-spacing: 0.08em; }

/* ============================================================
   How it works
   ============================================================ */
.how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.how-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.how-visual {
  height: 168px;
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in oklab, var(--accent) 7%, var(--surface-2)) 0%, var(--surface-2) 70%);
  border-bottom: 1px solid var(--line);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step-meta { padding: 24px; }
.how-step-n {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.how-step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.how-step-body { color: var(--ink-2); font-size: 15px; }

/* ---- Step visuals (shared frame) ---- */
.hv {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 12px;
  font-size: 12px;
}

/* Visual 1 — find */
.hv-find { display: flex; flex-direction: column; gap: 8px; }
.hv-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.hv-search-ico { color: var(--ink-3); font-size: 13px; }
.hv-search-text { flex: 1; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; }
.hv-caret {
  display: inline-block;
  width: 1.5px; height: 13px;
  background: var(--accent);
  margin-left: 1px;
  animation: hv-blink 1.1s steps(1) infinite;
}
@keyframes hv-blink { 50% { opacity: 0; } }
.hv-results { display: flex; flex-direction: column; gap: 3px; }
.hv-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
}
.hv-result.active { background: var(--accent-soft); }
:root[data-palette="mono"] .hv-result.active { background: var(--surface-2); }
.hv-crest { width: 16px; height: 16px; border-radius: 4px; background: var(--ink); }
.hv-crest.alt { background: var(--ink-3); }
.hv-result-name { color: var(--ink); }
.hv-result-name mark { background: transparent; color: var(--accent); font-weight: 600; }

/* Visual 2 — ingest */
.hv-ingest { display: flex; flex-direction: column; gap: 9px; }
.hv-ingest-head { display: flex; justify-content: space-between; align-items: center; }
.hv-live { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.hv-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--data-up); }
.hv-stream { display: grid; grid-template-columns: 88px 1fr 26px; align-items: center; gap: 8px; }
.hv-stream-label { color: var(--ink-2); font-size: 11px; }
.hv-stream-track { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.hv-stream-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  animation: hv-grow 1.6s ease-out both;
  transform-origin: left;
}
@keyframes hv-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hv-stream-state { text-align: right; color: var(--ink-3); }
.hv-check { color: var(--accent); font-weight: 700; }

/* Visual 3 — dashboard */
.hv-dash { display: flex; flex-direction: column; gap: 8px; }
.hv-dash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hv-tile {
  background: var(--surface-2);
  border-radius: 7px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hv-tile-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hv-tile-num.accent { color: var(--accent); }
.hv-sup { font-size: 11px; vertical-align: super; font-weight: 500; }
.hv-dash-form {
  background: var(--surface-2);
  border-radius: 7px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hv-form-head { display: flex; justify-content: space-between; align-items: center; }
.hv-pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 0.04em;
}
:root[data-palette="mono"] .hv-pill { background: var(--surface); }
.hv-form-pips { display: flex; gap: 3px; }
.hv-form-pips .form-pip { width: 17px; height: 17px; font-size: 9px; border-radius: 3px; }
.hv-spark { width: 100%; height: 28px; display: block; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.price-cell {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-cell:last-child { border-right: 0; }
.price-big {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 6px;
}
.price-unit { font-size: 14px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; margin-left: 2px; }
.price-sub { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.pricing-exclusive {
  padding: 24px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.pricing-exclusive .micro { color: color-mix(in oklab, var(--bg) 60%, var(--ink)); }
.exclusive-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 4px;
  max-width: 560px;
}
.pricing-exclusive .btn-ghost {
  color: var(--bg);
  border-color: color-mix(in oklab, var(--bg) 25%, transparent);
}
.pricing-exclusive .btn-ghost:hover {
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  border-color: var(--bg);
}
.pricing-foot {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.pricing-foot-big {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-left: 4px;
}
.pricing-foot .btn { margin-left: auto; }

/* ============================================================
   Pricing grid-2 variant (two cards: Trial + Pay-as-you-go)
   ============================================================ */
.pricing-grid.pricing-grid-2 {
  grid-template-columns: 1fr 1fr;
}
.price-cell-accent {
  background: var(--accent-soft);
  position: relative;
}
:root[data-palette="mono"] .price-cell-accent { background: var(--surface-2); }
.price-cell-accent .price-big { color: var(--accent); }
:root[data-palette="stadium"] .price-cell-accent .price-big { color: var(--ink); }
:root[data-palette="mono"] .price-cell-accent .price-big { color: var(--accent); }
.price-bullets {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.price-bullets li {
  position: relative;
  padding-left: 22px;
}
.price-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.price-note { margin-top: 12px; }
.pricing-foot-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.foot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-2);
}
.foot-chip .check {
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   Contact modal
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 60%, transparent);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: backdrop-in .18s ease forwards;
  overflow-y: auto;
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  z-index: 1;
  transition: all .14s ease;
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }

.modal-head {
  padding: 32px 32px 0;
}
.modal-head .micro { display: block; margin-bottom: 8px; }
.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.modal-sub {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}

.modal-form {
  padding: 24px 32px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-wide { grid-column: span 2; }
.field-label { display: flex; align-items: center; gap: 4px; }
.req { color: var(--data-down); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: border-color .12s ease, box-shadow .12s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

.phone-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
}
.dial-select { font-family: var(--font-mono); font-size: 13px; }

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px 28px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: var(--surface);
}
.modal-foot-cta { display: flex; gap: 10px; }

.modal-success {
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.success-mark {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 600;
}
.modal-success .modal-title { margin-top: 0; }
.modal-success .modal-sub { max-width: 440px; }
.modal-success .btn { margin-top: 12px; }

@media (max-width: 680px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: span 1; }
  .modal-head, .modal-form { padding-left: 22px; padding-right: 22px; }
  .modal-foot { padding-left: 22px; padding-right: 22px; flex-direction: column; align-items: stretch; }
  .modal-foot-cta { justify-content: flex-end; }
  .pricing-grid.pricing-grid-2 { grid-template-columns: 1fr; }
}
.languages { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.lang-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .15s ease;
}
.lang-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.lang-code {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.lang-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.lang-sample { font-size: 13px; color: var(--ink-2); font-style: italic; margin-top: 6px; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 8px;
}
blockquote {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--ink);
}
.quote-cite { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 38px; height: 38px;
  background: var(--surface-2);
  border-radius: 50%;
}
.quote-name { font-weight: 600; font-size: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--bg);
  margin-top: 80px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .ink-accent { color: var(--accent); }
.footer .nav-logo { color: var(--bg); }
.footer-tag {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 280px;
  color: color-mix(in oklab, var(--bg) 80%, var(--ink));
}
.footer-news { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-news .micro { color: color-mix(in oklab, var(--bg) 55%, var(--ink)); }
.news-form { display: flex; gap: 8px; width: 100%; max-width: 460px; }
.news-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  background: transparent;
  border-radius: 10px;
  color: var(--bg);
  outline: none;
}
.news-form input::placeholder { color: color-mix(in oklab, var(--bg) 45%, var(--ink)); }
.news-form input:focus { border-color: var(--accent); }
.news-form .btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.news-form .btn-primary:hover { background: var(--bg); color: var(--ink); }
.news-success { color: var(--accent); font-size: 14px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 40px 32px 32px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col-title { color: color-mix(in oklab, var(--bg) 55%, var(--ink)); margin-bottom: 14px; }
.footer-cols a {
  display: block;
  font-size: 13px;
  color: color-mix(in oklab, var(--bg) 75%, var(--ink));
  padding: 4px 0;
  cursor: pointer;
}
.footer-cols a:hover { color: var(--bg); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
  font-size: 11px;
}

/* HUGE bottom ghost wordmark */
/* ============================================================
   DEMO APP — Top bar
   ============================================================ */
.demo {
  min-height: 100vh;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
}
.demo-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 56px;
}
.demo-top-left { display: flex; align-items: center; gap: 14px; }
.demo-exit {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all .15s ease;
}
.demo-exit:hover { background: var(--ink); color: var(--bg); }
.demo-divider { width: 1px; height: 22px; background: var(--line-2); }
.demo-team-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}
.demo-team-switch:hover { background: var(--surface-2); }
.demo-crest {
  width: 24px; height: 24px;
  background: var(--ink);
  border-radius: 5px;
  position: relative;
}
.demo-crest::after {
  content: ''; position: absolute; inset: 7px;
  border: 1.2px solid var(--bg); border-radius: 1px;
}
.caret { color: var(--ink-3); font-size: 11px; }
.demo-top-center { display: flex; justify-content: center; }
.demo-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  width: 100%;
  max-width: 480px;
}
.demo-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}
.demo-search input::placeholder { color: var(--ink-3); }
.demo-top-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.demo-pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: 0.08em;
}
.demo-icon-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--ink-2);
  font-size: 14px;
}
.demo-icon-btn:hover { background: var(--surface-2); }
.demo-avatar {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============================================================
   Demo shell + sidebar
   ============================================================ */
.demo-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  min-height: 0;
}
.demo-side {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.demo-side-section { display: flex; flex-direction: column; gap: 4px; }
.demo-side-label { padding: 0 8px 8px; }
.demo-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: left;
  transition: all .12s ease;
}
.demo-side-item:hover { background: var(--surface-2); color: var(--ink); }
.demo-side-item.active {
  background: var(--ink);
  color: var(--bg);
}
.demo-side-icon { font-size: 14px; width: 16px; text-align: center; opacity: 0.7; }
.demo-side-item.active .demo-side-icon { opacity: 1; }
.usage { display: flex; flex-direction: column; gap: 12px; padding: 0 6px; }
.usage-row {}
.usage-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.usage-label { color: var(--ink-2); }
.usage-track { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.usage-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.usage-total {
  margin-top: 10px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
}
.usage-total-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

/* ============================================================
   Demo main + pages
   ============================================================ */
.demo-main {
  padding: 28px 32px 60px;
  overflow-y: auto;
}
.demo-page { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 6px;
  gap: 24px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
.page-sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; }

.demo-row { display: grid; gap: 18px; }
.demo-row-1 { grid-template-columns: 1fr; }
.demo-row-2 { grid-template-columns: 1fr 1fr; }
.demo-row-3 { grid-template-columns: repeat(3, 1fr); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklab, var(--surface) 90%, var(--ink));
}
.panel-title { font-size: 14px; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
.panel-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.panel-foot { margin-top: 6px; }

.big-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.big-stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 4px;
}
.big-stat-delta { font-size: 12px; font-family: var(--font-mono); }

.last-match { display: flex; flex-direction: column; gap: 16px; }
.lm-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface-2);
  border-radius: 10px;
}
.lm-team { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.lm-teams > .lm-team:last-child { justify-content: flex-end; }
.lm-crest {
  width: 28px; height: 28px;
  background: var(--ink);
  border-radius: 5px;
  flex-shrink: 0;
}
.lm-crest.alt { background: var(--ink-3); }
.lm-crest.small { width: 18px; height: 18px; border-radius: 3px; }
.lm-score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.lm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini-stat { display: flex; flex-direction: column; gap: 4px; }
.mini-stat-row { display: flex; justify-content: space-between; font-size: 13px; }

.next-fix-big {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.nf-label { margin-bottom: 4px; display: block; }
.nf-team-big {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 4px 0;
}
.nf-key-threats { display: flex; flex-direction: column; gap: 8px; }
.nf-threat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.threat-chip {
  padding: 5px 10px;
  background: var(--surface-2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink-2);
}

.load-chart {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  align-items: end;
  padding-top: 12px;
}
.load-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.load-bar2 { width: 100%; border-radius: 3px 3px 0 0; min-height: 6px; }

/* Filters / chips */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters .mono.muted { margin-right: 4px; }
.filter-chip {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--ink-2);
  transition: all .12s ease;
}
.filter-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.filter-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.spacer { flex: 1; }

/* Match list */
.match-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.match-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px 120px 80px 90px;
  gap: 16px;
  padding: 14px 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  font-size: 14px;
  transition: background .12s ease;
}
.match-row:hover { background: var(--surface-2); }
.match-row:last-child { border-bottom: 0; }
.match-row.match-head { background: color-mix(in oklab, var(--surface) 95%, var(--ink)); }
.match-row.match-head:hover { background: color-mix(in oklab, var(--surface) 95%, var(--ink)); cursor: default; }
.match-opp { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.result {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.res-w { color: var(--data-up); }
.res-d { color: var(--ink-2); }
.res-l { color: var(--data-down); }
.row-cta { color: var(--ink-3); text-align: right; }
.match-row:hover .row-cta { color: var(--accent); }

/* Match detail */
.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 8px;
}
.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.big-chart { display: block; }
.chart-axis { font-size: 10px; fill: var(--ink-3); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.fact { display: flex; flex-direction: column; gap: 3px; }
.fact-row { display: flex; justify-content: space-between; font-size: 14px; }

.event {
  display: grid;
  grid-template-columns: 50px 50px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.event:last-child { border-bottom: 0; }
.event-min { font-size: 13px; color: var(--ink-2); }
.event-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  background: var(--surface-2);
  color: var(--ink-2);
}
.type-GOAL { background: var(--accent-soft); color: var(--accent); }
.type-YEL { background: oklch(0.95 0.1 90); color: oklch(0.5 0.13 90); }
.type-MISS { background: var(--surface-2); color: var(--ink-3); }
.event-who { font-size: 14px; font-weight: 500; }
.event-detail { margin-top: 2px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.event-us .event-who::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.coach-notes { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.coach-notes p { margin: 0; }
.coach-notes strong { color: var(--ink); font-weight: 600; }

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rating-cell {
  padding: 14px;
  background: var(--surface-2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.rating-name { font-size: 14px; font-weight: 500; }
.rating-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.rating-score.good { color: var(--data-up); }
.rating-score.bad { color: var(--data-down); }
.rating-score.xl { font-size: 56px; line-height: 1; }

/* Players */
.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.player-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: all .14s ease;
}
.player-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.player-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.player-no { color: var(--ink-3); font-size: 13px; }
.player-card-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.player-stats {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  color: var(--ink-2);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Player detail */
.player-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.player-portrait {
  width: 80px; height: 80px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.player-hero-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 4px 0 10px;
}
.player-hero-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  padding: 4px 10px;
  background: var(--surface-2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink-2);
}
.player-hero-rating { text-align: right; }

.radar { display: block; margin: 0 auto; max-width: 320px; }
.radar-label { font-size: 10px; fill: var(--ink-2); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }

/* Scouting */
.pitch-wrap { display: grid; place-items: center; padding: 8px; }
.pitch-svg { max-width: 280px; width: 100%; aspect-ratio: 1; background: oklch(0.96 0.04 145); border-radius: 4px; }
:root[data-palette="stadium"] .pitch-svg { background: oklch(0.92 0.07 145); }
:root[data-palette="mono"] .pitch-svg { background: #f2f2f2; }
.pitch-label { font-size: 3px; fill: var(--ink); font-family: var(--font-mono); }
.dossier-list { display: flex; flex-direction: column; gap: 10px; }
.dossier-item {
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 6px 6px 0;
}
.dossier-item-label { font-size: 14px; font-weight: 500; }
.dossier-item-detail { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.threat-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.threat-row:last-child { border-bottom: 0; }
.threat-avatar { width: 32px; height: 32px; background: var(--surface-2); border-radius: 50%; }
.threat-meta { display: flex; flex-direction: column; gap: 2px; }
.threat-name { font-size: 14px; font-weight: 500; }
.threat-note { font-size: 12px; color: var(--ink-2); }
.threat-stat { font-size: 13px; color: var(--ink); }
.h2h { display: flex; gap: 8px; flex-wrap: wrap; }
.h2h-cell {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--surface-2);
}
.h2h-cell.res-w { background: var(--pip-w-bg); color: var(--pip-w-fg); }
.h2h-cell.res-d { background: var(--pip-d-bg); color: var(--pip-d-fg); }
.h2h-cell.res-l { background: var(--pip-l-bg); color: var(--pip-l-fg); }

/* League */
.table { font-size: 14px; }
.table-head, .table-row {
  display: grid;
  grid-template-columns: 40px 1.8fr 50px 50px 50px 50px 70px 80px 140px;
  gap: 12px;
  padding: 12px 20px;
  align-items: center;
}
.table-head { background: color-mix(in oklab, var(--surface) 95%, var(--ink)); border-bottom: 1px solid var(--line); }
.table-row { border-bottom: 1px solid var(--line); }
.table-row:last-child { border-bottom: 0; }
.table-row.me { background: var(--accent-soft); }
:root[data-palette="mono"] .table-row.me { background: var(--surface-2); }
.club-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.me-pill {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  font-size: 10px;
  margin-left: 6px;
}
.pts { font-weight: 600; font-size: 15px; }
.form-mini { display: flex; gap: 3px; }
.form-mini .form-pip { width: 18px; height: 18px; font-size: 9px; border-radius: 3px; }

/* Transfers */
.transfer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.transfer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.transfer-top { display: flex; justify-content: space-between; align-items: flex-start; }
.transfer-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.fit-score { text-align: right; }
.fit-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.fit-num.good { color: var(--data-up); }
.transfer-style { font-size: 13px; color: var(--ink-2); padding: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.transfer-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); }
.transfer-value { color: var(--ink); font-size: 14px; }
.transfer-cta { display: flex; gap: 16px; margin-top: 4px; }

/* ============================================================
   Responsive — tighten down to ~720
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .hero-card { transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 200px 1fr; }
  .demo-row-3 { grid-template-columns: 1fr 1fr; }
  .ratings-grid, .players-grid, .transfer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-inner { padding: 12px 18px; }
  .hero { padding: 32px 18px; }
  .features, .pricing, .languages, .how, .dash-preview, .trust { padding-left: 18px; padding-right: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
  .dash-mock-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-side { display: none; }
  .demo-main { padding: 20px 18px 40px; }
  .demo-row-2, .demo-row-3 { grid-template-columns: 1fr; }
  .demo-top { grid-template-columns: auto 1fr auto; }
  .demo-top-center { display: none; }
  .demo-search { max-width: none; }
  .ratings-grid, .players-grid, .transfer-grid { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 60px 1fr 60px 80px; }
  .match-row > :nth-child(5), .match-row > :nth-child(6) { display: none; }
  .table-head, .table-row { grid-template-columns: 30px 1fr 50px 80px; gap: 8px; padding: 10px 14px; }
  .table-row > :nth-child(3), .table-row > :nth-child(4), .table-row > :nth-child(5), .table-row > :nth-child(6), .table-row > :nth-child(9) { display: none; }
  .table-head > :nth-child(3), .table-head > :nth-child(4), .table-head > :nth-child(5), .table-head > :nth-child(6), .table-head > :nth-child(9) { display: none; }
}
