:root {
  --ink: #14231d;
  --muted: #65716c;
  --canvas: #f2f4ef;
  --paper: #ffffff;
  --soft: #f7f8f5;
  --line: #e1e6e1;
  --orange: #df6632;
  --orange-dark: #bd4d1d;
  --green: #1b4939;
  --green-bright: #34c759;
  --red: #ff453a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-shell { min-height: 100svh; }

.demo-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1080px, calc(100% - 32px));
  min-height: min(720px, calc(100svh - 32px));
  margin: 16px auto;
  padding: 25px 36px 20px;
  border: 1px solid rgba(20, 35, 29, 0.07);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 24px 72px rgba(27, 43, 36, 0.09);
}

.topbar, .home-nav, .voice-card-head, .demo-details, .benefit-row, .home-actions, .followup-actions {
  display: flex;
  align-items: center;
}

.topbar, .home-nav, .voice-card-head { justify-content: space-between; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #3c4944;
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand em { color: #8b9590; font-style: normal; font-weight: 550; }
.brand strong { color: var(--ink); font-weight: 820; }

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
}

.brand-mark span { width: 3px; border-radius: 999px; background: white; }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 11px; }

.private-label, .live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.63rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.private-label {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #59665f;
  background: var(--soft);
}

.private-label i, .live-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3eaa71;
  box-shadow: 0 0 0 4px rgba(62, 170, 113, 0.11);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.82fr);
  gap: clamp(38px, 6vw, 72px);
  align-items: center;
  padding: 29px 0 22px;
}

.greeting { margin: 0 0 12px; color: #59665f; font-size: 0.91rem; }
.greeting strong { color: var(--ink); font-weight: 820; }

h1, h2, h3, p { text-wrap: pretty; }

.demo-intro h1 {
  max-width: 570px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 4.35vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}

.call-instruction {
  max-width: 500px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.demo-details { flex-wrap: wrap; gap: 17px; margin-top: 17px; }
.demo-details span { display: inline-flex; align-items: center; gap: 7px; color: #53605a; font-size: 0.72rem; font-weight: 720; }
.demo-details i { display: grid; width: 17px; height: 17px; border-radius: 50%; background: #e7f1e9; color: #29754d; font-size: 0.62rem; font-style: normal; place-items: center; }

.prompt-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  min-height: 86px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #faf9f6;
}

.quote-mark { height: 20px; color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 0.9; }
.prompt-card p { margin: 0 0 5px; color: #58655f; font-size: 0.61rem; font-weight: 820; letter-spacing: 0.09em; text-transform: uppercase; }
.prompt-card blockquote { min-height: 2.7em; margin: 0; color: #4f5b56; font-family: Georgia, "Times New Roman", serif; font-size: 0.92rem; font-style: italic; line-height: 1.4; }
.prompt-card blockquote::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 3px; background: var(--orange); vertical-align: -0.1em; animation: caret-blink 0.8s step-end infinite; }

.voice-column { min-width: 0; }
.voice-card { padding: 21px; border: 1px solid #dfe5e1; border-radius: 22px; background: #fbfcfa; box-shadow: 0 16px 42px rgba(25, 45, 36, 0.08); }
.voice-card-head { align-items: flex-start; gap: 16px; }
.card-eyebrow { display: block; margin-bottom: 6px; color: #7c8782; font-size: 0.59rem; font-weight: 820; letter-spacing: 0.11em; text-transform: uppercase; }
.voice-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.025em; }
.live-status { margin-top: 4px; color: #63706a; }
.live-status.is-live span { animation: status-pulse 1.2s ease-in-out infinite; }
.live-status.has-error { color: #a74536; }
.live-status.has-error span { background: #e65c48; box-shadow: 0 0 0 4px rgba(230, 92, 72, 0.12); }

.widget-stage {
  display: grid;
  min-height: 128px;
  margin-top: 17px;
  padding: 18px;
  border-radius: 17px;
  background: var(--ink);
  color: white;
  place-items: center;
}

.widget-placeholder { text-align: center; }
.placeholder-title, .placeholder-copy { margin: 0; color: #c3ceca; font-size: 0.76rem; }
.consent-note { margin: 10px 2px 0; color: #8a9590; font-size: 0.62rem; line-height: 1.45; }

.call-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 19px; align-items: center; width: 100%; }
.voice-display { min-width: 0; }
.audio-wave { display: flex; align-items: center; gap: 3px; height: 42px; }
.audio-wave span { width: 4px; height: 5px; border-radius: 999px; background: #81908a; opacity: 0.52; transition: height 90ms linear, background-color 180ms ease, opacity 180ms ease; }
.audio-wave span:nth-child(2n) { height: 8px; }
.audio-wave span:nth-child(3n) { height: 12px; }
.audio-wave.is-speaking span { background: #68d494; opacity: 1; box-shadow: 0 0 12px rgba(104, 212, 148, 0.24); }
.wave-caption { overflow: hidden; margin: 6px 0 0; color: #aebbb6; font-size: 0.67rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.call-action { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.call-button {
  display: grid;
  width: 61px;
  height: 61px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green-bright);
  color: white;
  box-shadow: 0 11px 23px rgba(52, 199, 89, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer;
  place-items: center;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.call-button:hover { transform: translateY(-2px); }
.call-button:active { transform: scale(0.94); }
.call-button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.call-button svg { width: 26px; height: 26px; fill: currentColor; transition: transform 180ms ease; }
.call-button[data-state="connecting"] { background: #f3a62b; box-shadow: 0 11px 23px rgba(243, 166, 43, 0.23); animation: call-pulse 1.2s ease-in-out infinite; }
.call-button[data-state="active"], .call-button[data-state="ending"] { background: var(--red); box-shadow: 0 11px 23px rgba(255, 69, 58, 0.25); }
.call-button[data-state="active"] svg, .call-button[data-state="ending"] svg { transform: rotate(135deg); }
.call-button[data-state="ending"] { cursor: wait; opacity: 0.72; }
.call-action-label { color: #edf3f1; font-size: 0.63rem; font-weight: 750; }

.phone-number { display: flex; flex-direction: column; align-items: center; margin-top: 17px; padding: 21px; border-radius: 17px; background: var(--ink); color: white; text-decoration: none; }
.phone-number strong { font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -0.03em; }
.phone-number small { margin-top: 5px; color: #b8c4bf; font-size: 0.63rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; }

.followup-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid #cfe3d4;
  border-radius: 16px;
  background: #f0f7f1;
  animation: followup-in 260ms ease both;
}
.followup-check { display: grid; width: 27px; height: 27px; border-radius: 50%; background: #d7ebdc; color: #25734a; font-size: 0.74rem; font-weight: 850; place-items: center; }
.followup-kicker { margin: 0; color: #39715a; font-size: 0.58rem; font-weight: 820; letter-spacing: 0.09em; text-transform: uppercase; }
.followup-card h3 { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 500; }
.followup-actions { flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.button, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover, .nav-cta:hover { transform: translateY(-1px); }
.button-primary, .nav-cta { background: var(--orange); color: white; }
.button-primary:hover, .nav-cta:hover { background: var(--orange-dark); }
.button-secondary { border-color: var(--line); background: white; color: var(--ink); }
.followup-actions .button { min-height: 34px; padding: 0 12px; font-size: 0.66rem; }

.demo-page > footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid #edf0ed; color: #8c9691; font-size: 0.62rem; }
.demo-page > footer strong { color: #69756f; font-weight: 750; }

/* Generic domain homepage */
.home-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 34px; }
.home-nav { min-height: 78px; border-bottom: 1px solid rgba(20, 35, 29, 0.1); }
.nav-cta { min-height: 38px; padding-inline: 16px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.72fr); gap: clamp(52px, 8vw, 110px); align-items: center; min-height: calc(100svh - 78px); padding: 66px 0 76px; }
.home-eyebrow, .section-heading > p, .home-close p { margin: 0 0 16px; color: var(--orange-dark); font-size: 0.68rem; font-weight: 840; letter-spacing: 0.12em; text-transform: uppercase; }
.home-copy h1 { max-width: 730px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.45rem, 6vw, 5.85rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.94; text-wrap: balance; }
.home-lede { max-width: 620px; margin: 25px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.home-actions { flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.home-actions .button { min-height: 46px; padding-inline: 20px; }
.benefit-row { flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.benefit-row span { display: inline-flex; align-items: center; gap: 7px; color: #53605a; font-size: 0.7rem; font-weight: 720; }
.benefit-row span::before { content: "✓"; display: grid; width: 17px; height: 17px; border-radius: 50%; background: #e1eee4; color: #27724a; font-size: 0.6rem; place-items: center; }
.home-voice { min-width: 0; }
.home-voice-copy { margin: 15px 0 -2px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

.how-it-works { padding: 92px 0 100px; border-top: 1px solid rgba(20, 35, 29, 0.1); }
.section-heading { display: grid; grid-template-columns: 0.42fr 1fr; gap: 48px; align-items: start; }
.section-heading h2, .home-close h2 { max-width: 700px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.steps-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.steps-grid article > span { color: var(--orange); font-size: 0.67rem; font-weight: 840; letter-spacing: 0.09em; }
.steps-grid h3 { margin: 28px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.65; }

.home-close { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; padding: 58px; border-radius: 28px; background: var(--ink); color: white; }
.home-close p { color: #81c49d; }
.home-close h2 { max-width: 650px; }
.button-light { flex: 0 0 auto; max-width: 270px; min-height: 47px; padding-inline: 20px; background: white; color: var(--ink); text-align: center; }
.home-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 4px 0; color: #77837d; font-size: 0.68rem; }
.home-footer a { color: var(--ink); font-weight: 750; }

.voice-consent-dialog { width: min(430px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 37, 31, 0.28); }
.voice-consent-dialog::backdrop { background: rgba(20, 37, 31, 0.55); backdrop-filter: blur(4px); }
.voice-consent-dialog form { padding: 30px; }
.consent-dialog-kicker { margin: 0 0 8px; color: var(--orange); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.voice-consent-dialog h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; }
.voice-consent-dialog form > p:not(.consent-dialog-kicker) { margin: 14px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.consent-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.consent-dialog-actions button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font-size: 0.78rem; font-weight: 750; }
.consent-dialog-actions .consent-accept { border-color: var(--ink); background: var(--ink); color: white; }

@keyframes status-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.62; } }
@keyframes call-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.93); } }
@keyframes caret-blink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes followup-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 901px) and (min-height: 700px) {
  .demo-page { height: calc(100svh - 32px); max-height: 780px; }
}

@media (max-width: 900px) {
  .demo-page { width: min(700px, calc(100% - 24px)); padding: 27px; }
  .demo-grid { grid-template-columns: 1fr; gap: 28px; padding: 42px 0 30px; }
  .demo-intro h1 { max-width: 650px; }
  .prompt-card { margin-top: 20px; }
  .voice-card { width: 100%; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding: 78px 0; }
  .home-copy h1 { max-width: 800px; }
  .section-heading { grid-template-columns: 1fr; gap: 5px; }
  .steps-grid { grid-template-columns: 1fr; }
  .home-close { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .demo-page { width: 100%; min-height: 100svh; margin: 0; padding: 20px 17px 22px; border: 0; border-radius: 0; box-shadow: none; }
  .brand { font-size: 0.67rem; }
  .brand-mark { width: 28px; height: 28px; }
  .private-label { padding: 6px 8px; font-size: 0.56rem; }
  .demo-grid { gap: 23px; padding: 34px 0 25px; }
  .greeting { margin-bottom: 11px; font-size: 0.87rem; }
  .demo-intro h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
  .call-instruction { margin-top: 15px; font-size: 0.86rem; }
  .demo-details { gap: 11px; margin-top: 15px; }
  .prompt-card { min-height: 96px; padding: 15px; }
  .voice-card { padding: 17px; border-radius: 19px; }
  .widget-stage { min-height: 112px; margin-top: 15px; padding: 14px; }
  .call-control { gap: 11px; }
  .audio-wave { gap: 2px; }
  .audio-wave span { width: 3px; }
  .call-button { width: 56px; height: 56px; }
  .demo-page > footer { flex-direction: column; gap: 5px; }

  .home-page { width: min(100% - 28px, 1180px); }
  .home-nav { min-height: 68px; }
  .home-nav .nav-cta { display: none; }
  .home-hero { gap: 48px; padding: 58px 0 70px; }
  .home-copy h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .home-lede { font-size: 0.92rem; }
  .home-actions { align-items: stretch; flex-direction: column; }
  .home-actions .button { width: 100%; }
  .benefit-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .how-it-works { padding: 70px 0 76px; }
  .steps-grid { margin-top: 35px; }
  .home-close { padding: 32px 24px; border-radius: 22px; }
  .button-light { max-width: none; width: 100%; }
  .home-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .prompt-card blockquote::after { display: none; }
}
