/* ============================================================
   VertBull — Trade Autopsy · styles (5-stage layout)
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }

:root {
  --bg:#08090B; --panel:#0E1114; --panel2:#12161A; --ink:#E9EDEF; --muted:#6B7378;
  --line:rgba(255,255,255,0.09); --pos:#00FFAB; --neg:#FF3B5C; --warn:#FFB020; --brand:#00FFAB; --on-brand:#04150f;
}
[data-theme="light"] {
  --bg:#F3F3EF; --panel:#FFFFFF; --panel2:#FAFAF7; --ink:#15181B; --muted:#7C8388;
  --line:rgba(0,0,0,0.11); --pos:#00A86B; --neg:#E0394F; --warn:#C77800; --brand:#00C988; --on-brand:#04150f;
}

body {
  min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1;
}
.mono { font-family: 'IBM Plex Mono', monospace; }
::selection { background: var(--brand); color: var(--on-brand); }
input::placeholder { color: var(--muted); }
@keyframes taPulse { 0%,100%{opacity:.55} 50%{opacity:1} }
.wrap { max-width: 1180px; margin: 0 auto; }
[hidden] { display: none !important; }

.is-pos { color: var(--pos); } .is-neg { color: var(--neg); } .is-ink { color: var(--ink); } .is-warn { color: var(--warn); }
.hr { flex: 1; height: 1px; background: var(--line); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 20px; padding: 13px 28px; }
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.powered { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.powered strong { color: var(--ink); font-weight: 700; }
.powered:hover strong { color: var(--brand); }

/* loading overlay */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity .28s ease; }
.loader.is-hiding { opacity: 0; pointer-events: none; }
.loader__box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader__spin { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: taSpin .8s linear infinite; }
@keyframes taSpin { to { transform: rotate(360deg); } }
.loader__text { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.loader__sub { font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted); }
.brand__logo { height: 26px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; letter-spacing: -0.01em; font-size: 16px; }
.brand__sub { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.22em; color: var(--muted); margin-top: 3px; }
.spacer { flex: 1; }

.seg-group { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.04em; }
.seg { background: transparent; color: var(--muted); border: none; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: inherit; font-size: inherit; letter-spacing: inherit; }
.seg:hover { color: var(--ink); }
.seg.is-active { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.seg--icon { display: flex; align-items: center; justify-content: center; padding: 7px 12px; }
.seg--icon svg { display: block; }

/* ---------- Stage stepper ---------- */
.stepper { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.stepper__inner { display: flex; align-items: stretch; overflow-x: auto; padding: 0 28px; }
.step { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 13px 20px 12px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; white-space: nowrap; font-family: Archivo, sans-serif; }
.step__num { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; opacity: .7; }
.step__label { font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; }
.step.is-active { color: var(--ink); border-bottom-color: var(--brand); }
.step:hover { color: var(--ink); }

/* ---------- Shared section heading ---------- */
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.22em; color: var(--brand); display: flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: taPulse 1.6s infinite; }
.rule-row { display: flex; align-items: baseline; gap: 14px; }
.kicker { font-size: 13px; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.16em; color: var(--muted); margin: 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 18px; }
.sec-head__no { color: var(--brand); }
.sec-head--wrap { flex-wrap: wrap; margin-bottom: 24px; }

/* ============ INTAKE ============ */
.intake { padding: 7vh 28px 12vh; }
.intake__eyebrow { margin-bottom: 30px; }
.intake__title { font-size: clamp(38px,6vw,72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; max-width: 14ch; margin: 0 0 24px; }
.intake__lead { font-size: clamp(16px,1.6vw,20px); line-height: 1.5; color: var(--muted); max-width: 54ch; margin: 0 0 44px; }
.intake__lead em { color: var(--ink); font-style: normal; }
.intake__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
@property --dzang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.dropzone { position: relative; border: 1.5px dashed var(--line); border-radius: 6px; background: var(--panel); padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 18px; cursor: pointer; min-height: 240px; transition: border-color .18s ease, box-shadow .24s ease, transform .18s ease, background .18s ease; }
/* animated "answering" border — a brand-coloured arc sweeps the frame */
.dropzone::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--dzang), transparent 0 60%, var(--brand) 80%, color-mix(in srgb, var(--brand) 40%, #fff) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.dropzone:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 12px 36px -20px color-mix(in srgb, var(--brand) 70%, transparent); }
.dropzone:hover::before { opacity: .45; animation: dzSpin 3.4s linear infinite; }
.dropzone.is-armed { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 34px -14px color-mix(in srgb, var(--brand) 60%, transparent); }
.dropzone.is-armed::before { opacity: .55; animation: dzSpin 3s linear infinite; }
.dropzone.is-drag { border-style: solid; border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--panel)); transform: translateY(-2px); animation: dzPulse 1.4s ease-in-out infinite; }
.dropzone.is-drag::before { opacity: 1; animation: dzSpin 1.9s linear infinite; }
@keyframes dzSpin { to { --dzang: 360deg; } }
@keyframes dzPulse {
  0%,100% { box-shadow: 0 0 0 1px var(--brand), 0 0 36px -12px color-mix(in srgb, var(--brand) 60%, transparent); }
  50%     { box-shadow: 0 0 0 1px var(--brand), 0 0 62px -6px color-mix(in srgb, var(--brand) 90%, transparent); }
}
.dropzone__head { display: flex; align-items: center; gap: 14px; }
.dropzone__icon { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 18px; color: var(--brand); flex: none; transition: color .18s, border-color .18s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.dropzone.is-drag [data-dz-icon] { border-color: var(--brand); transform: translateY(3px) scale(1.08); }
.dropzone__copy { min-width: 0; }
.dropzone__titles { display: grid; }
.dropzone__titles > * { grid-area: 1 / 1; transition: opacity .22s ease, transform .22s ease; }
.dropzone__title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.dropzone__title .file { font-family: 'IBM Plex Mono', monospace; }
.dropzone__title--drag { opacity: 0; transform: translateY(8px); color: var(--brand); }
.dropzone__title--drag span { font-family: 'IBM Plex Mono', monospace; }
.dropzone.is-drag [data-dz-idle] { opacity: 0; transform: translateY(-8px); }
.dropzone.is-drag [data-dz-drag] { opacity: 1; transform: none; }
.dropzone__hint { font-size: 13px; color: var(--muted); margin-top: 3px; font-family: 'IBM Plex Mono', monospace; transition: opacity .22s ease; }
.dropzone.is-drag .dropzone__hint { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .dropzone, .dropzone::before, .dropzone__icon, .dropzone__titles > * { animation: none !important; transition: none !important; } }
.dropzone__divider { height: 1px; background: var(--line); }
.dropzone__cols { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.intake__side { display: flex; flex-direction: column; gap: 16px; }
.demo-btn { flex: 1; background: var(--brand); color: var(--on-brand); border: none; border-radius: 6px; padding: 28px; font-family: Archivo, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.demo-btn:hover { filter: brightness(1.06); }
.demo-btn__label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.18em; opacity: .65; }
.demo-btn__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.demo-btn__cta span { font-size: 24px; }
.privacy { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 20px 22px; display: flex; gap: 13px; align-items: flex-start; }
.privacy__icon { color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 15px; margin-top: 1px; }
.privacy__text { font-size: 13px; line-height: 1.55; color: var(--muted); }
.privacy__text strong { color: var(--ink); font-weight: 700; }

/* archetype gallery (primary, no-export path) */
.gallery-block { margin-bottom: 40px; }
.gallery-block__head, .import-block__head { margin-bottom: 18px; }
.gallery-block__note, .import-block__note { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.arche { position: relative; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 16px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 7px; min-height: 158px; transition: border-color .15s, transform .15s, background .15s; }
.arche:hover { border-color: var(--brand); transform: translateY(-2px); background: var(--panel2); }
.arche:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.arche__tag { font-size: 10px; letter-spacing: 0.12em; font-weight: 600; }
.arche__name { font-family: Archivo, sans-serif; font-weight: 800; font-size: 16px; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.arche__line { font-size: 12px; line-height: 1.45; color: var(--muted); flex: 1; }
.arche__go { font-size: 11px; letter-spacing: 0.04em; color: var(--brand); display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.arche:hover .arche__go { opacity: 1; transform: none; }
.import-block { border-top: 1px solid var(--line); padding-top: 36px; }

@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } .arche { min-height: 142px; } }
@media (max-width: 440px) { .gallery { grid-template-columns: 1fr; } .arche { min-height: 0; } .arche__go { opacity: 1; transform: none; } }

/* mapper */
.mapper { margin-top: 40px; }
.mapper__file { font-size: 11px; color: var(--muted); }
.mapper__lead { font-size: 15px; color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.mapper__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 20px; margin-bottom: 28px; }
.mapfield { display: flex; flex-direction: column; gap: 7px; }
.mapfield__label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.mapfield__req { color: var(--neg); }
.mapfield__auto { margin-left: auto; color: var(--brand); font-size: 10px; letter-spacing: 0.08em; }
.mapfield select { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 13px; outline: none; cursor: pointer; width: 100%; }
.mapfield select:focus { border-color: var(--brand); }
.mapfield.is-missing select { border-color: var(--neg); }
.mapper__preview-wrap { margin-bottom: 24px; }
.mapper__preview-label { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.mapper__preview { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.mapper__preview table { width: 100%; border-collapse: collapse; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; }
.mapper__preview th, .mapper__preview td { text-align: left; padding: 8px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); color: var(--muted); }
.mapper__preview th { color: var(--ink); background: var(--panel2); }
.mapper__error { color: var(--neg); font-size: 12.5px; margin-bottom: 16px; border: 1px solid var(--neg); border-radius: 6px; padding: 12px 14px; background: color-mix(in srgb, var(--neg) 8%, transparent); }
.mapper__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ REPORT ============ */
.report { padding: 0 28px 120px; }
.stage { padding: 56px 0 0; }
.stage__verdict { font-size: clamp(28px,3.6vw,46px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 16px; max-width: 20ch; }
.stage__narrative { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 36px; max-width: 62ch; }
.stage__narrative b, .stage__narrative strong { color: var(--ink); font-weight: 600; }
.stage__title { font-size: clamp(24px,3vw,38px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 8px; max-width: 24ch; }
.stage__lead { font-size: 15.5px; color: var(--muted); margin: 0 0 30px; max-width: 56ch; }
.viroan-elig { margin: 0 0 38px; padding: 16px 20px; border-left: 3px solid var(--muted); background: var(--panel); border-radius: 0 8px 8px 0; max-width: 66ch; }
.viroan-elig__label { font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted); display: block; margin-bottom: 8px; }
.viroan-elig__text { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0; }
.viroan-elig__text strong { font-weight: 700; }

/* hero metrics */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.metric { background: var(--panel); padding: 26px 24px; }
.metric__label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.metric__value { font-family: 'IBM Plex Mono', monospace; font-size: clamp(30px,3.4vw,42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.metric__note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.metrics--top { border-radius: 8px 8px 0 0; }

/* secondary stats */
.substats { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; }
.substat { background: var(--panel); padding: 20px 22px; }
.substat__label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 9px; }
.substat__value { font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }

/* tape / chart */
.tape { margin-top: 40px; }
.chart-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 16px 16px 8px; }
.chart-legend { display: flex; gap: 22px; flex-wrap: wrap; padding: 6px 8px 16px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); align-items: center; }
.tape__title { font-weight: 600; color: var(--ink); }
.chart-legend .push { margin-left: auto; }
.chart-host { width: 100%; height: 420px; }

/* findings */
.findings { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.finding { background: var(--panel); padding: 28px; display: flex; flex-direction: column; border-left: 3px solid var(--muted); }
.finding__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.finding__tag { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; border: 1px solid currentColor; border-radius: 3px; padding: 3px 7px; }
.finding__name { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.finding__big { font-family: 'IBM Plex Mono', monospace; font-size: clamp(34px,4vw,52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.finding__line { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }
.findings__more { display: flex; justify-content: center; margin-top: 16px; }
.findings__more button { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: transparent; cursor: pointer; }
.findings__more button:hover { color: var(--ink); border-color: var(--ink); }

/* fixes */
.fixes { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fix { background: var(--panel); padding: 26px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.fix__n { font-family: 'IBM Plex Mono', monospace; font-size: 28px; font-weight: 600; color: var(--muted); letter-spacing: -0.02em; }
.fix__title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.fix__line { font-size: 14px; color: var(--muted); line-height: 1.5; }
.fix__from { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); margin-top: 10px; }
.fix__rule { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); border-radius: 5px; padding: 9px 14px; white-space: nowrap; }

/* with viroan */
.viroan { border: 1px solid var(--brand); border-radius: 10px; background: var(--panel); overflow: hidden; }
.viroan__head { padding: 34px 36px 0; }
.ruleset { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ruleset span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink); background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; }
.ruleset span .k { color: var(--muted); }
.viroan__compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 36px 36px 8px; }
.viroan__cell { text-align: center; }
.viroan__cell-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 12px; }
.viroan__cell-value { font-family: 'IBM Plex Mono', monospace; font-size: clamp(34px,5vw,58px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.viroan__arrow { font-size: 34px; color: var(--brand); font-family: 'IBM Plex Mono', monospace; }
.viroan__control { padding: 18px 36px 8px; }
.viroan__control-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 16px; }
.viroan__control-top .label { font-size: 14px; color: var(--muted); }
.viroan__cap { font-size: 22px; font-weight: 600; color: var(--brand); }
.viroan__range { width: 100%; accent-color: var(--brand); height: 6px; cursor: pointer; }
.viroan__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }
.engine-log { margin: 24px 36px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }
.engine-log__cell { padding: 22px 4px; text-align: center; border-right: 1px solid var(--line); }
.engine-log__cell:last-child { border-right: none; }
.engine-log__n { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; }
.engine-log__label { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.viroan__foot { padding: 24px 36px 30px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
.viroan__foot p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; flex: 1; min-width: 260px; }
.viroan__foot p strong { color: var(--ink); font-weight: 600; }

/* buttons */
.btn-primary { background: var(--brand); color: var(--on-brand); border: none; border-radius: 6px; padding: 15px 20px; font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 15px 20px; font-family: Archivo, sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn-ghost:hover { border-color: var(--ink); }

/* share cards */
.share__body { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.card { aspect-ratio: 1.6/1; border-radius: 12px; padding: 36px 40px; display: flex; flex-direction: column; font-family: Archivo, sans-serif; }
.card--slab { background: linear-gradient(150deg,#0c1014,#05070a); border: 1px solid rgba(0,255,171,0.25); color:#E9EDEF; box-shadow: 0 30px 80px -40px rgba(0,255,171,0.3); }
.card--slab .card__top { display: flex; align-items: center; gap: 9px; }
.card--slab .card__top img { height: 20px; }
.card--slab .card__top .name { font-weight: 800; }
.card--slab .card__top .tag { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.18em; color:#6B7378; margin-left: auto; }
.card--slab .card__mid { margin: auto 0; }
.card--slab .card__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.16em; color:#6B7378; }
.card--slab .card__big { font-family: 'IBM Plex Mono', monospace; font-size: 64px; font-weight: 600; letter-spacing: -0.03em; color:#FF3B5C; line-height: 1; margin-top: 8px; }
.card--slab .card__sub { font-size: 17px; color:#9aa3a8; margin-top: 8px; max-width: 30ch; }
.card--slab .card__sub .accent { color:#00FFAB; }
.card--slab .card__foot { display: flex; gap: 26px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color:#6B7378; }
.card--slab .card__foot .v { color:#E9EDEF; } .card--slab .card__foot .vn { color:#FF3B5C; }
.card--ticker { background:#00FFAB; color:#04150f; box-shadow: 0 30px 80px -40px rgba(0,255,171,0.5); }
.card--ticker .card__top { display: flex; align-items: center; gap: 9px; }
.card--ticker .card__top img { height: 20px; } .card--ticker .card__top .name { font-weight: 800; }
.card--ticker .card__top .tag { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.18em; opacity: .6; margin-left: auto; }
.card--ticker .card__mid { margin: auto 0; }
.card--ticker .card__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.16em; opacity: .6; }
.card--ticker .card__row { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; font-family: 'IBM Plex Mono', monospace; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.card--ticker .card__row .was { font-size: 38px; text-decoration: line-through; opacity: .45; }
.card--ticker .card__row .arr { font-size: 30px; } .card--ticker .card__row .now { font-size: 56px; }
.card--ticker .card__sub { font-size: 16px; margin-top: 12px; max-width: 32ch; font-weight: 500; }
.card--ticker .card__foot { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; }
.card--slip { background:#FBFBF8; color:#15181B; font-family: 'IBM Plex Mono', monospace; border: 1px solid rgba(0,0,0,0.1); padding: 34px 38px; box-shadow: 0 30px 80px -45px rgba(0,0,0,0.4); }
.card--slip .card__top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed rgba(0,0,0,0.25); padding-bottom: 12px; }
.card--slip .card__top .brand-line { display: flex; align-items: center; gap: 8px; }
.card--slip .card__top img { height: 16px; }
.card--slip .card__top .name { font-weight: 600; font-family: Archivo, sans-serif; }
.card--slip .card__top .no { font-size: 10px; letter-spacing: 0.12em; color:#7C8388; }
.card--slip .card__rows { display: flex; flex-direction: column; gap: 7px; font-size: 13px; margin: 16px 0 auto; }
.card--slip .card__rows > div { display: flex; justify-content: space-between; }
.card--slip .card__rows .k { color:#7C8388; } .card--slip .card__rows .vn { color:#E0394F; font-weight: 600; }
.card--slip .card__rows .total { border-top: 1px solid rgba(0,0,0,0.12); padding-top: 7px; margin-top: 3px; }
.card--slip .card__rows .total .k { font-weight: 600; font-family: Archivo, sans-serif; color:#15181B; }
.card--slip .card__rows .total .vp { color:#00A86B; font-weight: 600; font-size: 16px; }
.card--slip .card__foot { font-size: 10px; color:#7C8388; letter-spacing: 0.04em; }
/* explicit card text colors (no inheritance → never affected by theme) */
.card--slab .card__top .name { color: #E9EDEF; }
.card--ticker .card__top .name, .card--ticker .card__row, .card--ticker .card__sub, .card--ticker .card__eyebrow, .card--ticker .card__foot { color: #04150f; }
.card--slip .card__rows > div, .card--slip .card__top .name { color: #15181B; }
/* keep cards clearly separated from a light page background */
[data-theme="light"] .card--slip { border-color: rgba(0,0,0,0.22); box-shadow: 0 20px 55px -32px rgba(0,0,0,0.4); }
[data-theme="light"] .card--slab { box-shadow: 0 26px 70px -38px rgba(0,0,0,0.5); }

.share__actions { display: flex; flex-direction: column; gap: 12px; min-width: 190px; }
.share__note { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; font-family: 'IBM Plex Mono', monospace; }

/* waitlist */
.waitlist { margin-top: 80px; border-top: 1px solid var(--line); padding-top: 64px; }
.waitlist__inner { max-width: 680px; }
.waitlist__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.2em; color: var(--brand); margin-bottom: 18px; }
.waitlist__title { font-size: clamp(28px,4vw,52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; }
.waitlist__lead { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 0 34px; max-width: 54ch; }
.waitlist__lead strong { color: var(--ink); font-weight: 700; }
.waitlist__form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist__input { flex: 1; min-width: 240px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 15px; outline: none; }
.waitlist__input--name { flex: 0 1 200px; min-width: 150px; }
.waitlist__input:focus { border-color: var(--brand); }
.waitlist__submit { background: var(--brand); color: var(--on-brand); border: none; border-radius: 6px; padding: 16px 28px; font-family: Archivo, sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; white-space: nowrap; }
.waitlist__submit:hover { filter: brightness(1.06); }
.waitlist__submit:disabled { opacity: .5; cursor: default; }
.waitlist__fineprint { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; font-family: 'IBM Plex Mono', monospace; }
.waitlist__error { color: var(--neg); }
.waitlist__success { border: 1px solid var(--brand); border-radius: 8px; background: var(--panel); padding: 24px 26px; display: flex; align-items: center; gap: 16px; }
.waitlist__check { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.waitlist__success-title { font-weight: 700; font-size: 17px; }
.waitlist__success-sub { font-size: 14px; color: var(--muted); margin-top: 2px; font-family: 'IBM Plex Mono', monospace; }

/* legal foot */
.foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot__about { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; max-width: 70ch; }
.foot__about strong { color: var(--ink); font-weight: 700; }
.foot__about a, .foot__links a { color: var(--brand); text-decoration: none; }
.foot__about a:hover, .foot__links a:hover { text-decoration: underline; }
.foot__links { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.foot__links img { height: 16px; opacity: .8; }
.foot__links .push { margin-left: auto; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2,1fr); }
  .substats { grid-template-columns: repeat(2,1fr); }
  .findings { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar__inner { padding: 12px 18px; gap: 12px; flex-wrap: wrap; }
  .intake { padding: 5vh 18px 9vh; }
  .report { padding: 0 18px 90px; }
  .intake__grid { grid-template-columns: 1fr; }
  .metrics, .substats { grid-template-columns: 1fr; }
  .mapper__grid { grid-template-columns: 1fr; }
  .fix { grid-template-columns: 1fr; gap: 10px; }
  .fix__n { display: none; }
  .viroan__compare { grid-template-columns: 1fr; gap: 22px; }
  .viroan__arrow { transform: rotate(90deg); }
  .viroan__head, .viroan__compare, .viroan__control { padding-left: 22px; padding-right: 22px; }
  .engine-log { margin-left: 22px; margin-right: 22px; grid-template-columns: 1fr; }
  .engine-log__cell { border-right: none; border-bottom: 1px solid var(--line); }
  .engine-log__cell:last-child { border-bottom: none; }
  .viroan__foot { padding: 22px; }
  .share__body { grid-template-columns: 1fr; }
  .share__actions { flex-direction: row; min-width: 0; flex-wrap: wrap; }
  .share__actions .btn-primary, .share__actions .btn-ghost { flex: 1; }
  .share__note { flex-basis: 100%; }
  .card { padding: 26px; }
  .chart-host { height: 340px; }
}
@media (max-width: 460px) {
  .brand__sub { display: none; }
  .card--slab .card__big { font-size: 46px; }
  .card--ticker .card__row .now { font-size: 42px; }
}
