/* Design language of demo.visquanta.com (dealer-demo/styles.css): dark surfaces, Season Sans, VisQuanta orange. */
@font-face {
  font-family: 'Season Sans';
  src: url('/fonts/SeasonSansUprightsVF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --surface-page: #141415;
  --surface-section: #111112;
  --surface-panel: #19191b;
  --surface-card: #1f1f22;
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.1);
  --top-highlight: rgba(255, 255, 255, 0.05);
  --accent: #d07438;
  --accent-hover: color-mix(in oklab, #d07438 88%, white);
  --accent-subtle: color-mix(in oklab, #d07438 10%, transparent);
  --on-accent: #140a03;
  --positive: #30d158;
  --ink-primary: rgba(255, 255, 255, 0.95);
  --ink-body: rgba(255, 255, 255, 0.62);
  --ink-muted: rgba(255, 255, 255, 0.55);
  --ink-ghost: rgba(255, 255, 255, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
html { font-variant-ligatures: none; -webkit-text-size-adjust: 100%; }
body {
  background: var(--surface-page);
  color: var(--ink-primary);
  font-family: 'Season Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.025em; }
:focus-visible { outline: 2px solid color-mix(in oklab, var(--accent) 70%, transparent); outline-offset: 3px; }
.rise-in { animation: rise-in 280ms var(--ease-out) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.demo-banner {
  position: relative;
  z-index: 20;
  padding: 9px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-body);
  background: var(--surface-section);
  border-bottom: 1px solid var(--hairline-strong);
}
.demo-banner strong { font-weight: 600; color: var(--accent); }

/* Top bar */
.page { position: relative; min-height: 100vh; overflow-x: clip; padding: 0 16px 56px; }
.wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.dealer { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.dealer-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  color: var(--ink-primary);
}
.dealer-name { display: flex; flex-direction: column; line-height: 1.15; }
.dealer-name strong { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.dealer-name span { color: var(--ink-muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.powered { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); font-size: 13px; text-decoration: none; }
.powered img { height: 20px; width: auto; opacity: 0.9; }
.book-call {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.book-call:hover { background: var(--accent-hover); }

/* Hero */
.hero { padding: 88px 0 44px; max-width: 940px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 18px auto 0; color: var(--ink-body); font-size: 19px; line-height: 1.5; max-width: 560px; text-wrap: balance; }

/* Follow-up cards */
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.agent {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.045), transparent 60%),
    var(--surface-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.agent:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -18px color-mix(in oklab, var(--accent) 45%, transparent);
}
.agent-head { display: flex; align-items: center; gap: 14px; }
.agent-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  color: var(--accent);
}
.agent-title { flex: 1; min-width: 0; }
.agent-title h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.agent-title p { margin-top: 4px; font-size: 14px; color: var(--ink-muted); }
.bubble-row { margin-top: 28px; flex: 1; display: flex; align-items: flex-end; gap: 10px; }
.bubble-avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--hairline-strong); }
.bubble {
  max-width: 420px;
  padding: 11px 15px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.075);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-primary);
  transition: background 0.35s var(--ease-out);
}
.agent:hover .bubble { background: rgba(255, 255, 255, 0.1); }
.agent-cta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}
.agent-cta svg { color: var(--ink-muted); transition: color 0.3s, transform 0.3s var(--ease-out); }
.agent:hover .agent-cta { color: var(--accent); }
.agent:hover .agent-cta svg { color: var(--accent); transform: translateX(3px); }

/* Voice lineup */
.voices-section { margin-top: 8px; }
.followups-section { margin-top: 64px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; }
.section-head p { margin-top: 8px; color: var(--ink-body); font-size: 16px; }
.team { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 12px 20px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--surface-panel);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.person:hover { border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.person[aria-checked="true"] { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--surface-panel)); }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--hairline-strong); }
.person strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.person span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ink-muted); }

.site-footer {
  margin-top: 64px;
  padding: 32px 0 8px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  color: var(--ink-muted);
  font-size: 13px;
}
.site-footer-brand img { display: block; height: 26px; width: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--surface-card);
  color: var(--ink-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
}
.btn svg { flex: none; }
.btn:hover { border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-end { background: #b4534b; border-color: #b4534b; color: #fff; }
.btn-end:hover { background: #a8473f; border-color: #a8473f; }

/* Call page */
.call-stage { position: relative; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 16px 32px; overflow-x: clip; }
.call-stage > .demo-banner { margin: 0 -16px; }
.call-top { width: 100%; }
.demo-nav { display: flex; align-items: center; gap: 28px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-body); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.back:hover { color: var(--ink-primary); }
.back.next { color: var(--ink-primary); }
.back.next svg { transition: transform 0.3s var(--ease-out); }
.back.next:hover { color: var(--accent); }
.back.next:hover svg { transform: translateX(2px); }
.lbl-short { display: none; }

.call-main { position: relative; flex: 1; width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.panel { position: relative; overflow: hidden; background: var(--surface-panel); border: 1px solid var(--hairline); border-radius: 28px; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--top-highlight), transparent); pointer-events: none; }
.call-card { padding: 36px 32px 28px; text-align: center; }
.agent-orb { position: relative; width: 168px; height: 168px; margin: 0 auto; display: grid; place-items: center; }
.agent-orb .halo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hairline-strong); transition: transform 0.25s var(--ease-out), border-color 0.3s; }
.agent-orb .halo.h2 { inset: 18px; border-color: var(--hairline); }
.agent-orb .core { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--surface-card); border: 1px solid var(--hairline-strong); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.agent-orb .core img { width: 100%; height: 100%; object-fit: cover; display: block; }
.call-stage.talking .agent-orb .core { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
.call-stage.talking .agent-orb .halo { border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.call-stage.connecting .agent-orb .halo { animation: ping 1.4s var(--ease-out) infinite; }
.call-stage.connecting .agent-orb .halo.h2 { animation-delay: 0.3s; }
@keyframes ping { 0% { transform: scale(0.92); opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.call-card h1 { margin-top: 22px; font-size: 32px; line-height: 1.1; }
.call-card .role { margin-top: 6px; color: var(--ink-body); font-size: 15px; }
.status-line { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 14px; }
.status-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-ghost); }
.call-stage.live .status-line .dot { background: var(--positive); box-shadow: 0 0 0 4px color-mix(in oklab, var(--positive) 18%, transparent); }

.voice-pick { border: 0; margin: 26px auto 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.voice-pick .voice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.voice-pick .voice:hover { background: var(--surface-card); }
.voice-pick input { position: absolute; opacity: 0; pointer-events: none; }
.voice-pick img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; opacity: 0.6; transition: box-shadow 0.2s, opacity 0.2s; }
.voice-pick strong { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.voice-pick span { display: none; }
.voice-pick .voice:has(input:checked) img { opacity: 1; box-shadow: 0 0 0 2px var(--surface-panel), 0 0 0 4px var(--accent); }
.voice-pick .voice:has(input:checked) strong { color: var(--ink-primary); font-weight: 500; }
.voice-pick .voice:has(input:focus-visible) { outline: 2px solid color-mix(in oklab, var(--accent) 70%, transparent); outline-offset: 2px; }
.voice-pick .voice:has(input:disabled) { cursor: default; }
.voice-pick .voice:has(input:disabled):not(:has(input:checked)) img { opacity: 0.25; }

.caller { display: flex; flex-direction: column; gap: 6px; max-width: 380px; margin: 18px auto 0; text-align: left; }
.caller + .caller { margin-top: 12px; }
.caller span { font-size: 13px; color: var(--ink-muted); }
.caller input {
  height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-card);
  color: var(--ink-primary);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.caller input::placeholder { color: var(--ink-ghost); }
.caller input:focus { border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.caller input:disabled { opacity: 0.6; }
.call-actions { margin-top: 26px; display: flex; justify-content: center; gap: 12px; }
.call-actions .btn { min-width: 150px; }
.mode-note { margin-top: 14px; color: var(--ink-muted); font-size: 13px; line-height: 1.5; }
.call-error { margin-top: 10px; color: #e0837b; font-size: 14px; min-height: 1px; }

.transcript { margin-top: 20px; padding: 20px 22px; max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.transcript:empty { display: none; }
.line { font-size: 15px; line-height: 1.5; color: var(--ink-body); }
.line b { display: block; font-weight: 500; font-size: 12px; color: var(--ink-muted); margin-bottom: 2px; }
.line.agent b { color: var(--accent); }
.line.user { color: var(--ink-primary); }

.sheet-panel { margin-top: 20px; padding: 22px 24px; text-align: left; }
.sheet-panel h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 14px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: 12px; color: var(--ink-muted); }
.facts dd { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-primary); }
#result { border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
#result .btn { margin-top: 18px; }

.try-list { margin-top: 20px; padding: 22px 24px; text-align: left; }
.try-list h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-primary); }
.try-list ul { margin-top: 10px; list-style: none; display: grid; gap: 8px; }
.try-list li { position: relative; padding-left: 16px; color: var(--ink-body); font-size: 14px; line-height: 1.5; }
.try-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--ink-muted); }

@media (max-width: 900px) {
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { padding: 56px 0 32px; }
  .agents { grid-template-columns: 1fr; }
  .agent { padding: 20px; }
  .bubble-row { margin-top: 22px; }
}
@media (max-width: 640px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero p { font-size: 16px; }
  .topbar-actions .powered { display: none; }
  .topbar-actions { gap: 12px; }
  .call-card { padding: 28px 20px 22px; }
  .call-actions .btn { flex: 1; min-width: 0; }
  .voice-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
  .sheet-panel, .try-list { padding: 20px; }
  .demo-nav { gap: 16px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .rise-in, .agent-orb .halo { animation: none !important; }
  .agent, .agent:hover { transform: none; }
}
