/* ── S&P Shared Styles ───────────────────────────────────────────────────────
   Imported by: pitch.html · business-model.html · gtm.html · pitch-mobile.html
   Do not import into knowledge-graph.html (uses its own isolated theme).
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  --saffron:      #E8682A;
  --saffron-text: #B04D17;
  --dark:         #1C1C1E;
  --offwhite:     #F5F2EE;
  --muted:        #767676;
  --rule:     #E2DDD8;
  --card:     #FFFFFF;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
}

/* ── Typography ── */
h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}
h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}
h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }

p, li { font-size: 14px; line-height: 1.65; color: #3a3a3a; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: 16px;
}
.tagline {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 400;
  opacity: .7;
  margin-top: 18px;
  max-width: 560px;
  line-height: 1.5;
}
.hi { color: var(--saffron-text); }

/* ── Rule ── */
hr.rule { border: none; border-top: 2px solid var(--rule); margin: 20px 0; }

/* ── Pill badge ── */
.pill {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

/* ── Quote ── */
blockquote.deck-quote {
  border-left: 4px solid var(--saffron);
  padding: 14px 20px;
  background: #fff;
  border-radius: 0 12px 12px 0;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--dark);
}

/* ── Card grid ── */
.cards   { display: grid; gap: 14px; margin-top: 20px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: 1fr 1fr 1fr; }
.cards-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
}
.card-accent { background: var(--saffron-text); border: none; color: #fff; }
.card-accent h3, .card-accent p { color: #fff; }
.card-dark { background: var(--dark); border: none; }
.card-dark h3 { color: var(--offwhite); }
.card-dark p  { color: rgba(245,242,238,.7); }
.card-icon { font-size: 22px; margin-bottom: 8px; display: block; }

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 20px;
  align-items: start;
}
.two-col-60 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 36px;
  margin-top: 20px;
  align-items: start;
}

/* ── List styles ── */
ul.clean { list-style: none; }
ul.clean li {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
ul.clean li::before {
  content: '→';
  color: var(--saffron);
  font-weight: 700;
  flex-shrink: 0;
}
ul.clean li:last-child { border-bottom: none; }

/* ── Stat blocks ── */
.stats { display: flex; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.stat {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 22px;
  flex: 1;
  min-width: 130px;
  border: 1px solid var(--rule);
}
.stat .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 5px;
}
.stat .label { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.4; }

/* ── Table ── */
table.deck-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 13px;
}
table.deck-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 10px;
  border-bottom: 2px solid var(--rule);
}
table.deck-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.45;
}
table.deck-table tr:last-child td { border-bottom: none; }
table.deck-table .hi-cell { color: var(--saffron); font-weight: 700; }
table.deck-table .yes  { color: #2a9d2a; font-weight: 700; }
table.deck-table .no   { color: #bbb; }
table.deck-table .muted { color: var(--muted); }

/* ── Slide deck infrastructure ── */
.deck {
  width: 100vw;
  height: 100vh;
  position: relative;
}
.slide {
  display: none;
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
  padding: 60px 80px;
  flex-direction: column;
  justify-content: center;
}
.slide.active { display: flex; }

.slide-cover  { background: var(--dark);    color: var(--offwhite); }
.slide-light  { background: var(--offwhite); }
.slide-accent { background: var(--saffron); color: #fff; }
.slide-split  { background: var(--offwhite); }

/* Theme overrides for typography */
.slide-cover  .eyebrow { color: var(--offwhite); opacity: .6; }
.slide-accent .eyebrow { color: rgba(255,255,255,.7); }
.slide-cover  .tagline { color: var(--offwhite); }
.slide-cover  p, .slide-cover li { color: var(--offwhite); }
.slide-accent p, .slide-accent li { color: rgba(255,255,255,.9); }
.slide-accent .hi, .slide-cover .hi { color: #FFD580; }
.slide-cover  hr.rule  { border-color: rgba(255,255,255,.15); }
.slide-accent hr.rule  { border-color: rgba(255,255,255,.3); }

/* Navigation */
.nav {
  position: fixed;
  bottom: 24px; right: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
}
.nav button {
  background: var(--saffron);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
}
.nav button:hover   { opacity: .8; }
.nav button:disabled { background: #ccc; cursor: default; }
.slide-num { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 44px; text-align: center; }

/* Progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--saffron);
  transition: width .25s ease;
  z-index: 100;
}

/* Wordmark */
.wordmark {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--saffron);
  position: fixed;
  top: 24px; left: 36px;
  z-index: 100;
}

/* Keyboard hint */
.key-hint {
  position: fixed;
  bottom: 24px; left: 36px;
  font-size: 11px;
  color: var(--muted);
  z-index: 100;
}

/* Phase timeline */
.phases {
  display: flex;
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.phase {
  flex: 1;
  padding: 20px 18px;
  border-right: 1px solid var(--rule);
  background: var(--card);
}
.phase:last-child { border-right: none; }
.phase.active-phase { background: var(--saffron); }
.phase.active-phase h3 { color: #fff; }
.phase.active-phase p  { color: rgba(255,255,255,.85); }
.phase-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.phase.active-phase .phase-label { color: rgba(255,255,255,.7); }

/* ── Utility classes ── */
.mt-8  { margin-top:  8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }

.mb-0  { margin-bottom:  0; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

.gap-8  { gap:  8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-28 { gap: 28px; }
.gap-32 { gap: 32px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-wrap   { flex-wrap: wrap; }
.w-full      { width: 100%; }

.text-xs      { font-size: 11px; }
.text-sm      { font-size: 12px; }
.text-muted   { color: var(--muted); }
.text-saffron { color: var(--saffron); }
.text-offwhite{ color: var(--offwhite); }
.text-dark    { color: var(--dark); }
.font-600     { font-weight: 600; }
.font-700     { font-weight: 700; }

.opacity-40 { opacity: .4; }
.opacity-55 { opacity: .55; }
.opacity-70 { opacity: .7; }

.border-b    { border-bottom: 1px solid var(--rule); }
.border-rule { border: 1px solid var(--rule); }
.rounded-md  { border-radius: 12px; }
.p-20        { padding: 20px; }

/* ── Mobile (slide decks) ── */
@media (max-width: 768px) {
  body { overflow: auto; }

  .deck { height: auto; min-height: 100vh; }
  .slide {
    position: relative;
    display: none;
    height: auto;
    min-height: 100vh;
    padding: 56px 20px 80px;
    justify-content: flex-start;
  }
  .slide.active { display: flex; }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 15px; }

  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .grid-2,  .grid-3             { grid-template-columns: 1fr; }
  .two-col, .two-col-60         { grid-template-columns: 1fr; gap: 20px; }
  .stats    { flex-direction: column; gap: 12px; }
  .phases   { flex-direction: column; }
  .phase    { border-right: none; border-bottom: 1px solid var(--rule); }
  .phase:last-child { border-bottom: none; }

  table.deck-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 12px; }
  table.deck-table th,
  table.deck-table td { padding: 6px 8px; }

  table.deck-table.stack-mobile thead { display: none; }
  table.deck-table.stack-mobile tbody,
  table.deck-table.stack-mobile tr,
  table.deck-table.stack-mobile td { display: block; width: 100%; }
  table.deck-table.stack-mobile tr {
    border: 1px solid var(--rule);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  table.deck-table.stack-mobile td { border-bottom: 1px solid var(--rule); padding: 8px 12px; }
  table.deck-table.stack-mobile td:last-child { border-bottom: none; }
  table.deck-table.stack-mobile td:first-child { background: rgba(232,104,42,.06); }

  .nav      { bottom: 16px; right: 16px; }
  .wordmark { top: 16px; left: 16px; }
  .key-hint { display: none; }
}
