/* AISEO landing — self-contained, no build step, no webfonts/CDN.
   Theme is matched to the AI Visibility Report (report_001): cool-grey base,
   indigo→violet→teal gradient accent, dark indigo gradient hero band, glassy
   eyebrow pills with a glowing teal status dot. Kept in sync so a visitor
   moving from this page into their report sees one continuous product. */

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #16181d;
  --ink-2: #2c313a;
  --ink-soft: #5b6472;
  --ink-faint: #8b94a3;
  --line: #e5e8ee;
  --accent: #4f46e5;
  --accent-2: #8b5cf6;
  --accent-soft: #eef0fe;
  --accent-line: #dfe2fc;
  --positive: #0e9f6e;
  --neutral: #94a3b8;
  --negative: #e02424;
  --teal: #2dd4bf;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.05), 0 8px 24px -12px rgba(22, 24, 29, 0.12);
  --shadow-hover: 0 2px 4px rgba(22, 24, 29, 0.06), 0 16px 36px -14px rgba(43, 45, 110, 0.28);
  --accent-grad: linear-gradient(90deg, #4f46e5, #8b5cf6 55%, #14b8a6);
  /* Dark hero/CTA band — identical to .report-header in report_001. */
  --hero-bg:
    radial-gradient(700px 320px at 85% -10%, rgba(139, 92, 246, 0.45), transparent 65%),
    radial-gradient(560px 300px at 8% 115%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(135deg, #14163b 0%, #232563 55%, #4338ca 130%);
  /* System stack only — the report ships no webfonts, so we match it. */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 750; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 760px; }

/* ---------- Accent highlight (gradient-clipped text, matches report) ---------- */

.hl {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent); /* fallback if background-clip:text unsupported */
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn:active { transform: translateY(1px); }

/* Primary: indigo→violet gradient fill (mirrors the report's active chip). */
.btn-ink {
  background: linear-gradient(135deg, #4f46e5, #6d5ae8);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(79, 70, 229, 0.6);
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(79, 70, 229, 0.7); }

/* Secondary: white card with hairline, accent on hover. */
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* CTA-band submit: white pill on the dark hero, like the report download button. */
.btn-marker {
  background: #fff;
  color: #232563;
  border-color: #fff;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(79, 70, 229, 0.18);
}
.btn-marker:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(0, 0, 0, 0.45), inset 0 -2px 0 rgba(79, 70, 229, 0.18); }

.btn-sm { padding: 8px 16px; font-size: 0.92rem; border-radius: 9px; }

/* ---------- Eyebrows / micro text ---------- */
/* Glassy pill + glowing teal dot, adapted from the report's .eyebrow. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22), 0 0 10px rgba(45, 212, 191, 0.7);
}

.microline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 22px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 247, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  color: #fff;
  border-radius: 6px;
  padding: 0.04em 0.16em;
  margin-right: 0.08em;
}

.wordmark-sm { font-size: 1.1rem; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero { padding: 84px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4.4fr);
  gap: 56px;
  align-items: center;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Scanner (signature element) ---------- */

.scanner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.scanner-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.scanner-tab .p-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}

/* Brand-coloured logos keep their colours; only the OpenAI mark (currentColor)
   follows the tab's text colour, so it stays legible when the tab is active. */

.scanner-tab:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.scanner-tab.active {
  background: linear-gradient(135deg, #4f46e5, #6d5ae8);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.55);
}

.scanner-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 18px;
}

.scanner-q {
  font-size: 0.9rem;
  color: var(--ink-2);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
}

.scanner-q-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 5px;
  padding: 2px 8px;
  margin-right: 9px;
  transform: translateY(-1px);
}

.scanner-a {
  font-size: 0.99rem;
  line-height: 1.65;
  min-height: 9.6em;
  color: var(--ink);
}

.scanner-a .caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.85s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Tracked-brand mention: indigo-tint highlight that sweeps in as it's typed. */
.brandmark {
  font-weight: 650;
  color: var(--accent);
  background-image: linear-gradient(100deg,
    rgba(238, 240, 254, 0) 0.5%,
    var(--accent-soft) 3%,
    var(--accent-soft) 97%,
    rgba(238, 240, 254, 0) 99.5%);
  background-repeat: no-repeat;
  background-size: 0% 78%;
  background-position: 0 62%;
  padding: 0 0.1em;
  border-radius: 4px;
  transition: background-size 360ms ease-out;
}

.brandmark.lit { background-size: 100% 78%; }

.scanner-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
  margin-top: 14px;
}

.cite-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--bg);
  opacity: 0;
  transform: translateY(4px);
  animation: chip-in 320ms ease-out forwards;
}

.cite-chip::before { content: "↗ "; color: var(--neutral); }

@keyframes chip-in { to { opacity: 1; transform: translateY(0); } }

.scanner-tally {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  border-top: 1px dashed var(--line);
  padding-top: 13px;
  margin-top: 13px;
}

.tally-item {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  transition: color 200ms ease;
}

.tally-item::before { content: "○ "; }

.tally-item.hit { color: var(--ink); }
.tally-item.hit::before { content: "● "; color: var(--positive); }
.tally-item.hit.neu::before { color: var(--neutral); }
.tally-item.own.hit { background: var(--accent-soft); border-radius: 4px; padding: 0 5px; }

.scanner-foot {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 10px;
  min-height: 1.2em;
}

.scanner-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 12px;
  text-align: center;
}

/* ---------- Platform strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  padding: 18px 0;
}

.strip-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.strip-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
}

.strip-chips li {
  font-weight: 750;
  font-size: 1rem;
  color: var(--ink-2);
}

.strip-chips li:not(:last-child)::after {
  content: "·";
  color: var(--ink-faint);
  margin-left: 10px;
  font-weight: 400;
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }

.section-tint {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 40em;
  margin-bottom: 40px;
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 36px;
}

.why-item h3 { margin-bottom: 0.4em; }
.why-item p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent-line); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  border-radius: 7px;
  padding: 3px 9px;
  display: inline-block;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Metrics ---------- */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.metric {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
/* Gradient hairline along the top edge on hover — straight from the report card. */
.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent-line); }
.metric:hover::before { opacity: 1; }

.metric h3 { margin-bottom: 2px; }

.metric-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.metric > p:not(.metric-sub) { color: var(--ink-soft); font-size: 0.95rem; }

.mini { margin-top: 18px; }

/* mini: visibility bars */
.mini-bars .mini-row {
  display: grid;
  grid-template-columns: 110px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.mini-bars i {
  display: block;
  height: 10px;
  width: var(--w);
  background: var(--neutral);
  border-radius: 5px;
}

.mini-bars .own i { background: linear-gradient(90deg, #4f46e5, #8b5cf6); }
.mini-bars .own { color: var(--accent); font-weight: 600; }
.mini-bars b { font-weight: 600; text-align: right; }

/* mini: share of voice */
.sov-bar {
  display: flex;
  height: 22px;
  border-radius: 7px;
  overflow: hidden;
}

.sov-bar i { display: block; width: var(--w); }
.sov-bar .s1 { background: #4338ca; }
.sov-bar .s2 { background: #6366f1; }
.sov-bar .s3 { background: #94a3b8; }
.sov-bar .s4 { background: #c0c7d3; }
.sov-bar .s5 { background: #dde1e8; }
.sov-bar .s-own { background: linear-gradient(90deg, #4f46e5, #8b5cf6); }

.sov-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 9px;
}

/* mini: sentiment chips — same band colors as the report badges */
.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 12px;
}

.chip-pos { background: #e7f6ef; color: #046c4e; }
.chip-neu { background: #eef1f5; color: #55606e; }
.chip-neg { background: #fdecec; color: #b91c1c; }

/* mini: domains (shared with sample panel) */
.dom-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
  padding: 6px 0;
}

.dom-row b { font-weight: 600; color: var(--ink-soft); }
.dom-row:last-child { border-bottom: 0; }

/* ---------- Sample report (browser frame) ---------- */

.browser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 11px 16px;
}

.browser-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 14px;
  margin-left: 10px;
}

.browser-body { padding: 26px 28px; }

/* Extra report views placed lower within a section. */
.browser-inline { margin-top: 44px; }

/* Real report screenshot sits flush under the browser bar, edge to edge. */
.browser-body:has(.browser-shot) { padding: 0; }

/* Live chart demos inside the browser frame. */
.demo-title { font-size: 1rem; font-weight: 720; margin: 0 0 2px; }
.demo-sub { color: var(--ink-soft); font-size: 0.86rem; margin: 0 0 16px; }
.demo-stats { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 14px; }
.demo-stats b { color: var(--ink); font-weight: 700; }

/* Sized box so Chart.js (maintainAspectRatio:false) has a height to fill. */
.chart-box { position: relative; height: 380px; }
.chart-box canvas { display: block; }
.chart-box--mid { height: 320px; }
.chart-box--short { height: 190px; }
.chart-box--src { height: 240px; }

/* ---- Visibility by Prompt (HTML table + gauges, ported from the report) ---- */
.prompt-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prompt-table th {
  text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-faint); font-weight: 700; padding: 0 12px 11px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.prompt-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.prompt-table tr:last-child td { border-bottom: 0; }
.prompt-table .num { width: 26px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.prompt-table .ctr { text-align: center; width: 120px; }
.prompt-table .prompt-cell { font-weight: 600; color: var(--ink); }
.prompt-table .stat-empty { color: var(--ink-faint); }

/* Ring gauge — fills by value (--p); color band set by modifier. */
.vis-gauge {
  --p: 0; --gauge-c: #9aa6b6; --gauge-t: #eef1f5;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: conic-gradient(var(--gauge-c) calc(var(--p) * 1%), var(--gauge-t) 0);
}
.vis-gauge::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.vis-gauge-num { position: relative; font-size: 10.5px; font-weight: 750; color: var(--gauge-c); font-variant-numeric: tabular-nums; }
.vis-gauge--phigh { --gauge-c: #0e9f6e; --gauge-t: #e2f4ec; }
.vis-gauge--pmid  { --gauge-c: #2bb673; --gauge-t: #e6f6ed; }
.vis-gauge--plow  { --gauge-c: #7cc6a2; --gauge-t: #eef7f1; }
.vis-gauge--pmin  { --gauge-c: #9aa6b6; --gauge-t: #eef1f5; }

/* Competitor avg — green→amber→red track with a needle at the value. */
.grad-gauge { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; vertical-align: middle; }
.grad-gauge-track {
  position: relative; width: 100%; height: 7px; border-radius: 4px;
  background: linear-gradient(90deg, #0e9f6e 0%, #5cbd86 28%, #e0a800 62%, #e02424 100%);
}
.grad-gauge-ptr {
  position: absolute; top: 50%; width: 3px; height: 14px; border-radius: 2px;
  background: #1f2733; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff;
}
.grad-gauge-num { font-size: 10.5px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

/* Two-up grid of charts within one browser frame, split by a cross of divider
   lines. Borders live on the cells (gap:0) so the lines sit between the charts. */
.demo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.demo-cell { min-width: 0; }
.demo-cell:nth-child(1) { padding: 0 28px 28px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-cell:nth-child(2) { padding: 0 0 28px 28px; border-bottom: 1px solid var(--line); }
.demo-cell:nth-child(3) { padding: 28px 28px 0 0; border-right: 1px solid var(--line); }
.demo-cell:nth-child(4) { padding: 28px 0 0 28px; }

@media (max-width: 760px) {
  /* Single column: only horizontal rules between stacked charts. */
  .demo-duo { grid-template-columns: 1fr; }
  .demo-cell { border-right: 0 !important; padding: 24px 0 !important; border-bottom: 1px solid var(--line); }
  .demo-cell:first-child { padding-top: 0 !important; }
  .demo-cell:last-child { border-bottom: 0; padding-bottom: 0 !important; }
}

.browser-shot {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.browser-body .browser-shot + .browser-note {
  margin: 0;
  padding: 12px 20px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.kpi {
  background: linear-gradient(155deg, #ffffff 30%, var(--accent-soft));
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 14px 16px;
}

.kpi b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
  background: linear-gradient(110deg, #4f46e5, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.kpi span {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.browser-panels {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.panel h4 {
  font-size: 0.95rem;
  font-weight: 720;
  margin-bottom: 14px;
}

.board-row {
  display: grid;
  grid-template-columns: 30px 110px 1fr 44px;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 9px;
}

.board-row em {
  font-style: normal;
  color: var(--ink-faint);
}

.board-row i {
  display: block;
  height: 11px;
  width: var(--w);
  background: var(--neutral);
  border-radius: 5px;
}

.board-row b { font-weight: 600; text-align: right; }

.board-row.own { color: var(--accent); font-weight: 600; }
.board-row.own i { background: linear-gradient(90deg, #4f46e5, #8b5cf6); }
.board-row.own em { color: var(--accent); }

.browser-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 18px;
  text-align: right;
}

/* ---------- Audience ---------- */

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 26px;
}

.aud {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}

.aud p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 30px; }

.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 720;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  padding: 16px 30px 16px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--accent); }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
}

.faq[open] summary::after { content: "–"; }

.faq p {
  color: var(--ink-soft);
  padding: 0 0 18px;
  max-width: 42em;
}

/* ---------- CTA band ---------- */
/* The report's hero band, reused as the closing CTA: indigo gradient + dot grid. */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.85), transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.85), transparent 75%);
  pointer-events: none;
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  color: #fff;
  background: linear-gradient(100deg, #ffffff 55%, #c7c5f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* On the dark band the highlight reads as a brighter lavender, not gradient-clipped. */
.cta-band .hl {
  -webkit-text-fill-color: initial;
  background: none;
  color: #c7c5f7;
}

.cta-sub {
  color: #c9cdf0;
  font-size: 1.08rem;
  max-width: 34em;
  margin: 18px auto 34px;
}

.cta-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  min-width: 220px;
  backdrop-filter: blur(4px);
}

.cta-form input::placeholder { color: #aab0d6; }

.cta-form input:focus-visible {
  outline-color: var(--teal);
  border-color: var(--teal);
}

.cta-success {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--teal);
  margin-top: 22px;
}

.cta-error {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #fca5a5;
  margin-top: 22px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}

.footer-inner nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.footer-inner nav a {
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-inner nav a:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */

/* Hidden state only applies once JS confirms it's running (body.js),
   so content is never lost if the script fails to load. */
body.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}

body.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.js .reveal { opacity: 1; transform: none; transition: none; }
  .brandmark { transition: none; }
  .cite-chip { animation: none; opacity: 1; transform: none; }
  .scanner-a .caret { animation: none; }
  .btn, .step, .metric, .scanner-tab { transition: none; }
  .btn:hover, .step:hover, .metric:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .browser-panels { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input { min-width: 0; }
  .footer-inner nav { margin-left: 0; }
}
