  :root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --surface-2: #efede6;
    --text: #1c1f1d;
    --muted: #5d625e;
    --border: #dedbd2;
    --accent: #1f6f5c;
    --accent-soft: #dcebe5;
    --code-bg: #1d2321;
    --code-text: #e6ece9;
    --bar: #1f6f5c;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121514;
      --surface: #1a1e1c;
      --surface-2: #222725;
      --text: #e8ebe9;
      --muted: #9aa29e;
      --border: #2e3431;
      --accent: #5fc1a4;
      --accent-soft: #1f3530;
      --code-bg: #0c0f0e;
      --code-text: #dfe6e2;
      --bar: #5fc1a4;
    }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  a { color: var(--accent); }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
  header.top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text); }
  .brand svg { width: 28px; height: 28px; }
  nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
  nav a:hover { color: var(--text); }

  .hero { padding: 48px 0 32px; }
  .eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
  h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; margin: 10px 0 16px; letter-spacing: -.02em; max-width: 780px; }
  .lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
  .cta { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn {
    display: inline-block; padding: 11px 18px; border-radius: 8px; font-weight: 600;
    text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--surface);
  }
  .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0c1311; } }

  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 36px 0 8px; }
  .stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
  .stat .n { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .stat .l { color: var(--muted); font-size: 14px; }
  .fresh { color: var(--muted); font-size: 13px; }

  section { padding: 44px 0; border-top: 1px solid var(--border); }
  h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.01em; }
  .sub { color: var(--muted); margin: 0 0 24px; max-width: 680px; }

  .grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
  .card h3 { margin: 0 0 6px; font-size: 17px; }
  .card p { margin: 0; color: var(--muted); font-size: 15px; }

  .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
  .tabs button {
    font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
  }
  .tabs button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
  .bars { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
  .bar-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
  .bar-track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
  .bar-fill { height: 100%; background: var(--bar); border-radius: 5px; }
  .bar-row .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
  a.bar-row { color: inherit; text-decoration: none; border-radius: 6px; margin: 0 -6px; padding: 4px 6px; }
  a.bar-row:hover, a.bar-row:focus-visible { background: var(--surface-2); }
  a.bar-row:hover > div:first-child { color: var(--accent); text-decoration: underline; }

  table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 15px; }
  th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
  th { background: var(--surface-2); font-size: 13px; color: var(--muted); font-weight: 600; }
  tr:last-child td { border-bottom: 0; }
  td code { font-size: 13px; word-break: break-all; }
  .price { font-weight: 700; white-space: nowrap; }
  .table-scroll { overflow-x: auto; }

  .steps { counter-reset: s; display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
  .steps li::before {
    content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft);
    color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px;
  }
  pre {
    background: var(--code-bg); color: var(--code-text); padding: 16px; border-radius: 10px;
    overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 0;
  }
  code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
  :not(pre) > code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

  details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
  summary { cursor: pointer; font-weight: 600; }
  details p { color: var(--muted); margin: 10px 0 0; }

  footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }

  @media (max-width: 560px) {
    nav a:not(:last-child) { display: none; }
    .bar-row { grid-template-columns: 96px 1fr 44px; }
    /* Stack the pricing table: endpoint on its own line, then description + price. */
    thead { display: none; }
    tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--border); }
    tr:last-child { border-bottom: 0; }
    td { border-bottom: 0; }
    td:first-child { grid-column: 1 / -1; padding-bottom: 0; }
    td code { word-break: normal; white-space: nowrap; }
  }
