/* ============================================================
   Deck engine — shared styles
   Fixed 1280x720 stage, scaled to fit. Text never reflows.
   ============================================================ */

:root {
  --stage-w: 1280px;
  --stage-h: 720px;

  --bg: #0a0d12;
  --bg-raised: #121722;
  --bg-sunken: #06080c;
  --fg: #f2f4f7;
  --fg-muted: #a8b2c1;
  /* #667085 failed AA against the near-black stage; lifted for projector legibility */
  --fg-faint: #8e9aab;
  --rule: #1f2733;
  --accent: #4d9fff;
  --accent-dim: #1e3a5f;
  --warn: #f5a524;
  --good: #3ecf8e;
  /* lifted from #f2555a, which fell just under AA at 13px tag size */
  --bad: #ff8085;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;
}

[data-theme='light'] {
  --bg: #ffffff;
  --bg-raised: #f7f8fa;
  --bg-sunken: #eef1f5;
  --fg: #10141a;
  --fg-muted: #52606d;
  --fg-faint: #7b8794;
  --rule: #dfe3e8;
  --accent: #1b6ef3;
  --accent-dim: #dbe9ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-sunken);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

#viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

#stage {
  width: var(--stage-w);
  height: var(--stage-h);
  position: relative;
  transform-origin: center center;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

/* ---------- slides ---------- */

.slide {
  position: absolute;
  inset: 0;
  padding: 64px 80px 72px;
  display: none;
  flex-direction: column;
}

.slide.is-active {
  display: flex;
}

.slide > .notes {
  display: none;
}

/* eyebrow / kicker above a title */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-size: 60px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 650;
}

h2 {
  font-size: 40px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 640;
  margin-bottom: 28px;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.01em;
}

p,
li {
  font-size: 21px;
  line-height: 1.5;
  color: var(--fg-muted);
}

strong {
  color: var(--fg);
  font-weight: 620;
}

em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: 27px;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.012em;
}

.small {
  font-size: 17px;
  line-height: 1.45;
}

.faint {
  color: var(--fg-faint);
}

ul,
ol {
  padding-left: 26px;
}

li {
  margin-bottom: 14px;
}

li::marker {
  color: var(--fg-faint);
}

ul.clean {
  list-style: none;
  padding-left: 0;
}

ul.clean > li {
  padding-left: 26px;
  position: relative;
}

ul.clean > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- layout helpers ---------- */

.body {
  flex: 1;
  min-height: 0;
}

.cols {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-tight {
  gap: 28px;
}

.center {
  justify-content: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spacer {
  flex: 1;
}

/* ---------- cards ---------- */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 26px;
}

.card > h3 {
  margin-bottom: 12px;
}

.card.accent {
  border-color: var(--accent-dim);
  box-shadow: inset 3px 0 0 var(--accent);
}

.person {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.person .role {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.person .want {
  font-size: 19px;
  color: var(--fg);
  line-height: 1.35;
}

.person .say {
  font-size: 16px;
  line-height: 1.45;
  color: var(--fg-muted);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

/* ---------- metrics ---------- */

.metrics {
  display: grid;
  gap: 20px;
  grid-auto-flow: column;
}

.metric .n {
  font-size: 52px;
  font-weight: 660;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric .l {
  font-size: 15px;
  color: var(--fg-muted);
  margin-top: 10px;
  line-height: 1.35;
}

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

th {
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--rule);
}

td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-muted);
  vertical-align: top;
  line-height: 1.4;
}

td:first-child {
  color: var(--fg);
  font-weight: 560;
}

tr.pick td {
  color: var(--fg);
}

tr.pick td:first-child {
  box-shadow: inset 3px 0 0 var(--good);
  padding-left: 14px;
}

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 620;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.tag.good {
  background: rgba(62, 207, 142, 0.14);
  color: var(--good);
}
.tag.warn {
  background: rgba(245, 165, 36, 0.14);
  color: var(--warn);
}
.tag.bad {
  background: rgba(242, 85, 90, 0.14);
  color: var(--bad);
}

/* ---------- code / mono ---------- */

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--fg);
}

pre {
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 22px;
  overflow: hidden;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
  white-space: pre;
}

/* ---------- flow diagram ---------- */

.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  font-size: 17px;
}

.flow .step {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: 18px 16px;
  text-align: center;
  color: var(--fg);
  font-weight: 560;
  display: grid;
  place-items: center;
}

.flow .step:first-child {
  border-radius: 10px 0 0 10px;
}
.flow .step:last-child {
  border-radius: 0 10px 10px 0;
}
.flow .step + .step {
  border-left: none;
}
.flow .step.hl {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--fg);
}

/* ---------- quote ---------- */

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

blockquote p {
  font-size: 30px;
  line-height: 1.36;
  color: var(--fg);
  letter-spacing: -0.015em;
}

blockquote cite {
  display: block;
  margin-top: 16px;
  font-size: 16px;
  font-style: normal;
  color: var(--fg-faint);
}

/* ---------- title slide ---------- */

.slide.title {
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(77, 159, 255, 0.1), transparent 70%), var(--bg);
}

.slide.title h1 {
  font-size: 72px;
  max-width: 15ch;
}

.slide.title .sub {
  font-size: 24px;
  color: var(--fg-muted);
  margin-top: 26px;
}

.slide.title .title-eyebrow {
  position: absolute;
  top: 48px;
  left: 80px;
  right: 80px;
  margin-bottom: 0;
}

.slide.title .title-footer {
  position: absolute;
  bottom: 48px;
  left: 80px;
  right: 80px;
  text-align: center;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
}

.slide.title .lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.slide.title .lockup-cognition {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fg);
}

.slide.title .lockup-icon {
  height: 38px;
  width: auto;
  display: block;
}

.slide.title .lockup-word {
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.slide.title .lockup-x {
  font-size: 28px;
  font-weight: 400;
  color: var(--fg-faint);
}

.slide.title .lockup-mark {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
}

.slide.title .lockup-mark img {
  height: 34px;
  width: auto;
  display: block;
}

.slide.section {
  justify-content: center;
  background: var(--bg-sunken);
}

.slide.section h1 {
  font-size: 66px;
}

/* ---------- chrome ---------- */

#chrome {
  position: absolute;
  bottom: 26px;
  left: 80px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-faint);
  pointer-events: none;
}

#chrome .rail {
  flex: 1;
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

#chrome .rail > div {
  height: 100%;
  background: var(--accent);
  transition: width 0.22s ease;
}

#chrome .num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.slide.title #chrome,
.slide.section #chrome {
  display: none;
}

/* ---------- presenter notes panel ---------- */

#notes {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 380px;
  background: #05070a;
  border-left: 1px solid #1f2733;
  color: #d0d5dd;
  padding: 28px 26px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.6;
  display: none;
  z-index: 20;
}

#notes.is-open {
  display: block;
}

#notes h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8e9aab;
  margin-bottom: 14px;
  font-weight: 650;
}

#notes .t {
  color: #f2f4f7;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 17px;
}

#notes ul {
  padding-left: 20px;
}

#notes li {
  font-size: 15px;
  color: #d0d5dd;
  margin-bottom: 10px;
  line-height: 1.55;
}

#notes .clock {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8e9aab;
  border-top: 1px solid #1f2733;
  margin-top: 20px;
  padding-top: 14px;
}

/* ---------- help ---------- */

#help {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(6, 8, 12, 0.92);
  border: 1px solid #1f2733;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  color: #98a2b3;
  font-family: var(--font-mono);
  z-index: 30;
  transition: opacity 0.4s;
}

#help.hide {
  opacity: 0;
  pointer-events: none;
}

/* ---------- print / PDF ---------- */

@media print {
  @page {
    size: 1280px 720px;
    margin: 0;
  }

  html,
  body {
    overflow: visible;
    background: #fff;
  }

  #viewport {
    position: static;
    display: block;
  }

  #stage {
    transform: none !important;
    width: 1280px;
    height: auto;
  }

  #notes,
  #help {
    display: none !important;
  }

  .slide {
    display: flex !important;
    position: relative;
    inset: auto;
    width: 1280px;
    height: 720px;
    page-break-after: always;
    break-after: page;
  }

  #chrome {
    position: absolute;
  }
}
