/* The documents: /docs (landing/docs.html), /docs/terms and /docs/privacy. */
:root {
  color-scheme: dark;
  --bg: #07090B; --surface: #111518; --s2: #1B2125; --border: rgba(255, 255, 255, .07);
  --text: #F2F4F3; --body: #D5DAD8; --muted: #8B9490; --accent: #5EEAD4;
}
* { box-sizing: border-box; margin: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg) radial-gradient(70% 360px at 50% 0, rgba(94, 234, 212, .08), transparent 70%) no-repeat;
  color: var(--text); font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
}
main { max-width: 720px; margin: 0 auto; }
a { color: var(--accent); text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
svg { flex: none; }

.top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.brand { font-family: Unbounded, Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -.01em; font-size: 15px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.brand b { font-weight: inherit; color: var(--muted); }
.top .link { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.top .link:hover { color: var(--text); }

h1 { margin: 32px 0 8px; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.5; }
.meta { color: var(--muted); font-size: 14px; }
.label { margin: 36px 0 12px 4px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.cards { display: grid; gap: 10px; margin-top: 28px; }
.card {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .15s cubic-bezier(.2, .8, .2, 1);
}
.card:hover { border-color: rgba(94, 234, 212, .3); }
.card:active { transform: scale(.985); }
.card .ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(94, 234, 212, .1); color: var(--accent); }
.card .txt { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card b { font-size: 17px; font-weight: 700; line-height: 1.3; }
.card .txt span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.card .chev { color: var(--muted); }

.tabs { display: flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tabs a {
  flex: 1 1 0; padding: 9px 10px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600;
  text-align: center; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { background: var(--s2); color: var(--text); }

.key { margin-top: 24px; padding: 18px 20px 20px; border-radius: 20px; border: 1px solid rgba(94, 234, 212, .16);
  background: linear-gradient(180deg, rgba(94, 234, 212, .08), rgba(94, 234, 212, .02)); }
.key h2 { margin-bottom: 10px; color: var(--accent); font-size: 15px; font-weight: 700; }
.key ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.key li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.key li::before {
  content: ""; position: absolute; left: 3px; top: .42em; width: 11px; height: 6px;
  border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}

.toc { margin-top: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; padding: 15px 20px;
  font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { color: var(--muted); transition: transform .2s; }
.toc[open] summary svg { transform: rotate(180deg); }
.toc ol { list-style: none; padding: 0 20px 16px; columns: 2 240px; column-gap: 24px; }
.toc li { break-inside: avoid; padding: 4px 0; font-size: 15px; line-height: 1.45; }
.toc a { display: flex; gap: 6px; color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a span { min-width: 1.6em; color: var(--muted); font-variant-numeric: tabular-nums; }

.doc h2 { display: flex; gap: 10px; margin: 40px 0 12px; font-size: 20px; line-height: 1.3; font-weight: 700; scroll-margin-top: 16px; }
.doc h2 span { color: var(--accent); font-variant-numeric: tabular-nums; }
.doc p, .doc li { color: var(--body); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; margin-top: 10px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--muted); }
.doc b { color: var(--text); font-weight: 600; }
.num { margin-right: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 48px; padding: 20px 4px 0;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 14px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (min-width: 640px) {
  body { padding-top: calc(28px + env(safe-area-inset-top)); }
  h1 { margin-top: 48px; font-size: 40px; }
  .tabs { display: inline-flex; }
  .tabs a { flex: none; padding: 9px 18px; }
}
@media (prefers-reduced-motion: reduce) { .card, .tabs a, .toc summary svg { transition: none; } }
