:root {
  --brand: #1e8c7e;
  --brand-dark: #156a5f;
  --brand-soft: #e3f3f0;
  --text: #1c2624;
  --muted: #5b6b68;
  --bg: #ffffff;
  --surface: #f5f8f7;
  --border: #dbe5e2;
  --warn-bg: #fff5e0;
  --warn-text: #6b4a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fc1b0;
    --brand-dark: #7fd6c9;
    --brand-soft: #16302c;
    --text: #e6eeec;
    --muted: #a3b3b0;
    --bg: #101615;
    --surface: #18201f;
    --border: #2a3735;
    --warn-bg: #3a2e12;
    --warn-text: #f3d58c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
nav.site a { margin-left: 16px; text-decoration: none; color: var(--muted); font-size: .95rem; }
nav.site a:hover { color: var(--brand); }
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
[hidden] { display: none !important; }
.btn { display: inline-block; border: 0; font: inherit; cursor: pointer; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.soon { display: inline-block; margin-left: 12px; color: var(--muted); font-size: .95rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 24px 0 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card .icon { font-size: 1.6rem; }
section h2 { font-size: 1.6rem; margin: 0 0 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-bottom: 48px; }
.plan h3 { margin-top: 0; }
.plan { border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.plan.featured { border: 2px solid var(--brand); background: var(--brand-soft); }
.plan .price { font-size: 1.6rem; font-weight: 700; margin: 4px 0 12px; }
.plan ul { padding-left: 20px; margin: 0; }
.notice { background: var(--warn-bg); color: var(--warn-text); border-radius: 12px; padding: 14px 18px; margin: 0 0 48px; }
.doc { padding: 40px 0 64px; max-width: 760px; }
.doc h1 { font-size: 2rem; margin: 0 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.table-scroll { overflow-x: auto; }
.draft { background: var(--warn-bg); color: var(--warn-text); border-radius: 12px; padding: 12px 16px; }
code.token { display: block; word-break: break-all; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 1rem; margin: 8px 0 16px; }
footer.site { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); margin-right: 16px; }
@media (max-width: 560px) {
  nav.site a { margin-left: 10px; font-size: .9rem; }
  nav.site a.hide-sm { display: none; }
  .hero { padding: 40px 0 24px; }
}
