:root {
  color-scheme: light dark;
  --bg: #f5f6f2;
  --surface: #ffffff;
  --text: #202d28;
  --muted: #596960;
  --accent: #254f46;
  --accent-strong: #1b3b34;
  --on-accent: #ffffff;
  --line: #dbe2da;
  --soft: #e7eee6;
  --focus: #1573b8;
  --good: #2f6b3f;
  --warn: #8a5a00;
  --radius: 14px;
  --max: 1120px;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111916;
    --surface: #18221e;
    --text: #e4ece7;
    --muted: #a3b4aa;
    --accent: #7fb7a4;
    --accent-strong: #a6d3c2;
    --on-accent: #10201b;
    --line: #2a3832;
    --soft: #1f2b26;
    --focus: #7cc0f0;
    --good: #8fd1a0;
    --warn: #f0c36b;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 6px 2px; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }
.nav .btn { color: var(--on-accent); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 650; border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--soft); color: var(--accent-strong); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Sections */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; max-width: 16ch; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
section { padding: 52px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; margin: 0 0 6px; }
.section-lead { color: var(--muted); max-width: 64ch; margin: 0 0 30px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.release { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .release { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.note { font-size: .9rem; color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { font-size: 1.2rem; margin: 0; }
.price { font-size: 2.2rem; font-weight: 750; line-height: 1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan .who { color: var(--muted); margin: 0; font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .95rem; flex: 1; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.plan .btn { text-align: center; }
.badge { align-self: flex-start; background: var(--accent); color: var(--on-accent); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td.us, th.us { background: color-mix(in srgb, var(--accent) 9%, transparent); font-weight: 650; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Forms */
form.signup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 18px; max-width: 620px; }
label { font-weight: 650; display: block; margin-bottom: 6px; }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
input[type="text"], input[type="email"], select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.address { display: flex; align-items: stretch; }
.address input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.address span { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--soft); color: var(--muted); white-space: nowrap; }
.plan-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.plan-pick label { font-weight: 500; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; margin: 0; display: grid; gap: 2px; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick label:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.plan-pick label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.plan-pick b { font-size: 1rem; }
.plan-pick small { color: var(--muted); }
.error { color: #b3261e; font-size: .9rem; margin: 4px 0 0; }
.error:empty { display: none; }
@media (prefers-color-scheme: dark) { .error { color: #ffb4ab; } }
.status { border-radius: 10px; padding: 12px 14px; background: var(--soft); }
.status.warn { color: var(--warn); }

/* Docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; padding: 40px 0 60px; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs nav.toc { position: static; } }
.docs nav.toc { position: sticky; top: 84px; align-self: start; font-size: .94rem; }
.docs nav.toc ol { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.docs nav.toc a { text-decoration: none; }
.docs article h2 { margin-top: 42px; padding-top: 8px; border-top: 1px solid var(--line); }
.docs article h2:first-of-type { margin-top: 0; border-top: 0; }
.docs article h3 { margin-top: 24px; }
.docs article ol, .docs article ul { padding-left: 22px; }
.docs article li { margin-bottom: 6px; }
.callout { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; }
.callout.warn { border-left-color: var(--warn); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: var(--soft); padding: 1px 6px; border-radius: 5px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 14px 30px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.mt { margin-top: 12px; }
.pt0 { padding-top: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan-fieldset { border: 0; padding: 0; margin: 0; } .plan-fieldset legend { margin-bottom: 8px; }
.docs article { min-width: 0; overflow-wrap: anywhere; }
.docs article table { overflow-wrap: normal; }

/* Audit fix Nov 11 2026: one-row scrolling menu on phones instead of three stacked rows */
@media (max-width: 720px) {
  .site-header .wrap { row-gap: 4px; min-height: 56px; }
  .site-header .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 0 14px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header .nav a { flex: 0 0 auto; white-space: nowrap; padding: 12px 2px; }
  .site-header .nav .btn { order: -1; padding: 10px 14px; }
}
