:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #12201b;
  --muted: #55645d;
  --line: #e3e6df;
  --brand: #0e7a5f;
  --brand-dark: #0a5c48;
  --brand-soft: #e4f3ee;
  --accent: #f2a43a;
  --night: #0f1b17;
  --on-brand: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 32, 27, .08);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1512; --surface: #15211c; --ink: #eef3f0; --muted: #a2b2aa;
    --line: #26362f; --brand: #2bc299; --brand-dark: #4fd8b3; --brand-soft: #123228;
    --night: #070d0b; --on-brand: #06231b; --shadow: 0 10px 30px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  min-height: 48px; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(14,122,95,.3); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 18px; min-height: 40px; font-size: .95rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .btn { margin-top: 14px; }
}

/* Hero */
.hero { padding: 56px 0 72px; background: radial-gradient(900px 420px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-grid > div { min-width: 0; }
h1, h2 { overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-note { font-size: .92rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--brand); font-weight: 800; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Chat demo */
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; max-width: 420px; margin-inline: auto; width: 100%; }
.phone-head { background: var(--night); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 800; }
.phone-head small { display: block; opacity: .7; font-size: .78rem; }
.live { margin-left: auto; font-size: .72rem; display: flex; align-items: center; gap: 6px; opacity: .9; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.biz-tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.biz-tabs button { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.biz-tabs button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); }
.chat-log { height: 340px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); scroll-behavior: smooth; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; animation: pop .25s ease; white-space: pre-line; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); letter-spacing: 3px; }
.lead-card { align-self: stretch; border: 1px dashed var(--brand); background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; font-size: .86rem; animation: pop .3s ease; }
.lead-card b { display: block; color: var(--brand-dark); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; background: var(--bg); }
.chips button { border: 1px solid var(--brand); color: var(--brand-dark); background: var(--surface); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.chips button:hover { background: var(--brand-soft); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 16px; }
.chat-form button { border: 0; background: var(--brand); color: var(--on-brand); border-radius: 999px; width: 46px; cursor: pointer; font-size: 1.1rem; }
.demo-disclaimer { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 10px; }

/* Cards, grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 56px 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.4rem; }
.card p { color: var(--muted); margin: 0; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.step-num { font-weight: 800; font-size: 2.2rem; color: var(--brand); opacity: .35; line-height: 1; margin-bottom: 10px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; margin-top: 36px; }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.field output { color: var(--brand); font-weight: 800; }
input[type=range] { width: 100%; accent-color: var(--brand); height: 32px; }
.result { background: var(--night); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.result .big { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; color: var(--accent); letter-spacing: -.03em; line-height: 1.05; }
.result small { opacity: .65; display: block; margin-top: 14px; font-size: .8rem; line-height: 1.4; }

/* Pricing */
.price-toggle { display: inline-flex; background: var(--brand-soft); border-radius: 999px; padding: 4px; margin: 20px 0 8px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: var(--on-brand); font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan .tag { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .setup { color: var(--muted); font-size: .92rem; margin: 6px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: .97rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.plan li.inherit { font-weight: 700; }
.plan li.inherit::before { content: "＋"; }
.addons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.addons span { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-size: .92rem; }
.table-scroll { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
tr:last-child td { border-bottom: 0; }
th { background: var(--brand-soft); }
.yes { color: var(--brand); font-weight: 800; } .no { color: var(--muted); opacity: .5; }

/* Guide, FAQ */
.guide { display: grid; gap: 12px; max-width: 760px; margin: 32px auto 0; }
.guide div { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 14px 18px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
.faq { max-width: 760px; margin: 32px auto 0; }
.industries { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.industries span { background: var(--surface); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; font-weight: 600; }

/* Book */
.book { background: var(--night); color: #fff; }
.book .lead { color: rgba(255,255,255,.7); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 28px; }
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); margin-bottom: 16px; }
.consent { display: flex; gap: 10px; font-size: .8rem; color: var(--muted); align-items: flex-start; }
.consent input { width: auto; margin: 4px 0 0; }
.form-msg { margin-top: 14px; font-weight: 600; color: var(--brand-dark); }
.cal-box { border: 2px dashed rgba(255,255,255,.25); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.hp { position: absolute; left: -9999px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 6px 0; }
.contact-list a { color: #fff; }

/* Footer */
footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer a { color: var(--muted); margin-right: 18px; }

/* Mobile sticky CTA */
.sticky-cta { display: none; transition: transform .25s; }
.sticky-cta.hide { transform: translateY(120%); }
@media (max-width: 700px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  body { padding-bottom: 76px; }
}
.legal { max-width: 760px; padding: 56px 20px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }
