/* ============================================================
   AI Receptionist Demo — Interactive Demo Page
   ============================================================ */

.demo-page {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-body);
}

/* Hero band */
.demo-hero {
  background: var(--green);
  color: #fff;
  padding: 64px 32px;
  text-align: center;
}
.demo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.demo-hero p {
  font-size: 1.125rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

/* Main demo area */
.demo-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Section labels */
.demo-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

/* The phone simulator */
.phone-frame {
  background: #111;
  border-radius: 40px;
  padding: 16px;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  position: relative;
}
.phone-notch {
  width: 120px;
  height: 28px;
  background: #111;
  border-radius: 0 0 20px 20px;
  margin: 0 auto 12px;
}
.phone-screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  min-height: 500px;
  position: relative;
}

/* Screen states */
.phone-content {
  padding: 20px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Missed call screen */
.missed-header {
  background: #FFE5E5;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.missed-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FEE2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DC2626;
  flex-shrink: 0;
}
.missed-info h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1C1C1A;
}
.missed-info p {
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 2px;
}
.missed-time {
  margin-left: auto;
  font-size: 0.7rem;
  color: #9CA3AF;
}

/* Text bubble chain */
.bubble-chain {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.bubble.visible {
  opacity: 1;
  transform: translateY(0);
}
.bubble.sent {
  background: var(--green);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble.received {
  background: #F3F4F6;
  color: #1C1C1A;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble-time {
  font-size: 0.65rem;
  color: #9CA3AF;
  margin-top: 4px;
}
.bubble.sent .bubble-time { text-align: right; }

/* Booking card */
.booking-card {
  background: #F0FFF4;
  border: 1.5px solid #86EFAC;
  border-radius: 16px;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
  margin-top: 8px;
}
.booking-card.visible { opacity: 1; }
.booking-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 10px;
}
.booking-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #86EFAC;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.booking-slot:hover { border-color: var(--green); background: #F0FFF4; }
.booking-slot.selected { border-color: var(--green); background: var(--green); color: #fff; }
.booking-slot-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #DCFCE7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #166534;
  flex-shrink: 0;
}
.booking-slot.selected .booking-slot-icon { background: rgba(255,255,255,0.2); color: #fff; }
.booking-slot-text strong { display: block; font-size: 0.85rem; }
.booking-slot-text span { font-size: 0.75rem; opacity: 0.7; }
.booking-slot.selected .booking-slot-text strong,
.booking-slot.selected .booking-slot-text span { color: #fff; }
.booking-slot-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.booking-slot.selected .booking-slot-check {
  background: #fff;
  border-color: #fff;
  color: var(--green);
}
.book-btn {
  margin-top: 12px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.book-btn:hover { background: var(--green-light); }
.book-btn:active { transform: scale(0.98); }

/* Confirmed state */
.confirmed-banner {
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.confirmed-banner.visible { opacity: 1; }
.confirmed-banner svg { margin-bottom: 6px; }
.confirmed-banner p { font-size: 0.8rem; opacity: 0.9; }
.confirmed-banner strong { font-size: 0.95rem; }

/* Demo controls */
.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.demo-controls p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.demo-play-btn {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
}
.demo-play-btn:hover { background: var(--amber-light); }
.demo-play-btn:active { transform: scale(0.97); }
.demo-play-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Step indicator */
.step-track {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 32px auto 8px;
  max-width: 360px;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.step-dot .dot-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}
.step-dot.active .dot-circle { background: var(--green); transform: scale(1.3); }
.step-dot.done .dot-circle { background: var(--amber); }
.step-dot .dot-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
}
.step-dot.active .dot-label { color: var(--green); font-weight: 700; }
.step-dot.done .dot-label { color: var(--amber); }
.step-line {
  flex: 0.6;
  height: 2px;
  background: var(--border);
  margin-bottom: 18px;
  transition: background 0.3s;
}
.step-line.done { background: var(--amber); }

/* What-you-get section */
.demo-features {
  margin-top: 56px;
}
.demo-features h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.feature-card .fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* CTA section */
.demo-cta {
  background: var(--green);
  color: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  margin-top: 56px;
}
.demo-cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}
.demo-cta p { opacity: 0.85; margin-bottom: 28px; font-size: 1rem; }
.cta-btn {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--amber-light); }

/* Responsive */
@media (max-width: 600px) {
  .demo-hero { padding: 48px 20px; }
  .phone-frame { max-width: 100%; }
  .demo-layout { padding: 32px 16px 60px; }
  .step-track { max-width: 100%; }
}