/* ==========================================================================
   Market Mastery — Design Tokens
   ========================================================================== */
:root {
  /* Color */
  --bg: #0a0612;
  --bg-alt: #0f0a1a;
  --surface: #150f22;
  --surface-2: #1c1430;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f7f5fb;
  --text-dim: #b9aecf;
  --text-mute: #8c81a3;

  --purple-100: #f3e8ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-900: #3b0764;

  --gradient: linear-gradient(135deg, #c084fc 0%, #9333ea 55%, #6d28d9 100%);
  --gradient-soft: linear-gradient(135deg, rgba(192,132,252,0.16), rgba(109,40,217,0.16));
  --glow: 0 0 0 1px rgba(168,85,247,0.25), 0 20px 60px -20px rgba(147,51,234,0.55);

  --success: #34d399;

  /* Type */
  --font-heading: "Space Grotesk", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", ui-sans-serif, system-ui, sans-serif;

  /* Spacing (8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--purple-600);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--space-3); }
}

/* Tightened from --space-8: at nine sections, 96px top and bottom was costing
   nearly two full screens of empty scroll on its own. */
section { position: relative; padding: var(--space-7) 0; }
@media (max-width: 768px) {
  section { padding: var(--space-6) 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-300);
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 var(--space-6);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: var(--space-3);
  font-weight: 600;
}
.section-head p {
  margin-top: var(--space-3);
  color: var(--text-dim);
  font-size: 17px;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(168,85,247,0.4), 0 24px 70px -18px rgba(147,51,234,0.75); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--purple-500); }

.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 6, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.brand-name { line-height: 1.05; }
.brand-name span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--text-mute); }

.main-nav { display: flex; align-items: center; gap: var(--space-5); }
/* The nav's own CTA belongs to the mobile drawer only — on desktop the
   header-actions button carries it, so this one hides. */
.main-nav .btn { display: none; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text-dim); transition: color var(--dur-fast); padding: var(--space-2) 0; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(320px, 84vw); background: var(--bg-alt); border-left: 1px solid var(--border); flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 88px var(--space-4) var(--space-4); gap: var(--space-4); transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out); }
  .main-nav.is-open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,0.5); }
  .main-nav a { font-size: 18px; width: 100%; }
  .main-nav .btn { display: inline-flex; margin-top: var(--space-3); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary.desktop-only { display: none; }
}

.nav-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 90; opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out);
}
.nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
/* Header is fixed (~64px), so the +64 clears it. Trimmed from --space-8 to
   keep the "what we do" cue above the fold on common laptop heights. */
.hero { padding-top: calc(var(--space-6) + 64px); overflow: hidden; }
/* Both glows are centered so the hot spot (30% down each gradient) sits right
   behind the hero logo (~190px from the section top). */
.hero-glow {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translate(calc(-50% + var(--px, 0px)), var(--py, 0px));
  background: radial-gradient(circle at 50% 30%, rgba(147,51,234,0.35), rgba(147,51,234,0) 65%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero-glow-2 {
  top: 25px;
  left: 50%;
  width: 620px;
  height: 560px;
  background: radial-gradient(circle at 50% 30%, rgba(216,180,254,0.28), rgba(216,180,254,0) 65%);
}
/* Compact intro playthrough above the headline. No painted background here: it
   screens against the hero's own glow and page colour, so the clip's black drops
   out and the glow still reads behind the mark. */
.hero-logo {
  position: relative;
  width: min(250px, 56vw);
  margin: 0 auto var(--space-3);
  aspect-ratio: 960 / 620;
}
.hero-logo-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}
@media (max-width: 640px) { .hero-logo { width: min(230px, 58vw); } }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; margin-top: var(--space-4); }
.hero p.lead { margin-top: var(--space-4); font-size: 19px; color: var(--text-dim); max-width: 620px; margin-inline: auto; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
.hero-microcopy { margin-top: var(--space-3); font-size: 13px; color: var(--text-mute); }

/* Live-typing search pill above the headline. Fixed width so the pill doesn't
   jitter as queries type and delete; text is left-aligned inside it. */
.hero-search {
  display: inline-flex; align-items: center; gap: 10px;
  width: min(320px, 86vw);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 0 0 3px rgba(147,51,234,0.14), 0 14px 40px -18px rgba(147,51,234,0.5);
  text-align: left;
}
.hero-search svg { width: 16px; height: 16px; color: var(--purple-300); flex-shrink: 0; }
.hero-search-q { font-size: 14.5px; color: var(--text); white-space: nowrap; overflow: hidden; }
.hero-search-caret {
  display: inline-block; width: 1.5px; height: 15px; flex-shrink: 0;
  background: var(--purple-300);
  animation: phCaret 1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-search-caret { animation: none; } }

/* Real-proof chip under the CTA — the one number a visitor should leave with. */
.hero-proof {
  margin-top: var(--space-3);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-dim);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 6px 14px; border-radius: 999px;
}
.hero-proof b { color: var(--text); font-weight: 600; }
.hero-proof .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.5);
  animation: proofPulse 2s infinite;
}
@keyframes proofPulse { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@media (prefers-reduced-motion: reduce) { .hero-proof .dot { animation: none; } }

/* Quiet "what we do" cue in place of a second button — it points down the page
   rather than competing with the primary CTA above it. */
.hero-scrollcue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: var(--space-4);
  font-size: 32px; font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--dur-base) var(--ease-out);
  padding: var(--space-2);
  min-height: 44px;
}
.hero-scrollcue:hover { color: var(--purple-300); }
.hero-scrollcue svg {
  width: 28px; height: 28px;
  animation: cueNudge 2.2s var(--ease-out) infinite;
}
.hero-scrollcue:hover svg { animation-play-state: paused; }
@keyframes cueNudge {
  0%, 55%, 100% { transform: translateY(0); opacity: 0.75; }
  25% { transform: translateY(5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scrollcue svg { animation: none; }
}
   Cards
   ========================================================================== */




/* One-line replacement for the old four-card "Why us" section. */
.svc-trust {
  margin-top: var(--space-4);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3) var(--space-5);
  list-style: none;
}
.svc-trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--text-dim);
}
.svc-trust svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }


/* ==========================================================================
   Service markers — "01 / Local SEO ——" labels on the three demo sections
   ========================================================================== */
.svc-marker {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: var(--space-5);
}
.svc-marker .num {
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-marker .name {
  font-family: var(--font-heading); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.svc-marker .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
/* Inside the pinned showreel the marker shares vertical space with the grid,
   so it stays tight there. */
.showreel .svc-marker { margin-bottom: var(--space-4); }

/* One-line plain-English definition under a service marker. Unlike the
   .showreel-copy paragraph it must render at every viewport size. */
.svc-sub {
  margin: calc(-1 * var(--space-3)) 0 var(--space-4);
  font-size: 14.5px;
  color: var(--text-dim);
  max-width: 620px;
}
@media (max-width: 640px) { .svc-sub { font-size: 13.5px; } }
@media (max-width: 640px) {
  .svc-marker { gap: 10px; margin-bottom: var(--space-4); }
  .svc-marker .num { font-size: 20px; }
  .svc-marker .name { font-size: 12px; letter-spacing: 0.16em; }
}

/* ==========================================================================
   Ads — stylised search-results mock
   ========================================================================== */
.serp {
  max-width: 860px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.12), 0 40px 100px -40px rgba(147,51,234,0.4);
}
.serp-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-alt); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 11px 16px;
  color: var(--text); font-size: 15px;
}
.serp-bar svg { width: 16px; height: 16px; color: var(--purple-300); flex-shrink: 0; }

.serp-block { margin-top: var(--space-4); }
.serp-label {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple-300); margin-bottom: var(--space-3);
}
.serp-label .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  font-family: var(--font-heading); font-size: 11px; flex-shrink: 0;
}
.serp-label.muted { color: var(--text-mute); }
.serp-tag {
  margin-left: auto; letter-spacing: 0.04em; text-transform: none;
  font-size: 11px; font-weight: 600; color: var(--text-dim);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px;
}

/* Local Services Ads row. Your-business card gets the width; the two competitor
   cards stack beside it and split its height exactly, so the row has no dead
   space — the point is who dominates. */
.lsa-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-2); }
.lsa-card.is-you { grid-row: span 2; }
.lsa-card:not(.is-you) { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
.lsa-card:not(.is-you) h3 { font-size: 13px; margin-bottom: 4px; }
.lsa-card:not(.is-you) .lsa-rating { font-size: 12px; }
.lsa-card:not(.is-you) .lsa-meta { font-size: 11px; margin-top: 3px; }
/* Mobile: your-business card full width, the two competitors squeezed side by
   side below it so they stay visually small instead of stacking full width. */
@media (max-width: 700px) {
  .lsa-row { grid-template-columns: 1fr 1fr; }
  .lsa-card.is-you { grid-column: 1 / -1; grid-row: auto; }
  .lsa-card:not(.is-you) { padding: 8px 10px; }
  .lsa-card:not(.is-you) h3 { font-size: 12px; }
  .lsa-card:not(.is-you) .lsa-rating { font-size: 11px; }
  .lsa-card:not(.is-you) .lsa-meta { font-size: 10.5px; }
}
.lsa-card {
  position: relative;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-3);
}
.lsa-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.lsa-card.is-you {
  background: var(--gradient-soft);
  border-color: var(--purple-500);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.3), 0 16px 34px -14px rgba(147,51,234,0.6);
}
/* Competitors are deliberately dimmed — the point is who sits at the top. */
.lsa-card:not(.is-you) { opacity: 0.44; }
.lsa-flag {
  display: inline-block; margin-bottom: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gradient); color: #fff; padding: 3px 9px; border-radius: 999px;
}
.lsa-rating { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; }
.lsa-rating svg { width: 13px; height: 13px; color: var(--purple-300); }
.lsa-rating span { color: var(--text-mute); font-weight: 500; }
.lsa-guarantee {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 12px; font-weight: 600; color: var(--success);
}
.lsa-guarantee svg { width: 13px; height: 13px; flex-shrink: 0; }
.lsa-meta { margin-top: 6px; font-size: 12px; color: var(--text-mute); }
.lsa-call {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-3);
  background: var(--gradient); color: #fff;
  font-size: 12.5px; font-weight: 700;
  padding: 8px 15px; border-radius: 999px;
}
.lsa-call svg { width: 13px; height: 13px; }

/* Search ad */
.sad {
  background: var(--bg-alt); border: 1px solid var(--purple-500);
  border-radius: var(--radius-md); padding: var(--space-4);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.22);
}
.sad-top { font-size: 12.5px; color: var(--text-dim); }
.sad-top b { color: var(--text); font-weight: 700; }
.sad h3 { font-size: 18px; font-weight: 600; color: var(--purple-300); margin: 7px 0 6px; }
.sad-desc { font-size: 14px; color: var(--text-dim); }
.sad-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.sad-links span {
  font-size: 12px; font-weight: 600; color: var(--purple-300);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 11px;
}

/* Organic skeletons */
.serp-organic { padding-top: var(--space-3); border-top: 1px dashed var(--border-strong); }
.org { padding: 10px 0; }
.org b { display: block; height: 9px; width: 52%; border-radius: 4px; background: rgba(255,255,255,0.13); }
.org i { display: block; height: 7px; width: 76%; border-radius: 4px; background: rgba(255,255,255,0.07); margin-top: 7px; }

/* Explainer cards */
.ads-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
@media (max-width: 860px) { .ads-notes { grid-template-columns: 1fr; } }
.ads-note {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
}
.ads-note b { display: block; font-family: var(--font-heading); font-size: 16px; font-weight: 600; }
.ads-note span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text-dim); }

/* ==========================================================================
   Process / timeline
   ========================================================================== */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); position: relative; }
@media (max-width: 900px) { .process-list { grid-template-columns: 1fr 1fr; gap: var(--space-3); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }
.process-step { position: relative; padding: var(--space-3) var(--space-2); text-align: center; }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  margin-bottom: var(--space-3);
}
.process-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--text-dim); }

/* ==========================================================================
   The Math — worked-example panel
   ========================================================================== */
.math-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7); align-items: center;
}
@media (max-width: 900px) { .math-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

.math-copy h2 { font-size: clamp(28px, 4vw, 40px); margin-top: var(--space-3); font-weight: 600; }
.math-copy > p { margin-top: var(--space-3); color: var(--text-dim); font-size: 16.5px; max-width: 460px; }
.math-note { font-size: 13.5px !important; color: var(--text-mute) !important; }
.math-note em { font-style: normal; color: var(--purple-300); }

.math-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.12), 0 40px 100px -40px rgba(147,51,234,0.4);
}
@media (max-width: 640px) { .math-panel { padding: var(--space-4); } }
.math-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.math-label { font-size: 14.5px; color: var(--text-dim); }
.math-value {
  font-family: var(--font-heading); font-size: 26px; font-weight: 700; white-space: nowrap;
}
.math-value em, .math-big em { font-style: normal; font-size: 0.5em; font-weight: 600; color: var(--text-mute); }
.math-total { padding-top: var(--space-4); text-align: left; }
.math-total .math-label { display: block; }
.math-big {
  display: block; font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 64px); font-weight: 700; line-height: 1.1;
  margin: 6px 0;
}

/* ==========================================================================
   Audit / Lead form
   ========================================================================== */
.audit-section { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .audit-grid { grid-template-columns: 1fr; } }

.audit-copy { padding: var(--space-7) var(--space-6); display: flex; flex-direction: column; justify-content: center; }
.audit-copy h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; margin-top: var(--space-3); }
.audit-copy p { margin-top: var(--space-3); color: var(--text-dim); }
.audit-includes { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.audit-includes li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.audit-includes svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 1px; }

.audit-form-wrap { background: var(--surface-2); padding: var(--space-6); border-left: 1px solid var(--border); }
@media (max-width: 900px) { .audit-form-wrap { border-left: none; border-top: 1px solid var(--border); } }

.form-row { margin-bottom: var(--space-4); }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.form-row .required { color: var(--purple-400); }
.form-row input,
.form-row select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-row input::placeholder { color: var(--text-mute); }
.form-row input:focus, .form-row select:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(168,85,247,0.2); outline: none; }
.form-row .hint { margin-top: 6px; font-size: 12px; color: var(--text-mute); }
.form-row .error-msg { margin-top: 6px; font-size: 12px; color: #f87171; display: none; }
/* Network-failure message under the submit button (not inside a form-row). */
.form-send-error { margin-top: 8px; font-size: 12px; color: #f87171; display: none; }
.form-send-error.is-visible { display: block; }
.form-row.has-error input, .form-row.has-error select { border-color: #f87171; }
.form-row.has-error .error-msg { display: block; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-chip { position: relative; }
.checkbox-chip input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.checkbox-chip label {
  display: inline-flex; align-items: center; margin: 0;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-alt); font-size: 13px; font-weight: 500; color: var(--text-dim);
  transition: all var(--dur-fast) var(--ease-out); cursor: pointer; min-height: 44px;
}
.checkbox-chip input:checked + label { background: var(--gradient-soft); border-color: var(--purple-500); color: var(--purple-300); }
.checkbox-chip input:focus-visible + label { outline: 2px solid var(--purple-400); outline-offset: 2px; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-6) 0;
}
.form-success.is-visible { display: block; }
.form-success svg { width: 52px; height: 52px; color: var(--success); margin: 0 auto var(--space-3); }
.form-success h3 { font-size: 20px; margin-bottom: var(--space-2); }
.form-success p { color: var(--text-dim); font-size: 14px; }
#auditForm.is-hidden { display: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: none; border: none; color: var(--text); text-align: left;
  padding: var(--space-4); font-size: 16px; font-weight: 600; min-height: 44px;
}
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--purple-400); transition: transform var(--dur-base) var(--ease-out); }
.faq-item[data-open="true"] .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq-answer-inner { padding: 0 var(--space-4) var(--space-4); color: var(--text-dim); font-size: 14px; }

/* ==========================================================================
   Finale — self-drawing chart that resolves into the logo
   ========================================================================== */
.finale { padding: 0; }
/* Scroll distance the assembly is spread across. Long enough to feel deliberate,
   short enough not to trap anyone on the way to the footer. */
.finale-wrap { position: relative; height: 190vh; }
@media (max-width: 900px) { .finale-wrap { height: 165vh; } }
.finale-pin {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: var(--space-6) 0;
  overflow: hidden;
}
/* Touch, reduced motion, or no JS: no pinning, plain section flow. */
.finale.is-static .finale-wrap { height: auto; }
.finale.is-static .finale-pin { position: relative; min-height: 0; padding: var(--space-8) 0; }

.finale-inner { text-align: center; max-width: 760px; margin: 0 auto; }

.finale-stage {
  position: relative;
  width: min(620px, 100%);
  margin: 0 auto var(--space-5);
  aspect-ratio: 960 / 620;
  /* mix-blend-mode blends against the backdrop within its own stacking context,
     not the page behind it. Painting the page colour here gives `screen`
     something to blend into, so the clip's black resolves to exactly this colour
     and the frame becomes invisible. Must stay equal to the page background. */
  background: var(--bg);
}
/* No glow layer here on purpose: a radial gradient in a wide box doesn't reach
   transparent before the box's top and bottom edges, which showed up as exactly
   the straight-edged panel we were trying to get rid of. The clip's own render
   carries its glow. */

/* Rendered on pure black, so screen blending drops the background out entirely
   and the clip sits directly on the page — no panel, and no alpha codec needed
   (WebM alpha has no Safari support). */
.finale-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.finale-copy h2 { font-size: clamp(28px, 4.6vw, 46px); font-weight: 700; }
.finale-copy p { margin-top: var(--space-4); font-size: 18px; color: var(--text-dim); max-width: 560px; margin-inline: auto; }
.finale-copy .btn-primary { margin-top: var(--space-5); }
/* Hidden only once JS has armed the section. Without this the copy defaults to
   opacity 0, so any JS failure would erase the entire closing CTA. */
.finale.is-armed [data-finale-copy] { opacity: 0; transform: translateY(18px); }

.finale.copy-in [data-finale-copy]:nth-child(1) { animation: fnUp 620ms var(--ease-out) 0ms forwards; }
.finale.copy-in [data-finale-copy]:nth-child(2) { animation: fnUp 620ms var(--ease-out) 120ms forwards; }
.finale.copy-in [data-finale-copy]:nth-child(3) { animation: fnUp 620ms var(--ease-out) 240ms forwards; }
@keyframes fnUp { to { opacity: 1; transform: none; } }

/* Reduced motion / autoplay blocked: poster frame plus copy, no motion. */
.finale.is-static [data-finale-copy] { opacity: 1; transform: none; animation: none; }

@media (max-width: 640px) {
  .finale-stage { margin-bottom: var(--space-4); }
  .finale-copy p { font-size: 16px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-7) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-5); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: var(--space-3); color: var(--text-mute); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); margin-bottom: var(--space-3); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-dim); }
.footer-col a:hover { color: var(--purple-300); }
.social-row { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--text-dim);
  transition: all var(--dur-fast) var(--ease-out);
}
.social-row a:hover { border-color: var(--purple-500); color: var(--purple-300); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: 13px; color: var(--text-mute); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--stagger-i, 0) * 60ms); }

/* ==========================================================================
   Custom scrollbar
   ========================================================================== */
html { scrollbar-color: var(--purple-600) var(--bg-alt); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple-600), var(--purple-400)); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--purple-400); }

/* ==========================================================================
   Film grain overlay
   ========================================================================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 500ms var(--ease-out), visibility 500ms;
}
.preloader-mark {
  width: 76px;
  height: auto;
  opacity: 0;
  transform: scale(0.7);
  filter: drop-shadow(0 0 28px rgba(168,85,247,0.55));
  animation: preloaderPop 700ms var(--ease-out) forwards;
}
body.is-loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloaderPop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; }
  .preloader-mark { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9996;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-dot { width: 6px; height: 6px; background: var(--purple-300); transition: opacity 200ms; }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid var(--purple-400);
  transition: width 220ms var(--ease-out), height 220ms var(--ease-out), border-color 220ms, background 220ms, opacity 200ms;
}
.cursor-ring.is-hover { width: 58px; height: 58px; background: rgba(168,85,247,0.12); border-color: var(--purple-300); }
html.has-custom-cursor.cursor-ready .cursor-dot,
html.has-custom-cursor.cursor-ready .cursor-ring { opacity: 1; }
html.has-custom-cursor, html.has-custom-cursor a, html.has-custom-cursor button, html.has-custom-cursor input, html.has-custom-cursor label { cursor: none; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ==========================================================================
   Showreel — scroll-driven phone UI sequence (pure CSS/SVG, no video)
   ========================================================================== */
.showreel { padding: 0; }
/* Trimmed from 340vh: same animation, far less scrolling to get through it. */
.showreel-wrap { position: relative; height: 200vh; }
@media (max-width: 900px) { .showreel-wrap { height: 175vh; } }
.showreel-pin {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  padding: var(--space-6) 0;
}
.showreel.is-static .showreel-wrap { height: auto; }
.showreel.is-static .showreel-pin { position: relative; min-height: 0; padding: var(--space-8) 0; }

.showreel-grid {
  display: grid; grid-template-columns: 1fr 340px;
  gap: var(--space-7); align-items: center; width: 100%;
}
@media (max-width: 900px) {
  .showreel-grid { grid-template-columns: 1fr; gap: var(--space-4); justify-items: center; }
  .showreel-copy { text-align: center; order: 2; }
}

.showreel-copy h2 { font-size: clamp(28px, 4vw, 42px); margin-top: var(--space-3); font-weight: 600; }
.showreel-copy > p { margin-top: var(--space-3); color: var(--text-dim); max-width: 460px; }
@media (max-width: 900px) { .showreel-copy > p { margin-inline: auto; } }

.reel-steps { margin-top: var(--space-5); display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
@media (max-width: 900px) { .reel-steps { margin-inline: auto; text-align: left; } }
.reel-step {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  opacity: 0.38; transition: opacity 400ms var(--ease-out), background 400ms var(--ease-out), border-color 400ms var(--ease-out), transform 400ms var(--ease-out);
  transform: translateX(-6px);
}
.reel-step.is-active { opacity: 1; transform: none; background: var(--gradient-soft); border-color: var(--border-strong); }
.reel-step .n {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--text-mute);
  transition: background 400ms var(--ease-out), color 400ms var(--ease-out);
}
.reel-step.is-active .n { background: var(--gradient); color: #fff; }
.reel-step h4 { font-size: 15px; font-weight: 600; }
.reel-step p { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* --- phone chassis --- */
/* Sized from viewport height, not a fixed pixel width, so the pinned section
   never outgrows short viewports (small laptops, landscape tablets) and gets
   its top and bottom clipped. */
.phone {
  position: relative;
  height: min(600px, 60vh);
  aspect-ratio: 9 / 19;
  width: auto;
  max-width: 86vw;
  border-radius: 44px;
  background: #0b0714;
  border: 9px solid #1d1533;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.22), 0 40px 90px -28px rgba(147,51,234,0.6), inset 0 0 40px rgba(0,0,0,0.7);
  margin: 0 auto;
}
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; border-radius: 999px; background: #140f24; z-index: 6;
}
.phone-screen {
  position: absolute; inset: 0; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #120c20, #0b0714);
}

/* --- stacked screens --- */
.scr {
  position: absolute; inset: 0; padding: 40px 16px 16px;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(10px) scale(0.99);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  pointer-events: none;
}
.scr.is-active { opacity: 1; transform: none; }

/* screen 1 — search */
.ph-searchbar {
  display: flex; align-items: center; gap: 8px;
  background: #1b1430; border: 1px solid var(--purple-600);
  border-radius: 999px; padding: 9px 13px;
  box-shadow: 0 0 0 3px rgba(147,51,234,0.18);
}
.ph-searchbar svg { width: 14px; height: 14px; color: var(--purple-300); flex-shrink: 0; }
.ph-query { font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; }
.ph-caret {
  display: inline-block; width: 1.5px; height: 13px; background: var(--purple-300);
  vertical-align: -2px; margin-left: 1px; animation: phCaret 1s steps(1) infinite;
}
@keyframes phCaret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ph-caret { animation: none; } }
.ph-suggest { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.ph-suggest span { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.ph-suggest span:nth-child(1) { width: 78%; }
.ph-suggest span:nth-child(2) { width: 62%; }
.ph-suggest span:nth-child(3) { width: 70%; }
.ph-keys {
  margin-top: auto; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px;
}
.ph-keys i { height: 20px; border-radius: 3px; background: rgba(255,255,255,0.06); }

/* screen 2 — results */
.ph-label { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 8px; }
.ph-results { display: flex; flex-direction: column; gap: 8px; }
.ph-res {
  display: flex; gap: 9px; align-items: center;
  background: rgba(255,255,255,0.035); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
}
.ph-res.in { opacity: 1; transform: none; }
.ph-res .thumb { width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,0.09); flex-shrink: 0; }
.ph-res .lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ph-res .lines b { height: 7px; width: 62%; border-radius: 4px; background: rgba(255,255,255,0.16); }
.ph-res .lines i { height: 6px; width: 40%; border-radius: 4px; background: rgba(255,255,255,0.09); }

.ph-res.featured {
  background: var(--gradient-soft);
  border-color: var(--purple-500);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.35), 0 14px 30px -12px rgba(147,51,234,0.65);
  order: -1;
}
.ph-res.featured .thumb { background: var(--gradient); }
.ph-res.featured .name { font-size: 12px; font-weight: 700; color: #fff; }
.ph-res.featured .meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.ph-res.featured .meta svg { width: 9px; height: 9px; color: var(--purple-300); }
.ph-res.featured .meta span { font-size: 9.5px; color: var(--purple-300); }
.ph-rank {
  position: absolute; right: 9px; top: 9px;
  font-family: var(--font-heading); font-size: 9px; font-weight: 700;
  background: var(--gradient); color: #fff; padding: 2px 7px; border-radius: 999px;
}
.ph-res.featured { position: relative; }

/* screen 3 — website */
.ph-site { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); background: #0d0918; }
.ph-site-bar { display: flex; align-items: center; gap: 5px; padding: 7px 9px; background: #171029; }
.ph-site-bar em { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.ph-site-hero { padding: 16px 12px; background: radial-gradient(circle at 70% 10%, rgba(147,51,234,0.4), transparent 70%); }
.ph-site-hero b { display: block; font-family: var(--font-heading); font-size: 14px; line-height: 1.25; color: #fff; }
.ph-site-hero p { font-size: 10px; color: var(--text-dim); margin-top: 6px; }
.ph-cta {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--gradient); color: #fff; font-size: 11px; font-weight: 700;
  padding: 9px; border-radius: 999px;
}
.ph-cta svg { width: 12px; height: 12px; }
.ph-tap {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 2px solid var(--purple-300); opacity: 0; z-index: 5;
}
.ph-tap.go { animation: phTap 700ms var(--ease-out) forwards; }
@keyframes phTap {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.9); }
}
.ph-trust { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ph-trust div { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--text-dim); }
.ph-trust svg { width: 11px; height: 11px; color: var(--success); flex-shrink: 0; }

/* screen 4 — call / booked */
.ph-call { align-items: center; justify-content: center; text-align: center; }
.ph-avatar {
  width: 68px; height: 68px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: #fff;
  position: relative;
}
.ph-avatar::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.5); animation: phPulse 1.8s ease-out infinite;
}
@keyframes phPulse { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ph-avatar::after { animation: none; opacity: 0.4; } }
.ph-call .who { margin-top: 14px; font-size: 13px; font-weight: 700; color: #fff; }
.ph-call .status { margin-top: 4px; font-size: 10.5px; color: var(--purple-300); }
.ph-booked {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4);
  color: var(--success); font-size: 10.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
  opacity: 0; transform: scale(0.9); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.ph-booked.in { opacity: 1; transform: none; }
.ph-booked svg { width: 12px; height: 12px; }

/* progress rail */
.reel-rail { margin-top: var(--space-5); height: 3px; border-radius: 3px; background: rgba(255,255,255,0.1); max-width: 460px; overflow: hidden; }
@media (max-width: 900px) { .reel-rail { margin-inline: auto; } }
.reel-rail div { height: 100%; width: 0; background: var(--gradient); }

/* Stacked layout can't fit the full copy plus a tall phone inside one pinned
   viewport, so lead with the phone and reduce the copy to whichever step is
   current — it reads as a caption that changes as you scroll. Declared after
   the base rules above so these overrides actually win. */
@media (max-width: 900px) {
  .showreel-pin { padding: var(--space-4) 0; }
  .showreel-copy h2 { font-size: clamp(21px, 4.4vw, 27px); margin-top: var(--space-2); }
  .showreel-copy > p,
  .showreel-copy .eyebrow { display: none; }
  .phone { order: 1; height: min(400px, 46vh); aspect-ratio: 9 / 16; width: auto; border-width: 7px; border-radius: 34px; }
  .phone-screen { border-radius: 28px; }
  .phone::before { width: 64px; height: 15px; top: 8px; }
  .scr { padding: 30px 12px 12px; }
  .reel-steps { margin-top: var(--space-3); gap: 0; }
  .reel-step { transform: none; }
  .reel-step:not(.is-active) { display: none; }
  .reel-rail { margin-top: var(--space-3); }
}

/* The phone mock's width ranges from ~165px (short mobile viewports, where it is
   sized from 46vh) up to ~260px on desktop, and a fixed font size clips the fully
   typed query ("plumber near me" + caret) at the small end. The query scales with
   the phone screen itself via a container query so every character always fits. */
.phone-screen { container-type: inline-size; }
@media (max-width: 900px) {
  .ph-searchbar { padding: 9px 11px; gap: 7px; }
}
.ph-query { font-size: clamp(7.5px, 5.5cqw, 12.5px); }

/* Short viewports: trim the surrounding copy so the phone stays uncropped. */
@media (max-height: 800px) {
  .showreel-pin { padding: var(--space-3) 0; }
  .showreel-copy h2 { font-size: clamp(19px, 2.4vw, 24px); }
  .showreel-copy > p { display: none; }
  .reel-steps { margin-top: var(--space-3); }
  .reel-step { padding: 10px 12px; }
}


/* ==========================================================================
   Before / after site comparison — full pages, scrollable in sync
   ========================================================================== */
.ba-figure { margin: 0; }

.ba {
  position: relative;
  height: min(76vh, 760px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.16), 0 46px 120px -34px rgba(147,51,234,0.5);
}

/* Both screenshots share one scroll container, so scrolling is inherently
   in sync — no scroll-position mirroring to drift out of step. */
.ba-viewport {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-600) rgba(255,255,255,0.06);
}
.ba-viewport::-webkit-scrollbar { width: 10px; }
.ba-viewport::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.ba-viewport::-webkit-scrollbar-thumb { background: var(--purple-600); border-radius: 10px; border: 2px solid rgba(0,0,0,0.4); }

/* Height comes from the capture's own ratio so the two stay pixel-aligned. */
.ba-stack { position: relative; width: 100%; aspect-ratio: 1440 / 8270; }
.ba-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto;
  user-select: none; -webkit-user-drag: none;
}
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }

/* Overlays live outside the scroller, so they hold position while it scrolls. */
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; margin-left: -1px; z-index: 5;
  background: linear-gradient(180deg, rgba(216,180,254,0.25), var(--purple-400) 12%, var(--purple-400) 88%, rgba(216,180,254,0.25));
  pointer-events: none;
}
.ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(16,11,28,0.9);
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--purple-400);
  box-shadow: 0 0 0 6px rgba(147,51,234,0.16), 0 16px 34px -12px rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center; gap: 2px;
  color: #e9d5ff;
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none; /* horizontal drag on the grip must not scroll the page */
}
.ba-grip svg { width: 17px; height: 17px; }
.ba.is-dragging .ba-grip { border-color: var(--purple-300); box-shadow: 0 0 0 9px rgba(147,51,234,0.22); }
.ba-grip:focus-visible { outline: 3px solid var(--purple-300); outline-offset: 4px; }

.ba-badge {
  position: absolute; top: var(--space-3); z-index: 6;
  font-family: var(--font-heading); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.ba-badge-before { left: var(--space-3); background: rgba(8,5,14,0.82); color: #e6e0ee; border: 1px solid rgba(255,255,255,0.22); }
.ba-badge-after { right: calc(var(--space-3) + 12px); background: var(--gradient); color: #fff; }

.ba-scrollcue {
  position: absolute; left: 50%; bottom: var(--space-3); transform: translateX(-50%);
  z-index: 6; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(8,5,14,0.8); border: 1px solid var(--border-strong);
  color: var(--text-dim); font-size: 12.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.ba-scrollcue svg { width: 14px; height: 14px; color: var(--purple-300); }
.ba.is-engaged .ba-scrollcue { opacity: 0; }

/* Live drone-footage card over the hero region of the after capture — below
   the site's own nav, hidden once that area scrolls away (JS fade). */
.ba-live {
  position: absolute; z-index: 6;
  top: calc(var(--space-3) + 104px);
  right: calc(var(--space-3) + 12px);
  width: 224px;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: rgba(8,5,14,0.9);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.75);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.ba-live video { display: block; width: 100%; aspect-ratio: 854 / 480; object-fit: cover; }
.ba-live figcaption {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 10px;
}
.ba-live .dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--success);
  animation: proofPulse 2s infinite;
}

/* clarifying note under the frame */
.ba-note {
  margin-top: var(--space-4);
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 14px; color: var(--text-dim);
}
.ba-note svg { width: 17px; height: 17px; color: var(--purple-300); flex-shrink: 0; margin-top: 2px; }
.ba-note b { color: var(--text); font-weight: 600; }
.ba-note a {
  color: var(--purple-300); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(216,180,254,0.45);
  text-underline-offset: 3px;
}
.ba-note a:hover { color: var(--purple-100); text-decoration-color: var(--purple-300); }

/* facts + meta below */
.ba-meta {
  margin-top: var(--space-4); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: var(--space-3);
}
.ba-meta .who { font-size: 14.5px; color: var(--text-dim); }
.ba-meta .who b { color: var(--text); font-weight: 600; }
.ba-placeholder-tag {
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mute); border: 1px dashed var(--border-strong);
  padding: 5px 11px; border-radius: 999px;
}

.ba-results-head {
  margin-top: var(--space-6);
  font-size: 22px;
  font-weight: 600;
}
.ba-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
@media (max-width: 700px) { .ba-facts { grid-template-columns: 1fr; } }
.ba-fact {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
}
.ba-fact b { display: block; font-family: var(--font-heading); font-size: 16px; font-weight: 600; }
.ba-fact span { display: block; margin-top: 5px; font-size: 13.5px; color: var(--text-dim); }
.ba-footnote { margin-top: var(--space-3); font-size: 12.5px; color: var(--text-mute); }

@media (max-width: 640px) {
  .ba { height: min(64vh, 520px); }
  .ba-grip { width: 44px; height: 44px; }
  .ba-grip svg { width: 15px; height: 15px; }
  .ba-badge { font-size: 10px; padding: 5px 10px; }
  .ba-scrollcue { font-size: 11.5px; padding: 6px 11px; }
  /* Too cramped to sit over the hero at this width; the note below carries it. */
  .ba-live { display: none; }
  .ba-note { font-size: 13.5px; padding: var(--space-3); }
}

/* ==========================================================================
   Kinetic hero headline
   ========================================================================== */
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .word > span { display: inline-block; transform: translateY(115%); opacity: 0; animation: wordUp 750ms var(--ease-out) forwards; }
@keyframes wordUp { to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .word > span { transform: none; opacity: 1; animation: none; }
}

/* ==========================================================================
   Button shine sweep
   ========================================================================== */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 550ms var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* ==========================================================================
   Audit offer + two-step form
   ========================================================================== */
.audit-promise {
  margin-top: var(--space-4) !important;
  padding: var(--space-3) var(--space-4);
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 14.5px !important;
}
.audit-promise b { color: var(--text); }

.form-step.is-hidden { display: none; }
.form-progress { font-size: 14px; color: var(--text-dim); margin-bottom: var(--space-4); }
.form-progress b { color: var(--text); }
.form-backrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: 12px; }
.form-back {
  background: none; border: none; color: var(--text-dim);
  font-size: 13.5px; font-weight: 600; padding: 8px 4px; min-height: 44px;
}
.form-back:hover { color: var(--text); }

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px var(--space-3) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,6,18,0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-strong);
  transform: translateY(110%);
  transition: transform 300ms var(--ease-out);
  display: none;
}
.mobile-cta.is-visible { transform: translateY(0); }
@media (max-width: 768px) {
  .mobile-cta { display: block; }
}

/* ==========================================================================
   Zone color system
   One hue per service so sections read as distinct chunks while scrolling:
   a tinted band + hairline marks each boundary (Gestalt "common region" —
   the strongest new-chunk cue), and the stable per-service hue gives memory
   a second channel (01 SEO = brand violet, 02 Websites = cyan, 03 Ads =
   amber/gold, The Math = money green). Process and FAQ stay neutral on
   purpose — rest beats between the color bands.

   Mechanism: every component below the tokens reads var(--purple-*) /
   var(--gradient*), so overriding those custom properties on the section ID
   recolors the entire zone at once. Hero and finale are untouched (see
   HANDOFF.md — mix-blend-mode traps), and the audit form plus all primary
   CTAs stay brand purple: the conversion color never changes.
   ========================================================================== */

/* 02 — Website Design: royal blue (build / engineering) */
#work {
  --purple-100: #dbeafe;
  --purple-300: #93c5fd;
  --purple-400: #60a5fa;
  --purple-500: #3b82f6;
  --purple-600: #2563eb;
  --purple-700: #1d4ed8;
  --gradient: linear-gradient(135deg, #93c5fd 0%, #2563eb 55%, #1e40af 100%);
  --gradient-soft: linear-gradient(135deg, rgba(147,197,253,0.14), rgba(30,64,175,0.20));
  --glow: 0 0 0 1px rgba(96,165,250,0.25), 0 20px 60px -20px rgba(37,99,235,0.55);
}

/* 03 — Ad Management: magenta/fuchsia (hot, attention — what ads are for) */
#ads {
  --purple-100: #fae8ff;
  --purple-300: #f0abfc;
  --purple-400: #e879f9;
  --purple-500: #d946ef;
  --purple-600: #c026d3;
  --purple-700: #a21caf;
  --gradient: linear-gradient(135deg, #e879f9 0%, #c026d3 55%, #86198f 100%);
  --gradient-soft: linear-gradient(135deg, rgba(240,171,252,0.13), rgba(134,25,143,0.18));
  --glow: 0 0 0 1px rgba(232,121,249,0.25), 0 20px 60px -20px rgba(192,38,211,0.55);
}

/* How It Works: warm orange (the only warm temperature on the page) */
#process {
  --purple-100: #ffedd5;
  --purple-300: #fdba74;
  --purple-400: #fb923c;
  --purple-500: #f97316;
  --purple-600: #ea580c;
  --purple-700: #c2410c;
  --gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 55%, #9a3412 100%);
  --gradient-soft: linear-gradient(135deg, rgba(251,146,60,0.13), rgba(154,52,18,0.18));
  --glow: 0 0 0 1px rgba(251,146,60,0.25), 0 20px 60px -20px rgba(234,88,12,0.55);
}

/* The Math: green (the money argument) */
#math {
  --purple-100: #d1fae5;
  --purple-300: #6ee7b7;
  --purple-400: #34d399;
  --purple-500: #10b981;
  --purple-600: #059669;
  --purple-700: #047857;
  --gradient: linear-gradient(135deg, #6ee7b7 0%, #059669 55%, #065f46 100%);
  --gradient-soft: linear-gradient(135deg, rgba(110,231,183,0.13), rgba(6,95,70,0.18));
  --glow: 0 0 0 1px rgba(52,211,153,0.25), 0 20px 60px -20px rgba(5,150,105,0.55);
}

/* Zone bands: a soft top glow + faint fill in the zone hue, with a colored
   hairline at the boundary. Alphas stay low so the dark aesthetic holds and
   nothing fights the demos inside. */
#showreel {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(168,85,247,0.16), transparent 70%),
    linear-gradient(180deg, rgba(168,85,247,0.09), rgba(168,85,247,0.025));
}
/* Holds its blue all the way down (user request) instead of fading out before
   the results cards at the bottom of the section. */
#work {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(59,130,246,0.15), transparent 70%),
    linear-gradient(180deg, rgba(59,130,246,0.09), rgba(59,130,246,0.15));
}
/* Same treatment as #work: holds its color and deepens toward the bottom. */
#ads {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(217,70,239,0.13), transparent 70%),
    linear-gradient(180deg, rgba(217,70,239,0.09), rgba(217,70,239,0.15));
}
#process {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(251,146,60,0.12), transparent 70%),
    linear-gradient(180deg, rgba(251,146,60,0.08), rgba(251,146,60,0.13));
}

/* Same treatment as #work and #ads: holds its color, deepens toward the bottom. */
#math {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(52,211,153,0.13), transparent 70%),
    linear-gradient(180deg, rgba(52,211,153,0.09), rgba(52,211,153,0.15));
}

/* Hard boundary lines. Every section edge gets a real divider so no boundary
   passes unmarked: zones draw a 2px line in their accent with a glow beneath;
   neutral sections (process, audit, FAQ) get a clean white hairline. The line
   fades only at the outer edges so it reads as a deliberate rule, not a border
   artifact. */
/* Audit + FAQ close the page in brand violet: the scroll opens violet at the
   hero and ends violet into the finale. Audit band is stronger, FAQ softer,
   so the two still read as separate zones. */
#audit {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(168,85,247,0.14), transparent 70%),
    linear-gradient(180deg, rgba(168,85,247,0.09), rgba(168,85,247,0.15));
}
#faq {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(168,85,247,0.09), transparent 70%),
    linear-gradient(180deg, rgba(168,85,247,0.055), rgba(168,85,247,0.10));
}

/* Closing edge of the FAQ zone: an ::after on #faq rather than a ::before on the
   finale, so the finale (mix-blend-mode territory, see HANDOFF) stays untouched. */
#faq::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-400) 10%, var(--purple-400) 90%, transparent);
  opacity: 0.65;
  box-shadow: 0 -2px 22px 1px color-mix(in srgb, var(--purple-400) 40%, transparent);
}

#showreel::before, #work::before, #ads::before, #process::before, #math::before,
#audit::before, #faq::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-400) 10%, var(--purple-400) 90%, transparent);
  opacity: 0.65;
  box-shadow: 0 2px 22px 1px color-mix(in srgb, var(--purple-400) 40%, transparent);
}

/* Literal purple shadows inside zone-only components, switched to the zone hue
   (they couldn't inherit — they were hardcoded rgba values). */
#ads .serp { box-shadow: 0 0 0 1px rgba(232,121,249,0.12), 0 40px 100px -40px rgba(192,38,211,0.35); }
#ads .lsa-card.is-you { box-shadow: 0 0 0 1px rgba(232,121,249,0.3), 0 16px 34px -14px rgba(192,38,211,0.5); }
#ads .sad { box-shadow: 0 0 0 1px rgba(232,121,249,0.22); }
#math .math-panel { box-shadow: 0 0 0 1px rgba(52,211,153,0.12), 0 40px 100px -40px rgba(5,150,105,0.35); }
#work .ba-line {
  background: linear-gradient(180deg, rgba(147,197,253,0.25), var(--purple-400) 12%, var(--purple-400) 88%, rgba(147,197,253,0.25));
}

/* Condensed vertical rhythm for the ads zone (user request): tighter head
   margin, mock padding, and note spacing so the section scrolls shorter
   without losing anything. */
#ads .section-head { margin-bottom: var(--space-5); }
#ads .section-head h2 { margin-top: var(--space-2); }
#ads .serp { padding: var(--space-3); }
#ads .serp-block { margin-top: var(--space-3); }
#ads .sad { padding: var(--space-3); }
#ads .serp-organic .org { padding: 7px 0; }
#ads .ads-notes { margin-top: var(--space-4); }
#ads .svc-trust { margin-top: var(--space-3); }

/* Accent-tinted marker rules so the 01/02/03 line carries the zone hue too. */
.svc-marker .line { background: linear-gradient(90deg, color-mix(in srgb, var(--purple-400) 40%, transparent), transparent); }

/* The payoff number in money green — the one place the math zone gets loud. */
#math .math-big {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Nav dots: the menu maps to the zones (dual coding — hue is learned once in
   the nav, recognized again at the section). FAQ/neutral links get no dot. */
.main-nav a[href="#showreel"]::before,
.main-nav a[href="#work"]::before,
.main-nav a[href="#ads"]::before,
.main-nav a[href="#math"]::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
}
.main-nav a[href="#showreel"]::before { background: #c084fc; }
.main-nav a[href="#work"]::before { background: #60a5fa; }
.main-nav a[href="#ads"]::before { background: #e879f9; }
.main-nav a[href="#math"]::before { background: #34d399; }

/* Primary CTAs are pinned to literal brand purple so zone overrides can never
   recolor the conversion action. */
.btn-primary {
  --gradient: linear-gradient(135deg, #c084fc 0%, #9333ea 55%, #6d28d9 100%);
  --glow: 0 0 0 1px rgba(168,85,247,0.25), 0 20px 60px -20px rgba(147,51,234,0.55);
}
