/* ===================================
   PaintWalk Pitch Deck — CSS
   Neobrutalist Design System
   =================================== */

/* --- Design Tokens --- */
:root {
  /* Colors — Pixel Art Game Palette */
  --black: #1C1C1C;
  --white: #F8F8F8;
  --pink: #E84C3D;
  --cyan: #66B2FF;
  --lime: #6BCB77;
  --orange: #FF9500;
  --blue: #0066CC;
  --magenta: #D62828;

  /* Dimmed variants */
  --pink-dim: rgba(232, 76, 61, 0.15);
  --cyan-dim: rgba(102, 178, 255, 0.12);
  --lime-dim: rgba(107, 203, 119, 0.10);
  --orange-dim: rgba(255, 149, 0, 0.12);

  /* Semantic text colors */
  --text-primary: #F8F8F8;
  --text-secondary: rgba(255,255,255,0.85);
  --text-tertiary: rgba(255,255,255,0.7);
  --text-dim: rgba(255,255,255,0.5);
  --text-muted: rgba(255,255,255,0.35);
  --text-faint: rgba(255,255,255,0.2);

  /* Semantic surface colors */
  --surface-bg: rgba(255,255,255,0.04);
  --surface-bg-subtle: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.08);
  --surface-active: rgba(255,255,255,0.06);
  --surface-border: rgba(255,255,255,0.1);
  --surface-border-strong: rgba(255,255,255,0.12);
  --surface-border-medium: rgba(255,255,255,0.15);
  --surface-border-heavy: rgba(255,255,255,0.25);

  /* Background levels */
  --bg-primary: #1C1C1C;
  --bg-deep: #050505;
  --bg-overview: #0a0a0a;
  --bg-panel: #111111;

  /* Misc tokens */
  --axis-color: rgba(255,255,255,0.2);
  --logo-company-filter: invert(1) brightness(2);

  /* Typography */
  --font-mono: Monaco, 'Courier New', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Stage */
  --stage-w: 1920;
  --stage-h: 1080;
  --slide-pad-x: 100px;
  --slide-pad-y: 72px;

  /* Spacing */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;

  /* Shadows */
  --shadow-hard: 6px 6px 0 var(--black);
  --shadow-soft: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow-pink: 0 0 40px rgba(232,76,61,0.3);
  --shadow-glow-cyan: 0 0 40px rgba(102,178,255,0.2);

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-normal: 300ms;
  --dur-slow: 500ms;
}

/* --- Light Mode Tokens --- */
[data-theme="light"] {
  --black: #F8F8F8;
  --white: #1C1C1C;
  --pink: #D63031;
  --cyan: #0984E3;
  --lime: #00B894;
  --orange: #E17055;
  --blue: #0055AA;
  --magenta: #C0392B;

  --pink-dim: rgba(214, 48, 49, 0.10);
  --cyan-dim: rgba(9, 132, 227, 0.08);
  --lime-dim: rgba(0, 184, 148, 0.08);
  --orange-dim: rgba(225, 112, 85, 0.08);

  --text-primary: #1C1C1C;
  --text-secondary: rgba(28,28,28,0.85);
  --text-tertiary: rgba(28,28,28,0.7);
  --text-dim: rgba(28,28,28,0.5);
  --text-muted: rgba(28,28,28,0.35);
  --text-faint: rgba(28,28,28,0.2);

  --surface-bg: rgba(0,0,0,0.03);
  --surface-bg-subtle: rgba(0,0,0,0.02);
  --surface-hover: rgba(0,0,0,0.06);
  --surface-active: rgba(0,0,0,0.04);
  --surface-border: rgba(0,0,0,0.1);
  --surface-border-strong: rgba(0,0,0,0.12);
  --surface-border-medium: rgba(0,0,0,0.15);
  --surface-border-heavy: rgba(0,0,0,0.22);

  --bg-primary: #F8F8F8;
  --bg-deep: #EEEEEE;
  --bg-overview: #E0E0E0;
  --bg-panel: #F0F0F0;

  --axis-color: rgba(0,0,0,0.2);
  --logo-company-filter: none;

  --shadow-hard: 4px 4px 0 rgba(0,0,0,0.12);
  --shadow-soft: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-glow-pink: 0 0 40px rgba(214,48,49,0.12);
  --shadow-glow-cyan: 0 0 40px rgba(9,132,227,0.10);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  cursor: default;
  line-height: 1.5;
}

/* --- Viewport & Stage --- */
.deck-viewport {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  overflow: hidden;
}

.deck-stage {
  width: 1920px;
  height: 1080px;
  position: relative;
  transform-origin: center center;
  overflow: hidden;
  background: var(--black);
}

/* Language toggle on slide 1 */
.lang-toggle {
  position: absolute;
  top: 28px;
  right: 32px;
  display: inline-flex;
  gap: 8px;
  z-index: 2;
}

.lang-btn {
  background: var(--surface-active);
  border: 2px solid var(--surface-border-heavy);
  color: var(--white);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.lang-btn[aria-pressed="true"] {
  background: rgba(232,76,61,0.15);
  border-color: var(--pink);
  box-shadow: var(--shadow-glow-pink);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 200;
  background: var(--surface-hover);
  border: 2px solid var(--surface-border-medium);
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease;
  line-height: 1;
  font-family: var(--font-mono);
}

.theme-toggle:hover {
  border-color: var(--cyan);
  transform: scale(1.08);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* --- Slides --- */
.slide {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  padding: var(--slide-pad-y) var(--slide-pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-normal) ease, visibility 0s var(--dur-normal);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-normal) ease, visibility 0s 0s;
}

/* --- Parallax BG Shapes --- */
.slide-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  transition: transform 0.1s linear;
}

.bg-shape--circle { border-radius: 50%; }
.bg-shape--square { border-radius: 4px; }

.slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Typography --- */
.slide-label {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: var(--sp-24);
}

.slide-title {
  font-size: 68px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.05;
  margin-bottom: var(--sp-32);
  color: var(--white);
}

.slide-title--xl {
  font-size: 88px;
}

.slide-subtitle {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: var(--sp-24);
  color: var(--white);
}

.slide-body {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 900px;
}

.slide-body--lg {
  font-size: 26px;
}

.text-pink { color: var(--pink); }
.text-cyan { color: var(--cyan); }
.text-lime { color: var(--lime); }
.text-orange { color: var(--orange); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }

.accent-underline {
  border-bottom: 4px solid var(--pink);
  padding-bottom: 2px;
}

/* --- Layouts --- */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: center;
  height: 100%;
}

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

.layout-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-32);
}

.layout-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-24);
}

.layout-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

/* --- Cards --- */
.card {
  background: var(--surface-bg);
  border: 2px solid var(--surface-border);
  border-radius: 12px;
  padding: var(--sp-32);
  transition: transform var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card--accent-pink { border-color: rgba(232,76,61,0.4); }
.card--accent-cyan { border-color: rgba(102,178,255,0.4); }
.card--accent-lime { border-color: rgba(107,203,119,0.4); }
.card--accent-orange { border-color: rgba(255,149,0,0.4); }

.card-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--sp-16);
}

.card-title {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-12);
  color: var(--white);
}

.card-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* --- Images --- */
.slide-img {
  border-radius: 12px;
  border: 2px solid var(--surface-border-strong);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
  display: block;
}

.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-24);
}

.img-grid-2 img {
  border-radius: 12px;
  border: 2px solid var(--surface-border-strong);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
}

.img-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-16);
}

.img-quad img {
  border-radius: 10px;
  border: 2px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
  align-items: start;
}

.img-row-3 img {
  border-radius: 12px;
  border: 2px solid var(--surface-border-strong);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
}

.img-phone {
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  border-radius: 20px;
  border: 2px solid var(--surface-border-strong);
  box-shadow: var(--shadow-soft);
}

/* Phone row — 4 portrait screenshots in a row */
.phone-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
  align-items: end;
}

.phone-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
}

.phone-figure img {
  max-height: 460px;
  width: 100%;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid var(--surface-border-strong);
  box-shadow: var(--shadow-soft);
}

.phone-label {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Full-slide image (for PNG slides like Ask) */
.slide-img-full {
  position: absolute;
  inset: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-img-full img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* --- Bullet Lists --- */
.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  font-size: 22px;
  line-height: 1.5;
  padding: var(--sp-12) 0;
  padding-left: var(--sp-32);
  position: relative;
  color: var(--text-secondary);
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--pink);
  border-radius: 2px;
}

.bullet-list--cyan li::before { background: var(--cyan); }
.bullet-list--lime li::before { background: var(--lime); }

.bullet-list--strikethrough li {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* --- Metric Highlights --- */
.metric {
  text-align: center;
}

.metric-value {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.metric-label {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: var(--sp-8);
  display: block;
}

/* --- Flywheel (GTM Slide) --- */
.flywheel {
  position: relative;
  width: 520px;
  height: 520px;
  margin: 0 auto;
}

.flywheel-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--surface-border);
  border-radius: 50%;
}

.flywheel-ring::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(232,76,61,0.6);
  animation: flywheel-pulse 2s ease-in-out infinite;
}

.flywheel-step {
  position: absolute;
  width: 200px;
  text-align: center;
}

.flywheel-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--pink);
  color: var(--black);
  font-weight: 900;
  font-size: 16px;
  border-radius: 50%;
  margin-bottom: var(--sp-8);
}

.flywheel-step-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
  color: var(--white);
}

.flywheel-step-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Position flywheel steps */
.flywheel-step:nth-child(2) { top: -60px; left: 50%; transform: translateX(-50%); }
.flywheel-step:nth-child(3) { top: 50%; right: -120px; transform: translateY(-50%); }
.flywheel-step:nth-child(4) { bottom: -60px; left: 50%; transform: translateX(-50%); }
.flywheel-step:nth-child(5) { top: 50%; left: -120px; transform: translateY(-50%); }

@keyframes flywheel-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateX(-50%) scale(1.5); }
}

/* --- 2×2 Matrix (Competitive Slide) --- */
.matrix {
  position: relative;
  width: 600px;
  height: 500px;
}

.matrix-axis-x,
.matrix-axis-y {
  position: absolute;
  background: var(--axis-color);
}

.matrix-axis-x {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
}

.matrix-axis-y {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
}

.matrix-label {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.matrix-label--top { top: -24px; left: 50%; transform: translateX(-50%); }
.matrix-label--bottom { bottom: -24px; left: 50%; transform: translateX(-50%); }
.matrix-label--left { left: -10px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.matrix-label--right { right: -10px; top: 50%; transform: translateY(-50%) rotate(90deg); }

.matrix-dot {
  position: absolute;
  padding: var(--sp-8) var(--sp-16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.matrix-dot--pw {
  background: var(--pink);
  color: var(--black);
  box-shadow: var(--shadow-glow-pink);
  font-size: 15px;
}

.matrix-dot--dim {
  background: var(--surface-hover);
  color: var(--text-dim);
  border: 1px solid var(--surface-border-strong);
}

/* --- Pricing Tiers (Business Model) --- */
.tier {
  background: var(--surface-bg-subtle);
  border: 2px solid var(--surface-hover);
  border-radius: 16px;
  padding: var(--sp-32);
  text-align: center;
  transition: transform var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) ease;
}

.tier:hover {
  transform: translateY(-6px);
}

.tier--featured {
  border-color: var(--pink);
  background: rgba(232,76,61,0.06);
  box-shadow: var(--shadow-glow-pink);
}

.tier-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--sp-4) var(--sp-16);
  border-radius: 100px;
  margin-bottom: var(--sp-16);
}

.tier-badge--free { background: var(--surface-border); color: var(--text-dim); }
.tier-badge--silver { background: rgba(102,178,255,0.15); color: var(--cyan); }
.tier-badge--gold { background: rgba(232,76,61,0.2); color: var(--pink); }

.tier-price {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.tier-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--sp-24);
}

.tier-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.tier-features li {
  font-size: 16px;
  padding: var(--sp-8) 0;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--surface-active);
}

.tier-features li:last-child { border-bottom: none; }

.tier-features li::before {
  content: '✓ ';
  color: var(--lime);
  font-weight: 700;
}

/* --- Status Badges --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-8) var(--sp-16);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-badge--live {
  background: rgba(107,203,119,0.12);
  color: var(--lime);
  border: 1px solid rgba(107,203,119,0.25);
}

.status-badge--live::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Tag pills --- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.tag {
  display: inline-block;
  padding: var(--sp-4) var(--sp-12);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  background: var(--surface-active);
  color: var(--text-dim);
  border: 1px solid var(--surface-hover);
}

/* --- Logo --- */
.logo-img {
  height: 120px;
  width: auto;
  display: block;
}

.logo-img--sm {
  height: 64px;
}

/* Company logo filter — adapts to theme */
.logo-company-filter {
  filter: var(--logo-company-filter);
}

/* --- Decorative Divider --- */
.divider {
  width: 80px;
  height: 4px;
  background: var(--pink);
  border-radius: 2px;
  margin: var(--sp-24) 0;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* --- Progress Bar --- */
.deck-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--surface-hover);
  z-index: 100;
}

.deck-progress-fill {
  height: 100%;
  background: var(--pink);
  transition: width var(--dur-normal) var(--ease-out);
  border-radius: 0 2px 2px 0;
}

/* --- Slide Counter --- */
.deck-counter {
  position: fixed;
  bottom: 16px;
  right: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  z-index: 100;
  font-family: var(--font-mono);
}

/* --- Overview Grid --- */
.deck-viewport.overview .deck-stage {
  transform: none !important;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px;
  overflow-y: auto;
  background: var(--bg-overview);
}

.deck-viewport.overview .slide {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none !important;
  cursor: pointer;
  border: 2px solid var(--surface-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--dur-fast) ease;
}

.deck-viewport.overview .slide:hover {
  border-color: var(--pink);
}

.deck-viewport.overview .slide .slide-content {
  transform: scale(0.25);
  transform-origin: top left;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

.deck-viewport.overview .deck-progress,
.deck-viewport.overview .deck-counter {
  display: none;
}

/* --- Presenter Mode --- */
.deck-viewport.presenter {
  flex-direction: row;
}

.deck-viewport.presenter .deck-stage {
  flex: 0 0 65%;
}

.presenter-panel {
  display: none;
  flex: 1;
  padding: 32px;
  background: var(--bg-panel);
  overflow-y: auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  border-left: 2px solid var(--surface-border);
}

.deck-viewport.presenter .presenter-panel {
  display: block;
}

.presenter-panel h3 {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: var(--sp-16);
}

.slide-notes {
  display: none;
}

/* --- Nav Hint --- */
.nav-hint {
  position: fixed;
  bottom: 16px;
  left: 24px;
  font-size: 12px;
  color: var(--text-faint);
  z-index: 100;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.nav-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--surface-border-medium);
  border-radius: 4px;
  font-size: 11px;
  margin: 0 2px;
}

/* --- Skip Link --- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--cyan);
  color: var(--black);
  font-weight: 900;
  text-decoration: none;
  border-radius: 4px;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.anim {
  opacity: 0;
}

.slide.active .anim {
  animation: fadeSlideUp var(--dur-slow) var(--ease-out) forwards;
}

/* Stagger delays */
.slide.active .anim:nth-child(1) { animation-delay: 0ms; }
.slide.active .anim:nth-child(2) { animation-delay: 80ms; }
.slide.active .anim:nth-child(3) { animation-delay: 160ms; }
.slide.active .anim:nth-child(4) { animation-delay: 240ms; }
.slide.active .anim:nth-child(5) { animation-delay: 320ms; }
.slide.active .anim:nth-child(6) { animation-delay: 400ms; }
.slide.active .anim:nth-child(7) { animation-delay: 480ms; }
.slide.active .anim:nth-child(8) { animation-delay: 560ms; }

/* Animation within nested containers */
.slide.active .stagger-children > * {
  opacity: 0;
  animation: fadeSlideUp var(--dur-slow) var(--ease-out) forwards;
}
.slide.active .stagger-children > *:nth-child(1) { animation-delay: 100ms; }
.slide.active .stagger-children > *:nth-child(2) { animation-delay: 200ms; }
.slide.active .stagger-children > *:nth-child(3) { animation-delay: 300ms; }
.slide.active .stagger-children > *:nth-child(4) { animation-delay: 400ms; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim {
    opacity: 1 !important;
    transform: none !important;
  }

  .slide.active .anim,
  .slide.active .stagger-children > * {
    opacity: 1 !important;
    animation: none !important;
  }

  .bg-shape {
    display: none;
  }
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* --- Responsive / Mobile --- */
@media (max-width: 768px) {
  .nav-hint { display: none; }
  .deck-counter { font-size: 12px; right: 16px; bottom: 12px; }

  .deck-viewport.overview .deck-stage {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gap-16 { gap: var(--sp-16); }
.gap-24 { gap: var(--sp-24); }
.gap-32 { gap: var(--sp-32); }
.gap-48 { gap: var(--sp-48); }
.mt-auto { margin-top: auto; }
.mb-16 { margin-bottom: var(--sp-16); }
.mb-24 { margin-bottom: var(--sp-24); }
.mb-32 { margin-bottom: var(--sp-32); }
.mb-48 { margin-bottom: var(--sp-48); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }