/* The whole site's appearance. System fonts and no images, scripts or anything
   fetched from elsewhere: the product's promise is that nothing leaves your
   network without your knowing, and its website should not be the page that
   loads six trackers to say so. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --alt: #f5f7fa; --panel: #ffffff; --line: #e2e6ec; --line-strong: #c9d0da;
  --text: #17202e; --text-2: #4a5568; --muted: #6b7280;
  --accent: #2563eb; --accent-hover: #1d4ed8; --accent-soft: #e8effd; --on-accent: #ffffff;
  --ok-bg: #e3f6ea; --ok-text: #14622f; --warn-bg: #fdf3d7; --warn-text: #7a4a05;
  --bar: #111827; --bar-text: #c7cfdb; --code: #f3f5f8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b; --alt: #131a23; --panel: #171d26; --line: #2a3340; --line-strong: #3b4656;
    --text: #e6eaf0; --text-2: #b4bdca; --muted: #8d98a8;
    --accent: #5b8def; --accent-hover: #7aa3f3; --accent-soft: #1c2a47; --on-accent: #0b1220;
    --ok-bg: #12301f; --ok-text: #86e0a6; --warn-bg: #382a0c; --warn-text: #f1cf7c;
    --bar: #0a0e14; --bar-text: #a9b3c1; --code: #1c232e;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px;
  line-height: 1.6; color: var(--text); background: var(--bg); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 46em; }
.small { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- top bar --------------------------------------------------------------- */
.top { background: var(--bar); color: #fff; position: sticky; top: 0; z-index: 4; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 22px; height: 22px; }
.top nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.top nav a { color: var(--bar-text); text-decoration: none; padding: 7px 12px; border-radius: 6px; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .1); }
.top nav a.cta { background: var(--accent); color: var(--on-accent); font-weight: 600; margin-left: 6px; }
.top nav a.cta:hover { background: var(--accent-hover); }

/* --- sections -------------------------------------------------------------- */
section { padding: 56px 0; }
section.alt { background: var(--alt); border-block: 1px solid var(--line); }
.hero { padding: 72px 0 56px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--panel); }
.btn:hover { background: var(--alt); color: var(--text); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); font-size: 15px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; color: var(--text-2); font-size: 15px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; margin-bottom: 10px; }
.steps li strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.note { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: 15px; }
.note.warn { background: var(--warn-bg); color: var(--warn-text); }
.note.ok { background: var(--ok-bg); color: var(--ok-text); }
.note p:last-child { margin-bottom: 0; }

/* --- pricing --------------------------------------------------------------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 26px 0; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex;
  flex-direction: column; }
.plan h3 { font-size: 16px; color: var(--text-2); font-weight: 600; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.plan .per { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.plan .btn { margin-top: auto; text-align: center; }
.plan.free { border-style: dashed; }

/* --- long-form pages: docs, legal ------------------------------------------ */
.prose { padding: 48px 0 64px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); }
.prose h2 { margin-top: 36px; padding-top: 4px; }
.prose h3 { margin-top: 24px; }
.prose li { margin-bottom: 6px; }
.prose ol, .prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--alt); font-weight: 600; white-space: nowrap; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
code { background: var(--code); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
pre.eula { white-space: pre-wrap; font-family: inherit; font-size: 15px; background: none; border: 0; padding: 0; overflow: visible; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: inherit; }
.draft { border: 2px dashed var(--warn-text); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { margin: 10px 0 0; color: var(--text-2); }
.sum { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }

/* --- footer ---------------------------------------------------------------- */
.foot { background: var(--alt); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: 15px; }
.foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot strong { display: block; margin-bottom: 8px; }
.foot a { display: block; color: var(--text-2); text-decoration: none; padding: 2px 0; }
.foot a:hover { color: var(--accent); }
.foot p { color: var(--text-2); margin-bottom: 6px; }
.legal-line { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
