/* === DEMO PHONE SIMULATOR === */
.demo-page {
  min-height: 100vh;
  padding: 120px 40px 80px;
  background: var(--gradient-hero);
}

/* Demo header */
.demo-header {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}
.demo-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--off-white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.demo-header p {
  font-size: 1rem;
  color: var(--off-white-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Simulator container */
.simulator-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

/* Phone device frame */
.phone-frame {
  background: var(--charcoal-light);
  border: 1px solid rgba(244,194,208,0.12);
  border-radius: 40px;
  padding: 32px 24px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(244,194,208,0.06);
}
.phone-notch {
  width: 80px; height: 24px;
  background: var(--charcoal);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 24px;
}
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 20px;
}
.phone-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--off-white);
}
.phone-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}
.phone-status-icons span {
  font-size: 0.6rem;
  color: var(--off-white-dim);
}
.phone-status-icons .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--off-white-dim);
}

/* Live label */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(244,194,208,0.08);
  border: 1px solid rgba(244,194,208,0.15);
  margin-bottom: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blush);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-badge .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Conversation */
.conversation {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fade-in 0.3s ease-out;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.ai { align-items: flex-start; }
.msg.caller { align-items: flex-end; }
.msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}
.msg.ai .msg-bubble {
  background: var(--charcoal-mid);
  color: var(--off-white);
  border-bottom-left-radius: 4px;
}
.msg.caller .msg-bubble {
  background: rgba(244,194,208,0.15);
  color: var(--blush);
  border-bottom-right-radius: 4px;
}
.msg-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush-dim);
  padding: 0 4px;
}
.msg.caller .msg-label { text-align: right; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--charcoal-mid);
  border-radius: 16px;
  width: fit-content;
  margin-bottom: 8px;
}
.typing-indicator span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--off-white-dim);
  animation: bounce 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Phone action bar */
.phone-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.phone-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(244,194,208,0.12);
  transition: all 0.2s;
  text-align: center;
}
.phone-btn-primary {
  background: var(--blush);
  color: var(--charcoal);
  border-color: var(--blush);
  font-weight: 600;
}
.phone-btn-primary:hover { background: #e8b4c4; }
.phone-btn-secondary {
  background: transparent;
  color: var(--off-white-dim);
}
.phone-btn-secondary:hover { background: rgba(244,194,208,0.08); color: var(--off-white); }
.phone-btn:active { transform: scale(0.97); }

/* Call info strip */
.call-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(244,194,208,0.08);
  margin-top: 16px;
}
.call-info-text { font-size: 0.72rem; color: var(--off-white-dim); }
.call-duration {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  color: var(--blush);
  font-weight: 600;
}

/* Right panel — demo steps + features */
.demo-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-step-card {
  background: var(--charcoal-light);
  border: 1px solid rgba(244,194,208,0.08);
  border-radius: 12px;
  padding: 24px;
  opacity: 0.5;
  transition: opacity 0.4s, border-color 0.4s;
}
.demo-step-card.active {
  opacity: 1;
  border-color: rgba(244,194,208,0.2);
}
.demo-step-card.completed {
  opacity: 0.7;
  border-color: rgba(244,194,208,0.12);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(244,194,208,0.1);
  border: 1px solid rgba(244,194,208,0.2);
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blush);
  margin-bottom: 12px;
}
.demo-step-card.completed .step-badge {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}
.demo-step-card.active .step-badge {
  background: rgba(244,194,208,0.15);
  border-color: var(--blush);
}
.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.8rem;
  color: var(--off-white-dim);
  line-height: 1.6;
}
.step-status {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 500;
}
.step-status.done { color: #4ade80; }
.step-status.progress { color: var(--blush); }

/* Demo CTA */
.demo-cta-card {
  background: linear-gradient(135deg, rgba(244,194,208,0.08), rgba(244,194,208,0.04));
  border: 1px solid rgba(244,194,208,0.15);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.demo-cta-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 8px;
}
.demo-cta-card p {
  font-size: 0.8rem;
  color: var(--off-white-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--blush);
  color: var(--charcoal);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}
.cta-btn:hover { background: #e8b4c4; transform: translateY(-1px); }
.cta-btn:active { transform: scale(0.97); }

/* Progress bar under call button */
.call-progress {
  height: 3px;
  background: rgba(244,194,208,0.1);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.call-progress-bar {
  height: 100%;
  background: var(--blush);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Hidden class */
.hidden { display: none !important; }

/* Booking summary panel */
.booking-summary {
  background: var(--charcoal-light);
  border: 1px solid rgba(244,194,208,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.booking-summary h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blush);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.booking-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.booking-field label { color: var(--off-white-dim); }
.booking-field span { color: var(--off-white); font-weight: 500; font-family: 'Syne', sans-serif; }
.sms-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  font-size: 0.65rem;
  font-weight: 500;
  color: #4ade80;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .demo-page { padding: 100px 20px 60px; }
  .simulator-wrap { grid-template-columns: 1fr; }
  .phone-frame { max-width: 360px; margin: 0 auto; }
}