/* ==========================================================================
   Multiplatform Case Study Deck — styles
   Direction A: Editorial Mono — Zattoo design system
   1280 × 720 slide canvas
   ========================================================================== */

/* Brand accent — orange for "The Fourth Platform" + "Vega" mentions
   (previously a separate purple; consolidated to the single brand accent) */
:root { --z-accent-purple: var(--z-accent-primary); }
html[data-theme="light"] { --z-accent-purple: var(--z-accent-primary); }
.t-magic {
  color: var(--z-accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 800;
  font-style: normal;
}

/* Light theme overrides — applied when [data-theme="light"] on html */
html[data-theme="light"] {
  --z-surface-base: rgb(252, 250, 247);
  --z-surface-card: rgb(245, 242, 237);
  --z-surface-elevated: rgb(238, 234, 227);
  --z-surface-higher: rgb(228, 222, 213);

  --z-text-primary: rgb(20, 20, 20);
  --z-text-secondary: rgb(95, 95, 95);
  --z-text-tertiary: rgb(140, 140, 140);
  --z-text-inverse: rgb(252, 250, 247);

  --z-border-default: rgb(225, 220, 212);
  --z-border-subtle: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] body { background: rgb(252, 250, 247); }
html[data-theme="light"] .codeblock { background: rgb(238, 234, 227); }

/* Slide canvas */
.slide {
  width: 1280px;
  height: 720px;
  background: var(--z-surface-base);
  color: var(--z-text-primary);
  font-family: 'Compasse', sans-serif;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

deck-stage section {
  background: var(--z-surface-base);
}

/* Footer */
.slide .deck-footer {
  position: absolute;
  left: 80px;
  right: 80px;
  bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--z-border-default);
  padding-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--z-text-secondary);
}

.deck-footer .pageno { white-space: nowrap; font-variant-numeric: tabular-nums; }
.deck-footer .crumb { color: var(--z-text-secondary); }
.deck-footer .crumb .num { color: var(--z-accent-primary); margin-right: 8px; }
.deck-footer .pager { color: var(--z-text-secondary); }
.deck-footer .pager .now { color: var(--z-text-primary); font-weight: 800; }
.deck-footer .brand { font-weight: 800; letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.deck-footer .brand .dot { color: inherit; }

/* Eyebrow / kickers */
.eyebrow {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--z-text-secondary);
}
.eyebrow .accent, .eyebrow.accent { color: var(--z-accent-primary); }

/* Common content padding */
.pad { padding: 56px 96px 160px; flex: 1; display: flex; flex-direction: column; }
.pad.center { justify-content: center; }
.pad.between { justify-content: space-between; }

/* Headlines */
.h-display {
  font-weight: 800;
  font-size: 168px;
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--z-text-primary);
}
.h-display em, .h-display .accent {
  color: var(--z-accent-primary);
  font-style: italic;
  font-weight: 800;
}
.h-section {
  font-weight: 800;
  font-size: 92px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  color: var(--z-text-primary);
}
.h-section em { color: var(--z-accent-primary); font-style: italic; }
.h-headline {
  font-weight: 800;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--z-text-primary);
}
.h-headline em { color: var(--z-accent-primary); font-style: italic; }
.h-sub {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--z-text-primary);
}
.h-sub em { color: var(--z-accent-primary); font-style: italic; }

.deck-text {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--z-text-secondary);
  margin: 0;
}
.deck-text em { color: var(--z-text-primary); font-style: italic; }

.body-text {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--z-text-secondary);
  margin: 0;
}
.body-text strong { color: var(--z-text-primary); font-weight: 700; }

.label-tag {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--z-text-secondary);
}

/* Cover */
.cover-pad {
  padding: 80px 96px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cover-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cover-brand { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--z-text-primary); }
.cover-brand .dot { color: var(--z-accent-primary); }
.cover-num { font-weight: 700; font-size: 13px; color: var(--z-text-secondary); letter-spacing: 0.18em; text-transform: uppercase; }
.cover-lede {
  margin-top: 32px;
  max-width: 880px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--z-text-secondary);
  font-weight: 400;
}
.cover-lede em { color: var(--z-text-primary); font-style: italic; }
.cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--z-border-default);
  padding-top: 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--z-text-secondary);
  font-weight: 700;
}

/* Section header */
.section-pad {
  padding: 80px 96px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: end;
  height: 100%;
  box-sizing: border-box;
}
.section-num {
  font-weight: 800;
  font-size: 320px;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--z-accent-primary);
  font-feature-settings: "tnum";
}
.section-right { padding-bottom: 40px; }
.section-kicker {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--z-text-secondary);
  margin-bottom: 28px;
}
.section-deck {
  font-size: 22px;
  line-height: 1.4;
  color: var(--z-text-secondary);
  max-width: 720px;
  margin-top: 32px;
}
.section-deck em { color: var(--z-text-primary); font-style: italic; }

/* Pull quote */
.pull-pad {
  padding: 80px 120px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.pull-quote {
  font-weight: 800;
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--z-text-primary);
  margin: 0;
}
.pull-quote em { color: var(--z-accent-primary); font-style: italic; }
.pull-attr { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--z-text-secondary); font-weight: 700; }

/* Card / panel */
.card {
  background: var(--z-surface-card);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.card-elevated { background: var(--z-surface-elevated); }
.card-orange { background: var(--z-accent-primary); color: var(--z-text-inverse); }
.card-orange .body-text { color: rgba(26,26,26,0.75); }
.card-orange .body-text strong { color: var(--z-text-inverse); }
.card-orange .label-tag { color: rgba(26,26,26,0.65); }

.card .card-num {
  font-weight: 800; font-size: 13px; color: var(--z-accent-primary); letter-spacing: 0.2em; text-transform: uppercase;
}
.card-orange .card-num { color: var(--z-text-inverse); opacity: 0.7; }
.card .card-title {
  font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--z-text-primary); margin: 12px 0 12px;
}
.card-orange .card-title { color: var(--z-text-inverse); }

/* Code block */
.codeblock {
  background: #0e0e0e;
  border: 1px solid var(--z-border-default);
  border-radius: 4px;
  padding: 24px 28px;
  font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--z-text-primary);
  white-space: pre;
  overflow: hidden;
}
.codeblock .c-comment { color: var(--z-text-tertiary); }
.codeblock .c-dir { color: var(--z-accent-blue); font-weight: 700; }
.codeblock .c-key { color: var(--z-accent-teal); }
.codeblock .c-accent { color: var(--z-accent-primary); font-weight: 700; }

/* Tables */
.dtable { width: 100%; border-collapse: separate; border-spacing: 0; }
.dtable th, .dtable td {
  text-align: left;
  font-size: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--z-border-default);
  vertical-align: top;
}
.dtable th {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--z-text-secondary);
  border-bottom: 1px solid var(--z-border-default);
  padding-bottom: 14px;
}
.dtable td.head { font-weight: 800; color: var(--z-text-primary); font-size: 18px; }
.dtable td.muted { color: var(--z-text-secondary); }
.dtable .pass { color: var(--z-accent-teal); font-weight: 800; }
.dtable .fail { color: var(--z-accent-red); font-weight: 800; }
.dtable .meh { color: var(--z-text-secondary); font-weight: 700; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .stat-num {
  font-weight: 800;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--z-text-primary);
}
.stat .stat-num em { color: var(--z-accent-primary); font-style: normal; }
.stat .stat-label {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--z-text-secondary);
  font-weight: 400;
}
.stat .stat-label strong { color: var(--z-text-primary); font-weight: 700; }

/* Two-column header layout */
.two-col-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

/* Helper rows */
.row { display: flex; gap: 24px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.spacer { flex: 1; }

/* Inline accent text */
.t-accent { color: var(--z-accent-primary); }
.t-teal   { color: var(--z-accent-teal); }
.t-red    { color: var(--z-accent-red); }
.t-primary { color: var(--z-text-primary); }
.t-mono { font-family: 'JetBrains Mono', monospace; }

/* Live dot */
.live-dot {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--z-accent-red); font-weight: 800; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--z-accent-red); }
.live-dot.is-prod { color: var(--z-accent-green); }
.live-dot.is-prod::before { background: var(--z-accent-green); }

/* Bulleted list */
.bullets { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; width: 100%; align-self: stretch; }
.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 16px; line-height: 1.4; color: var(--z-text-secondary); font-weight: 400;
}
.bullets li::before {
  content: '—';
  color: var(--z-accent-primary);
  font-weight: 800;
  position: absolute;
  left: 0;
  top: 0;
}
.bullets li strong { color: var(--z-text-primary); font-weight: 700; }

/* Numbered list */
.numbers { display: flex; flex-direction: column; gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: ni; }
.numbers li {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  counter-increment: ni;
}
.numbers li::before {
  content: counter(ni, decimal-leading-zero);
  font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.02em;
  color: var(--z-accent-primary); font-feature-settings: "tnum";
}
.numbers li .ntitle { font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--z-text-primary); margin: 0 0 6px; }
.numbers li .ntext { font-size: 16px; line-height: 1.45; color: var(--z-text-secondary); margin: 0; }

/* Timeline horizontal */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 24px;
  padding-top: 28px;
}
.timeline::before {
  content: ''; position: absolute; top: 8px; left: 6px; right: 6px; height: 2px; background: var(--z-border-default);
}
.timeline .tnode {
  position: relative;
  padding-top: 30px;
}
.timeline .tnode::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--z-surface-base);
  border: 2px solid var(--z-text-secondary);
}
.timeline .tnode.now::before { background: var(--z-accent-primary); border-color: var(--z-accent-primary); }
.timeline .tnode.beta::before { background: var(--z-accent-blue, #4493F8); border-color: var(--z-accent-blue, #4493F8); }
.timeline .tnode.dev::before { background: var(--z-accent-yellow, #E8B23A); border-color: var(--z-accent-yellow, #E8B23A); }
.timeline .tnode.live::before { background: var(--z-accent-green); border-color: var(--z-accent-green); }
.timeline .tnode .tdate { font-weight: 800; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--z-text-secondary); margin-bottom: 6px; }
.timeline .tnode .ttitle { font-weight: 800; font-size: 18px; color: var(--z-text-primary); line-height: 1.2; margin-bottom: 6px; }
.timeline .tnode .tnote { font-size: 13px; color: var(--z-text-secondary); line-height: 1.4; }

/* Matrix */
.matrix {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: start;
}
.matrix-x {
  align-self: start;
  font: 300 56px/1 Compasse, sans-serif;
  color: var(--z-accent-primary);
  text-align: center;
  padding-top: 28px;
  user-select: none;
  opacity: 0.7;
}
.matrix .col-head {
  font-weight: 800; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--z-accent-primary);
  margin-bottom: 16px;
}
.matrix .chip {
  background: var(--z-surface-card);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--z-text-primary);
  margin-bottom: 8px;
  font-weight: 400;
}
.matrix .chip.hi { background: var(--z-surface-elevated); color: var(--z-text-primary); font-weight: 700; }
.matrix .chip.fade { color: var(--z-text-secondary); }

