/* ============================================================
   Lucky's Ledger · Investor Pitch Deck v2
   VC-Grade Design: Stripe precision, Mercury dark mode,
   Linear spacing, Airbnb clarity
   ============================================================ */

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

:root {
  /* Backgrounds — layered depth (Mercury/Linear pattern) */
  --bg-deep: #0a0a0b;
  --bg-primary: #111113;
  --bg-surface: #18181b;
  --bg-card: #1c1c20;
  --bg-elevated: #222228;

  /* Brand Accent — warm orange */
  --accent: #ffac57;
  --accent-bright: #ffcf99;
  --accent-dim: rgba(255, 172, 87, 0.10);
  --accent-border: rgba(255, 172, 87, 0.20);

  /* Secondary — cool blue (institutional/system color) */
  --cool: #7C8CF5;
  --cool-dim: rgba(124, 140, 245, 0.10);
  --cool-border: rgba(124, 140, 245, 0.20);

  /* Text — 4-tier hierarchy (Linear pattern) */
  --text-primary: #ededed;
  --text-secondary: #a0a0a8;
  --text-dim: #606068;
  --text-muted: #45454f;

  /* Functional */
  --green: #34D399;
  --red: #F87171;

  /* Borders — ultra-subtle (Mercury pattern) */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --gap: 48px;
  --slide-px: 80px;
  --slide-py: 72px;
  --content-max: 1100px;

  /* Radius — 12px institutional (Stripe/Linear standard) */
  --radius: 12px;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  letter-spacing: 0.005em;
}

/* --- Deck Container --- */
.deck {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}
.deck::-webkit-scrollbar { display: none; }
.deck { scrollbar-width: none; }

/* --- Slide --- */
.slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--slide-py) var(--slide-px);
  position: relative;
  overflow: hidden;
}

.slide__inner {
  width: 100%;
  max-width: var(--content-max);
  position: relative;
}

/* --- Slide Variants --- */
.slide--dark { background: var(--bg-deep); }
.slide--surface { background: var(--bg-primary); }
.slide--accent { background: var(--bg-surface); }
.slide--cover {
  background: var(--bg-deep);
  position: relative;
}

/* --- Slide archetype utilities --- */
.slide--hero {
  text-align: center;
}
.slide--hero .slide__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
}

.slide--breathing {
  text-align: center;
}
.slide--breathing .slide__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
}

/* Corner accent marks (Stripe pattern) */
.slide--cornered::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 48px;
  width: 32px;
  height: 32px;
  border-left: 1px solid rgba(255, 172, 87, 0.12);
  border-top: 1px solid rgba(255, 172, 87, 0.12);
  pointer-events: none;
}
.slide--cornered::after {
  content: '';
  position: absolute;
  bottom: 48px;
  right: 48px;
  width: 32px;
  height: 32px;
  border-right: 1px solid rgba(255, 172, 87, 0.12);
  border-bottom: 1px solid rgba(255, 172, 87, 0.12);
  pointer-events: none;
}

/* --- Geometric background: Cover circle --- */
#slide-1::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border: 1px solid rgba(255, 172, 87, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* --- Geometric background: Problem slide --- */
#slide-2::after {
  content: '';
  position: absolute;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  border: 1px solid rgba(248, 113, 113, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

/* --- Geometric background: Close slide --- */
#slide-11::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border: 1px solid rgba(124, 140, 245, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* --- Typography: Stripe precision --- */
.slide-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.headline {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  max-width: 960px;
}

.headline em {
  font-style: normal;
  color: var(--accent);
  white-space: nowrap;
  border-bottom: 2px solid rgba(255, 172, 87, 0.25);
  padding-bottom: 2px;
}

.sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin-top: 20px;
}

/* --- Callout (pull-quote for key proof points) --- */
.callout {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 32px;
  max-width: 640px;
}

/* --- Slide divider (thin rule between sections) --- */
.slide-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0 40px;
}

/* --- Cover --- */
.cover-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
}

.cover-brand {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.cover-position {
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--accent);
  margin-top: 16px;
  letter-spacing: 0.03em;
}

.cover-tagline {
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  color: var(--text-secondary);
  margin-top: 40px;
  font-weight: 400;
}

.cover-tagline em {
  font-style: normal;
  color: var(--text-primary);
  font-weight: 600;
}

.cover-rule {
  width: 64px;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
  margin-top: 40px;
}

.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  padding: 10px 24px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* --- Big Number (hero metric) --- */
.big-number {
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--text-primary);
  display: inline-block;
  border-bottom: 2px solid currentColor;
  padding-bottom: 8px;
}

.big-number--accent { color: var(--accent); }
.big-number--red { color: var(--red); }

/* Full-viewport hero number — for HERO archetype slides */
.big-number--mega {
  font-size: clamp(6rem, 18vw, 14rem);
  letter-spacing: -0.06em;
  line-height: 0.85;
  border-bottom: none;
  padding-bottom: 0;
}

/* --- Breathing Quote (light-weight centered statement) --- */
.headline--quote {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.01em;
}
.headline--quote strong {
  color: var(--text-primary);
  font-weight: 700;
}

.big-number-label {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 12px;
}

.big-number-label--wide {
  max-width: 480px;
  line-height: 1.6;
  margin-top: 24px;
}

/* --- Hero Stat (Problem slide) --- */
.hero-stat {
  text-align: center;
  margin: 48px 0 56px;
}

/* --- Problem Kickers --- */
.problem-kickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.problem-kicker {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px;
  background: rgba(248, 113, 113, 0.03);
  border: 1px solid rgba(248, 113, 113, 0.10);
  border-left: 3px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius);
}

.problem-kicker .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
  margin-top: 2px;
}

.problem-kicker__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.problem-kicker__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Metric Row (3-up) --- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--gap);
}

.metric-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.metric-card--highlight {
  border-color: var(--accent-border);
}

.metric-card--cool {
  border-color: var(--cool-border);
}

.metric-card--left-accent {
  border-left: 3px solid var(--accent);
}

.metric-value {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-value--accent { color: var(--accent); }
.metric-value--cool { color: var(--cool); }

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 10px;
  font-weight: 500;
  line-height: 1.5;
}

/* --- Two Column Layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.split--60-40 {
  grid-template-columns: 3fr 2fr;
}

/* --- Moat Table (Slide 8) --- */
.moat-rows {
  margin-top: 48px;
  max-width: 900px;
  width: 100%;
}

.moat-row {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.moat-row:first-child {
  border-top: 1px solid var(--border);
}

.moat-row__metric {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.moat-row__old {
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.4);
}

.moat-row__new {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.moat-row--result .moat-row__old {
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.moat-row--result .moat-row__new {
  color: var(--accent);
  font-weight: 800;
}

/* --- Comparison: Bloomberg terminal treatment --- */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--gap);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.vs-card {
  padding: 36px 32px;
  border-radius: 0;
  border: none;
}

.vs-card--old {
  background: rgba(248, 113, 113, 0.025);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.vs-card--new {
  background: rgba(255, 172, 87, 0.035);
}

.vs-title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.vs-title--old { color: var(--red); }
.vs-title--new { color: var(--accent); }

.vs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vs-list li {
  font-size: 0.875rem;
  line-height: 2.2;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* --- VS Margin Badge --- */
.vs-margin {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.vs-margin--accent {
  color: var(--accent);
  font-size: 1.125rem;
}

/* --- Moat Strip (Slide 7) --- */
.moat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.moat-item {
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
}
.moat-item__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.moat-item__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Scale Math (Distribution) --- */
.scale-math {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scale-math__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.scale-math__row--accent {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.scale-math__row--accent .scale-math__num {
  color: var(--accent);
}

.scale-math__num {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text-primary);
  min-width: 36px;
  font-variant-numeric: tabular-nums;
}

.scale-math__text {
  font-weight: 500;
}

/* --- KPI Compare Row --- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--gap);
}

.kpi-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.kpi-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.kpi-card__industry {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.4);
}

.kpi-card__ours {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 4px;
}

.kpi-card__sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* --- Bar Chart --- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 240px;
  margin-top: 0;
  position: relative;
}

/* Baseline x-axis */
.bars::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  max-width: 72px;
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bar-fill--accent { background: var(--accent); }
.bar-fill--dim { background: rgba(255, 172, 87, 0.18); }
.bar-fill--projected {
  background: repeating-linear-gradient(
    -55deg,
    var(--accent),
    var(--accent) 3px,
    rgba(255, 172, 87, 0.25) 3px,
    rgba(255, 172, 87, 0.25) 8px
  );
}

.bar-value {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.bar-label {
  margin-top: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Timeline --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--gap);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 172, 87, 0.2) 25%, rgba(124, 140, 245, 0.12) 25%);
  border-radius: 2px;
}

.timeline-phase {
  position: relative;
  padding: 0 16px;
}

.timeline-phase:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.timeline-dot--active {
  background: var(--accent);
  color: var(--bg-deep);
}

.timeline-dot--future {
  background: var(--cool-dim);
  border: 2px solid var(--cool-border);
  color: var(--cool);
}

.timeline-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-items li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-items .done { color: var(--green); }
.timeline-items .gap { color: var(--red); }

/* --- Distribution Channels (kept for backwards compat) --- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: var(--gap);
}

.channel-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.channel-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.channel-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.channel-svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Traction Split (chart left, metrics right) --- */
.traction-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: end;
  margin-top: 48px;
}

.traction-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.traction-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.traction-metric:last-child {
  border-bottom: none;
}

.traction-metric__value {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.traction-metric__label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
  max-width: 160px;
  line-height: 1.4;
}

/* --- Flywheel --- */
.flywheel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: var(--gap);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Circular background device behind the 2x2 grid */
.flywheel::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  border: 1px solid rgba(124, 140, 245, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.fw-step {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* --- Flywheel Segments (3-audience layout) --- */
.flywheel-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--gap);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.fw-segment {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  position: relative;
}

.fw-segment__icon {
  margin-bottom: 16px;
}

.fw-segment__icon .fw-icon {
  width: 28px;
  height: 28px;
  color: var(--cool);
}

.fw-segment__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.fw-segment__enter,
.fw-segment__stay {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 8px 0;
}

.fw-segment__enter {
  border-bottom: 1px solid var(--border);
}

.fw-segment__enter::before {
  content: 'Enter';
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.fw-segment__stay::before {
  content: 'Stay';
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 4px;
}

/* Loop summary line */
.fw-loop {
  margin-top: 32px;
  padding: 16px 24px;
  border: 1px solid var(--cool-border);
  border-radius: var(--radius);
  display: inline-block;
}

.fw-loop__text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cool);
  letter-spacing: 0.01em;
}

.fw-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cool);
  margin-bottom: 8px;
}

.fw-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.fw-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 6px;
}

/* --- Flywheel loop-back --- */
.fw-loop {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 8px;
}

.fw-loop-arrow {
  width: 80%;
  max-width: 600px;
  height: 24px;
  color: var(--cool);
  opacity: 0.3;
}

.fw-loop-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--cool);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* --- Team --- */
.team-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: var(--gap);
}

.team-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.team-role {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 2px;
}

.team-bio {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 8px;
}

.team-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.team-ops__tag {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Slide-specific color overrides --- */

/* Slide 6 (Team): cool blue accent */
#slide-6 .slide-label { color: var(--cool); }
#slide-6 .headline em { color: var(--cool); border-bottom-color: rgba(124, 140, 245, 0.25); }
#slide-6 .team-avatar { background: var(--cool-dim); border: 2px solid var(--cool-border); color: var(--cool); }
#slide-6 .team-role { color: var(--cool); }

/* Slide 7 (Flywheel): cool blue system */
#slide-7 .slide-label { color: var(--cool); }
#slide-7 .headline em { color: var(--cool); border-bottom-color: rgba(124, 140, 245, 0.25); }
#slide-7 .fw-icon { color: var(--cool); }

/* Slide 10 (Market): cool blue hero */
#slide-10 .slide-label { color: var(--cool); }

/* --- The Raise --- */
.raise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--gap);
}

.raise-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}

.raise-card__num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.raise-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.raise-card__desc {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* --- Product-Led Growth Features (Slide 4) --- */
.product-ux {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: var(--gap);
}

.product-ux__item {
  text-align: left;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-ux__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-ux__desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-ux__impact {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* --- Product Pillars (Slide 4) --- */
.product-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.product-pillar {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.product-pillar__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.product-pillar__head .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.product-pillar__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-pillar__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.product-pillar__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  padding: 4px 10px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 6px;
}

/* Infrastructure row */
.product-infra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.product-infra__item {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.product-infra__sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* --- Token Economy Flow --- */
.token-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* (Flywheel slide 7 reuses product-pillars + econ-bridge from slides 4 & 9) */

/* Statement-based token layout */
.token-statements {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  max-width: 720px;
}

.token-statement {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.token-statement:first-child {
  border-top: 1px solid var(--border);
}

.token-statement strong {
  color: var(--accent);
  font-weight: 700;
}

/* --- Slide intro paragraph --- */
.slide-intro {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin-top: 16px;
}

/* --- Dual Economy Grid --- */
.econ-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.econ-side {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.econ-side--token {
  border-color: var(--accent-border);
}

.econ-side__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.econ-side--token .econ-side__label {
  color: var(--accent);
}

.econ-side__point {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.econ-side__point:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.econ-side__point strong {
  color: var(--accent);
  font-weight: 700;
}

/* Bridge line */
.econ-bridge {
  margin-top: 24px;
  padding: 14px 20px;
  border: 1px solid var(--cool-border);
  border-radius: var(--radius);
  text-align: center;
}

.econ-bridge__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cool);
  line-height: 1.5;
}

/* Token proof callout */
.token-proof {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
}

.token-proof__number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.token-proof__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.token-step {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  text-align: left;
}

.token-step .card-icon {
  margin-bottom: 20px;
}

.token-step__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.token-step__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Raise Pills (close slide) --- */
.raise-row {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.raise-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.raise-pill__icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Close Statements --- */
.close-raise {
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 16px;
}

.close-reasons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.close-reason {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
}

.close-reason__accent {
  font-weight: 700;
  color: var(--accent);
}

/* --- Ask Slide --- */
.ask-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--accent);
  margin-top: 24px;
}

.ask-sub {
  font-size: 0.9375rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-weight: 500;
}

.ask-uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 800px;
  width: 100%;
}

.ask-use {
  text-align: left;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ask-use__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ask-use__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ask-returns {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  justify-content: center;
}

.ask-return {
  text-align: center;
}

.ask-return__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.ask-return__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ask-returns-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Close Slide --- */
.close-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 60vh;
}

.close-punchline {
  font-size: clamp(1.1875rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
  margin-top: 48px;
}

.close-punchline strong {
  color: var(--accent);
  font-weight: 700;
}

.close-punchline--strong {
  margin-top: 20px;
  color: var(--text-primary);
}

.close-disclaimer {
  font-size: 0.625rem;
  color: var(--text-dim);
  margin-top: 64px;
}

/* --- SVG Icons --- */
.card-icon {
  width: 32px;
  height: 32px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.card-icon--accent { color: var(--accent); }
.card-icon--cool { color: var(--cool); }
.card-icon--red { color: var(--red); }

.vs-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.vs-icon--x { color: var(--red); }
.vs-icon--check { color: var(--green); }

.li-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.li-icon--green { color: var(--green); }
.li-icon--red { color: var(--red); }

.fw-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.fw-arrow-svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.5;
}

.raise-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}

.metric-card--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Solution Flow (4-step ownership mechanic) --- */
.solution-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.solution-step {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  position: relative;
}

/* Connecting lines between steps */
.solution-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -10px;
  width: 20px;
  height: 1px;
  background: rgba(255, 172, 87, 0.12);
}

.solution-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.solution-step__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.solution-step__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Journey Comparison (Slide 3) --- */
.journey-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.journey {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.journey--broken {
  border-color: rgba(248, 113, 113, 0.15);
}

.journey--fixed {
  border-color: rgba(52, 211, 153, 0.2);
}

.journey__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.journey__label--red { color: var(--red); }
.journey__label--green { color: var(--green); }

.journey__step {
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.journey__step:last-of-type {
  border-bottom: none;
}

.journey__result {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.journey__result--red { color: var(--red); }
.journey__result--green { color: var(--green); }

/* --- Footnote --- */
.footnote {
  font-size: 0.625rem;
  color: var(--text-dim);
  margin-top: 32px;
}

/* --- Fixed UI --- */
.logo-fixed {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 100;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.3s;
}

.logo-fixed.is-visible { opacity: 1; }

.slide-counter {
  position: fixed;
  bottom: 24px;
  right: 32px;
  z-index: 100;
  font-size: 0.625rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.confidential {
  position: fixed;
  bottom: 24px;
  left: 32px;
  z-index: 100;
  font-size: 0.625rem;
  color: var(--text-dim);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  width: 0;
  transition: width 0.4s ease;
}

/* Nav dots */
.nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav-dot.is-active {
  background: var(--accent);
  transform: scale(1.6);
}

/* --- Stagger Animations (refined) --- */
.stagger {
  opacity: 0;
  transform: translateY(12px);
}

.slide.is-visible .stagger {
  animation: fadeUp 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.slide.is-visible .stagger:nth-child(2) { animation-delay: 0.08s; }
.slide.is-visible .stagger:nth-child(3) { animation-delay: 0.16s; }
.slide.is-visible .stagger:nth-child(4) { animation-delay: 0.24s; }
.slide.is-visible .stagger:nth-child(5) { animation-delay: 0.32s; }
.slide.is-visible .stagger:nth-child(6) { animation-delay: 0.40s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   TABLET (1024px and below)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --slide-px: 48px;
    --slide-py: 56px;
    --gap: 40px;
  }

  .solution-flow {
    grid-template-columns: 1fr 1fr;
  }

  .solution-step:not(:last-child)::after {
    display: none;
  }

  .traction-split {
    grid-template-columns: 1fr;
  }

  .flywheel {
    max-width: 100%;
  }

  .flywheel-segments {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .flywheel-segments .fw-segment:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* ============================================================
   MOBILE (768px and below)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --slide-px: 24px;
    --slide-py: 48px;
    --gap: 32px;
  }

  .deck {
    scroll-snap-type: none;
    height: auto;
    overflow-y: auto;
  }

  .slide {
    scroll-snap-align: none;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: 48px 24px;
    align-items: flex-start;
  }

  .headline {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .big-number {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .metric-row,
  .kpi-row,
  .vs-grid,
  .raise-grid {
    grid-template-columns: 1fr;
  }

  .moat-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .vs-grid {
    border: none;
    gap: 16px;
  }

  .vs-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }

  .vs-card--old {
    border-color: rgba(248, 113, 113, 0.15);
  }

  .vs-card--new {
    border-color: var(--accent-border);
  }

  .moat-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .split,
  .split--60-40 {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .timeline::before { display: none; }
  .timeline-phase:not(:first-child) { border-left: none; }

  .channel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flywheel {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .flywheel::before {
    display: none;
  }

  .flywheel-segments {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .fw-arrow-svg {
    transform: rotate(90deg);
  }

  .fw-loop-arrow {
    transform: rotate(90deg);
    width: 48px;
    height: 48px;
  }

  .traction-split {
    grid-template-columns: 1fr;
  }

  .solution-flow {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .problem-kickers {
    grid-template-columns: 1fr;
  }

  .bars {
    height: 180px;
  }

  .cover-center { min-height: 80vh; }

  .nav-dots { display: none; }

  #slide-1::before,
  #slide-2::after,
  #slide-11::before {
    display: none;
  }

  .token-flow {
    grid-template-columns: 1fr;
  }

  /* flywheel uses product-pillars + econ-bridge, handled by existing rules */

  .journey-compare {
    grid-template-columns: 1fr;
  }

  .econ-grid {
    grid-template-columns: 1fr;
  }

  .product-ux {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-pillars {
    grid-template-columns: 1fr;
  }

  .logo-fixed { top: 16px; left: 20px; }
  .slide-counter { bottom: 16px; right: 20px; }
  .confidential { bottom: 16px; left: 20px; }
}

/* ============================================================
   PHONE (480px and below)
   ============================================================ */
@media (max-width: 480px) {
  .slide {
    padding: 40px 20px 48px;
  }

  .slide:not(.slide--cover) {
    padding-top: 56px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .solution-flow {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-ops {
    justify-content: center;
  }

  .cover-brand {
    font-size: 2.25rem;
  }

  .metric-card { padding: 24px 16px; }
  .kpi-card { padding: 20px 16px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  body { background: #fff !important; color: #111 !important; }
  .deck { height: auto; overflow: visible; scroll-snap-type: none; }
  .slide { min-height: 0; height: 9in; width: 16in; page-break-after: always; }
  .slide:last-child { page-break-after: auto; }
  .progress, .slide-counter, .confidential, .logo-fixed, .nav-dots { display: none !important; }
  .stagger { opacity: 1 !important; animation: none !important; transform: none !important; }
}
