/* Dopomogai pitch — page layer over the console kit (kit.css). Brief 2026-09-04:
   light dotted ground; dark panel (#0f172a) on the light page for 00 · 05 · 08 · 12 only;
   blue #2563eb = the ONE cta, teal = second voice, lime = one accent per page (the live dot);
   two radii: pill for clicks, 12px for content; hairline chips, no shadow; mono micro-labels;
   full liquid lens on ONE cta per screen; CSS-glass on chips; nothing on text. */

:root {
  --p-font-display: 'Outfit', 'IBM Plex Sans', system-ui, sans-serif; /* ← one-line swap if Andrew says no */
  --p-font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --p-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: var(--p-font-body);
  --p-lime: #a6c901;
  --p-ink-faint: #6b7c74;
  --p-panel: #0f172a;
  --p-panel-ink: #e8eef8;
  --p-panel-soft: #94a3b8;
  --p-max: 1120px;
  --p-pad: clamp(20px, 4vw, 56px);
}

html { scroll-behavior: smooth; }
@media (min-height: 700px) { html { scroll-snap-type: y mandatory; } }
html.print, html.no-snap { scroll-snap-type: none; scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--p-font-body);
  color: var(--ink);
  background-color: var(--field);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 30%, transparent) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
sup { font-size: .62em; line-height: 0; vertical-align: super; color: var(--accent); font-weight: 600; }

/* ── chrome ─────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--p-pad);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__img { width: 26px; height: 26px; display: block; }
.brand__name { font: 700 17px/1 var(--p-font-display); letter-spacing: -.02em; color: #1c2e26; }
.brand__dot { font-style: normal; color: var(--cta); }
.topbar__right { display: inline-flex; align-items: center; gap: 14px; }
.counter { font: 500 11px/1 var(--p-font-mono); letter-spacing: .1em; color: var(--p-ink-faint); min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }

/* CSS-glass chip: hairline, no shadow, no filter */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font: 500 11px/1 var(--p-font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip__dot--live { background: var(--p-lime); box-shadow: 0 0 0 0 color-mix(in srgb, var(--p-lime) 50%, transparent); animation: p-breathe 2.4s ease-in-out infinite; }
@keyframes p-breathe { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--p-lime) 0%, transparent); } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--cta); z-index: 31; transition: width .25s ease; }

.rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30;
  display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none;
}
.rail a {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--p-ink-faint); background: transparent; position: relative;
}
.rail a:hover { border-color: var(--ink); }
.rail a.is-active { background: var(--cta); border-color: var(--cta); }
.rail a::after {
  content: attr(data-label); position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font: 500 10px/1 var(--p-font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--border); padding: 5px 8px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.rail a:hover::after { opacity: 1; }
@media (max-width: 760px) { .rail { display: none; } }

/* ── slides ─────────────────────────────────────────────────────────────── */
.slide {
  min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; place-items: center;
  padding: 72px var(--p-pad) 40px;
  box-sizing: border-box;
}
.slide__in {
  box-sizing: border-box; /* the dark panel adds padding — width must be the border box, or the panel overflows the slide and the fit math measures the wrong width */
  width: min(var(--p-max), 100%);
  display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 30px);
  min-height: min(76svh, 720px);
}

/* the §8 pattern: a dark panel on the light page */
.slide--dark .slide__in {
  position: relative; overflow: hidden;
  background: var(--p-panel); color: var(--p-panel-ink);
  border-radius: 16px;
  padding: clamp(28px, 4.5vw, 56px) clamp(24px, 5vw, 64px);
  box-shadow: 0 40px 90px -40px rgba(15, 23, 42, .55), 0 0 0 1px rgba(255,255,255,.04) inset;
  --ink: var(--p-panel-ink);
  --ink-soft: var(--p-panel-soft);
  --p-ink-faint: #7b8aa3;
  --accent: #14b8a6;
  --cta: #7da9ff;
  --border: rgba(148, 163, 184, .14);
  --border-strong: rgba(148, 163, 184, .26);
  --surface: #0b1220;
  --card: rgba(255, 255, 255, .035);
}
.slide--dark .slide__in::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 184, 166, .22), transparent 70%);
  pointer-events: none;
}
.slide--dark .slide__in::after {
  content: ''; position: absolute; left: -15%; bottom: -45%; width: 50%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .22), transparent 70%);
  pointer-events: none;
}
.slide--dark .slide__in > * { position: relative; z-index: 1; }

.klab {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font: 500 10px/1 var(--p-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--p-ink-faint);
}
.klab__n { color: var(--accent); }
.klab__sep { opacity: .55; margin: 0 .5em; }

.h1 {
  margin: 0; font-family: var(--p-font-display); font-weight: 800;
  font-size: clamp(30px, 4.3vw, 58px); line-height: 1.03; letter-spacing: -.025em; text-wrap: balance;
}
.h1 span { display: block; }
.h1 span + span { color: var(--ink-soft); }
.slide--dark .h1 span + span { color: var(--p-panel-soft); }

.lede { margin: 0; max-width: 64ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: var(--ink-soft); }
.lede strong { color: var(--ink); font-weight: 600; }

.head { display: flex; flex-direction: column; gap: 14px; }
.head__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.stat b { display: block; font: 800 clamp(26px, 2.8vw, 40px)/1 var(--p-font-display); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; font: 500 10px/1.4 var(--p-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-ink-faint); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* cards §6: radius 12, hairline, no blur */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 20px 22px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.card__k { font: 500 10px/1 var(--p-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 0; font: 700 17px/1.25 var(--p-font-display); letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

/* numbered rows */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.row:last-child { border-bottom: 1px solid var(--border); }
.row__n { font: 500 11px/1.6 var(--p-font-mono); color: var(--accent); letter-spacing: .06em; }
.row h3 { margin: 0 0 4px; font: 700 16px/1.3 var(--p-font-display); }
.row p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.row q { font-style: italic; }
.row q::before, .row q::after { content: ''; }
.row .src { display: block; margin-top: 4px; font: 500 10px/1.5 var(--p-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--p-ink-faint); }

/* chat example */
.chat { font-family: var(--p-font-mono); font-size: 13.5px; line-height: 1.55; border-radius: 12px; border: 1px solid var(--border); background: var(--card); padding: 16px 20px; display: grid; gap: 10px; }
.chat div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.chat b { font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; line-height: 1.9; color: var(--accent); }
.chat span { color: var(--ink); }
.chat div + div span { color: var(--ink-soft); }

/* grid 6 */
.grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); display: flex; gap: 12px; align-items: baseline; }
.tile__n { font: 500 10px/1.8 var(--p-font-mono); color: var(--accent); letter-spacing: .08em; }
.tile p { margin: 0; font: 600 15px/1.35 var(--p-font-display); letter-spacing: -.01em; }
@media (max-width: 760px) { .grid6 { grid-template-columns: 1fr 1fr; } }

/* plus row */
.plus { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.plus__n { font: 500 12px/1.5 var(--p-font-mono); color: var(--accent); }
.plus h3 { margin: 0 0 3px; font: 700 15px/1.3 var(--p-font-display); }
.plus p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* lines (traction) */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.line { border-top: 2px solid var(--accent); padding-top: 10px; }
.line h3 { margin: 0 0 4px; font: 700 15px/1.3 var(--p-font-display); }
.line p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .lines { grid-template-columns: 1fr; } }

/* market layers: three nested bands */
.layers { display: flex; flex-direction: column; gap: 10px; }
.layer { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; background: var(--card); }
.layer:nth-child(2) { margin-left: 28px; border-color: var(--border-strong); }
.layer:nth-child(3) { margin-left: 56px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.layer__k { font: 500 10px/1.5 var(--p-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink-faint); }
.layer h3 { margin: 4px 0 0; font: 700 16px/1.25 var(--p-font-display); }
.layer p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .layer { grid-template-columns: 1fr; } .layer:nth-child(2), .layer:nth-child(3) { margin-left: 0; } }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; padding-top: 18px; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--border-strong); }
.tl { position: relative; padding: 0 4px; }
.tl::before { content: ''; position: absolute; top: -16px; left: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl:last-child::before { background: var(--accent); }
.tl__k { font: 500 10px/1 var(--p-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tl h3 { margin: 8px 0 6px; font: 700 18px/1.25 var(--p-font-display); letter-spacing: -.01em; }
.tl p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

/* two columns (model) */
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.col { border-radius: 12px; border: 1px solid var(--border); background: var(--card); padding: 18px 22px; }
.col > h3 { margin: 0 0 12px; font: 500 10px/1 var(--p-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.col dl { margin: 0; display: grid; gap: 10px; }
.col dt { font: 700 15px/1.3 var(--p-font-display); }
.col dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.col dd + dt { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* footer line: dot + label + text */
.foot { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--border); }
.foot__label { display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1 var(--p-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--p-ink-faint); white-space: nowrap; }
.foot__label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.foot p { margin: 0; font-size: clamp(14px, 1.15vw, 16.5px); line-height: 1.5; font-weight: 500; }

.fns { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 10.5px; line-height: 1.45; color: var(--p-ink-faint); }
.fns sup { color: var(--p-ink-faint); }

/* actions */
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink);
  font: 600 14px/1 var(--p-font-body); text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); }
.lg--lens .lg__t { font-family: var(--p-font-body); font-weight: 600; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.contact__who { display: grid; gap: 4px; }
.contact__who b { font: 700 18px/1.2 var(--p-font-display); }
.contact__who span { font-size: 14px; color: var(--ink-soft); }
.contact__links { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.contact__links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.contact__links a:hover { color: var(--ink); border-color: var(--ink); }
.contact__links a[data-fill] { opacity: .55; border-bottom-style: dashed; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* assistant corner (installation not minted yet → quiet placeholder) */
.cw-corner { position: fixed; right: 18px; bottom: 18px; z-index: 30; }
.cw-corner .chip { background: var(--surface); }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  html:not(.print) .slide__in > * { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
  html:not(.print) .slide.in .slide__in > * { opacity: 1; transform: none; }
  html:not(.print) .slide.in .slide__in > :nth-child(2) { transition-delay: .07s; }
  html:not(.print) .slide.in .slide__in > :nth-child(3) { transition-delay: .14s; }
  html:not(.print) .slide.in .slide__in > :nth-child(4) { transition-delay: .21s; }
  html:not(.print) .slide.in .slide__in > :nth-child(5) { transition-delay: .28s; }
}

/* ── print: one 16:9 page per slide ─────────────────────────────────────── */
@page { size: 338.7mm 190.5mm; margin: 0; }
html.print .topbar, html.print .rail, html.print .progress, html.print .cw-corner, html.print .no-print,
html.print .actions { display: none !important; }
html.print .chip__dot--live { animation: none; }
@media print {
  html { scroll-snap-type: none; }
  body { background-color: var(--field); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .rail, .progress, .cw-corner, .no-print, .actions { display: none !important; }
  .slide { width: 338.7mm; height: 190.5mm; min-height: 0; padding: 12mm 16mm; break-after: page; page-break-after: always; overflow: hidden; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .slide__in { min-height: 100%; opacity: 1 !important; transform: none !important; }
  .slide__in > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .h1 { font-size: 48px; }
  .lede { font-size: 16px; }
}

/* ── Review v1 (2026-09-04) ─────────────────────────────────────────────────────────────── */
/* Sparse slides (04, 06, 11): the footer follows the cards instead of sinking to the fold. */
.slide--tight .foot { margin-top: 28px; }
/* The Sources page: readable, not a footnote strip. */
.fns--page { font-size: 15px; line-height: 1.6; gap: 12px; color: var(--ink-soft); max-width: 78ch; margin-top: 8px; }
.fns--page li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: baseline; }
.fns--page sup { color: var(--accent); font: 600 12px/1 var(--p-font-mono); vertical-align: baseline; }
.rows .src { display: block; margin-top: 4px; font-size: 12px; color: var(--p-ink-faint); }
@media print {
  .fns--page { font-size: 13.5px; }
  .slide--dark .lede { font-size: 16px; }
}

/* The voice + avatar scene, hosted in an iframe on a gesture (see main.js). */
.cw-corner--scene { display: grid; justify-items: end; gap: 10px; }
.cw-talk { cursor: pointer; font: inherit; background: var(--surface); }
.cw-frame { width: min(94vw, 420px); height: min(62vh, 520px); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: 0 18px 48px rgba(28, 46, 38, .18); background: #fff; }
.cw-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Print density (review v1, page 08): the dark panel spends less on padding and gaps, so body copy stays ≥15px
   before the fit loop has to zoom. Screen is untouched. */
@media print {
  .slide--dark .slide__in { padding: 44px 56px; gap: 20px; }
  .slide--dark .h1 { font-size: 42px; }
  .layers .layer p { font-size: 15px; }
  .rows .row p { font-size: 15px; }
}

@media print {
  .lede { max-width: 82ch; }
  .layer { padding: 10px 14px; }
  .row { padding: 10px 0; }
  .plus { padding: 10px 14px; }
  .slide__in { gap: 20px; }
}
@media print {
  .rows .row { padding: 8px 0; }
  .plus { padding: 8px 14px; }
  .slide--dark .lede { max-width: 90ch; }
}

/* Portrait slide (11 · Founder): photo left, copy right. */
.slide__in--portrait { display: grid; grid-template-columns: minmax(220px, 28%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 44px; align-items: start; }
.slide__in--portrait .klab { grid-column: 1 / -1; }
.portrait { margin: 0; grid-row: 2; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 1px 0 rgba(28,46,38,.06), 0 12px 32px -18px rgba(28,46,38,.35); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbody { display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 30px); min-height: 100%; }
.pbody .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .slide__in--portrait { grid-template-columns: 1fr; } .portrait { max-width: 220px; } }

/* The avatar card sits flush in the corner — placement is the HOST's plane, size is the widget's
   (the same split the report proved). Squarer than tall so the shoulders show. */
.cw-avatar-corner { position: fixed; right: 0; bottom: 0; z-index: 60; width: min(94vw, 420px); height: min(58vh, 460px); }
.cw-avatar-corner .cw-avatar-first { min-height: 0; height: 100%; }
@media (max-width: 480px) { .cw-avatar-corner { width: 100vw; height: min(54vh, 380px); } }
html.print .cw-avatar-corner { display: none !important; }
@media print { .cw-avatar-corner { display: none !important; } }

/* The caption bar — one surface for the agent's words, centred in the space LEFT of the card so it
   never sits under her. Page kit, not widget chrome: our own glass, our own type. The widget's overlay
   captions are off, so this is the only place the sentence appears. */
.pitch-caption {
  position: fixed; left: calc((100vw - min(94vw, 420px)) / 2); transform: translateX(-50%);
  bottom: 18px; z-index: 55;
  width: min(720px, calc(100vw - 480px));
  text-align: center;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--cta);
  backdrop-filter: blur(10px);
  border-radius: 12px; padding: .8rem 1.15rem;
  color: var(--ink); font-size: .98rem; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
  /* a long live answer must stay a bar, not a wall */
  white-space: pre-wrap; overflow-wrap: break-word;
  max-height: min(36vh, 320px); overflow-y: auto; overscroll-behavior: contain;
}
.pitch-caption.on { opacity: 1; pointer-events: auto; }
.pitch-caption.long { text-align: left; }
@media (max-width: 900px) {
  .pitch-caption { left: 50%; width: calc(100vw - 40px); bottom: calc(min(54vh, 380px) + 12px); }
}
html.print .pitch-caption { display: none !important; }
@media print { .pitch-caption { display: none !important; } }
