/* Reelation ICPC — elia-icpc-1.0.0 */
:root {
  --slide-scale: 1;
  --transition-ms: 280ms;
  --bg-canvas: #F0F5FA;
  --bg-surface: #FFFFFF;
  --bg-sunken: #F9FAFB;
  --border-subtle: #E0E6F0;
  --border-default: #E5E7EB;
  --text-primary: #1A1A1A;
  --text-secondary: #4F4F4F;
  --text-tertiary: #6B7280;
  --text-on-accent: #FFFFFF;
  --accent-default: #2F80ED;
  --accent-hover: #1C64D8;
  --accent-subtle: #EFF6FF;
  --accent-highlight-bg: #DBEAFE;
  --accent-glow: #60A5FA;
  --success: #27AE60;
  --warning: #F59E0B;
  --danger: #EB5757;
  --channel-whatsapp: #25D366;
  --shadow-tint: rgba(15, 23, 42, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }

.deck-body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-tap-highlight-color: transparent;
}

.deck-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem;
  flex-shrink: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  border-bottom: 1px solid var(--border-subtle);
}

.deck-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.deck-controls button:hover:not(:disabled) {
  background: var(--accent-subtle);
  border-color: color-mix(in srgb, var(--accent-default) 30%, transparent);
}

.deck-controls button:disabled { opacity: 0.35; cursor: not-allowed; }

.slide-counter {
  min-width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.deck-stage {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.slide-canvas {
  width: 1280px;
  height: 720px;
  transform: scale(var(--slide-scale, 1));
  transform-origin: center center;
  position: relative;
  overflow: hidden;
}

.deck-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-ms) ease;
  background: var(--bg-canvas);
}

.deck-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.slide-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.slide-glow::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent-glow) 18%, transparent) 0%, transparent 70%);
  opacity: 0.7;
}

.slide-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-highlight-bg);
  color: var(--accent-default);
  border: 1px solid color-mix(in srgb, var(--accent-default) 22%, transparent);
}

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-default); }

h1.slide-title { margin: 0; font-size: 52px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h2.slide-heading { margin: 0 0 8px; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h3.slide-subheading { margin: 0 0 6px; font-size: 20px; font-weight: 600; }

.lead { margin: 16px 0 0; font-size: 20px; line-height: 1.5; color: var(--text-secondary); max-width: 52ch; }
.muted { color: var(--text-secondary); }
.small { font-size: 14px; line-height: 1.5; }
.highlight { background: var(--accent-highlight-bg); color: var(--accent-default); border-radius: 6px; padding: 2px 8px; }

.quote-block {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px var(--shadow-tint);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-default);
  max-width: 640px;
}

.centered { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.centered .lead { margin-left: auto; margin-right: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; flex: 1; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; flex: 1; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px var(--shadow-tint);
}

.card h3, .card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.card p, .card li { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.card ul { margin: 0; padding-left: 18px; }
.card ul li + li { margin-top: 6px; }

.stat-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.stat-item { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; }
.stat-item .icon { font-size: 20px; flex-shrink: 0; }

.question-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1; overflow: hidden; }
.question-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px var(--shadow-tint);
}
.question-card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--accent-default); }
.question-card ul { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.question-card ul li + li { margin-top: 4px; }

.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: 1; }
.compare-col h3 { font-size: 18px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border-subtle); }
.compare-col.doctolib h3 { border-color: var(--text-tertiary); }
.compare-col.whatsapp h3 { border-color: var(--channel-whatsapp); color: var(--accent-default); }

.demo-slide .slide-inner { padding: 32px 40px; }
.demo-layout { display: grid; grid-template-columns: 420px 1fr; gap: 28px; flex: 1; min-height: 0; }
.demo-meta { display: flex; flex-direction: column; gap: 14px; min-height: 0; }

.meta-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px var(--shadow-tint);
}
.meta-block.goal { border-left: 3px solid var(--accent-default); }
.meta-block.behind { border-left: 3px solid var(--text-tertiary); flex: 1; overflow: auto; }
.meta-block.value { border-left: 3px solid var(--success); }

.meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.meta-block p, .meta-block li { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.meta-block ul { margin: 0; padding-left: 16px; }
.meta-block ul li + li { margin-top: 4px; }

.demo-phone-wrap { display: flex; align-items: center; justify-content: center; min-height: 0; }

.wa-phone {
  width: 340px;
  height: 520px;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px var(--shadow-tint);
}

.wa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.wa-channel {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--channel-whatsapp) 40%, transparent);
  background: color-mix(in srgb, var(--channel-whatsapp) 8%, var(--bg-surface));
  color: var(--channel-whatsapp);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
}

.wa-contact { flex: 1; text-align: center; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa-status { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.wa-chat { flex: 1; overflow-y: auto; padding: 12px 0; min-height: 0; }

.wa-bubble-row {
  display: flex;
  padding: 0 12px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.wa-bubble-row.visible { opacity: 1; transform: translateY(0); }
.wa-bubble-row.from-clinic { justify-content: flex-end; }
.wa-bubble-row.from-patient { justify-content: flex-start; }

.wa-bubble { max-width: 88%; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.wa-bubble.from-clinic { background: var(--accent-default); color: var(--text-on-accent); border-radius: 18px 18px 4px 18px; }
.wa-bubble.from-patient { background: var(--bg-sunken); color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: 18px 18px 18px 4px; }
.wa-bubble-label { margin-top: 4px; font-size: 10px; font-weight: 500; opacity: 0.75; }

.wa-system-pill { display: flex; justify-content: center; margin: 4px 0 8px; opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.wa-system-pill.visible { opacity: 1; transform: translateY(0); }
.wa-system-pill span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-sunken);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.wa-typing { display: flex; gap: 4px; padding: 4px 0; }
.wa-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); animation: typing-bounce 0.7s ease infinite; }
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.wa-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.wa-actions.visible { opacity: 1; transform: translateY(0); }
.wa-action-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-default) 12%, var(--bg-surface));
  color: var(--accent-default);
  border: 1px solid color-mix(in srgb, var(--accent-default) 22%, transparent);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  flex: 1;
  align-content: center;
  padding: 0 40px;
  max-height: 520px;
}
.timeline-step { display: flex; align-items: center; gap: 10px; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-default); flex-shrink: 0; box-shadow: 0 0 0 3px var(--accent-subtle); }
.timeline-label { font-size: 14px; font-weight: 500; padding: 8px 12px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 8px; flex: 1; box-shadow: 0 2px 6px var(--shadow-tint); }
.timeline-connector { display: none; }

.positioning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; flex: 1; align-items: center; }
.positioning-card { padding: 28px; border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--border-subtle); box-shadow: 0 4px 16px var(--shadow-tint); }
.positioning-card h3 { margin: 0 0 12px; font-size: 22px; }
.positioning-card.doctolib { border-top: 4px solid var(--text-tertiary); }
.positioning-card.reelation { border-top: 4px solid var(--accent-default); }

.opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; flex: 1; }
.opp-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 16px; box-shadow: 0 2px 8px var(--shadow-tint); }
.opp-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.opp-card p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text-secondary); }

.section-divider { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.section-divider .divider-line { width: 80px; height: 3px; background: var(--accent-default); border-radius: 2px; margin: 20px auto; }
.closing-message { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; max-width: 28ch; margin: 0 auto; }
.closing-sub { margin-top: 16px; font-size: 18px; color: var(--text-secondary); max-width: 42ch; }
