/* deck.css — slide-level styling for MindFile investor deck template
   Loaded by Investor Deck.html. Uses tokens from colors_and_type.css. */

/* ──────────────────────────────────────────────────────────────
   Stage chrome
   ────────────────────────────────────────────────────────────── */
html, body { background: #000; margin: 0; }
deck-stage:not(:defined) { visibility: hidden; }

deck-stage {
  --accent: var(--primary);          /* periwinkle by default */
  --accent-soft: rgba(193, 193, 254, 0.10);
  --accent-line: rgba(193, 193, 254, 0.35);
  --slide-bg: var(--surface);
  --slide-bg-alt: var(--surface-low);
  --headline: var(--font-headline);
}

/* Surface light mode (Tweak) */
deck-stage[data-mode="light"] {
  --slide-bg: #f5f3ee;
  --slide-bg-alt: #ece8df;
  --on-surface: #1a1a1f;
  --on-surface-variant: #3c3c44;
  --on-surface-muted: #6a6a72;
  --outline-variant: rgba(0,0,0,0.08);
  --glass-bg: rgba(255,255,255,0.55);
  --glass-border: 1px solid rgba(0,0,0,0.06);
  --tertiary: #6f5d3a;
}

/* Headline font tweak: sans-led */
deck-stage[data-headline="sans"] {
  --headline: var(--font-body);
}

/* Accent tweak overrides */
deck-stage[data-accent="sage"]     { --accent:#bacbbb; --accent-soft:rgba(186,203,187,0.10); --accent-line:rgba(186,203,187,0.35); }
deck-stage[data-accent="sand"]     { --accent:#d6c5a5; --accent-soft:rgba(214,197,165,0.10); --accent-line:rgba(214,197,165,0.40); }
deck-stage[data-accent="periwinkle"] { --accent:#c1c1fe; }

/* ──────────────────────────────────────────────────────────────
   Slide base — every <section> child of <deck-stage>
   ────────────────────────────────────────────────────────────── */
deck-stage > section {
  position: relative;
  width: 1920px;
  height: 1080px;
  background: var(--slide-bg);
  color: var(--on-surface);
  font-family: var(--font-body);
  overflow: hidden;
  padding: 96px 128px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

deck-stage > section[data-bg="alt"] {
  background: var(--slide-bg-alt);
}

deck-stage > section[data-bg="cover"] {
  background:
    radial-gradient(at 30% 20%, rgba(193, 193, 254, 0.10) 0%, transparent 55%),
    radial-gradient(at 70% 80%, rgba(186, 203, 187, 0.06) 0%, transparent 55%),
    var(--slide-bg);
}

deck-stage[data-mode="light"] > section[data-bg="cover"] {
  background:
    radial-gradient(at 30% 20%, rgba(193, 193, 254, 0.30) 0%, transparent 55%),
    radial-gradient(at 70% 80%, rgba(214, 197, 165, 0.25) 0%, transparent 55%),
    var(--slide-bg);
}

/* ──────────────────────────────────────────────────────────────
   Header strip — eyebrow + slide number + brand mark
   ────────────────────────────────────────────────────────────── */
.slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}
.slide-head .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--headline);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}
.slide-head .brand img { width: 28px; height: 28px; border-radius: 6px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.slide-no {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--on-surface-muted);
  font-variant-numeric: tabular-nums;
}

/* ──────────────────────────────────────────────────────────────
   Type ramp specific to slides (1920px stage — bigger than web)
   ────────────────────────────────────────────────────────────── */
.s-display {
  font-family: var(--headline);
  font-weight: 500;
  font-size: 132px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--on-surface);
}
.s-h1 {
  font-family: var(--headline);
  font-weight: 500;
  font-size: 84px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}
.s-h2 {
  font-family: var(--headline);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--on-surface);
}
.s-action-title {
  font-family: var(--headline);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  max-width: 1500px;
  text-wrap: balance;
}
.s-italic { font-style: italic; color: var(--accent); font-weight: 400; }

.s-lede {
  font-family: var(--font-body);
  font-size: 26px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(197, 198, 204, 0.85);
  max-width: 1280px;
}
deck-stage[data-mode="light"] .s-lede { color: rgba(60,60,68,0.85); }

.s-body {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  color: rgba(197, 198, 204, 0.7);
}
deck-stage[data-mode="light"] .s-body { color: rgba(60,60,68,0.78); }

.s-small {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-surface-muted);
}

.s-mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--on-surface-muted);
}

/* Italic accent word — the brand's load-bearing move */
.accent-italic {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ──────────────────────────────────────────────────────────────
   Glass card (signature surface)
   ────────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 24px;
}

/* ──────────────────────────────────────────────────────────────
   Footer strip
   ────────────────────────────────────────────────────────────── */
.slide-foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(143, 144, 150, 0.6);
  letter-spacing: 0.04em;
}
deck-stage[data-mode="light"] .slide-foot { color: rgba(60,60,68,0.5); }

/* ──────────────────────────────────────────────────────────────
   McKinsey annotations — togglable callouts on slides
   ────────────────────────────────────────────────────────────── */
.mck-anno {
  position: absolute;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(193, 193, 254, 0.06);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 6px 10px;
  pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.mck-anno::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.mck-anno .arrow {
  position: absolute;
  pointer-events: none;
}

deck-stage:not([data-mck="on"]) .mck-anno { display: none; }

/* ──────────────────────────────────────────────────────────────
   Reusable bits used by individual slides
   ────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--outline-variant);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.kpi-num {
  font-family: var(--headline);
  font-weight: 500;
  font-size: 200px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--on-surface);
}
.kpi-num .unit {
  font-size: 96px;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  gap: 32px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--outline-variant);
}
.bar-row:last-child { border-bottom: 1px solid var(--outline-variant); }
.bar-row .label { font-size: 22px; color: var(--on-surface); font-weight: 500; }
.bar-row .num { font-family: var(--headline); font-size: 32px; color: var(--on-surface); text-align: right; font-variant-numeric: tabular-nums; }
.bar-row .track { height: 14px; background: rgba(255,255,255,0.04); border-radius: 999px; position: relative; overflow: hidden; }
deck-stage[data-mode="light"] .bar-row .track { background: rgba(0,0,0,0.06); }
.bar-row .fill { position:absolute; left:0; top:0; bottom:0; background: var(--accent); border-radius: 999px; }
.bar-row .fill[data-tone="muted"] { background: var(--on-surface-muted); opacity: 0.45; }

/* table */
.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.metrics-table th, .metrics-table td {
  text-align: left;
  padding: 22px 20px;
  border-bottom: 1px solid var(--outline-variant);
}
.metrics-table th {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--on-surface-muted);
}
.metrics-table td { font-size: 22px; color: var(--on-surface); font-variant-numeric: tabular-nums; }
.metrics-table td.metric-label { font-weight: 500; }
.metrics-table td.metric-up { color: var(--secondary); }
.metrics-table td.metric-strong { color: var(--accent); font-style: italic; font-family: var(--headline); font-size: 26px; }

/* svg defaults */
svg.chart text { font-family: var(--font-body); fill: var(--on-surface-muted); }
