/* =============================================================================
   Resilio Health — Marketing Site
   Dark premium aesthetic. Inter font. Teal accent. Full-width sections.
   Inspired by WHOOP, Oura, Linear, Eight Sleep. No raw hex in HTML.
   ============================================================================= */

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary: #151718;
  --bg-surface: #1C1E20;
  --bg-elevated: #222527;

  /* Text */
  --text-primary: #E8E8E8;
  --text-secondary: #A0A0A0;
  --text-tertiary: #6B6B6B;

  /* Accent (teal — restrained, 5% rule) */
  --accent-deep: #0E857B;
  --accent-text: #3DBEB0;
  --accent-ghost: rgba(14, 133, 123, 0.04);
  --accent-surface: rgba(14, 133, 123, 0.10);

  /* Elevation (white-alpha — Linear/WHOOP pattern) */
  --elevation-1: rgba(255, 255, 255, 0.02);
  --elevation-2: rgba(255, 255, 255, 0.04);
  --elevation-3: rgba(255, 255, 255, 0.06);
  --elevation-hover: rgba(255, 255, 255, 0.08);

  /* Border alpha system */
  --border-subtle: #2A2C2E;
  --border-alpha-1: rgba(255, 255, 255, 0.06);
  --border-alpha-2: rgba(255, 255, 255, 0.10);

  /* Glow (accent hover states) */
  --accent-glow: rgba(61, 190, 176, 0.15);

  /* Layout */
  --max-content: 1120px;
  --max-prose: 680px;
  --side-padding: 24px;
  --section-padding: 96px;
  --section-padding-mobile: 56px;

  /* Radii */
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-button: 12px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.21, 0.47, 0.32, 0.98);
  --duration-reveal: 0.9s;
  --duration-fast: 0.15s;
  --duration-medium: 0.3s;

  /* Responsive type */
  --h1-size: clamp(36px, 6vw, 56px);
  --h2-size: clamp(28px, 4vw, 36px);
  --stat-size: clamp(36px, 6vw, 60px);
}

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

html {
  background-color: #0C2421;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background-color: #0C2421;
  background: linear-gradient(180deg, #0C2421 0%, #0E1918 300px, var(--bg-primary) 700px);
  background-attachment: fixed;
}

/* ─── Noise Overlay (Linear pattern — analog warmth) ────────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Links ─────────────────────────────────────────────────────────────────── */
a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--duration-fast);
}

a:hover {
  opacity: 0.85;
}

.link-underline {
  position: relative;
  display: inline;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-medium) var(--ease-out-expo);
}

.link-underline:hover::after {
  transform: scaleX(1);
}

/* ─── Scroll Reveal ─────────────────────────────────────────────────────────── */
/* Animations activate on scroll via IntersectionObserver (JS).
   Default: visible. JS adds .reveal-hidden on load, observer adds .visible on scroll. */
.reveal {
  transition: opacity var(--duration-reveal) var(--ease-out-smooth),
              transform var(--duration-reveal) var(--ease-out-smooth);
}

.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(28px);
}

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

.reveal-child {
  transition: opacity 0.7s var(--ease-out-smooth),
              transform 0.7s var(--ease-out-smooth);
}

.reveal.reveal-hidden > .reveal-child {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.visible > .reveal-child:nth-child(1) { transition-delay: 0s; }
.reveal.visible > .reveal-child:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible > .reveal-child:nth-child(3) { transition-delay: 0.15s; }
.reveal.visible > .reveal-child:nth-child(4) { transition-delay: 0.2s; }
.reveal.visible > .reveal-child:nth-child(5) { transition-delay: 0.25s; }
.reveal.visible > .reveal-child:nth-child(6) { transition-delay: 0.3s; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-child,
  .reveal.reveal-hidden,
  .reveal.reveal-hidden > .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── Focus States ─────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.cta:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.pricing-toggle-btn:focus-visible {
  outline-offset: -2px;
}

.faq-item summary:focus-visible {
  outline-offset: 2px;
}

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.section {
  width: 100%;
  padding: var(--section-padding) var(--side-padding);
}

.section-alt {
  /* No background or borders — spacing alone separates sections */
}

.container {
  max-width: var(--max-content);
  margin: 0 auto;
}

.prose {
  max-width: var(--max-prose);
}

/* ─── Status Bar Cover (stays visible even when nav hides) ─────────────────── */
.status-bar-cover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background-color: #0C2421;
  z-index: 101;
}

/* ─── Navigation ────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(21, 23, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.35s var(--ease-out-expo), background var(--duration-medium), opacity 0.3s ease;
  transform: translateY(0);
}

nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
}


nav.scrolled {
  background: rgba(21, 23, 24, 0.75);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--side-padding);
  position: relative;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 20px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration-fast);
}

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

.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius-pill);
  background: var(--accent-ghost);
  color: var(--accent-text) !important;
  font-weight: 600;
  font-size: 14px;
}

.nav-cta:hover {
  background: var(--accent-surface);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon { overflow: visible; }

.hamburger-top,
.hamburger-mid,
.hamburger-bot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-top {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-mid {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-bot {
  transform: translateY(-5px) rotate(-45deg);
}

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1 {
  font-size: var(--h1-size);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-primary);
}

h2 {
  font-size: var(--h2-size);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.subhead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.5;
}

.effective-date {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 120px var(--side-padding) 80px;
}

/* Hero glow removed — background gradient on html provides the teal warmth */

.hero .container {
  display: flex;
  align-items: center;
  gap: 70px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  margin-bottom: 32px;
  font-size: clamp(40px, 5vw, 72px);
}

.hero-text .subhead {
  margin-bottom: 36px;
}

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

/* ─── Phone Fan (desktop) ──────────────────────────────────────────────────── */
.phone-fan {
  position: relative;
  width: 560px;
  height: 460px;
  flex-shrink: 0;
}

.phone-fan-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  box-shadow: 6px 4px 20px rgba(61, 190, 176, 0.12);
}

.phone-fan-4    { transform: translateX(360px); z-index: 1; }
.phone-fan-back { transform: translateX(240px); z-index: 2; }
.phone-fan-mid  { transform: translateX(120px); z-index: 3; }
.phone-fan-front { transform: translateX(0px); z-index: 4; }

/* Hide carousel on desktop */
.phone-carousel { display: none; }

/* ─── Phone Carousel (mobile only) ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .phone-fan { display: none; }

  .phone-carousel {
    display: block;
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: pan-y;
  }

  .carousel-slide {
    flex: 0 0 60%;
    padding: 0 8px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0.35;
    transform: scale(0.88);
  }

  .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
  }

  .carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 6px 4px 20px rgba(61, 190, 176, 0.12);
    pointer-events: none;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-alpha-2);
    cursor: pointer;
    padding: 18px;
    margin: -18px;
    box-sizing: content-box;
    background-clip: content-box;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .carousel-dot.active {
    background: var(--accent-deep);
    background-clip: content-box;
    transform: scale(1.25);
  }
}

/* (phone-frame, trust-line, trust-badge removed — unused) */

/* ─── CTA Button (ghost pill + hover glow) ──────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius-pill);
  background: var(--accent-ghost);
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--duration-fast), box-shadow var(--duration-medium), transform var(--duration-fast);
  min-height: 48px;
}

.cta:hover {
  background: var(--accent-surface);
  box-shadow: 0 0 24px var(--accent-glow), 0 0 0 1px var(--accent-deep);
  opacity: 1;
  transform: translateY(-1px);
}

.cta:active {
  transform: scale(0.97);
  background: var(--accent-surface);
  box-shadow: 0 0 12px var(--accent-glow);
}

.cta-center {
  text-align: center;
  padding: 32px 0 0;
}

/* (logo-bar removed — unused) */

/* ─── Stats Row ─────────────────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 0;
  justify-content: center;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid var(--border-subtle);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-size: var(--stat-size);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.45;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Steps ─────────────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  font-size: 48px;
  font-weight: 300;
  color: var(--accent-deep);
  line-height: 1;
  min-width: 48px;
}

.step-content h3 { margin-bottom: 4px; }
.step-content p { font-size: 16px; margin-bottom: 0; }

/* (how-it-works-grid removed — unused) */

/* ─── Feature Cards (white-alpha elevation) ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  background: var(--elevation-1);
  border: 1px solid var(--border-alpha-1);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: background var(--duration-medium) var(--ease-out-smooth),
              border-color var(--duration-medium),
              transform var(--duration-medium) var(--ease-out-smooth),
              box-shadow var(--duration-medium);
}

.feature-card:hover {
  background: var(--elevation-hover);
  border-color: var(--border-alpha-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-alpha-1);
}

.feature-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--accent-text);
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 16px; color: var(--text-secondary); margin-bottom: 0; }

/* ─── Evidence Cards ────────────────────────────────────────────────────────── */
.evidence-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.evidence-card {
  background: var(--elevation-1);
  border: 1px solid var(--border-alpha-1);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.evidence-card:hover {
  background: var(--elevation-hover);
  border-color: var(--border-alpha-2);
}

.evidence-card h3 { font-size: 18px; margin-bottom: 12px; }
.evidence-card p { font-size: 15px; line-height: 1.55; margin-bottom: 0; }

.citation {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-alpha-1);
  line-height: 1.5;
}

.citation em { font-style: normal; text-decoration: underline; text-underline-offset: 2px; }

/* ─── Gradient Border Card ──────────────────────────────────────────────────── */
.card-accent {
  position: relative;
  background: var(--elevation-1);
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius-card);
  padding: 28px;
}

/* ─── Testimonial Cards ─────────────────────────────────────────────────────── */
.testimonials-row {
  display: flex;
  gap: 24px;
}

.testimonial-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 390px;
  flex: 1;
}

.testimonial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.testimonial-overlay-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.testimonial-star {
  width: 14px;
  height: 14px;
  fill: var(--accent-text);
}

.testimonial-quote {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-style: italic;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .testimonials-row {
    flex-direction: column;
  }

  .testimonial-card {
    height: 420px;
  }

  .testimonial-overlay {
    bottom: auto;
    top: 16px;
  }
}

/* ─── Integration Marquee ────────────────────────────────────────────────────── */
.marquee-section {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  max-width: var(--max-content);
  margin: 0 auto;
}

.marquee-fade-left,
.marquee-fade-right {
  display: none;
}

.marquee-track {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  gap: 120px;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.marquee-item img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
}

.marquee-item span {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
  }
}

/* ─── Comparison Table ──────────────────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table td {
  padding: 14px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-alpha-1);
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .col-resilio { color: var(--accent-text); font-weight: 500; }
.comparison-table .col-other { color: var(--text-tertiary); }

/* ─── Pricing Cards ─────────────────────────────────────────────────────────── */
.pricing-cards {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.pricing-card {
  flex: 1;
  background: var(--elevation-1);
  border: 1px solid var(--border-alpha-1);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.pricing-card:hover { border-color: var(--border-alpha-2); }

.pricing-card.highlighted {
  border-color: var(--accent-deep);
  background: var(--accent-ghost);
}

.badge {
  display: inline-block;
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.save-badge {
  display: inline-block;
  background: var(--accent-surface);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  margin-top: 12px;
}

.price {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -2px;
}

.price-per {
  font-size: 18px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.price-detail {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ─── Mega Pricing Card ─────────────────────────────────────────────────────── */
.pricing-mega {
  background: var(--elevation-1);
  border: 1px solid var(--accent-deep);
  border-radius: 24px;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.pricing-mega-left {
  padding: 44px 40px;
  position: relative;
  z-index: 1;
}

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

.pricing-mega-phone {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  overflow: hidden;
  pointer-events: none;
}

.pricing-mega-phone img {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  height: 85%;
  width: auto;
  opacity: 0.12;
  filter: drop-shadow(0 0 32px rgba(61, 190, 176, 0.12));
}

.pricing-toggle {
  display: inline-flex;
  background: var(--elevation-2);
  border-radius: var(--radius-pill);
  padding: 4px;
  border: 1px solid var(--border-alpha-1);
}

.pricing-toggle-btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
  font-family: inherit;
}

.pricing-toggle-btn.active {
  background: var(--accent-deep);
  color: var(--text-primary);
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.pricing-features .check {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pricing-mega {
    flex-direction: column;
  }

  .pricing-mega-left {
    padding: 32px;
  }

  .pricing-mega-phone {
    display: none;
  }
}

/* ─── Checklist ─────────────────────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-secondary);
}

.checklist .check {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 18px;
  margin-top: 1px;
}

/* ─── Pricing Comparison Grid ──────────────────────────────────────────────── */
.pricing-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-comparison-item {
  background: var(--elevation-1);
  border: 1px solid var(--border-alpha-1);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--duration-fast);
}

.pricing-comparison-item:hover { border-color: var(--border-alpha-2); }

.pricing-comparison-icon {
  color: var(--accent-text);
  margin-bottom: 14px;
}

.pricing-comparison-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-comparison-detail {
  font-size: 14px;
  color: var(--text-tertiary);
}

@media (max-width: 600px) {
  .pricing-comparison-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
}

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  list-style: none;
  transition: color var(--duration-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform var(--duration-medium) var(--ease-out-smooth);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent-text);
}

.faq-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0 0 20px;
  margin: 0;
}

/* ─── Trust Section ─────────────────────────────────────────────────────────── */
.trust-section {
  text-align: center;
  padding: 64px var(--side-padding);
}

.trust-section p {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

/* ─── Skip Nav (accessibility) ─────────────────────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -200px;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent-deep);
  color: var(--text-primary);
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition: top var(--duration-fast);
}

.skip-nav:focus {
  top: 12px;
}

/* ─── Active Nav Link ──────────────────────────────────────────────────────── */
.nav-active {
  color: var(--text-primary) !important;
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-deep);
  border-radius: 1px;
}

/* ─── Hero Entrance Choreography ───────────────────────────────────────────── */
.hero-enter {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-smooth), transform 0.7s var(--ease-out-smooth);
}

.hero-enter-1 { transition-delay: 0.05s; }
.hero-enter-2 { transition-delay: 0.25s; }

.hero-enter.hero-entered {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── Feature Card Spotlight (cursor-follow glow) ──────────────────────────── */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    320px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    var(--accent-glow) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--duration-medium);
  pointer-events: none;
  z-index: 0;
}

.feature-card.has-spotlight::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

/* ─── Scroll-to-Top Button ─────────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-alpha-2);
  background: rgba(21, 23, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-medium), transform var(--duration-medium), border-color var(--duration-fast);
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: hover) {
  .scroll-top:hover {
    border-color: var(--accent-deep);
    color: var(--accent-text);
  }
}

/* ─── Sticky Mobile CTA ────────────────────────────────────────────────────── */
.sticky-cta {
  display: none !important;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px var(--side-padding);
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
}

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

/* ─── Legal Pages ───────────────────────────────────────────────────────────── */
.legal-page {
  padding: 80px var(--side-padding) 96px;
}

.legal-page .container { max-width: var(--max-prose); }
.legal-page h1 { font-size: 40px; margin-bottom: 8px; }
.legal-page h2 { font-size: 24px; margin-top: 48px; margin-bottom: 16px; }
.legal-page h3 { font-size: 18px; margin-top: 32px; margin-bottom: 12px; }
.legal-page p { font-size: 16px; line-height: 1.7; }

.all-caps {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-padding: var(--section-padding-mobile); }

  .hero { padding: calc(110px + env(safe-area-inset-top)) var(--side-padding) 48px; }
  main > .section:first-child { padding-top: calc(100px + env(safe-area-inset-top)); }
  .hero-text h1 { font-size: clamp(52px, 12vw, 64px); text-align: center; }
  .hero-text { text-align: center; }
  .hero-text .cta { margin: 0 auto; display: block; width: fit-content; }
  .hero::before { display: none; }
  .hero .container { flex-direction: column; gap: 32px; }
  .hero-visual { flex: none; width: 100%; overflow: hidden; }

  .comparison-table { font-size: 14px; }
  .comparison-table th,
  .comparison-table td { padding: 10px 8px; }

  .stats-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 24px; }
  .stat:last-child { border-bottom: none; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  @media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
  .evidence-cards { grid-template-columns: 1fr; }
  .pricing-cards { flex-direction: column; }

  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
  .footer-links a { font-size: 14px; padding: 8px 0; }

  .scroll-top { bottom: 80px; }

  .sticky-cta { display: none; }

  .legal-page h1 { font-size: 32px; }
}

@media (max-width: 600px) {
  nav {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    left: 12px;
    right: 12px;
    top: calc(8px + env(safe-area-inset-top, 0px));
    width: auto;
  }

  nav.scrolled {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
  }

  .nav-inner { padding: 12px 16px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-brand img { height: 15px; }
}

/* Mobile dropdown — sibling of nav, not child, so backdrop-filter works */
.nav-dropdown {
  display: none;
}

@media (max-width: 600px) {
  .nav-dropdown {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(84px + env(safe-area-inset-top, 0px));
    z-index: 99;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 8px;
    align-items: center;
  }

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

  .nav-dropdown a {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 0;
    transition: color var(--duration-fast);
  }

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

  .nav-dropdown .nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--accent-deep);
    border-radius: var(--radius-pill);
    background: var(--accent-ghost);
    color: var(--accent-text) !important;
    font-weight: 600;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .nav-links { gap: 12px; }
}
