/* ==========================================================================
   Padel Training Room – Landing Page
   ========================================================================== */

:root {
  --navy-950: #070d19;
  --navy-900: #0b1424;
  --navy-800: #111d33;
  --navy-700: #1a2945;
  --navy-600: #26385a;
  --court: #1f5fb8;
  --court-dark: #184c94;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --lime: #d4f046;
  --lime-600: #b8d630;
  --orange: #ff8a3d;
  --red: #f05252;

  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;

  --text-on-dark: #e6edf7;
  --muted-on-dark: #94a3b8;
  --line-on-dark: rgba(148, 163, 184, 0.16);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 30px 60px -20px rgba(2, 8, 23, 0.55);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* Placeholder highlight (config.highlightPlaceholders) */
.is-placeholder {
  background: rgba(212, 240, 70, 0.35);
  outline: 1px dashed #a3b81f;
  border-radius: 3px;
  padding: 0 3px;
}
.on-dark .is-placeholder, .site-footer .is-placeholder { background: rgba(212, 240, 70, 0.18); color: var(--lime); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--lime); color: var(--navy-900); box-shadow: 0 8px 24px -10px rgba(212, 240, 70, 0.7); }
.btn-primary:hover { background: #ddf55f; }
.btn-ghost { border-color: rgba(230, 237, 247, 0.25); color: var(--text-on-dark); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(230, 237, 247, 0.5); background: rgba(255, 255, 255, 0.07); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 13, 25, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-on-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted-on-dark); font-size: 15px; font-weight: 500; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open { background: var(--navy-950); }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0; padding: 12px var(--gutter) 24px;
    background: var(--navy-950); border-bottom: 1px solid var(--line-on-dark);
  }
  .site-header.menu-open .nav-links a { padding: 14px 12px; font-size: 17px; }
  .site-header.menu-open .nav-links .mobile-cta { display: block; margin-top: 8px; }
}
.nav-links .mobile-cta { display: none; }
.nav-links .mobile-cta .btn { width: 100%; color: var(--navy-900); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 148px 0 96px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(700px 420px at 10% 90%, rgba(212, 240, 70, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--text-on-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid rgba(212, 240, 70, 0.35); background: rgba(212, 240, 70, 0.08);
  color: var(--lime); font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(212, 240, 70, .6); animation: pulse 2s infinite; margin-left: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 240, 70, .55); } 70% { box-shadow: 0 0 0 10px rgba(212, 240, 70, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 240, 70, 0); } }

.hero h1 { margin-top: 22px; font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.hero h1 .accent { color: var(--lime); }
.hero .subtitle { display: block; margin-top: 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: #c7d2e3; }
.hero .lead { margin-top: 22px; max-width: 560px; font-size: 18px; color: var(--muted-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 40px; }
.countdown-units { display: flex; gap: 10px; }
.countdown-unit {
  min-width: 68px; padding: 10px 8px 8px; text-align: center;
  border-radius: 12px; border: 1px solid var(--line-on-dark); background: rgba(255, 255, 255, 0.03);
}
.countdown-unit b { display: block; font-size: 26px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; }
.countdown-unit span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-on-dark); }
.countdown-label { font-size: 14px; color: var(--muted-on-dark); max-width: 160px; line-height: 1.4; }
.countdown-label strong { color: #fff; display: block; font-weight: 600; }

/* Lesson card mock */
.lesson-card {
  position: relative; border-radius: var(--radius-lg); padding: 20px;
  background: linear-gradient(180deg, rgba(26, 41, 69, 0.92), rgba(17, 29, 51, 0.92));
  border: 1px solid var(--line-on-dark); box-shadow: var(--shadow-lg);
}
.lesson-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(212, 240, 70, .35), transparent 30%, transparent 70%, rgba(59, 130, 246, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.lesson-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lesson-card-head .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-on-dark); }
.lesson-card-head h3 { color: #fff; font-size: 20px; margin-top: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #cbd5e1; border: 1px solid var(--line-on-dark); }
.chip-lime { background: rgba(212, 240, 70, 0.12); color: var(--lime); border-color: rgba(212, 240, 70, 0.3); }
.mini-court { margin-top: 16px; border-radius: 12px; overflow: hidden; background: #0e1a2e; padding: 10px; }
.mini-court svg { width: 100%; height: auto; }
.mini-court .ball { offset-path: path("M 300 140 C 230 20, 120 20, 72 84 L 40 60"); offset-rotate: 0deg; animation: fly 3.2s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 80% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.lesson-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.lesson-steps li {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-on-dark);
  font-size: 14px; color: #dbe4f0;
}
.lesson-steps .num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(59, 130, 246, .18); color: var(--blue-400); }
.lesson-steps li:nth-child(2) .num { background: rgba(212, 240, 70, .16); color: var(--lime); }
.lesson-steps .time { font-size: 12px; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.lesson-card .badge-soon {
  position: absolute; top: -12px; right: 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--lime); color: var(--navy-900); font-size: 12px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 6px 16px -6px rgba(212, 240, 70, .8);
}

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-on-dark); color: var(--muted-on-dark); font-size: 14px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--lime); }

@media (max-width: 960px) {
  .hero { padding: 120px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--navy-900); color: var(--text-on-dark); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--court); }
.section-dark .eyebrow { color: var(--lime); }
.section-head h2 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.section-dark h2 { color: #fff; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }
.section-dark .section-head p { color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   Court editor
   -------------------------------------------------------------------------- */
.editor-section {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
    var(--navy-900);
}
.editor {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-800); border: 1px solid var(--line-on-dark); box-shadow: var(--shadow-lg);
}
.editor-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-on-dark); background: rgba(7, 13, 25, 0.45);
}
.editor-toolbar .left, .editor-toolbar .right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.window-dots { display: flex; gap: 6px; margin-right: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.window-dots i:first-child { background: #f87171; } .window-dots i:nth-child(2) { background: #fbbf24; } .window-dots i:nth-child(3) { background: #34d399; }

.field-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-on-dark); }
.input-dark, .select-dark {
  height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px;
  background: var(--navy-700); color: #fff; border: 1px solid var(--line-on-dark);
}
.select-dark { padding-right: 32px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 18px;
}
.input-dark:focus, .select-dark:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.title-input { width: 220px; font-weight: 600; }

.tool-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px;
  background: var(--navy-700); border: 1px solid var(--line-on-dark); color: #dbe4f0; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.tool-btn:hover { background: var(--navy-600); color: #fff; }
.tool-btn svg { width: 16px; height: 16px; }
.tool-btn .soon { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(212, 240, 70, .15); color: var(--lime); }
.tool-btn.primary { background: var(--lime); color: var(--navy-900); border-color: transparent; font-weight: 700; }
.tool-btn.primary:hover { background: #ddf55f; }
.tool-btn.icon { width: 36px; padding: 0; justify-content: center; }
.tool-btn[aria-pressed="true"] { background: rgba(59, 130, 246, .2); border-color: rgba(96, 165, 250, .5); color: #fff; }

.editor-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.editor-stage { padding: 18px; border-right: 1px solid var(--line-on-dark); min-width: 0; }
.court-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #0a1322; touch-action: none; user-select: none; -webkit-user-select: none; }
.court-wrap canvas { width: 100%; height: auto; cursor: crosshair; }
.court-wrap canvas.dragging { cursor: grabbing; }
.court-wrap canvas.can-drag { cursor: grab; }
.court-hint {
  position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; background: rgba(7, 13, 25, .72); color: #cbd5e1; font-size: 12px; pointer-events: none;
  backdrop-filter: blur(6px);
}
.court-hint kbd { font-family: var(--font); font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255,255,255,.12); }
.court-legend { position: absolute; right: 12px; top: 12px; display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(7, 13, 25, .72); color: #cbd5e1; font-size: 12px; pointer-events: none; }
.court-legend span { display: inline-flex; align-items: center; gap: 6px; }
.court-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.side-view { margin-top: 12px; border-radius: 12px; overflow: hidden; background: #0a1322; position: relative; }
.side-view canvas { width: 100%; height: auto; }
.side-view-label { position: absolute; left: 12px; top: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); pointer-events: none; }

.playback { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.play-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lime); color: var(--navy-900); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s; }
.play-btn:hover { transform: scale(1.05); }
.play-btn svg { width: 20px; height: 20px; }
.scrubber { flex: 1 1 180px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.scrubber .time { font-family: var(--mono); font-size: 12px; color: var(--muted-on-dark); min-width: 92px; text-align: right; }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--navy-700); border: 1px solid var(--line-on-dark); }
.segmented button { border: 0; background: transparent; color: var(--muted-on-dark); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--navy-600); color: #fff; }
.check-dark { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-on-dark); cursor: pointer; }
.check-dark input { accent-color: var(--lime); width: 16px; height: 16px; }

input[type="range"].range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--navy-600); cursor: pointer; }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-500); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
input[type="range"].range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-500); }
input[type="range"].range.lime::-webkit-slider-thumb { border-color: var(--lime-600); }
input[type="range"].range.lime::-moz-range-thumb { border-color: var(--lime-600); }

.editor-panel { display: flex; flex-direction: column; min-width: 0; background: rgba(7, 13, 25, 0.25); }
.panel-section { padding: 16px 18px; border-bottom: 1px solid var(--line-on-dark); }
.panel-section:last-child { border-bottom: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-title h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-on-dark); font-weight: 700; }
.panel-title .count { font-size: 12px; color: var(--muted-on-dark); }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--navy-600) transparent; }
.step-item {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; color: #dbe4f0; font-size: 14px;
  transition: background-color .15s, border-color .15s;
}
.step-item:hover { background: rgba(255, 255, 255, 0.06); }
.step-item.is-selected { background: rgba(59, 130, 246, 0.14); border-color: rgba(96, 165, 250, 0.45); }
.step-item.is-active .step-num { box-shadow: 0 0 0 3px rgba(212, 240, 70, .35); }
.step-num { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--navy-900); }
.step-text { min-width: 0; line-height: 1.3; }
.step-text b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-text small { color: var(--muted-on-dark); font-size: 12px; }
.step-warn { color: var(--orange); font-weight: 600; }
.step-actions { display: flex; gap: 2px; opacity: .6; }
.step-item:hover .step-actions, .step-item.is-selected .step-actions { opacity: 1; }
.icon-btn { width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; color: var(--muted-on-dark); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.icon-btn svg { width: 15px; height: 15px; }
.add-step { margin-top: 10px; width: 100%; justify-content: center; border-style: dashed; }

.step-form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 6px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row label, .form-label { font-size: 12px; color: var(--muted-on-dark); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.form-row label output { color: #fff; font-family: var(--mono); font-weight: 500; }
.step-form .select-dark, .step-form .input-dark { width: 100%; }
.shot-desc { font-size: 13px; color: var(--muted-on-dark); line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-on-dark); }
.shot-desc b { color: #fff; }
.empty-hint { font-size: 14px; color: var(--muted-on-dark); }

.players-list { display: flex; flex-wrap: wrap; gap: 6px; }
.player-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-on-dark); font-size: 13px; color: #dbe4f0; }
.player-chip .avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--navy-900); }
.player-chip input { width: 74px; background: transparent; border: 0; color: inherit; padding: 0; font-size: 13px; }
.player-chip input:focus { outline: none; border-bottom: 1px solid var(--blue-500); }
.player-chip .icon-btn { width: 20px; height: 20px; }
.player-chip .icon-btn svg { width: 12px; height: 12px; }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.stat { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-on-dark); }
.stat b { display: block; font-size: 20px; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: .08em; }
.stat.warn b { color: var(--orange); }

.editor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; color: var(--muted-on-dark); font-size: 14px; }
.editor-foot a { color: var(--lime); font-weight: 600; }
.engine-note { display: inline-flex; align-items: center; gap: 8px; }
.engine-note svg { width: 16px; height: 16px; color: var(--lime); flex: none; }

@media (max-width: 1080px) {
  .editor-body { grid-template-columns: 1fr; }
  .editor-stage { border-right: 0; border-bottom: 1px solid var(--line-on-dark); }
  .editor-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .editor-panel .panel-section { border-right: 1px solid var(--line-on-dark); }
}
@media (max-width: 720px) {
  .editor-panel { display: flex; }
  .editor-panel .panel-section { border-right: 0; }
  .editor-stage { padding: 10px; }
  .title-input { width: 160px; }
  .court-hint { display: none; }
  .court-legend { display: none; }
  .scrubber .time { min-width: 0; }
  .editor-toolbar .window-dots { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: 12px; background: var(--navy-800); color: #fff; border: 1px solid var(--line-on-dark);
  box-shadow: var(--shadow-lg); font-size: 14px; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--lime); font-weight: 600; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #eaf1fd; color: var(--court); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-top: 20px; font-size: 20px; font-weight: 700; }
.feature p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.status-tag { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.status-tag.live { background: #e6f7d0; color: #3f6212; }
.status-tag.soon { background: #eef2f7; color: #475569; }

@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* Mission */
.mission-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.mission-grid .section-head p + p { margin-top: 14px; }
.mission-grid strong { color: var(--ink); }
.pillars { display: grid; gap: 16px; }
.pillar { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.pillar:hover { box-shadow: var(--shadow); border-color: #cbd5e1; }
.pillar h3 { font-size: 19px; }
.pillar p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
.mission-statement { margin-top: 56px; padding: 36px 32px; border-radius: var(--radius-lg); background: var(--navy-900); text-align: center; }
.mission-statement p { color: #fff; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; max-width: 900px; margin: 0 auto; }
.mission-statement span { color: var(--lime); }
@media (max-width: 960px) { .mission-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Steps / how it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: how; }
.how-step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.how-step .n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--court); }
.how-step h3 { margin-top: 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.how-step h3 em { font-style: normal; color: var(--ink-soft); font-weight: 600; font-size: 15px; display: block; letter-spacing: 0; margin-top: 4px; }
.how-step p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* Audience */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-on-dark); background: rgba(255, 255, 255, 0.025); }
.audience h3 { color: #fff; font-size: 20px; margin-top: 18px; }
.audience p { color: var(--muted-on-dark); margin-top: 10px; font-size: 15px; }
.audience ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.audience li { display: flex; gap: 10px; font-size: 14px; color: #cbd5e1; }
.audience li svg { width: 18px; height: 18px; color: var(--lime); flex: none; margin-top: 2px; }
.audience .feature-icon { background: rgba(212, 240, 70, .1); color: var(--lime); }
@media (max-width: 960px) { .audience-grid { grid-template-columns: 1fr; } }

.promise {
  margin-top: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(212, 240, 70, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(212, 240, 70, 0.25);
}
.promise .big-ball { width: 64px; height: 64px; }
.promise h3 { color: #fff; font-size: 24px; }
.promise p { color: #cbd5e1; margin-top: 8px; max-width: 640px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--court) 0%, var(--line) 40%); }
.road-item { position: relative; padding-top: 40px; }
.road-item .marker { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-alt); border: 2px solid #cbd5e1; display: grid; place-items: center; }
.road-item.live .marker { background: var(--court); border-color: var(--court); }
.road-item.live .marker::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.road-item.next .marker { border-color: var(--court); }
.road-item.next .marker::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--court); }
.road-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.road-meta b { color: var(--court); font-weight: 700; }
.road-item h3 { margin-top: 8px; font-size: 19px; }
.road-item p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 960px) {
  .roadmap { grid-template-columns: 1fr; gap: 28px; padding-left: 40px; }
  .roadmap::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--court) 0%, var(--line) 40%); }
  .road-item { padding-top: 0; }
  .road-item .marker { left: -40px; }
}

/* Waitlist */
.waitlist-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.benefits { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.benefits .feature-icon { width: 40px; height: 40px; border-radius: 10px; }
.benefits .feature-icon svg { width: 20px; height: 20px; }
.benefits b { display: block; font-size: 16px; }
.benefits span { color: var(--ink-soft); font-size: 15px; }
.form-card { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--court); box-shadow: 0 0 0 3px rgba(31, 95, 184, .15); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field .error { display: none; font-size: 13px; color: var(--red); margin-top: 4px; }
.field.has-error .error { display: block; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--court); }
.consent a { color: var(--court); text-decoration: underline; }
.consent.has-error { color: var(--red); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-submit .btn-dark { min-width: 200px; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #e6f7d0; color: #3f6212; }
.form-success .check svg { width: 30px; height: 30px; }
.form-success h3 { margin-top: 18px; font-size: 24px; }
.form-success p { margin-top: 8px; color: var(--ink-soft); }
.form-card.is-done form { display: none; }
.form-card.is-done .form-success { display: block; }
.demo-note { margin-top: 14px; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: #fff8e1; color: #8a6d00; border: 1px solid #f5e1a4; }
@media (max-width: 960px) { .waitlist-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 0 22px; transition: border-color .15s; }
.faq details[open] { border-color: #cbd5e1; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--court); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* CTA band */
.cta-band { padding: 72px 0; background: var(--court); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(50% - 2px), rgba(255,255,255,.08) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px) 100%); pointer-events: none; }
.cta-band .container { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { margin-top: 8px; color: #dbe7fb; font-size: 17px; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--muted-on-dark); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { margin-top: 16px; max-width: 320px; }
address { font-style: normal; line-height: 1.8; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-on-dark); color: #cbd5e1; }
.social a:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-on-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-hero { padding: 140px 0 48px; background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: #fff; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.legal-hero p { margin-top: 12px; color: var(--muted-on-dark); }
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: #334155; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--court); text-decoration: underline; }
.legal .notice { padding: 14px 16px; border-radius: 10px; background: #fff8e1; border: 1px solid #f5e1a4; color: #8a6d00; font-size: 14px; margin-bottom: 32px; }
