/* ==========================================
   AnswerAI — Vertical Demo Pages
   Shared styles for /demo/medspa, /demo/dentist, /demo/roofer
   ========================================== */

/* ── Back link ─────────────────────────── */
.vpage-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.vpage-back-link:hover {
  color: var(--text-primary);
}

/* ── Hero ───────────────────────────────── */
.vpage-hero {
  padding: 80px 24px 60px;
  background: var(--navy);
}

.vpage-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid;
  border-radius: 100px;
  margin-bottom: 28px;
}

.vpage-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.vpage-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 36px;
}

.vpage-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.vpage-btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 2px solid;
  transition: opacity 0.2s, transform 0.15s;
}
.vpage-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.vpage-btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s;
}
.vpage-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

/* Stats row */
.vpage-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: 100%;
}

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

.vpage-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.vpage-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 180px;
  line-height: 1.4;
}

/* ── Demo section ───────────────────────── */
.vpage-demo {
  padding: 72px 24px;
  background: var(--navy-mid);
}

.vpage-demo-inner {
  max-width: 520px;
  margin: 0 auto;
}

.vpage-demo-header {
  text-align: center;
  margin-bottom: 40px;
}

.vpage-demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.vpage-demo-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.vpage-demo-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.vpage-widget-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

/* ── Phone chrome ───────────────────────── */
.vpage-phone {
  width: 360px;
  background: #1a1a2e;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.1),
    0 24px 80px rgba(0,0,0,0.6);
}

.vpage-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111124;
}

.vpage-phone-notch {
  width: 100px;
  height: 8px;
  background: #0a0a1a;
  border-radius: 8px;
}

.vpage-phone-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.vpage-phone-screen {
  background: #f5f5f7;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* iMessage header */
.vpage-imsg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  background: rgba(245,245,247,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.vpage-imsg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vpage-imsg-avatar span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.vpage-imsg-info {
  flex: 1;
}

.vpage-imsg-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.vpage-imsg-status {
  font-size: 11px;
  color: #888;
}

/* Message thread */
.vpage-thread {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 8px;
  min-height: 300px;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vpage-thread-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.vpage-thread-placeholder p {
  font-size: 13px;
  color: #aaa;
  text-align: center;
}

.vpage-msg-wrap {
  display: flex;
}

.vpage-msg-user {
  justify-content: flex-end;
}

.vpage-msg-agent {
  justify-content: flex-start;
}

.vpage-bubble {
  max-width: 75%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.vpage-bubble-user {
  background: #007AFF;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.vpage-bubble-agent {
  /* background set inline per vertical */
  color: #fff;
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.vpage-typing {
  padding: 6px 14px 8px;
  display: flex;
  align-items: center;
}

.vpage-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #e5e5ea;
  padding: 8px 12px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.vpage-typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
  animation: vpage-bounce 1.2s ease-in-out infinite;
}

.vpage-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.vpage-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes vpage-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* Input row */
.vpage-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 12px;
  background: rgba(245,245,247,0.95);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.vpage-input {
  flex: 1;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-size: 14px;
  color: #111;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.15s;
}
.vpage-input:focus {
  border-color: rgba(0,0,0,0.3);
}
.vpage-input:disabled {
  opacity: 0.5;
}

.vpage-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
  color: #fff;
}
.vpage-send-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}
.vpage-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Post-booking CTA ───────────────────── */
.vpage-cta {
  margin-top: 24px;
}

.vpage-cta-inner {
  border: 1px solid;
  border-radius: 16px;
  padding: 28px 28px 24px;
  background: rgba(255,255,255,0.03);
  text-align: center;
}

.vpage-cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.vpage-cta-inner h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.vpage-cta-inner p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.vpage-cta-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.vpage-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── How it works section ───────────────── */
.vpage-how {
  padding: 72px 24px;
  background: var(--navy);
}

.vpage-how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.vpage-how h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--text-primary);
  text-align: center;
}

.vpage-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.vpage-how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.vpage-how-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.vpage-how-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.vpage-how-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Bottom CTA ─────────────────────────── */
.vpage-bottom-cta {
  padding: 80px 24px;
  background: var(--navy-mid);
  text-align: center;
}

.vpage-bottom-cta-inner {
  max-width: 540px;
  margin: 0 auto;
}

.vpage-bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.vpage-bottom-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 600px) {
  .vpage-hero {
    padding: 48px 20px 40px;
  }

  .vpage-hero-ctas {
    flex-direction: column;
  }

  .vpage-btn-primary,
  .vpage-btn-secondary {
    text-align: center;
  }

  .vpage-stats {
    gap: 24px;
  }

  .vpage-phone {
    width: 100%;
    border-radius: 24px;
  }

  .vpage-demo {
    padding: 48px 16px;
  }
}
