/* ============================================================
   TennisScout.ai — dark court design system
   Brand palette: Cardinal Red #CE1126 · Navy #14213D ·
   Powder Blue #006BA6 · Black · White
   ============================================================ */

:root {
  --cardinal: #ce1126;
  --cardinal-deep: #a70d1d;
  --red-bright: #ff3b4f;
  --navy: #14213d;
  --powder: #006ba6;
  --powder-bright: #4fa8de;
  --powder-soft: #8cc6ea;
  --black: #000000;
  --white: #ffffff;

  --bg: #070d1c;
  --bg-raised: #0c1528;
  --panel: rgba(148, 184, 224, 0.06);
  --panel-strong: rgba(148, 184, 224, 0.1);
  --line: rgba(148, 184, 224, 0.16);
  --line-strong: rgba(148, 184, 224, 0.26);
  --text: #eef4fb;
  --muted: #a3b4cd;
  --muted-strong: #c4d2e6;

  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.3);
  --glow-red: 0 14px 44px rgba(206, 17, 38, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 540px at 12% -6%, rgba(0, 107, 166, 0.26), transparent 70%),
    radial-gradient(900px 480px at 95% -4%, rgba(206, 17, 38, 0.16), transparent 70%),
    linear-gradient(180deg, #0a1326 0%, var(--bg) 38%, #060b18 100%);
  background-attachment: fixed;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(206, 17, 38, 0.55);
  color: var(--white);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(79, 168, 222, 0.65);
  outline-offset: 3px;
  border-radius: 6px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ---------- typography ---------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.plan-price strong,
.live-code {
  font-family: var(--font-display);
}

h1 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h1 .accent-script {
  color: var(--powder-soft);
}

h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  color: var(--white);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 640px;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(79, 168, 222, 0.34);
  border-radius: 999px;
  background: rgba(0, 107, 166, 0.16);
  color: var(--powder-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-red {
  border-color: rgba(255, 59, 79, 0.36);
  background: rgba(206, 17, 38, 0.16);
  color: #ff8c98;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(148, 184, 224, 0.12);
  background: rgba(7, 13, 28, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Keep in-page anchors (#features, #plans, …) clear of the sticky header. */
section[id],
.section[id] {
  scroll-margin-top: 88px;
}

.nav {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--white);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cardinal), var(--powder));
  box-shadow: 0 10px 26px rgba(206, 17, 38, 0.35);
  font-size: 0.76rem;
  font-weight: 800;
}

.brand-scout {
  color: var(--powder-bright);
}

.brand-ai {
  color: var(--red-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color 140ms ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--white);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--cardinal) 55%, var(--cardinal-deep) 100%);
  color: var(--white);
  box-shadow: var(--glow-red);
}

.button-primary:hover {
  box-shadow: 0 18px 54px rgba(206, 17, 38, 0.5);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(148, 184, 224, 0.08);
  color: var(--white);
}

.button-secondary:hover {
  border-color: rgba(79, 168, 222, 0.6);
  background: rgba(0, 107, 166, 0.2);
}

.button-dark {
  background: var(--navy);
  border-color: var(--line);
  color: var(--white);
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  box-shadow: none;
}

/* ---------- layout primitives ---------- */

.section {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 44px;
}

.section-heading h2 {
  max-width: 620px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 460px;
  margin-bottom: 6px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- reveal animation (JS adds body.anim-ready) ---------- */

.anim-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.anim-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 640ms cubic-bezier(0.2, 0.65, 0.25, 1), transform 640ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.anim-ready .reveal-delay-1.is-visible { transition-delay: 90ms; }
.anim-ready .reveal-delay-2.is-visible { transition-delay: 180ms; }
.anim-ready .reveal-delay-3.is-visible { transition-delay: 270ms; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto;
  height: 560px;
  pointer-events: none;
  background:
    linear-gradient(rgba(148, 184, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 224, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(620px 420px at 30% 30%, rgba(0, 0, 0, 0.85), transparent 75%);
  -webkit-mask-image: radial-gradient(620px 420px at 30% 30%, rgba(0, 0, 0, 0.85), transparent 75%);
}

.hero > div {
  position: relative;
}

.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-proof span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--powder-bright);
}

.hero-proof span:first-child::before {
  background: var(--red-bright);
}

.hero-meta {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* hero visual */

.hero-visual {
  position: relative;
}

.phone-stack {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 0.78fr;
  align-items: end;
  gap: 18px;
}

.phone-shot {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(148, 184, 224, 0.22);
  border-radius: 38px;
  background: linear-gradient(165deg, rgba(148, 184, 224, 0.16), rgba(148, 184, 224, 0.04));
  box-shadow: var(--shadow);
}

.phone-shot img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.phone-shot-primary {
  transform: rotate(-2deg);
}

.phone-shot-secondary {
  transform: rotate(2.5deg) translateY(26px);
  margin-left: -42px;
}

.phone-shot figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 184, 224, 0.2);
  border-radius: 999px;
  background: rgba(7, 13, 28, 0.82);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* hero live ticker card */

.ticker-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  width: min(330px, 88%);
  margin: -46px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(148, 184, 224, 0.24);
  border-radius: 22px;
  background: rgba(10, 18, 36, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ff8c98;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 0 rgba(255, 59, 79, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 79, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 59, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 79, 0); }
}

.ticker-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
}

.ticker-row .t-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--muted-strong);
}

.ticker-row .t-serve {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.ticker-row.is-serving .t-serve {
  background: var(--powder-bright);
}

.ticker-row .t-games {
  color: var(--muted);
  min-width: 1.4ch;
  text-align: right;
}

.ticker-row .t-points {
  min-width: 2.6ch;
  padding: 3px 9px;
  border-radius: 9px;
  background: rgba(148, 184, 224, 0.12);
  color: var(--white);
  text-align: center;
}

.ticker-row.is-p1 .t-points {
  background: rgba(206, 17, 38, 0.26);
  color: #ffd2d8;
}

.ticker-foot {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- proof band ---------- */

.proof-band {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 20px;
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.proof-inner > div {
  padding: 24px;
  background: rgba(12, 21, 40, 0.92);
}

.proof-inner strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.proof-inner span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- flow steps ---------- */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.flow-steps article {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(148, 184, 224, 0.08), rgba(148, 184, 224, 0.02));
  transition: transform 200ms ease, border-color 200ms ease;
}

.flow-steps article:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 168, 222, 0.4);
}

.flow-steps span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cardinal), var(--powder));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
}

.flow-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

/* ---------- cards ---------- */

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(148, 184, 224, 0.07), rgba(148, 184, 224, 0.02));
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 168, 222, 0.42);
  background: linear-gradient(180deg, rgba(148, 184, 224, 0.1), rgba(148, 184, 224, 0.03));
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.icon {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 59, 79, 0.3);
  background: rgba(206, 17, 38, 0.14);
  color: #ff8c98;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.icon-blue {
  border-color: rgba(79, 168, 222, 0.34);
  background: rgba(0, 107, 166, 0.18);
  color: var(--powder-soft);
}

/* ---------- AI showcase ---------- */

.ai-showcase {
  position: relative;
  overflow: hidden;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 420px at 14% 18%, rgba(206, 17, 38, 0.18), transparent 70%),
    radial-gradient(760px 460px at 88% 20%, rgba(0, 107, 166, 0.26), transparent 70%),
    rgba(10, 17, 33, 0.6);
}

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 52px;
  align-items: center;
}

.ai-console {
  display: grid;
  gap: 13px;
  padding: 26px;
  border: 1px solid rgba(148, 184, 224, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(7, 13, 28, 0.78);
  box-shadow: var(--shadow);
}

.ai-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai-line {
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.55;
}

.ai-user {
  max-width: 80%;
  margin-left: auto;
  background: linear-gradient(135deg, var(--powder), #04527e);
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.ai-answer {
  max-width: 92%;
  border: 1px solid var(--line);
  background: rgba(148, 184, 224, 0.08);
  color: var(--muted-strong);
  border-bottom-left-radius: 6px;
}

.ai-metrics {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  margin-top: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 59, 79, 0.26);
  border-radius: 18px;
  background: rgba(206, 17, 38, 0.14);
}

.ai-metrics strong {
  grid-row: span 2;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}

.ai-metrics span {
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 650;
}

/* ---------- live demo scoreboard ---------- */

.feature-band {
  position: relative;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 460px at 86% 80%, rgba(0, 107, 166, 0.22), transparent 70%),
    rgba(10, 17, 33, 0.55);
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted-strong);
}

.check-list li::before {
  content: "✓";
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(79, 168, 222, 0.4);
  background: rgba(0, 107, 166, 0.18);
  color: var(--powder-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.board-demo {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(148, 184, 224, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(7, 13, 28, 0.85);
  box-shadow: var(--shadow);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-code {
  padding: 5px 11px;
  border: 1px solid rgba(79, 168, 222, 0.4);
  border-radius: 999px;
  background: rgba(0, 107, 166, 0.16);
  color: var(--powder-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

.board-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, 52px);
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(148, 184, 224, 0.05);
  font-size: 1.04rem;
  font-weight: 700;
}

.board-row em {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board-row em::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.board-row.is-serving em::before {
  background: var(--powder-bright);
}

.board-row strong {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 12px;
  background: rgba(148, 184, 224, 0.12);
  color: var(--white);
  font-family: var(--font-mono);
}

.board-row strong.t-live {
  background: rgba(206, 17, 38, 0.24);
  color: #ffd2d8;
}

.board-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---------- sports ---------- */

.sport-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(148, 184, 224, 0.08), rgba(148, 184, 224, 0.02));
}

.sport-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 28px solid rgba(0, 107, 166, 0.14);
}

.sport-card.sport-red::before {
  border-color: rgba(206, 17, 38, 0.13);
}

.sport-card h3 {
  font-size: 1.45rem;
}

.sport-card > p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- quote / privacy panel ---------- */

.quote-panel {
  padding: 38px;
  border: 1px solid rgba(79, 168, 222, 0.3);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(0, 107, 166, 0.28), transparent 70%),
    linear-gradient(160deg, var(--navy), #0b1326);
  box-shadow: var(--shadow);
}

.quote-panel p {
  color: var(--muted-strong);
}

/* ---------- pricing ---------- */

.pricing {
  position: relative;
}

.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(148, 184, 224, 0.07), rgba(148, 184, 224, 0.02));
}

.plan-card h3 {
  margin: 6px 0 14px;
  font-size: 1.4rem;
}

.plan-card-featured {
  position: relative;
  border-color: rgba(255, 59, 79, 0.4);
  background:
    radial-gradient(460px 280px at 90% 0%, rgba(206, 17, 38, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(148, 184, 224, 0.09), rgba(148, 184, 224, 0.02));
  box-shadow: var(--shadow-soft);
}

.plan-flag {
  position: absolute;
  top: -14px;
  right: 26px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-bright), var(--cardinal));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--glow-red);
}

.plan-price {
  margin: 0;
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 700;
}

.plan-price strong {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan-price span {
  color: var(--muted);
  font-weight: 700;
}

.plan-price-alt {
  margin: 8px 0 0;
  color: var(--powder-soft);
  font-weight: 700;
}

.plan-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-card .check-list {
  margin-top: 24px;
}

.plan-card .inline-actions {
  margin-top: auto;
  padding-top: 28px;
}

.plan-terms {
  max-width: 880px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.plan-terms a {
  color: var(--powder-soft);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: border-color 180ms ease;
}

.faq-list details[open] {
  border-color: rgba(79, 168, 222, 0.42);
  background: var(--panel-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.02rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--powder-soft);
  font-size: 1.15rem;
  font-weight: 600;
  transition: transform 200ms ease;
}

.faq-list details[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* ---------- final CTA ---------- */

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 80px;
  padding: 52px;
  border: 1px solid rgba(255, 59, 79, 0.26);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(620px 320px at 10% 0%, rgba(206, 17, 38, 0.22), transparent 70%),
    radial-gradient(560px 320px at 95% 100%, rgba(0, 107, 166, 0.26), transparent 70%),
    linear-gradient(160deg, var(--navy), #0a1224);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 660px;
}

.final-cta p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted-strong);
  margin-bottom: 0;
}

.final-cta .inline-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 20, 0.85);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 320px;
  margin: 0;
}

.footer-col strong {
  display: block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  width: fit-content;
  color: var(--muted-strong);
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- content pages (support / privacy / 404) ---------- */

.page-hero {
  max-width: 860px;
  padding-bottom: 44px;
}

.content-page {
  max-width: 960px;
}

.content-page h2 {
  margin-top: 48px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.content-page a {
  color: var(--powder-soft);
  font-weight: 700;
}

.content-page code {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--powder-soft);
  font-size: 0.92em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.policy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin: 12px 0 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(148, 184, 224, 0.08), rgba(148, 184, 224, 0.02));
  box-shadow: var(--shadow-soft);
}

.policy-card h2 {
  margin: 0 0 10px;
}

.policy-card p {
  margin-bottom: 12px;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pdf-frame {
  overflow: hidden;
  min-height: 720px;
  margin: 26px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-soft);
}

.pdf-frame object {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--white);
}

/* ---------- live page ---------- */

.split.is-viewer-only {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

[data-live-intro][hidden] {
  display: none;
}

.code-entry {
  display: grid;
  gap: 18px;
}

.code-entry[hidden] {
  display: none;
}

.code-card {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid rgba(148, 184, 224, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(10, 18, 36, 0.85);
  box-shadow: var(--shadow);
}

.live-code {
  display: block;
  padding: 20px;
  border: 1px solid rgba(79, 168, 222, 0.34);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy), #0b1326);
  color: var(--white);
  font-size: clamp(1.9rem, 6.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.field {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 13, 28, 0.7);
  color: var(--white);
  font: inherit;
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: max(16px, 1rem);
}

.field::placeholder {
  color: rgba(163, 180, 205, 0.5);
}

.live-status {
  min-height: 1.5em;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.live-status[data-tone="success"] {
  color: #5fd6a2;
}

.live-status[data-tone="warning"] {
  color: var(--red-bright);
}

.web-viewer {
  display: grid;
  gap: 16px;
  margin-top: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #101a33, #0a1224);
  box-shadow: var(--shadow-soft);
}

.web-viewer[hidden] {
  display: none;
}

.viewer-header,
.player-line,
.score-line,
.viewer-stats div {
  display: flex;
  align-items: center;
}

.viewer-header {
  justify-content: space-between;
  gap: 12px;
}

.viewer-pill,
.viewer-code,
.set-chip {
  border: 1px solid rgba(79, 168, 222, 0.42);
  border-radius: 999px;
  background: rgba(0, 107, 166, 0.16);
  color: var(--powder-soft);
  font-weight: 800;
}

.viewer-pill,
.viewer-code {
  padding: 6px 11px;
  font-size: 0.82rem;
}

.viewer-code {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.viewer-score {
  display: grid;
  gap: 14px;
  padding: 16px 0 8px;
  text-align: center;
}

.set-chip {
  justify-self: center;
  padding: 7px 14px;
  font-family: var(--font-mono);
}

.point-trail {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 13px;
}

.point-trail span {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--powder-bright);
}

.point-trail span.is-p1 {
  background: var(--red-bright);
}

.player-line {
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.4rem);
  line-height: 1.15;
}

.player-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.score-line {
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
}

.score-line strong {
  flex: 1;
  color: var(--powder-bright);
  font-size: clamp(3rem, 11vw, 5.2rem);
  line-height: 0.95;
}

.score-line strong:first-child {
  color: var(--red-bright);
}

.score-line span {
  color: var(--muted);
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 800;
}

.viewer-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(148, 184, 224, 0.06);
}

.coach-read {
  display: grid;
  gap: 8px;
}

.coach-read span,
.viewer-stats dt {
  color: var(--muted);
  font-weight: 800;
}

.coach-read span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coach-read strong {
  color: var(--white);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  line-height: 1.3;
}

.viewer-stats {
  display: grid;
  gap: 10px;
  margin: 0;
}

.viewer-stats div {
  justify-content: space-between;
  gap: 14px;
}

.viewer-stats dt,
.viewer-stats dd {
  margin: 0;
}

.viewer-stats dd {
  color: var(--white);
  font-weight: 800;
  text-align: right;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero,
  .split,
  .ai-grid,
  .grid-2,
  .grid-3,
  .flow-steps,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .proof-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 16px;
  }

  .final-cta {
    display: block;
  }

  .final-cta .inline-actions {
    margin-top: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .policy-card {
    display: block;
  }

  .document-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 12px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: rgba(10, 18, 36, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links .button {
    width: 100%;
    margin-top: 8px;
  }

  .section {
    padding: 64px 18px;
  }

  .hero {
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .hero-actions,
  .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .button,
  .inline-actions .button,
  .inline-actions button {
    width: 100%;
  }

  .proof-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .proof-inner {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .phone-shot-primary,
  .phone-shot-secondary {
    transform: none;
    margin-left: 0;
  }

  .phone-shot-secondary {
    display: none;
  }

  .ticker-card {
    margin-top: -36px;
  }

  .ai-console,
  .board-demo,
  .quote-panel,
  .code-card {
    padding: 22px;
    border-radius: 26px;
  }

  .ai-user,
  .ai-answer {
    max-width: 100%;
  }

  .final-cta {
    margin-bottom: 56px;
    padding: 30px 24px;
    border-radius: 28px;
  }

  .plan-card {
    padding: 26px;
  }

  .pdf-frame,
  .pdf-frame object {
    min-height: 58vh;
    height: 58vh;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 40px;
  }
}

@media (max-width: 430px) {
  .section {
    padding: 54px 16px;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  .hero-proof span {
    flex: 1 1 100%;
    justify-content: center;
  }

  .card,
  .flow-steps article,
  .sport-card,
  .plan-card,
  .policy-card {
    padding: 20px;
  }

  .board-row {
    grid-template-columns: 1fr repeat(3, 42px);
    padding: 13px 14px;
    font-size: 0.95rem;
  }

  .board-row strong {
    height: 40px;
  }

  .phone-stack {
    max-width: 320px;
  }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .anim-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
