/* ============================================================
   SMART RUNNER - Design System
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------ */
:root {
  /* Backgrounds - --elevated is now translucent for the glassmorphism card surface. Pair with backdrop-filter: blur() on selectors that need the frosted look. */
  --bg:           #05070F;
  --surface:      #0C0E1C;
  --elevated:     rgba(255, 255, 255, 0.04);
  --elevated-border: rgba(255, 255, 255, 0.10);
  --glass-blur:   blur(22px) saturate(140%);

  /* Text - high contrast on dark bg. text-1 = headlines, text-2 = body, text-3 = captions only. */
  --text-1:       #FFFFFF;
  --text-2:       #E1E3F2;
  --text-3:       #A6A9C7;

  /* Accent */
  --accent:       #AEFF58;
  --accent-text:  #AEFF58;
  --accent-subtle:#0A1A00;

  /* CTA */
  --action:       #AEFF58;
  --action-fg:    #0A1A00;

  /* Separator */
  --sep:          rgba(174, 255, 88, 0.14);

  /* Run type palette */
  --run-long:      #CC44FF;
  --run-mlr:       #00CCFF;
  --run-tempo:     #FF2D55;
  --run-intervals: #FF6600;
  --run-easy:      #00FF85;
  --run-recovery:  #8899BB;
  --run-fartlek:   #FF2D8A;
  --run-race:      #FFD600;
  --run-strength:  #00FFD4;

  /* TSB / Form */
  --tsb-fresh:    #00FF88;
  --tsb-building: #FF7A00;
  --tsb-over:     #FF2D55;

  /* Typography - Archivo for product UI text; "Source Serif" reserved for editorial pull-quotes (testimonials). */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, sans-serif;
  --font-mono:    "Archivo", system-ui, sans-serif;
  --font-serif:   "Source Serif 4", "Georgia", serif;
  --font-quote:   "Source Serif 4", "Georgia", serif;

  /* Type scale */
  --text-hero:    clamp(48px, 5.5vw, 60px);
  --text-display: clamp(36px, 4.5vw, 56px);
  --text-title:   clamp(28px, 3.5vw, 40px);
  --text-heading: clamp(20px, 2.2vw, 26px);
  --text-body:    15px;
  --text-small:   13px;
  --text-label:   12px;
  --text-mono:    13px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 72px;
  --space-3xl: 120px;
  --space-4xl: 180px;

  /* Radius */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 100px;

  /* Shadows / Glows */
  --glow-accent: 0 0 40px rgba(174, 255, 88, 0.15);
  --glow-card:   inset 0 1px 0 rgba(237, 238, 255, 0.05);
}

/* Glassmorphism: any card surface gets backdrop-blur + subtle top-edge highlight + soft elevation shadow. */
[style*="var(--elevated)"],
.review-card,
.path-card,
.science-card,
.plan-card,
.week-card,
.phase-card,
.compare-table,
.quote-inline,
.band-chip,
.privacy-graphic,
.faq-item,
details.faq-item {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 32px rgba(0,0,0,0.25);
}

/* Run-type tint: cards adopt a subtle color leak from the pill they contain (matches the app's run-type tinting on cards). Uses :has() so each card auto-tints by its content. */
.path-card:has(.pill--easy)      { background: linear-gradient(135deg, rgba(0,255,133,0.08),   rgba(255,255,255,0.03)) !important; border-color: rgba(0,255,133,0.18)   !important; }
.path-card:has(.pill--mlr)       { background: linear-gradient(135deg, rgba(0,204,255,0.08),   rgba(255,255,255,0.03)) !important; border-color: rgba(0,204,255,0.18)   !important; }
.path-card:has(.pill--tempo)     { background: linear-gradient(135deg, rgba(255,45,85,0.08),   rgba(255,255,255,0.03)) !important; border-color: rgba(255,45,85,0.18)   !important; }
.path-card:has(.pill--long)      { background: linear-gradient(135deg, rgba(204,68,255,0.08),  rgba(255,255,255,0.03)) !important; border-color: rgba(204,68,255,0.18)  !important; }
.path-card:has(.pill--intervals) { background: linear-gradient(135deg, rgba(255,102,0,0.08),   rgba(255,255,255,0.03)) !important; border-color: rgba(255,102,0,0.18)   !important; }
.path-card:has(.pill--race)      { background: linear-gradient(135deg, rgba(255,214,0,0.08),   rgba(255,255,255,0.03)) !important; border-color: rgba(255,214,0,0.18)   !important; }

.plan-card:has(.pill--easy)      { background: linear-gradient(135deg, rgba(0,255,133,0.08),   rgba(255,255,255,0.03)) !important; border-color: rgba(0,255,133,0.18)   !important; }
.plan-card:has(.pill--mlr)       { background: linear-gradient(135deg, rgba(0,204,255,0.08),   rgba(255,255,255,0.03)) !important; border-color: rgba(0,204,255,0.18)   !important; }
.plan-card:has(.pill--tempo)     { background: linear-gradient(135deg, rgba(255,45,85,0.08),   rgba(255,255,255,0.03)) !important; border-color: rgba(255,45,85,0.18)   !important; }

.phase-card:has(.pill--easy)      { background: linear-gradient(135deg, rgba(0,255,133,0.08),  rgba(255,255,255,0.03)); border-left: 3px solid var(--run-easy); }
.phase-card:has(.pill--mlr)       { background: linear-gradient(135deg, rgba(0,204,255,0.08),  rgba(255,255,255,0.03)); border-left: 3px solid var(--run-mlr); }
.phase-card:has(.pill--tempo)     { background: linear-gradient(135deg, rgba(255,45,85,0.08),  rgba(255,255,255,0.03)); border-left: 3px solid var(--run-tempo); }
.phase-card:has(.pill--race)      { background: linear-gradient(135deg, rgba(255,214,0,0.08),  rgba(255,255,255,0.03)); border-left: 3px solid var(--run-race); }

/* Science cards: each tinted to its topic color. */
.science-card--vdot  { background: linear-gradient(135deg, rgba(204,68,255,0.08), rgba(255,255,255,0.03)) !important; border-color: rgba(204,68,255,0.16) !important; }
.science-card--atl   { background: linear-gradient(135deg, rgba(255,45,85,0.08),  rgba(255,255,255,0.03)) !important; border-color: rgba(255,45,85,0.16)  !important; }
.science-card--trimp { background: linear-gradient(135deg, rgba(0,204,255,0.08),  rgba(255,255,255,0.03)) !important; border-color: rgba(0,204,255,0.16)  !important; }

/* Review cards: subtle warm tint matching the gold star rating. */
.review-card { background: linear-gradient(135deg, rgba(255,214,0,0.05), rgba(255,255,255,0.03)) !important; border-color: rgba(255,214,0,0.12) !important; }

/* Inline pull-quote cards (hero / mid-CTA / pricing): same warm tint, lighter. */
.quote-inline { background: linear-gradient(135deg, rgba(255,214,0,0.06), rgba(255,255,255,0.04)) !important; border-color: rgba(255,214,0,0.14) !important; }

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--text-1); }
img { max-width: 100%; display: block; }
ul  { list-style: none; }

/* ------------------------------------------------------------
   3. Animations / Keyframes
   ------------------------------------------------------------ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-50px, 20px) scale(1.03); }
  66%       { transform: translate(30px, -15px) scale(0.98); }
}

@keyframes shimmer {
  0%   { left: -120%; }
  100% { left: 120%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Directional variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9) translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   4. Layout Utilities
   ------------------------------------------------------------ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: 160px var(--space-lg);
  max-width: 1140px;
  margin: 0 auto;
}

.section--full {
  padding: 160px 0;
}

.section--full .section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section--centered { text-align: center; }

/* ------------------------------------------------------------
   5. Typography Utilities
   ------------------------------------------------------------ */
.text-hero {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.text-display {
  font-size: var(--text-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
}

.text-title {
  font-size: var(--text-title);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.text-heading {
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.text-body   { font-size: var(--text-body);  font-weight: 500; line-height: 1.7; }
.text-small  { font-size: var(--text-small); font-weight: 500; }

.text-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  font-family: var(--font-display);
  color: var(--text-2);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.color-1     { color: var(--text-1); }
.color-2     { color: var(--text-2); }
.color-3     { color: var(--text-3); }
.color-accent { color: var(--accent-text); }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #EDEEFF 0%, #AEFF58 60%, #5BFF00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #AEFF58 0%, #5BFF00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Serif italic accent - for mixed-type headlines */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   6. Pill Badge
   ------------------------------------------------------------ */
/* App-style pill: neon text on tinted gradient background + soft glow. Matches the run-type badges in the iOS app. */
.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.2;
  width: fit-content;
  border: 1px solid transparent;
}

.pill--easy      { color: var(--run-easy);      background: linear-gradient(135deg, rgba(0,255,133,0.22), rgba(0,255,133,0.08));   border-color: rgba(0,255,133,0.25);   box-shadow: 0 0 16px rgba(0,255,133,0.15); }
.pill--mlr       { color: var(--run-mlr);       background: linear-gradient(135deg, rgba(0,204,255,0.22), rgba(0,204,255,0.08));   border-color: rgba(0,204,255,0.25);   box-shadow: 0 0 16px rgba(0,204,255,0.15); }
.pill--tempo     { color: var(--run-tempo);     background: linear-gradient(135deg, rgba(255,45,85,0.22), rgba(255,45,85,0.08));   border-color: rgba(255,45,85,0.25);   box-shadow: 0 0 16px rgba(255,45,85,0.15); }
.pill--long      { color: var(--run-long);      background: linear-gradient(135deg, rgba(204,68,255,0.22), rgba(204,68,255,0.08)); border-color: rgba(204,68,255,0.25); box-shadow: 0 0 16px rgba(204,68,255,0.15); }
.pill--intervals { color: var(--run-intervals); background: linear-gradient(135deg, rgba(255,102,0,0.22), rgba(255,102,0,0.08));   border-color: rgba(255,102,0,0.25);   box-shadow: 0 0 16px rgba(255,102,0,0.15); }
.pill--race      { color: var(--run-race);      background: linear-gradient(135deg, rgba(255,214,0,0.22), rgba(255,214,0,0.08));   border-color: rgba(255,214,0,0.25);   box-shadow: 0 0 16px rgba(255,214,0,0.15); }
.pill--fartlek   { color: var(--run-fartlek);   background: linear-gradient(135deg, rgba(255,45,138,0.22), rgba(255,45,138,0.08)); border-color: rgba(255,45,138,0.25); box-shadow: 0 0 16px rgba(255,45,138,0.15); }
.pill--strength  { color: var(--run-strength);  background: linear-gradient(135deg, rgba(0,255,212,0.22), rgba(0,255,212,0.08));   border-color: rgba(0,255,212,0.25);   box-shadow: 0 0 16px rgba(0,255,212,0.15); }
.pill--recovery  { color: var(--run-recovery);  background: linear-gradient(135deg, rgba(136,153,187,0.22), rgba(136,153,187,0.08)); border-color: rgba(136,153,187,0.25); box-shadow: 0 0 16px rgba(136,153,187,0.15); }

/* ------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, #AEFF58 0%, #5BFF00 100%);
  color: var(--action-fg);
  box-shadow: 0 4px 24px rgba(174, 255, 88, 0.35), 0 1px 0 rgba(255,255,255,0.08) inset;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
}

.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(174, 255, 88, 0.45), 0 1px 0 rgba(255,255,255,0.08) inset;
  color: var(--action-fg);
}

.btn--primary:hover::after {
  animation: shimmer 0.6s ease forwards;
}

.btn--secondary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(174, 255, 88, 0.25);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  padding: 0 24px;
  backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  border-color: rgba(174, 255, 88, 0.55);
  color: var(--text-1);
  background: rgba(174, 255, 88, 0.06);
}

.btn--sm {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

/* ------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-card);
}

.card--padded {
  padding: 28px;
}

/* Glass card */
.glass {
  background: rgba(12, 14, 28, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(174, 255, 88, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Hoverable card */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(174, 255, 88, 0.32);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 30px rgba(174,255,88,0.08), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ------------------------------------------------------------
   9. Feature Row
   ------------------------------------------------------------ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-row--reverse .feature-visual { order: 2; }
.feature-row--reverse .feature-text   { order: 1; }

.feature-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-body);
  color: var(--text-2);
}

.feature-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ------------------------------------------------------------
   10. Navbar
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.nav-hidden {
  transform: translateY(-100%);
}

/* Mobile download CTA in nav - hidden until past hero */
.nav-dl-cta {
  display: none;
}

@media (max-width: 900px) {
  .nav-dl-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    background: var(--accent);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav.nav-past-hero .nav-dl-cta {
    opacity: 1;
    pointer-events: auto;
  }
}

.nav.nav-scrolled {
  background: rgba(5, 7, 15, 0.8);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--sep);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--text-1);
  position: relative;
  z-index: 50;
}

.nav-hamburger:focus { outline: none; }
.nav-hamburger:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }

/* When the overlay is open, the hamburger gets hidden so the icons can't stack. */
body:has(.nav-overlay.open) .nav-hamburger { visibility: hidden; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 15, 0.97);
  backdrop-filter: blur(24px);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.nav-overlay.open { display: flex; }

.nav-overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-overlay-close:focus { outline: none; }
.nav-overlay-close:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }

/* ------------------------------------------------------------
   11. Footer
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--sep);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  margin-top: var(--space-3xl);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174,255,88,0.5), transparent);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--sep);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  text-decoration: none;
}

.footer-tagline {
  font-size: var(--text-small);
  color: var(--text-3);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--text-2);
  font-size: var(--text-small);
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--text-1); }

.footer-col-title {
  font-size: var(--text-label);
  color: var(--text-3);
  margin-bottom: var(--space-md);
  display: block;
}

.footer-bottom {
  padding-top: var(--space-lg);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   12. Accordion (FAQ)
   ------------------------------------------------------------ */
.accordion-item {
  border-bottom: 1px solid var(--sep);
}

.accordion-question {
  width: 100%;
  background: var(--surface);
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  text-align: left;
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  transition: background 0.15s ease;
}

.accordion-question:hover { background: var(--elevated); }

.accordion-chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-answer {
  background: var(--elevated);
  padding: 0 20px;
  color: var(--text-2);
  font-size: var(--text-body);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.accordion-item.open .accordion-answer {
  max-height: 400px;
  padding: 16px 20px;
}

/* ------------------------------------------------------------
   13. Prose (Privacy/Support)
   ------------------------------------------------------------ */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--text-1);
  font-family: var(--font-display);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose p {
  color: var(--text-2);
  font-size: var(--text-body);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.prose ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.prose ul li {
  color: var(--text-2);
  font-size: var(--text-body);
  line-height: 1.7;
  padding-left: var(--space-lg);
  position: relative;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-text);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--sep);
  margin: var(--space-2xl) 0;
}

.prose a { color: var(--accent-text); }

/* ------------------------------------------------------------
   14. Page Header (inner pages)
   ------------------------------------------------------------ */
.page-header {
  padding: 140px var(--space-lg) var(--space-3xl);
  max-width: 1140px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   15. Dot grid background texture
   ------------------------------------------------------------ */
.dot-grid {
  background-image: radial-gradient(rgba(174, 255, 88, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ------------------------------------------------------------
   16. Gradient separator line
   ------------------------------------------------------------ */
.gradient-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(174,255,88,0.4) 30%, rgba(91,255,0,0.4) 70%, transparent 100%);
}

/* ------------------------------------------------------------
   17. Stat chip (floating metrics)
   ------------------------------------------------------------ */
.stat-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(12, 14, 28, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(174,255,88,0.22);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  white-space: nowrap;
}

.stat-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-chip-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.stat-chip-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

/* ------------------------------------------------------------
   18. Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .section { padding: 100px var(--space-lg); }
  .section--full { padding: 100px 0; }

  .feature-row { grid-template-columns: 1fr; gap: var(--space-3xl); }
  /* Text first, image second on mobile for all rows */
  .feature-visual { order: 2; }
  .feature-text   { order: 1; }
  .feature-row--reverse .feature-visual { order: 2; }
  .feature-row--reverse .feature-text   { order: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }

  .nav-actions   { display: none; }
  .nav-hamburger { display: flex; }

  /* Directional reveals become vertical on single-column layout */
  .reveal-left  { transform: translateY(28px); }
  .reveal-right { transform: translateY(28px); }
}

@media (max-width: 600px) {
  .section { padding: 80px var(--space-md); }
  .page-header { padding: 120px var(--space-md) var(--space-2xl); }

  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }

  .feature-row { gap: var(--space-2xl); }

  /* Crop tall iPhone screenshots to half-height and fade into section background */
  .feature-visual--tall {
    max-height: 50vw;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 { transition-delay: 0s; }
  .btn--primary:hover::after { animation: none; }
}
