/* demo.css — Demo page styles */

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-back {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }

.nav-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Demo hero */
.demo-hero {
  padding: 80px 80px 64px;
  border-bottom: 1px solid var(--border);
}
.demo-hero-inner { max-width: 680px; }
.demo-hero .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.demo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.demo-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.demo-hero .lede {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 580px;
}

/* Workflow section */
.workflow-section {
  padding: 80px;
  border-bottom: 1px solid var(--border);
}
.workflow-header { margin-bottom: 56px; }
.workflow-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.workflow-header p { color: var(--text-muted); font-size: 0.9375rem; }

.workflow-timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  align-items: flex-start;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
.timeline-step.step-active,
.timeline-step.step-done { opacity: 1; }

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  position: relative;
}

.marker-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.call-icon { color: var(--text-muted); }
.ai-icon { color: var(--accent); }
.book-icon { color: var(--text-muted); }
.crm-icon { color: var(--text-muted); }

.marker-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: var(--border);
}
.timeline-step:last-child .marker-line { display: none; }

.step-content {
  padding: 0 0 48px 24px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 400;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.step-detail { }

/* Call simulation */
.call-sim-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
}

.call-sim-caller { display: flex; align-items: center; gap: 16px; }

.caller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.caller-name { font-weight: 600; font-size: 1rem; }
.caller-phone { font-size: 0.875rem; color: var(--text-muted); margin-top: 2px; }

.call-sim-status { display: flex; align-items: center; gap: 8px; }

.pulse-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 1.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.missed-label {
  font-size: 0.875rem;
  color: #ef4444;
  font-weight: 600;
}

.voicemail-box {
  margin-top: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  max-width: 480px;
}

.voicemail-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.voicemail-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Phone mockup */
.phone-mockup {
  width: 280px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.phone-header {
  background: #252525;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.phone-contact {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.phone-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message.incoming {
  align-self: flex-start;
}

.message p {
  background: #2a2a2a;
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
  max-width: 230px;
}

.cal-link {
  color: var(--accent);
  text-decoration: underline;
  font-size: 0.75rem;
  word-break: break-all;
}

.msg-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  padding-left: 14px;
}

/* Calendly placeholder */
.calendly-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 560px;
}

.cal-placeholder {
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--text-muted);
}
.cal-placeholder svg { opacity: 0.4; }
.cal-placeholder p { font-size: 1rem; font-weight: 600; color: var(--text); }
.cal-placeholder span { font-size: 0.875rem; }

.booking-confirmed {
  padding: 40px;
  text-align: center;
}
.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #22c55e;
}
.booking-confirmed h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.confirm-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* CRM card */
.crm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  max-width: 560px;
}

.crm-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.crm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.crm-name { font-weight: 600; font-size: 1rem; }
.crm-phone { font-size: 0.875rem; color: var(--text-muted); margin-top: 2px; }

.crm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.crm-timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface-2);
  border-radius: 8px;
}

.mini-event {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  font-size: 0.8125rem;
  align-items: flex-start;
}
.mini-time { color: var(--text-muted); font-size: 0.75rem; }
.mini-action { color: var(--text); line-height: 1.4; }

.crm-source {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.crm-source::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* Workflow actions */
.workflow-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.btn-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.btn-trigger:hover { background: #e55a28; transform: translateY(-1px); }
.btn-trigger:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-reset {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.btn-reset:hover { border-color: var(--text-muted); color: var(--text); }

/* Demo test form section */
.demo-test-section {
  padding: 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.demo-test-inner { max-width: 560px; }
.demo-test-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.demo-test-inner > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9375rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus { border-color: var(--accent); }

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  margin-top: 4px;
}
.btn-submit:hover { background: #e55a28; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-result {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.result-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
}

.result-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
}

.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* FAQ */
.demo-faq { padding: 80px; border-bottom: 1px solid var(--border); }
.faq-inner { max-width: 960px; }
.faq-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.faq-item { }
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Demo footer */
.demo-footer {
  padding: 48px 80px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer-back:hover { color: var(--text); }
.footer-cta { display: flex; align-items: center; gap: 20px; }
.footer-cta p { font-size: 0.9375rem; color: var(--text-muted); }
.btn-footer-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-footer-cta:hover { background: #e55a28; }

/* Responsive */
@media (max-width: 900px) {
  .demo-nav, .demo-hero, .workflow-section, .demo-test-section, .demo-faq, .demo-footer {
    padding-left: 40px;
    padding-right: 40px;
  }
  .call-sim-box { max-width: 100%; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 480px) {
  .demo-nav, .demo-hero, .workflow-section, .demo-test-section, .demo-faq {
    padding-left: 24px;
    padding-right: 24px;
  }
  .demo-footer { padding: 40px 24px; }
  .timeline-step { grid-template-columns: 56px 1fr; }
  .phone-mockup { width: 100%; }
  .crm-card { padding: 20px; }
}