:root {
  --canvas: #fafafa;
  --panel: #ffffff;
  --subtle: #f4f4f5;
  --line: #e6e6e8;
  --fg: #18181b;
  --muted: #63636b;
  --faint: #9a9aa2;
  --brand: #10a37f;
  --brand-strong: #0b8a6a;
  --brand-soft: #e7f6f1;
  --brand-fg: #ffffff;
  --bubble-in: #ffffff;
  --bubble-out: #dcf5ec;
  --chat-bg: #efeae2;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121214;
    --panel: #18181b;
    --subtle: #1f1f23;
    --line: #2a2a30;
    --fg: #ededef;
    --muted: #a1a1aa;
    --faint: #6b6b74;
    --brand: #22c38e;
    --brand-strong: #3fd9a4;
    --brand-soft: #12302a;
    --brand-fg: #06140f;
    --bubble-in: #232328;
    --bubble-out: #183a30;
    --chat-bg: #0f0f11;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 14px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--fg);
}

@media (max-width: 720px) {
  .nav .nav-link {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-fg);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--fg);
}

.btn-secondary:hover {
  border-color: var(--faint);
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.nav .btn {
  color: var(--fg);
}

.nav .btn-primary {
  color: var(--brand-fg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 56px;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}

h1 .accent {
  color: var(--brand);
}

.lede {
  margin: 0 0 32px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Phone / chat mockup ---------- */
.phone {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.chat-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.chat-head span {
  font-size: 12px;
  color: var(--brand);
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 22px;
  background: var(--chat-bg);
  min-height: 380px;
}

.bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.06);
}

.bubble small {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 11px;
  color: var(--faint);
}

.bubble.in {
  align-self: flex-start;
  background: var(--bubble-in);
  border-top-left-radius: 4px;
}

.bubble.out {
  align-self: flex-end;
  background: var(--bubble-out);
  border-top-right-radius: 4px;
}

.bubble.voice {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.voice-bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--faint);
}

.chip {
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
}

/* ---------- Sections ---------- */
section {
  scroll-margin-top: 72px;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.kicker {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.card h3 {
  margin: 16px 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.icon svg {
  width: 20px;
  height: 20px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step {
  position: relative;
  padding: 24px;
  border-radius: 12px;
  background: var(--subtle);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 14px;
  font-weight: 600;
}

.step h3 {
  margin: 16px 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* FAQ */
.faq {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--faint);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  padding: 48px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--brand-fg);
  text-align: center;
}

.cta-band h2 {
  margin-top: 0;
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 520px;
  opacity: 0.9;
}

.cta-band .btn {
  background: var(--brand-fg);
  color: var(--brand-strong);
}

.cta-band .btn:hover {
  opacity: 0.92;
}

@media (max-width: 600px) {
  .cta-band {
    padding: 36px 20px;
  }
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  padding: 56px 20px 88px;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 8px;
}

.legal .updated {
  margin: 0 0 40px;
  color: var(--faint);
  font-size: 14px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 21px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--brand-strong);
}

.legal strong {
  color: var(--fg);
  font-weight: 600;
}
