:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1c2321; --muted: #5d6763; --line: #e3e1da;
  --brand: #1f5f4a; --brand-ink: #ffffff; --accent: #f2b544; --warn: #9a3412; --band: #eef3ef;
  --ok: #166534; --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111615; --surface: #19201e; --ink: #e8ece9; --muted: #9aa5a0; --line: #2c3532;
    --brand: #4fb08c; --brand-ink: #0b1411; --band: #16201c; --warn: #fb923c; --ok: #4ade80; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .2em 0 .4em; }
.h3 { font-size: 1.15rem; } .h6 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.section { padding: 40px 16px; }
.band { background: var(--band); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.warn { color: var(--warn); }
.banner { background: var(--accent); color: #1c2321; text-align: center; padding: 4px; font-size: .85rem; }
.site-header, .app-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 60px; }
.nav nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav nav a.btn { color: var(--brand-ink); }
.brand { font-weight: 800; text-decoration: none; color: var(--brand); font-size: 1.15rem; }
.demo-flag { background: var(--accent); color: #1c2321; text-align: center; font-weight: 600; font-size: .85rem; padding: 4px 16px; }
.hero { padding: 64px 0 40px; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.grid2, .grid3 { display: grid; gap: 16px; }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
img, table, pre { max-width: 100%; }
@media (max-width: 480px) { .section { padding-top: 28px; padding-bottom: 28px; } .dl { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.link-card { text-decoration: none; color: inherit; display: block; }
.steps li { margin-bottom: 8px; }
.plans .plan { text-align: left; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0; } .price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; } summary { cursor: pointer; font-weight: 600; }
.final-cta { background: var(--brand); color: var(--brand-ink); padding: 40px 0; }
.final-cta .btn { background: var(--brand-ink); color: var(--brand); } .final-cta .btn-ghost { background: transparent; color: var(--brand-ink); border-color: var(--brand-ink); }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 16px; margin-top: 32px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.site-footer a { display: block; text-decoration: none; margin: 4px 0; font-size: .92rem; }
.form label { display: block; margin-bottom: 12px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea, .inline-form select { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--bg); color: var(--ink); }
.form label.radio { font-weight: 400; } .form label.radio input { display: inline; width: auto; }
.inline, .inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.inline-form select { width: auto; display: inline-block; margin: 0; }
.alert { border: 1px solid var(--warn); color: var(--warn); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.notice { border: 1px solid var(--brand); border-radius: 8px; padding: 10px 14px; margin: 12px 0; background: var(--band); }
.result .big, .big { font-size: 2.2rem; font-weight: 800; margin: 0; }
.table-wrap, .card { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table caption { text-align: left; font-weight: 600; padding: 6px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat span { display: block; color: var(--muted); font-size: .85rem; } .stat strong { font-size: 1.5rem; display: block; } .stat small { color: var(--muted); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--line); background: var(--band); white-space: nowrap; }
.b-disputed, .b-broken, .b-past_due { border-color: var(--warn); color: var(--warn); }
.b-paid, .b-kept, .b-active, .b-sent_preview { border-color: var(--ok); color: var(--ok); }
.q { font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }
.q-live { color: var(--ok); border-color: var(--ok); } .q-demo { color: #7c3aed; border-color: #7c3aed; } .q-estimate { color: #b45309; border-color: #b45309; } .q-na { color: var(--muted); }
.bar-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; font-size: .85rem; margin: 4px 0; }
progress.bar { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 5px; background: var(--band); overflow: hidden; accent-color: var(--brand); }
progress.bar::-webkit-progress-bar { background: var(--band); }
progress.bar::-webkit-progress-value { background: var(--brand); }
progress.bar::-moz-progress-bar { background: var(--brand); }
.tabs { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; } .tabs a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 0; }
.nba { margin-top: 12px; padding: 10px; border-radius: 8px; background: var(--band); }
.timeline { list-style: none; padding: 0; } .timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); }
pre.mail { white-space: pre-wrap; background: var(--band); padding: 12px; border-radius: 8px; font: .9rem/1.5 ui-monospace, monospace; }
.progress { display: flex; gap: 8px; padding: 0; list-style: none; flex-wrap: wrap; }
.progress li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; }
.progress li.current { border-color: var(--brand); color: var(--brand); font-weight: 700; } .progress li.done { opacity: .6; }
.prose { max-width: 760px; } code { background: var(--band); padding: 2px 6px; border-radius: 4px; }
.health-ok { color: var(--ok); } .health-attention, .health-critical { color: var(--warn); }
@media (max-width: 640px) { .nav nav { margin-left: 0; } .hero { padding: 32px 0 16px; } .bar-row { grid-template-columns: 70px 1fr auto; } }
.site-footer .social a { display: inline-block; margin: 4px 12px 4px 0; }
