/* Demo page styles — extracted from demo.html inline <style>. */
/* Demo page is a single-focus layout: hero → wizard → explainer → CTA. */
.page-hero { padding: 80px 0 32px; }
.page-hero .display {
  font-size: clamp(41px, 6.5vw, 90px);
  max-width: 18ch; margin-top: 18px; line-height: 1.05;
}
.page-hero .lede { max-width: 56ch; margin-top: 24px; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); }

.demo-launcher { margin-top: 32px; display: grid; gap: 10px; max-width: 640px; }
.url-form {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-1);
}
.url-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59,61,242,0.10); }
.url-input {
  flex: 1; min-width: 180px;
  border: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink);
  outline: none;
}
.url-input::placeholder { color: var(--muted); }
.submit-btn {
  background: var(--accent); color: #fff;
  padding: 0 20px; height: 48px;
  border-radius: 999px; font-weight: 500; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease, transform .08s ease;
}
.submit-btn:hover { background: var(--accent-hover); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-note { color: var(--muted); font-size: 14px; }
.demo-note strong { color: var(--ink); font-weight: 600; }

.error-message {
  display: none; margin-top: 8px; padding: 12px 16px;
  border-radius: 12px; background: #FCEBE8;
  border: 1px solid #E8C9BE; color: #8A2A1A; font-size: 14px;
}
.error-message.active { display: block; }

.hero-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 20px; flex-wrap: wrap; }
.hero-meta .pill {
  border: 1px solid var(--hair); padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-2); background: var(--bg-elev);
}

/* Wizard state containers */
.loading-section, .results-section {
  display: none; margin-top: 32px;
  border: 1px solid var(--hair); border-radius: var(--radius-lg);
  background: var(--surface); padding: 40px;
  max-width: 720px;
}
.loading-section.active, .results-section.active { display: block; }

.spinner {
  width: 48px; height: 48px; margin: 0 auto 24px;
  border: 3px solid var(--hair);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { text-align: center; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; color: var(--ink); transition: opacity 0.2s ease; }
.loading-detail { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 8px; transition: opacity 0.2s ease; }
.loading-progress { display: flex; justify-content: center; margin-top: 24px; }
.progress-dots { display: flex; gap: 8px; }
.progress-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); transition: background 0.3s ease, transform 0.3s ease; }
.progress-dots .dot.active { background: var(--accent); transform: scale(1.4); }
.progress-dots .dot.completed { background: var(--accent); opacity: 0.4; }

.success-card { text-align: center; }
.success-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-size: 28px; font-weight: 700;
  display: grid; place-items: center;
}
.success-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em; line-height: 1.1; }
.success-card .business-name { color: var(--accent); font-style: italic; }
.success-subtitle { color: var(--muted); font-size: 15px; margin-top: 8px; }

.score-display {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 28px auto 8px; padding: 20px;
  background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 14px;
  max-width: 420px;
}
.score-circle { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; color: #fff; flex-shrink: 0; }
.score-circle.excellent { background: var(--ok); }
.score-circle.good      { background: var(--accent); }
.score-circle.fair      { background: #D9A441; }
.score-circle.minimal   { background: #B56A53; }
.score-info { text-align: left; }
.score-label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.score-message { color: var(--ink-2); font-size: 14px; margin-top: 4px; max-width: 32ch; }

.enhancement-note {
  margin-top: 16px; padding: 14px 16px;
  background: var(--accent-soft); border: 1px solid #DADAFE;
  border-radius: 12px; color: #1a1a50; font-size: 13.5px;
}
.enhancement-note strong { color: var(--accent); }

.talk-btn {
  margin: 28px auto 8px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 500;
  transition: background .15s ease, transform .08s ease;
}
.talk-btn:hover { background: var(--accent-hover); }
.talk-btn:active { transform: translateY(1px); }
.talk-btn svg { width: 18px; height: 18px; }
.talk-note { color: var(--muted); font-size: 13px; }

.facts-dropdown { margin-top: 28px; }
.facts-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 18px;
  background: var(--bg-elev); border: 1px solid var(--hair);
  border-radius: 12px; font-size: 14px; color: var(--ink-2);
  transition: background .15s ease;
}
.facts-toggle:hover { background: #fff; }
.facts-toggle svg { transition: transform .2s ease; }
.facts-toggle.open svg { transform: rotate(180deg); }
.facts-container { transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease; overflow: hidden; }
.facts-container.collapsed { max-height: 0; opacity: 0; margin-top: 0; }
.facts-container.expanded { max-height: 2000px; opacity: 1; margin-top: 12px; }
.fact-item {
  display: grid; grid-template-columns: 24px 1fr 24px; align-items: start; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--hair); border-radius: 10px; background: #fff;
  margin-bottom: 8px; font-size: 13.5px; color: var(--ink-2);
  transition: opacity .15s ease, background .15s ease;
}
.fact-item.excluded { opacity: 0.4; background: var(--bg-elev); }
.fact-toggle { cursor: pointer; color: var(--accent); font-size: 14px; line-height: 1; padding-top: 2px; display: grid; place-items: center; }
.fact-item.excluded .fact-toggle { color: var(--muted); }
.fact-text { display: grid; gap: 4px; }
.fact-text-display { cursor: text; }
.fact-text-input { width: 100%; border: 1px solid var(--accent); border-radius: 6px; padding: 6px 8px; font: inherit; background: #fff; }
.fact-text-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(59,61,242,0.15); }
.fact-source-link { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-decoration: none; }
.fact-source-link:hover { text-decoration: underline; }
.fact-delete { cursor: pointer; opacity: 0.5; text-align: center; transition: opacity .15s ease; padding-top: 2px; }
.fact-delete:hover { opacity: 1; }
.facts-hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; font-family: var(--font-mono); }

.signup-cta {
  display: none; margin-top: 28px; padding: 28px;
  background: var(--ink); color: #EDEAE0;
  border-radius: var(--radius-lg); text-align: center;
}
.signup-cta.active { display: block; }
.signup-cta h3 { font-family: var(--font-display); font-size: 26px; color: #fff; letter-spacing: -0.02em; }
.signup-cta p { color: #B3B1A8; margin-top: 8px; }
.signup-btn {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: 999px; font-weight: 500;
}
.signup-btn:hover { background: var(--accent-hover); }

.save-indicator {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 90;
  padding: 10px 16px; background: var(--ink); color: var(--bg-elev);
  border-radius: 999px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: var(--shadow-2);
}
.save-indicator.active { display: block; }
.save-indicator.saving::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: #ABADFF;
  animation: pulse 1.4s infinite ease-in-out; vertical-align: middle;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Modals (voice / email) */
.voice-modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  align-items: center; justify-content: center;
  background: rgba(20,20,20,0.55); backdrop-filter: blur(6px); padding: 20px;
}
.voice-modal.active { display: flex; }
.voice-modal-content {
  width: 100%; max-width: 480px;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-2);
}
.voice-modal-header h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.025em; }
.voice-modal-info { margin-top: 14px; padding: 14px 16px; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 12px; font-size: 13.5px; color: var(--ink-2); }
.voice-modal-info strong { color: var(--accent); }
.voice-selection { margin-top: 20px; }
.voice-label { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.voice-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voice-option { padding: 14px 12px; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 12px; text-align: center; cursor: pointer; display: grid; gap: 2px; transition: all .15s ease; }
.voice-option:hover { background: #fff; }
.voice-option.selected { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,61,242,0.12); }
.voice-icon { font-size: 22px; }
.voice-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.voice-desc { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.voice-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.modal-cancel-btn, .modal-start-btn { height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.modal-cancel-btn { background: transparent; color: var(--ink-2); border: 1px solid var(--hair-2); }
.modal-cancel-btn:hover { background: var(--bg-elev); color: var(--ink); }
.modal-start-btn { background: var(--accent); color: #fff; }
.modal-start-btn:hover { background: var(--accent-hover); }
.modal-start-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-start-btn svg { width: 18px; height: 18px; }

/* Call overlay */
.call-overlay {
  display: none; position: fixed; inset: 0; z-index: 110;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(59,61,242,0.25), transparent 65%), var(--ink);
  align-items: center; justify-content: center; padding: 40px;
}
.call-overlay.active { display: flex; }
.call-ui { text-align: center; color: #fff; max-width: 620px; width: 100%; }
.call-avatar {
  width: 140px; height: 140px; margin: 0 auto 24px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), var(--accent));
  display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.2); transition: box-shadow .2s ease;
}
.call-avatar svg { width: 64px; height: 64px; color: #fff; }
.call-avatar.speaking { animation: speakPulse 1.4s ease-in-out infinite; }
@keyframes speakPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(171,173,255,0.5); }
  50% { box-shadow: 0 0 0 18px rgba(171,173,255,0); }
}
.call-status { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: #ABADFF; }
.call-business-name { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -0.025em; line-height: 1.05; margin-top: 10px; }
.call-timer { font-family: var(--font-mono); font-size: 15px; color: #B3B1A8; letter-spacing: 0.08em; margin-top: 16px; }
.call-suggestions { margin-top: 32px; }
.suggestions-label { font-family: var(--font-mono); font-size: 11px; color: #8E8B82; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.suggestion-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.suggestion-chip { padding: 8px 14px; border: 1px solid #2b2b2b; background: #1d1d1d; border-radius: 999px; font-size: 13px; color: #D0CDC3; }
.language-hint { margin-top: 18px; font-size: 13px; color: #8E8B82; }
.end-call-btn {
  margin-top: 28px; width: 64px; height: 64px; border-radius: 50%;
  background: #D14A3A; color: #fff; display: inline-grid; place-items: center;
  box-shadow: 0 6px 24px rgba(209,74,58,0.35); transition: background .15s ease;
}
.end-call-btn:hover { background: #B53E30; }
.end-call-btn svg { width: 24px; height: 24px; }

/* Explainer steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; list-style: none; padding-left: 0; margin-left: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 14px; }
.step .num { font-family: var(--font-display); font-size: 60px; line-height: 1; color: var(--accent); letter-spacing: -0.035em; }
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faqs { display: grid; gap: 12px; margin-top: 32px; }
.faq { border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); padding: 20px 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* CTA block */
.cta-block { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 56px; position: relative; overflow: hidden; }
.cta-block h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.025em; line-height: 1.05; max-width: 18ch; }
.cta-block p { opacity: 0.85; margin-top: 14px; max-width: 46ch; font-size: 15.5px; }
.cta-block .row { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.cta-block .row .btn-primary { background: #fff; color: var(--accent); }
.cta-block .row .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-block .row .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* ---------- SEO content sections (added July 2026) ---------- */
.byline { margin-top: 22px; color: var(--muted); font-size: 13.5px; font-family: var(--font-mono); letter-spacing: 0.02em; }
.byline a { color: var(--accent); text-decoration: none; }
.byline a:hover { text-decoration: underline; }

.takeaways {
  margin-top: 32px; padding: 28px;
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg);
}
.takeaways h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.takeaways ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.toc { margin-top: 24px; }
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.toc a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--hair); border-radius: 999px;
  background: var(--bg-elev); color: var(--ink-2); font-size: 13px; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.toc-label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

.prose { max-width: 68ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.prose + .prose { margin-top: 14px; }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink); }

.ask-list { margin: 24px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 68ch; }
.ask-list li strong { color: var(--ink); }

.compare-table-wrap { margin-top: 28px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; font-size: 14.5px; }
.compare-table caption { caption-side: top; text-align: left; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 10px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.compare-table thead th { background: var(--bg-elev); font-weight: 600; color: var(--ink); font-size: 13.5px; }
.compare-table td { color: var(--ink-2); }
.compare-table tbody tr:last-child td { border-bottom: 0; }

.glance-dl { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.glance-dl > div { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 16px 18px; }
.glance-dl dt { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.glance-dl dd { margin: 6px 0 0; color: var(--ink); font-size: 15px; font-weight: 500; }

.faq-answer-block { margin-top: 28px; max-width: 68ch; }
.faq-answer-block h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-top: 26px; }
.faq-answer-block h3:first-child { margin-top: 0; }
.faq-answer-block p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin-top: 8px; }
.faq-answer-block .direct-answer { color: var(--ink); font-weight: 500; }

.quote-card { margin: 28px 0 0; padding: 28px; background: var(--surface); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); max-width: 68ch; }
.quote-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; font-style: italic; }
.quote-card footer { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-style: normal; }

.embed-snippet { margin-top: 20px; background: var(--ink); color: #EDEAE0; border-radius: 14px; padding: 18px 22px; overflow-x: auto; max-width: 68ch; }
.embed-snippet code { font-family: var(--font-mono); font-size: 13.5px; white-space: pre; }

.demo-figure { margin: 28px 0 0; max-width: 760px; }
.demo-figure img, .demo-figure video { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--hair); box-shadow: var(--shadow-1); display: block; }
.demo-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; font-family: var(--font-mono); }
