:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5d5a53;
  --line: #e2ded4;
  --accent: #0f6e5c;
  --accent-strong: #0a5446;
  --accent-soft: #dcefe9;
  --warn: #9a5b00;
  --code-bg: #f1efe8;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
  --radius: 14px;
  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121412;
    --bg-alt: #181b19;
    --surface: #1d211f;
    --text: #ecebe6;
    --muted: #a9a79f;
    --line: #2d322f;
    --accent: #4cc3a6;
    --accent-strong: #79d8c0;
    --accent-soft: #173a32;
    --warn: #e7a74a;
    --code-bg: #232825;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 5px; }
pre { font-family: var(--mono); font-size: .85rem; background: var(--code-bg); padding: 1rem 1.1rem; border-radius: 10px; overflow-x: auto; border: 1px solid var(--line); }
pre code { background: none; padding: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; 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; gap: 16px; min-height: 62px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .7em 1.2em; border-radius: 999px; font-weight: 600; font-size: .97rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0b1a16; } }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary:hover { color: #0b1a16; } }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.nav .btn { color: #fff; }
@media (prefers-color-scheme: dark) { .nav .btn { color: #0b1a16; } }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* chat mock */
.chat { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; font-size: .94rem; }
.chat-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.chat-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.msg { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.msg:last-child { margin-bottom: 0; }
.msg-user { background: var(--accent-soft); margin-left: 15%; }
.msg-ai { background: var(--bg-alt); }
.msg-ai p { margin: 0 0 .5em; }
.msg-ai ul { margin: .2em 0 .5em; padding-left: 1.2em; }
.msg-ai .tool { display: inline-block; font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.flag { color: var(--warn); font-weight: 600; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0 0 .7em; font-size: .97rem; }
.card .ask { font-style: italic; color: var(--text); font-size: .95rem; margin: 0; }
.card .ask::before { content: "“"; }
.card .ask::after { content: "”"; }
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .steps li::before { color: #0b1a16; } }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: .15em .55em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.badge.untested { background: var(--code-bg); color: var(--muted); }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #c0392b; }
.grecaptcha-badge { visibility: hidden; }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.page-head { padding: 56px 0 8px; }
.page-head .lede { margin-bottom: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .95rem; color: var(--text); margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.disclaimer { font-size: .82rem; }
