:root {
  --ink: #0f2233;
  --ink-soft: #3d5163;
  --muted: #6b7c8c;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #e4e0d8;
  --brand: #0e6b62;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ee;
  --accent: #f2b544;
  --danger-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 34, 51, .06), 0 8px 24px rgba(15, 34, 51, .06);
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f4;
    --ink-soft: #c3ccd3;
    --muted: #93a2ae;
    --bg: #0d1820;
    --surface: #13222c;
    --line: #23343f;
    --brand: #3fb8a8;
    --brand-ink: #062320;
    --brand-soft: #143430;
    --danger-soft: #3a1f1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav { display: none; gap: 24px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 56px 0 40px; }
@media (min-width: 900px) { .hero { padding: 88px 0 64px; } }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }
.demo-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* Call card illustration */
.call-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 22px; max-width: 440px; width: 100%; justify-self: center;
}
.call-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.call-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.call-avatar svg { width: 22px; height: 22px; }
.call-top strong { display: block; font-size: 1rem; }
.call-top span { font-size: .85rem; color: var(--muted); }
.live { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }
.bubble { padding: 10px 14px; border-radius: 16px; margin-bottom: 10px; font-size: .95rem; max-width: 88%; }
.bubble.ai { background: var(--brand-soft); border-bottom-left-radius: 4px; }
.bubble.caller { background: var(--bg); border: 1px solid var(--line); margin-left: auto; border-bottom-right-radius: 4px; }
.booked { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--brand); border-radius: 12px; font-size: .9rem; }
.booked svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .card { background: var(--bg); }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 48px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center;
}
.step p { color: var(--ink-soft); }

/* Privacy */
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; }
.privacy-list svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.emergency {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--danger-soft); border-left: 4px solid #c8463b;
}
.emergency p { margin: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Contact */
.contact { text-align: center; }
.contact .section-head { margin-left: auto; margin-right: auto; }
.contact .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Mobile sticky call bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.mobile-bar .btn { flex: 1; }
@media (min-width: 860px) { .mobile-bar { display: none; } }
@media (max-width: 859px) { body { padding-bottom: 76px; } .header-cta { display: none; } }

/* Prose pages */
.prose { max-width: 46em; padding-block: 48px 64px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select {
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 12px; background: var(--danger-soft); border-left: 4px solid #c8463b; }
.alert[hidden] { display: none; }
.form-note { font-size: .88rem; color: var(--muted); }
.pilot-layout { display: grid; gap: 40px; padding-block: 48px 72px; }
@media (min-width: 900px) { .pilot-layout { grid-template-columns: 1fr 1.1fr; gap: 64px; padding-block: 72px 96px; } }
