/* RFPreview pitch deck — vertical scroll, light + dark themes */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root[data-theme="dark"], :root {
  --bg: #0a0a0f;
  --panel: #12121a;
  --panel-border: #1e1e2e;
  --panel-soft: #16161f;
  --accent: #e94560;
  --accent-soft: rgba(233, 69, 96, 0.10);
  --accent-border: rgba(233, 69, 96, 0.35);
  --success: #00d26a;
  --warning: #f5a623;
  --risk-high: #ff3b3b;
  --text: #e8e8e8;
  --text-muted: #8888a0;
  --text-faint: #56566a;
  --img-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --divider: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-border: #e2e4e8;
  --panel-soft: #f0f1f4;
  --accent: #e94560;
  --accent-soft: rgba(233, 69, 96, 0.06);
  --accent-border: rgba(233, 69, 96, 0.30);
  --success: #00b85f;
  --warning: #d68f1e;
  --risk-high: #d62828;
  --text: #111827;
  --text-muted: #4b5563;
  --text-faint: #9ca3af;
  --img-shadow: 0 8px 28px rgba(15, 23, 42, 0.10);
  --divider: rgba(15, 23, 42, 0.08);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  scroll-snap-type: y proximity;
  overflow-x: hidden;
}

/* ── Slide container ── */
.slide {
  min-height: 100vh;
  scroll-snap-align: start;
  padding: 7vh 8vw 12vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  border-bottom: 1px solid var(--divider);
}
.slide:last-child { border-bottom: none; }
/* Slides with light content stay vertically centered for visual balance */
.slide.title,
.slide.ask,
.slide.problem,
.slide.pop,
.slide.capabilities { justify-content: center; }

/* ── Typography ── */
h1 {
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
}
h1 .accent { color: var(--accent); }

h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 36px;
  max-width: 22ch;
}

h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

p, li {
  font-size: 22px;
  line-height: 1.55;
  color: var(--text);
}

.lead {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.45;
  color: var(--text);
  max-width: 30ch;
}

.muted   { color: var(--text-muted); }
.faint   { color: var(--text-faint); }
.accent  { color: var(--accent); }
.success { color: var(--success); }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 28px;
  align-self: flex-start;
}

.subtitle {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 28px;
  letter-spacing: -0.5px;
}

.footnote {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 28px;
}

/* Generic image styling so screenshots get room and a consistent treatment */
.shot {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: #0a0a0f; /* always dark — screenshots were captured dark */
  box-shadow: var(--img-shadow);
  border: 1px solid var(--panel-border);
}

/* ── Slide 1: title ── */
.slide.title {
  align-items: center;
  text-align: center;
  justify-content: center;
}
.slide.title h1 { font-size: clamp(72px, 12vw, 168px); }

/* ── Slide 2: problem ── */
.slide.problem .lead { margin-bottom: 18px; max-width: 30ch; }
.slide.problem .stat-line {
  font-size: 22px;
  color: var(--text-muted);
  margin-top: 36px;
  border-top: 1px solid var(--panel-border);
  padding-top: 28px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  max-width: 1100px;
}
.slide.problem .stat-line strong { color: var(--accent); font-weight: 700; }

/* ── Slide: pop (before/after) ── */
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 16px;
}
.before-after figure { display: flex; flex-direction: column; gap: 14px; }
.before-after figcaption {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.before-after .arrow {
  font-size: 80px;
  color: var(--accent);
  font-weight: 200;
  line-height: 1;
}
.before-after img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0a0a0f;
  box-shadow: var(--img-shadow);
  border: 1px solid var(--panel-border);
}
.caption-below {
  text-align: center;
  font-size: 22px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ── Slide: day-in-the-life timeline ── */
.timeline-life {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
  max-width: 1100px;
}
.timeline-life .ev {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.timeline-life .ev:last-child { border-bottom: none; }
.timeline-life .ev .t {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.timeline-life .ev .e {
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
}
.timeline-life .ev .e .label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ── Slide: capabilities (three columns) ── */
.three-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.col-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.col-card h3 {
  font-size: 30px;
  margin-bottom: 14px;
}
.col-card .col-lead {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.4;
}
.col-card ul {
  list-style: none;
  padding: 0;
}
.col-card li {
  font-size: 18px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
}
.col-card li:last-child { border-bottom: none; }

/* ── Slide: chat ── */
.chat-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.chat-layout img { max-height: 75vh; }
.example-questions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.example-questions .q {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 4px;
  font-size: 21px;
  color: var(--text);
  font-style: italic;
}

/* ── Slide: scoring ── */
.scoring-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.scoring-layout img { max-height: 75vh; }
table.weights {
  width: 100%;
  border-collapse: collapse;
  font-size: 20px;
}
table.weights td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--panel-border);
}
table.weights td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
table.weights tr:last-child td { border-bottom: none; }
table.weights .total td {
  border-top: 1px solid var(--panel-border);
  border-bottom: none;
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 17px;
  text-align: left;
}

/* ── Slide: ontario ── */
.ontario-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ontario-layout img { max-height: 75vh; }
.recognizes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recognizes .item {
  font-size: 20px;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--panel-border);
}
.recognizes .item:last-child { border-bottom: none; }
.recognizes .item .term {
  color: var(--accent);
  font-weight: 600;
}

/* ── Slide: brain / institutional memory ── */
.brain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.brain-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px;
}
.brain-card .ic {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.brain-card h4 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}
.brain-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}
.brain-followup {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  max-width: 1100px;
}
.brain-followup .accent { font-weight: 600; }

/* ── Slide: capability stack (entities + relationships) ── */
.stack-intro {
  font-size: 22px;
  color: var(--text-muted);
  max-width: 80ch;
  margin: 0 0 28px;
  line-height: 1.5;
}
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
.stack-col h3 {
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.chip {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px 16px;
}
.chip .ctitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.chip .csub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}
.chip .csub code {
  background: var(--panel-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 13px;
  color: var(--accent);
}
.stack-callout {
  margin-top: 36px;
  padding: 22px 28px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--text);
  max-width: 1300px;
}
.stack-callout .accent { font-weight: 600; }

/* ── Slide: ingest pipeline + extensibility ── */
.ingest-intro {
  font-size: 22px;
  color: var(--text-muted);
  max-width: 82ch;
  margin-bottom: 28px;
  line-height: 1.5;
}
.ingest-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.ingest-row {
  display: grid;
  grid-template-columns: 1.1fr auto 2fr;
  gap: 22px;
  align-items: center;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
}
.ingest-row .input {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.ingest-row .input .docicon {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 10px;
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
}
.ingest-row .iarrow {
  font-size: 24px;
  color: var(--accent);
  font-weight: 200;
}
.ingest-row .output {
  font-size: 19px;
  color: var(--text);
  line-height: 1.4;
}
.ingest-row .output .accent { font-weight: 600; }

.ext-section h3 {
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 16px 0 16px;
}
.ext-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.ext-list .ex {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--panel-border);
}
.ext-list .ex:nth-last-child(-n+2) { border-bottom: none; }
.ext-list .ex .lbl {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 2px;
}
.ext-list .ex .q {
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
}

/* ── Slide: scale ── */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.scale-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.scale-card .big {
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.scale-card .lbl {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.scale-card .desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}
.scale-callout {
  margin-top: 36px;
  padding: 22px 28px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--text);
  max-width: 1300px;
}
.scale-callout .accent { font-weight: 600; }

/* ── Slide: team ── */
.team-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.team-layout img { max-height: 75vh; }
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.workflow-steps .step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.workflow-steps .step .n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 18px;
}
.workflow-steps .step .text {
  font-size: 22px;
  line-height: 1.45;
  padding-top: 6px;
}
.pull-quote {
  margin-top: 36px;
  font-size: 28px;
  color: var(--text);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding: 14px 24px;
}

/* ── Slide: submissions / calendar ── */
.subs-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.subs-layout img { max-height: 75vh; }
.subs-bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.subs-bullets .b {
  font-size: 21px;
  line-height: 1.45;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-border);
}
.subs-bullets .b:last-child { border-bottom: none; }
.subs-bullets .b strong { color: var(--accent); font-weight: 600; }

/* ── Slide: pipeline ── */
.pipeline-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pipeline-layout img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0a0a0f;
  box-shadow: var(--img-shadow);
  border: 1px solid var(--panel-border);
}

/* ── Slide: where-it-runs / local-first ── */
.arch-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
  max-width: 1300px;
}
.arch-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch-box .lbl {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.arch-box h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.arch-box p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}
.arch-arrow {
  font-size: 36px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 200;
}
.arch-callouts {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.arch-callouts .c {
  flex: 1 1 280px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
}
.arch-callouts .c strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 19px; }

/* ── Slide: built / roadmap ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 8px;
}
.split .col {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.split .col.built { border-color: rgba(0, 210, 106, 0.35); }
.split .col.roadmap { opacity: 0.92; }
.split .col h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.split .col.built h3 { color: var(--success); }
.split .col.roadmap h3 { color: var(--text-muted); }
.split .col .col-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.split .col ul { list-style: none; padding: 0; }
.split .col li {
  font-size: 19px;
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-border);
}
.split .col li:last-child { border-bottom: none; }

/* ── Slide: ask ── */
.slide.ask { align-items: center; text-align: center; }
.slide.ask h1 {
  font-size: clamp(56px, 8vw, 112px);
  margin-bottom: 56px;
}
.ask-prompts {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  max-width: 1400px;
  width: 100%;
}
.ask-prompts .ap {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 32px 26px;
  text-align: left;
}
.ask-prompts .ap .n {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.ask-prompts .ap .t {
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
}
.demo-offer {
  margin-top: 56px;
  padding: 28px 36px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  max-width: 1100px;
}
.demo-offer .label {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.demo-offer .body {
  font-size: 24px;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
}
.demo-offer .body strong { color: var(--accent); }

/* ── Chrome (counter, hint, theme toggle) ── */
.counter {
  position: fixed;
  bottom: 18px;
  right: 28px;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  z-index: 10;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
}

.help-hint {
  position: fixed;
  bottom: 18px;
  left: 28px;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  z-index: 10;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
}
.help-hint kbd {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 2px;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 28px;
  z-index: 10;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-border); }

/* Reduce per-slide vertical padding on shorter screens to keep content centered */
@media (max-height: 720px) {
  .slide { padding: 4vh 6vw 10vh; }
  h2 { margin-bottom: 24px; }
}

/* Wider screens — let images breathe */
@media (min-width: 1600px) {
  .slide { padding: 7vh 10vw 12vh; }
}
