/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --color-bg:             #0B0B18;
  --color-surface:        #13131F;
  --color-surface-raised: #1C1C2E;
  --color-border:         #252538;
  --color-border-light:   #2E2E48;

  --color-primary:        #7C3AED;
  --color-primary-hover:  #6D28D9;
  --color-primary-light:  #A78BFA;
  --color-accent:         #EC4899;

  --color-text:           #F1F1FF;
  --color-text-muted:     #7B7BA0;
  --color-text-dim:       #3E3E60;
  --color-success:        #10B981;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --fw-normal:    400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* Spacing (4/8px grid) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container-max:     1200px;
  --container-padding: 1.5rem;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 36px rgba(124,58,237,0.28);

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  /* Subtle atmospheric texture over the base color; fixed so it reads as
     a faint backdrop behind the content rather than scrolling with it. */
  background-color: var(--color-bg);
  background-image: url("assets/bg-texture.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img    { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  font-weight: var(--fw-bold);
}

:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section { padding: var(--sp-24) 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--sp-12);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  font-family: var(--font-sans);
  border: 2px solid transparent;
  transition: background var(--t-base), transform var(--t-fast), box-shadow var(--t-base), border-color var(--t-base), color var(--t-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 4px 18px rgba(124,58,237,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(124,58,237,0.5); }

.btn-secondary {
  background: var(--color-surface-raised);
  color: var(--color-text);
  border-color: var(--color-border-light);
}
.btn-secondary:hover { border-color: var(--color-primary-light); background: var(--color-border); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-light); }

.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,11,24,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--t-base);
}
.header.scrolled { background: rgba(11,11,24,0.97); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--color-text); }

.nav-cta { padding: var(--sp-2) var(--sp-5); font-size: var(--text-sm); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  transition: background var(--t-fast);
  width: 40px;
  height: 40px;
}
.hamburger:hover { background: var(--color-surface); }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* App (dashboard) header — collapse nav into a hamburger menu on mobile web */
.dash-header { position: relative; }
@media (max-width: 768px) {
  .dash-header .dash-header-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    z-index: 60;
  }
  .dash-header .dash-header-actions.open { display: flex; }
  .dash-header .dash-nav-link {
    width: 100%;
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-base);
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: var(--sp-3) 0;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-link {
    display: block;
    padding: var(--sp-5) var(--container-padding);
    font-size: var(--text-base);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav-cta {
    display: block;
    margin: var(--sp-4) var(--container-padding);
    width: calc(100% - 3rem);
    text-align: center;
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(68px + var(--sp-16)) 0 var(--sp-24);
  overflow: hidden;
  isolation: isolate;
}

/* Generated hero/banner image as the landing background.
   A dark gradient overlay keeps the foreground copy readable. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg,
      var(--color-bg) 0%,
      rgba(11,11,24,0.92) 28%,
      rgba(11,11,24,0.55) 60%,
      rgba(11,11,24,0.3) 100%),
    url("assets/hero.png") center / cover no-repeat;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-primary-light);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-6);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--fw-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-8);
  max-width: 520px;
}

.benefit-list {
  margin-bottom: var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(16,185,129,0.15);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

/* Hero visual — CSS phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 420px;
}

.phone-frame {
  position: absolute;
  width: 210px;
  height: 380px;
  background: var(--color-surface-raised);
  border-radius: 30px;
  border: 2px solid var(--color-border-light);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  top: 0;
  left: 0;
}

.phone-frame-2 {
  top: 40px;
  left: 100px;
  opacity: 0.65;
  transform: rotate(5deg);
  z-index: -1;
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.reel-preview {
  flex: 1;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.reel-1 { background: linear-gradient(170deg, #1a2e1a, #2d4a1e 50%, #16321a); }
.reel-2 { background: linear-gradient(170deg, #1e1828, #2d1a40 50%, #1a1230); }

.reel-frame {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 36px, rgba(255,255,255,0.025) 36px, rgba(255,255,255,0.025) 37px),
    repeating-linear-gradient(90deg, transparent, transparent 36px, rgba(255,255,255,0.025) 36px, rgba(255,255,255,0.025) 37px);
}

.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  backdrop-filter: blur(4px);
}

.reel-tag {
  position: absolute;
  bottom: var(--sp-8);
  left: var(--sp-3);
  right: var(--sp-3);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.reel-progress {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  right: var(--sp-3);
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.reel-progress::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  border-radius: var(--radius-full);
  animation: progress-bar 3.5s ease-in-out infinite;
}

.reel-progress-2::after { animation-delay: -1.8s; }

@keyframes progress-bar {
  0%   { width: 0%; }
  80%  { width: 100%; }
  100% { width: 100%; }
}

/* Gradient orbs */
.orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.22), transparent 70%);
  top: -120px; right: -80px;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(236,72,153,0.15), transparent 70%);
  bottom: -60px; left: -60px;
}
.orb-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.problem-section .section-title em { font-style: normal; color: var(--color-accent); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.problem-card {
  padding: var(--sp-8);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-base), transform var(--t-base);
}
.problem-card:hover { border-color: var(--color-border-light); transform: translateY(-2px); }

.problem-icon { font-size: 2rem; margin-bottom: var(--sp-4); }
.problem-card h3 { font-size: var(--text-xl); margin-bottom: var(--sp-3); }
.problem-card p { color: var(--color-text-muted); line-height: var(--leading-relaxed); }

/* ============================================================
   SOLUTION
   ============================================================ */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-16);
  align-items: start;
  margin-top: var(--sp-4);
}

.workflow-diagram {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
}

.workflow-step {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--color-border);
}
.workflow-step:last-child { border-bottom: none; }

.workflow-step-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-black);
  color: var(--color-primary-light);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-step-body h4 { font-size: var(--text-base); font-weight: var(--fw-semibold); margin-bottom: var(--sp-1); }
.workflow-step-body p  { font-size: var(--text-sm); color: var(--color-text-muted); }

.solution-features { display: flex; flex-direction: column; gap: var(--sp-8); }

.feature-item { display: flex; gap: var(--sp-5); align-items: flex-start; }

.feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-raised);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.feature-body h4 { font-size: var(--text-lg); font-weight: var(--fw-semibold); margin-bottom: var(--sp-2); }
.feature-body p  { color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.feature-body p em { color: var(--color-primary-light); font-style: normal; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.step-card {
  padding: var(--sp-8);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.step-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.2), var(--shadow-md);
}

.step-illustration {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  margin-bottom: var(--sp-6);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: var(--fw-black);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--sp-4);
  opacity: 0.75;
}

.step-card h3 { font-size: var(--text-xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.step-card p  { color: var(--color-text-muted); line-height: var(--leading-relaxed); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-16);
}

.testimonial-card {
  padding: var(--sp-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: border-color var(--t-base), transform var(--t-base);
}
.testimonial-card:hover { border-color: var(--color-border-light); transform: translateY(-2px); }

.testimonial-stars { color: #FBBF24; letter-spacing: 2px; }

.testimonial-text {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  font-style: italic;
  flex: 1;
}

.testimonial-author { display: flex; align-items: center; gap: var(--sp-3); }

.author-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  flex-shrink: 0;
}

.author-name { font-weight: var(--fw-semibold); font-size: var(--text-sm); }
.author-role { font-size: var(--text-xs); color: var(--color-text-muted); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  padding: var(--sp-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}

.stat-label { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--fw-medium); }

/* ============================================================
   PRICING
   ============================================================ */
.offer-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-8);
  align-items: start;
}

.pricing-card {
  padding: var(--sp-8);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  transition: border-color var(--t-base), transform var(--t-base);
}
.pricing-card:hover { transform: translateY(-2px); }

.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.3), var(--shadow-glow);
  transform: translateY(-8px);
}
.pricing-card-featured:hover { transform: translateY(-10px); }

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-tier {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}

.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
}

.price-period { font-size: var(--text-base); color: var(--color-text-muted); }
.pricing-desc { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--sp-6); line-height: var(--leading-relaxed); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--sp-5);
  position: relative;
  line-height: var(--leading-snug);
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--fw-bold);
}

.guarantee {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--sp-4);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* "Current plan" marker shown next to the tier name for signed-in visitors. */
.pricing-current {
  display: inline-block;
  margin-left: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-primary-light);
}
.pricing-card.is-current-plan { border-color: var(--color-primary-light); }

.pricing-status {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}
.pricing-status[data-tone="error"] { color: var(--color-danger, #e5484d); }

/* A CTA that has become a passive label (current/included plan, or in-flight). */
.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-container { max-width: 760px; }

.faq-list {
  margin-top: var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item[open] { border-color: var(--color-border-light); }

.faq-question {
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  gap: var(--sp-4);
  transition: color var(--t-fast);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--t-base), color var(--t-base);
}
details[open] .faq-question::after { transform: rotate(45deg); color: var(--color-primary-light); }
.faq-question:hover { color: var(--color-primary-light); }

.faq-answer {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--color-border);
}
.faq-answer p { padding-top: var(--sp-4); }
.faq-answer em { color: var(--color-primary-light); font-style: normal; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta-section { position: relative; overflow: hidden; }

.final-cta-container {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.final-cta-title {
  font-size: var(--text-5xl);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}

.final-cta-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-10);
}

.final-cta-buttons {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--sp-12);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.footer-tagline { margin-top: var(--sp-3); font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }

.footer-col h5 {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { font-size: var(--text-sm); color: var(--color-text-muted); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--color-text); }

.footer-bottom { border-top: 1px solid var(--color-border); padding: var(--sp-6) 0; }
.footer-bottom p { font-size: var(--text-sm); color: var(--color-text-dim); text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  /* Single-column centered layout — darken the image more evenly for legibility */
  .hero::before {
    background:
      linear-gradient(180deg,
        rgba(11,11,24,0.82) 0%,
        rgba(11,11,24,0.7) 50%,
        rgba(11,11,24,0.88) 100%),
      url("assets/hero.png") center / cover no-repeat;
  }
  .hero-title { font-size: var(--text-5xl); }
  .hero-visual { order: -1; }
  .hero-ctas, .benefit-list { justify-content: center; }
  .benefit-item { justify-content: center; }
  .solution-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: var(--sp-16) 0; }
  .section-title { font-size: var(--text-3xl); }
  .hero-title { font-size: var(--text-4xl); }
  .problem-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
  .pricing-card-featured:hover { transform: translateY(-2px); }
  .final-cta-title { font-size: var(--text-4xl); }
  .footer-container { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
  .phone-mockup { transform: scale(0.85); }
}

@media (max-width: 480px) {
  :root { --container-padding: 1rem; }
  .hero-title { font-size: var(--text-3xl); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .final-cta-title { font-size: var(--text-3xl); }
  .final-cta-buttons { flex-direction: column; align-items: center; }
}

/* ── Reel variant preview (shared: generate.html + dashboard.html) ───────────
   Inline variant players with per-variant keep/discard and a re-roll control.
   Rendered by reel-variants.js. */
.variants-heading {
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  font-size: var(--text-base);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-4);
}

/* ── Compare mode (reel-variants.js) ───────────────────────────────────────
   Side-by-side grid answers "what did I get?"; compare mode answers "which of
   these is best?" — one large player, with the rest as a filmstrip you can
   scroll or click through. The strip is a horizontal scroller with snap so a
   swipe on a phone lands on a variant rather than between two. */
.variant-compare { display: flex; flex-direction: column; gap: var(--sp-3); }
.variant-stage { position: relative; display: flex; justify-content: center; }
.variant-stage .variant-video { max-height: min(60vh, 520px); width: auto; max-width: 100%; }
.variant-stage-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: var(--radius-full);
  border: 1px solid var(--color-border); background: rgba(0, 0, 0, 0.55);
  color: #fff; font-size: var(--text-lg); line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.variant-stage-nav:hover:not([disabled]) { background: rgba(0, 0, 0, 0.75); }
.variant-stage-nav[disabled] { opacity: 0.3; cursor: default; }
.variant-stage-prev { left: var(--sp-2); }
.variant-stage-next { right: var(--sp-2); }

.variant-strip {
  display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-2);
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.variant-thumb {
  flex: 0 0 108px; scroll-snap-align: center; cursor: pointer; padding: 0;
  border: 2px solid transparent; border-radius: var(--radius-md); background: none;
  display: flex; flex-direction: column; gap: 4px; align-items: stretch;
}
.variant-thumb video, .variant-thumb .variant-thumb-ph {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius-md); background: #000; pointer-events: none;
}
.variant-thumb.is-current { border-color: var(--color-primary-light); }
.variant-thumb.is-kept .variant-thumb-label { color: var(--color-success); }
.variant-thumb.is-discarded { opacity: 0.5; }
.variant-thumb-label { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }

.variant-view-toggle { display: flex; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.variant-view-btn {
  font-size: var(--text-xs); font-weight: var(--fw-semibold);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light); color: var(--color-text-muted);
  background: var(--color-surface-raised); cursor: pointer;
}
.variant-view-btn.is-active {
  color: var(--color-text); border-color: var(--color-primary-light);
  background: rgba(139, 92, 246, 0.12);
}
.variant-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-fast), opacity var(--t-fast);
}
.variant-card.is-kept { border-color: rgba(16, 185, 129, 0.5); }
.variant-card.is-discarded { opacity: 0.55; }
.variant-video {
  width: 100%;
  border-radius: var(--radius-md);
  background: #000;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  max-height: 360px;
}
.variant-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.variant-label { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--color-text); }
.variant-sub { font-size: var(--text-xs); color: var(--color-text-muted); }

.variant-actions { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-1); }
.variant-btn {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  background: var(--color-surface-raised);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.variant-btn:hover:not([disabled]) { color: var(--color-text); border-color: var(--color-border); }
.variant-btn[disabled] { opacity: 0.6; cursor: progress; }
.variant-keep.is-active {
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.12);
}
.variant-discard.is-active {
  color: #FB7185;
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.12);
}
.variant-dl { font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--color-primary-light); text-decoration: none; margin-left: auto; }
.variant-dl:hover { text-decoration: underline; }
.variant-msg { font-size: var(--text-xs); color: #FB7185; line-height: 1.3; }
.variant-msg:empty { display: none; }

.reroll-row { margin-top: var(--sp-5); display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.reroll-hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.reroll-msg { font-size: var(--text-sm); color: #FB7185; line-height: 1.3; }
.reroll-msg:empty { display: none; }

/* Matched background-music track title, shown above the variant grid when the
   job's metadata_json carries a music_title (see reel-variants.js gridHtml). */
.variants-music {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--sp-2));
  margin-bottom: var(--sp-3);
}
.variants-music strong { color: var(--color-text); font-weight: var(--fw-semibold); }
.reroll-btn[disabled] { opacity: 0.6; cursor: progress; }

/* ==========================================================================
   IMPERSONATION BAR — an admin support session, viewed from inside the app.
   Built by dash-nav.js when /admin (Users → Impersonate) hands this browser a
   scoped token. It has to be impossible to miss and impossible to lose: fixed
   to the bottom of every app page, with the way back to the portal on it.
   ========================================================================== */
.imp-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.96), rgba(236, 72, 153, 0.96));
  color: #FFFFFF;
  font-size: var(--text-sm);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
}
.imp-bar-text { min-width: 0; }
.imp-bar-text strong { font-weight: var(--fw-bold); }
.imp-bar-exit {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  cursor: pointer;
  transition: background var(--t-fast);
}
.imp-bar-exit:hover { background: rgba(0, 0, 0, 0.45); }
.imp-bar-exit:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
/* Keep the bar off the last row of whatever the page ends with. */
body.has-imp-bar { padding-bottom: 84px; }
@media (max-width: 640px) {
  .imp-bar { justify-content: flex-start; }
  body.has-imp-bar { padding-bottom: 120px; }
}
