/* ============================================================
   FreshFilings - dark dev-tool premium design system
   Palette: azure (#4D9FFF) -> indigo (#6366F1). Green = status only.
   ============================================================ */

:root {
  --bg: #0A0E1A;
  --bg-elevated: #111729;
  --bg-raised: #161D33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F4F6FB;
  --text-muted: #8B95AD;
  --text-faint: #566077;
  --accent: #4D9FFF;
  --accent-2: #6366F1;
  --live: #34D399;
  --warn: #FBBF24;
  --gradient: linear-gradient(120deg, #4D9FFF, #6366F1);
  --glow: rgba(77, 159, 255, 0.45);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --maxw: 1180px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmospheric backdrop: fixed dot-grid + ambient top bloom, behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% -8%, rgba(77, 159, 255, 0.10), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.07), transparent 32%),
    radial-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 60%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 35%, #000 60%, transparent 100%);
}

/* film grain overlay for premium texture */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.7rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: 1.32rem; letter-spacing: -0.015em; }
h4 { font-size: 1rem; }

p { color: var(--text-muted); }

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

.mono, code, pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.skip {
  position: absolute; left: 1rem; top: -120px; z-index: 200;
  background: var(--accent); color: #04122b; padding: 0.6rem 1rem;
  border-radius: var(--r-sm); font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 1rem; }

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

section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.08rem; }

.kicker {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); font-weight: 600; margin-bottom: 1.1rem;
}

/* ---------- reveal motion ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 100px;
  border: 1px solid var(--border-strong); color: var(--text);
  font-weight: 500; font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.btn-ghost::after { content: "\2192"; transition: transform 0.4s var(--ease); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(77, 159, 255, 0.08); transform: translateY(-2px); }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn-ghost:active { transform: translateY(0) scale(0.98); }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 14, 26, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
nav.scrolled {
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.12rem; letter-spacing: -0.02em;
}
.logo-mark {
  width: 22px; height: 22px; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(77, 159, 255, 0.55));
  transition: filter 0.3s var(--ease);
}
.logo:hover .logo-mark { filter: drop-shadow(0 0 14px rgba(77, 159, 255, 0.85)); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.94rem; font-weight: 500; transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important; padding: 0.55rem 1.1rem; border-radius: 100px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(77, 159, 255, 0.25); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem)); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-glow {
  position: absolute; top: -16%; right: -8%; width: 80vw; height: 80vw;
  max-width: 1050px; max-height: 1050px;
  background: radial-gradient(circle at 60% 40%, rgba(77, 159, 255, 0.34), transparent 56%),
              radial-gradient(circle at 78% 68%, rgba(99, 102, 241, 0.26), transparent 55%);
  filter: blur(48px); pointer-events: none; z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-glow::after {
  content: ""; position: absolute; left: -45%; top: 30%; width: 60%; height: 55%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 65%);
  filter: blur(50px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(77, 159, 255, 0.10), transparent 65%);
  transition: opacity 0.3s var(--ease);
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 3%) scale(1.08); }
}
.hero-inner > * { position: relative; z-index: 1; }
.hero-left h1 { margin: 0.4rem 0 1.4rem; }
.hero-left .sub { font-size: 1.18rem; max-width: 33rem; margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* search pill */
.search-form {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: 100px; padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 40px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-width: min(420px, 100%);
}
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.18), 0 12px 40px rgba(0, 0, 0, 0.3); }
.search-form input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1rem; font-family: inherit; min-width: 0;
}
.search-form input::placeholder { color: var(--text-faint); }
.search-form button {
  flex-shrink: 0; border: none; cursor: pointer;
  background: var(--gradient); color: #061026; font-weight: 600;
  padding: 0.72rem 1.5rem; border-radius: 100px; font-size: 0.96rem; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.search-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(77, 159, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.search-form button:active { transform: scale(0.97); }

/* hero code card */
.hero-code {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.45);
}
.code-chrome {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.code-chrome span { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-raised); }
.code-chrome span:nth-child(1) { background: #ff5f57; }
.code-chrome span:nth-child(2) { background: #febc2e; }
.code-chrome span:nth-child(3) { background: #28c840; }
.code-chrome em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }
.code-body {
  padding: 1.4rem 1.5rem; font-size: 0.9rem; line-height: 1.75;
  color: var(--text); white-space: pre; overflow-x: auto; min-height: 13rem;
}
.code-body .k { color: var(--accent); }
.code-body .s { color: #6FE0A8; }
.code-body .n { color: #C9A2FF; }
.code-body .cmt { color: var(--text-faint); }
.code-body .ln { opacity: 0; animation: fadeCode 0.35s var(--ease) forwards; }
.type-caret::after { content: "\2588"; color: var(--accent); animation: blink 1s steps(1) infinite; }

/* ---------- trust marquee ---------- */
.trust { padding-block: clamp(2.5rem, 5vw, 4rem); }
.trust-label { text-align: center; color: var(--text-faint); font-size: 0.86rem; letter-spacing: 0.04em; margin-bottom: 1.8rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: scroll 32s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.1rem; border-radius: 100px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 500; white-space: nowrap;
}
.chip em { font-style: normal; color: var(--text-faint); font-size: 0.78rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.live { background: var(--live); box-shadow: 0 0 10px rgba(52, 211, 153, 0.7); }
.dot.soon { background: var(--warn); }
.dot.plan { background: var(--text-faint); }

/* ---------- demo ---------- */
.demo-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.demo-copy h2 { margin-bottom: 1rem; }
.demo-copy p { font-size: 1.08rem; margin-bottom: 1.8rem; max-width: 26rem; }
.demo-window {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 70px rgba(0, 0, 0, 0.4);
}
.demo-bar {
  display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0.85rem 1.1rem; margin-bottom: 0.8rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.95rem;
}
.demo-q { color: var(--text); }
.caret { width: 2px; height: 1.1em; background: var(--accent); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-results { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.demo-results li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.3rem 1rem;
  padding: 0.85rem 1.1rem; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.demo-results li:hover { transform: translateX(4px); border-color: var(--border-strong); }
.demo-results li.pop { animation: popIn 0.45s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.r-name { font-weight: 600; font-size: 0.96rem; }
.r-meta { grid-column: 1; font-size: 0.82rem; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }

/* ---------- shared status badges ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: 100px; font-size: 0.76rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.05); color: var(--text-muted);
  border: 1px solid var(--border); white-space: nowrap;
}
.status-active { background: rgba(52, 211, 153, 0.12); color: #7BE6BC; border-color: rgba(52, 211, 153, 0.3); }
.status-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.status-inactive { background: rgba(255, 255, 255, 0.04); color: var(--text-faint); }

/* ---------- storefront bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.tile {
  position: relative; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.tile:hover { border-color: var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(77, 159, 255, 0.12); }
.tile-lg { grid-row: span 2; display: flex; flex-direction: column; background:
  radial-gradient(120% 80% at 100% 0%, rgba(77, 159, 255, 0.12), transparent 60%), var(--bg-elevated); }
.tile-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--gradient); color: #061026; font-weight: 700; font-size: 1.2rem;
  margin-bottom: 1.3rem; box-shadow: 0 8px 24px rgba(77, 159, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.tile h3 { margin-bottom: 0.7rem; }
.tile p { font-size: 0.98rem; }
.tile-code {
  margin: 1.4rem 0; padding: 1rem 1.1rem; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--border);
  font-size: 0.84rem; line-height: 1.7; color: var(--text); white-space: pre-wrap; overflow-x: auto;
}
.tile-code .k { color: var(--accent); }
.tile-code .s { color: #6FE0A8; }
.tile-code .cmt { color: var(--text-faint); }
.tile-link { margin-top: auto; display: inline-block; padding-top: 1.2rem; color: var(--accent); font-weight: 600; font-size: 0.94rem; transition: opacity 0.3s var(--ease); }
.tile-link:hover { opacity: 0.75; }

/* ---------- integrate / code showpiece ---------- */
.integrate-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.steps { display: flex; flex-direction: column; gap: 2rem; }
.steps .section-head { margin-bottom: 1rem; }
.step {
  padding: 1.4rem 0 1.4rem 1.3rem; border-left: 2px solid var(--border);
  opacity: 0.4; transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}
.step.active { opacity: 1; border-left-color: var(--accent); }
.step-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.step p { font-size: 1.02rem; }
.code-panel {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.45);
}
.code-tabs { display: flex; gap: 0.3rem; padding: 0.7rem 0.7rem 0; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.tab {
  border: none; background: transparent; cursor: pointer; color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; font-weight: 500;
  padding: 0.65rem 0.95rem; border-radius: var(--r-sm) var(--r-sm) 0 0; position: relative;
  transition: color 0.3s var(--ease);
}
.tab:hover { color: var(--text-muted); }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: -1px; height: 2px; background: var(--gradient); border-radius: 2px; }
.code-block { display: none; padding: 1.5rem 1.6rem; font-size: 0.88rem; line-height: 1.8; color: var(--text); white-space: pre; overflow-x: auto; min-height: 13rem; }
.code-block.active { display: block; animation: fadeCode 0.4s var(--ease); }
@keyframes fadeCode { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.code-block .k { color: var(--accent); }
.code-block .s { color: #6FE0A8; }
.code-block .n { color: #C9A2FF; }
.code-block .cmt { color: var(--text-faint); }

/* ---------- metrics + coverage ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: clamp(4rem, 8vw, 6rem); }
.stat { text-align: left; }
.stat-num, .stat-prefix, .stat-suffix {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); letter-spacing: -0.03em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat p { margin-top: 0.6rem; font-size: 0.92rem; max-width: 12rem; }
.coverage-layout { display: grid; grid-template-columns: 1.55fr 0.75fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }

/* animated US coverage map (CC0 base geometry, restyled) */
.us-map-wrap { position: relative; filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.5)); }
.us-map { width: 100%; height: auto; display: block; overflow: visible; }
.us-map .borders path { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 0.5; }
.us-map .state path { fill: #141b30; transition: fill 0.4s var(--ease); }
.us-map .state .tx, .us-map .state .ca { fill: #283355; }
.us-map .state .ny, .us-map .state .fl, .us-map .state .co, .us-map .state .or { fill: #34D399; animation: liveState 2.4s ease-in-out infinite; }
.us-map .state .fl { animation-delay: 0.6s; }
.us-map .state .co { animation-delay: 1.2s; }
.us-map .state .or { animation-delay: 1.8s; }
@keyframes liveState {
  0%, 100% { fill: #34D399; filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.6)); }
  50% { fill: #5BE3B4; filter: drop-shadow(0 0 11px rgba(52, 211, 153, 0.95)); }
}
@keyframes soonPulse {
  0%, 100% { fill: #54452b; }
  50% { fill: #806836; }
}
.map-ping {
  position: absolute; left: 87%; top: 25.5%; width: 13px; height: 13px;
  border-radius: 50%; background: rgba(52, 211, 153, 0.95);
  transform: translate(-50%, -50%); box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
}
.map-ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--live); animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(4.2); opacity: 0; }
}

.coverage-grid { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.cov {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.2rem; border-radius: var(--r-md);
  background: var(--bg-elevated); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cov:hover { transform: translateX(4px); border-color: var(--border-strong); }
.cov.live { border-color: rgba(52, 211, 153, 0.3); }
.cov-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem; }
.cov-note { margin-left: auto; font-size: 0.78rem; color: var(--text-faint); }

/* ---------- why ---------- */
.why-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.why-copy { position: sticky; top: calc(var(--nav-h) + 30px); }
.why-copy h2 { margin-bottom: 1.2rem; }
.why-copy p { font-size: 1.1rem; max-width: 26rem; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.why-list li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem 1.6rem; border-radius: var(--r-md);
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.why-list h4 { margin-bottom: 0.35rem; }
.why-list p { font-size: 0.96rem; }
.check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
  background: rgba(52, 211, 153, 0.14); position: relative;
}
.check::after {
  content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 10px;
  border: solid var(--live); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- waitlist ---------- */
.waitlist-panel {
  position: relative; text-align: center; max-width: 44rem; margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem); border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 50% 0%, rgba(77, 159, 255, 0.14), transparent 60%), var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.waitlist-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(77, 159, 255, 0.5), transparent 40%, transparent 60%, rgba(99, 102, 241, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.waitlist-panel .kicker { display: block; }
.waitlist-panel h2 { margin-bottom: 1rem; }
.waitlist-sub { font-size: 1.05rem; max-width: 32rem; margin: 0 auto 2rem; }
.waitlist-form { display: flex; gap: 0.7rem; max-width: 30rem; margin-inline: auto; flex-wrap: wrap; }
.waitlist-form input {
  flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 100px; padding: 0.9rem 1.3rem; color: var(--text); font-size: 1rem; font-family: inherit; outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.waitlist-form input::placeholder { color: var(--text-faint); }
.waitlist-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.18); }
.waitlist-form button {
  border: none; cursor: pointer; background: var(--gradient); color: #061026;
  font-weight: 600; padding: 0.9rem 1.7rem; border-radius: 100px; font-size: 0.98rem; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.waitlist-form button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(77, 159, 255, 0.35); }
.waitlist-form button:active { transform: scale(0.97); }
.subscribed-msg { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.2rem; color: var(--text); font-weight: 500; }
.form-error { margin-top: 1rem; color: #FF8A8A; font-size: 0.92rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding-block: 4rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-brand p { margin-top: 1rem; font-size: 0.94rem; max-width: 18rem; }
.footer-col h4 { color: var(--text-faint); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.1rem; }
.footer-col a { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0.7rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--text); }
.tag-live { font-size: 0.66rem; padding: 0.1rem 0.45rem; border-radius: 100px; background: rgba(52, 211, 153, 0.14); color: var(--live); font-weight: 600; }
.footer-base { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-base p { font-size: 0.86rem; color: var(--text-faint); }

/* ---------- search page ---------- */
.search-page { padding-top: calc(var(--nav-h) + 3rem); min-height: 70vh; }
.search-page-form { margin-bottom: 2.5rem; max-width: 560px; }
.results-count { color: var(--text-muted); margin-bottom: 1.3rem; font-size: 0.95rem; }
.results-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.result-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.4rem 1rem;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.1rem 1.4rem; position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.result-row::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px; background: var(--gradient); border-radius: 2px; opacity: 0; transition: opacity 0.3s var(--ease); }
.result-row:hover { transform: translateX(5px); border-color: var(--border-strong); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3); }
.result-row:hover::before { opacity: 1; }
.result-row a { display: contents; }
.result-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.08rem; }
.result-meta { grid-column: 1; font-size: 0.82rem; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }
.no-results-block { padding: 3rem 0; }
.no-results { font-size: 1.2rem; color: var(--text); margin-bottom: 0.8rem; }
.search-examples { color: var(--text-muted); }
.search-examples a { color: var(--accent); }
.search-examples a:hover { text-decoration: underline; }

/* ---------- entity page ---------- */
.entity-page { padding-top: calc(var(--nav-h) + 3rem); min-height: 70vh; }
.back-link { color: var(--text-muted); font-size: 0.9rem; display: inline-block; margin-bottom: 1.8rem; transition: color 0.3s var(--ease); }
.back-link:hover { color: var(--accent); }
.entity-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.entity-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.entity-sheet { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0.5rem 2rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.entity-fields { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; }
.entity-fields dt { color: var(--text-faint); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; padding: 1.2rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.entity-fields dd { color: var(--text); padding: 1.2rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.entity-fields dt:last-of-type, .entity-fields dd:last-of-type { border-bottom: none; }
.entity-fields dd.mono { font-family: 'JetBrains Mono', monospace; color: var(--accent); }
.source-attr { margin: 1.6rem 0; font-size: 0.9rem; color: var(--text-faint); }
.source-attr a { color: var(--accent); }
.source-attr a:hover { text-decoration: underline; }
.entity-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.8rem 2rem; border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 0% 0%, rgba(77, 159, 255, 0.12), transparent 60%), var(--bg-elevated);
  border: 1px solid var(--border-strong);
}
.entity-cta h3 { margin-bottom: 0.4rem; }
.entity-cta p { font-size: 0.96rem; }

/* ---------- 404 ---------- */
.error-page { padding-top: calc(var(--nav-h) + 5rem); min-height: 80vh; display: grid; place-items: center; text-align: center; }
.error-glyph { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; margin-bottom: 1rem; }
.error-page h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.8rem; }
.error-page p { margin-bottom: 2rem; }
.error-page .search-form { margin-inline: auto; }

/* ---------- ambient section blooms (depth between sections) ---------- */
.demo { background: radial-gradient(45% 60% at 92% 30%, rgba(77, 159, 255, 0.06), transparent 70%); }
.storefronts { background: radial-gradient(50% 60% at 8% 0%, rgba(99, 102, 241, 0.07), transparent 70%); }
.integrate {
  background:
    radial-gradient(45% 55% at 95% 50%, rgba(77, 159, 255, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.018));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics { background: radial-gradient(50% 50% at 12% 20%, rgba(77, 159, 255, 0.06), transparent 70%); }
.why { background: radial-gradient(45% 60% at 90% 10%, rgba(99, 102, 241, 0.06), transparent 70%); }
.waitlist-section { background: radial-gradient(50% 70% at 50% 100%, rgba(77, 159, 255, 0.09), transparent 70%); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-code { order: 2; }
  .demo-inner, .integrate-inner, .why-inner { grid-template-columns: 1fr; }
  .coverage-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .us-map-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
  .code-panel, .why-copy { position: static; }
  .bento { grid-template-columns: 1fr; }
  .tile-lg { grid-row: span 1; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-cta { width: 100%; }
  .search-form { width: 100%; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-results li { grid-template-columns: 1fr; }
  .demo-results .status-badge { justify-self: start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-glow, .marquee-track { animation: none !important; }
  .hero::after { display: none; }
  .caret, .type-caret::after { animation: none; }
}

/* ---------- reduced transparency ---------- */
@media (prefers-reduced-transparency: reduce) {
  nav.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- faq ---------- */
.faq-section { padding: clamp(5rem, 9vw, 7rem) 0; }
.faq-grid { max-width: 50rem; margin-inline: auto; display: flex; flex-direction: column; gap: 0.7rem; }

.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
/* override the generic reveal transition so border/background also ease */
.faq-item[data-reveal] {
  transition:
    opacity 0.6s var(--ease), transform 0.6s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
  border-color: rgba(77, 159, 255, 0.45);
  background: radial-gradient(130% 130% at 50% 0%, rgba(77, 159, 255, 0.07), transparent 55%), var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 50px rgba(0, 0, 0, 0.35);
}

.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: none; border-radius: var(--r-md);
  box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.35);
}

/* plus -> cross marker (animated, on-brand) */
.faq-icon { position: relative; flex-shrink: 0; width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }

/* answer wrapper: height is animated via main.js (WAAPI) */
.faq-answer { overflow: hidden; }
.faq-item p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--text-muted); font-size: 0.96rem; line-height: 1.75; }
.faq-item code {
  background: var(--bg-raised); color: var(--accent);
  padding: 0.12em 0.4em; border-radius: 6px;
  font-size: 0.85em; font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- legal pages ---------- */
.legal-page { padding: 80px 0 120px; }
.legal-inner { max-width: 720px; }
.legal-inner h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 8px; }
.legal-date { color: var(--muted); font-size: .875rem; margin-bottom: 56px; }
.legal-inner section { margin-bottom: 40px; }
.legal-inner h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; color: var(--fg); }
.legal-inner p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; font-size: .9375rem; }
.legal-inner ul { color: var(--muted); line-height: 1.75; margin: 0 0 12px 20px; font-size: .9375rem; }
.legal-inner li { margin-bottom: 6px; }
.legal-inner a { color: var(--accent); text-decoration: none; }
.legal-inner a:hover { text-decoration: underline; }
.legal-inner strong { color: var(--fg); font-weight: 500; }

/* ---------- new-businesses SEO hubs ---------- */
.hub-page { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 5rem; min-height: 70vh; }
.hub-page .section-head { max-width: 46rem; }
.hub-subhead {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600;
  margin: 2.8rem 0 1.1rem;
}
.hub-state-grid {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-bottom: 3rem;
}
.hub-state-card a {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.5rem 1.7rem; height: 100%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hub-state-card a:hover { border-color: var(--accent); transform: translateY(-2px); }
.hub-state-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--text); }
.hub-state-count { font-size: 0.9rem; color: var(--text-faint); }
.hub-state-go { font-size: 0.9rem; color: var(--accent); margin-top: 0.4rem; }
.month-grid {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem; margin-bottom: 1rem;
}
.month-grid a {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-md, 12px); transition: border-color 0.3s var(--ease);
}
.month-grid a:hover { border-color: var(--accent); }
.month-label { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.month-count { font-size: 0.82rem; color: var(--text-faint); }

@media (max-width: 720px) {
  .hub-state-grid { grid-template-columns: 1fr; }
  .month-grid { grid-template-columns: repeat(2, 1fr); }
}
