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

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F0F0;
  --border: #E0E0E0;
  --border-light: #D0D0D0;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #666666;
  --accent: #BB0000;
  --accent-light: #E03C3C;
  --accent-dark: #990000;
  --accent-glow: rgba(187, 0, 0, 0.15);
  --accent-glow-strong: rgba(187, 0, 0, 0.3);
  --gradient: linear-gradient(135deg, #BB0000, #E03C3C, #666666);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Disable iOS Safari font auto-resize on orientation change */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Kill iOS Safari's gray tap-highlight flash globally; we provide our own
     :hover and :active states. */
  -webkit-tap-highlight-color: transparent;
}

/* Buttons and form controls: keep our custom styling on iOS instead of letting
   Safari paint native chrome over them. */
button,
input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
  padding: 14px 24px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(0, 0, 0, 0.03);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-slow);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.logo-icon {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-login {
  color: var(--text-secondary) !important;
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  margin-left: 12px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
}
.lang-toggle::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 999px;
  box-shadow: 0 2px 8px var(--accent-glow-strong);
  transition: transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 0;
}
.lang-toggle:has(.lang-btn[data-lang="es"][aria-pressed="true"])::before {
  transform: translateX(100%);
}
.lang-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  min-width: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn[aria-pressed="true"] { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.15); }
.lang-sep { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow-strong) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid rgba(187, 0, 0, 0.2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-subhead {
  margin-top: 48px;
  margin-bottom: 24px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-primary);
}

.hero-learn-more {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* Hero Visual Card */
.hero-visual {
  max-width: 760px;
  margin: 0 auto;
}

/* Floating stat cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.float-1 {
  top: -10px;
  right: -10px;
  animation-delay: 0s;
}

.float-2 {
  bottom: 30px;
  left: -20px;
  animation-delay: 1.5s;
}

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

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-label {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
  display: block;
}

.float-value {
  font-size: 0.85rem;
  color: #1A1A1A;
  font-weight: 700;
  display: block;
}

/* Main dashboard card */
.hero-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(187, 0, 0, 0.2);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 80px rgba(187, 0, 0, 0.1), 0 0 0 1px rgba(187, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

/* Dashboard header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #BB0000, #990000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.dash-greeting {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 600;
  margin-bottom: 2px;
}

.dash-idea {
  font-size: 0.9rem;
  color: #1A1A1A;
  font-weight: 600;
}

.dash-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

.dash-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* Progress section */
.dash-progress-section {
  padding: 18px 24px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dash-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}

.dash-progress-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  color: rgba(0, 0, 0, 0.4);
}

.dash-pct {
  color: #1A1A1A;
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.dash-progress-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  background: #BB0000;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modern vertical stepper */
.dash-steps {
  padding: 10px 24px 22px;
  position: relative;
}

.dash-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}

/* Vertical connecting line between step indicators */
.dash-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: -12px;
  width: 1.5px;
  background: rgba(0, 0, 0, 0.08);
}

.dash-step:last-child::before { display: none; }

.dash-step.done::before {
  background: #10b981;
}

.dash-step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  z-index: 1;
  position: relative;
}

.dash-step.done .dash-step-indicator {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.dash-step.building .dash-step-indicator {
  background: #ffffff;
  border-color: #BB0000;
  box-shadow: 0 0 0 4px rgba(187, 0, 0, 0.1);
}

.dash-step.pending .dash-step-indicator {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  border-style: dashed;
}

.dash-step-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(187, 0, 0, 0.2);
  border-top-color: #BB0000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.dash-step-body {
  flex: 1;
  min-width: 0;
}

.dash-step-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
}

.dash-step-sub {
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 2px;
  font-weight: 500;
}

.dash-step.pending .dash-step-name {
  color: rgba(0, 0, 0, 0.42);
}

.dash-step.pending .dash-step-sub {
  color: rgba(0, 0, 0, 0.3);
}

.dash-step-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.dash-step-status.done {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.dash-step-status.building {
  background: rgba(187, 0, 0, 0.1);
  color: #BB0000;
}

.dash-step-status.pending {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .dash-steps { padding: 8px 16px 18px; }
  .dash-step { padding: 10px 0; gap: 12px; }
  .dash-step-name { font-size: 0.85rem; }
  .dash-step-sub { font-size: 0.68rem; }
  .dash-step-status { padding: 3px 8px; font-size: 0.62rem; }
  .float-card { display: none; }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

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

.proof-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== SECTION SHARED ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 120px 0;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  border: 1px solid rgba(187, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 52px;
  flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(187, 0, 0, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
  padding: 120px 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.toggle-label.active {
  color: var(--text-primary);
}

.toggle-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: 100px;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--accent);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(187, 0, 0, 0.08) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 60px rgba(187, 0, 0, 0.25);
}

.pricing-card.featured {
  border-color: var(--border);
  background: var(--bg-card);
  box-shadow: none;
}

.pricing-card.featured:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(187, 0, 0, 0.08) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 60px rgba(187, 0, 0, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 32px;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 8px;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: all var(--transition);
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
}

.pricing-after-trial {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== FAQ ===== */
.faq {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent-light);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--accent-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .step-connector {
    display: none;
  }

  .step-card {
    flex: 0 0 calc(50% - 12px);
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    max-width: 100%;
  }

  .hero-mockup {
    padding: 10px 0;
  }

  .float-card {
    display: none;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dash-idea {
    font-size: 0.8rem;
  }

  .popup-card {
    padding: 28px 20px;
    margin: 10px;
  }

  .popup-title {
    font-size: 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right var(--transition-slow);
  }

  .nav-links.active {
    right: 0;
  }

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

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    margin-top: 16px;
    width: 100%;
    text-align: center;
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 130px 0 60px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .proof-grid {
    flex-direction: column;
    gap: 24px;
  }

  .proof-divider {
    width: 48px;
    height: 1px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    flex: 0 0 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.875rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .pricing-card {
    padding: 28px 24px;
  }

}

/* ===== EMAIL CAPTURE POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-card {
  position: relative;
  background: var(--card-bg, #FFFFFF);
  border: 1px solid rgba(187, 0, 0, 0.2);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.5);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.popup-close:hover {
  color: #1A1A1A;
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 12px;
  line-height: 1.3;
}

.popup-subtitle {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: #1A1A1A;
  /* Stay at 16px to avoid iOS auto-zoom on focus. */
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.popup-input:focus {
  border-color: #BB0000;
}

.popup-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.popup-note {
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  margin-top: 14px;
}

/* ===== FOUNDER EXPLAINER VIDEO ===== */
.founder-explainer {
  padding: 120px 0;
  background: var(--bg-primary);
}

.explainer-frame {
  max-width: 380px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(187, 0, 0, 0.08), 0 0 0 1px rgba(187, 0, 0, 0.04);
  background: #000;
  aspect-ratio: 9 / 16;
  position: relative;
}

/* Persistent sound toggle. Two modes:
   - is-muted: prominent pill at bottom-center reading "Tap for sound"
   - is-unmuted: small icon-only chip in bottom-right corner, click to re-mute */
.sound-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  background: rgba(20, 20, 20, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.sound-pill:hover { background: rgba(20, 20, 20, 0.92); }

.sound-pill .icon-muted,
.sound-pill .icon-unmuted { display: none; }

/* Muted: big centered pill with label */
.sound-pill.is-muted {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
}
.sound-pill.is-muted .icon-muted { display: block; }
.sound-pill.is-muted .sound-pill-label { display: inline; }

/* Unmuted: small corner chip, icon only */
.sound-pill.is-unmuted {
  bottom: 12px;
  right: 12px;
  padding: 8px;
  font-size: 0;
}
.sound-pill.is-unmuted .icon-unmuted { display: block; }
.sound-pill.is-unmuted .sound-pill-label { display: none; }

.explainer-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.caption-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 64px;
  z-index: 1;
  text-align: center;
  pointer-events: none;
}
.caption-overlay:empty { display: none; }
.caption-overlay span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  max-width: 92%;
}

@media (max-width: 768px) {
  .founder-explainer { padding: 80px 0; }
  .explainer-frame { max-width: 320px; border-radius: 24px; }
  .caption-overlay { bottom: 58px; left: 8px; right: 8px; }
  .caption-overlay span { font-size: 13px; padding: 5px 10px; }
}

/* ===== PRODUCT DEMO LOOP (standalone section between Features and Pricing) ===== */
.product-demo {
  padding: 96px 0;
  background: var(--bg-primary);
}

.demo-frame {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(187, 0, 0, 0.08), 0 0 0 1px rgba(187, 0, 0, 0.04);
  background: #fff;
  aspect-ratio: 16 / 9;
  position: relative;
}

/* ===== Animated demo (no video file) ===== */
/* 18-second cycle. Phase 1 (0-16%): typing the idea. Phase 2 (16%-66%):
   results stream in with progress bar. Phase 3 (66%-100%): "complete"
   badge holds, then loops. */

.demo-window { width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; }

.demo-window-bar {
  background: #f4f4f4;
  border-bottom: 1px solid #e5e5e5;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.window-dot { width: 11px; height: 11px; border-radius: 50%; background: #d0d0d0; flex-shrink: 0; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.window-url {
  margin-left: 14px;
  font-size: 11px;
  color: #888;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.02em;
}

.demo-stage {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #FDF6F6 0%, #FAFAFA 30%);
  padding: 28px 36px;
  overflow: hidden;
}

/* Phase 1: input block */
.demo-input-block {
  position: absolute;
  inset: 28px 36px auto 36px;
  animation: demo-input 18s infinite;
}

@keyframes demo-input {
  0%, 12% { opacity: 1; transform: translateY(0); }
  16%, 100% { opacity: 0; transform: translateY(-12px); }
}

.demo-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.demo-input {
  background: #fff;
  border: 1.5px solid #BB0000;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px rgba(187, 0, 0, 0.08);
  display: flex;
  align-items: center;
  min-height: 44px;
}

.demo-typed {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  animation: demo-type 18s steps(31) infinite;
  font-weight: 500;
}

.demo-typed::before { content: "Mobile spa truck for busy moms"; }

@keyframes demo-type {
  0% { width: 0; }
  12%, 100% { width: 31ch; }
}

.demo-caret {
  display: inline-block;
  width: 2px;
  height: 17px;
  background: #BB0000;
  margin-left: 2px;
  vertical-align: middle;
  animation: demo-caret-blink 0.6s steps(2) infinite, demo-caret-fade 18s infinite;
}

@keyframes demo-caret-blink { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes demo-caret-fade  { 0%, 12% { opacity: 1; } 13%, 100% { opacity: 0; } }

.demo-submit {
  background: #BB0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: default;
  animation: demo-submit-anim 18s infinite;
  pointer-events: none;
}

@keyframes demo-submit-anim {
  0%, 11% { transform: scale(1); opacity: 1; }
  12% { transform: scale(0.94); opacity: 1; }
  13% { transform: scale(1); opacity: 1; }
  16%, 100% { opacity: 0; }
}

/* Phase 2: results */
.demo-results {
  position: absolute;
  inset: 28px 36px;
  opacity: 0;
  animation: demo-results 18s infinite;
}

@keyframes demo-results {
  0%, 16% { opacity: 0; transform: translateY(8px); }
  20%, 100% { opacity: 1; transform: none; }
}

.demo-progress { margin-bottom: 12px; }

.demo-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.demo-progress-label {
  font-size: 10px;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-progress-count {
  font-size: 12px;
  color: #1a1a1a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo-progress-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.demo-progress-fill {
  height: 100%;
  width: 0;
  background: #BB0000;
  border-radius: 999px;
  animation: demo-progress 18s infinite;
}

@keyframes demo-progress {
  0%, 22% { width: 0; }
  62% { width: 100%; }
  100% { width: 100%; }
}

/* Counter ticks 0 → 9. We stack 10 numbers in a 1.2em-tall window and slide. */
.demo-counter {
  display: inline-block;
  width: 0.7em;
  height: 1.2em;
  overflow: hidden;
  vertical-align: top;
  position: relative;
}

.demo-counter::before {
  content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
  white-space: pre;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1.2;
  animation: demo-count 18s infinite;
}

@keyframes demo-count {
  0%, 22%   { transform: translateY(0); }
  27%       { transform: translateY(-1.2em); }
  32%       { transform: translateY(-2.4em); }
  37%       { transform: translateY(-3.6em); }
  42%       { transform: translateY(-4.8em); }
  47%       { transform: translateY(-6em); }
  52%       { transform: translateY(-7.2em); }
  57%       { transform: translateY(-8.4em); }
  62%, 100% { transform: translateY(-10.8em); }
}

/* List of deliverables */
.demo-list { list-style: none; margin: 0; padding: 0; }

.demo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(4px);
}

.demo-name { font-weight: 600; flex: 1; }
.demo-meta { font-size: 11px; color: #888; }

/* Each item picks up its own keyframe so they cascade in cleanly */
.demo-item:nth-child(1) { animation: demo-in-1 18s infinite; }
.demo-item:nth-child(2) { animation: demo-in-2 18s infinite; }
.demo-item:nth-child(3) { animation: demo-in-3 18s infinite; }
.demo-item:nth-child(4) { animation: demo-in-4 18s infinite; }
.demo-item:nth-child(5) { animation: demo-in-5 18s infinite; }
.demo-item:nth-child(6) { animation: demo-in-6 18s infinite; }
.demo-item:nth-child(7) { animation: demo-in-7 18s infinite; }
.demo-item:nth-child(8) { animation: demo-in-8 18s infinite; }
.demo-item:nth-child(9) { animation: demo-in-9 18s infinite; }

@keyframes demo-in-1 { 0%,22% { opacity:0; transform:translateY(4px);} 25%,100% { opacity:1; transform:none;} }
@keyframes demo-in-2 { 0%,27% { opacity:0; transform:translateY(4px);} 30%,100% { opacity:1; transform:none;} }
@keyframes demo-in-3 { 0%,32% { opacity:0; transform:translateY(4px);} 35%,100% { opacity:1; transform:none;} }
@keyframes demo-in-4 { 0%,37% { opacity:0; transform:translateY(4px);} 40%,100% { opacity:1; transform:none;} }
@keyframes demo-in-5 { 0%,42% { opacity:0; transform:translateY(4px);} 45%,100% { opacity:1; transform:none;} }
@keyframes demo-in-6 { 0%,47% { opacity:0; transform:translateY(4px);} 50%,100% { opacity:1; transform:none;} }
@keyframes demo-in-7 { 0%,52% { opacity:0; transform:translateY(4px);} 55%,100% { opacity:1; transform:none;} }
@keyframes demo-in-8 { 0%,57% { opacity:0; transform:translateY(4px);} 60%,100% { opacity:1; transform:none;} }
@keyframes demo-in-9 { 0%,62% { opacity:0; transform:translateY(4px);} 65%,100% { opacity:1; transform:none;} }

/* Green checkmark, drawn with two SVG-ish lines via box-shadow trick.
   Simpler: a green circle with a white tick using a CSS mask. */
.demo-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  position: relative;
}

.demo-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Complete badge sits at the bottom of the results column */
.demo-results {
  display: flex;
  flex-direction: column;
}

.demo-list { flex: 0 1 auto; }

.demo-complete {
  background: #10b981;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 14px auto 0;
  opacity: 0;
  transform: translateY(8px);
  animation: demo-complete-in 18s infinite;
}

.demo-complete-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.demo-complete-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 3px;
  height: 5px;
  border: solid #10b981;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes demo-complete-in {
  0%, 66% { opacity: 0; transform: translateY(8px); }
  70%, 100% { opacity: 1; transform: none; }
}

/* Mobile: shrink padding, hide meta column, scale font */
@media (max-width: 768px) {
  .product-demo { padding: 64px 0; }
  .demo-frame { border-radius: var(--radius-md); }
  .demo-stage { padding: 20px 22px; }
  .demo-input-block { inset: 20px 22px auto 22px; }
  .demo-results { inset: 20px 22px; }
  .demo-typed::before { content: "Mobile spa truck"; }
  @keyframes demo-type { 0% { width: 0; } 12%, 100% { width: 17ch; } }
  .demo-meta { display: none; }
  .demo-item { font-size: 12px; padding: 5px 0; }
  .demo-name { font-size: 12px; }
}

@media (max-width: 480px) {
  .demo-stage { padding: 16px; }
  .demo-input-block { inset: 16px; }
  .demo-results { inset: 16px; }
  .demo-typed::before { content: "Mobile spa"; }
  @keyframes demo-type { 0% { width: 0; } 12%, 100% { width: 11ch; } }
  .demo-input { font-size: 13px; padding: 10px 12px; }
  .demo-list { max-height: 240px; }
  .demo-item { font-size: 11.5px; padding: 4px 0; }
}

/* ===== ACCESSIBILITY: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Hide the rocket entirely for motion-sensitive users */
  .rkt-wrap { display: none !important; }

  /* Stop pulsing dots */
  .badge-dot,
  .dash-pulse,
  .float-card { animation: none !important; }

  /* Animated demo: freeze on the "complete" state for motion-sensitive users.
     They still see the visual outcome (full progress bar + check marks) but
     no looping motion. */
  .demo-input-block,
  .demo-submit,
  .demo-typed,
  .demo-caret,
  .demo-progress-fill,
  .demo-counter::before,
  .demo-item,
  .demo-complete {
    animation: none !important;
  }
  .demo-input-block { display: none; }
  .demo-progress-fill { width: 100%; }
  .demo-counter::before { transform: translateY(-10.8em); }
  .demo-item { opacity: 1; transform: none; }
  .demo-complete { opacity: 1; transform: none; }
}
