/* ============================================================
   NeroView — base styles, theme variables, primitives
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--fg);
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* ============================================================
   THEME — Boardroom (single committed mode)
   ============================================================ */

:root {
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;

  /* density */
  --section-py: 120px;
  --container-px: 48px;

  --container-max: 1320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* surfaces */
  --bg: #F5F4F0;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #ECEBE6;
  --bg-inverse: #13151A;

  /* text */
  --fg: #13151A;
  --fg-muted: #5A5E66;
  --fg-dim: #7A7E86;
  --fg-inverse: #F5F4F0;

  /* strokes */
  --border: #D8D8D3;
  --border-strong: #13151A;

  /* signal */
  --accent: #1F3BCC;
  --accent-2: #4A63E0;
  --accent-ink: #F5F4F0;
  --alert: #B0392C;

  --scrim: rgba(0,0,0,0.03);
  --waveform: rgba(19,21,26,0.10);
}

/* Small-mobile container padding override */
@media (max-width: 500px) {
  :root { --container-px: 20px; }
}

[data-density="compact"] {
  --section-py: 80px;
  --container-px: 32px;
}

/* Ink band — the page's one dark section (Dashboard vs. Decision) */
.section--ink {
  --bg: #13151A;
  --bg-elev: #1B1E26;
  --bg-elev-2: #232732;
  --fg: #F5F4F0;
  --fg-muted: #9A9EA6;
  --fg-dim: #8A8E96;
  --border: #2A2E38;
  --border-strong: #F5F4F0;
  --accent-2: #9DB0FF;
  --scrim: rgba(255,255,255,0.04);
  --waveform: rgba(255,255,255,0.10);
  background: var(--bg);
  color: var(--fg);
}

/* ============================================================
   LAYOUT primitives
   ============================================================ */

.app {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  transition: background-color 240ms ease, color 240ms ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  position: relative;
}

.section {
  padding: var(--section-py) 0;
  background: var(--bg);
  color: var(--fg);
  position: relative;
}

.section--tight { padding: calc(var(--section-py) * 0.55) 0; }

/* eyebrow label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* large display heading — Boardroom declarative */
.display {
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
  margin: 0;
}
.display-xl { font-size: clamp(40px, 4.6vw, 68px); }
.display-lg { font-size: clamp(36px, 4.2vw, 56px); }
.display-md { font-size: clamp(28px, 3vw, 44px); }

.body-lg {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 56ch;
}

.mono { font-family: var(--mono); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  padding: 0 var(--container-px);
  max-width: var(--container-max);
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.nav__logo-mark {
  width: 22px; height: 22px;
  background: var(--accent);
  position: relative;
  border-radius: 3px;
}
.nav__logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 50%;
}
.nav__logo-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.nav__links {
  display: flex; gap: 22px;
  margin-left: 16px;
  flex: 1;
  flex-wrap: nowrap;
}
.nav__link {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__link:hover { color: var(--fg); }

/* Mobile hamburger + dropdown menu */
.nav__burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  flex: none;
}
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: flex; flex-direction: column;
  padding: 8px var(--container-px) 20px;
  max-width: var(--container-max); margin: 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__mobile .nav__link { padding: 13px 2px; font-size: 16px; border-bottom: 1px solid var(--border); }
.nav__mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.nav__mobile-cta .btn { width: 100%; justify-content: center; padding: 12px; }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Responsive nav rules come AFTER the base .nav__links / .nav__cta defs so they win. */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 120ms ease, background-color 160ms, color 160ms, border-color 160ms;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-2); }

.btn--inverse {
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
}
.btn--inverse:hover { background: var(--fg-muted); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--scrim); }

.btn--lg { padding: 14px 22px; font-size: 15px; }

.btn-arrow {
  display: inline-block;
  transition: transform 140ms ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   HERO — Split Assembly
   ============================================================ */

.hero { padding: calc(var(--section-py) * 0.9) 0 var(--section-py); position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.hero__sub { font-size: 19px; line-height: 1.5; color: var(--fg-muted); max-width: 44ch; margin: 24px 0 0; }
.hero__ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero__trustline {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--fg-dim); display: flex; align-items: center; gap: 8px;
  margin-top: 40px; white-space: nowrap;
}
.hero__trustline-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__badges { display: flex; gap: 8px; margin-top: 18px; }

.hero__copy, .hero__visual { min-width: 0; }
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__trustline { white-space: normal; }
}

/* --- App sim window --- */
.appsim {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 6px 6px 0 var(--accent);
  overflow: hidden;
}
.appsim__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.appsim__chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: block; }
.appsim__url { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appsim__live { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--accent); margin-left: auto; white-space: nowrap; }

.appsim__body { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.appsim__panel { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; min-width: 0; }

.appsim__video { background: var(--bg-inverse); border-color: var(--bg-inverse); position: relative; min-height: 110px; display: flex; align-items: flex-end; }
.appsim__rec {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 9px; color: #fff;
  background: var(--alert); padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.appsim__pid { position: absolute; bottom: 10px; right: 10px; font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.6); }
/* Image sits BEHIND the chrome. NOTE: .appsim__rec / .appsim__pid are already
   position:absolute above — only add z-index, never position:relative. */
.appsim__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.appsim__video .appsim__wave { position: relative; z-index: 1; }
.appsim__video .appsim__rec, .appsim__video .appsim__pid { z-index: 2; }
.appsim__sim-disclosure {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em;
  color: #fff; background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 3px;
  max-width: 80%;
}
.appsim__wave { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.appsim__wave i { width: 4px; height: 30%; background: rgba(255,255,255,0.35); border-radius: 1px; }
.appsim__wave.is-live i { animation: appsim-pulse 900ms ease-in-out infinite alternate; }
@keyframes appsim-pulse { from { height: 20%; } to { height: 95%; } }

.appsim__panel-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--fg-dim); white-space: nowrap; }
.appsim__quote { font-size: 13px; line-height: 1.5; margin: 8px 0 0; color: var(--fg-muted); opacity: 0; transform: translateY(4px); transition: opacity 600ms ease, transform 600ms ease; }
.appsim__transcript.is-typed .appsim__quote { opacity: 1; transform: none; }
.appsim__hot { background: rgba(31,59,204,0.12); color: var(--fg); border-bottom: 2px solid var(--accent); padding: 0 1px; }

.appsim__timeline { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.appsim__bars { display: flex; align-items: flex-end; gap: 3px; flex: 1; height: 30px; }
.appsim__bars i { width: 5px; background: var(--border); border-radius: 1px; transition: background 400ms ease; }
.appsim__timeline.is-spiked .appsim__bars i.is-moment { background: var(--alert); }
.appsim__signal {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); color: var(--fg-dim);
  transition: color 400ms ease, border-color 400ms ease;
}
.appsim__timeline.is-spiked .appsim__signal { color: var(--alert); border-color: var(--alert); }

.appsim__verdict {
  grid-column: 1 / -1;
  background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--fg-inverse);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(8px); transition: opacity 450ms ease, transform 450ms ease;
}
.appsim__verdict.is-stamped { opacity: 1; transform: none; }
.appsim__verdict-t { font-size: 12.5px; font-weight: 800; letter-spacing: 0.01em; min-width: 0; }
.appsim__verdict-n {
  font-family: var(--mono); font-size: 10px; white-space: nowrap; flex: none;
  background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .appsim__wave.is-live i { animation: none; height: 60%; }
  .appsim__quote, .appsim__verdict { transition: none; }
  .videotile__chip-dot,
  .hero__copy > *,
  .timeline__moment,
  .timeline__moment::after,
  [class*="fade"],
  [class*="stagger"] { animation: none !important; transition: none !important; }
  .reveal, .timeline__moment { opacity: 1 !important; transform: none !important; }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  z-index: 2;
}

.card--accent {
  border-color: color-mix(in oklab, var(--accent) 50%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent),
    0 18px 60px -20px color-mix(in oklab, var(--accent) 22%, transparent);
}

.card__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* video tile mock */
.videotile {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elev-2);
  aspect-ratio: 16/10;
  position: relative;
  border: 1px solid var(--border);
}
.videotile__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 55%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, var(--bg-elev) 0 2px, transparent 2px 8px);
}
.videotile__person {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 50%;
  aspect-ratio: 1/1.1;
  background: linear-gradient(180deg, color-mix(in oklab, var(--fg) 28%, transparent), color-mix(in oklab, var(--fg) 12%, transparent));
  border-radius: 50% 50% 8% 8% / 60% 60% 8% 8%;
}
.videotile__person-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.videotile__chip {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.videotile__chip-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #ff5252;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.videotile__timestamp {
  position: absolute;
  bottom: 10px; right: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-muted);
}
.videotile__waveform {
  position: absolute;
  bottom: 14px; left: 12px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}
.videotile__waveform span {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* transcript */
.transcript {
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg);
}
.transcript__time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  margin-right: 8px;
}
.transcript__highlight {
  background: color-mix(in oklab, var(--accent) 30%, transparent);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--fg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* emotion timeline */
.timeline {
  position: relative;
  height: 56px;
  width: 100%;
}
.timeline__bg {
  position: absolute; inset: 0;
  border-bottom: 1px dashed var(--border);
}
.timeline__line {
  position: absolute;
  inset: 0;
}
.timeline__moments {
  position: absolute; inset: 0;
}
.timeline__moment {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: color-mix(in oklab, var(--accent) 70%, transparent);
}
.timeline__moment::after {
  content: "";
  position: absolute;
  top: -4px; left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}

/* timeline draw-in (one-shot, gated by reduced-motion below) */
.timeline__moment { opacity: 0; transform: scaleY(0); transform-origin: bottom; transition: opacity 450ms ease, transform 450ms ease; }
.timeline.is-visible .timeline__moment { opacity: 1; transform: none; }
.timeline.is-visible .timeline__moment:nth-child(2) { transition-delay: 90ms; }
.timeline.is-visible .timeline__moment:nth-child(3) { transition-delay: 180ms; }
.timeline.is-visible .timeline__moment:nth-child(4) { transition-delay: 270ms; }

/* generic scroll reveal for section cards/bands */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* hero staggered load-in */
.hero__copy > * { animation: heroFadeUp 600ms ease both; }
.hero__copy > *:nth-child(1) { animation-delay: 40ms; }
.hero__copy > *:nth-child(2) { animation-delay: 120ms; }
.hero__copy > *:nth-child(3) { animation-delay: 200ms; }
.hero__copy > *:nth-child(4) { animation-delay: 280ms; }
.hero__copy > *:nth-child(5) { animation-delay: 360ms; }
.hero__copy > *:nth-child(6) { animation-delay: 440ms; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.timeline__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 6px;
}

/* insight card */
.insight__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.25;
}
.insight__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.insight__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.insight__bullet {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--fg-dim);
}
.confidence {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-muted);
}
.confidence__bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elev-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.confidence__bar > i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  display: block;
}

/* tag pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  background: var(--bg-elev);
  white-space: nowrap;
}
.tag--accent {
  border-color: color-mix(in oklab, var(--accent) 60%, var(--border));
  color: var(--fg);
  background: color-mix(in oklab, var(--accent) 12%, var(--bg-elev));
}
.tag--dot::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.proofbar__logo {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
}
.proofbar__logo svg { opacity: 0.9; }

/* ============================================================
   DEMOS — interactive playground
   ============================================================ */

.demo {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.demo__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg);
}
.demo__head-dots {
  display: flex; gap: 6px;
}
.demo__head-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}
.demo__tab-row {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.demo__tab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.demo__tab--active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.demo__body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) { .demo__body { grid-template-columns: 1fr; } }

.demo__input-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo__input-prefix {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
}
.demo__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
  padding: 6px 0;
}
.demo__input::placeholder { color: var(--fg-dim); }
.demo__textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  outline: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  resize: none;
  min-height: 96px;
  line-height: 1.45;
}
.demo__textarea:focus { border-color: var(--border-strong); }

.demo__examples {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px;
}
.demo__example {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  cursor: pointer;
}
.demo__example:hover { background: var(--scrim); color: var(--fg); }

.demo__output {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: 20px;
  min-height: 280px;
  font-size: 14px;
  position: relative;
}
.demo__output-empty {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  text-align: center;
  letter-spacing: 0.05em;
}

.demo__progress {
  height: 2px;
  width: 100%;
  background: var(--bg-elev-2);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 16px;
}
.demo__progress > i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 360ms ease;
}

.demo__finding {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.demo__finding:last-child { border-bottom: 0; }
.demo__finding-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.demo__finding-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.demo__finding-body {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; } }
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer__tag {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 30ch;
  line-height: 1.5;
}
.footer__col-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-dim); white-space: nowrap; }
.footer__col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer__col a {
  font-size: 14px;
  color: var(--fg-muted);
}
.footer__col a:hover { color: var(--fg); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* selection */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ============================================================
   BOARDROOM PRIMITIVES
   ============================================================ */

.figlabel {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex; align-items: baseline; gap: 10px;
  white-space: nowrap;
}
.figlabel__n { color: var(--accent); font-weight: 700; }
.figlabel__t { color: var(--fg-dim); }

.receipt { position: relative; display: inline-block; }
.receipt__chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  white-space: nowrap;
  transition: border-color 120ms ease;
}
.receipt__chip:hover { border-color: var(--border-strong); }
.receipt__stat { font-weight: 700; font-size: 14px; color: var(--fg); }
.receipt__label { color: var(--fg-muted); text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.12em; }
.receipt__mark { color: var(--accent); font-weight: 700; }
.receipt__pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  width: min(280px, calc(100vw - 40px)); padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: 4px 4px 0 var(--accent);
  border-radius: var(--radius-sm);
}
.receipt__pop--right { left: auto; right: 0; }
.receipt__pop-src { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; white-space: nowrap; }
.receipt__pop-body { font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); margin-top: 8px; }

.verdict-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: 4px 4px 0 var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.verdict-card__id { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--fg-dim); white-space: nowrap; }
.verdict-card__title { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; margin-top: 8px; }
.verdict-card__receipts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.verdict-card__receipt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); color: var(--fg-muted);
}
.verdict-card__receipt:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ============================================================
   02 RECEIPT STRIP · 03 EXHIBIT A · 04 THE METHOD
   ============================================================ */

.receiptstrip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.receiptstrip__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-dim); white-space: nowrap; }
.receiptstrip__row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.exhibit__head { max-width: 720px; }
.exhibit__grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-top: 56px; }
.exhibit__rail { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.exhibit__rail-item {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-dim); display: flex; gap: 10px; white-space: nowrap;
  border-left: 2px solid var(--border); padding-left: 14px;
  transition: color 200ms ease, border-color 200ms ease;
}
.exhibit__rail-item.is-active { color: var(--fg); border-left-color: var(--accent); }
.exhibit__rail-n { color: var(--accent); font-weight: 700; }
.exhibit__beats { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.exhibit__beat > .figlabel { margin-bottom: 16px; }
.exhibit__beat-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }

.method__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.method__step { display: flex; flex-direction: column; }
.method__step > .card, .method__step > .verdict-card { margin-top: auto; }
.method__step > .figlabel { margin-bottom: 14px; }
.method__h { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.method__p { font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); margin: 0 0 16px; }
.method__chat { display: flex; flex-direction: column; gap: 10px; }
.method__q { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); margin: 0; line-height: 1.5; }
.method__a { font-size: 14px; color: var(--fg); margin: 0; line-height: 1.5; }

@media (max-width: 920px) {
  .exhibit__grid { grid-template-columns: 1fr; gap: 24px; }
  .exhibit__rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .exhibit__rail-item { border-left: none; border-bottom: 2px solid var(--border); padding: 0 0 8px; }
  .exhibit__rail-item.is-active { border-bottom-color: var(--accent); }
  .method__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   05 STUDY TYPES · 06 DASHBOARD VS DECISION
   ============================================================ */

.studytypes__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.studytype { display: flex; flex-direction: column; }
.studytype__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--accent); white-space: nowrap; }
.studytype__tech { align-self: flex-start; display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); border: 1px solid var(--border); border-radius: 3px; padding: 3px 7px; white-space: nowrap; }
.studytype__label-big { font-family: var(--sans); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.9; font-size: clamp(34px, 3.8vw, 52px); color: var(--fg); margin: 16px 0 12px; }
.studytype__h { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); margin: 0 0 6px; }
.studytype__sub { font-size: 14px; line-height: 1.5; color: var(--fg-muted); margin: 0 0 18px; }
.studytype__artifact { margin-top: auto; }
.studytype__artifact .card { background: var(--bg-elev-2); box-shadow: none; }
.studytype__chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.dvd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dvd__noise-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-dim); white-space: nowrap; margin-bottom: 18px; }
/* "What you have" — a believable but undifferentiated dashboard (noise) */
.dvd__dash {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  filter: saturate(0); opacity: 0.7;
  -webkit-mask-image: radial-gradient(125% 105% at 62% 42%, #000 52%, transparent 100%);
  mask-image: radial-gradient(125% 105% at 62% 42%, #000 52%, transparent 100%);
}
.dvd__tile {
  border: 1px solid color-mix(in oklab, #fff 12%, transparent);
  border-radius: var(--radius-sm); padding: 10px 10px 8px; height: 78px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: color-mix(in oklab, #fff 45%, transparent); overflow: hidden;
}
.dvd__tile-label { font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in oklab, #fff 32%, transparent); white-space: nowrap; }
.dvd__kpi-n { font-family: var(--mono); font-weight: 700; font-size: 18px; line-height: 1; color: color-mix(in oklab, #fff 72%, transparent); display: flex; align-items: baseline; gap: 4px; }
.dvd__arrow { font-size: 9px; color: color-mix(in oklab, #fff 34%, transparent); }
.dvd__bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.dvd__bars i { flex: 1; background: color-mix(in oklab, #fff 34%, transparent); border-radius: 1px; min-height: 2px; }
.dvd__spark { width: 100%; height: 36px; color: color-mix(in oklab, #fff 46%, transparent); }
.dvd__gauge { position: relative; width: 42px; height: 42px; }
.dvd__gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dvd__gauge-track { fill: none; stroke: color-mix(in oklab, #fff 12%, transparent); stroke-width: 3.5; }
.dvd__gauge-val { fill: none; stroke: color-mix(in oklab, #fff 52%, transparent); stroke-width: 3.5; stroke-linecap: round; }
.dvd__gauge-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 8.5px; color: color-mix(in oklab, #fff 62%, transparent); }
.dvd__h { font-family: var(--sans); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: -0.015em; line-height: 1.02; font-size: clamp(28px, 3vw, 44px); margin: 0; }
.dvd__receipts { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.dvd__receipts span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; white-space: nowrap;
  border: 1px solid var(--border); color: var(--fg-muted); padding: 5px 12px; border-radius: 999px;
}
.dvd__receipts span:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

@media (max-width: 920px) {
  .studytypes__grid { grid-template-columns: 1fr; }
  .dvd__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   07 REPORT OPEN · 08 WORD FROM THE ROOM · 09 CLOSE · NAV/FOOTER
   ============================================================ */

.nav__study { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--fg-dim); white-space: nowrap; border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
@media (max-width: 920px) { .nav__study { display: none; } }

.report-open { max-width: 880px; }
.report-open__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.report-open__id { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--fg-dim); white-space: nowrap; }
.report-open__h { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 18px 0 10px; }
.report-open__body { font-size: 16px; line-height: 1.65; color: var(--fg-muted); margin: 0; }
.report-open__cite {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  padding: 0 4px; white-space: nowrap; border-bottom: 1px dashed var(--accent);
}
.report-open__cite.is-open { background: var(--accent); color: var(--accent-ink); border-radius: 3px; }
.report-open__evidence { margin-top: 16px; border-left: 3px solid var(--accent); background: var(--bg-elev-2); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.report-open__evidence-ref { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap; }
.report-open__evidence-body { font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin-top: 6px; }
.report-open__foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }

.room__named-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.room__quote { display: flex; flex-direction: column; padding: 22px 20px; }
.room__mark { font-family: var(--mono); font-size: 34px; line-height: 0.5; color: var(--accent); opacity: 0.4; }
.room__q { font-size: 16px; line-height: 1.55; margin: 10px 0 0; color: var(--fg); font-weight: 600; letter-spacing: -0.01em; }
.room__person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.room__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--border); background: var(--bg-elev-2); }
.room__attr-named { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg); }
.room__attr-role { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 0.06em; color: var(--fg-muted); line-height: 1.4; }
.room__attr-mono { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--fg-dim); margin-top: 14px; white-space: nowrap; }
.room__divider { height: 1px; background: var(--border); margin: 32px 0; }
.room__participant-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; margin-top: 16px; }
.room__participant-frame { position: relative; }
.room__illus-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--fg-dim); margin-top: 8px; white-space: nowrap; }
.room__trust { display: flex; gap: 10px; margin-top: 28px; }
@media (max-width: 920px) {
  .room__named-grid { grid-template-columns: 1fr; }
  .room__participant-row { grid-template-columns: 1fr; }
}

/* ============================================================
   CLOSE — inline Calendly scheduler (the conversion point)
   ============================================================ */
.close__lede {
  max-width: 56ch; margin: 22px auto 0; font-size: 17px; line-height: 1.6;
  color: var(--fg-muted);
}
.calendly-embed {
  max-width: 760px; margin: 40px auto 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--accent); background: var(--bg-elev);
  overflow: hidden;
}
.calendly-embed__widget { min-width: 320px; height: 700px; }
@media (max-width: 600px) {
  .calendly-embed__widget { height: 1000px; }
}
.close__signin {
  display: inline-block; margin-top: 28px; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-muted);
  text-decoration: underline; text-underline-offset: 4px;
}
.close__signin:hover { color: var(--accent); }

/* Footer subscribe */
.footsub { margin-top: 22px; max-width: 320px; }
.footsub__label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--fg-dim); white-space: nowrap;
}
.footsub__row { display: flex; gap: 8px; margin-top: 8px; }
.footsub__row input[type="email"] {
  flex: 1 1 auto; min-width: 0; font-family: var(--sans); font-size: 14px;
  padding: 9px 12px; background: var(--bg-elev); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none;
}
.footsub__row input[type="email"]:focus { border-color: var(--border-strong); }
.footsub__note {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--fg-dim); margin-top: 8px;
}

@media (max-width: 600px) {
  .demoform__row { flex-direction: column; }
  .demoform__foot { white-space: normal; }
}

.nav__home { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
