/* ===============================================
   Dating Tom Inc. — Series A Pitch Deck Styles
   =============================================== */

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

:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1c1c22;
  --border: #2a2a32;
  --text: #e8e6e3;
  --text-muted: #8a8a96;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.08);
  --red: #ff4d4d;
  --blue: #4d9eff;
  --purple: #b84dff;
  --green: #4dff88;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* — Loading Screen — */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#loading-screen.hidden {
  opacity: 0;
}

.loading-text {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  margin-top: 1rem;
  border-radius: 2px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  animation: loadingProgress 2s ease forwards;
}

@keyframes loadingProgress {
  to { width: 100%; }
}

/* — Progress Bar — */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 99;
  width: 0;
  transition: width 0.3s ease;
}

/* — Nebula Background — */
.nebula {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  transition: background 1.5s ease;
}

.nebula.slide-0  { background: radial-gradient(ellipse at 30% 50%, #4d9eff, transparent 70%); }
.nebula.slide-1  { background: radial-gradient(ellipse at 70% 40%, #ff4d4d, transparent 70%); }
.nebula.slide-2  { background: radial-gradient(ellipse at 50% 60%, #c8ff00, transparent 70%); }
.nebula.slide-3  { background: radial-gradient(ellipse at 40% 35%, #4dff88, transparent 70%); }
.nebula.slide-4  { background: radial-gradient(ellipse at 60% 50%, #b84dff, transparent 70%); }
.nebula.slide-5  { background: radial-gradient(ellipse at 50% 45%, #4d9eff, transparent 70%); }
.nebula.slide-6  { background: radial-gradient(ellipse at 60% 30%, #ff4d4d, transparent 70%); }
.nebula.slide-7  { background: radial-gradient(ellipse at 45% 55%, #4dff88, transparent 70%); }
.nebula.slide-8  { background: radial-gradient(ellipse at 35% 40%, #b84dff, transparent 70%); }
.nebula.slide-9  { background: radial-gradient(ellipse at 50% 50%, #c8ff00, transparent 70%); }
.nebula.slide-10 { background: radial-gradient(ellipse at 50% 50%, #c8ff00, transparent 70%); }
.nebula.slide-11 { background: radial-gradient(ellipse at 40% 60%, #4d9eff, transparent 70%); }
.nebula.slide-12 { background: radial-gradient(ellipse at 50% 40%, #b84dff, transparent 70%); }

/* — Starfield Canvas — */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* — Presentation Container — */
.deck {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.slide.exit-up {
  opacity: 0;
  transform: translateY(-30px);
}

/* — Slide Inner — */
.slide-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

/* — Typography — */
.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
  overflow: hidden;
}

h1.typewriter {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  letter-spacing: -0.02em;
}

h1.typewriter::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
}

.valuation {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-top: 1.5rem;
  opacity: 0.8;
}

.confidential {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2.5rem;
  opacity: 0.7;
  position: relative;
}

.confidential.glitch {
  animation: glitchText 3s infinite;
}

@keyframes glitchText {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, 2px); }
  98% { transform: translate(1px, -2px); }
}

/* — Redaction Mode — */
body.redacted .redactable {
  position: relative;
  color: transparent;
}

body.redacted .redactable::before {
  content: attr(data-redacted);
  position: absolute;
  inset: -2px;
  background: #000;
  border-radius: 2px;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* — Stat Grid — */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
  text-align: left;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: default;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.stat-card .label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-card .value {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
  will-change: transform;
}

.stat-card .note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 300;
}

/* Tooltip */
.stat-card .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.stat-card:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* — Bar Chart — */
.chart {
  margin-top: 1.8rem;
  text-align: left;
}

.chart-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
  gap: 0.8rem;
}

.chart-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 140px;
  text-align: right;
  font-weight: 400;
}

.chart-bar-container {
  flex: 1;
  height: 28px;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.chart-bar {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.slide.active .chart-bar {
  width: var(--w);
}

.chart-bar.accent { background: var(--accent); }
.chart-bar.blue { background: var(--blue); }
.chart-bar.muted { background: var(--text-muted); }
.chart-bar.purple { background: var(--purple); }
.chart-bar.green { background: var(--green); }

.chart-pct {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 36px;
}

/* — Growth Chart — */
/* — Live Counter (Cover) — */
.live-counter {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

/* — Growth Chart — */
.growth-chart {
  margin-top: 1.8rem;
  height: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.growth-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.growth-chart svg {
  width: 100%;
  height: calc(100% - 1.5rem);
}

.growth-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2s ease;
}

.slide.active .growth-path {
  stroke-dashoffset: 0;
}

.growth-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.growth-placeholder.hidden {
  display: none;
}

/* — Org Chart — */
.org-chart {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.org-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  text-align: center;
  position: relative;
  perspective: 800px;
  cursor: pointer;
}

.org-node-inner {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  position: relative;
  padding: 1rem 1.5rem;
}

.org-node.flipped .org-node-inner {
  transform: rotateY(180deg);
}

.org-node-front {
  backface-visibility: hidden;
}

.org-node-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  background: var(--surface);
  border-radius: 8px;
}

.org-node .title {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.org-node .name {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.org-node .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-style: italic;
}

.org-connector {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin: 0 auto;
}

.org-hiring {
  border: 2px dashed var(--accent);
  background: var(--accent-dim);
}

/* — Risk List — */
.risk-list {
  text-align: left;
  margin-top: 1.5rem;
}

.risk-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.risk-item:last-child {
  border: none;
}

.risk-severity {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.risk-severity:hover {
  transform: scale(1.05);
  animation: pulseBadge 1s ease infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.risk-severity.low {
  background: rgba(200, 255, 0, 0.12);
  color: var(--accent);
}

.risk-severity.med {
  background: rgba(77, 158, 255, 0.12);
  color: var(--blue);
}

.risk-severity.high {
  background: rgba(255, 77, 77, 0.12);
  color: var(--red);
}

.risk-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 300;
}

.risk-text strong {
  font-weight: 500;
}

/* — CTA Slide — */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 1rem 2.2rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 255, 0, 0.2);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn:active::before {
  transform: scale(2);
  transition: transform 0s;
}

.share-btn {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.share-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(200, 255, 0, 0.1);
}

.fine-print {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2rem;
  line-height: 1.8;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.6;
}

.footer-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3rem;
  opacity: 0.5;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* — Timeline — */
.timeline {
  margin-top: 1.8rem;
  text-align: left;
}

.timeline-item {
  display: flex;
  gap: 1.2rem;
  padding: 0.9rem 0;
  border-left: 2px solid var(--border);
  padding-left: 1.4rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: box-shadow 0.3s ease;
}

.slide.active .timeline-item::before {
  box-shadow: 0 0 12px var(--accent);
}

.timeline-phase {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 90px;
  padding-top: 0.1rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 300;
}

/* — Navigation — */
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 100;
  background: linear-gradient(transparent, var(--bg));
}

.nav-dots {
  display: flex;
  gap: 6px;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
}

.nav-dot:hover {
  background: var(--text-muted);
  transform: scale(1.5);
}

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

.nav-dot .dot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.nav-dot:hover .dot-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.nav-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.slide-counter {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* — Corner Badge — */
.badge {
  position: fixed;
  top: 1.2rem;
  left: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.badge:hover {
  color: var(--accent);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

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

/* Keyboard Shortcuts Help */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.shortcuts-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.shortcuts-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.shortcuts-overlay.show .shortcuts-panel {
  transform: scale(1);
}

.shortcuts-panel h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.shortcut-item:last-child {
  border-bottom: none;
}

.shortcut-key {
  font-family: var(--mono);
  font-size: 0.7rem;
  background: var(--surface-2);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.shortcut-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* — Popup — */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup {
  transform: scale(1);
}

.popup h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.popup p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.popup-close {
  margin-top: 1.5rem;
  padding: 0.6rem 1.8rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 40px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.popup-close:hover {
  transform: translateY(-2px);
}

/* — Stagger Animations — */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide.active .stagger > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.slide.active .stagger > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.slide.active .stagger > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.slide.active .stagger > *:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.slide.active .stagger > *:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}

.slide.active .stagger > *:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.slide.active .stagger > *:nth-child(7) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.95s;
}

/* — Post-Credits — */
.post-credits {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--accent);
  padding: 2rem 2rem 3rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 150;
  text-align: center;
  cursor: pointer;
}

.post-credits.visible {
  transform: translateY(0);
}

.post-credits-text {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
  font-style: italic;
  font-weight: 300;
}

.post-credits-dismiss {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.5;
}

/* — Quiz Slide — */
.quiz-container {
  margin-top: 1.5rem;
  position: relative;
  min-height: 200px;
}

.quiz-question {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.quiz-question.active {
  display: block;
}

.quiz-question.done {
  display: none;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-label {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text);
}

/* Option cards */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.quiz-option {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  color: var(--text);
}

.quiz-option:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.quiz-icon {
  font-size: 1.6rem;
}

.quiz-option-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Slider */
.quiz-slider-container {
  margin: 1rem 0;
}

.quiz-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.quiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(200, 255, 0, 0.3);
}

.quiz-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
}

.quiz-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* Term sheet radio */
.quiz-terms {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.quiz-term {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.quiz-term:hover {
  border-color: var(--text-muted);
}

.quiz-term input[type="radio"] {
  accent-color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.quiz-term input[type="radio"]:checked + .quiz-term-text {
  color: var(--text);
}

.quiz-term-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.quiz-term-text strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.quiz-next-btn {
  margin-top: 1.5rem;
  padding: 0.7rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 40px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.quiz-next-btn:hover {
  transform: translateY(-2px);
}

/* Results */
.quiz-results {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.quiz-results.active {
  display: block;
}

.quiz-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin: 1.5rem 0 0.5rem;
}

.quiz-score-number {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
}

.quiz-score-pct {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.7;
}

.quiz-verdict {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  min-height: 1.5em;
}

.quiz-breakdown {
  margin: 1rem 0;
}

.quiz-breakdown-row {
  margin-bottom: 0.6rem;
}

.quiz-percentile {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 1rem;
  opacity: 0.6;
}

/* Contact capture */
.quiz-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.5s ease;
}

.quiz-contact-header {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.quiz-contact-options {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-loi-btn,
.quiz-anon-btn {
  font-size: 0.85rem;
}

.quiz-anon-btn {
  background: transparent;
  border: 1px dashed var(--text-muted);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.quiz-anon-btn:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-1px);
}

.quiz-loi-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 300px;
  margin: 1rem auto 0;
  animation: fadeInUp 0.3s ease;
}

.quiz-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.quiz-input:focus {
  border-color: var(--accent);
}

.quiz-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.quiz-contact-result {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 1rem;
}

/* — Board Room — */
.boardroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.boardroom-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.boardroom-card .label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.boardroom-card .value {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
}

.boardroom-section {
  margin-top: 1.5rem;
  text-align: left;
}

.boardroom-section h4 {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.device-split-bar {
  display: flex;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.device-split-mobile {
  background: var(--blue);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s ease;
}

.device-split-desktop {
  background: var(--purple);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s ease;
}

/* — Due Diligence Mode — */
body.due-diligence .stat-card .tooltip {
  opacity: 1;
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: 0.5rem;
  white-space: normal;
  pointer-events: auto;
  background: rgba(255, 77, 77, 0.08);
  border-color: var(--red);
  color: var(--red);
}

/* — Tap Ripple (Investors Card) — */
#investorsCard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tap-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  to {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
  }
}

/* — Egg Discovery Counter — */
.egg-counter {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s, color 0.3s, border-color 0.3s;
  pointer-events: none;
}

.egg-counter.visible {
  opacity: 0.4;
  pointer-events: auto;
}

.egg-counter.visible:hover {
  opacity: 0.8;
}

.egg-counter.complete {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 0.6;
}

.egg-counter.pop {
  animation: eggPop 0.3s ease;
}

@keyframes eggPop {
  50% { transform: scale(1.3); }
}

/* — Slide 5 (Team) overflow fix — */
.slide[data-slide="5"] {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

/* — Touch Action — */
.quiz-slider {
  touch-action: none;
}

.chart-bar-container {
  touch-action: pan-y;
}

/* — Mobile Responsive — */
@media (max-width: 600px) {
  .slide {
    padding: 2rem 1.4rem;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .chart-label {
    min-width: 70px;
    font-size: 0.65rem;
  }

  .chart-row {
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .chart-bar-container {
    height: 22px;
  }

  .chart-pct {
    font-size: 0.6rem;
    min-width: 28px;
  }

  /* Competitive Landscape + Financial Model mobile — allow scroll */
  .slide[data-slide="4"],
  .slide[data-slide="7"] {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .nav {
    padding: 0.8rem 1rem;
  }

  .slide-counter {
    display: none;
  }

  /* Risk Factors mobile — allow scroll + compact layout */
  .slide[data-slide="6"] {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .risk-item {
    flex-direction: row;
    gap: 0.6rem;
    padding: 0.6rem 0;
    align-items: flex-start;
  }

  .risk-severity {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
    margin-top: 0.15rem;
  }

  .risk-text {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .risk-list {
    margin-top: 1rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .badge {
    font-size: 0.55rem;
    top: 1rem;
    left: 1rem;
  }

  /* Quiz mobile */
  .quiz-options {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .quiz-option {
    flex-direction: row;
    padding: 0.9rem 1rem;
    text-align: left;
  }

  .quiz-icon {
    font-size: 1.2rem;
  }

  .quiz-slider-labels {
    font-size: 0.45rem;
  }

  .quiz-score-number {
    font-size: 3rem;
  }

  .quiz-label {
    font-size: 0.95rem;
  }

  .quiz-breakdown-row .chart-label {
    min-width: 70px;
    font-size: 0.6rem;
  }

  /* Boardroom mobile */
  .boardroom-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .boardroom-card {
    padding: 0.8rem;
  }

  .boardroom-card .value {
    font-size: 1.3rem;
  }

  .boardroom-section .chart-label {
    min-width: 60px;
    font-size: 0.58rem;
  }

  .device-split-bar {
    font-size: 0.5rem;
  }

  /* Org chart mobile */
  .org-node-back {
    font-size: 0.7rem;
    padding: 0.6rem;
  }

  /* Allow scrolling on content-heavy slides */
  .slide[data-slide="9"],
  .slide[data-slide="12"] {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  /* Post-credits mobile */
  .post-credits {
    padding: 1.5rem 1.2rem 2.5rem;
  }

  .post-credits-text {
    font-size: 0.8rem;
  }
}

/* — Print Styles — */
@media print {
  body::before {
    content: 'THIS IS NOT A REAL INVESTOR DECK';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 5rem;
    font-family: var(--mono);
    color: rgba(255, 77, 77, 0.1);
    z-index: 9999;
    pointer-events: none;
  }
}
