:root {
  --bg: #0e1416;
  --slide: #fbfaf7;
  --ink: #1d2327;
  --muted: #5d6870;
  --line: #e3e0d8;
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-soft: #e6f2f0;
  --warn: #b45309;
  --warn-soft: #fdf3e5;
  --code-bg: #f0eee8;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }

/* Fixed 1280x720 stage, scaled to fit the viewport by slides.js */
.deck { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: center center; }
.slide {
  position: absolute; inset: 0;
  background: var(--slide);
  padding: 72px 88px 64px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease;
  border-radius: 6px;
  overflow: hidden;
}
.slide.active { opacity: 1; visibility: visible; }
.slide::after {
  content: attr(data-footer);
  position: absolute; left: 88px; bottom: 26px;
  font-size: 13px; color: var(--muted); letter-spacing: .04em;
}

.kicker { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.slide h1 { font-size: 64px; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 24px; }
.slide h2 { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 36px; }
.slide p, .slide li { font-size: 24px; line-height: 1.45; }
.slide ul { margin: 0; padding-left: 28px; }
.slide li { margin-bottom: 14px; }
.slide li::marker { color: var(--accent); }
.slide code { font-family: var(--mono); font-size: .82em; background: var(--code-bg); padding: .08em .35em; border-radius: 5px; }
.muted { color: var(--muted); }

/* Title slide */
.slide.title { background: linear-gradient(135deg, #0f3d3a 0%, #0f766e 60%, #14b8a6 100%); color: #f4fbfa; justify-content: center; }
.slide.title .kicker { color: #a7f3e9; }
.slide.title h1 { font-size: 84px; color: #fff; }
.slide.title p { font-size: 28px; color: #d3f1ec; max-width: 860px; margin: 0; }
.slide.title::after { color: #a7f3e9; }
.slide.title .url { position: absolute; right: 88px; bottom: 26px; font-size: 13px; color: #a7f3e9; letter-spacing: .04em; }

/* Big statement */
.statement { font-size: 40px !important; line-height: 1.3 !important; max-width: 1000px; letter-spacing: -.01em; }
.statement em { font-style: normal; color: var(--accent); }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 8px; }
.pipeline .stage { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; position: relative; min-height: 300px; overflow-wrap: anywhere; }
.pipeline .stage .n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.pipeline .stage h3 { font-size: 24px; margin: 0 0 8px; }
.pipeline .stage p { font-size: 18px; line-height: 1.4; color: var(--muted); margin: 0; }
.pipeline .stage code { font-size: .7em; }
.pipeline .stage:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 28px; color: var(--accent); font-size: 22px; font-weight: 700; }

/* Two columns */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.card h3 { font-size: 24px; margin: 0 0 12px; color: var(--accent); }
.card p, .card li { font-size: 22px; }
.card li { margin-bottom: 12px; }
pre.snippet { font-family: var(--mono); font-size: 17px; line-height: 1.5; background: var(--code-bg); border-radius: 10px; padding: 16px 18px; margin: 12px 0 0; white-space: pre; overflow: hidden; }

/* uid lifecycle */
.timeline { display: flex; align-items: stretch; gap: 0; margin: 12px 0 28px; }
.timeline .t { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 18px 20px; background: #fff; border: 1px solid var(--line); }
.timeline .t:first-child { border-radius: 14px 0 0 14px; }
.timeline .t:last-child { border-radius: 0 14px 14px 0; }
.timeline .t + .t { border-left: none; }
.timeline .t b { display: block; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.timeline .t span { font-size: 18px; line-height: 1.4; }
.uid { font-family: var(--mono); font-size: 30px; background: var(--accent-soft); color: var(--accent); padding: 14px 22px; border-radius: 12px; display: inline-block; margin-bottom: 26px; }

/* KPI tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.tile h3 { font-size: 21px; margin: 0 0 6px; }
.tile p { font-size: 18px; color: var(--muted); margin: 0; line-height: 1.4; }

/* Questions */
.questions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; }
.questions div { font-size: 24px; line-height: 1.35; padding-left: 22px; border-left: 4px solid var(--accent-2); }

/* Issues */
.issues { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.issue { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--warn); border-radius: 12px; padding: 18px 22px; }
.issue h3 { font-size: 21px; margin: 0 0 6px; }
.issue p { font-size: 18px; color: var(--muted); margin: 0; line-height: 1.4; }

/* Controls */
.progress { position: fixed; left: 0; bottom: 0; height: 4px; background: var(--accent-2); transition: width .3s ease; z-index: 5; }
.hud { position: fixed; right: 18px; bottom: 14px; display: flex; gap: 8px; align-items: center; color: #9fb3b0; font: 13px var(--sans); z-index: 5; }
.hud button { background: rgba(255,255,255,.08); color: #e4efed; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 5px 10px; cursor: pointer; font: inherit; }
.hud button:hover { background: rgba(255,255,255,.18); }
.hud a { color: #9fb3b0; }

@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { overflow: visible; height: auto; background: #fff; }
  .deck { position: static; transform: none !important; width: 1280px; height: auto; }
  .slide { position: relative; opacity: 1; visibility: visible; width: 1280px; height: 720px; border-radius: 0; break-after: page; transition: none; }
  .slide:last-child { break-after: auto; }
  .progress, .hud { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
