/* ================= THE THEME SEAM =================
   Every color, font, and radius the UI uses is defined HERE and only here —
   the rest of this file consumes tokens. A new brand look (white layout,
   different accent, different faces) starts by overriding this block; a
   fully different brand (new layout/components) gets its own web-<brand>/
   folder on the same server API. Do not introduce raw color literals below
   this block. Current theme: "terminal" (matched to bytebunny.io). */
:root {
  /* ground + text */
  --bg: #f7f8fc;
  --panel: #ffffff;
  --overlay: #f1f4f9;
  --scrim: #081225b8;
  --scrim-light: #eef2f7;
  --line: #e3e8f0;
  --line-strong: #cbd5e1;
  --text: #101828;
  --dim: #475467;
  --faint: #7c8799;
  --text-border: #aeb8c8;
  --hover-wash: #f7f9fc;

  /* accent (the brand color) + its derived states */
  --green: #2563eb;
  --green-dim: #3b6eea;
  --green-soft: #edf3ff;
  --green-border: #b7ccfa;
  --green-glow: #2563eb1f;
  --green-hover: #1d4ed8;
  --on-accent: #ffffff;

  /* semantic status colors + their borders/washes */
  --red: #dc2626;
  --red-border: #f3aaaa;
  --orange: #ea580c;
  --orange-border: #fdba8c;
  --amber: #d97706;
  --amber-border: #f4c37c;
  --amber-soft: #fff7e8;
  --ok: #16a34a;
  --them: #7c3aed;
  --them-border: #cfbaf6;
  --them-soft: #f5f0ff;
  --amber-border-soft: #f6d39d;
  --amber-wash: #fffaf1;
  --amber-halo: #f59e0b14;
  --red-border-soft: #f5b8b8;
  --green-wash: #2563eb0a;
  --green-halo: #2563eb12;

  /* aliases newer components consume — themed via the primaries above */
  --warn: var(--amber);
  --bad: var(--red);
  --link: var(--them);

  /* type + shape */
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-body: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "DM Sans", Inter, sans-serif;
  --maxw: 1240px;
  --radius: 18px;
  --radius-small: 8px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.055);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.view {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
}

/* ================= nav ================= */
.nav {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.05rem;
}
.nav-path { color: var(--green); font-weight: 600; }
.nav-right { display: flex; gap: 20px; align-items: baseline; }
.nav-tag { color: var(--faint); font-size: 0.87rem; }
.nav-link {
  color: var(--dim);
  font-size: 0.92rem;
  text-decoration: none;
}
.nav-link:hover { color: var(--green); }

/* ================= shared ================= */
.eyebrow {
  color: var(--green);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 32px;
  max-width: 640px;
}
.accent { color: var(--green); }
.code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0 5px;
  font-size: 0.95em;
}

.btn {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: var(--green);
  color: var(--on-accent);
  border: 1px solid var(--green);
}
.btn-solid:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green-border);
}
.btn-ghost:hover { background: var(--green-soft); border-color: var(--green); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel-label {
  color: var(--faint);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.blip {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* ================= hero ================= */
.hero { padding: 88px 0 72px; }
.hero-title {
  font-size: clamp(2.1rem, 6.5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--dim);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  margin-bottom: 44px;
}

.prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--overlay);
  /* the product's front door — it must be the loudest thing on the page:
     a real accent border, lift, and a soft brand glow that reads "start
     here" without needing to hunt */
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 18px 20px;
  max-width: 760px;
  box-shadow: 0 10px 34px rgba(37, 99, 235, 0.22), 0 2px 8px rgba(16, 24, 40, 0.08);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.prompt:hover { box-shadow: 0 14px 42px rgba(37, 99, 235, 0.3), 0 2px 8px rgba(16, 24, 40, 0.08); }
#scan-form input { font-size: 1.05rem; }
#scan-form .btn { font-size: 1rem; padding: 14px 22px; }
.prompt:focus-within {
  border-color: var(--green);
  box-shadow: 0 14px 46px rgba(37, 99, 235, 0.38), 0 2px 8px rgba(16, 24, 40, 0.08);
  box-shadow: 0 0 0 1px var(--green), 0 0 32px var(--green-glow);
}
.prompt-label {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  user-select: none;
}
.prompt-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  caret-color: var(--green);
}
.prompt-input:focus { outline: none; }
.prompt-input::placeholder { color: var(--faint); }
.prompt-hint {
  color: var(--faint);
  font-size: 0.87rem;
  margin-top: 14px;
}
.prompt-error {
  color: var(--red);
  font-size: 0.92rem;
  margin-top: 10px;
}

/* ================= steps ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--panel);
}
.step-num {
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step-body {
  color: var(--dim);
  font-size: 0.95rem;
}

/* ================= truth table ================= */
.truth-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.truth-row {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 16px;
  padding: 18px 22px;
  align-items: baseline;
}
.truth-row + .truth-row { border-top: 1px solid var(--line); }
.truth-row:nth-child(odd) { background: var(--panel); }
.truth-name { font-weight: 700; font-size: 0.9rem; }
.truth-cell { color: var(--dim); font-size: 0.95rem; }
.truth-status {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.status-ok { color: var(--green); }
.status-lock { color: var(--amber); }
.status-null { color: var(--faint); font-style: italic; }

.section-demo { text-align: left; padding-bottom: 96px; }

/* ================= scan view ================= */
.scanwrap { padding: 56px 0 72px; }
.termbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius) 0.5rem 0 0;
  padding: 10px 18px;
}
.termbar-title { color: var(--faint); font-size: 0.87rem; letter-spacing: 0.06em; }
.termbar-status {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.termlog {
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px;
  height: 420px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.termlog .t  { color: var(--faint); }
.termlog .ok { color: var(--green); }
.termlog .warn { color: var(--amber); }
.termlog .err { color: var(--red); }
.termlog .hl { color: var(--text); }

.scan-fail-row { margin-top: 16px; }
.scan-fail-row button[hidden] { display: none; }
.scanstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.scanstat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--panel);
}
.scanstat-num {
  display: block;
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.scanstat-label { color: var(--faint); font-size: 0.84rem; letter-spacing: 0.06em; }

/* ================= report ================= */
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 56px 0 32px;
  flex-wrap: wrap;
}
.report-domain {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  word-break: break-all;
}
.report-meta { color: var(--faint); font-size: 0.92rem; margin-top: 6px; }
.demo-chip[hidden] { display: none; }
.demo-chip {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 8px;
  border: 1px solid var(--amber);
  border-radius: var(--radius-small);
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

.scores {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* re-scan comparison */
.compare-panel { margin-bottom: 16px; border-color: var(--green-border); }
.compare-score { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.compare-arrow { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.compare-arrow.up { color: var(--green); }
.compare-arrow.down { color: var(--red); }
.compare-arrow.flat { color: var(--faint); }
.compare-text { color: var(--dim); font-size: 0.9rem; }
.compare-list { display: grid; gap: 5px; margin-bottom: 10px; }
.compare-item { font-size: 0.94rem; color: var(--dim); }
.compare-item.fixed::before { content: "✓ fixed  "; color: var(--green); font-weight: 700; }
.compare-item.new-issue::before { content: "▲ new  "; color: var(--amber); font-weight: 700; }
.compare-next {
  color: var(--text);
  font-size: 0.94rem;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.compare-next::before { content: "next scan → "; color: var(--green); font-weight: 700; }

/* narrative read-out */
.summary-panel { margin-bottom: 16px; }
.summary-text { color: var(--text); font-size: 0.95rem; line-height: 1.75; max-width: 860px; }
.wins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.win-chip {
  font-size: 0.85rem;
  color: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-small);
  padding: 4px 10px;
  cursor: default;
}
.win-chip::before { content: "✓ "; color: var(--green); }
.report-actions { display: flex; gap: 10px; align-items: center; }
#download-report { text-decoration: none; }
.score-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.score-main .panel-label { align-self: flex-start; margin-bottom: 10px; }
.score-verdict { color: var(--dim); font-size: 0.95rem; margin-top: 4px; text-align: center; }

/* speedometer gauges */
.gauge svg { width: 100%; height: auto; display: block; }
.gauge-main { width: min(340px, 100%); }
.gauge-value {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-needle {
  transform-box: view-box;
  transform-origin: 100px 105px;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.score-side { display: grid; gap: 16px; }
.score-mini-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.score-mini-note { color: var(--faint); font-size: 0.87rem; margin-top: 6px; }
.null-val { color: var(--faint); font-style: italic; }
.score-null { border-style: dashed; }

/* category gauges */
.catpanel { margin-bottom: 16px; }
.gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  padding-top: 8px;
}
.gauge-item { text-align: center; }
.gauge-item .gauge { width: min(190px, 100%); margin: 0 auto; }
.gauge-name { font-size: 0.9rem; color: var(--dim); margin-top: 8px; line-height: 1.4; }
.gauge-sub { font-size: 0.8rem; color: var(--faint); letter-spacing: 0.06em; margin-top: 2px; }

/* profile card */
.profile {
  border-color: var(--green-border);
  box-shadow: 0 0 48px var(--green-soft);
  margin-bottom: 48px;
}
.profile-q {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.conf-chip {
  margin-left: 8px;
  color: var(--green);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-small);
  padding: 1px 7px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 24px;
  margin-bottom: 24px;
}
.profile-item {
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
}
.profile-item dt { color: var(--faint); font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 3px; }
.profile-item dd { font-size: 0.95rem; color: var(--text); }
.profile-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-note { color: var(--faint); font-size: 0.88rem; flex-basis: 100%; margin-top: 4px; }
.profile-save-error { color: var(--red); font-size: 0.92rem; flex-basis: 100%; margin-top: 4px; }
.profile-save-status { color: var(--amber); font-size: 0.92rem; flex-basis: 100%; margin-top: 4px; }
.profile.confirmed { border-color: var(--green); }
.profile.confirmed .profile-q::after {
  content: "  ✓ confirmed";
  color: var(--green);
  font-size: 0.92rem;
}
.profile.low-conf { border-color: var(--amber-border); box-shadow: 0 0 48px var(--amber-soft); }
.profile.low-conf .conf-chip { color: var(--amber); border-color: var(--amber-border); }

.profile-editor { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.profile-field label {
  display: block;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.field-hint { text-transform: none; letter-spacing: 0; }
.bip-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.bip-editor-head {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}
.bip-intent-row { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 0; }
.bip-intent-opt { color: var(--dim); font-size: 0.92rem; cursor: pointer; }
.bip-intent-opt input { accent-color: var(--green); }
.profile-field input, .profile-field select, .profile-field textarea {
  width: 100%;
  background: var(--overlay);
  border: 1px solid var(--green-border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
}
.profile-field input:focus, .profile-field select:focus, .profile-field textarea:focus {
  outline: none;
  border-color: var(--green);
}

/* Business Intelligence Profile */
.bip { margin-bottom: 24px; }
.bip-label {
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.bip-meta { color: var(--green-dim); letter-spacing: 0.04em; margin-left: 8px; }
.bip-grid { margin-bottom: 14px; }
.bip-evidence {
  display: block;
  color: var(--faint);
  font-size: 0.84rem;
  margin-top: 5px;
  font-style: italic;
}
.bip-evidence::before { content: "“"; }
.bip-evidence::after { content: "”"; }
.bip-owner {
  display: block;
  color: var(--green);
  font-size: 0.82rem;
  margin-top: 5px;
  letter-spacing: 0.04em;
}
.bip-lowconf {
  display: block;
  color: var(--amber);
  font-size: 0.82rem;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.bip-unknowns summary {
  color: var(--amber);
  font-size: 0.87rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.bip-unknowns summary:hover { color: var(--text); }
.bip-unknowns-note { color: var(--faint); font-size: 0.87rem; margin: 8px 0 4px; max-width: 70ch; }
.bip-unknowns ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.bip-unknown { color: var(--dim); font-size: 0.9rem; }
.bip-unknown::before { content: "▸ "; color: var(--amber); }
.bip-unknown b { color: var(--text); font-weight: 600; }

.profile-evidence { margin-bottom: 20px; }
.profile-evidence summary {
  color: var(--faint);
  font-size: 0.87rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.profile-evidence summary:hover { color: var(--green); }
.profile-evidence ul { list-style: none; margin-top: 10px; display: grid; gap: 5px; }
.profile-evidence li { color: var(--dim); font-size: 0.9rem; }
.profile-evidence li::before { content: "▸ "; color: var(--green-dim); }

/* findings */
.findings-section { margin-bottom: 64px; }
.findings-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.findings-count { color: var(--faint); font-size: 0.9rem; }
.findings { display: grid; gap: 10px; }

.finding {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.finding summary {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
.finding summary::-webkit-details-marker { display: none; }
.finding summary:hover { background: var(--hover-wash); }
.sev {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 0;
  text-align: center;
  border-radius: var(--radius-small);
  border: 1px solid;
}
.sev-critical { color: var(--red); border-color: var(--red-border); }
.sev-high { color: var(--orange); border-color: var(--orange-border); }
.sev-medium { color: var(--amber); border-color: var(--amber-border); }
.sev-low { color: var(--dim); border-color: var(--line); }
.finding-title { font-size: 0.9rem; font-weight: 600; }
.finding-urls { color: var(--faint); font-size: 0.87rem; white-space: nowrap; }
.finding-body {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--dim);
  display: grid;
  gap: 14px;
}
.finding-body .rule-id { color: var(--faint); font-size: 0.82rem; letter-spacing: 0.08em; }
.finding-evidence {
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.87rem;
  color: var(--dim);
  overflow-x: auto;
  white-space: pre;
}
.finding-fix { color: var(--text); }
.finding-fix b { color: var(--green); font-weight: 600; }

/* opportunities */
.opps-section { margin-bottom: 64px; }
.opps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.opp {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.opp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; margin-bottom: 8px; flex-wrap: wrap; }
.opp-cluster { font-weight: 700; font-size: 0.95rem; }
.opp-decision {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 9px;
  border-radius: var(--radius-small);
  border: 1px solid;
  white-space: nowrap;
}
.dec-keep { color: var(--green); border-color: var(--green-border); }
.dec-improve { color: var(--amber); border-color: var(--amber-border); }
.dec-consolidate { color: var(--orange); border-color: var(--orange-border); }
.dec-create { color: var(--text); border-color: var(--text-border); }
.opp-body { color: var(--dim); font-size: 0.92rem; }
.opp-chips { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.opp-data { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.opp-legend { color: var(--faint); font-size: 0.84rem; margin: -14px 0 20px; }
.opp-legend b { color: var(--dim); font-weight: 600; }

/* scan working ticker */
.termlog .working { color: var(--green-dim); }
.termlog .working .blip { margin-right: 10px; }
.opp-intent {
  font-size: 0.9rem;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 2px 7px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.opp-ai { color: var(--green-dim); border-color: var(--green-border); }
.opp-vol {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-small);
  padding: 2px 7px;
  white-space: nowrap;
}
.opp-rank {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-small);
  padding: 2px 7px;
  white-space: nowrap;
}
.opp-norank { color: var(--faint); border-color: var(--line); }
.qvol { color: var(--green-dim); }

/* competitors */
.competitors-section { margin-bottom: 64px; }
.competitors { display: grid; gap: 8px; max-width: 640px; }
.competitor {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px 18px;
}
.competitor-rank { color: var(--faint); font-size: 0.87rem; font-weight: 700; }

/* discovered competition (item 10) */
.discovery-row { grid-template-columns: 150px 1fr auto auto; align-items: center; }
.disc-type {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 3px 9px;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}
.disc-type-direct { color: var(--green); border-color: var(--green-border); }
.disc-type-local { color: var(--them); border-color: var(--them-border); }
.disc-type-search { color: var(--dim); }
.disc-type-aspirational { color: var(--amber); border-color: var(--amber-border-soft); }
.disc-type-directory, .disc-type-content { color: var(--faint); }
.disc-type-unvalidated { color: var(--faint); font-style: italic; }
.disc-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.disc-name { color: var(--dim); font-size: 0.88rem; }
.disc-evidence { color: var(--faint); font-size: 0.84rem; }
.disc-conf { color: var(--faint); font-size: 0.84rem; white-space: nowrap; }
.disc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.disc-reject { color: var(--dim); border-color: var(--line); }
.disc-reject:hover { color: var(--red); border-color: var(--red-border-soft); background: transparent; }
.disc-kept { color: var(--green); font-size: 0.87rem; font-weight: 700; letter-spacing: 0.04em; }
.disc-dismissed { color: var(--faint); font-size: 0.87rem; font-style: italic; }
.discovery-nonalt { margin-top: 18px; }
.discovery-nonalt summary { color: var(--faint); font-size: 0.9rem; letter-spacing: 0.04em; cursor: pointer; }
.discovery-nonalt summary:hover { color: var(--text); }
.discovery-nonalt-note { color: var(--faint); font-size: 0.87rem; margin: 10px 0; max-width: 72ch; }
.discovery-nonalt .competitors { margin-top: 10px; }
.discovery-note { color: var(--faint); font-size: 0.84rem; flex-basis: 100%; margin-top: 6px; }
#discovery-list, #discovery-nonalt-list, #competitors-list { max-width: 100%; }
.h2h-source { color: var(--faint); font-size: 0.87rem; margin-top: 4px; }
.h2h-source a { color: var(--green-dim); text-decoration: underline; cursor: pointer; }
.h2h-source a:hover { color: var(--green); }
.svc-inline-fix { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; max-width: 640px; }
.svc-inline-fix .save-label { flex: 1; min-width: 260px; }
.svc-inline-fix input { width: 100%; background: var(--overlay); border: 1px solid var(--green-border); border-radius: 6px; color: var(--text); font-family: inherit; font-size: 0.95rem; padding: 10px 12px; }
.svc-inline-fix input:focus { outline: none; border-color: var(--green); }

/* core web vitals card */
.cwv-panel { margin-bottom: 24px; }
.cwv-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cwv-row:last-child { border-bottom: none; }
.cwv-metric { color: var(--dim); font-size: 0.95rem; }
.cwv-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.cwv-judge { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.cwv-judge.ok { color: var(--green); }
.cwv-judge.warn { color: var(--amber); }
.cwv-judge.err { color: var(--red); }
.cwv-pending { color: var(--faint); font-size: 0.95rem; }
.cwv-metric { display: flex; flex-direction: column; gap: 2px; }
.cwv-meaning { color: var(--faint); font-size: 0.84rem; }
.cwv-advice-head { color: var(--dim); font-size: 0.94rem; margin: 14px 0 8px; font-weight: 600; }
.cwv-advice-head.cwv-good { color: var(--green); }
.cwv-op { color: var(--dim); font-size: 0.94rem; padding: 2px 0 2px 4px; }
.cwv-savings { color: var(--green); font-weight: 700; }
.cwv-advice-note { color: var(--faint); font-size: 0.87rem; margin-top: 10px; max-width: 80ch; }

/* service coverage columns in head-to-head */
.h2h-services { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.svc-col { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px 18px; }
.svc-col-title { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.svc-you .svc-col-title { color: var(--green); }
.svc-both .svc-col-title { color: var(--faint); }
.svc-them .svc-col-title { color: var(--them); }
.svc-item { font-size: 0.95rem; color: var(--dim); padding: 3px 0; }
.svc-empty { color: var(--faint); font-style: italic; }
.svc-verdict { grid-column: 1 / -1; color: var(--dim); font-size: 0.95rem; border-left: 2px solid var(--green-dim); padding-left: 14px; margin-top: 6px; max-width: 90ch; }
@media (max-width: 720px) { .h2h-services { grid-template-columns: 1fr; } }

/* "no service area found" attention panel — deliberately amber and loud:
   this one fact decides what every number in the report means */
.geo-attn {
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  background: var(--amber-wash);
  box-shadow: 0 0 40px var(--amber-halo);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.geo-attn-head { color: var(--amber); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.geo-attn-body { color: var(--dim); font-size: 0.95rem; max-width: 80ch; margin-bottom: 14px; }
.geo-attn-body b { color: var(--text); }
.geo-attn .btn { color: var(--amber); border-color: var(--amber-border-soft); }
.geo-attn .btn:hover { background: var(--amber-soft); border-color: var(--amber); }

/* paid-state chip on My Scans rows */
.lock-chip {
  color: var(--amber);
  border: 1px solid var(--amber-border-soft);
  border-radius: var(--radius-small);
  padding: 1px 7px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.lock-chip-open { color: var(--green); border-color: var(--green-border); }

/* head-to-head CTA — the marquee. One deliberate glow on the page. */
.h2h-cta {
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--green-wash), transparent 60%);
  box-shadow: 0 0 56px var(--green-halo);
  padding: 36px 32px;
  margin-bottom: 64px;
}
.h2h-cta .section-title { margin-bottom: 14px; }
.h2h-cta-pitch { color: var(--dim); font-size: 0.9rem; max-width: 68ch; margin-bottom: 24px; }
.h2h-cta .compare-manual {
  margin-top: 0;
  max-width: none;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.h2h-cta .save-label { flex: 1; min-width: 260px; max-width: 480px; margin-bottom: 0; }
.h2h-cta .compare-manual .btn { margin-top: 0; }
.h2h-cta-note { color: var(--faint); font-size: 0.84rem; flex-basis: 100%; margin-top: 6px; }

/* the SERP list rows grew a description column + per-type action */
.serp-row { grid-template-columns: 44px 1fr auto auto; align-items: center; }
a.btn { text-decoration: none; display: inline-block; }
.btn-visit { color: var(--them); border-color: var(--them-border); }
.btn-visit:hover { background: var(--them-soft); border-color: var(--them); color: var(--them); }
.serp-tag { display: block; color: var(--faint); font-size: 0.82rem; margin-top: 2px; }
.serp-tag-directory { color: var(--amber); }
.serp-tag-rival { color: var(--green-dim); }
.serp-tag-listed { color: var(--green); }
.competitor-domain { font-weight: 600; font-size: 0.9rem; word-break: break-all; }
.competitor-count { color: var(--faint); font-size: 0.84rem; white-space: nowrap; }
.opp-queries { color: var(--faint); font-size: 0.84rem; margin-top: 8px; }
.opp-target { color: var(--faint); font-size: 0.85rem; margin-top: 10px; word-break: break-all; }
.opp-target b { color: var(--green-dim); font-weight: 500; }
.opps-summary { color: var(--faint); font-size: 0.88rem; margin: -18px 0 22px; }

/* limitations */
.limits { margin-bottom: 80px; }
.limits-list { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.limits-list li { color: var(--dim); font-size: 0.94rem; }
.limits-list li::before { content: "▸ "; color: var(--amber); }
.limits-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.limits-note { color: var(--faint); font-size: 0.87rem; }

/* ================= gsc section ================= */
.gsc-section { margin-bottom: 64px; }
.gsc-help { max-width: 780px; }
.gsc-help .section-title { margin-bottom: 16px; }
.gsc-help-intro { color: var(--dim); font-size: 0.88rem; margin-bottom: 18px; }
.gsc-steps { margin: 0 0 20px 20px; display: grid; gap: 12px; }
.gsc-steps li { color: var(--dim); font-size: 0.95rem; line-height: 1.7; }
.gsc-steps b { color: var(--text); }
.gsc-help-caveat {
  color: var(--amber);
  font-size: 0.94rem;
  line-height: 1.7;
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  padding: 12px 16px;
  background: var(--amber-wash);
}
.gsc-help-caveat b { color: var(--amber); }

/* ================= reality check ================= */
.reality-section { margin-bottom: 64px; }
.reality-form {
  margin-top: 24px;
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  display: grid;
  gap: 16px;
}
.reality-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 14px; }
.reality-form textarea {
  width: 100%;
  background: var(--overlay);
  border: 1px solid var(--green-border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  resize: vertical;
}
.reality-form textarea:focus { outline: none; border-color: var(--green); }
.reality-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.alignment-section { margin-bottom: 64px; }
.alignment-head { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.alignment-verdict .gauge { width: min(230px, 100%); margin: 0 auto; }
.alignment-verdict-text p:not(.panel-label) { color: var(--text); font-size: 0.9rem; line-height: 1.7; }
.alignment-missing { color: var(--amber) !important; font-size: 0.92rem !important; margin-top: 12px; }

.presence-table { display: grid; gap: 6px; margin-top: 10px; }
.presence-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 1fr;
  gap: 14px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 10px 16px;
  font-size: 0.92rem;
}
.presence-kw { font-weight: 600; }
.presence-vol { color: var(--green-dim); }
.pstatus { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; padding: 2px 8px; border-radius: var(--radius-small); border: 1px solid; text-align: center; }
.pstatus-absent { color: var(--red); border-color: var(--red-border); }
.pstatus-weak { color: var(--amber); border-color: var(--amber-border); }
.pstatus-present { color: var(--green); border-color: var(--green-border); }
.presence-top { color: var(--faint); font-size: 0.84rem; }

.suggestion-row { color: var(--dim); font-size: 0.94rem; margin-top: 10px; }
.suggestion-row b { color: var(--green); font-weight: 600; }

.complang { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.complang-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px 18px;
}
.complang-card.own { border-color: var(--green-border); }
.complang-domain { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.complang-line { color: var(--dim); font-size: 0.9rem; margin-top: 4px; }
.complang-line span { color: var(--faint); }

@media (max-width: 860px) {
  .reality-row { grid-template-columns: 1fr; }
  .alignment-head { grid-template-columns: 1fr; }
  .complang { grid-template-columns: 1fr; }
  .presence-row { grid-template-columns: 1fr 80px 80px; }
  .presence-top { display: none; }
}

/* ================= email gate modal ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal {
  background: var(--bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  box-shadow: 0 0 64px var(--green-soft);
  padding: 32px;
  width: min(480px, 100%);
}
.modal-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin: 6px 0 10px; }
.modal-sub { color: var(--dim); font-size: 0.94rem; margin-bottom: 20px; }
.modal input[type="email"] {
  width: 100%;
  background: var(--overlay);
  border: 1px solid var(--green-border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  caret-color: var(--green);
}
.modal input[type="email"]:focus { outline: none; border-color: var(--green); }
.modal-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* account CTA */
.account-cta { margin-bottom: 24px; border-color: var(--green-border); }
.account-cta .section-title { margin-bottom: 10px; }
.account-cta-sub { color: var(--dim); font-size: 0.88rem; max-width: 640px; margin-bottom: 18px; }
.account-cta a.btn { text-decoration: none; }
#nav-auth { color: var(--dim); font-size: 0.92rem; }
#nav-auth .nav-link { color: var(--green-dim); }
#nav-auth .nav-email { color: var(--text); }
#nav-auth .nav-email:hover { color: var(--green); }

/* ================= my scans ================= */
.history-row { grid-template-columns: 56px 1fr auto; }
.history-row .competitor-rank { font-size: 1.1rem; font-weight: 800; }
.score-good { color: var(--green) !important; }
.score-mid { color: var(--amber) !important; }
.score-bad { color: var(--red) !important; }
.dimdate { color: var(--faint); font-weight: 400; font-size: 0.87rem; }
.history-actions { display: flex; gap: 16px; }
.history-link {
  color: var(--green-dim);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.history-link:hover { color: var(--green); }

/* ================= footer ================= */
.footer {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.84rem;
}
.footer-status { color: var(--green); letter-spacing: 0.08em; }

/* ================= responsive ================= */
@media (max-width: 860px) {
  .profile-editor { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .scores { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .opps { grid-template-columns: 1fr; }
  .truth-row { grid-template-columns: 1fr; gap: 4px; }
  .truth-status { text-align: left; }
  .gauges { grid-template-columns: 1fr 1fr; }
  .scanstats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .prompt { flex-wrap: wrap; }
  .prompt .btn { width: 100%; }
  .profile-grid { grid-template-columns: 1fr; }
  .finding summary { grid-template-columns: 80px 1fr; }
  .finding-urls { display: none; }
  .nav-tag { display: none; }
}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blip { animation: none; }
  .gauge-value, .gauge-needle { transition: none; }
}

/* ============ paywall ============ */

.unlock-panel {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green-soft), 0 0 40px var(--green-halo);
  text-align: left;
  margin-bottom: 64px;
}
.unlock-what {
  color: var(--dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 12px 0 4px;
}
.unlock-price {
  color: var(--green);
  font-size: 30px;
  font-weight: 700;
  margin: 12px 0 18px;
  letter-spacing: -0.5px;
}
.unlock-price .was {
  color: var(--faint);
  font-size: 15px;
  font-weight: 400;
  text-decoration: line-through;
  margin-left: 10px;
  letter-spacing: 0;
}
.unlock-soon { color: var(--faint); font-size: 15px; margin-top: 14px; }
.unlock-error { color: var(--red); font-size: 15px; margin-top: 10px; min-height: 1em; }

.unlock-banner {
  border: 1px solid var(--green);
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

/* locked section stubs — real counts, no content */
.locked-stub {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px dashed var(--line);
  background: var(--hover-wash);
  padding: 18px 20px;
  margin-top: 12px;
}
.locked-findings { margin-top: 16px; }
/* span the full row when the host container is a grid (opps, competitors) */
.locked-stub { grid-column: 1 / -1; }
.locked-lock { font-size: 15px; filter: grayscale(1) brightness(1.6); }
.locked-teaser { color: var(--dim); font-size: 15px; flex: 1 1 260px; line-height: 1.6; }
.locked-inline { color: var(--faint) !important; font-style: normal; }
.btn-small { padding: 7px 14px; font-size: 15px; }
.btn-locked { opacity: 0.75; }

.paid-notice-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.paid-notice-wrap .unlock-banner { margin-top: 24px; }
.paid-notice-wrap .btn { margin-bottom: 8px; display: inline-block; }

.save-form { margin-top: 20px; max-width: 420px; }
.save-label {
  display: block;
  color: var(--faint);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.save-label input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  background: var(--scrim-light);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
}
.save-label input:focus { outline: none; border-color: var(--green); }
#save-signin { font-size: 15px; }

/* the scan they just came from, so it's obvious which row to click */
.history-new {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green-soft);
}

/* ============ head-to-head comparison ============ */

.compare-manual { margin-top: 24px; max-width: 640px; }
.compare-manual .save-label { margin-bottom: 12px; }
.compare-manual .btn { margin-top: 4px; }

.h2h-scores {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}
.h2h-side { text-align: center; min-width: 0; }
.h2h-domain {
  font-size: 15px;
  color: var(--dim);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.h2h-gauge { display: flex; justify-content: center; }
.h2h-vs { text-align: center; }
.h2h-vs-label { display: block; color: var(--faint); font-size: 15px; letter-spacing: 0.1em; }
.h2h-delta { font-size: 22px; font-weight: 700; }
.h2h-delta.up { color: var(--green); }
.h2h-delta.down { color: var(--red); }
.h2h-delta.flat { color: var(--faint); }

.h2h-para { color: var(--dim); font-size: 15.5px; line-height: 1.75; margin-top: 12px; }

.h2h-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.h2h-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.h2h-item:last-child { border-bottom: none; }
.h2h-item-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.h2h-item-detail { color: var(--dim); font-size: 15px; line-height: 1.7; }
/* move titles: chips hold their column, wrapped action lines align under
   the action's own first line — never under the chips */
#h2h-moves .h2h-item-title { display: flex; align-items: baseline; gap: 8px; }
#h2h-moves .h2h-item-title .impact, #h2h-moves .h2h-item-title .effort { flex-shrink: 0; white-space: nowrap; }
#h2h-moves .h2h-item-title .move-action { flex: 1; min-width: 0; }

/* Explanations read as GUIDANCE, not more data: the category table above
   shows the numbers, these cards explain them. The label + tinted card +
   accent bar make the hand-holding visible. */
#h2h-gaps::before {
  content: "What these numbers mean";
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin: 26px 0 10px;
}
#h2h-gaps .h2h-item {
  background: #f3f7ff;
  border: 1px solid #dbe6fb;
  border-left: 3px solid #2563eb;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
#h2h-gaps .h2h-item:last-child { border-bottom: 1px solid #dbe6fb; }
html[data-theme="dark"] #h2h-gaps .h2h-item { background: #131f36; border-color: #24365c; border-left-color: #60a5fa; }
html[data-theme="dark"] #h2h-gaps .h2h-item:last-child { border-bottom-color: #24365c; }
html[data-theme="dark"] #h2h-gaps::before { color: #93c5fd; }

.h2h-cats { margin: 12px 0 20px; }
.h2h-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 70px 90px;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.h2h-row:last-child { border-bottom: none; }
.h2h-head { font-size: 15px; letter-spacing: 0.08em; }
.h2h-head .h2h-row-you { color: var(--green); }
.h2h-head .h2h-row-them { color: var(--them); }

/* used in the saved-comparison list to name the competitor */
.h2h-legend-them { color: var(--them); }
.h2h-row-label { color: var(--dim); overflow-wrap: anywhere; }
.h2h-row-you, .h2h-row-them { text-align: right; font-variant-numeric: tabular-nums; }
.h2h-row-you { color: var(--green); }
.h2h-row-them { color: var(--them); }
.h2h-row-note { text-align: right; color: var(--faint); font-size: 15px; }
.h2h-bigmove .h2h-row-note { color: var(--amber); }

.effort {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 0.3rem;
  margin-right: 8px;
  border: 1px solid var(--line);
  color: var(--faint);
}
.effort-quick { color: var(--green); border-color: var(--green-soft); }
.effort-project { color: var(--amber); }

@media (max-width: 620px) {
  .h2h-scores { grid-template-columns: 1fr; }
  .h2h-row { grid-template-columns: minmax(0, 1fr) 56px 56px; }
  .h2h-row-note { display: none; }
}

.rank-them { color: var(--them) !important; }

.history-section { margin-top: 56px; }
.history-section .section-title { margin-bottom: 16px; }
.history-section .opps-summary { margin-bottom: 20px; }

/* The verdict is a sentence, not a display headline — at section-title size
   it wrapped to six lines and read as shouting. */
.h2h-headline {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin-bottom: 4px;
}

/* panel labels colour-matched to the side they describe */
.label-you { color: var(--green) !important; }
.label-them { color: var(--them) !important; }

/* head-to-head title: wraps between domains, never mid-word */
#h2h-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 14px;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}
.h2h-title-you { color: var(--green); }
.h2h-title-them { color: var(--them); }
.h2h-title-vs { color: var(--faint); font-size: 0.62em; letter-spacing: 0.1em; }

/* head-to-head sections need breathing room from the panel above them */
.h2h-section { margin-top: 52px; }
#h2h-results > section { margin-bottom: 28px; }

/* when neither site ranks, that IS the finding — say it, don't footnote it */
.h2h-heldby-strong {
  margin-top: 16px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.7;
  border-left: 2px solid var(--them);
  padding-left: 14px;
}

/* a way back to the report you were just reading (or paid for) */
.resume-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--green);
  background: var(--green-soft);
  padding: 16px 20px;
  margin-top: 24px;
}
.resume-text { color: var(--text); font-size: 15px; }
.resume-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.history-head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.credit-chip { font-size: 15px; color: var(--dim); }
.credit-chip.none { color: var(--amber); }
.modal select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  background: var(--scrim-light);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  text-transform: none;
  letter-spacing: normal;
}
.modal select:focus, .modal .save-label input:focus { outline: none; border-color: var(--green); }

/* long domains must wrap inside modals rather than run off the edge */
.modal-title { overflow-wrap: anywhere; }
.modal-domain {
  display: inline-block;
  font-size: 0.78em;
  color: var(--them);
  overflow-wrap: anywhere;
  max-width: 100%;
}
.modal-sub, .credit-chip { overflow-wrap: anywhere; }

/* the AI-unavailable notice on a comparison */
.writeup-warning {
  border: 1px solid var(--amber);
  background: var(--amber-soft);
  color: var(--dim);
  font-size: 15px;
  line-height: 1.7;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.writeup-warning b { color: var(--text); }

/* checkout hand-off */
.checkout-overlay { z-index: 60; }
.checkout-card {
  background: var(--panel);
  border: 1px solid var(--green);
  border-radius: 0.6rem;
  padding: 34px 38px;
  text-align: center;
  max-width: 380px;
  box-shadow: 0 0 60px var(--green-halo);
}
.checkout-title {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
  letter-spacing: -0.01em;
}
.checkout-sub { color: var(--dim); font-size: 14.5px; line-height: 1.7; }
.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: var(--green); opacity: 0.7; }
}

/* transparency: weights, impact and what each number means */
.weight-tag {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 6px;
  margin-left: 8px;
  white-space: nowrap;
}
.impact {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 0.3rem;
  margin-right: 6px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.impact-high { color: var(--green); }
.impact-medium { color: var(--amber); }
.impact-low { color: var(--faint); }
.metric-help {
  color: var(--faint);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 2px 0 12px;
  padding-left: 2px;
  max-width: 60ch;
}
.metric-help.wide { max-width: 78ch; margin-bottom: 18px; }
.table-note { margin-top: 16px; line-height: 1.7; }

.gauge-headroom { color: var(--green); }

.h2h-error-panel { border-color: var(--amber); }
.h2h-error-panel .section-title { margin-bottom: 12px; }

.geo-provenance {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--faint);
  text-transform: none;
  letter-spacing: normal;
}

/* profile editor: readable labels, guidance under every field */
.profile-editor { align-items: start; }
.profile-field label {
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: 0.02em;
  font-weight: 600;
}
.field-help {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--faint);
}
.field-help b { color: var(--dim); font-weight: 500; }

/* ---- Competitive Visibility Score (Phase 2) ---- */
.cvs-head { display: flex; align-items: center; gap: 18px; margin: 10px 0 16px; }
.cvs-num { font-size: 52px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cvs-good { color: var(--ok); }
.cvs-mid { color: var(--warn); }
.cvs-bad { color: var(--bad); }
.cvs-band { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.cvs-band-note { font-size: 15px; opacity: 0.75; max-width: 46ch; }
.cvs-pillar { padding: 9px 0; border-top: 1px solid var(--line); }
.cvs-pillar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cvs-pillar-label { font-weight: 600; font-size: 15px; }
.cvs-pillar-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.cvs-of { opacity: 0.5; font-weight: 400; font-size: 15px; }
.cvs-pillar-na { opacity: 0.55; font-weight: 500; font-size: 15px; font-style: italic; }
.cvs-bar { height: 6px; border-radius: 3px; background: var(--line); margin: 6px 0 4px; overflow: hidden; }
.cvs-bar-fill { height: 100%; border-radius: 3px; }
.cvs-fill-good { background: var(--ok); }
.cvs-fill-mid { background: var(--warn); }
.cvs-fill-bad { background: var(--bad); }
.cvs-pillar-evidence { font-size: 15px; opacity: 0.8; margin-top: 3px; max-width: 72ch; }
.cvs-unknown .cvs-pillar-label, .cvs-na .cvs-pillar-label { opacity: 0.65; }

/* ---- visibility duel (h2h) ---- */
.h2hv-heads { display: flex; align-items: center; justify-content: space-around; gap: 14px; margin: 12px 0 18px; text-align: center; }
.h2hv-side { flex: 1; }
.h2hv-side .cvs-num { font-size: 44px; }
.h2hv-vs { opacity: 0.5; font-weight: 700; }
.h2hv-bar-you { margin-top: 6px; }
.h2hv-bar-them { margin-top: 3px; opacity: 0.85; }
.h2hv-bar-them .cvs-bar-fill { filter: saturate(0.55); }

/* ---- Google Business Profile card ---- */
.gbp-facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.gbp-fact { font-size: 15px; opacity: 0.9; }
.gbp-desc { font-size: 15px; opacity: 0.8; max-width: 68ch; }
.gbp-review { margin: 8px 0; padding: 6px 10px; border-left: 2px solid var(--line-strong); font-size: 14.5px; opacity: 0.85; }
.gbp-when { opacity: 0.55; font-size: 15px; }
.gbp-themes-head { margin: 14px 0 6px; font-weight: 600; font-size: 15px; }
.gbp-theme { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.gbp-theme-praise b { color: var(--ok); }
.gbp-theme-complaint b { color: var(--warn); }
.gbp-quote { opacity: 0.75; font-style: italic; font-size: 14.5px; }
.gbp-pending { font-size: 15px; opacity: 0.75; }
.gbp-absent { font-size: 15px; }

/* ---- review-themes duel (h2h) ---- */
.h2hr-cols { display: flex; gap: 22px; flex-wrap: wrap; }
.h2hr-col { flex: 1; min-width: 260px; }

/* in-progress review gathering: loud enough that nobody thinks it's broken
   or final — amber, like every other "working on it" state */
.gbp-gathering {
  font-size: 15px;
  color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: 6px;
  padding: 8px 12px;
  display: inline-block;
}

/* a rival already compared: the action flips from sell to view */
.btn-ghost.btn-compared {
  color: #1d4ed8;
  background: #eff4ff;
  border-color: #bfd3f8;
  font-weight: 700;
}
.btn-ghost.btn-compared:hover { background: #dfe9fd; border-color: #93b4f5; }
.btn.btn-go, .btn-ghost.btn-go {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  font-weight: 700;
}
.btn.btn-go:hover, .btn-ghost.btn-go:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
html[data-theme="dark"] .btn-ghost.btn-compared { color: #93c5fd; background: #16233c; border-color: #2c4370; }
html[data-theme="dark"] .btn-ghost.btn-compared:hover { background: #1c2c4a; }

.svc-matched-by { font-size: 15px; opacity: 0.6; margin-top: 10px; width: 100%; }

/* ========================================================================
   CLARITY V2 — calm interface, aggressive data
   This layer deliberately changes the product from a terminal page into a
   light-first competitive intelligence platform while preserving the API- and
   renderer-facing class names used by seo.js.
   ======================================================================== */

html { background: var(--bg); scroll-padding-top: 124px; }
body {
  background:
    radial-gradient(circle at 78% 1%, rgba(59, 130, 246, .11), transparent 25rem),
    radial-gradient(circle at 12% 11%, rgba(124, 58, 237, .055), transparent 24rem),
    var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(37, 99, 235, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 38%);
  z-index: -1;
}
button, input, select, textarea { font-family: var(--font-body); }
::selection { background: #bfdbfe; color: #172554; }

.view { padding: 0 32px; }
.landing-view { max-width: 1320px; }

/* navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 1320px;
  padding: 15px 32px;
  min-height: 72px;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.nav::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  z-index: -1;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: none;
  font-size: 1.05rem;
  letter-spacing: -.03em;
  color: var(--text);
}
.nav-path {
  padding-left: 2px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-mark { display: inline-flex; align-items: end; gap: 2px; width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: linear-gradient(145deg, #2563eb, #5b55e7); box-shadow: 0 6px 16px rgba(37,99,235,.22); }
.brand-mark i { display: block; flex: 1; border-radius: 2px 2px 1px 1px; background: white; }
.brand-mark i:nth-child(1) { height: 35%; opacity: .7; }
.brand-mark i:nth-child(2) { height: 60%; opacity: .85; }
.brand-mark i:nth-child(3) { height: 92%; }
.brand-mark-small { width: 18px; height: 18px; padding: 3px; border-radius: 5px; }
.nav-links { display: flex; gap: 28px; align-items: center; margin-left: auto; margin-right: auto; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: .81rem; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.nav-right { gap: 12px; align-items: center; }
.nav-tag { display: none; }
.nav-link { color: var(--dim); font-size: 0.9rem; font-weight: 600; }
.nav-link:hover { color: var(--green); }
.nav-cta { text-decoration: none; color: white; background: var(--text); border: 1px solid var(--text); padding: 9px 15px; border-radius: 10px; font-size: 0.87rem; font-weight: 700; box-shadow: var(--shadow-xs); transition: transform .2s, background .2s; }
.nav-cta:hover { background: #1d2939; transform: translateY(-1px); }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer; font-size: 0.84rem; font-weight: 600; box-shadow: var(--shadow-xs); }
.theme-icon { font-size: .95rem; }

/* shared system */
.eyebrow {
  color: var(--green);
  font-size: 1rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 13px;
}
.section { padding: 104px 0; border-color: var(--line); }
.section-title, .modal-title, .report-domain, .hero-title, .final-cta h2, .scan-intro h1 {
  font-family: var(--font-display);
}
.section-title { font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: -.045em; line-height: 1.1; margin-bottom: 20px; max-width: 780px; }
.section-intro { max-width: 700px; margin-bottom: 48px; }
.section-intro > p:last-child { color: var(--dim); max-width: 58ch; font-size: 1rem; }
.section-intro.compact { margin-bottom: 38px; }
.accent { color: var(--green); }
.code { font-family: var(--mono); background: var(--overlay); border-color: var(--line); }
.btn {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 10px;
  font-size: 0.85rem;
  letter-spacing: .01em;
  text-transform: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--green); border-color: var(--green); box-shadow: 0 8px 20px rgba(37, 99, 235, .18); }
.btn-solid:hover { background: var(--green-hover); border-color: var(--green-hover); box-shadow: 0 10px 24px rgba(37, 99, 235, .25); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--dim); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { color: var(--green); background: var(--green-soft); border-color: var(--green-border); }
.btn-small { min-height: 32px; padding: 6px 11px; font-size: 0.8rem; }
.panel {
  background: var(--panel);
  border-color: var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.panel-label {
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.blip { background: var(--ok); width: 7px; height: 7px; }

/* marketing hero */
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr); gap: 52px; align-items: center; min-height: 700px; padding: 82px 0 88px; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 24px; border: 1px solid var(--green-border); border-radius: 999px; color: var(--green); background: color-mix(in srgb, var(--green-soft) 75%, transparent); font-size: 0.8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero-title { font-size: clamp(3.3rem, 5.2vw, 5.8rem); max-width: 790px; letter-spacing: -.075em; line-height: .98; margin-bottom: 25px; color: #0c1730; }
.accent-underline { position: relative; color: var(--green); white-space: nowrap; }
.accent-underline::after { content: ""; position: absolute; left: 2%; right: 0; bottom: -5px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--green), #7c3aed); opacity: .18; transform: rotate(-1deg); }
.hero-sub { color: var(--dim); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; max-width: 610px; margin-bottom: 33px; }
.prompt { max-width: 720px; padding: 7px; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(15, 23, 42, .11); }
.prompt:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft), 0 18px 50px rgba(15, 23, 42, .11); }
.prompt-field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-left: 12px; }
.prompt-globe { color: var(--green); font-size: 1.15rem; }
.prompt-input { color: var(--text); font-size: .88rem; min-height: 46px; caret-color: var(--green); }
.prompt-input::placeholder { color: #98a2b3; }
.prompt .btn { min-height: 48px; padding: 0 19px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: 0.82rem; margin: 14px 2px 0; }
.hero-trust span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 5px; }
.prompt-error { margin-left: 3px; font-weight: 600; }

.hero-product { position: relative; min-width: 0; perspective: 1200px; }
.preview-window { position: relative; z-index: 2; width: 100%; background: #fbfcff; border: 1px solid #dbe3ef; border-radius: 20px; padding: 15px; box-shadow: 0 40px 100px rgba(27, 42, 78, .18), 0 4px 14px rgba(15, 23, 42, .05); transform: rotateY(-2.5deg) rotateX(1deg); }
.preview-topbar { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 14px; color: #475467; font-size: 0.78rem; }
.preview-brand { display: flex; align-items: center; gap: 7px; font-weight: 800; color: #1d2939; }
.preview-period { border: 1px solid #e3e8f0; padding: 6px 9px; border-radius: 7px; background: #fff; }
.preview-context { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #e7ebf2; border-radius: 11px; background: white; }
.preview-context div { display: flex; flex-direction: column; min-width: 0; }
.preview-context strong { color: #1d2939; font-size: 0.87rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-label { font-family: var(--mono); color: #98a2b3; font-size: .51rem; letter-spacing: .08em; }
.preview-vs { color: #98a2b3; font-size: 0.76rem; font-weight: 800; }
.preview-score-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; margin-top: 10px; }
.preview-score-card, .preview-channel-card { border: 1px solid #e7ebf2; border-radius: 11px; background: white; padding: 14px; }
.preview-score-head { display: flex; justify-content: space-between; color: #667085; font-size: 0.76rem; font-weight: 700; }
.score-trend { padding: 2px 5px; border-radius: 5px; font-family: var(--mono); font-size: .54rem; }
.score-trend.down { color: #dc2626; background: #fef2f2; }
.score-trend.up { color: #16a34a; background: #f0fdf4; }
.preview-score-main { display: flex; align-items: baseline; margin: 10px 0 2px; }
.preview-score-main strong { color: #101828; font-family: var(--mono); font-size: 2.45rem; line-height: 1; }
.preview-score-main span { color: #98a2b3; font-family: var(--mono); font-size: 0.9rem; }
.preview-score-card p { color: #667085; font-size: .58rem; margin-top: 7px; }
.mini-chart { height: 55px; display: flex; align-items: end; gap: 5px; padding-top: 7px; border-bottom: 1px solid #e7ebf2; }
.mini-chart i { flex: 1; display: block; border-radius: 3px 3px 0 0; background: #c7d7fb; }
.mini-chart i.active { background: #2563eb; }
.leader-card { position: relative; overflow: hidden; background: linear-gradient(145deg, #f8f7ff, #fff); }
.leader-ring { width: 74px; height: 74px; margin: 6px auto 1px; border-radius: 50%; border: 8px solid #e9ddff; border-top-color: #7c3aed; border-right-color: #7c3aed; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7c3aed; transform: rotate(-14deg); }
.leader-ring > * { transform: rotate(14deg); }
.leader-ring span { font-family: var(--mono); font-size: .8rem; font-weight: 800; }
.leader-ring small { font-size: .48rem; color: #667085; }
.preview-channel-card { margin-top: 10px; }
.preview-section-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: #344054; margin-bottom: 9px; }
.preview-section-head span { color: #2563eb; }
.preview-channel { display: grid; grid-template-columns: 112px 1fr 23px; align-items: center; gap: 9px; padding: 6px 0; color: #667085; font-size: .55rem; }
.preview-channel > div { height: 5px; border-radius: 99px; background: #edf0f5; overflow: hidden; }
.preview-channel > div i { display: block; height: 100%; border-radius: inherit; background: #d97706; }
.preview-channel > div i.good { background: #16a34a; }
.preview-channel b { color: #344054; font-family: var(--mono); text-align: right; }
.preview-alert { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 11px; border: 1px solid #fde6b8; border-radius: 10px; background: #fffaf0; color: #475467; font-size: .55rem; }
.preview-alert b { display: block; color: #92400e; font-size: 0.75rem; }
.preview-alert p { color: #786348; }
.preview-alert > span:last-child { color: #d97706; font-weight: 800; }
.alert-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #d97706; font-weight: 800; }
.float-card { position: absolute; z-index: 3; min-width: 145px; padding: 11px 13px; background: color-mix(in srgb, white 94%, transparent); backdrop-filter: blur(14px); border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.15); display: flex; flex-direction: column; }
.float-card span { color: #98a2b3; font-size: .52rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.float-card strong { color: #172554; font-size: 0.9rem; margin: 3px 0 1px; }
.float-card small { color: #98a2b3; font-size: .55rem; }
.float-card em { color: #7c3aed; font-size: .53rem; font-style: normal; font-weight: 700; }
.float-card-left { left: -28px; bottom: 80px; }
.float-card-right { right: -20px; top: 112px; }

.signal-strip { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; color: var(--faint); font-family: var(--mono); font-size: .55rem; letter-spacing: .1em; overflow: hidden; white-space: nowrap; }
.signal-strip span + span::before { content: "•"; color: #cbd5e1; margin-right: 28px; }

/* marketing story */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card { min-height: 390px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: var(--shadow-xs); transition: transform .25s, box-shadow .25s, border-color .25s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--green-border); }
.story-card-primary { background: linear-gradient(145deg, #172554, #1e3a8a); border-color: #2848a6; color: white; }
.story-num { font-family: var(--mono); font-size: 0.9rem; color: var(--faint); }
.story-card-primary .story-num { color: #93c5fd; }
.story-visual { height: 145px; margin: 13px 0 23px; display: grid; place-items: center; }
.story-card h3 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.025em; margin-bottom: 10px; }
.story-card p { color: var(--dim); font-size: .82rem; line-height: 1.65; }
.story-card-primary p { color: #cbd5e1; }
.story-link { color: var(--green); font-size: 0.78rem; font-weight: 800; margin-top: auto; padding-top: 18px; }
.story-card-primary .story-link { color: #93c5fd; }
.radar-visual { position: relative; }
.radar-visual span, .radar-visual i, .radar-visual b { position: absolute; border-radius: 50%; border: 1px solid rgba(147,197,253,.3); }
.radar-visual span { width: 126px; height: 126px; background: radial-gradient(circle, rgba(37,99,235,.55), transparent 8%, transparent 42%, rgba(59,130,246,.08) 43%, transparent 45%); }
.radar-visual i { width: 82px; height: 82px; }
.radar-visual b { width: 34px; height: 34px; background: #2563eb; box-shadow: 0 0 0 12px rgba(37,99,235,.16), 0 0 32px rgba(96,165,250,.7); border: 5px solid #93c5fd; }
.radar-visual::before, .radar-visual::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 5px rgba(167,139,250,.12); }
.radar-visual::before { transform: translate(46px,-38px); }
.radar-visual::after { transform: translate(-53px,28px); }
.compare-visual { grid-template-columns: repeat(3, 1fr); align-items: end; gap: 18px; padding: 15px 30px; border-bottom: 1px solid var(--line); }
.compare-visual > span { height: 100%; display: flex; align-items: end; justify-content: center; gap: 4px; }
.compare-visual i { width: 13px; display: block; border-radius: 4px 4px 0 0; background: #bfdbfe; }
.compare-visual i + i { background: #a78bfa; }
.action-visual { grid-template-columns: auto 1fr auto 1fr auto; gap: 8px; }
.action-visual span { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--green-border); background: var(--green-soft); color: var(--green); border-radius: 11px; font-family: var(--mono); font-weight: 800; }
.action-visual i { height: 2px; background: linear-gradient(90deg, var(--green-border), var(--them-border)); }

.insight-section { padding-top: 48px; }
.insight-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; padding: 54px; border-radius: 28px; background: linear-gradient(150deg, #0f1d3d 0%, #172554 58%, #24175c 100%); color: white; box-shadow: 0 30px 80px rgba(23,37,84,.22); overflow: hidden; position: relative; }
.insight-card::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; right: -190px; top: -220px; background: #2563eb; filter: blur(20px); opacity: .18; }
.insight-copy, .insight-comparison { position: relative; z-index: 2; }
.insight-copy h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.7vw, 2.8rem); line-height: 1.18; letter-spacing: -.045em; margin-bottom: 20px; }
.insight-copy > p:not(.eyebrow) { color: #cbd5e1; font-size: .9rem; line-height: 1.75; }
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 25px; color: #dbeafe; font-size: 0.86rem; }
.check-list span { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(96,165,250,.16); color: #93c5fd; margin-right: 7px; }
.insight-comparison { padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.comparison-heading { display: grid; grid-template-columns: 1fr 1fr; text-align: right; padding-left: 120px; gap: 10px; color: #93c5fd; font-family: var(--mono); font-size: .52rem; letter-spacing: .09em; }
.comparison-row { display: grid; grid-template-columns: 108px 1fr 32px 32px; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 0.78rem; }
.comparison-row label { color: #cbd5e1; }
.comparison-row > div { height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.comparison-row i { display: block; height: 100%; border-radius: inherit; background: #22c55e; }
.comparison-row.losing i { background: #60a5fa; }
.comparison-row b { font-family: var(--mono); font-size: 0.78rem; text-align: right; color: #bfdbfe; }
.comparison-row b:last-child { color: #c4b5fd; }
.comparison-verdict { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 11px; background: rgba(15,23,42,.38); }
.comparison-verdict span { color: #94a3b8; font-size: .59rem; }
.comparison-verdict strong { color: #fbbf24; font-family: var(--mono); font-size: .8rem; }
.comparison-verdict small { grid-column: 1 / -1; color: #93c5fd; font-size: .56rem; }

/* truth and CTA */
.trust-section { padding-bottom: 82px; }
.truth-table { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-xs); }
.truth-row { grid-template-columns: 38px 180px 1fr 130px; gap: 18px; padding: 19px 22px; }
.truth-row:nth-child(odd) { background: transparent; }
.truth-row:hover { background: var(--hover-wash); }
.truth-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-weight: 800; }
.truth-icon.blue { color: #2563eb; background: #eff6ff; }
.truth-icon.violet { color: #7c3aed; background: #f5f3ff; }
.truth-icon.amber { color: #d97706; background: #fffbeb; }
.truth-icon.gray { color: #64748b; background: #f1f5f9; }
.truth-name { color: var(--text); }
.truth-status { padding: 4px 8px; border-radius: 7px; text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; }
.status-ok { color: var(--ok); background: #f0fdf4; }
.status-lock { color: var(--amber); background: #fffbeb; }
.status-null { color: var(--faint); background: var(--overlay); font-style: normal; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; border-top: 0; margin-bottom: 76px; padding: 42px 46px; border-radius: 24px; background: linear-gradient(100deg, #eff6ff, #f5f3ff); border: 1px solid #dbe7fb; }
.final-cta h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.045em; line-height: 1.1; }
.final-cta > div > p:last-child { color: var(--dim); margin-top: 10px; }
.final-cta .btn { min-height: 48px; color: white; background: var(--text); border-color: var(--text); }

/* scanning */
.scanwrap { padding: 58px 0 90px; max-width: 1040px; margin: 0 auto; }
.scan-intro { display: flex; align-items: center; gap: 24px; max-width: 760px; margin: 0 auto 34px; }
.scan-intro h1 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 9px; }
.scan-intro p:last-child { color: var(--dim); font-size: .84rem; }
.scan-orbit { position: relative; flex: 0 0 66px; width: 66px; height: 66px; border: 1px solid var(--green-border); border-radius: 50%; background: var(--green-soft); animation: floaty 3s ease-in-out infinite; }
.scan-orbit::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--green); box-shadow: 0 0 24px var(--green-glow); }
.scan-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--them); top: 5px; left: 28px; }
.scan-orbit b { position: absolute; inset: -8px; border: 1px dashed var(--green-border); border-radius: 50%; animation: spin 8s linear infinite; }
@keyframes floaty { 50% { transform: translateY(-4px); } }
.termbar { background: #172554; border-color: #243b77; border-radius: 16px 16px 0 0; padding: 12px 18px; }
.termbar-title { color: #bfdbfe; text-transform: uppercase; font-weight: 700; }
.termbar-status { color: #86efac; }
.termlog { background: #101b38; color: #b9c7e4; border-color: #243b77; border-radius: 0 0 16px 16px; font-family: var(--mono); font-size: 0.86rem; height: 360px; box-shadow: 0 20px 50px rgba(23,37,84,.18); }
.termlog .t { color: #8292b2; }
.termlog .ok { color: #86efac; }
.termlog .warn { color: #fcd34d; }
.termlog .err { color: #fca5a5; }
.termlog .hl { color: #fff; }
.scanstats { gap: 12px; }
.scanstat { background: var(--panel); border-color: var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-xs); }
.scanstat-num { color: var(--text); font-family: var(--mono); font-size: 1.7rem; }
.scanstat-label { color: var(--faint); text-transform: uppercase; font-weight: 700; font-size: 0.75rem; }

/* application reports */
#view-results, #view-history, #view-compare { max-width: 1180px; }
.report-head { padding: 50px 0 28px; align-items: center; }
.report-domain { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--text); letter-spacing: -.055em; }
.report-meta { font-family: var(--mono); font-size: 0.9rem; color: var(--faint); }
.report-actions { gap: 8px; }
.report-tabs { position: sticky; top: 72px; z-index: 30; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--panel) 91%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow-sm); }
.report-tabs::-webkit-scrollbar { display: none; }
.report-tabs a { flex: 0 0 auto; text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--faint); font-size: 0.8rem; font-weight: 700; }
.report-tabs a:hover, .report-tabs a.active { color: var(--green); background: var(--green-soft); }
.report-section-anchor { height: 1px; }
.summary-panel { padding: 34px; margin-bottom: 14px; border-left: 4px solid var(--green); }
.summary-text { font-size: 1.02rem; line-height: 1.75; max-width: 900px; }
.wins { gap: 7px; }
.win-chip { color: #166534; background: #f0fdf4; border-color: #bbf7d0; border-radius: 999px; padding: 5px 10px; font-size: 0.9rem; }
.win-chip::before { color: var(--ok); }
.scores { grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); gap: 14px; margin-bottom: 14px; }
.score-main { min-height: 350px; background: linear-gradient(145deg, #fff, #f8fbff); }
.score-main .panel-label { align-self: stretch; }
.score-side { gap: 14px; }
.score-mini { display: flex; flex-direction: column; justify-content: center; min-height: 168px; }
.score-mini-num { font-family: var(--mono); color: var(--text); font-size: 1.9rem; }
.score-mini-note { font-size: 0.82rem; line-height: 1.6; }
.score-null { border-style: solid; background: #fafbfc; }
.null-val { font-family: var(--font-display); color: var(--faint); font-size: 1.25rem; font-style: normal; }
.gauge-tick { stroke: #cbd5e1; }
.gauge-track { stroke: #e9eef5; }
.gauge-needle-line { stroke: #475467; }
.gauge-hub { fill: var(--panel); }
.gauge-max { fill: #98a2b3; }
.catpanel { margin-bottom: 14px; }
.gauges { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; }
.gauge-item { padding: 15px 10px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.gauge-name { color: var(--text); font-size: 0.84rem; font-weight: 700; }
.gauge-sub { font-family: var(--mono); color: var(--faint); }
.weight-tag { font-family: var(--mono); border-radius: 5px; }
.metric-help { font-size: 0.82rem; color: var(--faint); }

/* visibility is the marquee report card */
#cvs-section { position: relative; overflow: hidden; padding: 34px; border: 1px solid #d8e4fb; background: linear-gradient(145deg, #fff 25%, #f5f8ff); box-shadow: 0 12px 34px rgba(37,99,235,.07); }
#cvs-section::after { content: ""; position: absolute; right: -80px; top: -110px; width: 260px; height: 260px; border-radius: 50%; background: rgba(37,99,235,.07); }
.cvs-head { position: relative; z-index: 2; gap: 24px; }
.cvs-num { font-family: var(--mono); font-size: 4.4rem; letter-spacing: -.08em; }
.cvs-band { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.02em; text-transform: none; }
.cvs-band-note { color: var(--dim); opacity: 1; }
.cvs-pillar { padding: 12px 0; }
.cvs-pillar-label { color: var(--text); }
.cvs-pillar-score { font-family: var(--mono); }
.cvs-bar { height: 7px; background: #e9eef5; }
.cvs-pillar-evidence { color: var(--dim); opacity: 1; }
.conf-chip { display: inline-flex; align-items: center; color: var(--green); background: var(--green-soft); border-color: transparent; border-radius: 999px; font-weight: 700; }

/* all business intelligence cards */
.profile { border-color: #dbe7fb; box-shadow: 0 14px 45px rgba(37,99,235,.08); margin: 14px 0 48px; }
.profile-q { font-family: var(--font-display); font-size: 1.35rem; }
.profile-grid { gap: 10px; }
.profile-item { background: #f8fafc; border-color: var(--line); border-radius: 11px; padding: 14px; }
.profile-item dt { text-transform: uppercase; font-weight: 800; font-size: 0.72rem; }
.profile-item dd { font-size: .82rem; font-weight: 600; }
.profile-evidence summary, .bip-unknowns summary { font-weight: 700; }
.profile-field label { color: var(--text); }
.profile-field input, .profile-field select, .profile-field textarea, .reality-form textarea, .save-label input, .svc-inline-fix input { background: var(--panel); border-color: var(--line); color: var(--text); border-radius: 10px; }
.profile-field input:focus, .profile-field select:focus, .profile-field textarea:focus, .reality-form textarea:focus { box-shadow: 0 0 0 3px var(--green-soft); }
.bip-label { text-transform: uppercase; font-weight: 800; }

.findings-section { padding-top: 18px; scroll-margin-top: 132px; }
.findings-head { margin-bottom: 14px; }
.finding { border-color: var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-xs); }
.finding summary { grid-template-columns: 82px 1fr auto; padding: 17px 18px; }
.finding-title { color: var(--text); font-size: .84rem; }
.sev { border-radius: 7px; font-size: 0.72rem; background: #fff; }
.finding-body { background: #fbfcfe; padding: 20px; }
.finding-evidence { background: #16213f; color: #cbd5e1; border: 0; border-radius: 10px; font-family: var(--mono); }
.finding-fix b { color: var(--green); }

.opps-section, .competitors-section, .reality-section, .alignment-section, .gsc-section { scroll-margin-top: 132px; }
.opps { gap: 12px; }
.opp { background: var(--panel); border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); padding: 20px; }
.opp:hover { border-color: var(--green-border); box-shadow: var(--shadow-sm); }
.opp-cluster { font-family: var(--font-display); font-size: .95rem; }
.opp-decision, .opp-intent, .opp-vol, .opp-rank { border-radius: 999px; }
.dec-keep { background: #f0fdf4; }
.dec-improve { background: #fffbeb; }
.dec-consolidate { background: #fff7ed; }
.dec-create { color: var(--green); border-color: var(--green-border); background: var(--green-soft); }
.competitors { max-width: 100%; }
.competitor { background: var(--panel); border-color: var(--line); border-radius: 12px; padding: 13px 16px; }
.competitor:hover { border-color: var(--green-border); background: #fbfdff; }
.discovery-row { grid-template-columns: 150px 1fr auto auto; }
.disc-type, .lock-chip, .impact, .effort { border-radius: 999px; }

/* conversion panels */
.h2h-cta, .unlock-panel { border: 1px solid #c9d9fb; background: linear-gradient(135deg, #eff6ff, #f5f3ff); box-shadow: 0 18px 50px rgba(37,99,235,.09); border-radius: 20px; }
.h2h-cta { padding: 38px; }
.h2h-cta .section-title { font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
.unlock-price { color: var(--green); font-family: var(--mono); }
.account-cta { border-color: #dbe7fb; background: linear-gradient(135deg, #fff, #f4f7ff); }
.locked-stub { border-radius: 12px; background: #f8fafc; }

/* head to head */
#view-compare .compare-panel { border-color: #dbe7fb; background: linear-gradient(145deg, #fff, #f8fbff); }
.h2h-scores { margin: 30px 0; }
.h2h-domain { color: var(--dim); font-family: var(--mono); }
.h2h-headline { font-family: var(--font-display); font-size: clamp(1.25rem,2vw,1.75rem); line-height: 1.4; }
.h2h-row { border-color: var(--line); }
.h2h-row-you { color: var(--green); font-family: var(--mono); }
.h2h-row-them { color: var(--them); font-family: var(--mono); }
.h2h-columns .panel { min-width: 0; }
.h2h-item-title { color: var(--text); }
.svc-col { border-color: var(--line); background: #fbfcfe; border-radius: 13px; }
.h2hv-bar-them .cvs-bar-fill { filter: none; background: var(--them); }

/* tables, metrics, real data */
.cwv-row, .gbp-theme { border-color: var(--line); }
.cwv-judge, .pstatus { border-radius: 999px; }
.gbp-review { border-color: var(--green-border); background: #f8fbff; border-radius: 0 8px 8px 0; padding: 9px 12px; }
.presence-row { background: var(--panel); border-color: var(--line); border-radius: 10px; }
.complang-card { border-color: var(--line); background: var(--panel); border-radius: 13px; }
.complang-card.own { border-color: var(--green-border); }
.geo-attn { border-radius: 14px; box-shadow: none; }
.limits { background: #fbfcfe; }

/* history */
.history-row { grid-template-columns: 60px 1fr auto; }
.history-row .competitor-rank { font-family: var(--mono); }
.history-new { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.history-link { color: var(--green); letter-spacing: .01em; text-transform: none; }

/* modals */
.modal-backdrop { backdrop-filter: blur(10px); }
.modal { background: var(--panel); border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 34px; }
.modal-title { font-size: 1.65rem; line-height: 1.18; }
.modal-sub { font-size: .82rem; }
.modal input[type="email"], .modal select { background: var(--panel); color: var(--text); border-color: var(--line); border-radius: 10px; }
.checkout-card { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow-lg); }

/* footer */
.footer { max-width: 1320px; padding: 28px 32px; border-color: var(--line); color: var(--faint); font-size: 0.9rem; }
.footer-status { color: var(--ok); text-transform: none; letter-spacing: .02em; }

/* dark theme */
html[data-theme="dark"] {
  --bg: #0d1424;
  --panel: #141d30;
  --overlay: #0f182a;
  --scrim: #030712d9;
  --scrim-light: #0f182a;
  --line: #26334a;
  --line-strong: #42506a;
  --text: #f1f5f9;
  --dim: #b6c0cf;
  --faint: #78869b;
  --text-border: #58677e;
  --hover-wash: #18243a;
  --green: #60a5fa;
  --green-dim: #7db5fa;
  --green-soft: #172c4c;
  --green-border: #315788;
  --green-hover: #93c5fd;
  --on-accent: #081225;
  --them: #a78bfa;
  --them-border: #58428a;
  --them-soft: #261f43;
  --amber-soft: #302510;
  --amber-wash: #251e11;
}
html[data-theme="dark"] body { background: radial-gradient(circle at 78% 1%, rgba(37,99,235,.16), transparent 25rem), radial-gradient(circle at 12% 11%, rgba(124,58,237,.1), transparent 24rem), var(--bg); }
html[data-theme="dark"] .nav-cta { color: #081225; background: #f8fafc; border-color: #f8fafc; }
html[data-theme="dark"] .hero-title { color: #f8fafc; }
html[data-theme="dark"] .prompt-input::placeholder { color: #67758b; }
html[data-theme="dark"] .story-card:not(.story-card-primary), html[data-theme="dark"] .gauge-item, html[data-theme="dark"] .profile-item, html[data-theme="dark"] .finding-body, html[data-theme="dark"] .score-null, html[data-theme="dark"] .competitor:hover, html[data-theme="dark"] .limits, html[data-theme="dark"] .svc-col { background: #111a2c; }
html[data-theme="dark"] .truth-icon.blue { background: #172c4c; }
html[data-theme="dark"] .truth-icon.violet { background: #261f43; }
html[data-theme="dark"] .truth-icon.amber { background: #302510; }
html[data-theme="dark"] .truth-icon.gray { background: #202b3d; }
html[data-theme="dark"] .status-ok { background: #153422; }
html[data-theme="dark"] .status-lock { background: #302510; }
html[data-theme="dark"] .final-cta, html[data-theme="dark"] .h2h-cta, html[data-theme="dark"] .unlock-panel, html[data-theme="dark"] .account-cta { background: linear-gradient(135deg, #142542, #211a3c); border-color: #334b70; }
html[data-theme="dark"] .score-main, html[data-theme="dark"] #cvs-section, html[data-theme="dark"] #view-compare .compare-panel { background: linear-gradient(145deg, #141d30, #111a2c); border-color: #263d62; }
html[data-theme="dark"] .gauge-tick { stroke: #3b4960; }
html[data-theme="dark"] .gauge-track { stroke: #26334a; }
html[data-theme="dark"] .gauge-needle-line { stroke: #b6c0cf; }
html[data-theme="dark"] .preview-window { filter: brightness(.92); }

/* responsive */
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-title { font-size: clamp(3rem, 6vw, 4.8rem); }
  .float-card-left { left: -10px; }
  .float-card-right { right: -8px; }
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 900px) {
  .view { padding: 0 22px; }
  .nav { padding-left: 22px; padding-right: 22px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .prompt { margin-left: auto; margin-right: auto; text-align: left; }
  .hero-trust { justify-content: center; }
  .hero-product { width: min(680px, 100%); margin: 20px auto 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 330px; }
  .insight-card { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .truth-row { grid-template-columns: 38px 150px 1fr; }
  .truth-status { grid-column: 3; text-align: left; justify-self: start; }
  .final-cta { align-items: flex-start; }
  .gauges { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { min-height: 64px; }
  .nav::before { height: 64px; }
  .nav-path, .theme-text, .nav-cta { display: none; }
  .theme-toggle { width: 36px; justify-content: center; padding: 0; }
  .hero { padding: 44px 0 64px; }
  .hero-kicker { font-size: .58rem; }
  .hero-title { font-size: clamp(2.65rem, 13vw, 4rem); }
  .accent-underline { white-space: normal; }
  .prompt { flex-direction: column; align-items: stretch; padding: 7px; }
  .prompt-field { padding-left: 8px; }
  .prompt .btn { width: 100%; }
  .hero-trust { gap: 7px 14px; }
  .preview-window { transform: none; padding: 9px; }
  .float-card { display: none; }
  .preview-channel { grid-template-columns: 90px 1fr 21px; }
  .signal-strip span:nth-child(n+4) { display: none; }
  .section { padding: 72px 0; }
  .section-intro { margin-bottom: 32px; }
  .story-card { padding: 22px; }
  .insight-section { padding-top: 20px; }
  .insight-card { padding: 28px 22px; border-radius: 20px; }
  .comparison-row { grid-template-columns: 82px 1fr 28px 28px; }
  .comparison-heading { padding-left: 90px; }
  .truth-row { grid-template-columns: 32px 1fr; gap: 10px; padding: 16px; }
  .truth-row .truth-cell:nth-child(3), .truth-status { grid-column: 2; }
  .final-cta { flex-direction: column; padding: 28px 24px; margin-bottom: 40px; }
  .report-head { padding-top: 35px; }
  .report-tabs { top: 64px; margin-left: -10px; margin-right: -10px; border-radius: 0; border-left: 0; border-right: 0; }
  .scores { grid-template-columns: 1fr; }
  .score-main { min-height: 300px; }
  .gauges { grid-template-columns: 1fr; }
  .gauge-item .gauge { max-width: 230px; }
  .profile-grid { grid-template-columns: 1fr; }
  .opps { grid-template-columns: 1fr; }
  .scan-intro { align-items: flex-start; }
  .scan-orbit { flex-basis: 48px; width: 48px; height: 48px; }
  .scan-orbit::before { inset: 12px; }
  .scanstats { grid-template-columns: 1fr 1fr; }
  .termlog { height: 310px; }
  .finding summary { grid-template-columns: 72px 1fr; }
  .discovery-row, .serp-row, .competitor { grid-template-columns: 1fr; gap: 6px; }
  .disc-actions { justify-content: flex-start; }
  .footer { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-card, .btn, .scan-orbit, .scan-orbit b { animation: none; transition: none; }
}

/* mobile intrinsic-size safeguards */
.hero-copy, .hero-product, .preview-window, .prompt-field, .insight-copy, .insight-comparison { min-width: 0; }
.preview-context { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.preview-score-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.prompt-input { width: 100%; }
@media (max-width: 680px) {
  .landing-view, .hero, .hero-copy, .hero-product { width: 100%; min-width: 0; }
  .hero-copy { overflow: hidden; }
  .hero-title { width: 100%; overflow-wrap: anywhere; }
  .hero-sub { max-width: 100%; }
  .hero-product { overflow: hidden; }
  .preview-window { width: 100%; max-width: 100%; }
  .preview-context strong { font-size: 0.78rem; }
  .preview-label { font-size: .44rem; }
  .preview-score-row { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); }
  .preview-score-card { padding: 11px; min-width: 0; }
  .preview-score-main strong { font-size: 2rem; }
  .leader-ring { width: 62px; height: 62px; border-width: 7px; }
  .preview-channel-card { overflow: hidden; }
  .hero-trust { white-space: normal; }
}

/* accessibility raise: competitor evidence lines read at body-comfortable size */
.disc-why { font-size: 0.9rem; }

/* visibility duel: purpose + why-no-score explanations */
.h2hv-purpose { color: var(--dim); font-size: 15px; max-width: 78ch; margin: 0 0 14px; }
.h2hv-null-note {
  font-size: 15px; line-height: 1.65; max-width: 82ch;
  background: #f3f7ff; border: 1px solid #dbe6fb; border-left: 3px solid #2563eb;
  border-radius: 10px; padding: 12px 16px; margin: 0 0 16px;
}
html[data-theme="dark"] .h2hv-null-note { background: #131f36; border-color: #24365c; border-left-color: #60a5fa; }

/* "The honest picture" is the product's signature moment — the paragraph
   that says what other tools won't. It gets a frame worthy of that. */
#h2h-scale-panel {
  border: 1px solid #c7d7f9;
  border-left: 4px solid #2563eb;
  background: linear-gradient(135deg, #f2f7ff 0%, #ffffff 55%);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.10);
}
#h2h-scale-panel .panel-label { color: #1d4ed8; }
#h2h-scale-panel .h2h-para { color: var(--text); font-size: 16.5px; line-height: 1.75; }
html[data-theme="dark"] #h2h-scale-panel {
  border-color: #2c4370; border-left-color: #60a5fa;
  background: linear-gradient(135deg, #14203a 0%, #101a2e 55%);
  box-shadow: none;
}
html[data-theme="dark"] #h2h-scale-panel .panel-label { color: #93c5fd; }

/* junk referrers: visibly discounted, not hidden */
.ref-junk .competitor-domain { opacity: 0.55; text-decoration: line-through; text-decoration-thickness: 1px; }
.ref-quality-chip { font-size: 0.85rem; color: #b45309; background: #fef6e7; border: 1px solid #f3d9a4; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
html[data-theme="dark"] .ref-quality-chip { color: #fbbf24; background: #2a2010; border-color: #5c4716; }

/* the why-is-my-score-capped explainer: sits right under the verdict */
.gate-note {
  font-size: 15px; line-height: 1.6; max-width: 60ch; margin: 10px auto 0;
  background: #fef6e7; border: 1px solid #f3d9a4; border-left: 3px solid #d97706;
  border-radius: 10px; padding: 10px 14px; text-align: left;
}
html[data-theme="dark"] .gate-note { background: #2a2010; border-color: #5c4716; border-left-color: #fbbf24; }

/* junk summary: its own class — the old one borrowed a negative top margin
   and climbed over the last row */
.ref-junk-summary { color: var(--faint); font-size: 0.92rem; line-height: 1.6; margin: 14px 2px 0; max-width: 90ch; }
.ref-flag-btn { white-space: nowrap; }
.ref-chip-ok { color: #15803d; background: #eefbf2; border-color: #bbe7c8; }
html[data-theme="dark"] .ref-chip-ok { color: #4ade80; background: #10261a; border-color: #1f5232; }

/* backlink rows: real slots for chip + flag button, no overlap */
.backlink-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.backlink-row .ref-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.backlink-row .ref-quality-chip { margin-left: auto; }
.backlink-row .ref-flag-btn { flex-shrink: 0; }
.backlink-row .ref-main + .ref-flag-btn { margin-left: auto; } /* clean rows: button hugs the right */

/* who's-paying rows: the advertiser's domain is the identity — make it pop */
#ads-list .disc-name { color: #1d4ed8; font-weight: 700; font-size: 1rem; }
html[data-theme="dark"] #ads-list .disc-name { color: #93c5fd; }

.cwv-purpose { color: var(--dim); font-size: 15px; line-height: 1.65; max-width: 80ch; margin: 0 0 16px; }

/* the guided layer: every section opens with what it IS and why it matters */
.section-purpose {
  font-size: 15px;
  line-height: 1.65;
  color: #24324a;
  max-width: 86ch;
  background: #eef4fe;
  border: 1px solid #d7e4fb;
  border-left: 3px solid #2563eb;
  border-radius: 10px;
  padding: 11px 16px;
  margin: 10px 0 18px;
}
html[data-theme="dark"] .section-purpose { color: #c9d6ec; background: #131f36; border-color: #24365c; border-left-color: #60a5fa; }

/* take-away cards + growth section */
.takeaway-grid { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.takeaway-card { flex: 1; min-width: 280px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fbfcff; display: flex; flex-direction: column; gap: 8px; }
.takeaway-card h3 { font-size: 1.05rem; margin: 0; }
.takeaway-card p { color: var(--dim); font-size: 0.95rem; flex: 1; }
.takeaway-card .btn { align-self: flex-start; }
html[data-theme="dark"] .takeaway-card { background: #111a2c; }
.growth-priority { font-size: 1.02rem; background: #eefbf2; border: 1px solid #bbe7c8; border-left: 3px solid #15803d; border-radius: 10px; padding: 11px 16px; margin: 4px 0 14px; }
html[data-theme="dark"] .growth-priority { background: #10261a; border-color: #1f5232; border-left-color: #4ade80; }
.growth-item { padding: 12px 0; border-top: 1px solid var(--line); }
.growth-item-title { font-size: 1rem; margin: 0 0 4px; }
.growth-item-body { color: var(--dim); font-size: 0.98rem; line-height: 1.7; margin: 0; max-width: 90ch; }
.btn-locked { opacity: 0.6; cursor: pointer; }

/* take-action: blue heading like the eyebrows, and breathing room before
   the next section */
#take-action-section { margin: 56px 0; }
#take-action-section .takeaway-card { background: #fff; }
html[data-theme="dark"] #take-action-section .takeaway-card { background: #111a2c; }

.opp-mention-note { font-size: 0.9rem; line-height: 1.6; color: #24324a; background: #eef4fe; border-left: 3px solid #2563eb; border-radius: 8px; padding: 9px 12px; margin-top: 10px; }
html[data-theme="dark"] .opp-mention-note { color: #c9d6ec; background: #131f36; border-left-color: #60a5fa; }

#growth-section { margin: 56px 0; }
#growth-section .growth-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 12px; }
html[data-theme="dark"] #growth-section .growth-item { background: #111a2c; }

.playbook-head { font-size: 1.05rem; margin: 26px 0 4px; padding-top: 18px; border-top: 2px solid var(--line); }

/* ============ UPTICKIQ BRAND ============ */
.brand-logo { height: 30px; width: auto; display: block; }
[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
.brand-q { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }

/* ============ STATIC MARKETING PAGES (pricing, about, help…) ============ */
.static-page { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.static-page h1 { font-family: var(--font-display); font-size: 2.3rem; letter-spacing: -.02em; margin: 10px 0 6px; }
.static-page .page-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #2563eb; }
.static-page .page-lede { font-size: 1.12rem; color: var(--dim); margin: 0 0 34px; line-height: 1.6; }
.static-page h2 { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.01em; color: #2563eb; margin: 40px 0 10px; }
.static-page h3 { font-size: 1.08rem; margin: 24px 0 6px; }
.static-page p, .static-page li { font-size: 1.02rem; line-height: 1.7; color: var(--text); }
.static-page p { margin: 12px 0; }
.static-page ul, .static-page ol { margin: 12px 0 12px 24px; }
.static-page li { margin: 8px 0; }
.static-page a { color: #2563eb; }
.static-page .price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 26px 0; }
.static-page .price-card { border: 1px solid var(--line, #e3e7f0); border-radius: 14px; padding: 22px; background: var(--panel, #fff); }
.static-page .price-card h3 { margin: 0 0 4px; }
.static-page .price-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.static-page .price-num small { font-size: .9rem; font-weight: 600; color: var(--faint); }
.static-page .price-soon { opacity: .65; }
.static-page .soon-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #eef2ff; color: #4f46e5; border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 2px; }
.static-page .page-cta { display: inline-block; background: #0f172a; color: #fff; border-radius: 10px; padding: 13px 22px; font-weight: 700; text-decoration: none; margin-top: 10px; }
[data-theme="dark"] .static-page .page-cta { background: #2563eb; }
