/* Shared presentation for the landing page, builder and guide. */
:root {
  color-scheme: dark;
  --page: #101113; --page-2: #1b1d21; --surface: #181a1e;
  --ink: #f4f4f5; --ink-2: #bfc2c9; --ink-3: #a2a6af;
  --line: #34373d; --line-2: #292c32;
  --red: #ff8bab; --red-hover: #ffafc4; --red-soft: #351922; --red-text: #ffb6ca;
  --cta: #b8083b; --cta-hover: #ce1048; --cta-ink: #fff;
  --ok: #80dfa4; --ok-soft: #15291d; --ok-line: #345b40;
  --header: #101113;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px; --radius-s: 5px;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p, li, dd, td { text-wrap: pretty; }
h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; margin: 0 0 6px; }
.lead { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.small { font-size: 14px; color: var(--ink-3); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { background: var(--page-2); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* Tables: rules between rows, quiet column headings */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { caption-side: top; text-align: left; font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); padding-bottom: 10px; }
th, td { text-align: left; vertical-align: top; padding: 11px 18px 11px 0; border-top: 1px solid var(--line); line-height: 1.5; }
thead th { border-top: 0; padding-top: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
tbody th, td:first-child { color: var(--ink); font-weight: 600; }
td { color: var(--ink-2); }
td small { display: block; color: var(--ink-3); font-weight: 400; font-size: 13px; }

/* Numbered steps: one marker style for every sequence */
.numbered { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.numbered > li { counter-increment: n; position: relative; padding-left: 46px; }
.numbered > li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 14px; font-weight: 600; line-height: 1; color: var(--ink); }

/* Buttons: one style, one primary (the red call to action) */
.btn { appearance: none; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.1; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 18px; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--page); }
.btn.small { padding: 9px 13px; font-size: 13px; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-ink); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn:disabled:hover { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.primary:disabled:hover { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn.quiet { border-color: transparent; color: var(--ink-2); padding-inline: 8px; }
.btn.quiet:hover { background: transparent; color: var(--red); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 64px; height: auto; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--page-2); border: 1px solid var(--line); display: grid; place-items: center; }
.brand .mark i { display: block; width: 10px; height: 10px; border-radius: 2px; background: var(--red); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 15px; font-weight: 600; }
.top nav a:not(.btn) { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.top nav a:not(.btn):hover, .top nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.top .btn { padding: 9px 14px; }
/* Footer */
footer { padding: 36px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--red); }
footer p { margin: 0; max-width: 64ch; }


.page-head { padding: 56px 0 8px; }
.doc { max-width: 880px; margin-inline: auto; }
section[id] { scroll-margin-top: 88px; }
.skip { position: absolute; top: -100px; left: 16px; z-index: 40; padding: 12px 18px; background: var(--ink); color: var(--page); }
.skip:focus { top: 8px; }
.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1000px) { .top { position: static; } }
@media (max-width: 560px) { .top nav { gap: 10px 22px; } .top nav .btn { padding: 10px 12px; font-size: 13px; } }
@media (max-width: 640px) { .page-head { padding-top: 36px; } }
@media print {
  :root { color-scheme: light; --page: #fff; --page-2: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --line: #bbb; }
  .top, footer, .skip { display: none; }
}
