:root {
  --ground: #F4F5F7;
  --surface: #FFFFFF;
  --raised: #E6E8EC;
  --line: #DFE2E7;
  --ink: #14161A;
  --muted: #5B616B;
  --accent: #C2410C;
  --on-accent: #FFFFFF;
  --tint: #FCE9DF;
}
:root:not([data-theme="light"]) { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1114;
    --surface: #1A1D22;
    --raised: #23272E;
    --line: #2E333B;
    --ink: #F2F3F5;
    --muted: #A3A9B3;
    --accent: #FF7A2F;
    --on-accent: #14161A;
    --tint: #2A1E16;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.doc { max-width: 720px; padding-bottom: 40px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: -.5px; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
nav.top { display: flex; gap: 16px; }
nav.top a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.top a:hover { color: var(--ink); }
h1 { font-size: clamp(34px, 8vw, 56px); line-height: 1.04; letter-spacing: -1.5px; margin: 24px 0 16px; font-weight: 800; }
.doc h1 { font-size: clamp(30px, 7vw, 40px); letter-spacing: -1px; }
h2 { font-size: 24px; letter-spacing: -.3px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.hero { padding: 16px 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); cursor: pointer;
}
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[hidden] { display: none; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 8px 0 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }
.panel { background: var(--tint); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
ul.clean { padding-left: 20px; }
ul.clean li { margin: 4px 0; }
pre, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }
code { background: var(--raised); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 12px 0; max-width: 100%; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
.copy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.copy code { flex: 1 1 260px; padding: 10px 12px; font-size: 14px; }
.copy button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tablewrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--raised); }
td:first-child { font-weight: 600; }
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0; }
.price b { display: block; font-size: 32px; letter-spacing: -1px; }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
footer a { color: var(--muted); }
footer .lang { margin-left: auto; display: flex; gap: 4px; }
footer .lang button { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
footer .lang button[aria-pressed="true"] { background: var(--raised); color: var(--ink); font-weight: 700; }
