/**
 * Credit Hub Elite — Fintech Funnel Design System
 * Dark theme, orange highlights, mobile-first
 */

/* Mobile: safe area for notches, no horizontal scroll */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

:root {
  /* Backgrounds */
  --bg-primary: #0a0b0d;
  --bg-secondary: #12141a;
  --bg-card: #16181f;
  --bg-elevated: #1c1f28;

  /* Text */
  --text-primary: #f4f5f7;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Brand — Orange */
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;
  --orange-product: #ff7a1a;

  --accent: var(--orange-product);
  --accent-hover: #ff8c3a;
  --accent-muted: rgba(255, 122, 26, 0.15);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);

  /* Spacing — 4px base */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', var(--font-sans);

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

  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 122, 26, 0.18);
  --shadow-cta-glow: 0 0 32px rgba(255, 122, 26, 0.4), 0 0 64px rgba(255, 122, 26, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --glass-bg: rgba(22, 24, 31, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Base reset & layout */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: linear-gradient(180deg, #08090b 0%, #0a0b0d 40%, #0d0e12 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Premium page background — subtle shapes */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-bg__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.page-bg__shape--1 {
  width:  min(80vw, 480px);
  height: min(80vw, 480px);
  background: radial-gradient(circle, var(--orange-500) 0%, transparent 70%);
  top: -20%;
  right: -20%;
}

.page-bg__shape--2 {
  width:  min(60vw, 320px);
  height: min(60vw, 320px);
  background: radial-gradient(circle, var(--orange-600) 0%, transparent 70%);
  bottom: 10%;
  left: -15%;
}

.page-bg__shape--3 {
  width:  200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Subtle animated gradient overlay (hero / conversion) */
.page-bg__animate {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 0%, rgba(255, 122, 26, 0.03) 25%, transparent 50%, rgba(255, 122, 26, 0.02) 75%, transparent 100%);
  background-size: 400% 400%;
  animation: gradient-shift 18s ease infinite;
  pointer-events: none;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========== PRODUCT PAGE LAYOUT (max-width, 12-col grid) ========== */
.product-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4);
  padding-left: max(var(--space-4), env(safe-area-inset-left));
  padding-right: max(var(--space-4), env(safe-area-inset-right));
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .product-page {
    padding: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .product-page {
    padding: var(--space-8) var(--space-10);
  }
}

/* 12-column grid */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 768px) {
  .grid-12 { gap: var(--space-8); }
}

.col-span-12 { grid-column: 1 / -1; }
.col-span-6 { grid-column: 1 / -1; }
.col-span-4 { grid-column: 1 / -1; }
.col-span-3 { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .col-span-6 { grid-column: span 6; }
  .col-span-4 { grid-column: span 4; }
  .col-span-3 { grid-column: span 3; }
  .col-start-7 { grid-column-start: 7; }
}

/* Hero — two columns: content left, visual right */
.hero {
  padding-top: var(--space-10);
  padding-bottom: var(--space-12);
  min-height: 0;
}

@media (min-width: 768px) {
  .hero { padding-top: var(--space-12); padding-bottom: var(--space-16); }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: var(--space-20);
    padding-bottom: var(--space-24);
    min-height: 70vh;
    display: flex;
    align-items: center;
  }
}

.hero__content {
  max-width: 58ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero__content {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

.hero__headline {
  font-size: clamp(1.375rem, 4.5vw + 1rem, var(--text-5xl));
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin: 0 auto var(--space-4);
  word-wrap: break-word;
}

@media (min-width: 1024px) {
  .hero__headline { margin-left: 0; margin-right: 0; }
}

.hero__subheadline {
  font-size: clamp(1rem, 2.5vw + 0.5rem, var(--text-lg));
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

.hero__support {
  font-size: clamp(0.9375rem, 1.5vw + 0.5rem, 1rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
}

/* Hero credibility strip */
.hero__credibility {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  margin-bottom: var(--space-8);
  padding-top: var(--space-2);
}

.hero__credibility-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero__credibility-value {
  font-weight: 700;
  color: var(--accent);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.hero__ctas .funnel-btn {
  width: auto;
  min-width: 180px;
  padding: var(--space-4) var(--space-6);
}

@media (min-width: 1024px) {
  .hero__ctas { justify-content: flex-start; }
}

.hero__ctas .funnel-btn--primary {
  box-shadow: var(--shadow-cta-glow);
}

.hero__ctas .funnel-btn--secondary {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

.hero__ctas .funnel-btn--secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

/* Trust microcopy under hero CTAs */
.hero__trust {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .hero__trust { justify-content: flex-start; }
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.hero__visual {
  position: relative;
  min-height: 320px;
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .hero__visual { min-height: 280px; }
}

@media (min-width: 1024px) {
  .hero__visual {
    margin-top: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.hero__visual-inner {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: visible;
}

@media (min-width: 768px) {
  .hero__visual-inner { min-height: 280px; overflow: hidden; }
}

@media (min-width: 1024px) {
  .hero__visual-inner { min-height: 360px; }
}

.hero__visual-graphic {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 50%, rgba(255, 122, 26, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 122, 26, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Hero right: 3-step path — bold cards with orange accent */
.hero__path {
  position: relative;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
  min-height: 280px;
}

@media (min-width: 768px) {
  .hero__path {
    position: absolute;
    inset: var(--space-6);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    min-height: 0;
  }
}

@media (min-width: 1024px) {
  .hero__path {
    inset: var(--space-8);
    gap: var(--space-4);
  }
}

.hero__path-card {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 72px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

@media (min-width: 768px) {
  .hero__path-card { min-height: 0; padding: var(--space-5); }
}

.hero__path-card:hover {
  border-left-color: var(--accent-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 122, 26, 0.15);
  transform: translateY(-2px);
}

/* Crescendo: smallest → biggest so the payoff (Capital Access) gets the most attention */
@media (min-width: 768px) {
  .hero__path-card--1 {
    transform: scale(0.92);
    transform-origin: center center;
  }
  .hero__path-card--1:hover {
    transform: scale(0.94) translateY(-2px);
  }
  .hero__path-card--2 {
    transform: scale(1);
  }
  .hero__path-card--3 {
    transform: scale(1.08);
    transform-origin: center center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 32px rgba(255, 122, 26, 0.12);
  }
  .hero__path-card--3:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 28px rgba(255, 122, 26, 0.2);
  }
}

.hero__path-num {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--bg-primary);
  background: var(--accent);
  border-radius: var(--radius-full);
}

.hero__path-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.hero__path-icon svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .hero__path-icon { width: 36px; height: 36px; margin-bottom: var(--space-3); }
}

.hero__path-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-1);
  line-height: var(--leading-snug);
}

@media (min-width: 768px) {
  .hero__path-title { font-size: var(--text-base); }
}

@media (min-width: 1024px) {
  .hero__path-title { font-size: var(--text-lg); }
}

.hero__path-desc {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--leading-snug);
}

@media (min-width: 768px) {
  .hero__path-desc { font-size: var(--text-xs); }
}

.hero__path-arrow {
  display: none;
  color: var(--accent);
  font-size: var(--text-xl);
  font-weight: 700;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero__path-arrow { display: block; }
}

/* Legacy hero visual dashboard (if needed elsewhere) */
.hero__visual-dashboard {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.hero__visual-stat,
.hero__visual-pillar {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  backdrop-filter: blur(8px);
  text-align: center;
}

.hero__visual-pillar-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.hero__visual-stat-value {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.hero__visual-stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Two-column section (problem: left copy, right cards) */
.section-two-col {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 1024px) {
  .section-two-col {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.section-two-col__content {
  max-width: 52ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .section-two-col__content {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

.section-two-col .funnel-section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .section-two-col .funnel-section-title { font-size: var(--text-3xl); }
}

.section-two-col__copy {
  text-align: center;
}

@media (min-width: 1024px) {
  .section-two-col__copy { text-align: left; }
}

.section-two-col__copy p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

.section-two-col__aside {
  text-align: center;
}

@media (min-width: 1024px) {
  .section-two-col__aside { text-align: left; }
}

.section-two-col__aside .funnel-btn {
  display: inline-flex;
}

/* Factor cards (right side of problem section) */
.factor-cards {
  display: grid;
  gap: var(--space-4);
}

.factor-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.factor-card:hover {
  border-color: rgba(255, 122, 26, 0.2);
  box-shadow: var(--shadow-md);
}

.factor-card__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 var(--space-1);
}

.factor-card__desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin: 0;
}

/* Section block (framework, tools, proof, opt-in) */
.section-block {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 1024px) {
  .section-block {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.section-block__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-10);
  max-width: 36ch;
}

@media (min-width: 768px) {
  .section-block__title { font-size: var(--text-3xl); }
}

/* Framework / system cards (3 columns) */
.system-cards {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .system-cards { grid-template-columns: repeat(3, 1fr); }
}

.system-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.system-card:hover {
  border-color: rgba(255, 122, 26, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.system-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.system-card__icon svg {
  width: 100%;
  height: 100%;
}

.system-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.system-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0;
}

/* Tools grid (4 cards) */
.tools-cards {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tools-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tools-cards { grid-template-columns: repeat(4, 1fr); }
}

.tool-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.tool-card:hover {
  border-color: rgba(255, 122, 26, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tool-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.tool-card__icon svg {
  width: 100%;
  height: 100%;
}

.tool-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.tool-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0;
}

/* Proof — large metrics */
.proof-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  background: linear-gradient(180deg, transparent 0%, rgba(18, 20, 26, 0.5) 50%, transparent 100%);
}

@media (min-width: 1024px) {
  .proof-section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.proof-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .proof-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.proof-metric-block {
  text-align: center;
  padding: var(--space-8);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}

.proof-metric-block__value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-tight);
}

@media (min-width: 768px) {
  .proof-metric-block__value { font-size: var(--text-5xl); }
}

.proof-metric-block__label {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
}

/* Proof wall — horizontal auto-scroll */
/* Featured video testimonials — 2 cards with play icon, link to full page */
.featured-testimonials-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.featured-testimonials {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .featured-testimonials {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .featured-testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.featured-testimonial:hover {
  border-color: rgba(255, 122, 26, 0.3);
  box-shadow: var(--shadow-glow);
}

.featured-testimonial__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.featured-testimonial__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.featured-testimonial__body {
  padding: var(--space-6);
}

.featured-testimonial__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.featured-testimonial__quote {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

.featured-testimonial__cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.featured-testimonial__cta:hover {
  color: var(--accent-hover);
}

.proof-wall-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}

.proof-wall-section .section-block__title {
  margin-bottom: var(--space-8);
}

.proof-wall-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
  scroll-snap-type: x mandatory;
}

.proof-wall {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: proof-scroll 45s linear infinite;
}

.proof-wall:hover {
  animation-play-state: paused;
}

@keyframes proof-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.proof-wall__item {
  flex-shrink: 0;
  width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  scroll-snap-align: start;
}

.proof-wall__item:hover {
  border-color: rgba(255, 122, 26, 0.25);
  box-shadow: var(--shadow-glow);
}

.proof-wall__quote {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
}

.proof-wall__meta {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
}

.proof-wall__badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.proof-wall__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.proof-wall__link:hover {
  text-decoration: underline;
}

/* System flow — horizontal process */
.flow-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.flow-section .section-block__title {
  margin-bottom: var(--space-10);
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
}

@media (min-width: 900px) {
  .flow-steps {
    flex-wrap: nowrap;
    gap: 0;
  }
}

.flow-step {
  flex: 1 1 100%;
  max-width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

@media (min-width: 900px) {
  .flow-step { flex: 0 0 auto; max-width: 220px; padding: var(--space-7); }
}

.flow-step:hover {
  border-color: rgba(255, 122, 26, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.flow-step__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.flow-step__icon svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .flow-step__icon { width: 44px; height: 44px; margin-bottom: var(--space-3); }
}

.flow-step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

@media (min-width: 900px) {
  .flow-step__title { font-size: var(--text-base); }
}

.flow-step__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0;
}

@media (min-width: 900px) {
  .flow-step__desc { font-size: var(--text-xs); }
}

.flow-arrow {
  display: none;
  align-items: center;
  padding: 0 var(--space-2);
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .flow-arrow { display: flex; }
}

/* Founder section */
.founder-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
  background: linear-gradient(180deg, transparent 0%, rgba(18, 20, 26, 0.4) 50%, transparent 100%);
}

.founder-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
  }
}

.founder__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 280px;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.founder__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.founder__content .section-block__title {
  margin-bottom: var(--space-4);
}

.founder__story {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
}

.founder__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
}

.founder__metric {
  font-size: var(--text-sm);
}

.founder__metric-value {
  font-weight: 700;
  color: var(--accent);
}

/* CTA section (replaces static form) */
.cta-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
  text-align: center;
}

.cta-section__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0 0 var(--space-8);
}

.cta-section .funnel-btn {
  width: auto;
  min-width: 220px;
  box-shadow: var(--shadow-cta-glow);
}

.cta-section__trust {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

/* Sticky CTA bar (fintech: repeat CTA on scroll) */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.95);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: var(--space-3) var(--space-4);
  padding-left: max(var(--space-4), env(safe-area-inset-left));
  padding-right: max(var(--space-4), env(safe-area-inset-right));
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.sticky-cta-bar.is-visible {
  transform: translateY(0);
}

.sticky-cta-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.sticky-cta-bar__text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.sticky-cta-bar .funnel-btn {
  width: auto;
  min-width: 160px;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-cta-glow);
}

/* Reserve space at bottom when sticky bar is visible so it doesn't cover content */
body.sticky-cta-bar-visible .product-page {
  padding-bottom: 88px;
}

/* Floating CTA pill (time/scroll trigger — research: can outperform by ~25%) */
.floating-cta {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 99;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  opacity: 0;
}

.floating-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.floating-cta .funnel-btn {
  width: auto;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-cta-glow);
  white-space: nowrap;
}

/* Touch targets: min 44px for mobile (accessibility + conversion) */
.funnel-btn {
  min-height: 44px;
}

/* Modal — lead capture popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  padding-left: max(var(--space-4), env(safe-area-inset-left));
  padding-right: max(var(--space-4), env(safe-area-inset-right));
  padding-bottom: max(var(--space-4), env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 420px;
  width: 100%;
  margin: auto;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255, 122, 26, 0.12);
  transform: scale(0.96);
  transition: transform var(--transition-slow);
}

@media (min-width: 480px) {
  .modal-box { padding: var(--space-8); }
}

.modal-overlay.is-open .modal-box {
  transform: scale(1);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal__close {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-md);
  font-size: 1.75rem;
  line-height: 1;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal__close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.modal__form .funnel-subheadline {
  margin-bottom: var(--space-4);
}

.modal__form .funnel-btn {
  margin-top: var(--space-4);
}

/* Modal trust microcopy (reduces friction, research: trust near form lifts conversion) */
.modal__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.modal__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* Opt-in section (legacy / when modal not used) */
.optin-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
}

.optin-section .funnel-card {
  max-width: 480px;
  margin-right: auto;
}

/* Legacy funnel container (if used elsewhere) */
.funnel-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4);
  position: relative;
  z-index: 1;
}

/* Typography classes */
.funnel-headline {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}

@media (min-width: 640px) {
  .funnel-headline {
    font-size: var(--text-3xl);
  }
}

.funnel-subheadline {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
}

/* Form inputs */
.funnel-input-group {
  margin-bottom: var(--space-4);
}

.funnel-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.funnel-label span[aria-hidden="true"] {
  color: var(--accent);
}

.funnel-input {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: 16px; /* prevents zoom on focus in iOS */
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 768px) {
  .funnel-input { font-size: var(--text-base); }
}

.funnel-input::placeholder {
  color: var(--text-muted);
}

.funnel-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.funnel-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Primary button */
.funnel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
  text-decoration: none;
}

.funnel-btn:hover {
  background: var(--accent-hover);
}

.funnel-btn:active {
  transform: scale(0.98);
}

.funnel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Card — glass/shadow for product page */
.funnel-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}

/* Offer list */
.funnel-offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

.funnel-offer-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.funnel-offer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

/* Section titles — stronger hierarchy */
.funnel-section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}

.sales-section .funnel-section-title {
  font-size: var(--text-2xl);
}

@media (min-width: 640px) {
  .sales-section .funnel-section-title {
    font-size: var(--text-3xl);
  }
}

/* Constrained body text for readability */
.sales-body-text {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

/* Testimonials strip */
.funnel-testimonials {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.funnel-testimonials-cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-top: var(--space-3);
  transition: color var(--transition-fast);
}

.funnel-testimonials-cta:hover {
  color: var(--accent-hover);
}

/* Utility */
.funnel-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-6) 0;
}

.text-center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }

/* Sales page sections */
html {
  scroll-behavior: smooth;
}

.sales-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .sales-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* Alternate section backgrounds for separation */
.sales-section-alt {
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.6) 0%, var(--bg-primary) 100%);
}

.sales-section-alt + .sales-section-alt {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(18, 20, 26, 0.5) 100%);
}

.sales-hero {
  padding-top: var(--space-20);
  padding-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .sales-hero {
    padding-top: var(--space-24);
    padding-bottom: var(--space-16);
  }
}

.sales-hero .funnel-headline {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

@media (min-width: 640px) {
  .sales-hero .funnel-headline {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .sales-hero .funnel-headline {
    font-size: var(--text-5xl);
  }
}

.sales-hero .funnel-subheadline {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.sales-support-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.sales-hero .funnel-btn {
  width: auto;
  min-width: 220px;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  box-shadow: var(--shadow-cta-glow);
}

.sales-hero .funnel-btn:hover {
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.45), 0 0 80px rgba(249, 115, 22, 0.2);
}

.sales-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sales-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.sales-step:last-child {
  margin-bottom: 0;
}

.sales-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.sales-step-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.sales-step-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0;
}

.sales-proof-grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 480px) {
  .sales-proof-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.sales-proof-stat {
  text-align: center;
  padding: var(--space-4);
}

.sales-proof-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 var(--space-1);
}

.sales-proof-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Premium social proof — large highlighted metrics */
.sales-proof-premium {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 480px) {
  .sales-proof-premium {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.sales-proof-premium .proof-metric {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.sales-proof-premium .proof-metric:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: var(--shadow-glow);
}

.sales-proof-premium .proof-metric-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-tight);
}

@media (min-width: 640px) {
  .sales-proof-premium .proof-metric-value {
    font-size: var(--text-4xl);
  }
}

.sales-proof-premium .proof-metric-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--leading-snug);
}

/* Feature cards — what members get */
.feature-cards {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 480px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.feature-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0;
}

/* CTA strip — secondary CTA above form */
.cta-strip {
  background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  margin-bottom: var(--space-8);
}

.cta-strip__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.cta-strip__sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .funnel-btn {
  width: auto;
  min-width: 240px;
  box-shadow: var(--shadow-cta-glow);
}

#why-denied,
#opt-in-form-section {
  scroll-margin-top: var(--space-8);
}

/* Back to top — fixed bottom-right; moves up when sticky CTA is visible */
.back-to-top {
  position: fixed;
  bottom: max(var(--space-6), env(safe-area-inset-bottom));
  right: max(var(--space-6), env(safe-area-inset-right));
  left: auto;
  z-index: 100;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* When sticky CTA bar is visible, lift the back-to-top button above it */
body.sticky-cta-bar-visible .back-to-top {
  bottom: calc(max(var(--space-6), env(safe-area-inset-bottom)) + 80px);
}
