/* CoachSaab Pitch Deck — Design Tokens & Component Styles */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #3b82f6;
  --primary-dark: #1e3a5f;
  --primary-light: #dbeafe;
  --primary-bg: #eff6ff;
  --surface: #f8fafc;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --success: #10b981;
  --success-light: #f0fdf4;
  --success-dark: #166534;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-dark: #991b1b;
  --purple: #8b5cf6;
  --purple-light: #faf5ff;
  --purple-dark: #6b21a8;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --amber-dark: #92400e;
  --pink: #ec4899;
  --pink-light: #fce7f3;
  --border: #e2e8f0;

  /* Typography */
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --slide-padding: 80px;
  --card-radius: 10px;
  --card-padding: 20px;

  /* Transitions */
  --transition-slide: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* ── Slide Container ── */
.deck {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--slide-padding);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slide), transform var(--transition-slide);
  pointer-events: none;
  overflow-y: auto;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide.prev {
  opacity: 0;
  transform: translateX(-40px);
}

.slide-inner {
  max-width: 960px;
  width: 100%;
}

/* ── Gradient Backgrounds ── */
.slide--gradient {
  background: linear-gradient(135deg, var(--surface) 0%, var(--primary-bg) 100%);
}

.slide--white {
  background: var(--white);
}

/* ── Typography ── */
.logo {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--primary-dark);
}
.logo span { color: var(--primary); }

.headline {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}
.headline .accent { color: var(--primary); }

.subheadline {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.body-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tagline {
  font-size: 17px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.small-text {
  font-size: 13px;
  color: var(--text-faint);
}

.label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.highlight-text .accent { color: var(--primary); }

/* ── Pill Badge ── */
.pill {
  display: inline-block;
  background: var(--primary-light);
  color: #1e40af;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 99px;
  margin-top: 16px;
}

/* ── CTA Button ── */
.cta {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
}

/* ── Stat Cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background: var(--danger-light);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  text-align: center;
}
.stat-card .value {
  font-size: 36px;
  font-weight: 700;
  color: var(--danger);
}
.stat-card .desc {
  font-size: 13px;
  color: var(--danger-dark);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Feature Cards (2x2 grid) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 18px;
}
.info-card .card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.info-card .card-desc {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ── Feature Pillars ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pillar {
  background: var(--primary-bg);
  border-radius: var(--card-radius);
  padding: 20px;
  text-align: center;
}
.pillar .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-light);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar .pillar-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}
.pillar .pillar-desc {
  font-size: 12px;
  color: var(--primary);
}

/* ── Flow Steps (3-step horizontal) ── */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.flow-step {
  border-radius: var(--card-radius);
  padding: 20px;
  text-align: center;
}
.flow-step .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-step .step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.flow-step .step-desc {
  font-size: 12px;
}

.flow-step--green { background: var(--success-light); }
.flow-step--green .icon-box { background: #dcfce7; }
.flow-step--green .step-title { color: var(--success-dark); }
.flow-step--green .step-desc { color: #15803d; }

.flow-step--blue { background: var(--primary-bg); }
.flow-step--blue .icon-box { background: var(--primary-light); }
.flow-step--blue .step-title { color: #1e40af; }
.flow-step--blue .step-desc { color: var(--primary); }

.flow-step--purple { background: var(--purple-light); }
.flow-step--purple .icon-box { background: #f3e8ff; }
.flow-step--purple .step-title { color: var(--purple-dark); }
.flow-step--purple .step-desc { color: #7c3aed; }

.flow-arrow {
  color: var(--border);
  font-size: 24px;
  text-align: center;
}

/* ── Comparison Grid (side by side) ── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comparison-box {
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  font-size: 13px;
  line-height: 1.8;
}
.comparison-box .comp-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.comparison-box .score {
  font-weight: 700;
  margin-top: 8px;
  display: inline-block;
}

.comparison-box--bad {
  background: var(--danger-light);
  border: 1px solid #fca5a5;
}
.comparison-box--bad .comp-title { color: var(--danger); }
.comparison-box--bad .score { color: var(--danger); }

.comparison-box--good {
  background: var(--success-light);
  border: 1px solid #86efac;
}
.comparison-box--good .comp-title { color: var(--success); }
.comparison-box--good .score { color: var(--success); }

/* ── Moat Cards ── */
.moat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.moat-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 18px;
  border-left: 3px solid var(--primary);
}
.moat-card .moat-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.moat-card .moat-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.moat-card--green { border-left-color: var(--success); }
.moat-card--amber { border-left-color: var(--amber); }
.moat-card--purple { border-left-color: var(--purple); }

/* ── Tier / Pricing Cards ── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tier-card {
  border-radius: var(--card-radius);
  padding: 24px;
  text-align: center;
  border: 2px solid var(--border);
  background: var(--surface);
}
.tier-card .tier-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.tier-card .tier-multiplier {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.tier-card .tier-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tier-card--featured {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.tier-card--featured .tier-name { color: var(--primary); }

.tier-card--premium {
  border-color: var(--purple);
  background: var(--purple-light);
}
.tier-card--premium .tier-name { color: var(--purple); }

/* ── Persona Cards ── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.persona-card {
  background: var(--purple-light);
  border-radius: var(--card-radius);
  padding: 16px;
  text-align: center;
}
.persona-card .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3e8ff;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.persona-card .persona-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-dark);
}
.persona-card .persona-desc {
  font-size: 12px;
  color: #7c3aed;
  margin-top: 2px;
}

/* ── Archetype Cards (3x2) ── */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.archetype-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 18px;
}
.archetype-card .arch-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.archetype-card .arch-strength {
  font-size: 12px;
  color: var(--success);
  margin-bottom: 4px;
}
.archetype-card .arch-develop {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Big Numbers (market size) ── */
.big-numbers {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.big-number {
  text-align: center;
}
.big-number .value {
  font-size: 44px;
  font-weight: 700;
}
.big-number .desc {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}
.big-number--blue .value { color: var(--primary); }
.big-number--green .value { color: var(--success); }
.big-number--amber .value { color: var(--amber); }

.big-number-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ── Timeline / Roadmap ── */
.timeline {
  display: flex;
  gap: 10px;
}

.timeline-item {
  flex: 1;
  border-radius: var(--card-radius);
  padding: 14px;
  text-align: center;
  border-top: 3px solid var(--border);
}
.timeline-item .version {
  font-size: 12px;
  font-weight: 600;
}
.timeline-item .timeline-desc {
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.4;
}

.timeline-item--done { background: var(--success-light); border-top-color: var(--success); }
.timeline-item--done .version { color: var(--success-dark); }
.timeline-item--done .timeline-desc { color: #15803d; }

.timeline-item--blue { background: var(--primary-bg); border-top-color: var(--primary); }
.timeline-item--blue .version { color: #1e40af; }
.timeline-item--blue .timeline-desc { color: var(--primary); }

.timeline-item--purple { background: var(--purple-light); border-top-color: var(--purple); }
.timeline-item--purple .version { color: var(--purple-dark); }
.timeline-item--purple .timeline-desc { color: #7c3aed; }

.timeline-item--amber { background: var(--amber-light); border-top-color: var(--amber); }
.timeline-item--amber .version { color: var(--amber-dark); }
.timeline-item--amber .timeline-desc { color: #a16207; }

.timeline-item--pink { background: var(--pink-light); border-top-color: var(--pink); }
.timeline-item--pink .version { color: #9d174d; }
.timeline-item--pink .timeline-desc { color: #be185d; }

/* ── Video Placeholder ── */
.video-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  margin: 20px 0;
}
.video-placeholder .placeholder-text {
  font-size: 14px;
  color: var(--text-faint);
}

/* ── Footer Note ── */
.slide-footer {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 20px;
  background: var(--surface);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}

/* ── Progress Bar ── */
.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.4s ease;
  z-index: 100;
}

/* ── Slide Counter ── */
.slide-counter {
  position: fixed;
  bottom: 16px;
  right: 24px;
  font-size: 13px;
  color: var(--text-faint);
  z-index: 100;
  font-variant-numeric: tabular-nums;
}

/* ── Geometric Icons (CSS-only, replacing emojis) ── */
.icon { display: inline-block; }

.icon--target {
  width: 22px; height: 22px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  position: relative;
}
.icon--target::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.icon--globe {
  width: 22px; height: 22px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  position: relative;
}
.icon--globe::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 100%; height: 0;
  border-top: 2px solid var(--primary);
}
.icon--globe::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 100%;
  border-left: 2px solid var(--primary);
}

.icon--arrow-up {
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 18px solid var(--primary);
}

.icon--upload {
  width: 18px; height: 14px;
  border: 2px solid var(--success);
  border-radius: 3px;
  position: relative;
}
.icon--upload::after {
  content: '';
  position: absolute;
  top: -6px; right: -4px;
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 50%;
}

.icon--analyze {
  width: 20px; height: 20px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  border-top-color: transparent;
  transform: rotate(45deg);
}

.icon--chart {
  width: 18px; height: 18px;
  position: relative;
  border-bottom: 2px solid var(--purple);
  border-left: 2px solid var(--purple);
}
.icon--chart::before {
  content: '';
  position: absolute;
  bottom: 0; left: 2px;
  width: 4px; height: 8px;
  background: var(--purple);
}
.icon--chart::after {
  content: '';
  position: absolute;
  bottom: 0; left: 9px;
  width: 4px; height: 14px;
  background: var(--purple);
}

/* ── Responsive (laptop screens) ── */
@media (max-width: 1440px) {
  :root { --slide-padding: 60px; }
  .headline { font-size: 28px; }
  .stat-card .value { font-size: 30px; }
  .big-number .value { font-size: 38px; }
}

@media (max-width: 1024px) {
  :root { --slide-padding: 40px; }
  .stat-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .archetype-grid { grid-template-columns: repeat(2, 1fr); }
}
