/* ============================================================
   DENTAL DEMO — /demo/dental page styles
   Simulates: missed call → SMS → booking confirmation flow
   ============================================================ */

body { background: var(--bg); }

/* Nav */
.nav-demo-link {
  margin-left: auto;
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.nav-demo-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.nav-demo-link:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.dd-hero {
  padding: 80px 48px 64px;
  background: linear-gradient(180deg, #1A1A1A 0%, #2A2A2A 100%);
}
.dd-hero-inner { max-width: 860px; margin: 0 auto; }
.dd-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.dd-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: white;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.dd-sub {
  font-size: 18px;
  color: #A0A0A0;
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.dd-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}
.dd-cta-btn:hover { background: var(--accent-dark); }

/* Timeline */
.dd-timeline-section { padding: 80px 48px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dd-timeline-inner { max-width: 900px; margin: 0 auto; }
.dd-timeline-header { text-align: center; margin-bottom: 48px; }
.dd-section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.dd-section-sub { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 auto; line-height: 1.6; }
.dd-timeline {
  display: flex;
  gap: 32px;
  align-items: start;
}
.dd-timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dd-tl-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFF0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.dd-tl-step {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}
.dd-tl-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.dd-tl-content p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Simulator */
.dd-sim-section { padding: 80px 48px; }
.dd-sim-inner { max-width: 1100px; margin: 0 auto; }
.dd-sim-header { text-align: center; margin-bottom: 48px; }
.dd-sim-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

/* Phone */
.dd-phone-wrap {
  display: flex;
  justify-content: center;
}
.dd-phone {
  width: 280px;
  background: #1A1A1A;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2), inset 0 0 0 2px #333;
  position: relative;
}
.dd-phone::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #1A1A1A;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.dd-phone-screen {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  min-height: 420px;
  position: relative;
}
.dd-phone-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  background: #FAFAFA;
}

/* Missed call stage */
.dd-phone-call-ui {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  margin-top: 16px;
}
.dd-call-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.dd-call-info {}
.dd-call-name { font-weight: 700; font-size: 16px; color: var(--fg); margin-bottom: 2px; }
.dd-call-number { font-size: 12px; color: var(--muted); }
.dd-call-missed {
  font-size: 12px;
  color: #E8622A;
  margin-top: 6px;
  font-weight: 600;
}

/* SMS notification */
.dd-sms-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #F0F0F0;
  margin: 10px 12px;
  border-radius: 12px;
  border: 1px solid #E5E0DA;
  cursor: pointer;
}
.dd-sms-notif-icon { font-size: 20px; }
.dd-sms-notif-text { font-size: 13px; font-weight: 600; color: var(--fg); }
.dd-sms-notif-preview { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* SMS thread */
.dd-sms-thread { background: #E8E4DE; height: 100%; padding: 0; }
.dd-sms-header { font-size: 13px; font-weight: 600; color: var(--fg); padding: 12px 16px 10px; background: white; border-bottom: 1px solid #E5E0DA; }
.dd-sms-bubble { padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; max-width: 82%; word-break: break-word; }
.dd-sms-in { background: white; color: var(--fg); border-bottom-left-radius: 4px; margin: 8px 12px 0; }
.dd-sms-out { background: #DCF8C6; color: var(--fg); border-bottom-right-radius: 4px; margin: 8px 12px 0; align-self: flex-end; }
.dd-sms-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-block; padding: 6px 12px; background: #FFF0E8; border-radius: 8px; font-size: 13px; margin-top: 4px; }
.dd-sms-time { font-size: 10px; color: #AAA; padding: 2px 16px; }
.dd-confirm-msg { font-size: 13px; }
.dd-confirm-msg strong { font-size: 14px; display: block; margin: 4px 0; }

/* Stage controls */
.dd-stage-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dd-stage-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--fg); }
.dd-stage-btns { display: flex; flex-direction: column; gap: 8px; }
.dd-stage-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  width: 100%;
}
.dd-stage-btn:hover { border-color: var(--accent); color: var(--fg); }
.dd-stage-btn.active { border-color: var(--accent); background: #FFF0E8; color: var(--fg); }
.dd-stage-btn.active .dd-stage-num { background: var(--accent); color: white; }
.dd-stage-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E5E0DA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

/* Toggle */
.dd-auto-toggle { }
.dd-toggle-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.dd-toggle-label input { display: none; }
.dd-toggle-switch {
  width: 40px;
  height: 22px;
  background: #E5E0DA;
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
}
.dd-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.dd-toggle-label input:checked + .dd-toggle-switch { background: var(--accent); }
.dd-toggle-label input:checked + .dd-toggle-switch::after { transform: translateX(18px); }

/* Info box */
.dd-stage-info {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #F0EDE8;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.dd-info-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.dd-stage-info p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Stats */
.dd-stats { display: flex; flex-direction: column; gap: 10px; }
.dd-stat-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.dd-stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.2;
}
.dd-stat-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Booking widget */
.dd-booking-section { padding: 60px 48px 80px; background: var(--surface); border-top: 1px solid var(--border); }
.dd-booking-inner { max-width: 800px; margin: 0 auto; }
.dd-booking-header { text-align: center; margin-bottom: 36px; }
.dd-booking-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.dd-bw-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--fg);
  color: white;
  border-bottom: 1px solid #333;
}
.dd-bw-avatar { font-size: 28px; }
.dd-bw-name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.dd-bw-type { font-size: 13px; color: #AAA; }
.dd-bw-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dd-bw-date-col { padding: 20px; border-right: 1px solid var(--border); }
.dd-bw-month-label { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--fg); }
.dd-bw-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.dd-bw-day-header { font-size: 10px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.dd-bw-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.dd-bw-day-cell.disabled { color: #CCC; cursor: default; }
.dd-bw-day-cell.available { background: #F0F0F0; color: var(--fg); }
.dd-bw-day-cell.available:hover { background: #E5E0DA; }
.dd-bw-day-cell.selected { background: var(--accent); color: white; font-weight: 700; }
.dd-bw-selected-label { font-size: 9px; margin-top: 2px; }
.dd-bw-time-col { padding: 20px; }
.dd-bw-time-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.dd-bw-times { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.dd-bw-time {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.dd-bw-time.available:hover { border-color: var(--accent); background: #FFF0E8; color: var(--accent); }
.dd-bw-time.selected { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }
.dd-bw-time.disabled { color: #CCC; cursor: not-allowed; }
.dd-bw-confirm-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.dd-bw-confirm-btn:hover { background: var(--accent-dark); }

/* Pipeline */
.dd-pipeline-section { padding: 80px 48px; background: #1A1A1A; }
.dd-pipeline-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.dd-pipeline-section .dd-section-title { color: white; }
.dd-pipeline-section .dd-section-sub { color: #9A9590; margin-bottom: 48px; }
.dd-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}
.dd-pipeline-stage {
  flex: 0 0 180px;
  text-align: center;
  padding: 24px;
  background: #252525;
  border: 1px solid #333;
  border-radius: 12px;
}
.dd-pipeline-icon { font-size: 32px; margin-bottom: 12px; }
.dd-pipeline-label { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: white; margin-bottom: 6px; }
.dd-pipeline-desc { font-size: 12px; color: #888; line-height: 1.5; }
.dd-pipeline-arrow { color: #444; font-size: 24px; padding: 0 8px; }
.dd-pipeline-note { font-size: 13px; color: #666; }

/* Chat preview */
.dd-chat-section { padding: 80px 48px; background: var(--surface); }
.dd-chat-inner { max-width: 960px; margin: 0 auto; }
.dd-chat-header { text-align: center; margin-bottom: 48px; }
.dd-chat-preview { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.dd-chat-phone-wrap { display: flex; justify-content: center; }
.dd-chat-phone {
  width: 280px;
  background: var(--fg);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.dd-chat-phone-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #333;
}
.dd-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.dd-chat-name { font-size: 13px; font-weight: 600; color: white; }
.dd-chat-status { font-size: 11px; color: #888; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.dd-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.dd-chat-msgs { padding: 16px; min-height: 200px; }
.dd-chat-bubble { font-size: 13px; line-height: 1.5; }
.dd-chat-ai { background: white; color: var(--fg); padding: 10px 14px; border-radius: 4px 14px 14px 14px; border: 1px solid #E5E0DA; }
.dd-chat-suggestions { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.dd-chat-chip { background: #F0F0F0; border-radius: 8px; padding: 6px 12px; font-size: 11px; color: var(--muted); }
.dd-chat-input-bar { padding: 12px 16px; }
.dd-chat-input { background: #2A2A2A; border-radius: 20px; padding: 10px 16px; font-size: 13px; color: #666; }
.dd-chat-features { display: flex; flex-direction: column; gap: 20px; }
.dd-chat-feature { display: flex; gap: 16px; align-items: flex-start; }
.dd-feature-icon { font-size: 28px; flex-shrink: 0; }
.dd-chat-feature strong { font-size: 15px; font-weight: 700; color: var(--fg); display: block; margin-bottom: 4px; }
.dd-chat-feature p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Guide section */
.dd-guide-section { padding: 80px 48px; }
.dd-guide-inner { max-width: 800px; margin: 0 auto; }
.dd-guide-badge { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.dd-guide-title { font-family: 'Syne', sans-serif; font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--fg); letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px; }
.dd-guide-sub { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 48px; }
.dd-guide-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }
.dd-guide-step { display: flex; gap: 24px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border); }
.dd-guide-step:last-child { border-bottom: none; }
.dd-guide-step-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: #E5E0DA; flex-shrink: 0; width: 48px; line-height: 1; }
.dd-guide-step strong { font-size: 16px; font-weight: 700; color: var(--fg); display: block; margin-bottom: 6px; }
.dd-guide-step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.dd-guide-download-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--fg);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}
.dd-guide-download-btn:hover { background: #333; }

/* CTA */
.dd-cta-section { padding: 80px 48px; background: var(--accent); }
.dd-cta-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.dd-cta-section h2 { font-family: 'Syne', sans-serif; font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: white; letter-spacing: -1px; margin-bottom: 16px; }
.dd-cta-section p { font-size: 18px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 36px; }
.dd-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.dd-cta-primary { padding: 14px 32px; background: white; color: var(--accent); border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background 0.15s; }
.dd-cta-primary:hover { background: #F0F0F0; }
.dd-cta-secondary { padding: 14px 32px; color: rgba(255,255,255,0.8); font-size: 15px; text-decoration: none; display: flex; align-items: center; }

/* Responsive */
@media (max-width: 768px) {
  .dd-hero { padding: 60px 24px 48px; }
  .dd-timeline { flex-direction: column; gap: 24px; }
  .dd-sim-layout { grid-template-columns: 1fr; }
  .dd-phone-wrap { display: none; }
  .dd-bw-body { grid-template-columns: 1fr; }
  .dd-chat-preview { grid-template-columns: 1fr; }
  .dd-chat-phone-wrap { display: none; }
  .dd-pipeline { flex-direction: column; gap: 16px; }
  .dd-pipeline-arrow { display: none; }
  .dd-stage-controls { gap: 16px; }
  .dd-guide-step { gap: 16px; }
  .dd-cta-section { padding: 60px 24px; }
  .dd-guide-section { padding: 60px 24px; }
  .dd-chat-section { padding: 60px 24px; }
  .dd-pipeline-section { padding: 60px 24px; }
  .dd-booking-section { padding: 60px 24px; }
  .dd-sim-section { padding: 60px 24px; }
  .dd-timeline-section { padding: 60px 24px; }
}