/* ==========================================================================
   Audience Builder microsite — site styles
   Built on Civis Analytics design system (colors_and_type.css)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-canvas);
  color: var(--night-gray);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--civis-amber); color: var(--civis-night); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 1040px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
nav.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.nav-logo img { height: 28px; display: block; }
.nav-crumb {
  font-size: 13px; font-weight: 700; color: var(--civis-navy);
  padding: 4px 10px; border-radius: 999px; background: var(--navy-50);
  border: 1px solid rgba(33,84,112,.15); letter-spacing: .01em;
}
.nav-links { display: flex; gap: 28px; align-items: center; flex: 1; margin-left: 8px; }
.nav-links a { font-weight: 700; font-size: 14px; color: var(--night); }
.nav-links a:hover { color: var(--civis-navy); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 800; font-size: 14px;
  padding: 11px 18px; border-radius: 8px; border: 0; white-space: nowrap;
  transition: background 140ms var(--ease-out), transform 120ms var(--ease-out), box-shadow 180ms var(--ease-out), color 140ms;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--civis-navy); color: #fff; }
.btn-primary:hover { background: var(--navy-600); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--civis-navy); border: 1.5px solid var(--civis-navy); }
.btn-secondary:hover { background: var(--navy-50); }
.btn-ghost { background: transparent; color: var(--civis-navy); }
.btn-ghost:hover { color: var(--navy-700); }
.btn-accent {
  background: var(--civis-amber); color: var(--civis-night);
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(241,161,55,.35);
}
.btn-accent:hover { background: #e58f26; box-shadow: 0 8px 22px rgba(241,161,55,.45); }
.btn-on-dark {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35);
}
.btn-on-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 900; letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow.cyan { color: var(--civis-cyan); }
.eyebrow.amber { color: var(--civis-amber); }
.eyebrow.on-light { color: var(--civis-cyan); }
.eyebrow.on-dark { color: var(--civis-amber-light); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow .ring {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; position: relative;
}
.eyebrow .ring::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%;
  background: currentColor;
}

/* ---------- Section ---------- */
section.section { padding: 112px 0; position: relative; }
section.section.compact { padding: 72px 0; }
section.section.alt { background: var(--bg-subtle); }
section.section.dark { background: var(--civis-night); color: #e3ecf2; }
section.section.dark h2, section.section.dark h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04; letter-spacing: -.02em;
  font-weight: 900; color: var(--civis-navy);
  margin: 14px 0 16px; text-wrap: balance;
}
.section-head.dark h2 { color: #fff; }
.section-head p {
  font-size: 18px; line-height: 1.55; font-weight: 300;
  color: var(--night-gray); text-wrap: pretty; margin: 0;
}
.section-head.dark p { color: #b3c4cf; }

/* =========================================================================
   HERO (tweakable — 3 variants)
   ========================================================================= */
.hero { position: relative; overflow: hidden; }

/* Shared hero type */
.hero h1 {
  font-weight: 900; letter-spacing: -.03em;
  margin: 18px 0 22px; text-wrap: balance;
}
.hero p.lead {
  font-size: 19px; line-height: 1.5; font-weight: 300;
  max-width: 540px; text-wrap: pretty; margin: 0;
}
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 44px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.hero-trust .chip { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .chip svg { width: 14px; height: 14px; }

/* ---- Variant A: Dark brand-gradient w/ prompt card ---- */
.hero.v-a {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(241,161,55,.28), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(0,151,167,.35), transparent 60%),
    linear-gradient(160deg, #0A2138 0%, #163a50 45%, #215470 100%);
  color: #fff;
}
.hero.v-a .hero-inner {
  position: relative;
  padding: 120px 0 128px;
  display: grid; grid-template-columns: 1.05fr 1.1fr;
  gap: 72px; align-items: center;
}
.hero.v-a h1 {
  color: #fff;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1;
}
.hero.v-a h1 em { font-style: italic; font-weight: 300; color: var(--civis-amber-light); }
.hero.v-a p.lead { color: #cfdbe3; }
.hero.v-a .hero-trust { color: #9eb5c1; }
.hero.v-a .hero-trust svg { color: var(--civis-amber); }

/* Brand ring motif watermark */
.hero.v-a::before {
  content: "";
  position: absolute; right: -220px; top: 50%; transform: translateY(-50%);
  width: 680px; height: 680px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    inset 0 0 0 80px rgba(255,255,255,0),
    0 0 0 60px rgba(255,255,255,.04),
    0 0 0 120px rgba(255,255,255,.03),
    0 0 0 180px rgba(255,255,255,.02);
  pointer-events: none;
}

/* ---- Variant B: Light, type-forward, full-width prompt bar ---- */
.hero.v-b {
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
}
.hero.v-b .hero-inner {
  padding: 104px 0 24px; max-width: 1120px; margin: 0 auto; text-align: center;
}
.hero.v-b h1 {
  color: var(--civis-navy);
  font-size: clamp(48px, 6vw, 84px);
  line-height: .98;
  max-width: 14ch; margin-left: auto; margin-right: auto;
}
.hero.v-b h1 em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, var(--civis-cyan), var(--civis-amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero.v-b p.lead {
  color: var(--night-gray); max-width: 640px; margin: 0 auto; font-size: 20px;
}
.hero.v-b .hero-actions { justify-content: center; }
.hero.v-b .hero-trust { justify-content: center; color: var(--night-gray); }
.hero.v-b .hero-trust svg { color: var(--civis-cyan); }
.hero.v-b .hero-preview-wrap {
  margin-top: 72px; position: relative;
  background: linear-gradient(180deg, transparent 0%, #fff 100%), var(--bg-subtle);
}
.hero.v-b .hero-preview-wrap::before{
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 180px at 50% 0%, rgba(33,84,112,.08), transparent 70%);
  pointer-events: none;
}

/* ---- Variant C: Split — left copy on navy, right full-bleed app mock ---- */
.hero.v-c {
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
}
.hero.v-c .hero-inner {
  display: grid; grid-template-columns: 1fr 1.15fr;
  min-height: 640px;
  align-items: stretch;
}
.hero.v-c .hero-copy {
  padding: 104px 64px 88px 0;
  align-self: center;
}
.hero.v-c h1 {
  color: var(--civis-navy);
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.02;
  max-width: 14ch;
}
.hero.v-c h1 em {
  font-style: italic; font-weight: 400; color: var(--civis-cyan);
}
.hero.v-c .hero-art {
  background: linear-gradient(160deg,#0A2138 0%, #215470 70%, #0097A7 120%);
  position: relative; overflow: hidden;
  margin-right: -200vw; padding: 80px 40px 80px 80px;
  display: flex; align-items: center; justify-content: flex-start;
}
.hero.v-c .hero-art::before{
  content:""; position:absolute; left:-40px; top:-40px; width:340px; height:340px;
  border-radius:50%; background: radial-gradient(closest-side, rgba(241,161,55,.3), transparent 70%);
}
.hero.v-c .hero-art .app-frame { max-width: 720px; }

/* =========================================================================
   PRODUCT UI MOCK (app frame rendered as SVG+HTML, reused across variants)
   ========================================================================= */
.app-frame {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 40px 80px rgba(10,33,56,.45), 0 12px 28px rgba(10,33,56,.25);
  overflow: hidden;
  color: var(--night);
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
}
.app-frame--light {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}
.af-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-subtle);
  background: #f7f9fa;
}
.af-dots { display: flex; gap: 6px; }
.af-dots span { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; }
.af-dots span:nth-child(1){ background:#ef6c6c }
.af-dots span:nth-child(2){ background:#f4c12d }
.af-dots span:nth-child(3){ background:#5aa36f }
.af-url {
  flex: 1; text-align: center; font-family: var(--font-mono);
  font-size: 11px; color: var(--night-gray);
  background: #fff; border: 1px solid var(--border-subtle);
  padding: 3px 12px; border-radius: 6px;
  max-width: 420px;
}
.af-body { display: grid; grid-template-columns: 220px 1fr; min-height: 540px; }
.af-side {
  background: #0A2138; color: #cfdbe3; padding: 16px 14px;
  font-size: 12px;
}
.af-side .af-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 14px; border-bottom: 1px solid #1b3a56;
  margin-bottom: 12px;
}
.af-side .af-brand .bm {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from 180deg, #0097A7, #215470, #F1A137, #DD5C21, #0097A7);
  box-shadow: inset 0 0 0 4px #0A2138;
}
.af-side .af-brand .bl { font-weight: 900; font-size: 13px; color: #fff; letter-spacing: .02em; }
.af-side h5 {
  margin: 14px 0 6px 8px; font-size: 10px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: #7d94a3;
}
.af-side ul { list-style: none; padding: 0; margin: 0; }
.af-side li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 6px;
  color: #cfdbe3; font-weight: 600; cursor: default;
}
.af-side li.active { background: rgba(0,151,167,.18); color: #fff; }
.af-side li.active::before {
  content: ''; width: 3px; height: 16px; background: var(--civis-cyan);
  border-radius: 2px; margin-left: -11px; margin-right: 7px;
}
.af-side li svg { width: 14px; height: 14px; opacity: .85; }
.af-side li.active svg { opacity: 1; color: var(--civis-cyan); }

.af-main { padding: 0; overflow: hidden; background: #fbfcfd; }
.af-main-head {
  padding: 14px 20px; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
}
.af-crumbs { font-size: 11px; color: var(--night-gray); font-weight: 600; }
.af-crumbs b { color: var(--civis-navy); }
.af-title { font-size: 16px; font-weight: 900; color: var(--civis-navy); margin-top: 2px; }
.af-actions { display: flex; gap: 6px; align-items: center; }
.af-actions .pill {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-subtle);
  background: #fff; color: var(--night-gray);
}
.af-actions .pill.active {
  background: var(--navy-50); color: var(--civis-navy); border-color: var(--navy-100);
}

.af-grid { padding: 18px 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }

/* Chat column */
.af-chat { background: #fff; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 14px; }
.af-msg { display: flex; gap: 10px; margin-bottom: 14px; }
.af-msg .av {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
}
.af-msg.user .av { background: var(--navy-50); color: var(--civis-navy); }
.af-msg.ai .av {
  background: conic-gradient(from 180deg, #0097A7, #215470, #F1A137, #DD5C21, #0097A7);
  color: #fff;
}
.af-msg .bubble {
  font-size: 12px; line-height: 1.5; color: var(--night);
  background: #f7f9fa; border: 1px solid var(--border-subtle);
  padding: 9px 12px; border-radius: 8px; max-width: 90%;
}
.af-msg.user .bubble { background: #fff; border-color: var(--border-default); }
.af-msg.ai .bubble { background: #eff8f9; border-color: #c9e8ec; }
.af-msg .bubble b { color: var(--civis-navy); font-weight: 800; }
.af-msg .bubble .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(241,161,55,.35) 60%);
  padding: 0 2px; font-weight: 700; color: var(--night);
}

.af-filters {
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--border-subtle);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.af-filter {
  font-family: var(--font-mono); font-size: 10px;
  background: #fff; border: 1px solid var(--border-subtle);
  color: var(--civis-navy); padding: 4px 8px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.af-filter .op { color: var(--civis-cyan); font-weight: 700; }
.af-filter .val { color: var(--civis-amber-dark); font-weight: 700; }
.af-filter .chip-x { color: var(--cool-gray-500); cursor: default; }

.af-prompt {
  margin-top: 14px; padding: 10px 12px;
  border: 1.5px solid var(--civis-cyan);
  box-shadow: 0 0 0 3px rgba(0,151,167,.15);
  border-radius: 10px; display: flex; align-items: center; gap: 10px;
  background: #fff;
  font-size: 12px; color: var(--night-gray);
}
.af-prompt .caret {
  width: 2px; height: 14px; background: var(--civis-navy);
  animation: afcaret 1s steps(2) infinite;
}
@keyframes afcaret { 50% { opacity: 0; } }
.af-prompt .send {
  margin-left: auto; background: var(--civis-navy); color: #fff;
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.af-prompt .send svg { width: 12px; height: 12px; }

/* Right column — stats */
.af-stats { display: flex; flex-direction: column; gap: 10px; }
.af-card {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 14px;
}
.af-stat-big { padding: 16px; }
.af-stat-big .lab {
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--civis-cyan);
}
.af-stat-big .num {
  font-size: 34px; font-weight: 900; color: var(--civis-navy);
  margin: 2px 0 0; letter-spacing: -.02em; line-height: 1;
}
.af-stat-big .sub { font-size: 11px; color: var(--night-gray); margin-top: 4px; font-weight: 500; }
.af-stat-big .spark { height: 32px; margin-top: 10px; }

.af-demo .lab {
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--civis-cyan); margin-bottom: 8px;
}
.af-demo .row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; }
.af-demo .row .lb { width: 64px; color: var(--night-gray); font-weight: 600; }
.af-demo .row .bar { flex: 1; height: 7px; border-radius: 4px; background: var(--cool-gray-100); position: relative; overflow: hidden; }
.af-demo .row .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--civis-navy); border-radius: 4px; }
.af-demo .row .bar i.a { background: var(--civis-amber); }
.af-demo .row .bar i.c { background: var(--civis-cyan); }
.af-demo .row .pct { width: 36px; text-align: right; font-family: var(--font-mono); color: var(--night); font-weight: 700; }

/* =========================================================================
   LOGO STRIP
   ========================================================================= */
.logo-strip {
  display: flex; gap: 56px; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 8px 0;
}
.logo-strip .logo {
  font-family: var(--font-sans); font-weight: 900; font-size: 15px;
  letter-spacing: .08em; color: var(--night-gray); opacity: .6;
  text-transform: uppercase;
}
.logo-strip-label {
  text-align: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 800; color: var(--cool-gray-500); margin-bottom: 20px;
}

/* =========================================================================
   HOW IT WORKS — 3 step cards on connected track
   ========================================================================= */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  position: relative; counter-reset: step;
}
.steps::before {
  content: ''; position: absolute; top: 52px; left: 8.33%; right: 8.33%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default) 20%, var(--border-default) 80%, transparent);
}
.step {
  padding: 0 22px; position: relative; counter-increment: step;
}
.step .num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; color: var(--civis-navy);
  margin: 0 auto 24px; position: relative;
  box-shadow: var(--shadow-sm);
}
.step .num::before {
  content: counter(step, decimal-leading-zero);
  letter-spacing: .02em;
}
.step .num::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--navy-100);
}
.step .kick {
  text-align: center;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 900; color: var(--civis-cyan); margin-bottom: 10px;
}
.step h3 {
  text-align: center; font-size: 22px; line-height: 1.15; font-weight: 900;
  color: var(--civis-navy); margin: 0 0 12px; letter-spacing: -.01em;
}
.step p { text-align: center; font-size: 14px; line-height: 1.55; color: var(--night-gray); margin: 0; }
.step .example {
  margin-top: 18px; background: #fff; border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 14px; font-size: 12px;
  box-shadow: var(--shadow-sm);
}

/* step 1 — NL prompt */
.step .example.prompt {
  font-family: var(--font-mono); color: var(--night);
  line-height: 1.5; font-size: 11.5px;
  position: relative; padding-left: 26px;
}
.step .example.prompt::before {
  content: '>'; position: absolute; left: 14px; top: 14px; color: var(--civis-cyan); font-weight: 900;
}

/* step 2 — filter chips */
.step .example.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.step .example.filters .f {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 4px 8px; border-radius: 6px;
  background: var(--navy-50); color: var(--civis-navy);
  border: 1px solid var(--navy-100); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.step .example.filters .f .op { color: var(--civis-cyan); }
.step .example.filters .f .val { color: var(--civis-amber-dark); }

/* step 3 — count + spark */
.step .example.count { text-align: center; }
.step .example.count .big {
  font-size: 32px; font-weight: 900; color: var(--civis-navy);
  letter-spacing: -.02em; line-height: 1;
}
.step .example.count .lab {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 800; color: var(--civis-cyan); margin-top: 4px;
}
.step .example.count .sp { height: 30px; margin-top: 8px; }

/* =========================================================================
   FEATURES — two-column alternating (text + visual)
   ========================================================================= */
.feat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; padding: 56px 0;
}
.feat-row + .feat-row { border-top: 1px solid var(--border-subtle); }
.feat-row .visual { order: 2; }
.feat-row.flip .visual { order: 0; }
.feat-row h3 {
  font-size: 34px; line-height: 1.1; letter-spacing: -.02em;
  font-weight: 900; color: var(--civis-navy);
  margin: 14px 0 14px; text-wrap: balance;
}
.feat-row p { font-size: 16px; line-height: 1.55; color: var(--night-gray); margin: 0 0 16px; }
.feat-row ul { margin: 0; padding: 0; list-style: none; }
.feat-row ul li {
  position: relative; padding-left: 24px; margin-bottom: 8px;
  font-size: 14px; color: var(--night-gray); line-height: 1.5;
}
.feat-row ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 14px; height: 2px; background: var(--civis-cyan);
}
.feat-row ul li b { color: var(--night); font-weight: 700; }

/* Visuals shared */
.visual-frame {
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: 14px; box-shadow: var(--shadow-md);
  overflow: hidden;
}
.visual-frame .vf-head {
  padding: 12px 16px; border-bottom: 1px solid var(--border-subtle);
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--civis-cyan);
  display: flex; justify-content: space-between; align-items: center;
}
.visual-frame .vf-head .meta { color: var(--cool-gray-500); letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: 11px; }
.visual-frame .vf-body { padding: 18px; }

/* visual: filter schema */
.vf-schema { display: flex; flex-direction: column; gap: 10px; }
.vf-schema .f {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; background: #fbfcfd;
  border: 1px solid var(--border-subtle); border-radius: 8px;
}
.vf-schema .f .col { font-family: var(--font-mono); font-size: 12px; color: var(--civis-navy); font-weight: 700; }
.vf-schema .f .type {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.vf-schema .f .type.list { background: #e6f5f7; color: #006064; }
.vf-schema .f .type.range { background: #fdf3e0; color: #8a5613; }
.vf-schema .f .type.bool { background: #eaf0f4; color: var(--civis-navy); }
.vf-schema .f .sub { grid-column: 1 / -1; font-size: 11px; color: var(--night-gray); }
.vf-schema .f .sub code { color: var(--civis-cyan); font-size: 11px; background: transparent; padding: 0; }

/* visual: audience stats */
.vf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vf-stat { background: #fbfcfd; border: 1px solid var(--border-subtle); border-radius: 8px; padding: 12px; }
.vf-stat .lab { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--civis-cyan); }
.vf-stat .num { font-size: 22px; font-weight: 900; color: var(--civis-navy); margin-top: 2px; letter-spacing: -.02em; }
.vf-stat.full { grid-column: 1 / -1; }
.vf-stat .bars { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.vf-stat .bars .rr { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.vf-stat .bars .rr .lb { width: 80px; color: var(--night-gray); font-weight: 600; }
.vf-stat .bars .rr .bar { flex: 1; height: 7px; border-radius: 4px; background: var(--cool-gray-100); position: relative; }
.vf-stat .bars .rr .bar i { position: absolute; inset: 0; border-radius: 4px; background: var(--civis-navy); }
.vf-stat .bars .rr .bar i.a { background: var(--civis-amber); }
.vf-stat .bars .rr .bar i.c { background: var(--civis-cyan); }
.vf-stat .bars .rr .pc { width: 40px; text-align: right; font-family: var(--font-mono); font-weight: 700; color: var(--night); }

/* visual: streaming */
.vf-stream { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.65; color: var(--night); }
.vf-stream .l { display: flex; gap: 10px; }
.vf-stream .l .k { color: var(--civis-cyan); width: 64px; flex-shrink: 0; font-weight: 700; }
.vf-stream .l .v { color: var(--night); }
.vf-stream .l .v b { color: var(--civis-navy); font-weight: 800; }
.vf-stream .l .v em { color: var(--civis-amber-dark); font-style: normal; font-weight: 700; }
.vf-stream .l .v .dots::after {
  content: '...'; display: inline-block; animation: dots 1.2s infinite;
}
@keyframes dots { 0%{content:'.'} 33%{content:'..'} 66%{content:'...'} }

/* =========================================================================
   USE CASES grid
   ========================================================================= */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.uc {
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 28px;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  display: flex; flex-direction: column; min-height: 280px;
}
.uc:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.uc .tag {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 900;
  color: var(--civis-cyan); margin-bottom: 14px;
}
.uc h3 {
  font-size: 20px; line-height: 1.2; letter-spacing: -.01em;
  font-weight: 900; color: var(--civis-navy); margin: 0 0 10px;
}
.uc p { font-size: 14px; color: var(--night-gray); line-height: 1.5; margin: 0 0 auto; }
.uc .ex {
  margin-top: 20px; padding: 12px 14px;
  background: var(--bg-subtle); border-radius: 8px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5;
  color: var(--civis-navy);
  position: relative; padding-left: 26px;
}
.uc .ex::before { content: '"'; position: absolute; left: 10px; top: 8px; color: var(--civis-cyan); font-weight: 900; font-family: var(--font-sans); font-size: 18px; }

/* =========================================================================
   STAT BAND (dark)
   ========================================================================= */
.stat-band { background: var(--civis-night); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.stat-band::before {
  content: ''; position: absolute; left: -200px; top: -200px; width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,151,167,.22), transparent 70%);
}
.stat-band::after {
  content: ''; position: absolute; right: -200px; bottom: -200px; width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241,161,55,.18), transparent 70%);
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 1; }
.stat .n {
  font-size: 68px; font-weight: 900; letter-spacing: -.03em; line-height: 1;
  color: var(--civis-amber);
}
.stat .unit { font-size: 28px; color: var(--civis-amber); font-weight: 900; }
.stat .t { font-size: 14px; color: #b3c4cf; margin-top: 10px; font-weight: 400; max-width: 240px; line-height: 1.5; }
.stat .src { font-size: 10px; color: #7d94a3; margin-top: 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* =========================================================================
   SECURITY band
   ========================================================================= */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sec-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec-badge {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.sec-badge .ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy-50); color: var(--civis-navy);
  display: flex; align-items: center; justify-content: center;
}
.sec-badge h4 { font-size: 15px; font-weight: 900; color: var(--civis-navy); margin: 0; }
.sec-badge p { font-size: 12px; color: var(--night-gray); margin: 0; line-height: 1.5; }

/* =========================================================================
   QUOTE
   ========================================================================= */
.quote-card {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px;
  padding: 48px 52px; max-width: 920px; margin: 0 auto; position: relative;
  box-shadow: var(--shadow-sm);
}
.quote-card::before {
  content: ''; position: absolute; left: 0; top: 32px; bottom: 32px; width: 4px;
  background: linear-gradient(180deg, var(--civis-cyan), var(--civis-navy));
  border-radius: 4px;
}
.quote-card .q {
  font-size: 26px; line-height: 1.35; font-weight: 700; color: var(--civis-navy);
  margin: 0 0 24px; text-wrap: balance; letter-spacing: -.01em;
}
.quote-card .q em { font-style: italic; color: var(--civis-cyan); font-weight: 800; }
.quote-card .who { display: flex; align-items: center; gap: 14px; }
.quote-card .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #215470, #0097A7);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
}
.quote-card .name { font-weight: 900; color: var(--night); font-size: 14px; }
.quote-card .role { color: var(--night-gray); font-size: 13px; font-weight: 300; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-grid { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 4px;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  font-size: 17px; font-weight: 800; color: var(--civis-navy);
  letter-spacing: -.005em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-50); color: var(--civis-navy);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease-out), background .15s;
  font-weight: 900;
}
.faq-item[open] summary .ic { transform: rotate(45deg); background: var(--civis-amber); color: var(--civis-night); }
.faq-item p {
  margin: 12px 0 0; max-width: 680px;
  font-size: 15px; line-height: 1.6; color: var(--night-gray);
}

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: linear-gradient(135deg, #0A2138 0%, #215470 55%, #0097A7 110%);
  color: #fff; padding: 104px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -100px; top: -100px; width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241,161,55,.32), transparent 70%);
}
.cta-band::after {
  content: ''; position: absolute; left: -120px; bottom: -120px; width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 80px rgba(255,255,255,.04), 0 0 0 160px rgba(255,255,255,.02);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900; letter-spacing: -.02em; color: #fff;
  margin: 14px 0 14px; text-wrap: balance;
}
.cta-band p { font-size: 18px; font-weight: 300; color: #cfdbe3; max-width: 640px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; margin-top: 8px; }
.cta-band .hero-trust { justify-content: center; color: #9eb5c1; margin-top: 44px; }
.cta-band .hero-trust svg { color: var(--civis-amber); }

/* =========================================================================
   Footer
   ========================================================================= */
footer { background: #061624; color: #c7d5de; padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand img { height: 26px; }
.foot-brand p { margin-top: 14px; font-size: 13px; font-weight: 300; color: #8ca0ad; line-height: 1.55; max-width: 300px; }
.foot-col h4 {
  font-family: var(--font-sans); font-weight: 900; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 14px;
}
.foot-col a { display: block; font-size: 13px; color: #8ca0ad; margin-bottom: 10px; font-weight: 400; transition: color .12s; }
.foot-col a:hover { color: #fff; }
.foot-base {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid #1b3a56;
  display: flex; justify-content: space-between; font-size: 12px; color: #6c8193;
  flex-wrap: wrap; gap: 12px;
}

/* =========================================================================
   Modal
   ========================================================================= */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(10,33,56,.64);
  display: none; align-items: center; justify-content: center; z-index: 100;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-scrim.open { display: flex; animation: scrimin 160ms var(--ease-out); }
@keyframes scrimin { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 16px; max-width: 480px; width: 92%;
  padding: 36px; box-shadow: var(--shadow-xl);
  animation: modalin 220ms var(--ease-out);
}
@keyframes modalin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.modal h3 {
  margin: 0 0 8px; font-size: 24px; font-weight: 900;
  color: var(--civis-navy); letter-spacing: -.01em;
}
.modal p.sub { margin: 0 0 22px; font-size: 14px; color: var(--night-gray); }
.modal .fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.modal label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--civis-cyan); }
.modal input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-default);
  border-radius: 8px; font: 400 14px var(--font-sans); color: var(--night);
  transition: border-color .15s, box-shadow .15s;
}
.modal input:focus { outline: none; border-color: var(--civis-cyan); box-shadow: 0 0 0 3px rgba(0,151,167,.2); }
.modal .row { display: flex; justify-content: flex-end; gap: 8px; }
.modal .success {
  background: #eff8f9; border: 1px solid #c9e8ec; border-radius: 10px;
  padding: 20px; font-size: 14px; color: var(--civis-navy); text-align: center;
}
.modal .success .ic {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--civis-cyan); color: #fff; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

/* =========================================================================
   Tweaks panel
   ========================================================================= */
.tweaks-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px;
  box-shadow: var(--shadow-xl); padding: 18px; width: 300px;
  display: none;
}
.tweaks-panel.open { display: block; animation: tweakin 200ms var(--ease-out); }
@keyframes tweakin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tweaks-panel h4 {
  margin: 0 0 4px; font-size: 11px; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase; color: var(--civis-cyan);
}
.tweaks-panel .title {
  font-size: 16px; font-weight: 900; color: var(--civis-navy); margin-bottom: 14px;
}
.tweaks-panel .tweak-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--night-gray); margin-bottom: 8px; }
.tweaks-panel .tweak-opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.tweaks-panel .tweak-opts button {
  background: #fff; border: 1px solid var(--border-default); border-radius: 8px;
  padding: 8px 6px; font-size: 12px; font-weight: 800; color: var(--night-gray);
  cursor: pointer; transition: all .15s;
}
.tweaks-panel .tweak-opts button:hover { border-color: var(--civis-navy); color: var(--civis-navy); }
.tweaks-panel .tweak-opts button.on {
  background: var(--civis-navy); color: #fff; border-color: var(--civis-navy);
}
.tweaks-panel .tweak-hint { font-size: 11px; color: var(--cool-gray-500); line-height: 1.5; }

/* =========================================================================
   Responsiveness — we don't fully re-layout at small widths; use a minimum
   design width. The microsite is designed at 1440; collapse just the nav.
   ========================================================================= */
@media (max-width: 1080px) {
  .hero.v-a .hero-inner { grid-template-columns: 1fr; gap: 56px; padding: 88px 0 96px; }
  .hero.v-c .hero-inner { grid-template-columns: 1fr; }
  .hero.v-c .hero-art { margin-right: 0; padding: 56px 40px; }
  .hero.v-c .hero-copy { padding: 88px 0 40px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .feat-row { grid-template-columns: 1fr; gap: 40px; }
  .feat-row .visual, .feat-row.flip .visual { order: 0; }
  .uc-grid { grid-template-columns: 1fr 1fr; }
  .sec-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
