/* ====== ELEVARE DECK — DESIGN TOKENS ====== */
:root {
  /* brand */
  --teal: #009C97;
  --teal-deep: #00736F;
  --forest: #1F4A39;
  --blue: #0E4894;
  --blue-soft: #4B8CE2;
  --purple: #520A61;

  /* neutrals */
  --ink: #0E0E0E;
  --ink-2: #1A1A1A;
  --ink-3: #2A2A2A;
  --paper: #FAFAF7;
  --paper-2: #F2F1EC;
  --line: #E5E3DD;
  --line-dark: rgba(255,255,255,0.12);
  --muted: #6E6E68;
  --muted-dark: rgba(250,250,247,0.55);

  /* type scale (px @ 1920×1080) */
  --t-display: 116px;
  --t-mega: 240px;
  --t-h1: 88px;
  --t-h2: 64px;
  --t-h3: 44px;
  --t-body: 30px;
  --t-small: 24px;
  --t-mono: 24px;

  /* spacing */
  --pad-x: 100px;
  --pad-top: 72px;
  --pad-bottom: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

deck-stage { background: #000; }

/* ====== SLIDE BASE ====== */
section.slide {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--paper);
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

section.slide.dark {
  background: var(--ink);
  color: var(--paper);
}
section.slide.teal {
  background: var(--teal);
  color: var(--paper);
}
section.slide.forest {
  background: var(--forest);
  color: var(--paper);
}
section.slide.blue {
  background: var(--blue);
  color: var(--paper);
}

/* ====== COVER (slide 01) — gradiente harmônico azul Elevare ====== */
section.slide.cover {
  background:
    radial-gradient(120% 80% at 18% 12%, rgba(75, 140, 226, 0.28) 0%, rgba(75, 140, 226, 0) 55%),
    radial-gradient(90% 70% at 92% 95%, rgba(0, 156, 151, 0.18) 0%, rgba(0, 156, 151, 0) 50%),
    linear-gradient(135deg, #0A3578 0%, #0E4894 38%, #103E7E 72%, #0B2C5E 100%);
  color: var(--paper);
}

/* ====== HEADER (top chrome) ====== */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.dark .head, .teal .head, .forest .head, .blue .head {
  color: var(--muted-dark);
  border-bottom-color: var(--line-dark);
}
.head .mark {
  display: flex;
  align-items: center;
  gap: 14px;
}
.head .mark .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.dark .head .mark .dot,
.forest .head .mark .dot,
.blue .head .mark .dot { background: var(--paper); }
.teal .head .mark .dot { background: var(--paper); }
.head .crumbs { display: flex; gap: 28px; }
.head .crumbs span.active { color: var(--ink); }
.dark .head .crumbs span.active,
.teal .head .crumbs span.active,
.forest .head .crumbs span.active,
.blue .head .crumbs span.active { color: var(--paper); }

/* ====== FOOTER (slide number + label) ====== */
.foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.dark .foot, .teal .foot, .forest .foot, .blue .foot {
  color: var(--muted-dark);
  border-top-color: var(--line-dark);
}

/* ====== TYPOGRAPHY ====== */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.dark .eyebrow,
.teal .eyebrow,
.forest .eyebrow,
.blue .eyebrow { color: rgba(250,250,247,0.7); }
.teal .eyebrow { color: rgba(255,255,255,0.85); }

h1.display {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: var(--t-display);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-wrap: balance;
}
h1.h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: var(--t-h1);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}
h2.h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}
h3.h3 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: var(--t-h3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
p.body {
  font-size: var(--t-body);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 22ch;
}
.dark p.body, .teal p.body, .forest p.body, .blue p.body { color: rgba(250,250,247,0.78); }
p.lede {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: pretty;
  max-width: 28ch;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* numbers */
.numeral {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-feature-settings: "tnum", "ss01";
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.numeral.mega { font-size: var(--t-mega); }
.numeral.big  { font-size: 180px; }
.numeral.med  { font-size: 120px; }

/* hairline rule */
.rule { height: 1px; background: var(--line); width: 100%; }
.dark .rule, .teal .rule, .forest .rule, .blue .rule { background: var(--line-dark); }

/* image placeholder */
.placeholder {
  background:
    repeating-linear-gradient(135deg,
      transparent 0 22px,
      rgba(0,0,0,0.04) 22px 23px);
  background-color: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dark .placeholder {
  background-color: var(--ink-2);
  background-image: repeating-linear-gradient(135deg,
    transparent 0 22px,
    rgba(255,255,255,0.04) 22px 23px);
  color: var(--muted-dark);
}

/* layout helpers */
.body-grid {
  flex: 1;
  display: grid;
  gap: 56px;
  margin-top: 56px;
}
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.col-stack { display: flex; flex-direction: column; gap: 24px; }
.row-baseline { display: flex; align-items: baseline; gap: 24px; }

/* enumerated lists */
ol.enumerated, ul.enumerated {
  list-style: none;
  display: flex;
  flex-direction: column;
}
ol.enumerated li, ul.enumerated li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-h3);
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  align-items: baseline;
}
ol.enumerated li:last-child, ul.enumerated li:last-child {
  border-bottom: 1px solid var(--line);
}
.dark ol.enumerated li, .dark ul.enumerated li,
.teal ol.enumerated li, .teal ul.enumerated li,
.forest ol.enumerated li, .forest ul.enumerated li,
.blue ol.enumerated li, .blue ul.enumerated li {
  border-color: var(--line-dark);
}
ol.enumerated li .idx, ul.enumerated li .idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 10px;
}
.dark ol.enumerated li .idx,
.dark ul.enumerated li .idx { color: var(--muted-dark); }

/* metric block */
.metric {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.metric .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dark .metric .label, .teal .metric .label,
.forest .metric .label, .blue .metric .label { color: var(--muted-dark); }
.metric .desc {
  font-size: var(--t-small);
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 28ch;
}
.dark .metric .desc, .teal .metric .desc,
.forest .metric .desc, .blue .metric .desc { color: rgba(250,250,247,0.7); }

/* simple key-value table */
.kv {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 32px;
  align-items: baseline;
}
.kv > .k {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dark .kv > .k, .teal .kv > .k, .forest .kv > .k, .blue .kv > .k { color: var(--muted-dark); }
.kv > .v {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 500;
}
.kv > .n {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: var(--t-h3);
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--teal);
}
.dark .kv > .n { color: var(--teal); }
.teal .kv > .n, .forest .kv > .n, .blue .kv > .n { color: var(--paper); }

/* row separator inside kv (apply to .row span) */
.kv-row {
  display: contents;
}
.kv-row > * { padding: 18px 0; border-top: 1px solid var(--line); }
.kv-row.first > * { border-top: none; padding-top: 0; }
.dark .kv-row > *, .teal .kv-row > *,
.forest .kv-row > *, .blue .kv-row > * { border-top-color: var(--line-dark); }

/* logo */
.logo-mark {
  height: 22px;
  width: auto;
  aspect-ratio: 1786 / 459;
  display: inline-block;
}
.logo-mark.lg { height: 96px; }
.logo-mark.xl { height: 140px; }

/* section header (chapter divider) */
section.chapter {
  background: var(--ink);
  color: var(--paper);
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  flex-direction: column;
}
section.chapter.teal { background: var(--teal); }
section.chapter.forest { background: var(--forest); }
section.chapter.blue { background: var(--blue); }

section.chapter .ch-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
section.chapter .ch-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: var(--t-display);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-top: auto;
  text-wrap: balance;
}
section.chapter .ch-meta {
  display: flex;
  gap: 96px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
section.chapter .ch-meta .label { opacity: 0.55; display: block; margin-bottom: 8px; }

/* utility: full-bleed inside slide padding */
.bleed-bottom {
  margin-left: calc(-1 * var(--pad-x));
  margin-right: calc(-1 * var(--pad-x));
  margin-bottom: calc(-1 * var(--pad-bottom));
}
.bleed-all {
  margin: calc(-1 * var(--pad-top)) calc(-1 * var(--pad-x)) calc(-1 * var(--pad-bottom));
}
