/* ============================================================
   LaneSight — Website Stylesheet
   Brand reference: docs/BRAND.md
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  --color-bg:          #000000;
  --color-surface:     #0B1B2A;
  --color-navy:        #001030;
  --color-blue:        #0060B0;
  --color-accent:      #F07000;
  --color-green:       #00C853;
  --color-foul:        #5BE7FF;
  --color-pin-deck:    #FF8A8A;
  --color-text:        #F0F0F0;
  --color-text-muted:  #A0B0C0;
  --color-text-dim:    #607080;

  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Roboto', sans-serif;

  --radius-card:   18px;
  --radius-btn:    8px;
  --radius-metric: 12px;

  --shadow-card:   0 4px 8px rgba(0,0,0,0.30);
  --shadow-action: 0 6px 12px rgba(0,0,0,0.35);

  --nav-height:    80px;
  --container-max: 1200px;
  --section-v:     88px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-family: var(--font-body); }
p  { color: var(--color-text-muted); line-height: 1.7; }
small { font-size: 0.8em; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-v) 0;
}
.section--alt {
  background: var(--color-surface);
}
.section--navy {
  background: var(--color-navy);
}

/* === NAVIGATION === */
/* body > nav targets only the top-level site nav, not footer <nav> elements */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Self-contained — does not rely on .container for layout */
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto; /* push links and CTA to the far right */
  flex-shrink: 0;
}
.nav-logo img {
  height: 38px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  mix-blend-mode: lighten;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: 28px;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a.active { color: var(--color-text); }
.nav-links .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}
body > nav .btn { flex-shrink: 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: #d86200; }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover { background: rgba(255,255,255,0.13); }

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn-outline:hover { background: rgba(240,112,0,0.08); }

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* === GLASS CARDS === */
.glass-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.glass-card--accent {
  border-color: rgba(240,112,0,0.3);
}

/* === BADGES === */
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.badge-soon {
  color: var(--color-foul);
  background: rgba(91,231,255,0.1);
  border: 1px solid rgba(91,231,255,0.2);
}
.badge-tier {
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge-pro {
  color: var(--color-accent);
  background: rgba(240,112,0,0.1);
  border: 1px solid rgba(240,112,0,0.2);
}

/* === SECTION LABELS === */
.section-tag {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 16px;
}
.section-intro {
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: 48px;
}
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .section-intro { margin-left: auto; margin-right: auto; }

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: url('../assets/hero-bg.png') center center / cover no-repeat;
}
/* Dark gradient overlay — heavier on the left where text sits,
   lighter on the right where the lane canvas sits */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.65) 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 48px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
.hero-brand { text-align: center; }
.hero-logo-img {
  max-width: 520px;
  height: auto;
  mix-blend-mode: lighten;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-content { max-width: 540px; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content p  { font-size: 1.0625rem; margin-bottom: 32px; max-width: 460px; }

/* Hero visual — devices.css iPhone 14 Pro mockup */
.hero-visual {
  flex-shrink: 0;
}

/* Hero: device fills 278×564 px in the layout */
.hero-visual .device-iphone-14-pro { zoom: 0.65; }
/* Feature showcases: slightly smaller */
.feature-showcase-visual .device-iphone-17-pro { zoom: 0.55; }

/* Outer ambient shadow (devices.css only provides inner bezel shadows) */
.device-iphone-14-pro .device-frame {
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.65))
          drop-shadow(0 8px 20px rgba(0,0,0,0.40));
}

/* Screen must clip canvas corners at border-radius */
.device-iphone-14-pro .device-screen {
  overflow: hidden;
}

/* Lane canvas fills the device screen exactly */
#lane-canvas {
  display: block;
}

/* ── Hero phone split layout ─────────────────────────────────
   Left: lane canvas (140px). Right: metric cards (flex:1).
   All sizes are pre-zoom (device is at zoom:0.65 on screen).
   ──────────────────────────────────────────────────────────── */
/* Outer flex-column wrapper fills the device-screen.
   padding-top: 45px clears the iPhone 14 Pro CSS notch
   (device-header at top:29px frame-relative → top:10px screen-relative,
   height 35px → bottom at 45px into screen). */
.hero-phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--color-bg);
  padding-top: 45px;
}

/* Title bar — mirrors the app's HeaderArea component.
   Padding matches HeaderArea: .top 12, .bottom 16, .horizontal 16. */
.hero-phone-titlebar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 12px 16px 16px 16px;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
/* Back button: 20×20 icon + 12pt padding each side = 44×44 tap target */
.hero-phone-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240,112,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
/* Title: LaneSightFonts.title() = Exo 2 Bold 38pt, centered with .padding(.horizontal, 64) */
.hero-phone-title {
  flex: 1;
  text-align: center;
  font-family: 'Exo 2', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Split body — fills remaining height, 16pt padding matching the app */
.hero-phone-inner {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 16px;
  gap: 16px;
}
.hero-phone-lane {
  flex-shrink: 0;
  width: 140px;
  border-radius: 14px;
  overflow: hidden;
}
.hero-phone-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
}

/* "Tracking" section heading — Exo 2 Bold 38pt, matching LaneSightFonts.title() */
.hero-tracking-heading {
  font-family: 'Exo 2', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

/* Metric card — GlassCard: white 12%, cornerRadius 18, padding 12 (reduced from 16 to fit 7 cards) */
.metric-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  padding: 12px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}
.metric-card.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Label: Roboto Regular 14pt, 85% opacity. Value: Roboto Medium 24pt */
.metric-label {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(240,240,240,0.85);
  margin-bottom: 6px;
}
.metric-value {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #F0F0F0;
  line-height: 1.2;
}

/* ============================================================
   HOME — SCREENSHOT CAROUSELS (inside feature-showcase blocks)
   ============================================================ */

/* Carousel slide container — fills device-screen */
.phone-carousel {
  position: absolute;
  inset: 0;
}
.phone-carousel img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.phone-carousel img.active { opacity: 1; }

/* Progress dots */
.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s ease;
}
.carousel-dot.active { background: var(--color-accent); }

/* ============================================================
   HOME — PROOF STRIP
   ============================================================ */

/* ============================================================
   HOME — KEY FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 28px 24px;
  transition: border-color 0.25s, background 0.25s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.10);
}
.feature-card--primary {
  border-top: 2px solid var(--color-accent);
}
.feature-card--companion {
  border-top: 2px solid var(--color-blue);
}
.register-form {
  max-width: 480px;
  margin: 0 auto;
}
.feature-card h3 {
  margin-bottom: 10px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feature-card p {
  font-size: 0.9375rem;
}

/* App section header within features */
.app-section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.app-section-label.companion { color: #6BAED6; }
.features-grid + .app-section-label { margin-top: 40px; }

/* ============================================================
   HOME — HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.step {
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240,112,0,0.15);
  border: 1px solid rgba(240,112,0,0.3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-accent);
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }

/* ============================================================
   HOME — TIER PREVIEW
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tier-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
.tier-card--featured {
  background: rgba(240,112,0,0.10);
  border-color: rgba(240,112,0,0.25);
}
.tier-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.tier-price {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.tier-price--tbd {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-dim);
  font-style: italic;
}
.tier-price span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 400;
}
.tier-features {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}
.tier-note {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 12px;
}

/* ============================================================
   HOME — CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-surface) 100%);
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p  { margin-bottom: 36px; font-size: 1.0625rem; }
.cta-band .btn-group { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--color-navy);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-text); }
.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  width: 100%;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  background: url('../assets/hero-bg.png') center center / cover no-repeat;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  pointer-events: none;
  z-index: 0;
}
.page-header > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.feature-list { display: flex; flex-direction: column; gap: 48px; }

.feature-entry {}
.feature-entry h3 {
  font-size: 1.1875rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feature-entry p { max-width: 680px; margin-bottom: 10px; }

.feature-entry ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 32px;
  max-width: 680px;
}
.feature-entry ul li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding-left: 16px;
  position: relative;
}
.feature-entry ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}

.tier-attribution {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  margin-top: 10px;
}

.app-section {
  padding: var(--section-v) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.app-section:last-child { border-bottom: none; }

.app-section-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 48px;
}
.app-section-header h2 { font-size: 1rem; margin: 0; color: var(--color-text-muted); }
.app-section-header.companion h2 { color: #6BAED6; }

.in-progress-note {
  background: rgba(91,231,255,0.06);
  border: 1px solid rgba(91,231,255,0.15);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 48px;
}
.in-progress-note p {
  color: var(--color-foul);
  font-size: 0.9375rem;
  margin: 0;
}
.in-progress-note strong { color: var(--color-foul); }

/* ── Feature Showcase layout ─────────────────────────────── */
.feature-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-showcase.showcase-flip {
  grid-template-columns: 1fr auto;
}
.feature-showcase.showcase-flip .feature-showcase-visual {
  grid-column: 2;
  grid-row: 1;
}
.feature-showcase.showcase-flip .feature-showcase-text {
  grid-column: 1;
  grid-row: 1;
}
.feature-showcase-text h3 {
  font-size: 1.1875rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feature-showcase-text p { max-width: 560px; margin-bottom: 10px; }
.feature-showcase-text ul {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 560px;
}
.feature-showcase-text ul li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding-left: 20px;
  position: relative;
}
.feature-showcase-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Ball Tracking: prominent text-only block (no mockup per design) */
.feature-highlight {
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  margin-bottom: 72px;
}
.feature-highlight h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-highlight p { max-width: 680px; margin-bottom: 10px; }
.feature-highlight ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 12px 0;
}
.feature-highlight ul li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
}
.feature-highlight ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* "Plus extras" section wrapper */
.feature-minor-section {
  margin-top: 64px;
  margin-bottom: 16px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.feature-minor-heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin-bottom: 24px;
}

/* Minor features — compact ruled list */
.feature-minor-grid {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  margin-bottom: 48px;
}
.feature-minor {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.feature-minor:last-child {
  border-bottom: none;
}
.feature-minor h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feature-minor p { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 4px; }

/* ── Mock screen components ───────────────────────────────────
   All dimensions are pre-zoom (device shown at zoom 0.55).
   To read at 12px on-screen, use 22px here (12/0.55=21.8).
   ─────────────────────────────────────────────────────────── */
.mock-screen {
  width: 390px;
  height: 830px;
  background: #0B1520;
  color: #F0F0F0;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Status bar */
.mock-status {
  height: 52px;
  display: flex;
  align-items: flex-end;
  padding: 0 28px 10px;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.mock-status-icons { display: flex; gap: 6px; align-items: center; font-size: 18px; font-weight: 400; opacity: 0.75; }
/* Nav bar */
.mock-navbar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mock-nav-back { color: #F07000; font-size: 22px; flex-shrink: 0; }
.mock-nav-title { flex: 1; text-align: center; font-size: 26px; font-weight: 600; }
.mock-nav-btn { color: #F07000; font-size: 34px; font-weight: 300; flex-shrink: 0; line-height: 1; }
/* Tabs */
.mock-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.10); flex-shrink: 0; }
.mock-tab { flex: 1; text-align: center; padding: 14px 0; font-size: 20px; color: rgba(240,240,240,0.42); font-weight: 500; }
.mock-tab.active { color: #F07000; box-shadow: inset 0 -2px 0 #F07000; }
/* Content */
.mock-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
/* List rows */
.mock-list-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.mock-ball-dot {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
}
.mock-ball-info { flex: 1; min-width: 0; }
.mock-ball-name { font-size: 24px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-ball-sub { font-size: 19px; color: rgba(240,240,240,0.58); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-chevron { font-size: 30px; color: rgba(255,255,255,0.28); flex-shrink: 0; }
/* Split layout for pattern/plan */
.mock-split { display: flex; flex: 1; overflow: hidden; }
.mock-split-lane { width: 130px; flex-shrink: 0; background: #07101A; border-right: 1px solid rgba(255,255,255,0.07); overflow: hidden; position: relative; }
.mock-split-detail { flex: 1; padding: 20px 18px; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
/* Pattern detail elements */
.mock-pattern-name { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.1; }
.mock-tag {
  display: inline-block;
  background: rgba(240,112,0,0.14); border: 1px solid rgba(240,112,0,0.28);
  border-radius: 8px; padding: 4px 12px; font-size: 17px; color: #F07000; margin-bottom: 14px;
}
.mock-divider { height: 1px; background: rgba(255,255,255,0.09); margin: 12px 0; }
.mock-metric-grid { display: flex; flex-direction: column; gap: 9px; }
.mock-metric-row2 { display: flex; gap: 9px; }
.mock-metric-item {
  flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 10px 13px;
}
.mock-metric-label { font-size: 15px; color: rgba(240,240,240,0.52); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.mock-metric-value { font-size: 24px; font-weight: 600; margin-top: 3px; }
.mock-metric-unit { font-size: 16px; color: rgba(240,240,240,0.52); font-weight: 400; }
.mock-desc-text { font-size: 19px; color: rgba(240,240,240,0.62); line-height: 1.5; }
/* Plan phase */
.mock-section-label { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(240,240,240,0.42); padding: 16px 24px 6px; flex-shrink: 0; }
.mock-phase-header { padding: 0 18px 14px; }
.mock-phase-name { font-size: 26px; font-weight: 700; color: #F07000; }
.mock-phase-sub { font-size: 20px; color: rgba(240,240,240,0.58); margin-top: 3px; }
.mock-phase-summary { font-size: 19px; color: rgba(240,240,240,0.68); line-height: 1.5; margin-bottom: 14px; }
.mock-board-targets { display: flex; gap: 8px; margin-bottom: 14px; }
.mock-board-target {
  flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 10px 6px; text-align: center;
}
.mock-board-label { font-size: 14px; color: rgba(240,240,240,0.48); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.mock-board-value { font-size: 30px; font-weight: 700; color: #F07000; margin-top: 2px; }
.mock-board-detail { font-size: 13px; color: rgba(240,240,240,0.38); }
.mock-ball-choice {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center;
}
.mock-ball-choice-dot { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.mock-ball-choice-info { flex: 1; }
.mock-ball-choice-name { font-size: 22px; font-weight: 600; }
.mock-ball-choice-sub { font-size: 17px; color: rgba(240,240,240,0.58); margin-top: 2px; }
/* League summary */
.mock-summary-pair { display: flex; gap: 12px; padding: 20px 24px 0; flex-shrink: 0; }
.mock-big-stat {
  flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 20px 16px; text-align: center;
}
.mock-big-label { font-size: 17px; color: rgba(240,240,240,0.52); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.mock-big-value { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.mock-stat-strip { display: flex; border-top: 1px solid rgba(255,255,255,0.09); border-bottom: 1px solid rgba(255,255,255,0.09); margin-top: 16px; flex-shrink: 0; }
.mock-stat-cell { flex: 1; text-align: center; padding: 16px 4px; border-right: 1px solid rgba(255,255,255,0.09); }
.mock-stat-cell:last-child { border-right: none; }
.mock-stat-label { font-size: 14px; color: rgba(240,240,240,0.48); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.mock-stat-value { font-size: 26px; font-weight: 600; margin-top: 4px; }
.mock-week-row {
  display: flex; align-items: center; padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07); gap: 12px; flex-shrink: 0;
}
.mock-week-info { flex: 1; }
.mock-week-name { font-size: 22px; font-weight: 500; }
.mock-week-date { font-size: 17px; color: rgba(240,240,240,0.52); margin-top: 2px; }
.mock-week-score { font-size: 28px; font-weight: 700; }
.mock-week-score.hi { color: #F07000; }
/* Arsenal Fit */
.mock-fit-scroll { flex: 1; padding: 0 24px 16px; display: flex; flex-direction: column; gap: 0; }
.mock-fit-section { margin-bottom: 18px; }
.mock-fit-heading { font-size: 21px; font-weight: 700; color: #F07000; margin-bottom: 10px; }
.mock-fit-body { font-size: 20px; color: rgba(240,240,240,0.70); line-height: 1.55; }
.mock-fit-item { display: flex; gap: 10px; margin-bottom: 9px; align-items: flex-start; }
.mock-fit-bullet { width: 6px; height: 6px; border-radius: 50%; background: #F07000; flex-shrink: 0; margin-top: 8px; }
.mock-fit-text { font-size: 20px; color: rgba(240,240,240,0.70); line-height: 1.5; }
/* Player profile */
.mock-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(240,112,0,0.18); border: 2px solid rgba(240,112,0,0.42);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: #F07000;
  margin: 28px auto 12px; flex-shrink: 0;
}
.mock-player-name { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.mock-player-sub { text-align: center; font-size: 20px; color: rgba(240,240,240,0.52); margin-top: 4px; margin-bottom: 8px; }
.mock-player-row {
  display: flex; align-items: center; padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mock-player-key { flex: 1; font-size: 22px; color: rgba(240,240,240,0.72); }
.mock-player-val { font-size: 22px; font-weight: 500; }
.mock-perf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.09);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  margin-top: 12px; flex-shrink: 0;
}
.mock-perf-cell { text-align: center; padding: 20px 8px; border-right: 1px solid rgba(255,255,255,0.09); }
.mock-perf-cell:last-child { border-right: none; }
.mock-perf-label { font-size: 15px; color: rgba(240,240,240,0.48); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.mock-perf-value { font-size: 30px; font-weight: 700; margin-top: 5px; }
.mock-perf-unit { font-size: 15px; color: rgba(240,240,240,0.48); }

/* Responsive adjustments for narrow screens */
@media (max-width: 780px) {
  /* Hero logo: prevent overflow on narrow viewports */
  .hero-logo-img { max-width: min(520px, 85vw); }

  /* Hero buttons: stack full-width so they look intentional, not broken */
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; }

  /* Hero split: stack text above, phone centred below */
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-visual { display: flex; justify-content: center; }
  /* Scale phone down slightly so it sits comfortably on narrow screens */
  .hero-visual .device-iphone-14-pro { zoom: 0.55; }

  /* Feature showcases: collapse to 1-col */
  .feature-showcase,
  .feature-showcase.showcase-flip { grid-template-columns: 1fr; }
  .feature-showcase.showcase-flip .feature-showcase-visual,
  .feature-showcase.showcase-flip .feature-showcase-text { grid-column: 1; grid-row: auto; }

  /* Always show text before screenshot on mobile regardless of flip class.
     Default (no-flip) showcases have visual first in DOM; order reverses that. */
  .feature-showcase:not(.showcase-flip) .feature-showcase-text    { order: 1; }
  .feature-showcase:not(.showcase-flip) .feature-showcase-visual  { order: 2; }

  /* Show screenshot thumbnails at reduced zoom instead of hiding entirely */
  .feature-showcase-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
  }
  .feature-showcase-visual .device-iphone-17-pro { zoom: 0.30; }

  .feature-highlight ul { grid-template-columns: 1fr 1fr; }
  /* .feature-minor-grid is already single-column flex — no override needed */
}
@media (max-width: 500px) {
  .feature-highlight ul { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.pricing-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pricing-card--featured {
  background: rgba(240,112,0,0.08);
  border-color: rgba(240,112,0,0.3);
}
.pricing-card h3 {
  font-size: 1.25rem;
  margin: 0;
}
.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-accent);
  line-height: 1;
}
.pricing-price sup {
  font-size: 1rem;
  vertical-align: super;
}
.pricing-price sub {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-muted);
}
.pricing-price--tbd {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--color-text-dim);
  font-style: italic;
  line-height: 1.4;
}
.pricing-free {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-text);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pricing-features li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.75rem;
  top: 0.15em;
}
.pricing-requires {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
  line-height: 1.5;
}
.pricing-notes {
  margin-top: 40px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.pricing-notes p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.pricing-notes p + p { margin-top: 8px; }

/* ============================================================
   PRIVACY / TERMS PAGES
   ============================================================ */
.prose-section {
  max-width: 720px;
}
.prose-section h2 {
  font-size: 1.375rem;
  margin-top: 40px;
  margin-bottom: 12px;
}
.prose-section h2:first-child { margin-top: 0; }
.prose-section p + p { margin-top: 12px; }
.prose-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.prose-section ul li {
  padding-left: 20px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.prose-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-text-dim);
}
.prose-section a { color: var(--color-foul); }
.prose-section a:hover { text-decoration: underline; }
.prose-section ol {
  counter-reset: ol-counter;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}
.prose-section ol li {
  counter-increment: ol-counter;
  padding-left: 36px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.prose-section ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
}
.prose-section ol li h4 {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(240,112,0,0.5);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}
.form-success {
  display: none;
  background: rgba(0,200,83,0.1);
  border: 1px solid rgba(0,200,83,0.25);
  border-radius: 8px;
  padding: 16px;
  color: var(--color-green);
  font-size: 0.9375rem;
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}
.faq-question:hover { color: var(--color-text-muted); }
.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.9375rem;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .tier-grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-v: 60px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .support-grid { grid-template-columns: 1fr; }
}
/* Hide hero canvas on tablet only — mobile (≤780px) shows it at zoom 0.55 */
@media (min-width: 781px) and (max-width: 900px) {
  .hero-visual { display: none; }
}

@media (max-width: 640px) {
  :root { --section-v: 48px; }
  .nav-links { display: none; } /* links hidden on mobile — just logo + CTA */
  .features-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-copy { margin-top: 8px; }
  .feature-entry ul { grid-template-columns: 1fr; }
}
