@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);
  --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); }
.demo-banner .practice-change {
  border: 0;
  background: none;
  margin-left: 8px;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.practice-pop {
  max-width: 480px;
  margin: 16px auto 0;
  padding: 0 16px;
}
.practice-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.practice-form[hidden], .practice-pop[hidden], [data-show-default][hidden], [data-show-custom][hidden] { display: none !important; }
.practice-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.practice-field span { font-size: 13px; color: var(--ink-muted, #6b635a); }
.practice-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong, #d8d8dc);
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.practice-choice-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.practice-error { color: #9a3412; font-size: 13px; }
.practice-error:empty { display: none; }

.page { min-height: 100vh; padding: 0 16px 56px; }
.wrap { 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);
  font-size: 16px;
}
.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; }
.powered { color: var(--ink-muted); font-size: 13px; text-decoration: none; }
.powered:hover { color: var(--ink-primary); }

.hero { padding: 72px 0 48px; max-width: 760px; }
.index { font-size: 13px; color: var(--ink-muted); letter-spacing: 0.02em; }
.hero h1 { margin-top: 14px; font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.02; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin-top: 20px; color: var(--ink-body); font-size: 18px; line-height: 1.55; max-width: 600px; }

.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;
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
}
.feature > * { position: relative; z-index: 1; }
.feature h2 { margin-top: 14px; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; }
.feature p { margin-top: 16px; color: var(--ink-body); font-size: 17px; line-height: 1.6; max-width: 520px; }
.feature .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hint { color: var(--ink-muted); font-size: 14px; }

.voice-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 340px;
  width: 100%;
  justify-self: center;
  display: grid;
  place-items: center;
}
.voice-visual .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
}
.voice-visual .ring:nth-child(2) { inset: 14%; border-color: var(--hairline); }
.voice-visual .ring:nth-child(3) { inset: 28%; background: var(--surface-card); border-color: var(--hairline-strong); }
.voice-visual .bars { position: relative; display: flex; align-items: center; gap: 5px; height: 64px; }
.voice-visual .bars i {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
  animation: idle-bar 1.6s ease-in-out infinite;
}
.voice-visual .bars i:nth-child(1) { height: 18px; animation-delay: -0.2s; }
.voice-visual .bars i:nth-child(2) { height: 38px; animation-delay: -0.5s; }
.voice-visual .bars i:nth-child(3) { height: 56px; animation-delay: -0.9s; }
.voice-visual .bars i:nth-child(4) { height: 30px; animation-delay: -0.3s; }
.voice-visual .bars i:nth-child(5) { height: 46px; animation-delay: -0.7s; }
.voice-visual .bars i:nth-child(6) { height: 22px; animation-delay: -1.1s; }
.voice-visual .bars i:nth-child(7) { height: 14px; animation-delay: -0.4s; }
@keyframes idle-bar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.voice-visual .caption {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.card { display: flex; flex-direction: column; padding: 32px; }
.card h3 { margin-top: 14px; font-size: 24px; line-height: 1.15; }
.thread-peek {
  margin-top: 24px;
  padding: 14px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-body);
}
.thread-peek b { display: block; font-weight: 500; color: var(--ink-muted); font-size: 12px; margin-bottom: 4px; }

.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 { color: currentColor; }
.btn:hover { border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #140a03; }
.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; }

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 13px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-body);
  font-size: 14px;
  text-decoration: none;
}
.back:hover { color: var(--ink-primary); }

.call-stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 16px 32px;
}
.call-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}
.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);
  display: grid;
  place-items: center;
  font-size: 34px;
}
.call-stage.talking .agent-orb .core { border-color: color-mix(in oklab, var(--accent) 70%, transparent); background: color-mix(in oklab, var(--accent) 16%, var(--surface-card)); }
.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); }

.caller { display: flex; flex-direction: column; gap: 6px; max-width: 380px; margin: 24px auto 0; text-align: left; }
.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: 15px;
  outline: none;
}
.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; }

.mode {
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  max-width: 380px;
  border-radius: 12px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}
.mode label { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode span {
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-body);
}
.mode input:checked + span { background: var(--surface-panel); color: var(--ink-primary); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.mode input:focus-visible + span { outline: 2px solid color-mix(in oklab, var(--accent) 70%, transparent); }
.mode-note { margin-top: 10px; color: var(--ink-muted); font-size: 13px; line-height: 1.5; }
.mode:disabled { opacity: 0.6; }

.call-actions { margin-top: 26px; display: flex; justify-content: center; gap: 12px; }
.call-actions .btn { min-width: 150px; }
.call-error { margin-top: 14px; color: #e0837b; font-size: 14px; min-height: 1px; }

.transcript {
  margin-top: 20px;
  padding: 20px 22px;
  max-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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); }

.try-list { margin-top: 20px; padding: 22px 24px; text-align: left; }
.try-list h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.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) {
  .feature { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .voice-visual { max-width: 240px; order: -1; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0 32px; }
  .hero p { font-size: 16px; }
  .call-card { padding: 28px 20px 22px; }
  .call-actions .btn { flex: 1; min-width: 0; }
  .card { padding: 26px 24px; }
}
