/* ============================================================
   TARS — Design System & Styles
   Tools for Adaptive Relationship Support
   Individual Coaching & Relationship Mediation
   Dark Mode · Calm Tech · Premium Aesthetic
   ============================================================ */

/* ---------- Google Fonts ---------- */
/* Inter = UI/body · Source Serif 4 = calm display headlines (pairs cleanly with Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&family=Source+Serif+4:opsz,wght@8..60,600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;

  /* Backgrounds — warm cream stack */
  --bg-primary: #F4F1E8;
  --bg-secondary: #FBF9F2;
  --bg-tertiary: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-hover: rgba(0, 0, 0, 0.05);
  --bg-glass-border: rgba(0, 0, 0, 0.08);

  /* Text — deep warm charcoal palette */
  --text-primary: #232319;
  --text-secondary: #3A3A30;
  --text-tertiary: #5E5E54;
  --text-accent: #4E6E9E;           /* Deepened dusty blue — legible as link/insight text on cream */

  /* Accents — calm deepened brand colors */
  --accent-primary: #54926D;        /* Sage — main brand / primary buttons (deepened for white-text contrast) */
  --accent-primary-hover: #437B5C;  /* Sage hover / pressed */
  --accent-glow: #4E6E9E;           /* Dusty blue — Oracle / AI insight */
  --accent-agent: #54926D;          /* Sage — agent orb ambient glow */
  --accent-sage: #54926D;
  --accent-sage-glow: rgba(84, 146, 109, 0.10);
  --accent-dusty-blue: #4E6E9E;
  --accent-dusty-blue-glow: rgba(78, 110, 158, 0.10);
  --accent-clay: #B07B3E;
  --accent-clay-glow: rgba(176, 123, 62, 0.10);

  /* Problem card specific accents (formerly warm/teal) */
  --accent-warm: #B07B3E;
  --accent-warm-glow: rgba(176, 123, 62, 0.10);
  --accent-teal: #4E6E9E;
  --accent-teal-glow: rgba(78, 110, 158, 0.10);

  /* Person colours */
  --accent-person-a: #4E79A8;      /* Deep dusty blue — Person A / user (aligned with voice UI) */
  --accent-person-b: #B07B3E;      /* Warm clay — Person B / partner */

  /* Status colours */
  --color-success: #2E8B5E;
  --color-error: #BE4B3E;          /* Calmer terracotta — fits the muted warm scheme */
  --color-warning: #CF961E;        /* Brighter gold-amber — separates clearly from clay */

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #54926D 0%, #4E6E9E 50%, #B07B3E 100%);
  --gradient-text: linear-gradient(135deg, #54926D 0%, #4E6E9E 60%, #B07B3E 100%);
  --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.01) 100%);
  /* Deeper sage for white-label CTAs (stronger contrast on cream) */
  --gradient-cta: linear-gradient(135deg, #3F7A58 0%, #2F5F45 100%);
  --gradient-cta-hover: linear-gradient(135deg, #4A8B66 0%, #3F7A58 100%);
  --cta-text: #FFFFFF;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows — softened for light mode */
  --shadow-card: 0 4px 24px rgba(42, 42, 34, 0.08);
  --shadow-glow: 0 0 60px rgba(84, 146, 109, 0.08);
  --shadow-glow-dusty-blue: 0 0 60px rgba(78, 110, 158, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index */
  --z-nav: 1000;
  --z-overlay: 900;

  /* Fixed frosted nav — keep cinematic framing clear of it */
  --nav-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Display serif — big emotional headlines only; UI stays Inter */
.hero-title,
.section-title,
.stakes-title,
.final-cta-title,
.screenshot-title,
.moment-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--accent-glow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-label svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

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

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

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

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1.075rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--cta-text);
  box-shadow:
    0 4px 18px rgba(47, 95, 69, 0.38),
    0 0 0 1px rgba(47, 95, 69, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-cta-hover);
  color: var(--cta-text);
  box-shadow:
    0 8px 28px rgba(47, 95, 69, 0.48),
    0 0 0 1px rgba(63, 122, 88, 0.45);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-sage);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
  border: 1px solid rgba(42, 42, 34, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(42, 42, 34, 0.05);
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: rgba(42, 42, 34, 0.28);
  box-shadow: 0 4px 16px rgba(42, 42, 34, 0.08);
  transform: translateY(-2px);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--accent-dusty-blue);
  outline-offset: 3px;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 14px 0;
  /* Readable over the cinematic banner from the first paint — not nearly transparent */
  background: rgba(251, 249, 242, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(42, 42, 34, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition: background var(--transition-base),
              padding var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(251, 249, 242, 0.92);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(42, 42, 34, 0.12);
  box-shadow: 0 4px 24px rgba(42, 42, 34, 0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.425rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(84, 146, 109, 0.3);
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

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

.nav-link {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-sage);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.975rem;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

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

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 249, 242, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

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

.nav-mobile a {
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.nav-mobile a:hover {
  color: var(--accent-primary);
}

/* ============================================================
   VIDEO BANNER
   ============================================================ */
.video-banner {
  position: relative;
  width: 100%;
  /* Start below the fixed opaque nav so the subject isn't clipped by it */
  margin-top: var(--nav-height);
  height: 52vh;
  min-height: 280px;
  max-height: 560px;
  overflow: hidden;
  background: var(--bg-primary);
  /* Prevent any gap caused by inline / default sizing of child video */
  display: block;
  line-height: 0;
}

/*
  Robust cover technique:
  - Absolutely positioned and centred with translate trick
  - min-width/min-height 100% ensures it always fills the container
    even before video metadata (dimensions) have loaded,
    which is what caused the partial-fill flash.
  - width/height auto preserves the video's natural aspect ratio
    so object-fit: cover can scale it correctly.
  - object-position biased slightly downward so the focal subject
    sits lower in the frame (clears the nav zone comfortably).
*/
.video-banner-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  /* Lower framing: keep the important mid-subject below the nav band */
  object-position: center 62%;
  display: block;
  /* Poster paints immediately; avoid flash before first frame */
  background: var(--bg-primary) center / cover no-repeat;
}

/* Reduced motion: treat as a static poster (video paused in JS) */
.video-banner.is-still .video-banner-video {
  /* Keep poster visible if the browser shows first frame of paused video */
  opacity: 1;
}

/* Subtle dark overlay to keep brand colours readable */
.video-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 232, 0.38);
  pointer-events: none;
}

/* Gradient fade at the bottom blending into the hero/page */
.video-banner-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  /* No longer needs 100vh — the video banner above already creates visual
     space. Using auto height removes the large black gap between the banner
     and the headline content. */
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  /* Clip ambient orbs only — never create a nested scroll container.
     (overflow-x:hidden + overflow-y:visible computes to overflow-y:auto
      and was causing the right-edge scrollbar in this section.) */
  overflow: hidden;
  padding-top: 48px;
  padding-bottom: 80px;
}

/* Two-column hero: copy + real product phone.
   Phone lives fully inside the hero — no negative-margin overlap with the
   cinematic banner above (that caused the product video to "cut into" it). */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 48px 56px;
  align-items: center;
  width: 100%;
}

.hero-product {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.9s ease 0.25s forwards;
  opacity: 0;
}

.hero-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  /* Soft glow is painted behind the frame; clip only if needed at edges */
  isolation: isolate;
}

.hero-phone-glow {
  position: absolute;
  /* Fully inside the phone column — no negative insets that spill width */
  top: 8%;
  left: 0;
  right: 0;
  bottom: 12%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(84, 146, 109, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 70%, rgba(78, 110, 158, 0.14) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

/* Device chrome — recording already includes status bar / Dynamic Island,
   so we only add a thin bezel and deep shadow (no second notch). */
.hero-phone-frame {
  position: relative;
  z-index: 1;
  width: min(260px, 100%);
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a24 0%, #14150f 45%, #1c1c18 100%);
  box-shadow:
    0 0 0 1px rgba(42, 42, 34, 0.35),
    0 2px 4px rgba(42, 42, 34, 0.08),
    0 24px 48px rgba(42, 42, 34, 0.18),
    0 40px 90px rgba(78, 110, 158, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-phone-frame:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(42, 42, 34, 0.4),
    0 4px 8px rgba(42, 42, 34, 0.1),
    0 32px 64px rgba(42, 42, 34, 0.22),
    0 48px 100px rgba(78, 110, 158, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #F4F1E8;
  aspect-ratio: 780 / 1696;
  line-height: 0;
}

.hero-phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Avoid the default video controls flash on some mobile browsers */
  pointer-events: none;
}

/* Caption + replay sit fully outside the screen — nothing overlays the app UI */
.hero-phone-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-phone-caption {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero-phone-restart {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-glass-border);
  box-shadow: 0 2px 10px rgba(42, 42, 34, 0.06);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.hero-phone-restart svg {
  width: 16px;
  height: 16px;
  display: block;
}

.hero-phone-restart:hover {
  background: #fff;
  color: var(--accent-primary);
  border-color: rgba(84, 146, 109, 0.35);
  box-shadow: 0 4px 14px rgba(84, 146, 109, 0.15);
  transform: translateY(-1px);
}

.hero-phone-restart:active {
  transform: scale(0.94);
}

.hero-phone-restart:focus-visible {
  outline: 2px solid var(--accent-sage);
  outline-offset: 3px;
}

/* Spin the arrow briefly after a restart click */
.hero-phone-restart.is-spinning svg {
  animation: hero-restart-spin 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hero-restart-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone-restart.is-spinning svg {
    animation: none;
  }
}

/* Ambient gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(84, 146, 109, 0.12);   /* Sage — primary brand */
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(176, 123, 62, 0.08);  /* Clay — warm accent */
  bottom: -200px;
  left: -150px;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(78, 110, 158, 0.08);  /* Dusty blue — Oracle/insight */
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.03); }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 42, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 42, 34, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.945rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-sage);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(84, 146, 109, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(84, 146, 109, 0); }
}

.hero-title {
  /* Mobile floor stays; desktop caps at ~3.8rem so the serif doesn’t dominate */
  font-size: clamp(2.8rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 44px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

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

/* Trust chips — compact proof points under hero CTAs */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  animation: fadeInUp 0.8s ease 0.35s forwards;
  opacity: 0;
  max-width: 560px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 42, 34, 0.1);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 4px rgba(42, 42, 34, 0.04);
  white-space: nowrap;
}

.trust-chip svg {
  width: 14px;
  height: 14px;
  color: var(--accent-sage);
  flex-shrink: 0;
}

/* Human warmth strip under hero CTAs */
.hero-warmth {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-glass-border);
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
  max-width: 520px;
}

.hero-avatar-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 8px rgba(42, 42, 34, 0.12);
  margin-left: -10px;
  background: var(--bg-secondary);
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-avatar--guide {
  box-shadow:
    0 0 0 2px rgba(84, 146, 109, 0.35),
    0 2px 8px rgba(42, 42, 34, 0.12);
}

.hero-warmth-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.hero-warmth-text strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.problem-card {
  padding: 36px 32px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.problem-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(42, 42, 34, 0.12);
  transform: translateY(-4px);
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card-icon svg {
  width: 24px;
  height: 24px;
}

.problem-card-icon.external {
  background: var(--accent-sage-glow);
  color: var(--accent-sage);
}

.problem-card-icon.internal {
  background: var(--accent-warm-glow);
  color: var(--accent-warm);
}

.problem-card-icon.philosophical {
  background: var(--accent-teal-glow);
  color: var(--accent-teal);
}

.problem-card-type {
  font-size: 0.845rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.problem-card-type.external { color: var(--accent-sage); }
.problem-card-type.internal { color: var(--accent-warm); }
.problem-card-type.philosophical { color: var(--accent-teal); }

.problem-card-title {
  font-size: 1.325rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.problem-card-text {
  font-size: 1.045rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   MOMENTS — human warmth band
   ============================================================ */
.moments {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--bg-glass-border);
}

.moments-header {
  margin-bottom: 48px;
}

.moments-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.moments-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.moment-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.moment-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(42, 42, 34, 0.1),
    0 0 0 1px rgba(42, 42, 34, 0.06);
}

.moment-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
}

.moment-card--solo .moment-media {
  aspect-ratio: 4 / 3;
}

.moment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.moment-card:hover .moment-media img {
  transform: scale(1.03);
}

.moment-caption {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.moment-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary-hover);
  background: var(--accent-sage-glow);
  border: 1px solid rgba(84, 146, 109, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.moment-card--solo .moment-tag {
  color: var(--accent-dusty-blue);
  background: var(--accent-dusty-blue-glow);
  border-color: rgba(78, 110, 158, 0.25);
}

.moment-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.moment-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.moments-quote {
  margin: 48px auto 0;
  max-width: 640px;
  text-align: center;
  padding: 0 16px;
  border: none;
}

.moments-quote p {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.moments-quote p::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin: 0 auto 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-dusty-blue));
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .moment-card:hover,
  .moment-card:hover .moment-media img {
    transform: none;
  }
}

/* ============================================================
   FEATURES (GUIDE) SECTION
   ============================================================ */
.features {
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

/* ---------- Interactive feature explorer ---------- */
/* Stage and tab column stretch to equal height; tabs flex-grow so the
   last tab's floor always aligns with the stage floor */
.explorer {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

/* All panels occupy the same grid cell, so the stage keeps one constant
   height (the tallest panel's) — tabs never resize on topic change */
.explorer-stage {
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 36px;
  display: grid;
  min-height: 500px;
  overflow: hidden;
}

.stage-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
}

.stage-panel.active {
  visibility: visible;
  opacity: 1;
  animation: stage-in 0.4s ease;
}

@keyframes stage-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.stage-vignette {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
}

/* Soft device chrome so vignettes read as in-app UI */
.stage-vignette--device {
  border-radius: 22px;
  border: 1.5px solid rgba(42, 42, 34, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 12px 32px rgba(42, 42, 34, 0.08);
  padding: 22px 20px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 28%),
    var(--bg-secondary);
}

.stage-device-bezel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: rgba(42, 42, 34, 0.12);
  pointer-events: none;
}

.stage-vignette--device .oracle-preview-header,
.stage-vignette--device .v-listen {
  padding-top: 6px;
}

/* Compact variants of the Live Session chat so the Oracle panel matches
   the height of the other four vignettes */
.stage-vignette .oracle-preview-header {
  margin-bottom: 0;
  padding-bottom: 10px;
}

.stage-vignette .oracle-msg {
  margin-bottom: 0;
  padding: 9px 13px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.stage-vignette .oracle-msg-name {
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.stage-panel .feature-text {
  margin-bottom: 0;
}

/* Tabs */
.explorer-tabs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explorer-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  font-family: inherit;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.explorer-tab:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(42, 42, 34, 0.12);
}

.explorer-tab.active {
  background: var(--bg-tertiary);
  border-color: rgba(84, 146, 109, 0.45);
  box-shadow: var(--shadow-card);
}

.tab-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tab-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tab-icon svg {
  width: 18px;
  height: 18px;
}

.tab-icon.sage { background: var(--accent-sage-glow); color: var(--accent-sage); }
.tab-icon.blue { background: var(--accent-dusty-blue-glow); color: var(--accent-dusty-blue); }
.tab-icon.clay { background: var(--accent-clay-glow); color: var(--accent-clay); }

.tab-title {
  font-size: 1.005rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tab-teaser {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 5px;
  display: none;
}

.explorer-tab.active .tab-teaser {
  display: block;
}

.tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent-sage);
  opacity: 0;
}

/* Fills only while auto-advance is armed (.auto set from main.js) */
.explorer.auto .explorer-tab.active .tab-progress {
  opacity: 0.7;
  animation: tab-progress-fill 7s linear forwards;
}

@keyframes tab-progress-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* Vignette: live transcription */
.v-listen {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.v-listen-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-sage);
}

.v-listen-live {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-sage);
  background: var(--accent-sage-glow);
  border: 1px solid rgba(84, 146, 109, 0.28);
  border-radius: var(--radius-full);
  padding: 3px 9px;
}

/* Focus ring for keyboard tab navigation in the explorer */
.explorer-tab:focus {
  outline: none;
}

.explorer-tab:focus-visible {
  outline: 2px solid var(--accent-sage);
  outline-offset: 2px;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.eq span {
  width: 3.5px;
  border-radius: 2px;
  background: var(--accent-sage);
  animation: eq-bounce 1.1s ease-in-out infinite;
}

.eq span:nth-child(1) { height: 35%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.eq span:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.eq span:nth-child(4) { height: 95%; animation-delay: 0.45s; }
.eq span:nth-child(5) { height: 45%; animation-delay: 0.6s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.v-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  opacity: 0;
  animation: v-line-in 0.5s ease forwards;
}

.stage-panel.active .v-line:nth-of-type(2) { animation-delay: 0.5s; }
.stage-panel.active .v-line:nth-of-type(3) { animation-delay: 1.4s; }
.stage-panel.active .v-line:nth-of-type(4) { animation-delay: 2.3s; }

@keyframes v-line-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.v-chip {
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 7px;
  color: #fff;
  flex-shrink: 0;
}

.v-line.la .v-chip { background: var(--accent-person-a); }
.v-line.lb .v-chip { background: var(--accent-person-b); }

.v-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(42, 42, 34, 0.08);
}

/* Vignette: session modes */
.v-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.v-mode {
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--bg-tertiary);
}

.v-mode.couples {
  border-color: rgba(84, 146, 109, 0.45);
  box-shadow: 0 0 0 3px rgba(84, 146, 109, 0.08);
}

.v-mode h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.v-mode p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.v-mode-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-sage);
  background: var(--accent-sage-glow);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-bottom: 10px;
}

.v-mode.solo .v-mode-pill {
  color: var(--accent-dusty-blue);
  background: var(--accent-dusty-blue-glow);
}

/* Vignette: on-demand insight (working demo button) */
.v-insight-btn {
  align-self: center;
}

.v-insight {
  background: rgba(84, 146, 109, 0.08);
  border: 1px solid rgba(84, 146, 109, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.45s ease;
  min-height: 72px;
}

.v-insight.show {
  opacity: 1;
  transform: none;
}

.v-insight-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-sage);
  margin-bottom: 4px;
}

.v-insight-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Vignette: session report */
.v-report {
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.v-report-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.v-report-head h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.v-report-score {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-sage);
}

.v-report-score small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.v-report-spark {
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
}

.v-report-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 6px;
}

.v-report-check svg {
  width: 15px;
  height: 15px;
  color: var(--accent-sage);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .stage-panel.active { animation: none; }
  .explorer-tab.active .tab-progress { animation: none; opacity: 0; }
  .eq span { animation: none; }
  .v-line,
  .stage-panel.active .v-line { animation: none; opacity: 1; }
  .v-insight { transition: none; }
}

.feature-title {
  font-size: 1.425rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-text {
  font-size: 1.075rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Oracle live-session mock (used inside the explorer's first vignette) */
.oracle-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-glass-border);
}

.oracle-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-glow);  /* Purple — Oracle */
  animation: pulse-dot 2s ease-in-out infinite;
}

.oracle-preview-label {
  font-size: 0.905rem;
  font-weight: 600;
  color: var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oracle-preview-time {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: none;
  letter-spacing: 0;
}

.oracle-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 1.005rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.oracle-msg:last-child {
  margin-bottom: 0;
}

.oracle-msg.speaker-a {
  background: rgba(78, 121, 168, 0.06);   /* Light blue tint for Person A */
  border-left: 3px solid var(--accent-person-a);
  color: var(--text-secondary);
}

.oracle-msg.speaker-b {
  background: rgba(176, 123, 62, 0.06);  /* Clay tint for Person B */
  border-left: 3px solid var(--accent-person-b);
  color: var(--text-secondary);
}

.oracle-msg.ai {
  background: rgba(78, 110, 158, 0.06); /* Dusty blue tint for Oracle */
  border-left: 3px solid var(--accent-dusty-blue);
  color: var(--text-secondary);
}

.oracle-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.oracle-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(42, 42, 34, 0.08);
}

.oracle-msg-name {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.oracle-msg-time {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.oracle-msg.speaker-a .oracle-msg-name { color: var(--accent-person-a); }
.oracle-msg.speaker-b .oracle-msg-name { color: var(--accent-person-b); }
.oracle-msg.ai .oracle-msg-name { color: var(--accent-glow); }

.stage-vignette .oracle-msg-meta {
  margin-bottom: 4px;
}

.stage-vignette .oracle-avatar {
  width: 24px;
  height: 24px;
}

/* ============================================================
   INDIVIDUAL GROWTH SECTION
   ============================================================ */
.individual {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.individual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.6;
}

.individual-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(78, 110, 158, 0.08);
  top: -100px;
  left: -150px;
}

.individual-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(84, 146, 109, 0.06);
  bottom: -80px;
  right: -100px;
}

.individual-header {
  text-align: center;
  margin-bottom: 48px;
}

.individual-header .section-subtitle {
  margin: 0 auto;
  max-width: 680px;
}

/* ============================================================
   MODES — Solo vs Couples (working toggle + swapping panels)
   ============================================================ */
.mode-panels {
  max-width: 1000px;
  margin: 0 auto;
}

.mode-panel {
  display: none;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}

.mode-panel.active {
  display: grid;
  animation: modeFadeIn 0.45s ease;
}

@keyframes modeFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mode-chip {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(84, 146, 109, 0.12);
  border: 1px solid rgba(84, 146, 109, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--accent-primary-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

@media (max-width: 1024px) {
  .mode-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mode-panel .screenshot-phone {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-panel.active {
    animation: none;
  }
}

/* Session mode tab switcher */
.session-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 64px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.session-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 1.005rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.session-tab svg {
  width: 16px;
  height: 16px;
}

.session-tab.active {
  background: var(--gradient-cta);
  color: var(--cta-text);
  box-shadow: 0 2px 12px rgba(47, 95, 69, 0.35);
}

.session-tab:hover:not(.active) {
  color: var(--text-secondary);
  background: var(--bg-glass-hover);
}

/* Phone frame (modes section + product shelf) */
.screenshot-phone {
  display: flex;
  justify-content: center;
}

.screenshot-phone-frame {
  position: relative;
  width: 240px;
  border-radius: 40px;
  overflow: hidden;
  border: 2px solid rgba(42, 42, 34, 0.15);
  box-shadow:
    0 0 0 1px rgba(42, 42, 34, 0.05),
    0 20px 60px rgba(42, 42, 34, 0.12),
    0 0 80px rgba(78, 110, 158, 0.08);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.screenshot-phone-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(42, 42, 34, 0.08),
    0 32px 80px rgba(42, 42, 34, 0.18),
    0 0 100px rgba(78, 110, 158, 0.12);
}

.screenshot-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Compact 3-up product shelf (Beyond the Session) */
.shot-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  align-items: start;
}

.shot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.shot-card-frame {
  width: 200px;
}

.shot-card-body {
  max-width: 280px;
}

.shot-card .screenshot-eyebrow {
  justify-content: center;
  margin-bottom: 8px;
}

.shot-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.shot-card-text {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Privacy differentiator — compact horizontal strip */
.privacy-strip {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px 48px;
  align-items: center;
  margin-top: 56px;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(84, 146, 109, 0.4);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(84, 146, 109, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(78, 110, 158, 0.08) 0%, transparent 60%),
    var(--bg-tertiary);
  box-shadow:
    0 0 0 1px rgba(84, 146, 109, 0.2),
    0 8px 36px rgba(84, 146, 109, 0.12);
}

.privacy-strip-phone {
  display: flex;
  justify-content: center;
}

.privacy-strip-phone .screenshot-phone-frame {
  width: 160px;
}

.privacy-strip-copy {
  min-width: 0;
}

.privacy-strip .screenshot-featured-badge {
  margin-bottom: 12px;
}

.privacy-strip .screenshot-eyebrow {
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.privacy-strip .screenshot-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 12px;
}

.privacy-strip .screenshot-text {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.privacy-strip-bullets {
  gap: 8px;
}

.privacy-strip-bullets li {
  font-size: 0.975rem;
}

.screenshot-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(84, 146, 109, 0.12);
  border: 1px solid rgba(84, 146, 109, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--accent-primary-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.screenshot-featured-badge svg {
  width: 13px;
  height: 13px;
}

.screenshot-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-glow);
  margin-bottom: 16px;
}

.screenshot-eyebrow svg {
  width: 14px;
  height: 14px;
}

.screenshot-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.screenshot-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.screenshot-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.screenshot-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screenshot-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.screenshot-bullets li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-sage);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Modes section still uses long-form copy next to a phone */
.mode-copy .screenshot-title {
  margin-bottom: 16px;
}

.mode-copy .screenshot-text {
  margin-bottom: 28px;
}

/* ============================================================
   HOW IT WORKS (PLAN) SECTION
   ============================================================ */
.how-it-works {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  position: relative;
}

/* Connecting line between steps */
.steps-container::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent-sage),
    var(--accent-dusty-blue),
    var(--accent-clay),
    var(--accent-dusty-blue)
  );
  opacity: 0.3;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.225rem;
  font-weight: 800;
  transition: all var(--transition-base);
}

.step:nth-child(1) .step-number {
  background: rgba(84, 146, 109, 0.12);
  color: var(--accent-sage);
  border: 2px solid rgba(84, 146, 109, 0.25);
}

.step:nth-child(2) .step-number {
  background: rgba(78, 110, 158, 0.12);
  color: var(--accent-dusty-blue);
  border: 2px solid rgba(78, 110, 158, 0.25);
}

.step:nth-child(3) .step-number {
  background: rgba(176, 123, 62, 0.12);
  color: var(--accent-clay);
  border: 2px solid rgba(176, 123, 62, 0.25);
}

.step:nth-child(4) .step-number {
  background: rgba(78, 110, 158, 0.12);
  color: var(--accent-dusty-blue);
  border: 2px solid rgba(78, 110, 158, 0.25);
}

.step-icon {
  width: 28px;
  height: 28px;
}

.step-title {
  font-size: 1.225rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-text {
  font-size: 1.005rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================================
   SUCCESS SECTION
   ============================================================ */
.success {
  position: relative;
  overflow: hidden;
}

.success-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(78, 110, 158, 0.07);
  filter: blur(100px);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.success-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}

.success-outcomes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.success-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.success-item:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(42, 42, 34, 0.12);
  transform: translateX(8px);
}

.success-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-sage-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-sage);
}

.success-item-icon svg {
  width: 20px;
  height: 20px;
}

.success-item-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.success-item-text {
  font-size: 1.005rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.success-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Two voices settling into one rhythm — speaker colours match the app's
   live-transcription UI (person A = dusty blue, person B = clay) */
.voices-visual {
  width: 100%;
  max-width: 440px;
}

.voices-legend text {
  font-size: 12px;
  font-weight: 600;
  fill: var(--text-secondary);
}

.voices-legend-dot-a {
  fill: var(--accent-person-a);
}

.voices-legend-dot-b {
  fill: var(--accent-person-b);
}

.voice-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.voice-line-a {
  stroke: var(--accent-person-a);
  stroke-dasharray: 515;
  stroke-dashoffset: 515;
}

.voice-line-b {
  stroke: var(--accent-person-b);
  opacity: 0.9;
  stroke-dasharray: 485;
  stroke-dashoffset: 485;
}

.success-visual.visible .voice-line-a {
  animation: voice-draw 2.6s ease-out forwards;
}

.success-visual.visible .voice-line-b {
  animation: voice-draw 2.6s ease-out 0.25s forwards;
}

.voices-merge-dot {
  fill: var(--accent-sage);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.success-visual.visible .voices-merge-dot {
  animation: voice-merge-pulse 2.4s ease-in-out 2.9s infinite;
}

.voices-caption {
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--text-tertiary);
}

.voices-caption-end {
  fill: var(--accent-sage);
  opacity: 0;
}

.success-visual.visible .voices-caption-end {
  animation: voice-fade-in 0.8s ease-out 2.6s forwards;
}

@keyframes voice-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes voice-merge-pulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.6); }
}

@keyframes voice-fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-line-a,
  .voice-line-b,
  .success-visual.visible .voice-line-a,
  .success-visual.visible .voice-line-b {
    animation: none;
    stroke-dashoffset: 0;
  }

  .voices-merge-dot,
  .success-visual.visible .voices-merge-dot {
    animation: none;
    opacity: 0.9;
  }

  .voices-caption-end,
  .success-visual.visible .voices-caption-end {
    animation: none;
    opacity: 1;
  }
}

/* ============================================================
   SAFETY SECTION
   ============================================================ */
.safety {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.safety-card {
  padding: 36px 32px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-slow);
}

.safety-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(42, 42, 34, 0.12);
  transform: translateY(-4px);
}

.safety-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.safety-card-icon svg {
  width: 24px;
  height: 24px;
}

.safety-card-icon.shield {
  background: rgba(78, 110, 158, 0.1);
  color: var(--accent-dusty-blue);
}

.safety-card-icon.globe {
  background: rgba(176, 123, 62, 0.1);
  color: var(--accent-clay);
}

.safety-card-icon.lock {
  background: rgba(84, 146, 109, 0.1);
  color: var(--accent-sage);
}

.safety-card-title {
  font-size: 1.275rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.safety-card-text {
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
  position: relative;
  overflow: hidden;
}

.pricing-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(84, 146, 109, 0.06);
  filter: blur(120px);
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.pricing-header {
  text-align: center;
  margin-bottom: 20px;
}

.pricing-header .section-subtitle {
  margin: 0 auto;
}

.pricing-philosophy {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  padding: 24px 32px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  font-size: 1.175rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
}

.pricing-philosophy strong {
  color: var(--accent-dusty-blue);
  font-style: normal;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 44px 36px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-slow);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card.featured {
  border-color: rgba(84, 146, 109, 0.4);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(84, 146, 109, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(176, 123, 62, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(236,234,224,0.04) 0%, rgba(236,234,224,0.01) 100%);
  box-shadow:
    0 0 0 1px rgba(84, 146, 109, 0.25),
    0 8px 48px rgba(84, 146, 109, 0.18),
    0 24px 80px rgba(176, 123, 62, 0.10),
    inset 0 1px 0 rgba(84, 146, 109, 0.2);
}

.pricing-tier {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 3.125rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 1.005rem;
  color: var(--text-tertiary);
}

/* ---------- App store badges ---------- */
/* Hero: compact "also available on" caption — deliberately smaller and
   quieter than the primary CTAs above it, so it informs without
   competing for the first tap. */
.store-caption-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

/* Under the product phone — readable store badges (not tiny captions) */
.store-caption-row--product {
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  animation-delay: 0.35s;
}

.store-caption-row--product .store-caption-link img {
  height: 40px;
  width: auto;
  display: block;
}

.store-caption-row--product .store-caption-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.store-caption-row--product .store-caption-link {
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.store-caption-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.store-caption-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.store-caption-link img {
  display: block;
  width: auto;
}

a.store-caption-link:hover {
  opacity: 0.8;
}

.store-caption-link.is-soon {
  opacity: 0.45;
  filter: grayscale(45%);
  cursor: default;
}

.store-caption-soon {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--bg-glass);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pricing-desc {
  font-size: 1.025rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

.pricing-divider {
  height: 1px;
  background: var(--bg-glass-border);
  margin-bottom: 28px;
}

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

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.025rem;
  color: var(--text-secondary);
}

.pricing-feature svg {
  width: 18px;
  height: 18px;
  color: var(--accent-sage);
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* btn-secondary carries a 1px border and btn-primary doesn't — equalize
   so both pricing CTAs render at identical height. */
.btn-primary.pricing-cta {
  border: 1px solid transparent;
}

/* ============================================================
   STAKES (FAILURE) SECTION — full-bleed dark band
   Breaks the cream monotony once before the final CTA.
   ============================================================ */
.stakes {
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Warm charcoal + deep sage — not pure black */
  background:
    radial-gradient(ellipse 80% 70% at 20% 20%, rgba(84, 146, 109, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 80%, rgba(78, 110, 158, 0.16) 0%, transparent 50%),
    linear-gradient(165deg, #1E241C 0%, #161A15 50%, #1A1F18 100%);
  border-top: none;
  border-bottom: none;
  color: rgba(251, 249, 242, 0.88);
}

.stakes::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 249, 242, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 249, 242, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

.stakes-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.stakes .section-label {
  background: rgba(251, 249, 242, 0.06);
  border-color: rgba(251, 249, 242, 0.14);
  color: #9BC4A8;
}

.stakes-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #FBF9F2;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.stakes-text {
  font-size: 1.175rem;
  color: rgba(251, 249, 242, 0.78);
  line-height: 1.8;
  margin-bottom: 24px;
}

.stakes-text:last-of-type {
  margin-bottom: 40px;
}

.stakes-highlight {
  color: #B8D4C2;
  font-weight: 600;
}

/* Primary CTA already has white text on sage — pop a little more on dark */
.stakes .btn-primary {
  box-shadow:
    0 4px 24px rgba(84, 146, 109, 0.45),
    0 0 0 1px rgba(155, 196, 168, 0.25);
}

.stakes .btn-primary:hover {
  box-shadow:
    0 8px 32px rgba(84, 146, 109, 0.55),
    0 0 0 1px rgba(155, 196, 168, 0.35);
}

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

.final-cta-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(84, 146, 109, 0.08) 0%, rgba(176, 123, 62, 0.06) 60%, transparent 100%);
  filter: blur(120px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

.final-cta-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
}

.final-cta-text {
  font-size: 1.225rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

#final-cta-button {
  font-size: 1.175rem;
  padding: 16px 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--bg-glass-border);
  background: var(--bg-secondary);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 40px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--bg-glass-border);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(84, 146, 109, 0.25);
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.footer-cta {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-store-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-store-link {
  display: inline-flex;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-store-link img {
  height: 40px;
  width: auto;
  display: block;
}

a.footer-store-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer-store-link.is-soon {
  opacity: 0.45;
  filter: grayscale(40%);
  cursor: default;
}

.footer-support {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.footer-support a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-support a:hover {
  color: var(--accent-primary);
  border-bottom-color: rgba(84, 146, 109, 0.4);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0;
}

.footer-copy--quiet {
  font-style: italic;
  opacity: 0.9;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Keep natural document order: copy + CTAs first, product phone after.
     (Previously order:-1 put the recording above the fold on mobile and
     left first-time visitors with only the cinematic banner + phone.) */
  .hero-content {
    max-width: 100%;
  }

  .hero-product {
    /* Slightly quieter secondary visual after the pitch */
    justify-self: center;
  }

  .hero-phone-frame {
    width: min(240px, 52vw);
    padding: 6px;
    border-radius: 36px;
  }

  .hero-phone-screen {
    border-radius: 30px;
  }

  /* Feature explorer becomes an accordion: the stage slots in directly
     beneath the active tab (order set from main.js via --stage-order) */
  .explorer {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .explorer-tabs {
    display: contents;
  }

  .explorer-tab {
    flex: none;
  }

  .explorer-tab:nth-of-type(1) { order: 1; }
  .explorer-tab:nth-of-type(2) { order: 3; }
  .explorer-tab:nth-of-type(3) { order: 5; }
  .explorer-tab:nth-of-type(4) { order: 7; }
  .explorer-tab:nth-of-type(5) { order: 9; }

  .explorer-stage {
    order: var(--stage-order, 2);
    min-height: 0;
    padding: 24px;
  }

  .success-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .success-visual {
    order: -1;
  }

  .shot-shelf {
    gap: 20px;
  }

  .shot-card-frame {
    width: min(170px, 100%);
  }

  .privacy-strip {
    grid-template-columns: 140px 1fr;
    gap: 28px 32px;
    padding: 28px 24px;
  }

  .privacy-strip-phone .screenshot-phone-frame {
    width: 130px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .problem-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-phone-frame {
    width: 200px;
  }

  .shot-shelf {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .shot-card-frame {
    width: 160px;
  }

  .privacy-strip {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .privacy-strip-phone .screenshot-phone-frame {
    width: 140px;
  }

  .privacy-strip .screenshot-eyebrow,
  .privacy-strip .screenshot-featured-badge {
    justify-content: center;
  }

  .privacy-strip-bullets li {
    justify-content: center;
  }

  .session-tabs {
    flex-wrap: wrap;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .steps-container::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .trust-chips {
    gap: 8px;
    margin-top: 22px;
  }

  .trust-chip {
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  .hero-warmth {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .moments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .moment-media,
  .moment-card--solo .moment-media {
    aspect-ratio: 16 / 10;
  }

  .moments-quote {
    margin-top: 36px;
  }

  /* Larger product demo, thin bezel — video nearly edge-to-edge */
  .hero-phone-frame {
    width: min(280px, 72vw);
    padding: 3px;
    border-radius: 28px;
  }

  .hero-phone-screen {
    border-radius: 25px;
  }

  /* Shorter banner on phones so headline/CTAs clear the fold faster */
  .video-banner {
    height: 32vh;
    min-height: 180px;
    max-height: 280px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .hero-layout {
    gap: 32px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .store-caption-row--product .store-caption-link img {
    height: 36px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-phone-frame {
    width: min(300px, 82vw);
    padding: 2.5px;
    border-radius: 26px;
  }

  .hero-phone-screen {
    border-radius: 23.5px;
  }

  .hero-phone-caption {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product {
    animation: none;
    opacity: 1;
  }

  .hero-phone-frame:hover {
    transform: none;
  }
}
