/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  --bg:           #080E14;
  --bg-surface:   #0D1822;
  --bg-card:      #111E2A;
  --border:       rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.05);
  --accent:       #38C4F0;
  --accent-hover: #1AADD9;
  --accent-dim:   rgba(56,196,240,0.10);
  --accent-glow:  rgba(56,196,240,0.22);
  --text:         #EDF4F8;
  --text-muted:   #7A92A3;
  --text-dim:     #3D5263;
  --white:        #FFFFFF;
  --danger:       #E05252;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-head:    'Anybody', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --nav-h:        72px;
  --container:    1200px;
  --radius:       4px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.45, 0, 0.55, 1);

  --dot-grid:       rgba(255,255,255,0.028);
  --accent-subtle:  rgba(56,196,240,0.04);
  --divider-glow:   rgba(56,196,240,0.18);
  --grain-opacity:  0.035;
}

/* ============================================================
   BASE
============================================================ */
html { font-size: 16px; }

body.ccai-body {
  background: var(--bg);
  background-image: radial-gradient(circle, var(--dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Film grain overlay */
body.ccai-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   UTILITY CLASSES
============================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Glowing section divider */
.section-divider {
  height: 1px;
  border: none;
  margin: 0;
  background: radial-gradient(ellipse 60% 100% at center, var(--divider-glow), transparent);
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.section-heading em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-amber {
  background: var(--accent);
  color: #07111A;
  border-color: var(--accent);
}
.btn-amber:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #07111A;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

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

.btn-lg   { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; }

/* ============================================================
   NAVIGATION
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s var(--ease-out), border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: 0 1px 0 0 transparent, 0 1px 0 0 var(--divider-glow);
  background-clip: padding-box;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  flex-shrink: 0;
}
.logo-client  { color: var(--accent); }
.logo-connect { color: var(--text); }
.logo-ai      { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-phone {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(20px, 5vw, 60px) 32px;
  z-index: 999;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu ul a { display: block; padding: 12px 0; font-size: 18px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-phone { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }

/* ============================================================
   HERO
============================================================ */

/* Scroll runway — sticky hero stays in view while layers animate */
.hero-scroll-wrapper {
  height: 280vh;
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: clamp(48px, 7vw, 88px);
  padding-left: clamp(28px, 6vw, 100px);
  padding-right: clamp(28px, 6vw, 100px);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  transform-origin: center center;
}


.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,14,20,0.28) 0%,
    transparent 18%,
    transparent 44%,
    rgba(8,14,20,0.60) 72%,
    rgba(8,14,20,0.88) 100%
  );
  z-index: 2;
}

/* Hero sequence — hidden, replaced by clean centered layout */
.hero__sequence { display: none; }

/* Hero sequence — animated phone ring story (preserved for reference) */
.hero__sequence {
  position: absolute;
  right: clamp(40px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  min-width: 220px;
}

.seq-step {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 20px;
}

.seq-step--hidden { opacity: 0; }

/* Phone icon with pulse ring */
.phone-icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon svg { width: 40px; height: 40px; position: relative; z-index: 2; }

.phone-ring-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ring-pulse 1.5s ease-out infinite;
}

@keyframes ring-pulse {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.missed-badge {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--danger);
  border: 2px solid var(--danger);
  padding: 8px 20px;
  position: relative;
}
.missed-badge::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(224,82,82,0.3);
}

.cost-display {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}
.cost-currency {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  margin-top: 6px;
}
.cost-number {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--accent);
  letter-spacing: -2px;
}

.seq-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  max-width: 200px;
  line-height: 1.4;
}
.seq-label--muted { color: var(--text-dim); }

.week-math {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.week-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.week-op { color: var(--text-dim); }
.week-result { color: var(--accent); font-size: 16px; }
.week-row--month { font-size: 13px; gap: 6px; }
.week-month-label { color: var(--text-dim); }
.week-month-num { font-family: var(--font-display); font-size: 32px; color: var(--accent); letter-spacing: -1px; line-height: 1; }
.week-month-desc { color: var(--text-muted); }

/* Hero content — fades out on scroll, driven by JS */
.hero__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 720px;
  will-change: opacity, transform;
}

/* End-of-scroll reveal CTA */
.hero__end-cta {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(24px, 5vw, 80px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.hero__end-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero__end-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 40px;
  text-wrap: balance;
}

.btn-xl {
  padding: 20px 52px;
  font-size: 18px;
  letter-spacing: 0.5px;
}

/* Extra-large CTA for end-of-hero reveal */
.btn-hero-end {
  padding: 26px 72px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 4px;
  animation: hero-end-pulse 2.2s ease-out infinite;
}

@keyframes hero-end-pulse {
  0%   { box-shadow: 0 0 0 0px rgba(56,196,240,0.55), 0 8px 40px rgba(56,196,240,0.25); }
  60%  { box-shadow: 0 0 0 18px rgba(56,196,240,0),   0 8px 40px rgba(56,196,240,0.25); }
  100% { box-shadow: 0 0 0 0px rgba(56,196,240,0),    0 8px 40px rgba(56,196,240,0.25); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0.9;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* Blinking cursor after eyebrow */
.hero__eyebrow::after {
  content: '_';
  animation: blink-cursor 1s step-end infinite;
}

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

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(68px, 10.5vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
  text-wrap: balance;
}

.hero__headline em {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
  font-size: 0.72em;
  letter-spacing: 0px;
  text-shadow: 0 0 40px rgba(56,196,240,0.35), 0 0 80px rgba(56,196,240,0.15);
}

/* Single CTA button in hero — direct child of .hero__content */
.hero__content .btn {
  margin-top: 8px;
}

/* Pulsing ring on hero CTA */
.hero__content .btn-amber {
  animation: hero-btn-pulse 2.5s ease-out infinite;
  box-shadow: 0 6px 32px rgba(56,196,240,0.3);
}

@keyframes hero-btn-pulse {
  0%   { box-shadow: 0 6px 32px rgba(56,196,240,0.3), 0 0 0 0px rgba(56,196,240,0.55); }
  65%  { box-shadow: 0 6px 32px rgba(56,196,240,0.3), 0 0 0 20px rgba(56,196,240,0); }
  100% { box-shadow: 0 6px 32px rgba(56,196,240,0.3), 0 0 0 0px rgba(56,196,240,0); }
}

/* Film grain texture on hero for cinematic depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* Hero headline line-reveal — JS splits <br> tags into these wrappers */
.hero-line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-line-inner {
  display: block;
  will-change: transform;
}

/* ============================================================
   MARQUEE BANDS
============================================================ */
.marquee-band {
  background: var(--bg-surface);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
}

.marquee-row {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.marquee-content {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  padding-right: 0;
  user-select: none;
}

/* ============================================================
   CALCULATOR SECTION
============================================================ */
.calc-section {
  padding: clamp(80px, 8vw, 120px) 0;
  background: var(--bg-surface);
}

/* Section headings use Instrument Serif for editorial contrast */
.calc-section .section-heading,
.services-section .section-heading,
.how-section .section-heading,
.niche-section .section-heading,
.features-section .section-heading,
.pricing-section .section-heading,
.proof-section .section-heading,
.about-section .section-heading,
.faq-section .section-heading,
.contact-section .section-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.calc-input-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.slider-val {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 1px;
}

.ccai-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  position: relative;
}

.ccai-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 14px var(--accent-glow);
  transition: transform 0.15s, box-shadow 0.2s;
}
.ccai-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--accent), 0 0 22px rgba(56,196,240,0.5);
}

.ccai-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 14px var(--accent-glow);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.calc-result {
  background: var(--bg-card);
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 40px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(56,196,240,0.04) inset;
}

.calc-result__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.calc-result__number {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
  transition: all 0.2s;
}

.calc-result__sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.5;
}

.calc-footnote {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SPOTLIGHT CARDS — shared pattern for services/features/pricing
============================================================ */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(56,196,240,0.07), transparent 70%);
  z-index: 1;
}

.spotlight-card:hover::before { opacity: 1; }

/* ============================================================
   SERVICES
============================================================ */
.services-section {
  padding: clamp(80px, 8vw, 120px) 0;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 36px;
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(56,196,240,0.22);
  transform: translateY(-3px);
}

.service-card--primary {
  border-color: rgba(56,196,240,0.18);
  border-left: 3px solid var(--accent);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}

.service-card__icon {
  margin-bottom: 20px;
  color: var(--accent);
  opacity: 0.8;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}

.service-card--primary h3 {
  font-size: clamp(24px, 2.8vw, 32px);
}

.service-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card--primary p {
  font-size: 16px;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.service-card__list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* System diagram inside features section */
.system-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  margin-bottom: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.system-diagram::-webkit-scrollbar { display: none; }

.sys-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 20px 16px;
}

.sys-step__num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: block;
}

.sys-step__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.sys-step__label small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.sys-step--accent .sys-step__label { color: var(--text); }
.sys-step--result .sys-step__label { color: var(--accent); font-weight: 600; }

.sys-arrow {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
  padding: 0 4px;
}

/* ============================================================
   HOW IT WORKS
============================================================ */
.how-section {
  padding: clamp(80px, 8vw, 120px) 0;
}

/* ── Sticky Stack (How It Works) ── */
.stack-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-top: 56px;
  align-items: start;
}

.stack-visual {
  position: sticky;
  top: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-visual-state {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stack-visual-state.stack-state--active {
  opacity: 1;
  pointer-events: auto;
}

.stack-step-bg {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.06;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -4px;
}

.stack-visual-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

.stack-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-step-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  opacity: 0.4;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s;
}

.stack-step-card.stack-step--active {
  opacity: 1;
  transform: translateY(0);
  border-left-color: var(--accent);
}

.step-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.25;
  display: block;
}

.stack-step-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.stack-step-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Mobile: disable sticky, stack vertically */
@media (max-width: 768px) {
  .stack-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stack-visual {
    position: relative;
    top: 0;
    min-height: 160px;
  }
  .stack-step-card {
    opacity: 1;
    transform: none;
  }
}

.how-footnote {
  margin-top: 48px;
  text-align: center;
}
.footnote-line {
  display: inline-block;
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  padding: 16px 32px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   WHO IT'S FOR
============================================================ */
.niche-section {
  padding: clamp(80px, 8vw, 120px) 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.niche-section::before,
.niche-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.niche-section::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 196, 240, 0.08) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.niche-section::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 196, 240, 0.06) 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
}

.niche-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: -16px;
  margin-bottom: 40px;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* ── Flip Card ── */
.flip-card {
  height: 320px;
  perspective: 900px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}

.flip-card:hover {
  transform: translateY(-4px);
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.16, 1, .3, 1);
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.flip-front {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  justify-content: flex-end;
}

.flip-back {
  background: rgba(56, 196, 240, 0.10);
  border: 1px solid rgba(56, 196, 240, 0.30);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(56, 196, 240, 0.55),
    inset 0 -1px 0 rgba(56, 196, 240, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: rotateY(180deg);
  gap: 16px;
}

.niche-num {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  display: block;
  letter-spacing: -1px;
  position: absolute;
  top: 16px;
  right: 20px;
}

.niche-icon {
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}

.flip-front h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.flip-front__hint {
  font-size: 13px;
  font-style: italic;
  color: var(--accent);
  opacity: 0.8;
  line-height: 1.5;
  margin: 0;
}

.flip-back__pain {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.niche-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.niche-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.niche-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* ============================================================
   FEATURES
============================================================ */
.features-section {
  padding: clamp(80px, 8vw, 120px) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px 28px;
  background: var(--bg-card);
  transition: background 0.2s;
}

/* Featured first item — spans full width, editorial scale */
.feature-item:first-child {
  grid-column: 1 / -1;
  padding: 44px 40px;
  gap: 28px;
  align-items: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.feature-item:first-child .feature-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.feature-item:first-child h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.feature-item:first-child p {
  font-size: 15px;
  max-width: 640px;
}

.feature-item:hover { background: rgba(28,26,24,0.9); }

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  margin-top: 2px;
  transition: background 0.2s;
}

.feature-item:hover .feature-icon {
  background: radial-gradient(circle, rgba(56,196,240,0.18), var(--accent-dim));
}

.feature-item h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   PRICING
============================================================ */
.pricing-section {
  padding: clamp(80px, 8vw, 120px) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Niche selector */
.niche-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.niche-btn {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.niche-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.niche-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #07111A;
}

@keyframes niche-pulse {
  0%, 100% { border-color: var(--border); box-shadow: none; }
  50% { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
}

.niche-selector.is-pulsing .niche-btn { animation: niche-pulse 2s ease-in-out infinite; }
.niche-selector.is-pulsing .niche-btn:nth-child(2) { animation-delay: 0.2s; }
.niche-selector.is-pulsing .niche-btn:nth-child(3) { animation-delay: 0.4s; }

/* Service pricing cards */
.services-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}

.service-pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.service-pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 196, 240, 0.3);
}

.service-pricing-core-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.service-pricing-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

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

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-pricing-price {
  margin: 24px 0;
  min-height: 44px;
  display: flex;
  align-items: flex-start;
}

.price-niche-prompt {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  align-self: center;
}

.price-niche-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-niche-group[hidden] { display: none; }

.price-niche-value {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.price-setup-fee {
  font-size: 12px;
  color: var(--text-muted);
}

/* Pricing modal */
.pricing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 20, 0.88);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pricing-modal-overlay[hidden] { display: none; }

.pricing-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.25s var(--ease-out);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color 0.15s;
}

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

.modal-niche-prompt {
  text-align: center;
  padding: 20px 0 10px;
}

.modal-niche-prompt p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 15px;
}

.modal-niche-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-right: 32px;
}

.modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.modal-price {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-setup-fee {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-pairing {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 24px;
}

.modal-pairing:empty { display: none; }

.modal-cta { width: 100%; text-align: center; }

/* Total Presence bundle card */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.bundle-card {
  margin-top: 24px;
  background: var(--bg-card);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius);
  padding: 36px 40px;
  position: relative;
  transition: transform 0.2s;
  overflow: visible;
}

.bundle-card:hover { transform: translateY(-4px); }

.bundle-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    var(--accent) 15%,
    var(--accent-glow) 30%,
    transparent 45%
  );
  z-index: -1;
  animation: rotate-border 4s linear infinite;
}

@keyframes rotate-border {
  to { --border-angle: 360deg; }
}

.bundle-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bundle-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.bundle-name {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.bundle-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.pricing-footnote {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   SOCIAL PROOF
============================================================ */
.proof-section {
  padding: clamp(80px, 8vw, 120px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
  margin-bottom: 60px;
}

.stat-item {
  background: var(--bg-card);
  padding: 40px 28px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

/* Odometer digit strips */
.stat-num--odometer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stat-odo-static {
  line-height: 1;
}
.stat-odo-digit {
  overflow: hidden;
  height: 1em;
  display: inline-block;
}
.stat-odo-strip {
  display: flex;
  flex-direction: column;
}
.stat-odo-strip span {
  height: 1em;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.testimonial-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  box-shadow: inset 0 0 30px rgba(56,196,240,0.06);
}

.testimonial-coming { max-width: 480px; margin: 0 auto; }

.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 80px;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 20px;
  display: block;
}

.testimonial-label {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.testimonial-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.testimonial-attribution {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 28px;
}

/* ============================================================
   ABOUT
============================================================ */
.about-section {
  padding: clamp(80px, 8vw, 120px) 0;
  background: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 80px;
  align-items: center;
}

/* Editorial serif for the main about paragraph */
.about-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px !important;
  color: var(--text) !important;
  line-height: 1.75 !important;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 540px;
}

.about-footer-line {
  font-family: var(--font-mono);
  font-size: 12px !important;
  color: var(--text-dim) !important;
  letter-spacing: 1px;
  margin-bottom: 28px !important;
}

/* Founder card placeholders */
.founder-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.2s;
}

.founder-card:hover {
  border-color: var(--accent-glow);
  transform: translateX(4px);
}

.founder-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.6;
  /* Drop-in ready: replace with <img> inside this div */
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============================================================
   FAQ
============================================================ */
.faq-section {
  padding: clamp(80px, 8vw, 120px) 0;
}

.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 800px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-left-color 0.25s, box-shadow 0.25s;
}

.faq-item:has(.faq-item__question[aria-expanded="true"]) {
  border-left-color: var(--accent);
  box-shadow: -4px 0 16px var(--accent-dim);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  transition: color 0.2s;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  transition: background 0.2s, transform 0.2s;
}

.faq-icon::before {
  width: 10px; height: 1.5px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px; height: 10px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s;
}

.faq-item__question[aria-expanded="true"] .faq-icon {
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-item__question[aria-expanded="true"] .faq-icon::before { background: var(--accent); }
.faq-item__question[aria-expanded="true"] .faq-icon::after  { background: var(--accent); }

.faq-item__answer {
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.faq-item__answer[hidden] { display: none; }

.contact-section {
  border-top: none;
}

.faq-item__answer-inner {
  padding: 20px 28px 24px;
}

.faq-item__answer-inner p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   CONTACT / BOOKING
============================================================ */
.contact-section {
  padding: clamp(80px, 8vw, 120px) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

/* Service context banner — shown when client arrives from a pricing card */
.booking-context-banner {
  display: none;
}
.booking-context-banner.is-visible {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 196, 240, 0.25);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}
.booking-context-banner svg {
  flex-shrink: 0;
  color: var(--accent);
}
#booking-context-text {
  flex: 1;
  color: var(--text);
}
#booking-context-text::before {
  content: '';
  display: inline;
}
.booking-context-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.booking-context-clear:hover { color: var(--text); }

/* Meeting type selector tabs */
.booking-tabs {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.booking-tab {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: var(--font-body);
  text-align: center;
}

.booking-tab svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.booking-tab:hover {
  border-color: rgba(56,196,240,0.3);
  color: var(--text);
}
.booking-tab:hover svg { opacity: 1; }

.booking-tab.is-active {
  border-color: var(--accent);
  border-top-width: 2px;
  color: var(--text);
  background: rgba(56,196,240,0.05);
}
.booking-tab.is-active svg { opacity: 1; color: var(--accent); }

.booking-tab__label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.booking-tab__meta {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1;
}
.booking-tab.is-active .booking-tab__meta { color: var(--text-muted); }

/* Cal.com embed container */
.booking-embed-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
  height: 700px;
  overflow: hidden;
}

/* All panels stacked — visibility switch keeps dimensions intact for Cal.com */
.cal-panel {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.cal-panel.is-active {
  visibility: visible;
  pointer-events: auto;
}

/* Phone fallback */
.booking-phone-fallback {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 24px;
}
.booking-phone-fallback a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.booking-phone-fallback a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .booking-tabs { gap: 8px; }
  .booking-tab { min-width: calc(50% - 8px); padding: 16px 12px; }
}

@media (max-width: 480px) {
  .booking-tab { min-width: 100%; flex-direction: row; justify-content: flex-start; gap: 12px; }
  .booking-tab__label, .booking-tab__meta { text-align: left; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #0A0A09;
  border-top: none;
  padding-top: 60px;
  box-shadow: 0 -1px 0 0 var(--divider-glow);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: 1px;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-location {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  justify-content: end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-hours {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-dim);
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer-legal a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-muted); }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .nav-phone { display: none; }

  .stack-container { grid-template-columns: 1fr; }
  .stack-visual { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card--primary { grid-row: auto; }

  .niche-grid,
  .features-grid,
  .services-pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { gap: 48px; }

  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid > :last-child { grid-column: 1 / -1; }

  .hero__sequence { display: none; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions { display: none; }

  .nav-hamburger { display: flex; }

  .calc-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .niche-grid,
  .features-grid,
  .services-pricing-grid {
    grid-template-columns: 1fr;
  }

  .bundle-card-inner { grid-template-columns: 1fr; gap: 28px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .founder-cards { justify-content: center; }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid > :last-child { grid-column: 1; }

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

  .footer-links { grid-template-columns: repeat(2, 1fr); }

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

  .form-row { grid-template-columns: 1fr; }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { text-align: center; }

  /* ── Hero ── */
  .hero-scroll-wrapper { height: 180vh; }
  .hero__headline { font-size: clamp(46px, 12vw, 68px); }
  .hero { padding-bottom: 40px; }
  .hero__scroll-hint { display: none; }

  /* ── Section spacing ── */
  .calc-section,
  .services-section,
  .how-section,
  .niche-section,
  .features-section,
  .pricing-section,
  .proof-section,
  .about-section,
  .faq-section,
  .contact-section { padding: 56px 0; }

  /* ── Typography ── */
  .section-heading { font-size: clamp(26px, 7vw, 36px); }
  .section-sub { font-size: 15px; margin-bottom: 32px; max-width: 100%; }

  /* ── Cards ── */
  .service-card { padding: 24px 20px; }
  .stack-step-card { padding: 20px 20px; }
  .service-pricing-card { padding: 24px 20px; }
  .faq-item__question { padding: 18px 20px; font-size: 15px; }
  .faq-answer { padding: 0 20px 18px; }

  /* ── Touch targets & buttons ── */
  .btn { min-height: 44px; padding: 12px 22px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
  .btn-xl { padding: 16px 32px; font-size: 16px; }
  .btn-hero-end { padding: 18px 40px; font-size: 18px; }
  .niche-btn { padding: 10px 16px; font-size: 12px; }

  /* ── Misc ── */
  .faq-list { margin-top: 32px; }
  .stack-container { margin-top: 32px; }
  .services-grid { margin-top: 32px; }
  .calc-result__number { font-size: clamp(40px, 12vw, 64px); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr; }

  /* ── Small phone extras ── */
  .section-heading { font-size: clamp(24px, 7vw, 30px); }
  .hero__headline { font-size: clamp(40px, 11vw, 52px); }
  .service-card { padding: 20px 16px; }
  .service-pricing-card { padding: 20px 16px; }
  .btn { min-height: 48px; }
  .niche-selector { gap: 8px; }
  .niche-btn { padding: 8px 14px; font-size: 11px; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item {
    opacity: 1;
    transform: none;
  }
  body.ccai-body::after { display: none; }
  .marquee-band { display: none; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
  .site-header,
  .hero__scroll-hint,
  .hero__sequence { display: none; }
  body { background: #fff; color: #000; }
}
