/* ==========================================================================
   RK GROUP EXECUTIVE PRESENTATION SYSTEM
   Dual-Engine Commerce Intelligence Slide Deck
   Design System Tokens & reveal.js Overrides
   ========================================================================== */

:root {
  /* Brand Primary & Accents */
  --navy-primary: #122844;
  --navy-dark: #0a1727;
  --navy-card: #183256;
  --navy-border: #2d4e7a;
  
  --steel-blue: #0369a1;
  --steel-blue-hover: #0284c7;
  --steel-blue-light: #e0f2fe;
  --steel-blue-border: #bae6fd;
  
  --amber-warning: #b45309;
  --amber-light: #fef3c7;
  --amber-border: #fde68a;
  
  --emerald-target: #059669;
  --emerald-light: #dcfce7;
  --emerald-border: #86efac;
  
  --indigo-accent: #4338ca;
  --indigo-light: #e0e7ff;
  --indigo-border: #c7d2fe;

  --crimson-risk: #dc2626;
  --crimson-light: #fee2e2;
  --crimson-border: #fca5a5;

  /* Neutrals & Text */
  --bg-white: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-elevated: #f1f5f9;
  --border-card: #e2e8f0;
  --border-subtle: #cbd5e1;

  --text-dark: #0a111a;
  --text-secondary: #27364a;
  --text-muted: #536479;
  --text-subtle: #798b9f;
  --text-light: #ffffff;
  --text-light-muted: #cbd5e1;

  /* Typography */
  --font-title: 'Besley', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
}

/* Base reveal.js resets and constraints */
.reveal-viewport {
  background-color: #0b1420;
}

.reveal {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.45;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides > section {
  padding: 30px 48px 20px 48px;
  box-sizing: border-box;
  width: 1333px;
  height: 750px;
  top: 0 !important;
  left: 0 !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
}

/* Headings reset */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: var(--font-title);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  text-shadow: none;
}

.reveal p {
  margin: 0 0 8px 0;
  line-height: 1.45;
}

.reveal ul,
.reveal ol {
  margin: 0;
  padding-left: 16px;
}

.reveal li {
  margin-bottom: 5px;
  line-height: 1.4;
}

.reveal strong {
  font-weight: 700;
  color: var(--navy-primary);
}

.reveal-dark strong {
  color: #ffffff !important;
}

/* Header Component */
.slide-header {
  flex-shrink: 0;
  margin-bottom: 14px;
}

.slide-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-kicker::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--steel-blue);
  border-radius: 1px;
}

.reveal-dark .slide-kicker {
  color: #38bdf8;
}

.reveal-dark .slide-kicker::before {
  background: #38bdf8;
}

.slide-title {
  font-family: var(--font-title);
  font-size: 25px;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 3px;
  line-height: 1.2;
}

.reveal-dark .slide-title {
  color: var(--text-light);
}

.slide-subtitle {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.reveal-dark .slide-subtitle {
  color: #94a3b8;
}

/* Content Area */
.slide-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  gap: 12px;
}

/* Footer Component */
.slide-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-card);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
}

.reveal-dark .slide-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.footer-left {
  display: flex;
  gap: 12px;
}

.footer-pill {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 600;
  color: var(--navy-primary);
}

.reveal-dark .footer-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

/* Cards & Containers - rounded-3px cards */
.card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: 3px;
  padding: 13px 16px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(10, 17, 26, 0.03);
}

.card-white {
  background: #ffffff;
}

.card-dark {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  color: var(--text-light);
  border-radius: 3px;
  padding: 15px 18px;
  box-sizing: border-box;
}

.card-dark strong {
  color: #ffffff;
}

.card-alert-amber {
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--amber-warning);
}

.card-alert-crimson {
  background: #fff8f8;
  border: 1px solid #fca5a5;
  border-left: 4px solid var(--crimson-risk);
}

.card-alert-blue {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--steel-blue);
}

.card-alert-emerald {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--emerald-target);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 7px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.badge-blue {
  background: var(--steel-blue-light);
  color: var(--steel-blue);
  border: 1px solid var(--steel-blue-border);
}

.badge-amber {
  background: var(--amber-light);
  color: var(--amber-warning);
  border: 1px solid var(--amber-border);
}

.badge-emerald {
  background: var(--emerald-light);
  color: var(--emerald-target);
  border: 1px solid var(--emerald-border);
}

.badge-indigo {
  background: var(--indigo-light);
  color: var(--indigo-accent);
  border: 1px solid var(--indigo-border);
}

.badge-crimson {
  background: var(--crimson-light);
  color: var(--crimson-risk);
  border: 1px solid var(--crimson-border);
}

.badge-navy {
  background: #1e3a5f;
  color: #93c5fd;
  border: 1px solid #2d4e7a;
}

.badge-neutral {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* Tabular Numbers */
.tnum {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* Bullet list refinement */
.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 7px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.clean-list li:last-child {
  margin-bottom: 0;
}

.clean-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 13px;
  color: var(--steel-blue);
}

.clean-list-emerald li::before {
  color: var(--emerald-target);
}

.clean-list-amber li::before {
  color: var(--amber-warning);
}

.clean-list-dark li {
  color: #cbd5e1;
}

.clean-list-dark li::before {
  color: #38bdf8;
}

/* Stat Callouts */
.stat-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 3px;
  padding: 12px 14px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(10, 17, 26, 0.03);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.1;
  margin-bottom: 3px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 3px;
}

.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* 3-Phase Rollout Visual */
.phase-container {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.phase-card {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: 3px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(10, 17, 26, 0.03);
  position: relative;
}

.phase-header {
  margin-bottom: 6px;
}

.phase-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phase-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.25;
}

.phase-bullets {
  list-style: none;
  padding: 0;
  margin: 6px 0 8px 0;
}

.phase-bullets li {
  position: relative;
  padding-left: 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.32;
  margin-bottom: 5px;
}

.phase-bullets li:last-child {
  margin-bottom: 0;
}

.phase-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--steel-blue);
  font-weight: bold;
}

.phase-milestone {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 2px;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--emerald-target);
  display: flex;
  align-items: center;
  gap: 5px;
}

.phase-milestone::before {
  content: '✓';
  font-weight: bold;
}

.phase-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-blue);
  font-size: 16px;
  font-weight: 700;
  padding: 0 2px;
  opacity: 0.7;
}

/* Charts & SVGs */
.chart-container {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 3px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(10, 17, 26, 0.03);
  box-sizing: border-box;
}

.chart-header {
  margin-bottom: 8px;
}

.chart-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-primary);
}

.chart-caption {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Two-Pillar Visuals */
.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 3px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px rgba(10, 17, 26, 0.04);
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.pillar-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-primary);
}

.pillar-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
}

.bridge-bar {
  background: #f0f9ff;
  border: 1px dashed var(--steel-blue);
  border-radius: 3px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--steel-blue);
  text-align: center;
  font-weight: 600;
}

.integration-bar {
  background: var(--navy-primary);
  color: #e2e8f0;
  border-radius: 3px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.04em;
}

.integration-bar span {
  color: #38bdf8;
  font-weight: 700;
}

/* Entity Cards on Slide 3 */
.entity-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entity-col-header {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.entity-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 3px;
  padding: 9px 11px;
  box-shadow: 0 1px 2px rgba(10, 17, 26, 0.03);
}

.entity-name {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 2px;
}

.entity-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  gap: 6px;
}

.entity-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Reveal Controls & Progress UI */
.reveal .progress {
  height: 4px;
  background: rgba(18, 40, 68, 0.15);
}

.reveal .progress span {
  background: var(--steel-blue);
}

.reveal .controls {
  color: var(--steel-blue);
}

.reveal .slide-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(18, 40, 68, 0.08);
  color: var(--navy-primary);
  border-radius: 3px;
  padding: 4px 8px;
  right: 18px;
  bottom: 18px;
}

.reveal-dark .slide-number {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Print Stylesheet Overrides */
@media print {
  .reveal-viewport {
    background: #ffffff !important;
  }
  .reveal .slides > section {
    page-break-after: always !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  .card, .stat-box, .chart-container, .phase-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
  .reveal .controls,
  .reveal .progress,
  .reveal .slide-number {
    display: none !important;
  }
}
