/* ─────────────────────────────────────────────────────────────────
   VIGOUR TECH PITCH DECK — Design System
   Aesthetic: editorial / strategy serif. Confident, sharp, clear.
   ────────────────────────────────────────────────────────────── */

:root {
  /* ── Brand palette (light) ── */
  --paper:        #f5f1ea;   /* warm off-white, the canvas */
  --paper-2:      #ebe5d8;   /* secondary paper for layering */
  --ink:          #14110c;   /* near-black, body type */
  --ink-2:        #2d2820;   /* softer ink for sub-text */
  --ink-3:        #6b6453;   /* tertiary, captions */
  --rule:         #14110c;   /* hairline rules — same as ink */
  --rule-soft:    rgba(20,17,12,.18);

  /* Single accent — used sparingly, like a magazine pull-quote color */
  --accent:       #c4421a;   /* burnt vermillion */
  --accent-soft:  #e8d5c2;   /* dusty peach for fills */
  --accent-deep:  #7a2410;

  /* Tertiaries for data viz only */
  --teal:         #1f5752;
  --mustard:      #c89b3a;
  --slate:        #3a4654;

  /* Type */
  --serif:        'Fraunces', 'Source Serif Pro', 'Iowan Old Style', Georgia, serif;
  --sans:         'Inter Tight', 'Söhne', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:         'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;

  /* Spacing — slide is 1920×1080 */
  --gutter:       96px;
  --gutter-sm:    48px;
  --col-gap:      48px;
}

/* ── Dark theme overrides ── */
:root[data-theme="dark"] {
  --paper:        #14110c;
  --paper-2:      #1d1a14;
  --ink:          #f5f1ea;
  --ink-2:        #d4cfc2;
  --ink-3:        #8a8170;
  --rule:         #f5f1ea;
  --rule-soft:    rgba(245,241,234,.22);
  --accent:       #e8704a;
  --accent-soft:  #3d2418;
  --accent-deep:  #f5a07d;
}

/* ── Reset / base ── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Slide canvas ── */
.slide {
  width: 1920px;
  height: 1080px;
  background: var(--paper);
  color: var(--ink);
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.slide.tight { padding: 64px 80px; }

/* ── Header rail (top of every content slide) ── */
.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.rail .left { display: flex; align-items: center; gap: 18px; }
.rail .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 20px;
  color: var(--ink-3);
}
.rail .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.rail .right {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: 18px;
  color: var(--ink-3);
  font-weight: 400;
}

/* ── Footer rail ── */
.foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot .brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 18px;
  color: var(--ink);
}

/* ── Type scale ── */
.eyebrow {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 144px;
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h-display em { font-style: italic; color: var(--accent); }

.h-1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h-1 em { font-style: italic; color: var(--accent); }

.h-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
.h-2 em { font-style: italic; color: var(--accent); }

.h-3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 32ch;
}

.body {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}
.body strong { color: var(--ink); font-weight: 600; }

.small {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-3);
}

.caps {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mono {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0;
}

/* ── Big numbers / stats ── */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat .num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 92px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.stat .num em { font-style: italic; color: var(--accent); }
.stat .lbl {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Tables (data heavy) ── */
table.editorial {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink-2);
}
table.editorial th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid var(--rule);
}
table.editorial td {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  line-height: 1.35;
}
table.editorial td:last-child, table.editorial th:last-child { padding-right: 0; }
table.editorial td strong { color: var(--ink); font-weight: 600; }
table.editorial tr.accent td { color: var(--ink); }
table.editorial tr.accent td:first-child {
  position: relative;
}
table.editorial .stage-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
}

/* ── Pull quote ── */
.pull {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
  position: relative;
}
.pull em { font-style: italic; color: var(--accent); }
.pull::before {
  content: "“";
  position: absolute;
  left: -52px;
  top: -28px;
  font-size: 144px;
  color: var(--accent);
  font-family: var(--serif);
  line-height: 1;
}

/* ── Cards / panels ── */
.panel {
  background: var(--paper-2);
  padding: 36px;
  border-radius: 0;
  border-left: 3px solid var(--ink);
}
.panel .caps { margin-bottom: 14px; }

.card {
  border: 1px solid var(--rule);
  padding: 28px;
  background: var(--paper);
}
.card .caps { margin-bottom: 12px; color: var(--accent); }

/* ── Stage tag (used in narrative slides) ── */
.stage-marker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stage-marker .circ {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
}

/* ── Bullets ── */
ul.editorial {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
ul.editorial li {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  text-wrap: pretty;
}
ul.editorial li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 10px; height: 1px;
  background: var(--ink);
}
ul.editorial li strong { color: var(--ink); font-weight: 600; }

/* ── Density modes ── */
:root[data-density="presentation"] .body { font-size: 22px; }
:root[data-density="presentation"] ul.editorial li { font-size: 21px; }
:root[data-density="presentation"] table.editorial { font-size: 18px; }
:root[data-density="presentation"] .read-only { display: none; }

:root[data-density="read"] .pres-only { display: none; }

/* ── Audience switch (cofounder vs investor) ── */
:root[data-audience="investor"] .cofounder-only { display: none; }
:root[data-audience="cofounder"] .investor-only { display: none; }

/* ── Currency switching ── */
.cur { font-variant-numeric: tabular-nums; }
:root[data-currency="usd"] .cur-zar,
:root[data-currency="usd"] .cur-gbp { display: none; }
:root[data-currency="zar"] .cur-usd,
:root[data-currency="zar"] .cur-gbp { display: none; }
:root[data-currency="gbp"] .cur-usd,
:root[data-currency="gbp"] .cur-zar { display: none; }

/* ── Dark theme tweaks for tables/panels ── */
:root[data-theme="dark"] .panel { background: var(--paper-2); }
:root[data-theme="dark"] .stat .num { color: var(--ink); }

/* ── Decorative ornaments ── */
.ornament {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
}

/* ── Slide number badge (top right alt) ── */
.slide-no {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-3);
  letter-spacing: 0;
}

/* Page-flag for slides w/ accent backgrounds */
.slide.bg-ink { background: var(--ink); color: var(--paper); }
.slide.bg-ink .rail, .slide.bg-ink .foot { color: var(--paper); border-color: var(--paper); }
.slide.bg-ink .rail .right, .slide.bg-ink .rail .num,
.slide.bg-ink .foot, .slide.bg-ink .small, .slide.bg-ink .h-display em,
.slide.bg-ink .h-1 em, .slide.bg-ink .h-2 em { color: var(--accent); }
.slide.bg-ink .body, .slide.bg-ink .lede { color: var(--paper); opacity: 0.88; }
.slide.bg-ink ul.editorial li::before { background: var(--paper); }
.slide.bg-ink ul.editorial li { color: var(--paper); opacity: 0.88; }
.slide.bg-ink ul.editorial li strong { color: var(--paper); opacity: 1; }

.slide.bg-accent { background: var(--accent-soft); }

/* ── Photo figures (real product visuals) ─────────────────── */
.hero-figure,
.phone-figure,
.strip-figure {
  position: relative;
  display: block;
  margin: 0;
  background: var(--ink);
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 6px;
}

.hero-figure {
  width: 100%;
  height: 100%;
  min-height: 720px;
  border-radius: 0;
  border-top: 3px solid var(--accent);
}

.hero-figure img,
.hero-figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.phone-figure {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4f1ea 0%, #e9e3d5 100%);
  border-color: var(--rule);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(28, 23, 18, 0.18), 0 2px 6px rgba(28, 23, 18, 0.08);
}

.strip-figure {
  width: 100%;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

.strip-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-figure figcaption,
.strip-figure figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  background: rgba(28, 23, 18, 0.78);
  color: var(--paper);
  padding: 6px 12px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}
.hero-figure figcaption .caps,
.strip-figure figcaption .caps {
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* "Live" badge for capture stills */
.hero-figure::before,
.strip-figure::before {
  content: "● LIVE CAPTURE";
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: rgba(193, 78, 49, 0.92);
  padding: 5px 10px;
  border-radius: 2px;
  z-index: 2;
}

/* ── Print/export ── */
@media print {
  body { background: white; }
}
