/* ==========================================================================
   SiteIQ Studio — Shared Stylesheet
   Light-mode editorial aesthetic. Plus Jakarta Sans (display) + DM Sans (body) + Fraunces (italic accents).
   Mirrors the roofing audit funnel design system. True blue accent (#037BCF).
   ========================================================================== */

/* ── THEME VARIABLES ─────────────────────────────────────────────────────── */
:root {
  /* Surfaces — flipped to light */
  --bg:             #ffffff;
  --bg-2:           #fafafa;
  --bg-3:           #f5f5f7;
  --bg-4:           #ebebef;
  --surface-light:  #ffffff;
  --surface-light-2:#f5f5f7;

  /* Text — dark on light */
  --text:           #0a0a0a;
  --text-mute:      #5a5f6e;
  --text-dim:       #8389a0;
  --text-ink:       #0a0a0a;
  --text-ink-mute:  #5a5f6e;

  /* Accent (true blue — matches roofing funnel) */
  --accent:         #037BCF;
  --accent-2:       #339FDF;
  --accent-3:       #0265A8;
  --accent-glow:    rgba(3,123,207,.45);
  --accent-soft:    rgba(3,123,207,.10);

  /* Borders — flipped alpha to dark */
  --border:         rgba(10,10,10,.08);
  --border-strong:  rgba(10,10,10,.14);
  --border-accent:  rgba(3,123,207,.4);
  --border-ink:     rgba(10,10,10,.08);

  /* Fonts */
  --font-display:   'Plus Jakarta Sans','Satoshi','General Sans',ui-sans-serif,system-ui,sans-serif;
  --font-body:      'DM Sans',ui-sans-serif,system-ui,-apple-system,sans-serif;
  --font-serif:     'Fraunces',Georgia,serif;

  /* Spacing */
  --container:      1280px;
  --section-y:      clamp(84px, 11vw, 160px);
  --section-y-sm:   clamp(56px, 8vw, 96px);

  /* Radii */
  --r-sm:           10px;
  --r:              16px;
  --r-md:           20px;
  --r-lg:           24px;
  --r-xl:           32px;
  --r-pill:         999px;

  /* Shadows & glows — softened for light bg */
  --shadow-sm:      0 1px 2px rgba(10,10,10,.05);
  --shadow:         0 8px 24px -8px rgba(10,10,10,.10), 0 2px 6px rgba(10,10,10,.04);
  --shadow-lg:      0 30px 60px -24px rgba(10,10,10,.18), 0 10px 24px -12px rgba(10,10,10,.08);
  --glow-accent:    0 0 40px rgba(3,123,207,.20);
  --glow-accent-lg: 0 20px 60px -8px rgba(3,123,207,.30), 0 0 0 1px rgba(3,123,207,.25);

  /* Easing */
  --ease:           cubic-bezier(.16,1,.3,1);
  --ease-in-out:    cubic-bezier(.65,0,.35,1);
  --dur:            .4s;
  --dur-slow:       .7s;
}

/* ── RESET / BASE ────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.005em;
}
/* Removed: fixed-position grain overlay with mix-blend-mode caused severe scroll jank
   on every frame. On light-mode white bg the grain was imperceptible (opacity .015)
   anyway, so the tradeoff was all cost, no benefit. */
img,svg { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input,textarea,select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: -0.02em; line-height: 1.25; }
p  { color: var(--text-mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 60%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section { padding: var(--section-y) 0; position: relative; }
.section-sm { padding: var(--section-y-sm) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p  { font-size: 1.1rem; line-height: 1.65; max-width: 620px; margin: 0 auto; }

/* Light-theme section (pricing) */
.section.light {
  background: var(--surface-light);
  color: var(--text-ink);
}
.section.light h1, .section.light h2, .section.light h3 { color: var(--text-ink); }
.section.light p { color: var(--text-ink-mute); }
.section.light .eyebrow { color: var(--accent-3); }
.section.light .eyebrow::before { background: linear-gradient(90deg, transparent, var(--accent-3)); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.005em;
  border-radius: var(--r);
  transition: all .25s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: var(--glow-accent);
}
.btn-primary:hover {
  background: var(--accent-3);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(3,123,207,.5);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  opacity: 0;
  z-index: -1;
  filter: blur(14px);
  transition: opacity .3s var(--ease);
}
.btn-primary:hover::after { opacity: .75; }

.btn-secondary {
  background: #ffffff;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Inverted primary on light sections */
.section.light .btn-primary { box-shadow: 0 10px 30px rgba(3,123,207,.25); }

/* Ghost / link-style */
.btn-ghost {
  padding: 6px 0;
  color: var(--accent-2) !important;
  font-weight: 600;
  font-size: .95rem;
}
.btn-ghost:hover { color: var(--text) !important; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: all .35s var(--ease);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(10,10,10,.04), 0 8px 24px -16px rgba(10,10,10,.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; transition: opacity .2s; }
.nav-logo:hover { opacity: .8; }
.nav-logo img { height: 32px; }
.nav-center {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-center a, .nav-center .nav-dropdown-btn {
  position: relative;
  color: var(--text-mute);
  font-size: .93rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  transition: color .2s var(--ease);
}
.nav-center a::after, .nav-center .nav-dropdown-btn::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}
.nav-center a:hover, .nav-center .nav-dropdown-btn:hover { color: var(--text); }
.nav-center a:hover::after, .nav-center .nav-dropdown-btn:hover::after { transform: scaleX(1); }
.nav-right { display: flex; gap: 14px; align-items: center; }
.nav-right .login { color: var(--text-mute); font-size: .93rem; font-weight: 500; padding: 10px 6px; }
.nav-right .login:hover { color: var(--text); }
.nav-right .btn { padding: 11px 18px; font-size: .9rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  cursor: pointer;
}
.nav-dropdown-btn svg { transition: transform .25s var(--ease); }
.nav-dropdown.open .nav-dropdown-btn svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 280px;
  padding: 10px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 20px 40px -12px rgba(10,10,10,.14), 0 4px 12px rgba(10,10,10,.06);
  opacity: 0;
  pointer-events: none;
  transition: all .25s var(--ease);
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-mute);
  font-size: .93rem;
  font-weight: 500;
  transition: all .2s var(--ease);
}
.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Mobile */
.nav-toggle { display: none; background: transparent; padding: 10px; }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all .3s var(--ease);
}
@media (max-width: 960px) {
  .nav-center, .nav-right .login, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.mobile-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  z-index: 45;
  padding: 100px 28px 40px;
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a {
  display: block;
  padding: 18px 16px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.025em;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--accent-2); }
.mobile-menu .mm-group { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border); }
.mobile-menu .mm-group-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 16px 8px;
}
.mobile-menu .mm-group a { font-size: 1.15rem; font-weight: 600; padding: 12px 16px; border-bottom: none; }
.mobile-menu .mm-cta { margin-top: 24px; }
.mobile-menu .mm-cta .btn { width: 100%; justify-content: center; padding: 18px 24px; font-size: 1rem; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 180px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 25%, transparent 75%);
  pointer-events: none;
  z-index: -2;
}
/* Orbs: static soft-light accents in the hero background.
   Previously animated with infinite drift + 90px blur — those two in combination
   keep the GPU repainting every frame forever and crush scroll on mid-tier devices.
   Now: no animation, reduced blur, contain layout/paint so they can't bleed work
   into the rest of the document. */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  opacity: .45;
  contain: layout paint style;
  transform: translateZ(0);
}
.orb-a { top: -120px; left: 10%;  width: 520px; height: 520px; background: radial-gradient(circle, rgba(3,123,207,.4), transparent 70%); }
.orb-b { top: 120px;  right: 5%;  width: 440px; height: 440px; background: radial-gradient(circle, rgba(51,159,223,.35), transparent 70%); }
.orb-c { bottom: -200px; left: 40%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(79,70,229,.3), transparent 70%); }

/* Cursor glow (JS-driven) */
.hero-cursor-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3,123,207,.15), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.hero:hover .hero-cursor-glow { opacity: 1; }

.hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding: 0 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(3,123,207,.08);
  border: 1px solid rgba(3,123,207,.25);
  border-radius: var(--r-pill);
  color: var(--accent-2);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 { margin: 28px 0 22px; }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 38px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-mute);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note { color: var(--text-dim); font-size: .85rem; }

/* Hero staggered reveal */
.hero-reveal > * { opacity: 0; transform: translateY(24px); }
.hero-reveal.in > *:nth-child(1) { animation: fadeUp .9s var(--ease) .05s forwards; }
.hero-reveal.in > *:nth-child(2) { animation: fadeUp .9s var(--ease) .18s forwards; }
.hero-reveal.in > *:nth-child(3) { animation: fadeUp .9s var(--ease) .31s forwards; }
.hero-reveal.in > *:nth-child(4) { animation: fadeUp .9s var(--ease) .44s forwards; }
.hero-reveal.in > *:nth-child(5) { animation: fadeUp .9s var(--ease) .57s forwards; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .65; } }

/* ── TRUST STRIP ─────────────────────────────────────────────────────────── */
.trust {
  padding: 56px 0 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto 40px;
}
.trust-stat { text-align: center; }
.trust-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text);
}
.trust-stat .num .accent-text { display: inline-block; }
.trust-stat .label {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 12px;
  letter-spacing: .01em;
}

.marquee {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 72px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.15rem;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: .7;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.marquee-item:hover { opacity: 1; color: var(--text-mute); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── NICHE GRID ──────────────────────────────────────────────────────────── */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.niche-card {
  position: relative;
  padding: 36px 28px 28px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all .35s var(--ease);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.niche-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.niche-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), var(--glow-accent);
}
.niche-card:hover::before { opacity: 1; }
.niche-card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(3,123,207,.02));
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.niche-card h3 { color: var(--text); }
.niche-card p { font-size: .95rem; line-height: 1.55; flex: 1; }
.niche-card .learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 8px;
  transition: gap .25s var(--ease);
}
.niche-card:hover .learn { gap: 10px; color: var(--text); }

/* ── PROCESS / STEPS ─────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 54px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
  pointer-events: none;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all .35s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.step-num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--glow-accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; line-height: 1.55; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* ── FEATURES (2-col with visual) ────────────────────────────────────────── */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .features-split { grid-template-columns: 1fr; gap: 40px; }
}
.features-list { display: flex; flex-direction: column; gap: 22px; }
.feature-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--accent-2);
}
.feature-row h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.015em;
}
.feature-row p { font-size: .92rem; line-height: 1.55; }

/* Browser mockup */
.mockup {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-4);
  border-bottom: 1px solid var(--border);
}
.mockup-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; }
.mockup-chrome .url {
  margin-left: 14px;
  padding: 4px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .75rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}
.mockup-body {
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(3,123,207,.18), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mockup-line { height: 10px; border-radius: 4px; background: rgba(10,10,10,.08); }
.mockup-line.w-60 { width: 60%; }
.mockup-line.w-40 { width: 40%; }
.mockup-line.w-80 { width: 80%; }
.mockup-line.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); height: 14px; border-radius: 6px; }
.mockup-btn {
  margin-top: 8px;
  width: 160px; height: 42px;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: var(--glow-accent);
}
.mockup-card {
  margin-top: 12px;
  padding: 16px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── COMPARISON TABLE ────────────────────────────────────────────────────── */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare thead th {
  padding: 22px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-dim);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.compare thead th.us {
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  color: var(--accent-2);
  position: relative;
}
.compare thead th.us::after {
  content: 'BEST';
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  letter-spacing: .1em;
  border-radius: 6px;
  vertical-align: middle;
}
.compare td {
  padding: 18px;
  font-size: .93rem;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
}
.compare td:first-child {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-body);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.us {
  background: rgba(3,123,207,.04);
  color: var(--text);
  font-weight: 500;
  border-left: 1px solid var(--border-accent);
  border-right: 1px solid var(--border-accent);
}
.compare tbody tr:last-child td.us { border-bottom: 1px solid var(--border-accent); }
.compare tbody tr:first-child td.us { border-top: 1px solid var(--border-accent); }
.check-icon { color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; }
.x-icon { color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }

.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-scroll::-webkit-scrollbar { height: 8px; }
.compare-scroll::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 4px; }

/* ── EXAMPLES CAROUSEL ───────────────────────────────────────────────────── */
.examples-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 28px;
  margin: 0 -28px;
  padding-left: 28px;
  padding-right: 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
}
.examples-rail::-webkit-scrollbar { height: 8px; }
.examples-rail::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 4px; }

.example-card {
  flex: 0 0 clamp(280px, 28vw, 380px);
  scroll-snap-align: start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.example-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.example-thumb {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(3,123,207,.25), rgba(51,159,223,.1)),
    linear-gradient(180deg, var(--bg-4), var(--bg-3));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255,255,255,.15);
  letter-spacing: -.04em;
  transition: transform .5s var(--ease);
}
.example-card:hover .example-thumb { transform: scale(1.03); }
.example-body { padding: 20px 22px 24px; }
.example-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.example-body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.example-stats {
  display: flex;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.example-stat { flex: 1; }
.example-stat .lbl { font-size: .7rem; color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.example-stat .val { font-family: var(--font-display); font-weight: 700; color: var(--accent-2); font-size: .95rem; letter-spacing: -.01em; }

.rail-foot { margin-top: 32px; text-align: center; }

/* ── PRICING ─────────────────────────────────────────────────────────────── */
.price-card {
  max-width: 540px;
  margin: 0 auto;
  padding: 48px 44px;
  background: #fff;
  border: 1px solid var(--border-ink);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 80px rgba(9,9,11,.08), 0 8px 24px rgba(9,9,11,.05);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 30%, transparent 70%, var(--accent-2) 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: .6;
}
.price-card > * { position: relative; }
.price-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent-3);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.price-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-ink);
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.price-desc { color: var(--text-ink-mute); font-size: 1rem; margin-bottom: 28px; }
.price-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.price-big .amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-ink);
  letter-spacing: -.04em;
  line-height: 1;
}
.price-big .unit { color: var(--text-ink-mute); font-weight: 500; }
.price-sub { color: var(--text-ink-mute); font-size: .95rem; margin-bottom: 28px; }

.price-list { list-style: none; padding: 0; margin: 28px 0; }
.price-list li {
  padding: 12px 0 12px 30px;
  position: relative;
  color: var(--text-ink);
  font-size: .95rem;
  border-bottom: 1px solid var(--border-ink);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 17px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface-light-2);
  border-radius: 12px;
  margin: 8px 0 24px;
  font-size: .88rem;
  color: var(--text-ink);
  font-weight: 500;
}
.price-guarantee svg { color: var(--accent); flex-shrink: 0; }

.price-card .btn { width: 100%; justify-content: center; padding: 17px 26px; font-size: 1rem; }
.price-foot {
  text-align: center;
  margin-top: 24px;
  color: var(--text-ink-mute);
  font-size: .88rem;
}
.price-foot a { color: var(--accent-3); font-weight: 500; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: var(--border-accent); background: rgba(3,123,207,.03); }
.faq-q {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.015em;
  cursor: pointer;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent-soft); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-mute);
  line-height: 1.65;
  font-size: .98rem;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 22px; }

/* ── FINAL CTA ───────────────────────────────────────────────────────────── */
.final-cta {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(3,123,207,.18), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.final-cta .orb-a { top: -100px; left: 15%; width: 500px; height: 500px; }
.final-cta .orb-b { bottom: -150px; right: 10%; width: 460px; height: 460px; }
.final-cta-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 28px; }
.final-cta h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 20px; }
.final-cta p { font-size: 1.15rem; color: var(--text-mute); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { padding: 18px 32px; font-size: 1.05rem; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 80px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 28px; margin-bottom: 16px; opacity: .9; }
.footer-brand p { font-size: .92rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text-mute);
  font-size: .92rem;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--accent-2); }
.footer-cta p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-cta .btn { padding: 11px 18px; font-size: .88rem; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); margin-left: 20px; }
.footer-bottom a:hover { color: var(--text-mute); }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].in { transition-delay: .08s; }
.reveal[data-delay="2"].in { transition-delay: .16s; }
.reveal[data-delay="3"].in { transition-delay: .24s; }
.reveal[data-delay="4"].in { transition-delay: .32s; }
.reveal[data-delay="5"].in { transition-delay: .40s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 140px 0 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .price-card { padding: 36px 28px; }
  .final-cta { padding: 100px 0; }
  .footer { padding: 60px 0 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .orb { animation: none; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   PAGE-SPECIFIC STYLES — appended after shared system
   ========================================================================== */

/* ── SUB-HERO (inner page headers) ───────────────────────────────────────── */
.subhero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.subhero .orb-a { top: -150px; left: 10%; width: 500px; height: 500px; opacity: .4; }
.subhero .orb-b { bottom: -200px; right: 5%; width: 420px; height: 420px; opacity: .35; }
.subhero-inner { position: relative; max-width: 820px; margin: 0 auto; padding: 0 28px; }
.subhero .eyebrow { margin-bottom: 20px; }
.subhero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); margin-bottom: 22px; }
.subhero p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-mute);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.subhero .subhero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ── SPLIT SECTION (alternating text + visual) ───────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-copy .eyebrow { margin-bottom: 16px; }
.split-copy h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
.split-copy p { font-size: 1.02rem; line-height: 1.65; margin-bottom: 18px; }
.split-copy ul { list-style: none; padding: 0; margin: 22px 0; }
.split-copy ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.5;
}
.split-copy ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}
.split-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.split-num .chip {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: var(--glow-accent);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .split-visual { order: 2; }
  .split-copy { order: 1; }
}

/* Visual variants — expanded mockups with richer detail for How It Works */
.mockup-audit {
  padding: 22px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.mockup-audit .meter {
  height: 8px;
  background: var(--bg-4);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0 14px;
}
.mockup-audit .meter span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}
.mockup-audit .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-mute);
}
.mockup-audit .row:last-child { border-bottom: none; }
.mockup-audit .row .score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-2);
  font-size: 1.05rem;
}
.mockup-audit .row .score.bad { color: #F87171; }
.mockup-audit .row .score.warn { color: #FBBF24; }
.mockup-audit h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
}

/* Chat portal mockup */
.mockup-chat {
  padding: 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.45;
  max-width: 85%;
}
.chat-msg.client {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.team {
  align-self: flex-start;
  background: var(--bg-4);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-meta {
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .04em;
  padding: 0 6px;
}

/* Intake form mockup */
.mockup-form {
  padding: 26px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.mockup-form .field {
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  color: var(--text-mute);
  font-size: .92rem;
}
.mockup-form .field.filled { color: var(--text); border-color: var(--border-accent); }
.mockup-form .lbl {
  font-size: .75rem;
  color: var(--text-dim);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── NICHE PAGE — PAIN CALLOUT ───────────────────────────────────────────── */
.pain-callout {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.pain-callout strong { color: var(--accent-2); font-weight: 600; }
@media (max-width: 640px) {
  .pain-callout { padding: 28px 24px; font-size: 1rem; }
}

/* ── EXAMPLES PAGE — FILTER + GRID + BEFORE/AFTER SLIDER ─────────────────── */
.ex-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 48px;
  padding: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  width: fit-content;
}
.ex-filter button {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  color: var(--text-mute);
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.ex-filter button:hover { color: var(--text); }
.ex-filter button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow-accent);
}

.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.ex-tile {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px -14px rgba(10,10,10,.08);
}
.ex-tile:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow:
    0 30px 60px -24px rgba(10,10,10,.18),
    0 10px 24px -12px rgba(10,10,10,.08),
    0 0 0 1px rgba(3,123,207,.12);
}
.ex-tile.hidden { display: none; }

/* ── Portfolio card body — dark editorial block (consistent heights) ────── */
.ex-tile-body {
  position: relative;
  padding: 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  background: linear-gradient(180deg, #0F0F12 0%, #17171B 100%);
  color: #ffffff;
}
/* Thin highlight along top edge of body — frames the boundary */
.ex-tile-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14) 30%, rgba(255,255,255,.14) 70%, transparent);
}

/* Editorial eyebrow — leading rule + small caps */
.ex-tile-body .tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--accent-2);
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 2px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-tile-body .tag::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--accent-2);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Hide duplicate business-name heading — same info is on the blue thumbnail */
.ex-tile-body h4 { display: none; }

/* Stats — white numbers on dark, dim labels */
.ex-tile-body .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 16px 0 16px;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
  position: relative;
}
.ex-tile-body .stats::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,.09);
}
.ex-tile-body .stat { padding: 0; }
.ex-tile-body .stat + .stat { padding-left: 22px; }
.ex-tile-body .stat .val {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff;
  font-size: 1.8rem;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.ex-tile-body .stat .lbl {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* CTA — bright accent gradient against dark body, pinned to card bottom */
.ex-tile-body .visit-live {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 15px 15px 15px 22px;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 55%, var(--accent-3) 100%);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.005em;
  border-radius: 12px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
  box-shadow:
    0 10px 26px -8px rgba(3,123,207,.55),
    inset 0 1px 0 rgba(255,255,255,.28);
  overflow: hidden;
  isolation: isolate;
}
.ex-tile-body .visit-live::before {
  /* sweep shimmer */
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,.32) 50%, transparent 90%);
  transform: skewX(-18deg);
  transition: left .8s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.ex-tile-body .visit-live > * { position: relative; z-index: 1; }
.ex-tile-body .visit-live:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 36px -8px rgba(3,123,207,.75),
    inset 0 1px 0 rgba(255,255,255,.38);
}
.ex-tile-body .visit-live:hover::before { left: 130%; }
.ex-tile-body .visit-live:hover .arrow {
  background: #ffffff;
  color: var(--accent-3);
  transform: translateX(3px);
}
.ex-tile-body .visit-live .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #ffffff;
  font-size: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.ex-tile-body .visit-live .arrow::before {
  content: '';
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m13 5 7 7-7 7'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m13 5 7 7-7 7'/></svg>") center/contain no-repeat;
  display: block;
}

/* Match preview radius so it sits flush at top of the tile */
.ex-preview { border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* Before/after slider */

/* ── PORTFOLIO TILE PREVIEW (replaces heavy inline .ba-slider mockups) ────
   Replaced 40 inline mini-websites with lightweight brand preview cards
   that link to each /portfolio/{slug}/ subpage in a new tab. Cut portfolio.html
   from 111KB to 48KB and stopped loading 145KB of portfolio-mockups.css. */
.ex-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 16 / 10;
  padding: 26px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.ex-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(0,0,0,.20), transparent 65%);
  pointer-events: none;
}
.ex-preview > * { position: relative; z-index: 1; }
.ex-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -18px rgba(3,123,207,.45);
}
.ex-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}
.ex-preview-brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.ex-preview-sub {
  font-size: 13px;
  font-weight: 600;
  opacity: .88;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Subtle niche-specific hue variation so 40 cards don't all look identical */
.ex-tile[data-niche="dental"]   .ex-preview { background: linear-gradient(135deg, #0369A1 0%, #075985 100%); }
.ex-tile[data-niche="medspa"]   .ex-preview { background: linear-gradient(135deg, #C717C7 0%, #83196B 100%); }
.ex-tile[data-niche="hvac"]     .ex-preview { background: linear-gradient(135deg, #475569 0%, #1E293B 100%); }
/* roofing + any other keeps the brand blue default */
/* ── REALISTIC SITE MOCKUP (homepage "everything you need" section) ─────── */
.mockup-site { background: #ffffff; padding: 0; aspect-ratio: 16 / 12; overflow: hidden; display: flex; flex-direction: column; }
.mu-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid rgba(10,10,10,.06); background: #fff; flex-shrink: 0; }
.mu-brand { display: flex; align-items: center; gap: 6px; }
.mu-brand-mark { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--accent), var(--accent-3)); flex-shrink: 0; }
.mu-brand-text { font-family: var(--font-display); font-weight: 800; font-size: 11px; color: var(--text); letter-spacing: -.02em; }
.mu-links { display: flex; gap: 14px; }
.mu-links span { font-size: 9.5px; font-weight: 500; color: var(--text-mute); }
.mu-cta-sm { padding: 5px 10px; background: var(--accent); color: #fff; border-radius: 5px; font-size: 9px; font-weight: 700; border: 0; font-family: var(--font-body); }
.mu-hero { padding: 22px 24px 18px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%); }
.mu-pill { display: inline-block; margin: 0 auto 10px; padding: 4px 10px; background: #fff; border: 1px solid rgba(10,10,10,.08); border-radius: 999px; font-size: 8.5px; font-weight: 600; color: var(--text-mute); width: fit-content; }
.mu-h1 { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.025em; line-height: 1.05; margin-bottom: 6px; }
.mu-h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent); }
.mu-sub { font-size: 9.5px; color: var(--text-mute); line-height: 1.45; margin-bottom: 12px; }
.mu-actions { display: flex; gap: 7px; justify-content: center; margin-bottom: 12px; }
.mu-cta { padding: 7px 14px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 9.5px; font-weight: 700; border: 0; box-shadow: 0 4px 10px rgba(3,123,207,.30); font-family: var(--font-body); }
.mu-cta-ghost { padding: 7px 14px; background: #fff; color: var(--text); border-radius: 6px; font-size: 9.5px; font-weight: 700; border: 1px solid rgba(10,10,10,.12); font-family: var(--font-body); }
.mu-trust { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mu-trust-item { font-size: 8px; color: var(--text-mute); font-weight: 600; }
.mu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 14px 16px; background: #fff; flex-shrink: 0; border-top: 1px solid rgba(10,10,10,.04); }
.mu-card { padding: 9px 8px; background: #fff; border: 1px solid rgba(10,10,10,.06); border-radius: 6px; }
.mu-card-icon { width: 16px; height: 16px; background: var(--accent-soft); border-radius: 4px; margin-bottom: 5px; }
.mu-card-icon.alt { background: rgba(3,123,207,.18); }
.mu-card-title { font-family: var(--font-display); font-size: 9px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -.01em; }
.mu-card-line { height: 4px; background: rgba(10,10,10,.08); border-radius: 2px; margin-bottom: 3px; }
.mu-card-line.short { width: 60%; }
