:root {
  --bg: #fafaf8;
  --bg-alt: #f2f2ee;
  --fg: #1c1c1a;
  --muted: #5d5d58;
  --card: #ffffff;
  --line: #e4e4de;
  --accent: #127a4b;
  --accent-soft: #e3f4ea;
  --accent-fg: #ffffff;
  --bad: #b3261e;
  --wait: #8a5a00;
  --chat-bg: #efeae2;
  --bubble: #ffffff;
  --bubble-me: #d9fdd3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --bg-alt: #1a1a18;
    --fg: #ececea;
    --muted: #a3a39d;
    --card: #1f1f1d;
    --line: #2f2f2c;
    --accent: #3ec486;
    --accent-soft: #16301f;
    --accent-fg: #0b1f15;
    --bad: #ff9c92;
    --wait: #f2c46b;
    --chat-bg: #0b141a;
    --bubble: #202c33;
    --bubble-me: #005c4b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
header.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
nav a:hover { color: var(--fg); }
nav a.btn { color: var(--accent-fg); }

/* ☰ menu, shown on narrow screens instead of the inline nav */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; }
.menu[open] summary { border-color: var(--fg); }
.menu-panel { position: absolute; right: 0; top: 54px; min-width: 240px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.35); }
.menu-panel a { color: var(--fg); padding: 12px; border-radius: 8px; font-weight: 600; font-size: 1rem; }
.menu-panel a:hover { background: var(--bg-alt); }
.menu-panel a.btn { color: var(--accent-fg); text-align: center; margin-top: 4px; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 650; border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.06); }
.btn.sm { padding: 8px 14px; font-size: .92rem; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.light { background: #fff; color: #0f5a38; border-color: #fff; }
.btn.block { display: block; text-align: center; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 28px; }
.muted { color: var(--muted); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.fine { color: var(--muted); font-size: .88rem; margin-top: 14px; }

/* hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.hl { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* phone mock */
.phone { position: relative; max-width: 340px; margin: 0 auto; width: 100%; border-radius: 28px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); overflow: visible; }
.phone-top { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); border-radius: 28px 28px 0 0; }
.phone-top b { display: block; font-size: .95rem; }
.phone-top small { color: var(--muted); font-size: .75rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; }
.chat { background: var(--chat-bg); padding: 18px 14px 26px; border-radius: 0 0 28px 28px; min-height: 300px; }
.bubble { position: relative; background: var(--bubble); border-radius: 0 12px 12px 12px; padding: 10px 12px 18px; font-size: .9rem; line-height: 1.45; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble .time { position: absolute; right: 10px; bottom: 4px; font-size: .68rem; color: var(--muted); }
.bubble.me { background: var(--bubble-me); margin: 14px 0 0 auto; border-radius: 12px 0 12px 12px; max-width: 40%; padding-right: 64px; }
.qr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 92%; margin-top: 4px; }
.qr span { background: var(--bubble); text-align: center; padding: 8px; border-radius: 10px; color: #027eb5; font-weight: 600; font-size: .9rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
@media (prefers-color-scheme: dark) { .qr span { color: #53bdeb; } }
.toast { position: absolute; left: -36px; bottom: -22px; display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 16px 32px -16px rgba(0,0,0,.35); }
.toast svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast b { display: block; font-size: .9rem; }
.toast small { color: var(--muted); font-size: .78rem; }

/* band */
.band { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trio p { color: var(--muted); margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 28px 0 0; list-style: none; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* panel mock */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 28px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0,0,0,.4); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); }
.mock-body { padding: 16px; }
.mock-tabs { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.mock-tabs b { color: var(--fg); border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: -10px; }
.mock-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-cards div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mock-cards small { display: block; color: var(--muted); font-size: .7rem; }
.mock-cards b { font-size: 1.2rem; }
.ok { color: var(--accent); } .bad { color: var(--bad); } .wait { color: var(--wait); }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin: 14px 0; border-bottom: 1px solid var(--line); }
.mock-chart i { flex: 1; background: linear-gradient(var(--accent) 0 75%, color-mix(in srgb, var(--bad) 80%, transparent) 75%); border-radius: 3px 3px 0 0; opacity: .9; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; font-size: .85rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mock-row em { font-style: normal; font-weight: 600; font-size: .8rem; }
.mock-note { color: var(--muted); font-size: .72rem; text-align: right; margin: 8px 0 0; }

/* integrations */
.integrations { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.int { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.int p { color: var(--muted); font-size: .92rem; margin: 0; }
.mono { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-weight: 800; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .mono { color: color-mix(in srgb, var(--c) 60%, #fff); } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 24px; }
.features p { color: var(--muted); margin: 0; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.price-card { background: var(--card); border: 2px solid var(--accent); border-radius: 16px; padding: 28px; }
.price { font-size: 2.4rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.price-card .checks { margin: 18px 0 22px; }

/* faq */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.final { background: #0f5a38; color: #fff; text-align: center; padding: 64px 0; }
.final h2 { color: #fff; margin-bottom: 24px; }

/* legal pages */
.legal { padding-bottom: 48px; }
.legal h1 { font-size: 1.8rem; margin: 40px 0 6px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.notice { background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; color: var(--muted); font-size: .95rem; }
main.legal { max-width: 860px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); margin-right: 14px; }

@media (max-width: 900px) {
  .hero-grid, .split, .pricing { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; gap: 20px; }
  .toast { left: 8px; }
}
@media (max-width: 820px) {
  nav.desk { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 40px 0 64px; }
  .steps { grid-template-columns: 1fr; }
  .mock-cards { grid-template-columns: repeat(2, 1fr); }
  .bubble.me { max-width: 55%; }
}
