/* =========================================================
   Kav AI Platform Promo Deck — slide styles
   Built on colors_and_type.css tokens
   Canvas: 1920 × 1080
   ========================================================= */

/* ---- Projection-appropriate type scale ---- */
/* At 1920×1080 slides must read from the back of the room.
   Web defaults (16px body) are too small — these constants lock us in. */
.deck {
  --slide-title: 72px;
  --slide-title-sm: 56px;
  --slide-hero: 112px;
  --slide-subtitle: 40px;
  --slide-body: 28px;
  --slide-body-lg: 32px;
  --slide-small: 22px;
  --slide-eyebrow: 20px;
  --slide-mono: 20px;
  --slide-display: 180px;

  /* Spacing */
  --slide-px: 120px;
  --slide-py: 100px;
  --slide-py-bottom: 90px;
  --slide-title-gap: 56px;
  --slide-item-gap: 32px;
}

/* ---- Deck stage + slide reset ---- */
html, body {
  margin: 0;
  background: #000;
  font-family: var(--font-sans);
  overflow: hidden;
}

deck-stage { background: var(--bg-canvas); }

section[data-label] {
  background: var(--bg-canvas);
  color: var(--fg-1);
  overflow: hidden;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
}

/* Dark slide variants */
section[data-label].slide--dark {
  background: var(--kav-ink);
  color: #F1F1F8;
  --fg-1: #F1F1F8;
  --fg-2: rgba(241, 241, 248, 0.70);
  --fg-3: rgba(241, 241, 248, 0.48);
  --fg-brand: #A9AAF5;
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
}
section[data-label].slide--bone { background: var(--kav-bone); }

/* ---- Chrome (slide header / footer, shared) ---- */
.slide-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--slide-py) var(--slide-px) var(--slide-py-bottom);
  position: relative;
}

.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 48px;
  left: var(--slide-px);
  right: var(--slide-px);
  z-index: 2;
}
.slide-header .brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--fg-1);
}
.slide-header .brand-dot {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--fg-brand);
}
.slide-header .meta {
  font-family: var(--font-mono);
  font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}

.slide-footer {
  position: absolute;
  bottom: 40px; left: var(--slide-px); right: var(--slide-px);
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 64px;
  font-family: var(--font-mono);
  font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.slide-footer > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slide-footer > span:last-child {
  white-space: nowrap;
  text-align: right;
}

/* ---- Type classes (slide-scale) ---- */
.slide-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--slide-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-brand);
  margin: 0;
}
.slide-title {
  font-family: var(--font-display);
  font-size: var(--slide-title);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
.slide-title--sm {
  font-size: var(--slide-title-sm);
  line-height: 1.06;
}
.slide-hero {
  font-family: var(--font-display);
  font-size: var(--slide-hero);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.slide-display {
  font-family: var(--font-display);
  font-size: var(--slide-display);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--fg-brand);
}
.slide-subtitle {
  font-family: var(--font-sans);
  font-size: var(--slide-subtitle);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
  max-width: 1400px;
}
.slide-body {
  font-family: var(--font-sans);
  font-size: var(--slide-body);
  line-height: 1.45;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}
.slide-body--primary { color: var(--fg-1); }
.slide-body-lg {
  font-size: var(--slide-body-lg);
  line-height: 1.4;
  color: var(--fg-1);
}
.slide-small {
  font-family: var(--font-sans);
  font-size: var(--slide-small);
  line-height: 1.4;
  color: var(--fg-3);
  margin: 0;
}
.slide-mono {
  font-family: var(--font-mono);
  font-size: var(--slide-mono);
  letter-spacing: 0.02em;
  color: var(--fg-2);
}

/* ---- Shared primitives ---- */
.title-block { display: flex; flex-direction: column; gap: 24px; }
.title-block .slide-title + .slide-subtitle { margin-top: 8px; }

.rule {
  height: 1px; background: var(--border-subtle); width: 100%;
}
.rule--strong { background: var(--border-strong); }

.divider-mono {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Chip / pill */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-brand);
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.chip--ink { color: var(--fg-1); }
.chip--muted { color: var(--fg-3); border-color: var(--border-strong); }

/* Numbered step label */
.step-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--fg-brand);
}

/* Card */
.card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
}
section[data-label].slide--dark .card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}
section[data-label].slide--bone .card {
  background: var(--bg-canvas);
}

/* Metric block */
.metric-label {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  margin-bottom: 16px;
}
.metric-caption {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.4;
  color: var(--fg-2);
}

/* Footnote band */
.footnote {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.45;
  color: var(--fg-3);
  max-width: 1400px;
}

/* Layout helpers */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.row { display: flex; gap: 32px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.stack-sm { display: flex; flex-direction: column; gap: 16px; }
.spread { display: flex; justify-content: space-between; align-items: flex-start; }
.center { display: flex; align-items: center; justify-content: center; }
.flex-1 { flex: 1; }

/* Tag (hot signal) */
.tag-brand {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-brand);
  padding: 6px 14px;
  background: var(--kav-indigo-tint);
  border-radius: 4px;
}

/* Brand stripe (for section headers) */
.brand-stripe {
  width: 64px; height: 4px;
  background: var(--fg-brand);
}

/* ---- Transition ---- */
deck-stage::part(slide) {
  transition: opacity 360ms var(--ease-out);
}
