:root {
  --bg: #0a0b10;
  --bg-2: #10131c;
  --surface: #151925;
  --line: #262c3d;
  --text: #eef0f5;
  --muted: #a2a9ba;
  --faint: #7c8496;
  --teal: #5eead4;
  --teal-strong: #14b8a6;
  --teal-dim: #1b5a53;
  --amber: #fbbf24;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: #99f6e4; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }
pre { margin: 8px 0 16px; padding: 12px 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13.5px; line-height: 1.5; }
pre code { font-size: inherit; white-space: pre; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: .02em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; }
.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* ---------- type ---------- */
.eyebrow { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 12px 0 18px; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 750; }
h2 { margin: 10px 0 14px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.015em; }
h3 { margin: 0 0 6px; font-size: 1.05rem; }
.lead { margin: 0; max-width: 58ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--faint); }
section { padding: 72px 0; border-top: 1px solid var(--line); }
.page-top { padding: 64px 0 56px; border-top: 0; }

/* ---------- status ---------- */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge.soon { border-color: var(--teal-dim); color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.button { display: inline-block; padding: 11px 18px; border-radius: 10px; background: var(--teal-strong); color: #04211e; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--teal); color: #04211e; }
.button.quiet { background: none; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.button.quiet:hover { background: var(--surface); color: var(--text); }

/* ---------- home ---------- */
.home-brand { padding: 56px 0 44px; border-top: 0; }
.home-brand .logo { width: 72px; height: 72px; margin-bottom: 18px; border-radius: 16px; }
.feature { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.app-title img { width: 72px; height: 72px; border-radius: 16px; }
.app-title h1, .app-title h2 { margin: 0; }

/* ---------- screenshots ---------- */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(20, 184, 166, .28); }
.shot.phone { max-width: 300px; margin-inline: auto; }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--faint); text-align: center; }
.shots { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .shots { grid-template-columns: 1fr 1fr 1.4fr; } .shot.phone { max-width: none; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.card .badge { margin-bottom: 10px; }
.card.lead-card { border-color: var(--teal-dim); }
.product { display: flex; gap: 16px; align-items: flex-start; }
.product img { flex: none; width: 56px; height: 56px; border-radius: 13px; }
.product h3 { margin-bottom: 2px; font-size: 1.1rem; }
.product .badge { margin: 10px 0 0; }

/* ---------- document pages ---------- */
.doc { padding: 56px 0 80px; border-top: 0; }
.doc h2 { margin-top: 44px; font-size: 1.4rem; }
.doc h3 { margin-top: 26px; }
.doc p, .doc li { color: var(--muted); }
.doc strong, .doc th { color: var(--text); font-weight: 600; }
.doc .updated { margin: 0 0 28px; color: var(--faint); font-size: 14px; }
.doc .note { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.doc .note p { margin: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
th, td { padding: 9px 10px; border-top: 1px solid var(--line); color: var(--muted); text-align: left; vertical-align: top; }
.toc { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }

/* ---------- footer ---------- */
footer { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; }
.foot-links a { color: var(--muted); }
footer p { margin: 0 0 6px; max-width: 80ch; }

/* ---------- print (the guide PDF is made from this: tools/build_guide_pdf.py) ---------- */
@media print {
  :root {
    --bg: #fff; --surface: #f3f5f7; --line: #cfd5dc; --text: #111318;
    --muted: #2f3540; --faint: #565e6b; --teal: #0b6f65; --amber: #8a5a00;
    color-scheme: light;
  }
  .site-head, footer, .toc, .no-print { display: none; }
  .doc { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .doc h2, .doc h3 { break-after: avoid; }
  tr { break-inside: avoid; }
}
