/* SpeakClearly pitch deck */

:root {
  --primary: #1B3A4B;
  --primary-2: #2d5f73;
  --secondary: #4ECDC4;
  --secondary-2: #3dbdb5;
  --accent: #FF6B6B;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #2D3748;
  --text-muted: #718096;
  --border: #E2E8F0;
  --success: #48BB78;
  --warning: #ECC94B;
  --error: #FC8181;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--primary);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.deck { width: 100vw; height: 100vh; overflow: hidden; position: relative; }

.slide {
  width: 100vw; height: 100vh;
  display: none;
  padding: 72px 88px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.35s ease-out;
}
.slide.active { display: flex; flex-direction: column; justify-content: center; }

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

/* Slide types */
.slide-title {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  text-align: center;
  align-items: center;
}
.slide-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}
.slide-tinted { background: linear-gradient(180deg, #fff 0%, #E6F8F6 100%); }

/* Slide number */
.slide-num {
  position: absolute; top: 40px; right: 56px;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1.5px;
}
.slide-num.light { color: rgba(255, 255, 255, 0.4); }

/* Typography */
h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.02;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  color: var(--primary);
  margin-bottom: 32px; max-width: 960px;
}
h2.light { color: #fff; }
h2 em { font-style: italic; color: var(--secondary-2); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
p { font-size: 17px; line-height: 1.6; color: var(--text); }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); margin-bottom: 20px; }
.lead.light { color: rgba(255, 255, 255, 0.82); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--secondary-2); margin-bottom: 20px;
}
.kicker.light { color: var(--secondary); }
.max-760 { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Title slide specifics */
.logo-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px; justify-content: center;
}
.logo-row .logo { width: 72px; height: 72px; }
.wordmark {
  font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.5px;
}
.slide-title h1 { color: #fff; }
.tagline {
  font-size: 22px; color: rgba(255, 255, 255, 0.8);
  margin-top: 16px; max-width: 640px;
}
.footer-text {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.5px;
}

/* Two column */
.two-col {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: start;
}
.pain-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin-top: 20px;
}
.pain-list li {
  font-size: 17px; padding-left: 22px; position: relative;
  color: var(--text); line-height: 1.5;
}
.pain-list li::before {
  content: "—"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* Stat stack */
.stat-stack { display: flex; flex-direction: column; gap: 16px; }
.big-stat {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(27,58,75,.06);
}
.big-number {
  font-size: 64px; font-weight: 800; color: var(--primary);
  letter-spacing: -2px; line-height: 1;
}
.big-label {
  font-size: 15px; color: var(--text-muted); margin-top: 8px; line-height: 1.4;
}

/* Insight visual */
.insight-visual {
  margin: 32px 0;
  padding: 24px; background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product flow */
.product-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px; align-items: center;
  margin-top: 32px;
}
.flow-step {
  padding: 28px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 180px;
  box-shadow: 0 4px 12px rgba(27,58,75,.05);
}
.flow-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}
.flow-body h3 { font-size: 20px; margin-bottom: 8px; }
.flow-body p { font-size: 15px; color: var(--text-muted); }
.flow-arrow {
  font-size: 32px; color: var(--secondary);
  font-weight: 300;
}

/* Demo grid */
.demo-grid {
  display: grid; grid-template-columns: auto 1fr;
  gap: 56px; align-items: center; margin-top: 32px;
}

/* Device mock */
.device-mock {
  width: 280px; height: 560px;
  background: #000;
  border-radius: 36px; padding: 12px;
  box-shadow: 0 24px 48px rgba(27, 58, 75, 0.15);
  transform: rotate(-2deg);
}
.device-chrome {
  display: flex; gap: 5px; padding: 10px 14px;
  background: #fff; border-top-left-radius: 24px; border-top-right-radius: 24px;
}
.device-chrome span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.device-screen {
  background: linear-gradient(180deg, #fff 0%, #F5F7FA 100%);
  padding: 22px 18px;
  border-bottom-left-radius: 24px; border-bottom-right-radius: 24px;
  min-height: 488px;
}
.d-kicker {
  display: inline-block; padding: 4px 12px; background: var(--secondary);
  color: var(--primary); border-radius: 999px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.d-word { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.d-phonetic { font-size: 14px; color: var(--text-muted); font-style: italic; margin-bottom: 16px; }
.d-wave { width: 100%; height: 70px; background: #F5F7FA; border-radius: 8px; padding: 6px; margin-bottom: 16px; }
.d-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.d-metric {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 4px; text-align: center;
}
.d-metric-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 4px; }
.d-metric-val { font-size: 22px; font-weight: 800; color: var(--primary); }
.d-coaching {
  background: var(--bg); border-left: 3px solid var(--secondary);
  border-radius: 6px; padding: 12px 14px; font-size: 13px; color: var(--text); line-height: 1.5;
}
.d-coach-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 4px; }

.side-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.side-list li {
  font-size: 19px; line-height: 1.5; padding-left: 28px; position: relative;
  color: var(--text);
}
.side-list li::before {
  content: "●"; position: absolute; left: 0; color: var(--secondary);
  font-size: 12px; top: 4px;
}
.side-list strong { color: var(--primary); font-weight: 700; }

/* Market grid */
.market-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 32px 0;
}
.market-card {
  padding: 32px;
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(27,58,75,.06);
}
.market-card.tam { border-top: 4px solid var(--primary); }
.market-card.sam { border-top: 4px solid var(--secondary); }
.market-card.som { border-top: 4px solid var(--success); }
.market-label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px;
}
.market-num {
  font-size: 52px; font-weight: 800; color: var(--primary);
  letter-spacing: -1.5px; line-height: 1; margin-bottom: 10px;
}
.market-text { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

/* Competition matrix — SVG based */
.matrix-chart-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 8px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 48px;
  box-shadow: 0 8px 28px rgba(27, 58, 75, 0.08);
}
.matrix-chart {
  width: 100%;
  height: auto;
  display: block;
}

/* Moat */
.moat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.moat-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}
.moat-card h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.moat-card p { color: rgba(255, 255, 255, 0.75); font-size: 15px; line-height: 1.5; }
.moat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--secondary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; margin-bottom: 16px;
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.tier {
  padding: 28px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}
.tier-highlight {
  border: 2px solid var(--secondary);
  box-shadow: 0 12px 28px rgba(78, 205, 196, 0.15);
  transform: scale(1.03);
}
.tier-flag {
  position: absolute; top: -11px; left: 28px;
  padding: 4px 12px; background: var(--secondary); color: var(--primary);
  border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.tier-name {
  font-size: 14px; color: var(--text-muted); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
}
.tier-price {
  font-size: 36px; font-weight: 800; color: var(--primary);
  letter-spacing: -0.5px; margin-bottom: 18px;
}
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tier li {
  font-size: 14px; padding-left: 20px; position: relative; color: var(--text-muted);
}
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.metrics-bar {
  display: flex; gap: 48px; justify-content: center;
  padding: 16px; margin-top: 24px;
  background: var(--primary); color: #fff; border-radius: 12px;
  font-size: 15px;
}
.metrics-bar strong { color: var(--secondary); }

/* Traction */
.traction-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 24px;
}
.traction-card {
  padding: 22px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.traction-card.next {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}
.traction-card.next h3, .traction-card.next p { color: #fff; }
.traction-card.next p { color: rgba(255, 255, 255, 0.8); }
.traction-check {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 12px; font-size: 14px;
}
.traction-card.next .traction-check { background: var(--secondary); color: var(--primary); }
.traction-card h3 { font-size: 15px; margin-bottom: 6px; }
.traction-card p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* Ask */
.ask-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.ask-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}
.ask-card h3 { color: #fff; margin-bottom: 8px; }
.ask-card p { color: rgba(255, 255, 255, 0.75); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.ask-btn {
  display: inline-block; padding: 10px 18px;
  background: var(--secondary); color: var(--primary);
  border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 13px;
  transition: background 0.15s;
}
.ask-btn:hover { background: var(--secondary-2); }
.closing-line {
  text-align: center; margin-top: 40px; font-size: 20px; font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

/* Controls */
.deck-controls {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: rgba(27, 58, 75, 0.9);
  backdrop-filter: blur(8px);
  color: #fff; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  z-index: 100;
}
.deck-controls button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; line-height: 28px;
  transition: background 0.15s;
}
.deck-controls button:hover { background: rgba(255, 255, 255, 0.2); }
#counter { min-width: 50px; text-align: center; }

/* Print (export to PDF) */
@media print {
  .deck-controls { display: none; }
  .slide {
    display: flex !important;
    page-break-after: always;
    box-shadow: none;
  }
  html, body { height: auto; overflow: visible; }
  .deck { height: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .slide { padding: 48px 40px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .two-col, .demo-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-flow { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .device-mock { transform: none; margin: 0 auto; }
  .market-grid, .moat-grid, .pricing, .traction-grid, .ask-grid { grid-template-columns: 1fr; }
  .tier-highlight { transform: none; }
}
