/* Colours: docs/BRAND.md only. The blue ramp, navy, white and the amber point; every softer
   shade is one of those at lower opacity, never a separate grey. */
:root {
  --page: #0F172A;
  --ink: #FFFFFF;
  --text: rgba(255,255,255,.88);
  --text-2: rgba(255,255,255,.76);
  --muted: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.50);
  --link: #93C5FD;
  --label: #93C5FD;
  --surface: rgba(147,197,253,.06);
  --surface-2: rgba(147,197,253,.09);
  --line: rgba(147,197,253,.14);
  --line-strong: rgba(59,130,246,.42);
  --ghost-line: rgba(147,197,253,.28);
}
/* Follows the reader's system theme; dark is the default above. */
@media (prefers-color-scheme: light) {
  :root {
    --page: #FFFFFF;
    --ink: #0F172A;
    --text: rgba(15,23,42,.90);
    --text-2: rgba(15,23,42,.80);
    --muted: rgba(15,23,42,.66);
    --faint: rgba(15,23,42,.54);
    --link: #1D4ED8;
    --label: #1D4ED8;
    --surface: rgba(147,197,253,.10);
    --surface-2: rgba(147,197,253,.16);
    --line: rgba(59,130,246,.18);
    --line-strong: rgba(59,130,246,.40);
    --ghost-line: rgba(15,23,42,.22);
  }
  /* BRAND.md: the innermost ring is #1D4ED8 on light backgrounds. */
  .mark circle:nth-of-type(3) { stroke: #1D4ED8; }
}
:root { color-scheme: dark light; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--page); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", sans-serif; line-height: 1.6; }
a { color: var(--link); }
.wrap { max-width: 960px; margin: 0 auto; padding: 64px 24px 40px; }
.narrow { max-width: 760px; }
.hero { text-align: center; }
.mark { width: 112px; height: 112px; }
h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; margin-top: 18px; color: var(--ink); }
.page h1 { font-size: 32px; line-height: 1.25; margin-top: 12px; }
h2 { font-size: 20px; font-weight: 650; color: var(--ink); margin-top: 40px; }
p { margin-top: 12px; }
.tagline { font-size: 21px; font-weight: 650; margin-top: 10px; color: var(--text); }
.lede { font-size: 16.5px; color: var(--muted); margin: 14px auto 0; max-width: 700px; }
.page .lede { margin-left: 0; font-size: 17.5px; color: var(--text-2); }
.cat { font-size: 13px; color: var(--faint); margin-top: 12px; letter-spacing: 0.02em; }
.crumb { font-size: 13.5px; }
.crumb a { color: var(--muted); text-decoration: none; }
.btns { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 9px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn.primary { background: #3B82F6; color: #FFFFFF; }
.btn.ghost { border: 1px solid var(--ghost-line); color: var(--text); }
.btn:hover { filter: brightness(1.12); }
.install { margin: 40px auto 0; max-width: 640px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px 22px; text-align: left; }
.page .install { margin: 14px 0 0; max-width: none; }
.install .lbl { font-size: 12px; color: var(--label); font-weight: 650; letter-spacing: 0.04em; }
.install .note { color: var(--muted); font-size: 13px; margin-top: 10px; }
/* Long commands wrap instead of being cut off on phone screens. */
pre, code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
pre { margin: 8px 0 0; font-size: 13.5px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
code { font-size: 0.92em; background: var(--surface-2); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
pre code { background: none; padding: 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; margin-top: 14px; }
.box .lbl { font-size: 12px; color: var(--label); font-weight: 650; letter-spacing: 0.04em; }
.ask { font-size: 16px; color: var(--ink); margin-top: 6px; }
.out { list-style: none; margin-top: 8px; }
.out li { font-size: 14px; color: var(--text-2); padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.out li:first-child { border-top: none; }
.out .src { color: var(--faint); font-size: 12.5px; margin-right: 6px; }
.small { font-size: 13px; color: var(--muted); }
ul.plain { margin: 10px 0 0 20px; }
ul.plain li { margin-top: 6px; }
.figure { margin-top: 48px; }
.figure img { width: 100%; }
.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; text-decoration: none; }
.card:hover { border-color: #3B82F6; }
.card .t { font-weight: 650; color: var(--link); font-size: 14.5px; }
.card .d { font-size: 13px; color: var(--muted); margin-top: 5px; }
.foot { margin-top: 52px; text-align: center; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 22px; }
.foot a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.foot a:hover { color: var(--ink); }
/* Home page: brand line, headline, proof slot, gains, client tabs, data lines. */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 44px; height: 44px; }
.wordmark { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
h1.headline { font-size: 40px; line-height: 1.2; max-width: 820px; margin: 22px auto 0; }
.proof { margin-top: 44px; text-align: center; }
.proof img { max-width: 760px; border-radius: 10px; }
.caption { font-size: 13px; color: var(--faint); margin-top: 8px; }
.compare { margin-top: 36px; text-align: center; }
.compare img { border-radius: 10px; }
.watch { margin: 12px auto 0; max-width: 760px; text-align: left; }
.watch summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--link); }
.watch video { display: block; width: 100%; margin-top: 10px; border-radius: 10px; background: #0F172A; }
.caption a { color: var(--muted); }
.gains { list-style: none; margin: 40px auto 0; max-width: 760px; }
.gains li { font-size: 17px; color: var(--text); padding: 10px 0; border-top: 1px solid var(--line); }
.gains li:first-child { border-top: none; }
.gains .w { color: var(--muted); }
.gains-note { max-width: 760px; margin: 4px auto 0; font-size: 13px; color: var(--faint); }
.works { max-width: 760px; margin: 28px auto 0; font-size: 15px; color: var(--text-2); text-wrap: pretty; }
h2.lbl-h { font-size: 18px; margin-top: 0; }
.clients { margin-top: 14px; }
.clients details { border-top: 1px solid var(--line); padding: 8px 0; }
.clients summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.data { max-width: 640px; margin: 36px auto 0; padding-left: 20px; font-size: 14.5px; color: var(--text-2); }
.data li { margin-top: 6px; }
/* Capability pages: the plain line under the headline, the smaller "Behind the scenes" box, folded notes. */
.page .sub { font-size: 14px; color: var(--faint); margin-top: 6px; }
.box.behind { padding: 12px 16px; }
.box.behind .lbl { font-size: 11px; color: var(--muted); }
.box.behind pre { font-size: 12.5px; color: var(--text-2); }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
@media (max-width: 560px) {
  h1.headline { font-size: 28px; }
  .gains li { font-size: 15.5px; }
  .wrap { padding: 40px 16px 32px; }
  h1 { font-size: 34px; }
  .page h1 { font-size: 26px; }
  .tagline { font-size: 18px; }
  .install { padding: 14px 14px; }
  pre { font-size: 12.5px; }
}
