:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --ink: #101817;
  --muted: #64716f;
  --line: #dce4e2;
  --surface: #ffffff;
  --soft: #eef6f4;
  --brand: #087568;
  --brand-dark: #084f48;
  --warn: #a76508;
  --shadow: 0 18px 50px rgba(18, 30, 28, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.owner-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 12px;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: center;
  padding: 54px 0 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action, .secondary-action, .claim-button, .simulator button, .lead-form button, .pin-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius);
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action, .claim-button, .simulator button, .lead-form button, .pin-form button {
  background: var(--ink);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface);
}

.truth-box, .voice-lab, .selected-summary, .package-card, .install-grid div, .modal-panel, .owner-grid article, .usage-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.truth-box { padding: 22px; }
.truth-box h2 { font-size: 22px; }
.truth-box p { color: var(--muted); }
.truth-box strong { color: var(--ink); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.section-heading p {
  max-width: 590px;
  margin-bottom: 3px;
  color: var(--muted);
}

.demo, .packages, .install { padding: 34px 0; }

.package-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.package-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

.package-tab.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
}

.voice-lab, .selected-summary { padding: 24px; }

.voice-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.voice-head h3 { font-size: 28px; margin-bottom: 20px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.audio-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.audio-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.play-button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.simulator {
  margin-top: 22px;
}

.simulator label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.question-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.question-row input, .lead-form input, .pin-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
}

.chat-window {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.live-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 8px;
}

.bubble.user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
}

.bubble.agent {
  background: var(--soft);
  color: var(--ink);
}

.selected-summary dl, .owner-grid dl {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.selected-summary div, .owner-grid div {
  display: grid;
  gap: 3px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.package-card {
  min-height: 280px;
  padding: 22px;
}

.package-card h3 { font-size: 24px; margin-top: 18px; }
.package-card p { min-height: 70px; color: var(--muted); }
.package-card strong { display: block; margin-bottom: 18px; font-size: 20px; }
.package-card button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.install-grid div {
  min-height: 120px;
  padding: 18px;
}

.install-grid strong {
  display: block;
  color: var(--brand);
  font-size: 32px;
}

.install-grid span {
  color: var(--muted);
  font-weight: 800;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 20, 18, 0.45);
}

.modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
}

.owner-panel { width: min(920px, 100%); }

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.small-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pin-form {
  display: flex;
  gap: 10px;
}

.error {
  color: #b42318;
  font-weight: 800;
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.owner-grid article, .usage-box {
  padding: 18px;
}

.usage-box {
  margin-top: 14px;
}

.usage-box button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; }
  .hero, .demo-grid { grid-template-columns: 1fr; }
  .cards, .owner-grid, .install-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 10px; }
}

@media (max-width: 620px) {
  main { width: min(100% - 28px, 1180px); }
  h1 { font-size: 40px; }
  .cards, .owner-grid, .install-grid { grid-template-columns: 1fr; }
  .question-row, .pin-form { grid-template-columns: 1fr; display: grid; }
  .bubble { max-width: 100%; }
}
