/* ─── DEMO HEADER ─── */
.demo-header {
  background: var(--midnight);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}
.demo-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.demo-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.demo-nav-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.demo-nav-link:hover { color: #fff; }

/* ─── DEMO CONTAINER ─── */
.demo-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.demo-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.demo-badge {
  display: inline-block;
  background: var(--amber-dim);
  color: var(--amber);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.demo-intro h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.demo-intro h1 em { font-style: italic; color: var(--amber); }
.demo-intro p {
  color: var(--text-body);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── CALL SIM WRAP ─── */
.call-sim-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

/* ─── PHONE FRAME ─── */
.phone-frame {
  background: var(--midnight);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11,31,58,0.25);
}

.phone-header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-clinic {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  color: #fff;
}
.phone-number {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
}

.phone-body {
  padding: 1.25rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.transcript-system {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem 0;
}
.ts-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.5s ease-in-out infinite;
}

.transcript-entry {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 88%;
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.transcript-entry.ai {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.transcript-entry.caller {
  background: var(--amber);
  color: var(--midnight);
  font-weight: 500;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  text-align: right;
}
.transcript-entry .speaker-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  opacity: 0.6;
}
.transcript-entry.ai .speaker-label { color: var(--amber); }
.transcript-entry.caller .speaker-label { color: rgba(11,31,58,0.5); }

.phone-footer {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.call-timer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.call-status-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ─── BOOKING CARD ─── */
.booking-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(11,31,58,0.06);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.booking-card.active {
  opacity: 1;
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 8px 30px rgba(245,158,11,0.12);
}
.booking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.booking-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.booking-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s;
}
.booking-card.active .booking-pulse {
  background: var(--amber);
  animation: pulse-ring 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(245,158,11,0.4);
}
.booking-patient {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
}
.booking-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.bd-row:last-child { border-bottom: none; }
.bd-row span { color: var(--text-muted); }
.bd-row strong { color: var(--text-dark); font-weight: 600; }
.booking-sms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--amber-dim);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 500;
  animation: fadeInUp 0.3s ease;
}
.booking-sms svg { flex-shrink: 0; }

/* ─── CALL LOG ─── */
.call-log {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.call-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.call-log-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cli-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-body);
}
.cli-row strong { color: var(--text-dark); font-weight: 600; }
.cli-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--warm-white-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.replay-btn:hover { background: var(--warm-white); }

/* ─── DEMO CTA ─── */
.demo-cta {
  text-align: center;
  padding: 4rem 0 2rem;
}
.demo-cta h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.demo-cta h2 em { font-style: italic; color: var(--amber); }
.demo-cta > p {
  color: var(--text-body);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.demo-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--midnight);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--midnight-light); }
.btn-secondary {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.btn-secondary:hover { color: var(--text-dark); }

/* ─── FOOTER ─── */
.demo-footer {
  background: #060f1a;
  color: rgba(255,255,255,0.35);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
}
.demo-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .call-sim-wrap {
    grid-template-columns: 1fr;
  }
  .phone-frame {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .booking-card {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .call-log-items {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .demo-container { padding: 3rem 1.25rem 4rem; }
  .call-log-items { grid-template-columns: 1fr 1fr; }
}