/* ===================================================================
   Bay Area AEO — Answer Engine Optimization (GEO / AIO / LLM SEO)
   Shared stylesheet (responsive: mobile / tablet / desktop / large)
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Golden Gate: International Orange for actions and accents */
  --gg: #e2492a;
  --gg-deep: #c93d1d;
  --gg-bright: #f2643a;
  --gg-text: #d4401f;
  --gg-soft: #fff0ea;
  --gg-soft-2: #ffd9ca;
  /* Clear Bay Area sky for surfaces, icons and links */
  --sky: #1479d1;
  --sky-deep: #0d5fae;
  --sky-bright: #2b95e9;
  --sky-soft: #eaf6ff;
  --sky-soft-2: #d3ebfd;
  --navy: #0b2545;
  --ink: #1b2b40;
  --muted: #4f6480;
  --muted-2: #7488a2;
  --bg: #ffffff;
  --bg-soft: #eaf6ff;
  --border: #dbe8f4;
  --card: #ffffff;
  --footer-bg: #0a2342;
  --footer-muted: #9fb3cc;
  --star: #ffb020;
  /* Bento accents: each tile tint pairs a soft fill with a strong accent */
  --bay: #0b7585;
  --bay-soft: #e2f5f7;
  --cypress: #1f7a4f;
  --cypress-soft: #e3f5ea;
  --gold: #976000;
  --gold-soft: #fff4d6;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --radius-tile: 28px;
  --shadow-sm: 0 4px 14px rgba(11, 60, 110, 0.06);
  --shadow-md: 0 14px 40px rgba(11, 60, 110, 0.10);
  --shadow-lg: 0 30px 70px rgba(11, 60, 110, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 70px 0; }
.section-tight { padding: 48px 0; }
.text-accent { color: var(--gg-text); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: var(--sky-soft);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 620px; font-size: 1.02rem; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  white-space: nowrap;
  position: relative;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, #ec5a30, var(--gg-deep));
  color: #fff;
  box-shadow: 0 12px 26px rgba(226, 73, 42, 0.30);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(226, 73, 42, 0.40); }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.6px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { transform: translateY(-3px); border-color: var(--gg); color: var(--gg-deep); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--sky-deep);
  border: 1.6px solid var(--sky);
}
.btn-ghost:hover { background: var(--sky-deep); border-color: var(--sky-deep); color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 17px 34px; font-size: 1.04rem; }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); background: rgba(255,255,255,0.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Logo: inline SVG mark (bridge, sun and bay over a CSS sky) + live wordmark */
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 44px; height: 44px; flex: none; border-radius: 11px; overflow: hidden; display: block;
  background: linear-gradient(180deg, #1f8ae0, #8fd3fb 74%);
  box-shadow: 0 6px 14px rgba(20, 121, 209, 0.26); transition: transform .4s var(--ease);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.42rem; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }
.brand-name b { font-weight: 800; color: var(--gg); }
.brand-place { font-family: "Inter", sans-serif; font-weight: 600; font-size: .56rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.brand-dark .brand-name { color: #fff; }
.brand-dark .brand-name b { color: #ff7a52; }
.brand-dark .brand-place { color: #a9c3e0; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li > a, .nav-links > li > .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 0.97rem; color: var(--ink);
  padding: 10px 14px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links > li > a:hover, .nav-links > li > .dropdown-toggle:hover { color: var(--sky-deep); background: var(--sky-soft); }
.nav-links .caret { width: 14px; height: 14px; transition: transform .3s var(--ease); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; width: 320px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 120;
}
.dropdown-menu::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown:hover .caret, .dropdown.open .caret { transform: rotate(180deg); }
.dropdown-item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px; border-radius: 12px; transition: background .2s, transform .2s;
}
.dropdown-item:hover { background: var(--sky-soft); transform: translateX(4px); }
.has-sub > .dropdown-item:hover { transform: none; }
.dropdown-item .di-icon {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; background: var(--sky-soft); color: var(--sky);
  transition: background .25s, color .25s;
}
.dropdown-item:hover .di-icon { background: var(--sky); color: #fff; }
.dropdown-item .di-icon svg { width: 22px; height: 22px; }
.dropdown-item h4 { font-size: 0.98rem; margin-bottom: 2px; }
.dropdown-item p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #ec5a30, var(--gg-deep));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: var(--radius-pill);
  box-shadow: 0 10px 22px rgba(226,73,42,.30); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.nav-phone:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(226,73,42,.40); }
.nav-phone svg { width: 17px; height: 17px; }

/* Hamburger */
.hamburger {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; position: relative; flex: none;
  transition: background .2s, border-color .2s;
}
.hamburger span {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .35s var(--ease), opacity .25s;
}
.hamburger span:nth-child(1) { transform: translate(-50%, -7px); }
.hamburger span:nth-child(3) { transform: translate(-50%, 5px); }
.hamburger.active span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 22px; overflow-y: auto;
  transform: translateX(100%); transition: transform .42s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a, .mobile-menu .m-toggle {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--navy);
  padding: 16px 8px; border-bottom: 1px solid var(--border); width: 100%;
}
.mobile-menu .m-sub { display: none; flex-direction: column; padding-left: 12px; }
.mobile-menu .m-sub.open { display: flex; }
.mobile-menu .m-sub a { font-size: 0.98rem; color: var(--muted); border-bottom: 1px dashed var(--border); }
.mobile-menu .m-toggle .caret { transition: transform .3s; width: 16px; height: 16px; }
.mobile-menu .m-toggle.open .caret { transform: rotate(180deg); }
.mobile-menu .nav-phone { justify-content: center; margin-top: 18px; }
.menu-backdrop {
  position: fixed; inset: 0; background: rgba(8,30,56,.45); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .3s;
}
.menu-backdrop.open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; padding: 64px 0 30px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 540px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,197,61,.28), transparent 70%); z-index: -1;
}
.hero-head { text-align: center; max-width: 900px; margin: 0 auto 18px; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); font-weight: 800; line-height: 1.05; }
.hero h1 .text-accent { display: inline; }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 620px; margin: 18px auto 0; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.trust-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.trust-pill .stars { color: var(--star); letter-spacing: 2px; }

/* ===================================================================
   STATS BAR
   =================================================================== */
.stats-wrap { margin-top: 46px; }
.stats {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 30px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 12%; height: 76%; width: 1px; background: var(--border); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--navy); }
.stat .num .text-accent { color: var(--sky); }
.stat .label { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.stats-banner {
  margin-top: 14px; background: linear-gradient(135deg, var(--sky-bright), var(--sky-deep));
  color: #fff; text-align: center; border-radius: var(--radius); padding: 16px 22px;
  font-weight: 500; font-size: .98rem; box-shadow: 0 14px 30px rgba(20,121,209,.28);
}

/* Commercial video player (home hero) */
.video-frame {
  position: relative; margin: 0 auto; aspect-ratio: 16 / 9;
  /* cap the width so the whole 16:9 frame fits in the viewport below the header */
  width: min(100%, 1180px, calc((100vh - var(--header-h) - 130px) * 16 / 9));
  width: min(100%, 1180px, calc((100svh - var(--header-h) - 130px) * 16 / 9));
  min-width: min(100%, 320px);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--navy);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.video-frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(to top, rgba(7,11,20,.5), transparent);
  transition: opacity .35s var(--ease);
}
.vp-big {
  position: absolute; top: 50%; left: 50%; z-index: 2; width: 84px; height: 84px;
  transform: translate(-50%, -50%); border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--sky-bright), var(--sky-deep));
  box-shadow: 0 0 0 10px rgba(255,255,255,.18), 0 18px 40px rgba(20,121,209,.45);
  transition: transform .3s var(--ease), opacity .3s var(--ease), box-shadow .3s var(--ease);
}
.vp-big svg { width: 34px; height: 34px; margin-left: 4px; }
.vp-big:hover { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 14px rgba(255,255,255,.22), 0 22px 48px rgba(20,121,209,.55); }
.vp-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px;
  background: rgba(11,37,69,.55); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: var(--radius-pill); color: #fff;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.vp-btn {
  flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12);
  transition: background .2s, transform .2s var(--ease);
}
.vp-btn:hover { background: var(--sky); transform: scale(1.06); }
.vp-btn svg { width: 18px; height: 18px; }
.vp-btn:focus-visible, .vp-big:focus-visible, .vp-track:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vp-track {
  flex: 1; height: 6px; border-radius: 3px; cursor: pointer; position: relative;
  background: rgba(255,255,255,.22);
}
.vp-track::before { content: ""; position: absolute; inset: -9px 0; } /* bigger hit area */
.vp-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--sky-bright), #8cc8ff);
}
.vp-fill::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px;
  transform: translateY(-50%) scale(0); border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: transform .2s var(--ease);
}
.vp-track:hover .vp-fill::after, .vp-track:focus-visible .vp-fill::after { transform: translateY(-50%) scale(1); }
.vp-time { flex: none; font-size: .8rem; font-variant-numeric: tabular-nums; opacity: .9; }
/* icon states */
.video-frame .i-pause, .video-frame.is-playing .i-play,
.video-frame .i-sound, .video-frame.is-unmuted .i-muted { display: none; }
.video-frame.is-playing .i-pause, .video-frame.is-unmuted .i-sound { display: block; }
.video-frame.is-playing .vp-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }
/* hide controls while playing; they return near the bottom edge or when paused */
.video-frame.is-playing:not(.show-bar) .vp-bar { opacity: 0; transform: translateY(12px); pointer-events: none; }
.video-frame.is-playing:not(.show-bar)::after { opacity: 0; }
.video-frame:fullscreen { border-radius: 0; border: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.video-frame:fullscreen video { object-fit: contain; background: #000; }
@media (max-width: 560px) {
  .video-frame { border-radius: var(--radius); }
  .vp-big { width: 62px; height: 62px; box-shadow: 0 0 0 7px rgba(255,255,255,.18), 0 12px 28px rgba(20,121,209,.45); }
  .vp-big svg { width: 26px; height: 26px; }
  .vp-bar { left: 8px; right: 8px; bottom: 8px; gap: 8px; padding: 5px 10px 5px 5px; }
  .vp-btn { width: 32px; height: 32px; }
  .vp-btn svg { width: 15px; height: 15px; }
  .vp-time { display: none; }
}

/* Client commercials: an endless reel of 9:16 films (main.js plays on-screen previews) */
.reel-section { background: var(--navy); color: #fff; overflow: hidden; }
.reel-section .section-title { color: #fff; }
.reel-section .text-accent { color: var(--gg-bright); }
.reel-section .eyebrow { background: rgba(255,255,255,.1); color: #bfe0ff; }
.reel {
  --card-w: clamp(150px, 40vw, 220px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reel-track { display: flex; width: max-content; animation: reel-scroll var(--reel-time, 40s) linear infinite; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
/* two identical sets, each padded by half a gap, so -50% lands exactly on the seam */
.reel-set { display: flex; gap: 18px; padding: 8px 9px; list-style: none; }
@keyframes reel-scroll { to { transform: translateX(-50%); } }
.reel-card { flex: none; width: var(--card-w); }
.reel-play {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0;
  border-radius: 18px; overflow: hidden; background: #0e2e55; cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.reel-play img, .reel-play video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-play video { opacity: 0; transition: opacity .5s var(--ease); }
.reel-play video.is-on { opacity: 1; }
.reel-play:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.reel-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.reel-icon {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(11,37,69,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
}
.reel-icon svg { width: 15px; height: 15px; margin-left: 2px; }
.reel-cap { padding: 12px 4px 0; }
.reel-cap strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.3; color: #fff; }
.reel-cap a { color: inherit; }
.reel-cap a:hover { color: #8cc8ff; }
.reel-cap span { display: block; margin-top: 2px; font-size: .8rem; color: var(--footer-muted); }
@media (prefers-reduced-motion: reduce) {
  /* no motion: a row of posters to swipe through */
  .reel { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .reel-set[aria-hidden="true"] { display: none; }
  .reel-card { scroll-snap-align: center; }
}

/* Full-screen player for a reel card */
.reel-modal { margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; max-width: none; max-height: none; }
.reel-modal::backdrop { background: rgba(5,15,30,.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.reel-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(11,37,69,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.reel-close svg { width: 20px; height: 20px; }
.reel-close:hover { background: var(--sky); }
.reel-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.video-frame.video-tall {
  aspect-ratio: 9 / 16;
  width: min(92vw, 460px, calc((100vh - 48px) * 9 / 16));
  width: min(92vw, 460px, calc((100svh - 48px) * 9 / 16));
  min-width: 0;
}
.video-tall video { object-fit: contain; background: #000; }

/* Outreach preview page (/preview/<slug>/) */
.preview-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.preview-player .video-frame.video-tall { width: min(100%, 380px, calc((100svh - var(--header-h) - 80px) * 9 / 16)); }
.preview-page .copy p { color: var(--muted); margin-bottom: 16px; font-size: 1.04rem; }
.preview-page .copy a:not(.btn) { color: var(--sky); text-decoration: underline; }
.preview-page .hero-actions { justify-content: flex-start; }
@media (max-width: 860px) {
  .preview-grid { grid-template-columns: 1fr; gap: 32px; }
  .preview-player { display: flex; justify-content: center; }
}

/* Location pages: map + estimated AI usage */
.local-stats { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.map-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; min-height: 380px; display: flex;
}
.map-card iframe { flex: 1; width: 100%; min-height: 380px; border: 0; display: block; }
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column;
}
.stat-tile .st-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.stat-tile .st-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--sky-soft); color: var(--sky); display: grid; place-items: center; flex-shrink: 0; }
.stat-tile .st-ic svg { width: 20px; height: 20px; }
.stat-tile .st-pct { font-size: .76rem; font-weight: 600; color: var(--sky-deep); background: var(--sky-soft); border-radius: var(--radius-pill); padding: 4px 10px; white-space: nowrap; }
.stat-tile .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: var(--navy); }
.stat-tile .label { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.stats-source { text-align: center; color: var(--muted); font-size: .82rem; margin: 22px auto 0; max-width: 720px; }
@media (max-width: 960px) {
  .local-stats { grid-template-columns: 1fr; }
  .map-card, .map-card iframe { min-height: 320px; }
}
@media (max-width: 600px) {
  .stat-tiles { gap: 12px; }
  .stat-tile { padding: 16px; }
  .stat-tile .st-ic { display: none; }
  .stat-tile .st-head { margin-bottom: 10px; }
}
@media (max-width: 340px) {
  .stat-tiles { grid-template-columns: 1fr; }
}

/* ===================================================================
   FEATURE / SERVICES SPLIT
   =================================================================== */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split .copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.split .copy p { color: var(--muted); margin-bottom: 22px; }
.svc-cards { display: grid; gap: 18px; }
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--sky-bright), var(--sky-deep)); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); margin-bottom: 16px; transition: transform .4s var(--ease), background .3s, color .3s; }
.svc-card:hover .ic { background: var(--sky); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc-card .ic svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: .95rem; }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--gg-text); font-weight: 600; font-size: .9rem; margin-top: 14px; }
.svc-card .more svg { width: 16px; height: 16px; transition: transform .3s; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* ===================================================================
   CTA BANNER
   =================================================================== */
.cta-band { background: var(--sky-soft); border-radius: var(--radius-lg); padding: 54px 30px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(43,149,233,.18), transparent); }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--navy); margin-bottom: 22px; }

/* ===================================================================
   "DIFFERENT" — features list + copy
   =================================================================== */
.feature-list { display: grid; gap: 16px; }
.feature-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-item:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.feature-item .ftitle { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--navy); margin-bottom: 8px; }
.feature-item .check { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--sky); color: #fff; display: grid; place-items: center; }
.feature-item .check svg { width: 16px; height: 16px; }
.feature-item p { color: var(--muted); font-size: .93rem; padding-left: 37px; }

/* ===================================================================
   WORK / PORTFOLIO
   =================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  background: #fff;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.work-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.work-card:hover .work-thumb img { transform: scale(1.07); }
.work-meta { padding: 18px 20px 20px; }
.work-meta .tag { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.work-meta h3 { font-size: 1.16rem; margin: 4px 0 6px; }
.work-meta p { color: var(--muted); font-size: .9rem; }

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1140px; margin: 0 auto; }
.testi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testi-card .quote-mark { font-family: Georgia, serif; font-size: 4rem; line-height: 0; color: var(--sky-soft-2); position: absolute; top: 30px; right: 26px; }
.testi-card .stars { color: var(--star); letter-spacing: 2px; margin-bottom: 14px; }
.testi-card p { color: var(--ink); font-size: 1.02rem; line-height: 1.65; }
.testi-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.testi-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sky-soft); }
.testi-author .name { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.testi-author .role { color: var(--sky); font-size: .87rem; }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--sky-soft-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--navy); text-align: left;
}
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--sky-soft); color: var(--sky); display: grid; place-items: center; transition: transform .35s var(--ease), background .25s, color .25s; }
.faq-item.open .faq-q .pm { background: var(--gg); color: #fff; transform: rotate(135deg); }
.faq-q .pm svg { width: 18px; height: 18px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--muted); }

/* ===================================================================
   FINAL CTA
   =================================================================== */
.final-cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 70px 40px 170px; }
.final-cta::after { content: ""; position: absolute; inset: auto 0 0 0; height: 150px; background: url(/images/golden-gate-strip.svg) center bottom / cover no-repeat; }
.final-cta h2 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 540px; position: relative; }
.final-cta .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; position: relative; }
.final-cta .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.final-cta .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--footer-bg); color: #cbd8e8; padding: 64px 0 30px; margin-top: 70px; border-top: 5px solid var(--gg); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; display: inline-flex; }
.footer .brand-mark { width: 48px; height: 48px; box-shadow: none; }
.footer .fdesc { color: var(--footer-muted); font-size: .92rem; max-width: 300px; }
.footer .fsocial { display: flex; gap: 10px; margin-top: 18px; }
.footer .fsocial a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cbd8e8; transition: background .25s, color .25s, transform .3s; }
.footer .fsocial a:hover { background: var(--gg); color: #fff; transform: translateY(-3px); }
.footer .fsocial svg { width: 18px; height: 18px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a, .footer .fcontact div { color: var(--footer-muted); font-size: .93rem; transition: color .2s; display: inline-flex; gap: 8px; align-items: flex-start; }
.footer ul a:hover { color: #fff; }
.footer .fcontact div { display: flex; margin-bottom: 11px; }
.footer .fcontact svg { width: 16px; height: 16px; color: #ff7a52; flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--footer-muted); font-size: .86rem; }

/* ===================================================================
   SUB-PAGE (SEO / Web Design) — hero & shared blocks
   =================================================================== */
.page-hero {
  position: relative; padding: 60px 0 190px; overflow: hidden;
  background:
    radial-gradient(circle at 90% -6%, rgba(255,251,238,.95), rgba(255,248,226,.6) 9%, rgba(255,248,226,0) 24%),
    radial-gradient(ellipse 160px 44px at 12% 16%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 220px 50px at 58% 9%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #bfe3fb 0%, #dcf0fe 45%, var(--bg-soft) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 210px; pointer-events: none;
  background: url(/images/golden-gate-strip.svg) center bottom / cover no-repeat;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin: 18px 0 26px; }
.page-hero .hero-actions { justify-content: flex-start; margin-top: 0; }
.page-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--gg-deep); }
.breadcrumb svg { width: 14px; height: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-card .step { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--sky-soft-2); transition: color .3s; }
.process-card:hover .step { color: var(--sky); }
.process-card h3 { font-size: 1.1rem; margin: 6px 0 8px; }
.process-card p { color: var(--muted); font-size: .92rem; }

.bullet-list { display: grid; gap: 16px; }
.bullet-list li { display: flex; gap: 13px; align-items: flex-start; }
.bullet-list .bi { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--sky-soft); color: var(--sky); display: grid; place-items: center; }
.bullet-list .bi svg { width: 17px; height: 17px; }
.bullet-list strong { font-family: var(--font-display); color: var(--navy); display: block; margin-bottom: 2px; }
.bullet-list span { color: var(--muted); font-size: .94rem; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--sky); box-shadow: var(--shadow-md); position: relative; }
.price-card.featured::before { content: "Most Popular"; position: absolute; top: 18px; right: 18px; background: var(--sky); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); }
.price-card .pname { font-family: var(--font-display); font-weight: 600; color: var(--sky); letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.price-card .pprice { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--navy); margin: 8px 0 4px; }
.price-card .pprice small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card .pdesc { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.price-card ul { margin-bottom: 24px; display: grid; gap: 12px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .93rem; }
.price-card ul li svg { width: 18px; height: 18px; color: var(--sky); flex: none; margin-top: 2px; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ===================================================================
   SCROLL REVEAL ANIMATIONS
   =================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Large desktop */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
  .hero h1 { font-size: 4.4rem; }
  .section { padding: 84px 0; }
}

/* Tablet & below: show hamburger, hide desktop nav */
@media (max-width: 1024px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .hamburger { display: block; }
  .nav-cta { gap: 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .split { gap: 34px; }
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero-img { max-width: 560px; }
}

/* Tablet portrait */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer .fdesc { max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; padding: 28px 18px; }
  .stat:nth-child(2)::after { display: none; }
  .stat::after { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .container { padding: 0 18px; }
  .hero { padding: 40px 0 20px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .work-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .cta-band, .final-cta { padding: 40px 22px; }
  .testi-card, .price-card { padding: 26px 22px; }
  .final-cta .actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
}

/* ===================================================================
   CONTACT FORM
   =================================================================== */
.contact-form {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 30px; max-width: 640px;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
  color: #fff; font-family: "Inter", sans-serif; font-size: .96rem;
  transition: border-color .25s, background .25s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9fb6d3; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--sky-bright); background: rgba(255,255,255,.11);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form button { justify-content: center; }

@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ===================================================================
   BAY AREA AEO — additions
   =================================================================== */

/* ---------- Nested dropdowns (category > niche) ---------- */
.dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown-menu .has-sub { position: static; } /* flyout anchors to the menu, so it never drops below the fold */
.dropdown-menu .has-sub > .dropdown-item { padding-right: 34px; position: relative; }
.dropdown-menu .has-sub > .dropdown-item .sub-caret {
  position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  color: var(--muted-2); transition: transform .25s var(--ease), color .25s;
}
.dropdown-menu .has-sub { margin: 0 -12px; padding: 0 12px; } /* hover zone spans the menu's side padding */
.dropdown-menu .has-sub.sub-open > .dropdown-item,
.dropdown-menu .has-sub:focus-within > .dropdown-item { background: var(--sky-soft); }
.dropdown-menu .has-sub.sub-open > .dropdown-item .di-icon,
.dropdown-menu .has-sub:focus-within > .dropdown-item .di-icon { background: var(--sky); color: #fff; }
.dropdown-menu .has-sub.sub-open > .dropdown-item .sub-caret,
.dropdown-menu .has-sub:focus-within > .dropdown-item .sub-caret { color: var(--sky); transform: translateX(3px); }
.submenu {
  position: absolute; top: 0; left: calc(100% + 6px);
  width: 268px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
/* invisible bridge so the pointer can cross the gap */
.submenu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; }
.has-sub.flip .submenu { left: auto; right: calc(100% + 6px); transform: translateX(-8px); }
.has-sub.flip .submenu::before { left: auto; right: -12px; }
.dropdown:hover .has-sub.sub-open > .submenu,
.dropdown.open .has-sub.sub-open > .submenu,
.has-sub:focus-within > .submenu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0);
}
.submenu .sub-head {
  display: block; font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 6px 12px 8px;
}
.submenu a {
  display: block; padding: 8px 12px; border-radius: 9px; font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: background .2s, color .2s, transform .2s;
}
.submenu a:hover, .submenu a:focus-visible { background: var(--sky-soft); color: var(--sky); transform: translateX(3px); outline: none; }
.submenu a.sub-all { color: var(--sky); font-weight: 600; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; margin-top: 6px; padding-top: 11px; }
/* Region submenus split into county columns */
.submenu.wide { width: 440px; }
.submenu .sub-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.submenu .sub-group { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); padding: 8px 12px 4px; }
.submenu .sub-cols a { padding: 6px 12px; }
.nav-links > li > a.active, .nav-links > li > .dropdown-toggle.active { color: var(--gg-deep); }
.mobile-menu .m-sub .m-group { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); padding: 14px 8px 4px; }

/* Mobile nested sub-menus */
.mobile-menu .m-sub .m-toggle { font-size: 1rem; color: var(--ink); border-bottom: 1px dashed var(--border); padding: 14px 8px; }
.mobile-menu .m-sub .m-sub { padding-left: 14px; }
.mobile-menu .m-sub .m-sub a { font-size: .94rem; padding: 12px 8px; }
.mobile-menu .m-sub a.m-all { color: var(--sky); font-weight: 600; }

/* ---------- AI answer mockup card ---------- */
.ai-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; position: relative;
}
.ai-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: #fbfcff; }
.ai-dots { display: flex; gap: 6px; }
.ai-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe6f3; display: block; }
.ai-engine { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--navy); background: var(--sky-soft); padding: 5px 12px; border-radius: var(--radius-pill); }
.ai-engine svg { width: 14px; height: 14px; color: var(--sky); }
.ai-body { padding: 22px 22px 24px; display: grid; gap: 16px; }
.ai-q { justify-self: end; max-width: 86%; background: linear-gradient(135deg, var(--sky-bright), var(--sky-deep)); color: #fff; padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-size: .95rem; box-shadow: 0 10px 22px rgba(20,121,209,.22); }
.ai-a { display: grid; gap: 12px; }
.ai-a > p { color: var(--ink); font-size: .93rem; }
.ai-pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.ai-pick .rank { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .8rem; background: var(--sky-soft); color: var(--sky); }
.ai-pick.you { border-color: var(--sky); background: var(--sky-soft); box-shadow: 0 10px 24px rgba(20,121,209,.14); }
.ai-pick.you .rank { background: var(--sky); color: #fff; }
.ai-pick .pick-body { flex: 1; min-width: 0; }
.ai-pick .pick-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: .95rem; }
.ai-pick .pick-name .stars { color: var(--star); font-size: .8rem; letter-spacing: 1px; }
.ai-pick .pick-why { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.ai-pick .cited { font-family: "Inter", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--sky); color: #fff; padding: 3px 8px; border-radius: var(--radius-pill); }
.ai-skel { display: grid; gap: 7px; padding-top: 4px; }
.ai-skel i { display: block; height: 9px; border-radius: 6px; background: #e8eef8; }
.ai-skel i:first-child { width: 46%; height: 11px; background: #dde5f2; }
.ai-skel i:last-child { width: 78%; }
.ai-sources { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.ai-sources span { font-size: .74rem; font-weight: 600; color: var(--muted); background: #f3f6fc; border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--radius-pill); }
.page-hero .ai-card { max-width: 520px; width: 100%; justify-self: end; }

/* Engine strip */
.engine-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.engine-strip span { font-size: .84rem; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--border); padding: 6px 13px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.engine-label { display: block; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid .svc-card { display: flex; flex-direction: column; }
.card-grid .svc-card .more { margin-top: auto; padding-top: 14px; }
.svc-card .meta { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: -2px 0 8px; }
.svc-card .sub-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.svc-card .sub-links span { font-size: .78rem; color: var(--muted); background: #f3f6fc; padding: 4px 10px; border-radius: var(--radius-pill); }

/* Prompt chips */
.prompt-list { display: grid; gap: 12px; }
.prompt-list li {
  display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 15px; font-size: .96rem; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.prompt-list li:hover { transform: translateX(4px); border-color: var(--sky-soft-2); box-shadow: var(--shadow-sm); }
.prompt-list li svg { flex: none; width: 20px; height: 20px; color: var(--sky); margin-top: 2px; }

/* Link chips */
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a {
  font-size: .9rem; font-weight: 500; color: var(--navy); background: #fff; border: 1px solid var(--border);
  padding: 9px 16px; border-radius: var(--radius-pill); transition: border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s;
}
.chip-links a:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.center .chip-links { justify-content: center; }
.chip-group + .chip-group { margin-top: 30px; }
.chip-group h3 { font-size: 1.05rem; margin-bottom: 14px; }
.chip-group h3 a:hover { color: var(--sky); }

/* Prose */
.prose { max-width: 780px; }
.prose p { color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; }
.prose h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.prose strong { color: var(--navy); }
.center .prose { margin-left: auto; margin-right: auto; }

/* Neighborhood tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span { font-size: .86rem; color: var(--navy); background: var(--sky-soft); padding: 6px 13px; border-radius: var(--radius-pill); }

/* Media room */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.empty-card {
  border: 1.6px dashed var(--sky-soft-2); border-radius: var(--radius); padding: 28px 24px; background: #fff;
  color: var(--muted); font-size: .94rem;
}
.empty-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.media-section + .media-section { margin-top: 56px; }
.media-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.media-section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.media-section-head p { color: var(--muted); max-width: 520px; }

/* Contact page */
.contact-cards { display: grid; gap: 16px; }
.contact-cards a, .contact-cards div.cc {
  display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s;
}
.contact-cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-cards .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sky-soft); color: var(--sky); display: grid; place-items: center; }
.contact-cards .ic svg { width: 22px; height: 22px; }
.contact-cards strong { display: block; font-family: var(--font-display); color: var(--navy); }
.contact-cards span { color: var(--muted); font-size: .92rem; }

@media (max-width: 1024px) {
  .card-grid, .card-grid.cols-4, .media-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero .ai-card { justify-self: start; }
}
@media (max-width: 600px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .media-grid { grid-template-columns: 1fr; }
  .ai-body { padding: 18px 16px 20px; }
  .ai-q { max-width: 100%; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-mark svg { width: 32px; height: 32px; }
  .brand-name { font-size: 1.22rem; }
}
/* hover bridge across the gap between toggle and menu */
.dropdown-menu::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }

.dropdown-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 12px 13px 4px; border-top: 1px solid var(--border); font-size: .86rem; font-weight: 600; color: var(--sky); }
.dropdown-foot svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.dropdown-foot:hover svg { transform: translateX(4px); }

.svc-cards.two-col { grid-template-columns: 1fr 1fr; }
@media (min-width: 1025px) {
  .card-grid:not(.cols-2):not(.cols-4) > :last-child:nth-child(3n+1) { grid-column: 2; }
}

.footer-top.cols-5 { grid-template-columns: 1.5fr 1fr 1.05fr 1fr 1.3fr; gap: 34px; }
@media (max-width: 1024px) {
  .footer-top.cols-5 { grid-template-columns: repeat(4, 1fr); }
  .footer-top.cols-5 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .footer-top.cols-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .svc-cards.two-col { grid-template-columns: 1fr; }
  .footer-top.cols-5 { grid-template-columns: 1fr; }
}
.card-grid .svc-card.span-all { grid-column: 1 / -1; }

/* ===================================================================
   v3 — hero form, AI demo, research cards
   =================================================================== */

/* Grouped reveal: children stagger in once, then hover is instant */
@keyframes groupIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal-group:not(.in) > * { opacity: 0; }
.reveal-group.in > * { animation: groupIn .55s var(--ease) backwards; }
.reveal-group.in > :nth-child(2) { animation-delay: .07s; }
.reveal-group.in > :nth-child(3) { animation-delay: .14s; }
.reveal-group.in > :nth-child(4) { animation-delay: .21s; }
.reveal-group.in > :nth-child(5) { animation-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal-group:not(.in) > * { opacity: 1; } }

/* Side cards (prompts / neighborhoods) */
.side-stack { display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.side-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: 16px; }
.side-head svg { width: 20px; height: 20px; color: var(--sky); flex: none; }
.side-card .prompt-list { gap: 10px; }
.side-card .prompt-list li { background: #fbfcff; }

/* Hero form */
.page-hero .container { align-items: center; }
.hero-form {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0d5fae, #0b2545 78%);
  border-radius: var(--radius-lg); padding: 30px 28px 24px; box-shadow: var(--shadow-lg); max-width: 520px; width: 100%; justify-self: end;
}
/* a crisp sun peeking in at the top-right corner */
.hero-form::before { content: ""; position: absolute; right: -58px; top: -58px; width: 112px; height: 112px; border-radius: 50%; background: #ffc53d; box-shadow: 0 0 0 14px rgba(255,197,61,.16), 0 0 0 30px rgba(255,197,61,.07); }
.hero-form h2 { color: #fff; font-size: 1.45rem; position: relative; padding-right: 40px; }
.hero-form > p { color: #cfe0f3; font-size: .93rem; margin: 8px 0 0; position: relative; }
.hero-form .contact-form { margin-top: 18px; gap: 11px; max-width: none; }
.hero-form .contact-form input, .hero-form .contact-form textarea { padding: 12px 14px; font-size: .93rem; }
.hero-form .contact-form textarea { min-height: 84px; }
.hero-form .form-note { color: #9fb6d3; font-size: .82rem; margin-top: 14px; position: relative; }
.hero-form .form-note a { color: #fff; font-weight: 600; }
.page-hero .hero-actions:empty { display: none; }
.hero-contacts { margin-top: 6px; max-width: 520px; }
.media-contacts { grid-template-columns: repeat(3, 1fr); }

.eng-logo { width: 18px; height: 18px; object-fit: contain; flex: none; display: inline-block; }
.engine-strip span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Interactive AI demo ---------- */
.ai-demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 18px 26px;
  grid-template-areas: "q chat" "eng chat" "sig chat"; align-items: start;
}
.demo-q { grid-area: q; } .demo-eng { grid-area: eng; } .demo-sig-wrap { grid-area: sig; }
.demo-chat { grid-area: chat; position: sticky; top: calc(var(--header-h) + 18px); }
.demo-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.demo-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: .98rem; margin-bottom: 12px; }
.demo-label .n { width: 24px; height: 24px; border-radius: 7px; background: var(--sky); color: #fff; display: grid; place-items: center; font-size: .78rem; }
.demo-prompts { display: grid; gap: 8px; }
.demo-prompt {
  text-align: left; font-size: .9rem; color: var(--ink); background: #f6f9ff; border: 1px solid var(--border);
  padding: 10px 13px; border-radius: 11px; transition: border-color .2s, background .2s, color .2s;
}
.demo-prompt:hover { border-color: var(--sky-soft-2); background: #fff; }
.demo-prompt.active { border-color: var(--sky); background: var(--sky-soft); color: var(--navy); font-weight: 500; }
.demo-engines { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-engine {
  display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--border); padding: 8px 12px; border-radius: var(--radius-pill);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.demo-engine:hover { border-color: var(--sky-soft-2); }
.demo-engine.active { border-color: var(--sky); background: var(--sky-soft); box-shadow: 0 6px 16px rgba(20,121,209,.14); }
.demo-sigs { display: grid; gap: 8px; }
.demo-sig { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; transition: border-color .2s, background .2s; }
.demo-sig:hover { border-color: var(--sky-soft-2); }
.demo-sig input { position: absolute; opacity: 0; pointer-events: none; }
.demo-sig .switch { flex: none; width: 38px; height: 22px; border-radius: 999px; background: #d9e2f1; position: relative; transition: background .25s; margin-top: 1px; }
.demo-sig .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.demo-sig input:checked + .switch { background: var(--sky); }
.demo-sig input:checked + .switch::after { transform: translateX(16px); }
.demo-sig input:focus-visible + .switch { outline: 2px solid var(--sky); outline-offset: 2px; }
.demo-sig:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); }
.sig-text strong { display: block; font-family: var(--font-display); font-size: .9rem; color: var(--navy); font-weight: 600; }
.sig-text small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: 2px; }
.demo-meter { margin-top: 16px; }
.meter-top { display: flex; justify-content: space-between; font-size: .86rem; color: var(--muted); margin-bottom: 7px; }
.meter-top b { font-family: var(--font-display); color: var(--navy); }
.meter-bar { height: 10px; border-radius: 999px; background: #e8eef8; overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8cc8ff, var(--sky)); transition: width .6s var(--ease); }
.meter-label { font-size: .8rem; font-weight: 600; color: var(--sky); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.demo-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.demo-actions .btn { padding: 10px 18px; font-size: .88rem; }
.status-pill { font-size: .8rem; color: var(--muted); background: #f3f6fc; border: 1px solid var(--border); padding: 5px 11px; border-radius: var(--radius-pill); transition: background .3s, color .3s, border-color .3s; }
.status-pill b { color: var(--navy); }
.status-pill.good { background: #e9f9ef; border-color: #bfe9cd; color: #1d7a42; }
.status-pill.good b { color: #136334; }
.ai-thinking { display: inline-flex; gap: 5px; padding: 8px 0; }
.ai-thinking i { width: 8px; height: 8px; border-radius: 50%; background: #b9c8e2; animation: think 1s infinite ease-in-out; }
.ai-thinking i:nth-child(2) { animation-delay: .15s; } .ai-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes pickIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ai-a.typing > * { animation: pickIn .4s var(--ease) backwards; }
.ai-a.typing > :nth-child(2) { animation-delay: .1s; } .ai-a.typing > :nth-child(3) { animation-delay: .2s; }
.ai-a.typing > :nth-child(4) { animation-delay: .3s; } .ai-a.typing > :nth-child(5) { animation-delay: .4s; } .ai-a.typing > :nth-child(6) { animation-delay: .5s; }
.ai-pick.flash { animation: flash .7s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(20,121,209,.45); } 100% { box-shadow: 0 0 0 14px rgba(20,121,209,0); } }
.ai-pick.missing { border-style: dashed; background: #fafbfd; }
.ai-pick.missing .pick-name { color: var(--muted-2); }
.ai-pick.missing .rank { background: #eef1f6; color: var(--muted-2); }
.ai-pick .badge-soft { font-family: "Inter", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #eef1f6; color: var(--muted); padding: 3px 8px; border-radius: var(--radius-pill); }
.ai-sources span.on { background: var(--sky-soft); border-color: var(--sky-soft-2); color: var(--sky); }
.demo-note { text-align: center; color: var(--muted-2); font-size: .84rem; margin-top: 22px; }

/* ---------- Why AEO matters: research cards ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ev-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ev-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ev-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ev-kind { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); background: var(--sky-soft); padding: 4px 10px; border-radius: var(--radius-pill); }
.ev-date { font-size: .8rem; color: var(--muted-2); }
.ev-stat { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--sky); margin-bottom: 10px; }
.ev-text { color: var(--ink); font-size: .94rem; }
.ev-quote { font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: 1.02rem; line-height: 1.5; border-left: 3px solid var(--sky); padding-left: 14px; margin-bottom: 10px; }
.ev-cite { color: var(--muted); font-size: .84rem; margin-bottom: 8px; }
.ev-card .ev-quote + .ev-text, .ev-cite + .ev-text { color: var(--muted); font-size: .9rem; }
.ev-source {
  margin-top: auto; padding-top: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 18px;
}
.ev-source b { color: var(--navy); }
.ev-source svg { width: 15px; height: 15px; color: var(--sky); flex: none; margin-top: 2px; transform: rotate(-45deg); transition: transform .25s var(--ease); }
.ev-source:hover { color: var(--sky); }
.ev-source:hover svg { transform: rotate(-45deg) translateX(3px); }
.ev-note { text-align: center; color: var(--muted-2); font-size: .84rem; margin-top: 22px; }

@media (max-width: 1024px) {
  .hero-form { justify-self: start; }
  .ai-demo { grid-template-columns: 1fr; grid-template-areas: "q" "eng" "chat" "sig"; }
  .demo-chat { position: static; }
  .ev-grid, .ev-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .media-contacts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-form { padding: 24px 18px 20px; }
  .ev-grid, .ev-grid.cols-4 { grid-template-columns: 1fr; }
  .home-hero .engine-strip { gap: 6px; }
}
.breadcrumb { flex-wrap: wrap; row-gap: 4px; }
.breadcrumb a, .breadcrumb span { white-space: nowrap; }

/* ===================================================================
   Demo chat window: re-skins to match each AI platform
   (colors sampled from each product's dark interface)
   =================================================================== */
.demo-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; min-height: 30px; }
.status-note { font-size: .82rem; color: var(--muted); }
.chat-window {
  --cw-bg: #000; --cw-text: #ececec; --cw-muted: #a3a3a3; --cw-bubble: #2a2a2a; --cw-box: #212121; --cw-line: rgba(255,255,255,.08);
  --cw-you: rgba(66,133,244,.16); --cw-you-line: rgba(122,162,255,.55);
  height: 580px; display: flex; flex-direction: column; overflow: hidden; position: relative;
  border-radius: var(--radius-lg); background: var(--cw-bg); color: var(--cw-text);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: .93rem; line-height: 1.55;
}
.chat-window svg { width: 18px; height: 18px; flex: none; }
.cw-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 20px; min-height: 54px; }
.cw-body { flex: 1; min-height: 0; overflow-y: auto; position: relative; padding: 8px 22px 18px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.cw-body > * { flex: none; }
.cw-composer { flex: none; padding: 4px 18px 14px; }
.cw-composer:empty { display: none; }
.cw-fine { text-align: center; font-size: .72rem; color: var(--cw-muted); margin-top: 8px; }
.cw-noscript { color: var(--cw-muted); }
.chat-window .ph { flex: 1; color: var(--cw-muted); }
.chat-window .ic { display: grid; place-items: center; color: var(--cw-muted); }
.msg-user { align-self: flex-end; max-width: 78%; background: var(--cw-bubble); color: var(--cw-text); padding: 10px 16px; border-radius: 20px; }
.msg-ai p { margin: 0 0 8px; }
.msg-ai ol, .msg-ai ul { margin: 0 0 10px; padding-left: 1.35em; display: grid; gap: 7px; }
.msg-ai li { padding: 3px 6px; margin-left: -6px; border-radius: 8px; transition: background .3s; }
.msg-ai li::marker { color: var(--cw-muted); }
.msg-ai strong { color: #fff; font-weight: 600; }
.msg-ai li.is-you { background: var(--cw-you); box-shadow: inset 2px 0 0 var(--cw-you-line); }
.msg-ai li.flash { animation: youFlash .8s var(--ease); }
@keyframes youFlash { 0% { background: rgba(122,162,255,.42); } 100% { background: var(--cw-you); } }
.cw-body.typing > *, .cw-body.typing li { animation: pickIn .4s var(--ease) backwards; }
.cw-body.typing > :nth-child(2) { animation-delay: .08s; } .cw-body.typing > :nth-child(3) { animation-delay: .16s; } .cw-body.typing > :nth-child(4) { animation-delay: .24s; }
.cw-body.typing li:nth-child(1) { animation-delay: .2s; } .cw-body.typing li:nth-child(2) { animation-delay: .3s; } .cw-body.typing li:nth-child(3) { animation-delay: .4s; }
.cw-thinking { display: flex; align-items: center; gap: 10px; color: var(--cw-muted); font-size: .9rem; }
.spin { animation: cwSpin 1.4s linear infinite; }
.pulse { animation: cwPulse 1.1s ease-in-out infinite; }
@keyframes cwSpin { to { transform: rotate(360deg); } }
@keyframes cwPulse { 0%, 100% { transform: scale(.85) rotate(0); opacity: .6; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
.chat-window img[src$="chatgpt.svg"] { filter: invert(1); }

/* ChatGPT */
.theme-chatgpt { --cw-bg: #000; --cw-bubble: #262626; --cw-box: #212121; }
.cg-model { display: inline-flex; align-items: center; gap: 4px; font-size: 1.05rem; font-weight: 600; color: #fff; }
.cg-model svg { width: 15px; height: 15px; color: var(--cw-muted); }
.theme-chatgpt .msg-user { border-radius: 22px; }
.cg-think i { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: cwPulse 1s ease-in-out infinite; }
.cg-tools { display: flex; gap: 14px; color: var(--cw-muted); margin-top: 2px; }
.cg-tools svg { width: 16px; height: 16px; }
.cg-box { display: flex; align-items: center; gap: 12px; background: var(--cw-box); border-radius: 999px; padding: 10px 10px 10px 16px; }
.cg-voice { width: 34px; height: 34px; border-radius: 50%; background: #414141; display: grid; place-items: center; color: #fff; }

/* Gemini */
.theme-gemini {
  --cw-bg: #0f1014; --cw-text: #e3e3e3; --cw-muted: #a8abb2; --cw-bubble: #282a2c; --cw-box: #1e1f20;
  background: radial-gradient(ellipse 90% 60% at 50% 105%, rgba(27,39,91,.95), transparent 70%), #0f1014;
}
.gm-title { font-size: 1.2rem; color: #e3e3e3; font-family: "Google Sans", "Product Sans", Arial, sans-serif; }
.gm-model { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--cw-muted); background: #1e1f20; padding: 5px 12px; border-radius: 999px; }
.gm-model svg { width: 14px; height: 14px; }
.theme-gemini .msg-user { border-radius: 24px 4px 24px 24px; }
.theme-gemini .msg-ai { display: flex; gap: 14px; align-items: flex-start; }
.gm-avatar { width: 26px; height: 26px; flex: none; margin-top: 1px; }
.theme-gemini .msg-ai strong { color: #fff; }
.gm-box { display: flex; align-items: center; gap: 12px; background: var(--cw-box); border-radius: 999px; padding: 13px 18px; }

/* Perplexity */
.theme-perplexity { --cw-bg: #161616; --cw-text: #e8e8e6; --cw-muted: #8d9191; --cw-box: #1d1d1d; --cw-you: rgba(32,184,205,.14); --cw-you-line: rgba(32,184,205,.6); }
.px-logo { width: 22px; height: 22px; }
.px-thread { font-size: .85rem; color: var(--cw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-q { font-family: inherit; font-size: 1.32rem; font-weight: 500; line-height: 1.3; color: #f2f2f0; letter-spacing: 0; }
.px-tabs { display: flex; gap: 20px; border-bottom: 1px solid #2a2a2a; font-size: .85rem; color: var(--cw-muted); }
.px-tabs span { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 9px; }
.px-tabs .on { color: #f2f2f0; border-bottom: 2px solid #f2f2f0; margin-bottom: -1px; }
.px-mini { width: 15px; height: 15px; }
.px-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.px-src { background: #1f2121; border-radius: 10px; padding: 9px 10px; display: flex; justify-content: space-between; gap: 6px; font-size: .74rem; }
.px-src b { color: #d9d9d7; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-src span { color: var(--cw-muted); }
.px-cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 5px; background: #2a2c2c; color: var(--cw-muted); font-size: .66rem; vertical-align: 1px; }
.px-box { display: flex; align-items: center; gap: 10px; background: var(--cw-box); border: 1px solid #2c2d2d; border-radius: 14px; padding: 10px 10px 10px 16px; }
.px-send { width: 34px; height: 34px; border-radius: 50%; background: #20b8cd; color: #0b2a2e; display: grid; place-items: center; }

/* Claude */
.theme-claude { --cw-bg: #1f1e1d; --cw-text: #e8e5dc; --cw-muted: #a09d94; --cw-bubble: #141413; --cw-box: #2a2a28; --cw-you: rgba(217,119,87,.15); --cw-you-line: rgba(217,119,87,.65); }
.cl-title { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; color: var(--cw-text); }
.cl-title svg { width: 14px; height: 14px; color: var(--cw-muted); }
.theme-claude .msg-user { border-radius: 14px; background: var(--cw-bubble); }
.theme-claude .msg-ai { font-family: "Tiempos Text", "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.6; }
.theme-claude .msg-ai strong { color: #f3f0e8; }
.cl-spark { width: 26px; height: 26px; }
.cl-box { background: var(--cw-box); border: 1px solid #3a3936; border-radius: 18px; padding: 14px 14px 10px 16px; display: grid; gap: 12px; }
.cl-row { display: flex; align-items: center; gap: 10px; }
.cl-model { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--cw-muted); }
.cl-model svg { width: 13px; height: 13px; }
.cl-send { width: 32px; height: 32px; border-radius: 9px; background: #c6613f; color: #fff; display: grid; place-items: center; }
.cl-send svg { width: 16px; height: 16px; }

/* Google AI Overviews */
.theme-google { --cw-bg: #1f1f1f; --cw-text: #e3e3e3; --cw-muted: #9aa0a6; --cw-box: #303134; font-family: "Google Sans", Arial, sans-serif; }
.theme-google .cw-top { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 20px 0; border-bottom: 1px solid #3c4043; }
.go-head { display: flex; align-items: center; gap: 14px; }
.go-word { font-size: 1.35rem; letter-spacing: -.02em; font-family: "Product Sans", "Google Sans", Arial, sans-serif; }
.go-word b { font-weight: 500; }
.go-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: #303134; border-radius: 999px; padding: 8px 14px; }
.go-search .q { flex: 1; min-width: 0; color: #e8eaed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.go-search svg { width: 16px; height: 16px; }
.go-tabs { display: flex; gap: 18px; font-size: .82rem; color: var(--cw-muted); overflow: hidden; }
.go-tabs span { padding-bottom: 9px; white-space: nowrap; }
.go-tabs .on { color: #e8e8e8; border-bottom: 3px solid #e8e8e8; }
.theme-google .cw-body { padding-top: 18px; }
.go-label { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 500; color: #e8eaed; }
.go-spark { width: 22px; height: 22px; }
.theme-google .msg-ai mark { background: #273c9a; color: #dfe2f6; padding: 1px 3px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.go-chip { display: inline-flex; align-items: center; font-size: .72rem; color: #c4c7c5; background: #36383f; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; white-space: nowrap; }
.go-more { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #5f6368; border-radius: 999px; padding: 9px; font-size: .88rem; color: #e8eaed; }
.go-more svg { width: 16px; height: 16px; }
.go-skel { display: grid; gap: 10px; }
.go-skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #2c2d30 25%, #3a3b3f 50%, #2c2d30 75%); background-size: 200% 100%; animation: goShimmer 1.2s linear infinite; }
.go-skel i:nth-child(2) { width: 92%; } .go-skel i:nth-child(3) { width: 78%; } .go-skel i:nth-child(4) { width: 60%; }
@keyframes goShimmer { to { background-position: -200% 0; } }

@media (max-width: 600px) {
  .chat-window { height: 540px; font-size: .88rem; }
  .cw-body { padding: 6px 16px 16px; }
  .msg-user { max-width: 90%; }
  .px-sources { grid-template-columns: repeat(2, 1fr); }
  .px-sources .px-src:nth-child(3) { display: none; }
  .go-tabs span:nth-child(n+5) { display: none; }
}
.msg-ai ul { list-style: disc; }

/* ===================================================================
   Query fan-out explainer (niche pages)
   =================================================================== */
.fan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px; }
.fan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.fan-prompts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.fan-prompt { font-size: .84rem; color: var(--ink); background: #f6f9ff; border: 1px solid var(--border); padding: 8px 13px; border-radius: 999px; text-align: left; transition: border-color .2s, background .2s; }
.fan-prompt:hover { border-color: var(--sky-soft-2); background: #fff; }
.fan-prompt.active { border-color: var(--sky); background: var(--sky-soft); color: var(--navy); font-weight: 500; }
.fan-mode { flex: none; display: inline-flex; background: #f1f4fa; border-radius: 999px; padding: 4px; }
.fan-mode button { font-size: .84rem; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s, box-shadow .2s; }
.fan-mode button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.fan-mode button[data-mode="after"].active { color: var(--sky); }
.fan-bar { display: flex; align-items: center; gap: 16px; margin: 20px 0 22px; padding: 12px 14px; background: #f8faff; border: 1px solid var(--border); border-radius: 14px; }
.fan-play { flex: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: #fff; background: linear-gradient(135deg, var(--sky-bright), var(--sky-deep)); padding: 9px 16px; border-radius: 999px; box-shadow: 0 8px 18px rgba(20,121,209,.28); }
.fan-play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.fan-steps { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fan-step { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted-2); padding: 6px 8px; border-radius: 10px; transition: color .3s, background .3s; }
.fan-step .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; background: #e5ebf5; color: var(--muted); transition: background .3s, color .3s; }
.fan-step.done { color: var(--navy); }
.fan-step.done .n { background: var(--sky-soft-2); color: var(--sky); }
.fan-step.active { color: var(--sky); background: var(--sky-soft); }
.fan-step.active .n { background: var(--sky); color: #fff; }

.fan-stage {
  position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto repeat(5, auto); column-gap: 52px; row-gap: 10px; align-items: center;
}
.fan-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.fan-lines path { fill: none; stroke: #b9d8f2; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.fan-lines path.l3.yes { stroke: var(--sky); stroke-width: 2; }
.fan-lines path.l3.weak { stroke: #f0b54a; }
.fan-lines path.l3.no { stroke: #f1c6c6; }
.fan-lines .k1 { transition-delay: .1s; } .fan-lines .k2 { transition-delay: .2s; } .fan-lines .k3 { transition-delay: .3s; } .fan-lines .k4 { transition-delay: .4s; }
.fan-stage.s2 .l1, .fan-stage.s3 .l1, .fan-stage.s4 .l1,
.fan-stage.s3 .l2, .fan-stage.s4 .l2, .fan-stage.s4 .l3 { stroke-dashoffset: 0; }
.fan-label { grid-row: 1; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); align-self: end; padding-bottom: 4px; }
.fan-label.c1 { grid-column: 1; } .fan-label.c2 { grid-column: 2; } .fan-label.c3 { grid-column: 3; } .fan-label.c4 { grid-column: 4; }
.fan-q { grid-column: 1; grid-row: 2 / 7; position: relative; z-index: 1; }
.fan-qbox { background: linear-gradient(135deg, var(--sky-bright), var(--sky-deep)); color: #fff; padding: 16px 18px; border-radius: 18px 18px 4px 18px; font-size: .95rem; line-height: 1.45; box-shadow: 0 12px 26px rgba(20,121,209,.25); transition: box-shadow .4s; }
.fan-stage.s1 .fan-qbox { box-shadow: 0 0 0 6px rgba(20,121,209,.18), 0 12px 26px rgba(20,121,209,.25); }
.r0 { grid-row: 2; } .r1 { grid-row: 3; } .r2 { grid-row: 4; } .r3 { grid-row: 5; } .r4 { grid-row: 6; }
/* Stagger only the fade-in; selection/hover styles change instantly */
.fan-sub, .fan-src { position: relative; z-index: 1; opacity: 0; --d: 0s; transition: opacity .45s var(--ease) var(--d), border-color .15s, background .15s, box-shadow .15s; }
.fan-sub[data-k="1"], .fan-src[data-k="1"] { --d: .1s; } .fan-sub[data-k="2"], .fan-src[data-k="2"] { --d: .2s; }
.fan-sub[data-k="3"], .fan-src[data-k="3"] { --d: .3s; } .fan-sub[data-k="4"], .fan-src[data-k="4"] { --d: .4s; }
.fan-stage.s2 .fan-sub, .fan-stage.s3 .fan-sub, .fan-stage.s4 .fan-sub,
.fan-stage.s3 .fan-src, .fan-stage.s4 .fan-src { opacity: 1; }
.fan-sub { grid-column: 2; display: flex; align-items: center; gap: 10px; text-align: left; font-size: .86rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.fan-sub .n { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--sky-soft); color: var(--sky); }
.fan-sub .tx { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.35; }
.fan-sub:hover { border-color: var(--sky-soft-2); }
.fan-sub.sel { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(20,121,209,.12); }
.fan-src { grid-column: 3; display: flex; flex-direction: column; gap: 4px; background: #fafbfe; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: .82rem; color: var(--navy); font-weight: 500; }
.fan-src .res { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; opacity: 0; transition: opacity .3s .5s; }
.fan-src .res i { font-style: normal; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: .64rem; color: #fff; }
.fan-stage.s3 .fan-src .res, .fan-stage.s4 .fan-src .res { opacity: 1; }
.fan-src[data-res="yes"] .res { color: #1d7a42; } .fan-src[data-res="yes"] .res i { background: #22a35a; }
.fan-src[data-res="weak"] .res { color: #a86a00; } .fan-src[data-res="weak"] .res i { background: #f0a92e; }
.fan-src[data-res="no"] .res { color: #b42318; } .fan-src[data-res="no"] .res i { background: #e5484d; }
.fan-ans { grid-column: 4; grid-row: 2 / 7; position: relative; z-index: 1; opacity: 0; transition: opacity .5s var(--ease); }
.fan-stage.s4 .fan-ans { opacity: 1; }
.fan-answer { display: grid; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); }
.fan-pick { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--border); }
.fan-pick .r { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: .76rem; font-weight: 700; background: #eef2f8; color: var(--muted); }
.fan-pick b { display: block; font-family: var(--font-display); font-size: .88rem; color: var(--navy); font-weight: 600; }
.fan-pick small { font-size: .74rem; color: var(--muted); }
.fan-pick.you { border-color: var(--sky); background: var(--sky-soft); }
.fan-pick.you .r { background: var(--sky); color: #fff; }
.fan-pick.missing { border-style: dashed; background: #fdf6f6; border-color: #f1c6c6; }
.fan-pick.missing b { color: var(--muted); }
.fan-caption { min-height: 48px; text-align: center; color: var(--ink); font-size: .96rem; max-width: 720px; margin: 22px auto 0; }
.fan-detail { margin-top: 16px; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: #fbfcff; }
.fd-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fd-n { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); background: var(--sky-soft); padding: 4px 10px; border-radius: 999px; }
.fd-head b { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86rem; color: var(--navy); font-weight: 600; }
.fd-res { margin-left: auto; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.fd-res.yes { color: #1d7a42; background: #e9f9ef; } .fd-res.weak { color: #a86a00; background: #fff4df; } .fd-res.no { color: #b42318; background: #fdecec; }
.fd-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
.fd-grid span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.fd-grid p { font-size: .9rem; color: var(--ink); }

@media (max-width: 960px) {
  .fan { padding: 18px; }
  .fan-lines, .fan-label.c1, .fan-label.c4 { display: none; }
  .fan-stage { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: none; column-gap: 10px; }
  .fan-q { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
  .fan-label { grid-row: 2; }
  .fan-label.c2 { grid-column: 1; } .fan-label.c3 { grid-column: 2; }
  .r0 { grid-row: 3; } .r1 { grid-row: 4; } .r2 { grid-row: 5; } .r3 { grid-row: 6; } .r4 { grid-row: 7; }
  .fan-sub { grid-column: 1; } .fan-src { grid-column: 2; }
  .fan-ans { grid-column: 1 / -1; grid-row: 8; margin-top: 10px; }
  .fan-steps { grid-template-columns: repeat(2, 1fr); }
  .fd-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 600px) {
  .fan-bar { flex-direction: column; align-items: stretch; }
  .fan-mode { width: 100%; } .fan-mode button { flex: 1; }
  .fan-sub .tx { font-size: .74rem; }
}

/* ===================================================================
   Industry + location directories
   =================================================================== */
.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dir-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 20px 16px; box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease); }
.dir-card:hover { box-shadow: var(--shadow-md); }
.dir-card.wide { grid-column: 1 / -1; }
.dir-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.dir-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); transition: background .25s, color .25s, transform .3s var(--ease); }
.dir-ic svg { width: 23px; height: 23px; }
.dir-head:hover .dir-ic { background: var(--sky); color: #fff; transform: rotate(-6deg); }
.dir-title { min-width: 0; }
.dir-title h3 { font-size: 1.12rem; }
.dir-title small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.dir-go { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--sky); }
.dir-go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.dir-head:hover .dir-go svg { transform: translateX(4px); }
.dir-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.dir-card.wide .dir-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dir-links a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: .92rem; color: var(--ink); transition: background .2s, color .2s; }
.dir-links a:hover { background: var(--sky-soft); color: var(--sky); }
.li-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f3f6fc; color: var(--sky); transition: background .2s, color .2s; }
.li-ic svg { width: 15px; height: 15px; }
.dir-links a:hover .li-ic { background: var(--sky); color: #fff; }
.dir-foot { text-align: center; margin-top: 26px; }
.dir-sub { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); padding: 10px 8px 2px; }
.dir-sub:first-of-type { padding-top: 2px; }
.county-head { font-size: 1.2rem; color: var(--navy); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.county-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.card-grid + .county-head { margin-top: 40px; }
.dir-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.dir-tags span, .dir-tags a { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; color: var(--navy); background: #f6f9ff; border: 1px solid var(--border); padding: 6px 11px; border-radius: 999px; }
.dir-tags svg { width: 13px; height: 13px; color: var(--sky); }
.dir-tags a { color: var(--sky); font-weight: 600; background: var(--sky-soft); border-color: var(--sky-soft-2); }
.svc-card .sub-links span { display: inline-flex; align-items: center; gap: 5px; }
.svc-card .sub-links span svg { width: 13px; height: 13px; color: var(--sky); flex: none; }

@media (max-width: 1024px) { .dir-card.wide .dir-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .dir-grid { grid-template-columns: 1fr; } .dir-card.wide .dir-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dir-links, .dir-card.wide .dir-links { grid-template-columns: 1fr; } .dir-go { display: none; } }

/* ===================================================================
   Bento tiles (home page)
   =================================================================== */
.bento { display: grid; gap: 16px; }
.tile {
  --accent: var(--sky);
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-tile); padding: 30px;
}
.tile-sky { background: var(--sky-soft); border-color: #cfe6fb; }
.tile-bay { --accent: var(--bay); background: var(--bay-soft); border-color: #c8e9ee; }
.tile-cypress { --accent: var(--cypress); background: var(--cypress-soft); border-color: #c6e8d4; }
.tile-orange { --accent: var(--gg-deep); background: var(--gg-soft); border-color: #ffd3c2; }
.tile-gold { --accent: var(--gold); background: var(--gold-soft); border-color: #f6dc98; }
.tile-deep { --accent: var(--gg); background: linear-gradient(160deg, #0d5fae, #0b2545 80%); border-color: transparent; }
.tile-brand { background: radial-gradient(circle at 100% 0, rgba(255,226,150,.55), transparent 40%), linear-gradient(135deg, #ec5a30, var(--gg-deep)); border-color: transparent; }
.tile .eyebrow { background: var(--sky-soft); color: var(--accent); }
.tile-sky .eyebrow, .tile-bay .eyebrow, .tile-cypress .eyebrow, .tile-orange .eyebrow, .tile-gold .eyebrow { background: #fff; }
.tile-bay .text-accent { color: var(--bay); }
.btn-white { background: #fff; color: var(--gg-deep); box-shadow: 0 12px 26px rgba(120,30,10,.25); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(7,24,70,.32); }
.section-join { padding-bottom: 16px; }
.section-join + .section { padding-top: 0; }

/* Copy tiles */
.tile-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; }
.tile-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.tile-copy p { color: var(--muted); margin-bottom: 16px; }
.tile-copy p:last-of-type { margin-bottom: 24px; }

/* ---------- Hero: heading + video on the left, form on the right ---------- */
.home-hero { padding: 26px 0 50px; }
.home-hero .container {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "head side" "visual side";
  gap: 16px; align-items: stretch;
}
.home-head {
  grid-area: head; padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background:
    radial-gradient(circle at 100% 0, rgba(255,214,140,.38), transparent 42%),
    radial-gradient(circle at 92% 100%, rgba(226,73,42,.10), transparent 40%),
    #fff;
  border-color: #fff; box-shadow: var(--shadow-md);
}
.home-head .eyebrow { margin-bottom: 14px; }
.home-hero h1 { font-size: clamp(2rem, 4.1vw, 3rem); line-height: 1.06; }
.hero-visual { grid-area: visual; display: flex; }
/* The scene already shows the bridge, so the home hero drops the page-hero strip */
.home-hero::after { display: none; }

/* Golden Gate scene with a sample AI answer */
.scene-tile {
  flex: 1; position: relative; min-height: 400px; padding: 26px; display: flex; align-items: flex-start;
  border-radius: var(--radius-tile); overflow: hidden; box-shadow: var(--shadow-md);
  background: #2089e0 url(/images/golden-gate-sky.svg) center bottom / cover no-repeat;
}
.scene-card {
  width: min(100%, 350px); padding: 14px 14px 12px; border-radius: 20px; font-size: .86rem;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 44px rgba(8,40,90,.25);
}
.sc-q {
  display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, var(--sky-bright), var(--sky-deep)); color: #fff; font-weight: 500;
}
.sc-q svg { width: 15px; height: 15px; flex: none; }
.scene-card .sc-lead { color: var(--muted); font-size: .8rem; margin: 10px 2px 7px; }
.sc-picks { display: grid; gap: 6px; list-style: none; }
.sc-picks li { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.sc-picks b { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.sc-picks span { display: block; color: var(--muted); font-size: .76rem; line-height: 1.4; margin-top: 1px; }
.sc-picks li.you { border-color: var(--gg); background: var(--gg-soft); box-shadow: 0 8px 18px rgba(226,73,42,.16); }
.sc-picks em {
  font-style: normal; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--gg-deep); padding: 3px 7px; border-radius: 999px; margin-left: 7px; vertical-align: 2px;
}
.sc-engines { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.sc-engines small { color: var(--muted); font-size: .72rem; margin-right: 2px; }
.sc-engines span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); }
.sc-engines .eng-logo { width: 14px; height: 14px; }
.hero-side { grid-area: side; display: flex; }
.home-hero .hero-form {
  max-width: none; flex: 1; display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--radius-tile); padding: 34px 32px 28px;
}

/* ---------- Services: copy tile + four tinted cards ---------- */
.bento-svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento-svc .tile-copy { grid-column: span 2; grid-row: span 2; }
.bento-svc .svc-card, .card-grid.tinted .svc-card { border-radius: var(--radius-tile); padding: 28px; box-shadow: none; }
.bento-svc .svc-card:nth-child(2) { --accent: var(--bay); background: var(--bay-soft); border-color: #c8e9ee; }
.bento-svc .svc-card:nth-child(3) { --accent: var(--cypress); background: var(--cypress-soft); border-color: #c6e8d4; }
.bento-svc .svc-card:nth-child(4) { --accent: var(--gg-deep); background: var(--gg-soft); border-color: #ffd3c2; }
.bento-svc .svc-card:nth-child(5) { --accent: var(--gold); background: var(--gold-soft); border-color: #f6dc98; }

/* Accent-driven card details (services + tinted directory cards) */
.bento-svc .svc-card .ic, .card-grid.tinted .svc-card .ic { background: #fff; color: var(--accent); }
.bento-svc .svc-card:hover .ic, .card-grid.tinted .svc-card:hover .ic { background: var(--accent); color: #fff; }
.bento-svc .svc-card::before, .card-grid.tinted .svc-card::before { background: var(--accent); }
.card-grid.tinted .svc-card .more { color: var(--accent); }
.card-grid.tinted .svc-card .sub-links span { background: rgba(255,255,255,.75); }
.card-grid.tinted .svc-card .sub-links span svg { color: var(--accent); }
.card-grid.tinted .svc-card:nth-child(4n+1) { --accent: var(--sky); background: var(--sky-soft); border-color: #cfe6fb; }
.card-grid.tinted .svc-card:nth-child(4n+2) { --accent: var(--bay); background: var(--bay-soft); border-color: #c8e9ee; }
.card-grid.tinted .svc-card:nth-child(4n+3) { --accent: var(--cypress); background: var(--cypress-soft); border-color: #c6e8d4; }
.card-grid.tinted .svc-card:nth-child(4n+4) { --accent: var(--gg-deep); background: var(--gg-soft); border-color: #ffd3c2; }
.card-grid.tinted .svc-card.span-all { --accent: var(--gold); background: var(--gold-soft); border-color: #f6dc98; }

/* ---------- About: copy, three features and a CTA tile ---------- */
.bento-about {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "copy copy f1" "f2 f3 cta";
}
.bento-about > :nth-child(1) { grid-area: copy; }
.bento-about > :nth-child(2) { grid-area: f1; }
.bento-about > :nth-child(3) { grid-area: f2; }
.bento-about > :nth-child(4) { grid-area: f3; }
.bento-about > :nth-child(5) { grid-area: cta; }
.feature-tile .check { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.feature-tile .check svg { width: 20px; height: 20px; }
.feature-tile { display: flex; flex-direction: column; align-items: flex-start; }
.feature-tile h3 { font-size: 1.18rem; margin: auto 0 8px; padding-top: 18px; }
.feature-tile p { color: var(--muted); font-size: .94rem; }
.tile-deep h3, .tile-brand h3 { color: #fff; }
.tile-deep p { color: #cfe0f3; }
.cta-tile { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 22px; }
.cta-tile h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.2; }

/* ---------- AEO names: two tiles ---------- */
.bento-names { gap: 16px; align-items: stretch; }
.bento-names .tile { padding: 36px; }
.bento-names .copy { justify-content: center; display: flex; flex-direction: column; align-items: flex-start; }
.bento-names .copy p { color: var(--muted); }
.bento-names .bullet-list .bi { background: var(--bay-soft); color: var(--bay); }

/* Final CTA: deep afternoon sky with the sun up in the corner; the bridge strip runs along the bottom */
.final-cta { background: radial-gradient(circle at 90% 12%, #ffc53d 0 46px, rgba(255,240,190,.55) 47px, rgba(255,240,190,0) 130px), linear-gradient(180deg, #0d5fae 0%, #2b95e9 62%, #bfe3fb 100%); }

@media (max-width: 1024px) {
  .home-hero .container { grid-template-columns: 1fr; grid-template-areas: "head" "visual" "side"; }
  .bento-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-svc .tile-copy { grid-row: auto; }
  .bento-about { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "copy copy" "f1 f2" "f3 cta"; }
}
@media (max-width: 600px) {
  .tile, .tile-copy, .bento-names .tile { padding: 24px 20px; border-radius: 22px; }
  .home-head { padding: 26px 22px; }
  .home-hero { padding: 16px 0 36px; }
  /* show the bridge above the answer card: the scene keeps a fixed height at the top, the bay color fills below */
  .scene-tile { padding: 190px 16px 16px; background: #0b5aa8 url(/images/golden-gate-sky.svg) center top / auto 290px no-repeat; }
  .page-hero { padding-bottom: 120px; }
  .page-hero::after { height: 116px; }
  .final-cta { padding-bottom: 130px; }
  .final-cta::after { height: 110px; }
  .home-hero .hero-form { padding: 24px 18px 20px; border-radius: 22px; }
  .scene-tile { border-radius: 22px; }
  .bento-svc, .bento-about { grid-template-columns: 1fr; }
  .bento-svc .tile-copy { grid-column: auto; }
  .bento-about { grid-template-areas: "copy" "f1" "f2" "f3" "cta"; }
  .bento-svc .svc-card, .card-grid.tinted .svc-card { border-radius: 22px; padding: 24px 20px; }
}
