/* ============ Tokens ============ */
:root {
  --bg: #F5F5F2;
  --bg-alt: #EDECE6;
  --ink: #0A0A0A;
  --ink-2: #2A2A28;
  --ink-3: #6B6B66;
  --ink-4: #A8A89F;
  --rule: #1F1F1C;
  --rule-soft: #D6D4CC;
  --accent: #C8F549;       /* lime */
  --accent-ink: #0A0A0A;
  --warn: #FF6A3D;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ============ Base slide ============ */
deck-stage { background: #1a1a1a; }

section.slide {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  padding: 72px 88px;
  position: relative;
  box-sizing: border-box;
}

section.slide.dark { background: var(--ink); color: var(--bg); }
section.slide.accent { background: var(--accent); color: var(--ink); }

/* ============ Typography ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.title {
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 0.96;
  text-wrap: balance;
}
.title-md {
  font-size: 68px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.0;
}
.title-sm {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.02;
}
.lead {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.body {
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.small {
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-3);
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* ============ Footer ============ */
.footer {
  position: absolute;
  left: 88px;
  right: 88px;
  bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.slide.dark .footer { color: #8A8A84; }
.slide.accent .footer { color: rgba(10,10,10,0.55); }
.footer .brand { font-weight: 600; color: var(--ink); }
.slide.dark .footer .brand { color: var(--bg); }
.footer .num { font-weight: 600; }

/* ============ Header (deck-wide) ============ */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.slide-header .chip { white-space: nowrap;
  display: inline-block;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.1em;
}
.slide.dark .slide-header .chip { background: var(--accent); color: var(--ink); }
.slide.accent .slide-header .chip { background: var(--ink); color: var(--accent); }

/* ============ Utility ============ */
.rule { height: 1px; background: var(--ink); opacity: 0.15; }
.rule-heavy { height: 2px; background: var(--ink); }
.slide.dark .rule, .slide.dark .rule-heavy { background: #fff; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
}
.tag.accent { background: var(--accent); border-color: var(--accent); }
.tag.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* dot */
.dot { display:inline-block; width: 10px; height:10px; border-radius: 50%; background: var(--ink); }
.dot.accent { background: var(--accent); border: 1px solid var(--ink); }
.dot.green { background: #2DBE7B; }
.dot.amber { background: #F5B800; }
.dot.red { background: #E24A3F; }

/* ============ Grids ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }

/* ============ Cards ============ */
.card {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 24px 26px;
}
.card.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card.accent { background: var(--accent); color: var(--ink); border-color: var(--ink); }

/* ============ Tables ============ */
table.deck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 22px;
}
table.deck-table th, table.deck-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
table.deck-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid var(--ink);
  padding-top: 4px;
  padding-bottom: 12px;
}
table.deck-table tr:last-child td { border-bottom: none; }
table.deck-table td.num { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* price chip */
.price {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 0.02em;
}
.price.cheap { background: #2DBE7B; color: #062914; }
.price.mid { background: var(--accent); color: var(--ink); }
.price.high { background: var(--warn); color: #1a0800; }

/* ============ Sidebar in dept slides ============ */
.dept-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  flex: 1;
}
.dept-side {
  border-right: 1px solid var(--rule-soft);
  padding-right: 48px;
  font-family: var(--font-mono);
}
.dept-side .dept-num {
  font-size: 140px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  -webkit-text-stroke: 2px var(--ink);
  font-family: var(--font-sans);
}
.dept-side .dept-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 18px;
}
.dept-side .dept-sub {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-top: 16px;
  line-height: 1.5;
}
.dept-side .dept-chapter {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 28px;
}
.dept-side ol.chap-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.dept-side ol.chap-list li { padding: 4px 0; }
.dept-side ol.chap-list li.active { color: var(--ink); font-weight: 600; }
.dept-side ol.chap-list li.active::before { content: '▸ '; color: var(--ink); }

.dept-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dept-body .chap-title {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.0;
  margin-bottom: 28px;
}

/* ============ Section divider (big number) ============ */
.divider-slide {
  background: var(--accent);
  color: var(--ink);
}
.divider-num {
  font-size: 520px;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.divider-label {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============ Small bits ============ */
.kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 18px;
  padding: 2px 10px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
}
.bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.bullet .bnum {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink-3);
  flex-shrink: 0;
  min-width: 36px;
  padding-top: 6px;
}

/* inline svg icon sizing */
.ico { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ico-lg { width: 36px; height: 36px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* stack diagram */
.stack-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stack-row .tag { font-size: 15px; padding: 4px 10px; }

/* progress bar */
.bar {
  height: 12px;
  background: var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
}
.bar .fill { height: 100%; background: var(--ink); }
.bar .fill.accent { background: var(--accent); }

/* big stat */
.stat {
  font-family: var(--font-sans);
  font-size: 120px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.stat .unit { font-size: 48px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }

/* TOC items */
.toc-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.toc-item:hover { transform: translateX(6px); }
.toc-item .toc-num { font-family: var(--font-mono); color: var(--ink-3); font-size: 20px; }
.toc-item .toc-title { font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }
.toc-item .toc-range { font-family: var(--font-mono); color: var(--ink-3); font-size: 18px; }

/* before/after */
.ba-col {
  padding: 22px 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
}
.ba-col.before { background: #fff; }
.ba-col.after { background: var(--accent); }
.ba-col h5 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ba-col.after h5 { color: var(--ink); }

/* cost cards grid for stack slides */
.tool-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #fff;
  border: 1px solid var(--rule-soft);
  padding: 20px 22px;
  border-radius: 4px;
  
  gap: 8px;
}
.tool-card .tc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tool-card .tc-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.tool-card .tc-desc { font-size: 17px; line-height: 1.35; color: var(--ink-2); }
.tool-card .tc-price {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
}

/* two-week timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.timeline .tcell {
  padding: 22px 24px;
  border-right: 1px solid var(--ink);
  display: flex; flex-direction: column; gap: 12px;
  background: #fff;
}
.timeline .tcell:last-child { border-right: none; }
.timeline .tcell .th {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.timeline .tcell .tt {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.timeline .tcell ul {
  margin: 0; padding: 0; list-style: none;
  font-size: 17px; line-height: 1.35; color: var(--ink-2);
}
.timeline .tcell ul li { padding: 4px 0; border-top: 1px dashed var(--rule-soft); }
.timeline .tcell ul li:first-child { border-top: none; }

/* pain blocks */
.pain {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: start;
}
.pain:first-child { border-top: 2px solid var(--ink); }
.pain .pnum { font-family: var(--font-mono); font-size: 20px; color: var(--ink-3); padding-top: 4px;}
.pain .pt { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.pain .pd { font-size: 19px; color: var(--ink-3); margin-top: 6px; line-height: 1.35;}
.pain .pcost { text-align: right; font-family: var(--font-mono); font-size: 17px; color: var(--ink); }
.pain .pcost b { display: block; font-size: 26px; letter-spacing: -0.01em; font-weight: 700; }

/* scenario list */
.scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.scenarios .scen {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
}
.scenarios .scen:first-child, .scenarios .scen:nth-child(2) { border-top: 2px solid var(--ink); }
.scenarios .scen .sn { font-family: var(--font-mono); font-size: 16px; color: var(--ink-3); }
.scenarios .scen .st { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.scenarios .scen .sdesc { font-size: 16px; color: var(--ink-3); line-height: 1.3; margin-top: 2px;}
.scenarios .scen .skind {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 3px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}
.scenarios .scen .skind.agent { background: var(--accent); }
.scenarios .scen .skind.workflow { background: #fff; }
.scenarios .scen .skind.script { background: var(--ink); color: var(--bg); }

/* agent card (slide C) */
.agent-card {
  background: #fff;
  border: 1px solid var(--ink);
  padding: 24px 28px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-card .ac-role { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);}
.agent-card .ac-name { font-size: 30px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.05;}
.agent-card .ac-what { font-size: 18px; color: var(--ink-2); line-height: 1.4; flex: 1; }
.agent-card .ac-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.agent-card .ac-stack .st-tag {
  font-family: var(--font-mono); font-size: 13px;
  padding: 3px 8px; border: 1px solid var(--rule-soft); border-radius: 4px;
  color: var(--ink-2);
}
.agent-card .ac-price {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding-top: 12px; border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono); font-size: 15px;
}
.agent-card .ac-price .lbl { color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.agent-card .ac-price .val { color: var(--ink); font-size: 17px; font-weight: 700; }

/* KPI row */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px;}
.kpi {
  padding: 14px 16px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-mono);
}
.kpi .kl { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.kpi .kv { font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 4px; letter-spacing: -0.01em;}

/* print */
@media print {
  section.slide { background: #fff !important; color: #000 !important; }
  section.slide.dark { background: #111 !important; color: #fff !important; }
  section.slide.accent { background: #C8F549 !important; }
}
