/* ================================================
   ASHFORD SALES — styles.css
   Dark mode. Teal accent. Framer-inspired.
   ================================================ */


/* ------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   Colors are defined in theme.css — do not add hex values here
------------------------------------------------ */
:root {
  /* ── Typography ── */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */

  --font-weight-normal:    400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  --line-height-tight:  1.1;
  --line-height-snug:   1.35;
  --line-height-normal: 1.65;

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Layout ── */
  --max-width:  1140px;
  --nav-height: 68px;
  --section-py: var(--space-24);

  /* ── Radii ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-glow-white: 0 0 28px var(--glow-accent);
  --shadow-glow-subtle: 0 0 20px var(--glow-accent);

  /* ── Transitions ── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}


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

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

/* ------------------------------------------------
   PAGE LOADER
   Full-screen dark overlay, plays once on load.
   GSAP sets display:none after wipe-out completes.
------------------------------------------------ */
#page-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #0B132B;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 0 0);
}

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

.loader__logo {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateY(10px);
}

.loader__track {
  width: 200px;
  height: 2px;
  background: #1C2541;
  border-radius: 2px;
  overflow: hidden;
}

.loader__fill {
  width: 0%;
  height: 100%;
  background: #5BC0BE;
  border-radius: 2px;
}

/* ------------------------------------------------
   PAGE TRANSITION
   Teal wipe overlay — hidden off-screen by default.
   GSAP slides it in on exit navigation.
------------------------------------------------ */
#page-transition {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #5BC0BE;
  z-index: 99998;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}

/* ------------------------------------------------
   THEME RIPPLE
   Circular overlay that expands from the toggle
   button when switching themes. Size + position
   are set by JS at click time.
------------------------------------------------ */
#theme-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: scale(0);
  transform-origin: center;
  opacity: 1;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

ul, ol { list-style: none; }

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

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 1px solid var(--glow-accent-strong);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ------------------------------------------------
   3. LAYOUT UTILITIES
------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}
@media (min-width: 1200px) {
  .container { padding-inline: var(--space-10); }
}


/* Shared section label (overline above headings) */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}


/* ------------------------------------------------
   4. SECTION BASE
------------------------------------------------ */
.section {
  padding-block: var(--section-py);
  width: 100%;
  background-color: var(--color-bg);
  background-image: none;
}

/* Dark elevated surface */
.section--alt {
  background-color: var(--color-bg-alt);
}

/* Hero */
.section--hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-image: none; /* hero__bg handles dot grid + gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  color: var(--color-text);
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-24);
}

/* Social proof — thin full-width strip */
.section--social-proof {
  padding-block: 20px;
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* Final CTA — full styles in section 15 */


/* ------------------------------------------------
   5. NAVIGATION
------------------------------------------------ */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, border-color 0.4s ease;
}

/* Scrolled — frosted glass fade in */
.nav-wrapper.scrolled {
  background: rgba(var(--nav-scrolled-rgb), 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.nav__logo {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}
.nav__logo:hover { opacity: 0.65; }
.nav-wrapper.scrolled .nav__logo { color: var(--color-text); }

/* Desktop links */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}
.nav__link:hover { color: var(--color-accent); }
.nav-wrapper.scrolled .nav__link { color: var(--color-text-secondary); }
.nav-wrapper.scrolled .nav__link:hover { color: var(--color-accent); }

/* Nav CTA */
.nav__link--cta {
  background: var(--color-accent);
  color: var(--color-accent-text);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.nav__link--cta:hover {
  opacity: 0.88;
  transform: scale(1.02);
}
.nav-wrapper.scrolled .nav__link--cta {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  flex-shrink: 0;
}
.nav__hamburger .bar {
  display: block;
  height: 1.5px;
  background-color: var(--color-text);
  border-radius: var(--radius-full);
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
  transform-origin: center;
}
.nav-wrapper.scrolled .nav__hamburger .bar { background-color: var(--color-text); }
.nav__hamburger.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu drawer */
@media (max-width: 767px) {
  .nav__links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    padding: 0;
    z-index: 9999;
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav__links.open { transform: translateY(0); }

  .nav__links li { border-bottom: none; width: 100%; text-align: center; }

  .nav__link {
    display: block;
    padding: 16px 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    transition: opacity 0.2s ease;
  }
  .nav__link:hover { opacity: 0.65; color: var(--color-text); }

  .nav__link--cta {
    display: inline-block;
    margin-top: var(--space-6);
    padding: 14px 28px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: opacity 0.2s ease;
  }
  .nav__link--cta:hover { opacity: 0.85; color: var(--color-accent-text); }

  /* Hamburger sits above the drawer */
  .nav__hamburger {
    position: relative;
    z-index: 10000;
  }
}

@media (min-width: 768px) {
  .nav__links    { display: flex; }
  .nav__hamburger { display: none; }
}

/* ── Theme pill toggle ── */
.nav__theme-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  /* Light theme default: teal bg, knob right */
  background: #5BC0BE;
  transition: background 0.3s ease;
}

.toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  /* Light theme default: white knob shifted right */
  background: #FFFFFF;
  transform: translateX(20px);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Dark theme: navy bg, teal knob on left */
[data-theme="dark"] .nav__theme-toggle {
  background: #1C2541;
}
[data-theme="dark"] .toggle__knob {
  background: #5BC0BE;
  transform: translateX(0);
}

/* Right-side nav controls (toggle + hamburger) */
.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* On mobile, keep controls above the drawer */
@media (max-width: 767px) {
  .nav__controls {
    position: relative;
    z-index: 10000;
  }
}

@media (min-width: 768px) {
  .nav__theme-toggle {
    /* visible on desktop always */
  }
}


/* ------------------------------------------------
   6. GLOBAL BUTTONS
   CSS sets the visual base.
   GSAP handles hover scale + glow (animations.js).
------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  /* No CSS transitions — GSAP handles hover for smoother feel */
  will-change: transform, box-shadow;
  transform: translateZ(0); /* GPU layer */
}

/* Primary — teal bg, darkest text */
.btn--primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  font-weight: 700;
}

/* Outline — transparent, slate border */
.btn--outline {
  background-color: transparent;
  color: var(--btn-outline-text);
  border: 1px solid var(--btn-outline-border);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  background: rgba(91,192,190,0.06);
}

/* Hero-scoped button overrides */
.section--hero .btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
  font-weight: 700;
}
.section--hero .btn--outline {
  border-color: var(--color-border-subtle);
  color: var(--color-text);
}
.section--hero .btn--outline:hover {
  border-color: var(--color-accent);
}

/* VP section button */
.section--vp .btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
  font-weight: 700;
}

/* CTA section button overrides */
.section--cta .btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
  font-weight: 700;
}

/* Arrow glyph inside primary button */
.btn__arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
  font-style: normal;
}
.btn--primary:hover .btn__arrow {
  transform: translateX(3px);
}


/* ------------------------------------------------
   7. HERO SECTION
------------------------------------------------ */

/* ── Background layers ── */

/* Three.js particle canvas — absolute full-bleed background */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  opacity: 0; /* GSAP fades in on load */
  pointer-events: none;
}

/* Dot grid overlay — subtle teal depth texture */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 45% at 50% 50%,
      rgba(91,192,190,0.04) 0%,
      transparent 72%
    ),
    radial-gradient(
      circle,
      rgba(91,192,190,0.02) 1px,
      transparent 1px
    );
  background-size:
    auto,
    26px 26px;
}

/* ── Content — single centered column ── */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  max-width: 860px;
  margin-inline: auto;
  width: 100%;
}

/* Label badge */
.hero__badge {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.16em;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* ── Main headline ── */
.hero__heading {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.04em;
  color: var(--color-text);
  position: relative;
  /* perspective for GSAP char entrance */
  perspective: 1200px;
}

/* Shimmer sweep — ::after overlay moving across headline */
@keyframes shimmer-sweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}

.hero__heading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(91,192,190,0.09) 50%,
    transparent 100%
  );
  animation: shimmer-sweep 5s ease-in-out infinite;
  animation-delay: 1.8s; /* starts after entrance animation */
  pointer-events: none;
  z-index: 1;
}

/* Each line — overflow:hidden clips char slide-up entrance */
.hero__heading-line {
  display: block;
  overflow: hidden;
}

/* Splitting.js injects .word and .char — keep inline-block */
.hero__heading .word { display: inline-block; white-space: nowrap; }
.hero__heading .char { display: inline-block; }

/* ── Subheadline ── */
.hero__sub {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  max-width: 520px;
  font-weight: var(--font-weight-normal);
}

/* ── CTA buttons ── */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* ── Trust signals — dot separated ── */
.hero__trust {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  margin-top: var(--space-2);
}


/* ------------------------------------------------
   8. SOCIAL PROOF BAR
------------------------------------------------ */

/* Horizontal strip — flex row on desktop */
.proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

/* Left stat block */
.proof-bar__stat {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
  flex-shrink: 0;
}

.proof-bar__number {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.proof-bar__stat-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Thin vertical divider */
.proof-bar__divider {
  width: 1px;
  height: 34px;
  background-color: var(--color-border-subtle);
  flex-shrink: 0;
}

/* Center quote */
.proof-bar__quote {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: center;
  max-width: 480px;
  line-height: 1.55;
}

/* Right attribution */
.proof-bar__attribution {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile — stack vertically, horizontal dividers */
@media (max-width: 767px) {
  .proof-bar {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .proof-bar__divider {
    width: 36px;
    height: 1px;
  }

  .proof-bar__quote {
    max-width: 100%;
  }
}


/* ------------------------------------------------
   9. PAIN SECTION
------------------------------------------------ */

.section--pain {
  background-color: var(--color-bg);
  padding-block: 140px;
}

/* 50/50 grid — stacks on mobile */
.pain__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 767px) {
  .pain__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .section--pain {
    padding-block: 80px;
  }
}

/* ── Left side ── */
.pain__label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.pain__heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-6);
}

.pain__body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 42ch;
}

/* Thin rule */
.pain__rule {
  width: 60px;
  height: 1px;
  background-color: var(--color-bg-alt);
  margin-top: var(--space-8);
}

/* ── Right side: list ── */
.pain__list {
  display: flex;
  flex-direction: column;
}

.pain__item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-bg-alt);
}

.pain__item:first-child {
  border-top: 1px solid var(--color-bg-alt);
}

/* Number — teal color */
.pain__num {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 22px;
  font-variant-numeric: tabular-nums;
}

/* Thin vertical divider between number and text */
.pain__item-divider {
  width: 1px;
  height: 18px;
  background-color: var(--color-bg-alt);
  flex-shrink: 0;
}

.pain__item-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  line-height: var(--line-height-snug);
}

/* Transition CTA */
.pain__transition {
  display: inline-block;
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.pain__transition:hover {
  color: var(--color-text);
}


/* ------------------------------------------------
   10. HOW IT WORKS SECTION
------------------------------------------------ */

.section--hiw {
  background-color: var(--color-bg-alt);
  padding-block: 140px;
}

@media (max-width: 767px) {
  .section--hiw { padding-block: 80px; }
}

/* ── Centered header ── */
.hiw__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.hiw__label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.hiw__heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: var(--line-height-snug);
  max-width: 18ch;
}

.hiw__subline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Body: connector + cards ── */
.hiw__body {
  position: relative;
}

/* Dashed connector line — desktop only */
.hiw__connector {
  display: none;
  position: absolute;
  /* align with icon center: card-pad(40) + num(~52px) + num-mb(16) + icon-center(14) = ~122px */
  top: 122px;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  /* horizontal inset so the line starts/ends near icon centers of first/last card */
  padding: 0 12.5%;
}

@media (min-width: 960px) {
  .hiw__connector { display: block; }
}

/* Inner element animated by GSAP scaleX 0 → 1 */
.hiw__connector-inner {
  height: 1px;
  width: 100%;
  background: repeating-linear-gradient(
    to right,
    var(--color-accent) 0,
    var(--color-accent) 4px,
    transparent 4px,
    transparent 10px
  );
  transform-origin: left center;
  transform: scaleX(0); /* start state — GSAP animates to scaleX(1) */
}

/* ── Cards grid ── */
.hiw__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

@media (min-width: 580px) {
  .hiw__cards { grid-template-columns: 1fr 1fr; }
}

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

/* ── Individual card ── */
.hiw__card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  cursor: default;
  /* GPU layer for smooth GSAP transforms */
  will-change: transform, border-color;
  transform: translateZ(0);
}

/* Step number */
.hiw__card-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-bg-alt);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-4);
}

/* Icon wrapper */
.hiw__card-icon {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  flex-shrink: 0;
}

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

/* Step title */
.hiw__card-title {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.3;
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}

/* Step description */
.hiw__card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ------------------------------------------------
   11. VALUE PROPS SECTION
------------------------------------------------ */

.section--vp {
  background-color: var(--color-bg);
  padding-block: 140px;
}

@media (max-width: 767px) {
  .section--vp { padding-block: 80px; }
}

/* 50/50 desktop split */
.vp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 767px) {
  .vp__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

/* ── Left side ── */
.vp__label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.vp__heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-6);
}

.vp__body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 42ch;
  margin-bottom: var(--space-8);
}

/* ── Right side: 2x2 grid ── */
.vp__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .vp__cards { grid-template-columns: 1fr; }
}

/* Individual card */
.vp__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  /* GSAP manages border-color hover */
  will-change: border-color;
}

.vp__card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 24px var(--glow-accent);
}

/* Icon */
.vp__card-icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  /* GSAP manages scale on entry */
  transform-origin: center;
}

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

/* Title */
.vp__card-title {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.3;
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}

/* Description */
.vp__card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ------------------------------------------------
   12. NICHES SECTION
------------------------------------------------ */

.section--niches {
  background-color: var(--color-bg-alt);
  padding-block: 140px;
}

@media (max-width: 767px) {
  .section--niches { padding-block: 80px; }
}

/* ── Centered header ── */
.niches__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.niches__label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.niches__heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: var(--line-height-snug);
  max-width: 22ch;
}

.niches__subline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ── Cards grid ── */
.niches__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

@media (min-width: 580px) {
  .niches__cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .niches__cards { grid-template-columns: repeat(4, 1fr); }
  .niches__cards--sixup { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 580px) and (max-width: 959px) {
  .niches__cards--sixup { grid-template-columns: 1fr 1fr; }
}

/* ── Individual card ── */
.niches__card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  /* GSAP manages border-color + bg on hover */
  will-change: transform, border-color, background-color;
  transform: translateZ(0);
}

/* Icon — GSAP runs infinite float on this */
.niches__card-icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  flex-shrink: 0;
  will-change: transform;
}

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

/* Niche name */
.niches__card-name {
  font-size: 1.3rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 24px;
  margin-bottom: var(--space-2);
}

/* Descriptor */
.niches__card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* ── Bottom CTA line ── */
.niches__more {
  text-align: center;
  margin-top: var(--space-4);
}

.niches__more-link {
  font-size: var(--text-sm);
  color: var(--color-accent);
  position: relative;
  display: inline-block;
  transition: color var(--transition-fast);
}

/* Underline that grows on hover */
.niches__more-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}

.niches__more-link:hover {
  color: var(--color-text);
}

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


/* ------------------------------------------------
   13. OBJECTIONS / FAQ SECTION
------------------------------------------------ */

.section--objections {
  background-color: var(--color-bg);
  padding-block: 140px;
}

@media (max-width: 767px) {
  .section--objections { padding-block: 80px; }
}

/* ── Centered header ── */
.faq__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.faq__label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.faq__heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: var(--line-height-snug);
  max-width: 22ch;
}

.faq__subline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ── Accordion list — centered, max 760px ── */
.faq__list {
  max-width: 760px;
  margin-inline: auto;
}

/* Each item */
.faq__item {
  border-bottom: 1px solid var(--color-border);
}

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

/* Question button row */
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq__question:hover .faq__question-text {
  color: var(--color-text-secondary);
}

.faq__question-text {
  font-size: 1.05rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

/* Plus / X icon */
.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  /* GSAP rotates this 45deg on open */
  will-change: transform;
  transform-origin: center;
}

.faq__icon svg {
  width: 100%;
  height: 100%;
}

/* Answer panel — GSAP animates height 0 ↔ scrollHeight */
.faq__answer {
  height: 0;
  overflow: hidden;
  /* No CSS transition — GSAP handles it */
}

.faq__answer-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding-bottom: 28px;
  /* top padding creates gap between question and answer text */
  padding-top: 2px;
}


/* ------------------------------------------------
   14. TESTIMONIAL
------------------------------------------------ */
.section--testimonial {
  background-color: var(--color-bg-alt);
  padding-block: 140px;
}

.testimonial__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.testimonial__quote-wrap {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.testimonial__quote-mark {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 8rem;
  line-height: 0.65;
  color: var(--color-border);
  margin-bottom: var(--space-6);
  user-select: none;
}

.testimonial__quote {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.testimonial__attribution {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
}

.testimonial__rule {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  max-width: 120px;
  margin: 60px auto;
}

.testimonial__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.testimonial__stat {
  text-align: center;
}

.testimonial__stat-number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
}

.testimonial__stat-unit {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.testimonial__stat-divider {
  width: 1px;
  height: 48px;
  background-color: var(--color-border-subtle);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .section--testimonial { padding-block: 80px; }
  .testimonial__stats { gap: var(--space-8); }
  .testimonial__stat-divider { display: none; }
}


/* ------------------------------------------------
   15. CTA FINAL
------------------------------------------------ */
.section--cta {
  background-color: var(--color-bg);
  padding-block: 160px;
  position: relative;
  overflow: hidden;
  background-image: none; /* cta-final__bg handles this */
}

/* Dot grid + radial gradient */
.cta-final__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(91,192,190,0.04) 0%, transparent 70%),
    radial-gradient(circle, rgba(91,192,190,0.02) 1px, transparent 1px);
  background-size: auto, 26px 26px;
  pointer-events: none;
  z-index: 0;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.cta-final__label {
  margin-bottom: var(--space-6);
}

.cta-final__heading {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.04em;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

/* Each line clips the char slide-up */
.cta-final__heading-line {
  display: block;
  overflow: hidden;
}

.cta-final__heading .char {
  display: inline-block;
}

.cta-final__sub {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-3);
}

.cta-final__urgency {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-12);
}

/* Form */
.cta-final__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.cta-final__field {
  width: 100%;
}

.cta-final__input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.cta-final__input::placeholder {
  color: var(--color-text-muted);
}

.cta-final__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--glow-accent);
}

.cta-final__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 44px;
}

.cta-final__select option {
  background-color: var(--color-surface);
  color: var(--color-text);
}

.cta-final__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
  font-size: var(--text-base);
  padding: 18px 32px;
}

@media (max-width: 767px) {
  .section--cta { padding-block: 100px; }
}


/* ------------------------------------------------
   16. FOOTER
------------------------------------------------ */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: 40px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer__logo {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  flex-shrink: 0;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

.footer__cta-link,
.footer__reps-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}
.footer__cta-link:hover,
.footer__reps-link:hover { color: var(--color-accent); }

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
}


/* ------------------------------------------------
   17. PERSONALITY ELEMENTS
   Tasteful micro-detail layer — all effects use
   only transform/opacity for 60fps performance.
------------------------------------------------ */

/* ── GLOBAL: Grain texture overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── GLOBAL: Horizontal ruled lines ── */
.lines-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 79px,
    rgba(91,192,190,0.02) 79px,
    rgba(91,192,190,0.02) 80px
  );
}

/* ── HERO: Gradient orb ── */
.hero__orb {
  position: absolute;
  bottom: -320px;
  right: -320px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,192,190,0.04) 0%, transparent 65%);
  pointer-events: none;
  animation: orb-pulse 8s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.3; }
  50%       { transform: scale(1.15); opacity: 0.5; }
}

/* ── TICKER: Scrolling strip ── */
.ticker-wrap {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  overflow: hidden;
  padding-block: 11px;
  user-select: none;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.ticker__item {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.13em;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-right: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}

/* ── PAIN: Ghost word + vertical line ── */
.pain__right {
  position: relative;
  overflow: hidden;
}


.pain__vline {
  position: absolute;
  left: -24px;
  top: 0;
  width: 2px;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.pain__vline-svg {
  width: 2px;
  height: 100%;
  display: block;
}

/* ── HIW: Live stat counter ── */
.hiw__live-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 9999px;
  padding: 6px 16px 6px 10px;
  margin-bottom: var(--space-8);
}

.hiw__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
  animation: live-blink 2s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hiw__live-num {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.hiw__live-label {
  font-size: var(--text-sm);
  color: var(--color-accent);
}

/* ── VALUE PROPS: Ghost text + ring ── */
.vp__left {
  position: relative;
  overflow: hidden;
}


.vp__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
  animation: ring-spin 30s linear infinite;
  will-change: transform;
  transform-origin: center center;
}

/* Override: must include translate in the animation too */
@keyframes ring-spin {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.vp__left > *:not(.vp__ring) {
  position: relative;
  z-index: 1;
}

/* ── NICHES: Texture patterns via ::before ── */
.niches__card {
  position: relative;
  overflow: hidden;
}

.niches__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.03;
  z-index: 0;
}

/* Med Spas — dot pattern */
.niches__card--medspas::before {
  background-image: radial-gradient(circle, rgba(91,192,190,0.04) 1px, transparent 1px);
  background-size: 12px 12px;
}

/* Roofing — diagonal lines */
.niches__card--roofing::before {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(91,192,190,0.04) 0px, rgba(91,192,190,0.04) 1px,
    transparent 1px, transparent 10px
  );
}

/* HVAC — horizontal lines */
.niches__card--hvac::before {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(91,192,190,0.04) 0px, rgba(91,192,190,0.04) 1px,
    transparent 1px, transparent 10px
  );
}

/* Law Firms — grid */
.niches__card--lawfirms::before {
  background-image:
    linear-gradient(to right, rgba(91,192,190,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91,192,190,0.04) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* Dental — vertical lines */
.niches__card--dental::before {
  background-image: repeating-linear-gradient(
    to right,
    rgba(91,192,190,0.04) 0px, rgba(91,192,190,0.04) 1px,
    transparent 1px, transparent 12px
  );
}

/* Home Improvement — chevron / herringbone */
.niches__card--home::before {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(91,192,190,0.04) 0px, rgba(91,192,190,0.04) 1px,
    transparent 1px, transparent 8px
  ),
  repeating-linear-gradient(
    45deg,
    rgba(91,192,190,0.04) 0px, rgba(91,192,190,0.04) 1px,
    transparent 1px, transparent 8px
  );
}

/* Make card content sit above the texture */
.niches__card > * {
  position: relative;
  z-index: 1;
}

/* Teal bottom glow on hover via ::after */
.niches__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  border-radius: 0 0 16px 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease;
}

.niches__card--medspas::after {
  background: radial-gradient(ellipse at bottom center, rgba(91,192,190,0.08) 0%, transparent 70%);
}
.niches__card--roofing::after {
  background: radial-gradient(ellipse at bottom center, rgba(91,192,190,0.08) 0%, transparent 70%);
}
.niches__card--hvac::after {
  background: radial-gradient(ellipse at bottom center, rgba(91,192,190,0.08) 0%, transparent 70%);
}
.niches__card--lawfirms::after {
  background: radial-gradient(ellipse at bottom center, rgba(91,192,190,0.08) 0%, transparent 70%);
}
.niches__card--dental::after {
  background: radial-gradient(ellipse at bottom center, rgba(91,192,190,0.08) 0%, transparent 70%);
}
.niches__card--home::after {
  background: radial-gradient(ellipse at bottom center, rgba(91,192,190,0.08) 0%, transparent 70%);
}

.niches__card:hover::after {
  opacity: 1;
}

/* ── Taken / partner secured cards ── */
.niches__card--taken {
  opacity: 0.5;
  pointer-events: none;
}

.niches__card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1;
  z-index: 3;
}

/* ── CTA niche note ── */
.cta-final__niche-note {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── TESTIMONIAL: Ghost quote + drifting orbs + shimmer ── */
.section--testimonial {
  position: relative;
  overflow: hidden;
}

.testimonial__bg-quote {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(16rem, 35vw, 30rem);
  line-height: 1;
  color: var(--color-border);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.testimonial__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.testimonial__orb--a {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91,192,190,0.06) 0%, transparent 65%);
  top: -100px;
  left: -150px;
  animation: orb-drift-a 18s ease-in-out infinite;
  will-change: transform;
}

.testimonial__orb--b {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91,192,190,0.04) 0%, transparent 65%);
  bottom: -80px;
  right: -100px;
  animation: orb-drift-b 22s ease-in-out infinite;
  will-change: transform;
}

@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(60px, 40px); }
  66%       { transform: translate(-30px, 70px); }
}

@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0); }
  40%       { transform: translate(-50px, -30px); }
  70%       { transform: translate(30px, -60px); }
}

/* Quote shimmer — ::after overlay moving highlight */
.testimonial__quote--shimmer {
  position: relative;
  overflow: hidden;
}

.testimonial__quote--shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(91,192,190,0.1) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: quote-shimmer 5s ease-in-out infinite;
  animation-delay: 2.5s;
  pointer-events: none;
}

@keyframes quote-shimmer {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}

/* ── CTA FINAL: Form border animation + particles + urgency pulse ── */
.cta-final__form-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
}

/* Spinning conic-gradient light streak behind the form */
.cta-final__form-border {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cta-final__form-border::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 250deg,
    rgba(91,192,190,0.5) 295deg,
    transparent 360deg
  );
  animation: border-spin 7s linear infinite;
  will-change: transform;
}

.cta-final__form-border::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: var(--color-bg);
  z-index: 1;
}

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


.cta-final__form {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Micro floating particles inside CTA */
.cta-final__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cta-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: rgba(91,192,190,0.2);
  will-change: transform, opacity;
}

/* Urgency bolt pulse */
.cta-final__urgency-bolt {
  display: inline-block;
  will-change: transform, opacity;
  animation: bolt-pulse 2.8s ease-in-out infinite;
}

@keyframes bolt-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); filter: drop-shadow(0 0 0px rgba(91,192,190,0)); }
  50%       { opacity: 1;   transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(91,192,190,0.6)); }
}


/* ------------------------------------------------
   18. REP BRIDGE — transition section on index.html
------------------------------------------------ */
.section--rep-bridge {
  background-color: var(--color-bg-alt);
  padding-block: 100px;
  border-top: 1px solid var(--color-border-subtle);
}

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

.rep-bridge__label {
  margin-bottom: var(--space-5);
}

.rep-bridge__heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-5);
}

.rep-bridge__sub {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: var(--line-height-normal);
}

.rep-bridge__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}

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

.rep-bridge__stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--space-2);
}

.rep-bridge__stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rep-bridge__stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  line-height: 1;
}

.rep-bridge__stat-label {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.rep-bridge__stat-divider {
  width: 1px;
  height: 52px;
  background-color: var(--color-border-subtle);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .section--rep-bridge { padding-block: 72px; }
  .rep-bridge__stats { gap: var(--space-8); }
  .rep-bridge__stat-divider { display: none; }
}


/* ------------------------------------------------
   19. SCROLL PADDING
------------------------------------------------ */
:target          { scroll-margin-top: calc(var(--nav-height) + var(--space-4)); }
section[id]      { scroll-margin-top: var(--nav-height); }


/* ------------------------------------------------
   20. MOBILE — COMPREHENSIVE OVERRIDES
   All targeted at 390px viewport (iPhone 14 base)
------------------------------------------------ */
@media (max-width: 767px) {

  /* ── Prevent horizontal overflow globally ── */
  html, body { overflow-x: hidden; }
  * { max-width: 100%; box-sizing: border-box; }

  /* ── Container ── */
  .container {
    padding-inline: 20px;
  }

  /* ── Section base — 80px vertical padding ── */
  .section {
    padding-block: 80px;
  }

  /* ── Hero ── */
  .section--hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero__heading {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 52px;
  }

  .hero__trust {
    font-size: 0.75rem;
    line-height: 1.8;
  }

  /* ── Global typography ── */
  .section-label {
    font-size: 0.65rem;
  }

  h2, .hiw__heading, .vp__heading, .niches__heading,
  .faq__heading, .testimonial__quote, .cta-final__heading {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  p, .hiw__card-desc, .vp__card-desc, .pain__body,
  .wep__card-desc, .faq__answer-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  /* ── Pain ── */
  .section--pain { padding-block: 80px; }

  /* ── HIW ── */
  .section--hiw { padding-block: 80px; }
  .hiw__cards {
    grid-template-columns: 1fr;
  }

  /* ── Value props ── */
  .section--vp { padding-block: 80px; }
  .vp__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* ── Niches ── */
  .section--niches { padding-block: 80px; }
  .niches__cards,
  .niches__cards--sixup {
    grid-template-columns: 1fr;
  }

  /* ── Testimonial stats — stack vertically ── */
  .testimonial__stats {
    flex-direction: column;
    gap: var(--space-6);
  }
  .testimonial__stat-divider { display: none; }

  /* ── CTA form ── */
  .section--cta { padding-block: 80px; }
  .cta-final__input,
  .cta-final__submit {
    min-height: 52px;
  }
  .cta-final__sub {
    font-size: 0.9rem;
  }
  .cta-final__niche-note {
    font-size: 0.7rem;
  }

  /* ── Footer ── */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
}

/* ── Extra small — 480px ── */
@media (max-width: 480px) {
  .hero__heading {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero__sub {
    font-size: 0.875rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 14px 20px;
  }
}
