/* Llama Logger site styles.
   Layout: sticky slim header; home = asymmetric hero (copy | log panel) then alternating bands;
   docs = three columns (nav | article | on-this-page) collapsing to one. Condensed caps echo the LOGGER wordmark. */
:root {
  --bg: #f5f5f8;
  --surface: #ffffff;
  --sunken: #ecebf1;
  --ink: #1c1a24;
  --muted: #5d596b;
  --line: #dddbe5;
  --accent: #e8730c;        /* app orange */
  --accent-ink: #b45304;    /* orange for text on light backgrounds */
  --accent-soft: #fdeedf;
  --violet: #5a3ea8;        /* app purple */
  --violet-soft: #ece7fa;
  --band: #211e2c;          /* code / CTA band, matches the app chrome */
  --band-ink: #ecebf2;
  --band-muted: #a7a3b8;
  --band-line: #363246;
  --ok: #1f7a4c;
  --ok-soft: #e1f3e9;
  --bad: #b42318;
  --bad-soft: #fde8e7;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131a; --surface: #1d1b25; --sunken: #191720; --ink: #ecebf2; --muted: #a3a0b3; --line: #2e2b3a;
    --accent: #ff8a2b; --accent-ink: #ffa25a; --accent-soft: #3a2616; --violet: #a993f2; --violet-soft: #2a2340;
    --band: #0f0e14; --band-ink: #ecebf2; --band-muted: #a3a0b3; --band-line: #2a2736;
    --ok: #5fd39a; --ok-soft: #173126; --bad: #ff8a80; --bad-soft: #3a1a18;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
picture { display: contents; } /* theme-aware screenshots (see eleventy.config.js) */
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
code, pre, kbd { font-family: var(--f-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: var(--r); }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: block; width: 97px; height: 24px; background: var(--ink); -webkit-mask: url(/assets/img/Logo.svg) no-repeat center / contain; mask: url(/assets/img/Logo.svg) no-repeat center / contain; flex: none; }
.nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px/1 var(--f-body); padding: 11px 18px; border-radius: var(--r); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #1a1006; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
@media (max-width: 860px) { .nav, .header-actions .btn-ghost { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: 72px 180px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.hero h1, .not-found h1 { font-family: var(--f-display); font-stretch: 72%; font-weight: 850; text-transform: uppercase; font-size: clamp(44px, 6.4vw, 82px); line-height: .92; margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 18.5px; color: var(--muted); max-width: 33em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.install { margin-top: 28px; display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font: 400 13.5px/1 var(--f-mono); overflow: hidden; }
.install code { padding: 11px 14px; min-width: 0; line-height: 1.4; padding-block: 8px; }
.install .ver { display: flex; align-items: center; padding: 0 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; border-left: 1px solid var(--line); white-space: nowrap; }
.install button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); padding: 0 12px; cursor: pointer; font: 500 12px var(--f-body); }
.install button:hover { color: var(--ink); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; } .hero { padding-block: 44px 56px; } }

/* Replica of the app's Log Entries view (dark theme). Colours are the app's, not the site's,
   so they stay fixed in both site themes — it's a picture of the product. */
.sr-only { position: absolute; width: 0; height: 0; overflow: hidden; }
.panel-wrap { position: relative; }
.app {
  /* The app's Fluent Light theme with the brand palette, measured from the release build (dark values below) */
  --a-bg: #ffffff; --a-panel: #ffffff; --a-head: #ffffff; --a-line: #e4e3ea; --a-btn-line: #d3d3d2; --a-row: #ffffff; --a-grp: #ffffff;
  --a-focus: oklch(0.95 0.04 51.88); --a-ink: #161616; --a-muted: #3f3f3e; --a-off: #a3a2a8; --a-orange: #e8730c; --a-accent: oklch(0.6803 0.1723 51.88); --a-blue: #2f7de1;
  --a-check: #ffffff; --a-bug-bg: #f0eff4;
  --a-normal: #0d6efd; --a-normal-ink: #ffffff; --a-starred: #f59f00; --a-starred-ink: #1f1f1f; --a-dismissed: #6c757d; --a-dismissed-ink: #ffffff;
  width: 760px; max-width: none; background: var(--a-bg); color: var(--a-ink); border-radius: 10px; overflow: hidden;
  font: 400 12.5px/1.3 var(--f-body);
  box-shadow: 0 30px 60px -30px rgb(20 10 40 / .55), 0 0 0 1px var(--a-line);
}
/* The app's default dark theme (Fluent Dark + brand palette from fluent-brand.css), measured from the release build */
@media (prefers-color-scheme: dark) {
  .app {
    --a-bg: #1d1b25; --a-panel: #1d1b25; --a-head: #1d1b25; --a-line: #3d3949; --a-btn-line: #767676; --a-row: #1d1b25; --a-grp: #1d1b25;
    --a-focus: oklch(0.2826 0.0731 51.88); --a-ink: #fffffe; --a-muted: #c8c8c7; --a-off: #7a7a7a; --a-orange: #f0761c; --a-accent: oklch(0.7478 0.1392 51.88); --a-blue: #4f9cf5;
    --a-check: #1d1b25; --a-bug-bg: #2a2733;
    --a-normal: #6e8fd6; --a-normal-ink: #14131a; --a-starred: #f2c14e; --a-starred-ink: #14131a; --a-dismissed: #4a4659; --a-dismissed-ink: #d6d3e0;
  }
}
.app svg { width: 14px; height: 14px; flex: none; color: var(--a-muted); }
.app .ic-orange { color: var(--a-orange); }
.app .ic-accent { color: var(--a-accent); }
.app .ic-blue { color: var(--a-blue); }
.app .caret { width: 11px; height: 11px; margin-left: 2px; }
.app-title { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--a-line); }
.app-bug { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--a-bug-bg); }
.app-bug svg { width: 17px; height: 17px; color: #f2b01e; }
.app-toolbar { display: flex; gap: 6px; padding: 10px 12px; white-space: nowrap; overflow: hidden; }
.app-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--a-btn-line); border-radius: 4px; background: var(--a-panel); color: var(--a-ink); }
.app-btn.off { color: var(--a-off); }
.app-btn.off svg { color: var(--a-off); }
.app-btn.select { min-width: 118px; justify-content: space-between; }
.app-btn.input { min-width: 150px; justify-content: space-between; color: var(--a-muted); }
.app-grid { margin: 0 12px 12px; border: 1px solid var(--a-line); border-radius: 4px; background: var(--a-row); overflow: hidden; }
.app-grouppanel { padding: 7px 8px; border-bottom: 1px solid var(--a-line); background: var(--a-panel); }
.app-grouppanel .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--a-line); border-radius: 4px; background: var(--a-head); }
.app-grouppanel .chip svg { width: 12px; height: 12px; color: var(--a-ink); }

.app-scroll { overflow-x: auto; }
.app table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 732px; }
.app col.c-chk { width: 34px; } .app col.c-edit { width: 32px; } .app col.c-date { width: 148px; } .app col.c-proj { width: 102px; }
.app col.c-ver { width: 112px; } .app col.c-count { width: 64px; } .app col.c-type { width: 146px; } .app col.c-status { width: 94px; }
.app th, .app td { padding: 7px 8px; border-bottom: 1px solid var(--a-line); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app th:last-child, .app td:last-child { border-right: 0; }
.app th { background: var(--a-head); font-weight: 600; }
.app th > span { display: inline-block; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.app th svg { float: right; margin-top: 1px; }
.app th .ic-sort { float: none; width: 12px; height: 12px; margin-left: 3px; vertical-align: middle; color: var(--a-ink); }
.app th.wrap2 { white-space: normal; line-height: 1.1; font-size: 11.5px; padding-block: 3px; }
.app th:first-child svg, .app td:first-child svg, .app td:nth-child(2) svg { float: none; display: block; margin: 0 auto; }
.app tr.filter td { background: var(--a-row); height: 26px; padding-block: 4px; }
.app tr.filter td.r svg { margin-left: auto; }
.app tr.grp td { background: var(--a-grp); color: var(--a-muted); border-right: 0; }
.app tr.grp svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.app tbody td { color: var(--a-ink); }
.app tbody tr:last-child td { border-bottom: 0; }
.app tbody tr.focused td { background: var(--a-focus); }
.app td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* Project and Status chips, from the app's custom.css (llama-chip / llama-chip-status-*) */
.app .llama-chip { display: inline-block; max-width: 100%; padding: .1rem .6rem; border-radius: 999px; font-size: .8em; font-weight: 600; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; background-color: rgb(128 128 128 / .18); color: inherit; }
.app .llama-chip.status-normal, .app .llama-chip.status-starred, .app .llama-chip.status-dismissed { border-radius: 4px; }
.app .llama-chip.status-normal { background-color: var(--a-normal); color: var(--a-normal-ink); }
.app .llama-chip.status-starred { background-color: var(--a-starred); color: var(--a-starred-ink); }
.app .llama-chip.status-dismissed { background-color: var(--a-dismissed); color: var(--a-dismissed-ink); }
.app td.center { text-align: center; }
.app th.center { text-align: center; }
.app tr.grp .llama-chip { color-scheme: light; }

.crash-email { position: absolute; right: 24px; bottom: -146px; width: 252px; background: #f6f6f6; color: #222; border-radius: 8px; padding: 14px 16px; box-shadow: 0 18px 40px -16px rgb(20 10 40 / .5), 0 0 0 1px rgb(0 0 0 / .08); font: 13px/1.4 "Segoe UI", system-ui, sans-serif; }
.ce-title { font-size: 19px; margin-bottom: 10px; }
.ce-btn { display: inline-block; background: #ec9a2e; color: #fff; padding: 6px 10px; border-radius: 4px; font-size: 13px; }
.crash-email dl { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #d8d8d8; display: grid; gap: 5px; }
.crash-email dl div { display: grid; grid-template-columns: 62px 1fr; gap: 8px; }
.crash-email dt { font-weight: 600; }
.crash-email dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Agent session card: overlaps the replica's top-right corner (stacked with the Crash Report card at the bottom) */
.agent-card { position: absolute; top: -64px; right: 12px; width: 372px; background: #121218; color: #b9b5c9; border-radius: 8px; padding: 0 14px 12px;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / .7), 0 0 0 1px #34303f; font: 12.5px/1.55 var(--f-mono); }
.agent-card p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-bar { display: flex; align-items: center; gap: 5px; margin: 0 -14px 8px; padding: 8px 14px; background: #1b1925; border-bottom: 1px solid #2a2736; border-radius: 8px 8px 0 0; color: #7c7891; font-size: 11px; }
.agent-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3746; }
.agent-bar span { margin-left: auto; }
.agent-card .you { color: #ecebf2; margin-top: 6px; }
.agent-card .you::before { content: "> "; color: #ffa25a; }
.agent-card .tool { color: #c6a5ff; }
.agent-card .tool::before { content: "● "; }
.agent-card .tool span { color: #7c7891; margin-left: 6px; }
.agent-card .tool .ok { color: #5fd39a; margin-left: 2px; }
.agent-card .row { padding-left: 12px; }
.agent-card .row b { color: #ecebf2; font-weight: 500; }
.agent-card .dim { color: #7c7891; }

/* Desktop: the replica bleeds past the right edge like a cropped screenshot. Narrow: fit and scroll the grid. */
.hero { overflow-x: clip; }
/* Scale the replica so all eight columns (through Status) stay visible at every desktop width */
@media (min-width: 1280px) { .app, .crash-email, .agent-card { zoom: .9; } }
@media (min-width: 1100px) and (max-width: 1279.98px) { .app, .crash-email, .agent-card { zoom: .78; } }
@media (min-width: 921px) and (max-width: 1099.98px) { .app, .crash-email, .agent-card { zoom: .64; } }
@media (min-width: 921px) and (max-width: 1279.98px) { .install { font-size: 12px; } .install code { padding-inline: 10px; } .install .ver, .install button { padding-inline: 9px; } }
/* Narrow: grid full width, then the two cards in normal flow (side by side when they fit) */
@media (max-width: 920px) {
  .panel-wrap { display: flex; flex-wrap: wrap; gap: 14px; }
  .app { width: 100%; }
  .agent-card, .crash-email { position: static; }
  .agent-card { flex: 1 1 300px; width: auto; min-width: 0; }
  .crash-email { flex: 0 1 252px; }
}

/* ---------- home sections ---------- */
section { padding-block: 88px; }
section.flush-top { padding-top: 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 46em; }
.sec-head.flush { margin: 0; }
.sec-head h2 { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4vw, 48px); line-height: 1; }
.sec-head p { color: var(--muted); font-size: 17.5px; }

.problems { background: var(--surface); border-block: 1px solid var(--line); padding-block: 72px; }
.problems .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.problem { padding: 4px 32px 4px 0; display: grid; gap: 10px; align-content: start; }
.problem + .problem { padding-left: 32px; border-left: 1px solid var(--line); }
.problem h2 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.problem p { color: var(--muted); }
.problem .q { font: 500 12px var(--f-mono); color: var(--accent-ink); }
@media (max-width: 820px) {
  .problems .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .problem, .problem + .problem { padding: 0; border: 0; }
  .problem + .problem { padding-top: 28px; border-top: 1px solid var(--line); }
  .problem .q[aria-hidden] { display: none; }
}

.video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.poster { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--band); display: grid; place-items: center; color: var(--band-ink); box-shadow: 0 0 0 1px var(--line); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster .play { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 0; background: var(--accent); color: #1a1006; cursor: pointer; transition: transform .2s; }
.poster .play:hover { transform: scale(1.06); }
.poster .cap { position: absolute; left: 16px; bottom: 14px; font: 500 12px var(--f-mono); color: var(--band-muted); }
@media (max-width: 820px) { .video { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.feature { display: grid; gap: 12px; align-content: start; }
.feature .shot { aspect-ratio: 306 / 200; border-radius: 8px; overflow: hidden; background: var(--band); box-shadow: 0 0 0 1px var(--line); }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; margin-top: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; }
/* Answers tile: example AI-assistant session over the MCP server. Fixed dark terminal look in both site themes. */
.mcp-shot { container-type: inline-size; background: #16141e; }
.mcp { height: 100%; padding: 0 4cqw 3cqw; font: clamp(6px, 3cqw, 13px)/1.45 var(--f-mono); color: #b9b5c9; overflow: hidden; }
.mcp p { color: inherit; font-size: inherit; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcp-bar { display: flex; align-items: center; gap: 1.6cqw; margin: 0 -4cqw 2.4cqw; padding: 2cqw 4cqw; background: #1f1d29; border-bottom: 1px solid #2a2736; color: #7c7891; }
.mcp-bar i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #3a3746; }
.mcp-bar span { margin-left: auto; }
.mcp .you { color: #ecebf2; margin-top: 1.6cqw; }
.mcp .you::before { content: "> "; color: #ffa25a; }
.mcp .tool { color: #c6a5ff; }
.mcp .tool::before { content: "● "; }
.mcp .tool span { color: #7c7891; margin-left: 1.5cqw; }
.mcp .tool .ok { color: #5fd39a; }
.mcp .row { padding-left: 2.5cqw; }
.mcp .row b { color: #ecebf2; font-weight: 500; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.band { background: var(--band); color: var(--band-ink); }
.band .sec-head p { color: var(--band-muted); }
.band .eyebrow { color: #ffa25a; }
.code-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--band-line); }
.steps li::before { content: counter(s); font: 500 13px var(--f-mono); color: #ffa25a; padding-top: 2px; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--band-muted); font-size: 15px; }
.integrations { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.integrations a { font-size: 13.5px; text-decoration: none; border: 1px solid var(--band-line); border-radius: 99px; padding: 6px 12px; }
.integrations a:hover { border-color: var(--band-muted); }
.after-steps { margin-top: 22px; }
@media (max-width: 900px) { .code-grid { grid-template-columns: minmax(0, 1fr); } }

pre.code { margin: 0; background: #16141e; color: #e6e4ee; border: 1px solid var(--band-line); border-radius: 8px; padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.code-file { display: flex; justify-content: space-between; align-items: center; background: #1b1925; border: 1px solid var(--band-line); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 8px 14px; font: 500 12px var(--f-mono); color: #a7a3b8; }
.code-file + pre.code { border-radius: 0 0 8px 8px; }
.code-file button, .copy-btn { background: none; border: 0; color: #a7a3b8; font: 500 12px var(--f-body); cursor: pointer; }
.code-file button:hover, .copy-btn:hover { color: #fff; }
.tk-k { color: #c6a5ff; } .tk-t { color: #7fd4c1; } .tk-s { color: #ffb878; } .tk-c { color: #7c7891; font-style: italic; } .tk-m { color: #8ec5ff; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-intro { display: grid; gap: 18px; }
.contact-intro p { color: var(--muted); }
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dt { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact dd { margin: 2px 0 0; }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: 400 15px var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.form-status { border-radius: var(--r); padding: 12px 14px; font-size: 14.5px; font-weight: 500; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.err { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); } form.card { padding: 20px; } }

.not-found { display: grid; gap: 4px; justify-items: start; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 48px 36px; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h2 { margin: 0 0 12px; font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent-ink); }
.foot .brand p { color: var(--muted); margin-top: 14px; max-width: 26em; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .brand { grid-column: 1 / -1; } }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr) 196px; gap: 48px; padding-block: 36px 80px; align-items: start; }
.docs-nav { position: sticky; top: 84px; display: grid; gap: 24px; font-size: 14.5px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.nav-group h2 { margin: 0 0 8px; font: 500 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.nav-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.nav-group a { display: block; padding: 4px 12px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.nav-group a:hover { color: var(--ink); }
.nav-group a[aria-current] { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.search { --pagefind-ui-scale: .72; --pagefind-ui-primary: var(--accent); --pagefind-ui-text: var(--ink); --pagefind-ui-background: var(--surface); --pagefind-ui-border: var(--line); --pagefind-ui-tag: var(--sunken); --pagefind-ui-border-width: 1px; --pagefind-ui-border-radius: 6px; --pagefind-ui-font: var(--f-body); }
.docs-mobile { display: none; }
.article { min-width: 0; max-width: 46rem; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.article h1 { color: var(--accent); font-family: var(--f-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 5vw, 52px); line-height: 1; margin: 14px 0 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.meta-row:empty { display: none; }
.tag { font: 500 12.5px/1 var(--f-body); border-radius: 99px; padding: 6px 10px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); text-decoration: none; display: inline-block; }
.tag.plan { border-color: transparent; background: var(--violet-soft); color: var(--violet); }
.prose { font-size: 16.5px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 24px; font-weight: 600; margin-top: 40px; letter-spacing: -.01em; }
.prose h3 { font-size: 18.5px; font-weight: 600; margin-top: 28px; }
.prose h4 { font-size: 16.5px; font-weight: 600; margin-top: 22px; margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--accent-ink); }
.prose mark { background: var(--accent-soft); color: inherit; padding: 1px 4px; border-radius: 3px; }
.prose :not(pre) > code { font-size: .86em; background: var(--sunken); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.prose img { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prose blockquote { margin-inline: 0; border-left: 3px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0; }
.code-wrap { position: relative; }
.code-wrap .copy-btn { position: absolute; top: 8px; right: 10px; opacity: 0; transition: opacity .15s; }
.code-wrap:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.prose pre[class*="language-"], .prose pre { background: #16141e; color: #e6e4ee; border: 1px solid var(--band-line); border-radius: 8px; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.7 var(--f-mono); margin: 0; }
.prose pre code { font: inherit; background: none; border: 0; padding: 0; }
.token.keyword, .token.boolean { color: #c6a5ff; }
.token.class-name { color: #7fd4c1; }
.token.string, .token.char { color: #ffb878; }
.token.comment { color: #7c7891; font-style: italic; }
.token.function, .token.property { color: #8ec5ff; }
.token.number { color: #f6c177; }
.token.punctuation, .token.operator { color: #b9b5c9; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.pager a { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-decoration: none; display: grid; gap: 2px; background: var(--surface); }
.pager a:hover { border-color: var(--accent); }
.pager small { color: var(--muted); font-size: 12.5px; }
.pager b { font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }
.toc { position: sticky; top: 84px; font-size: 13.5px; display: grid; gap: 18px; }
.toc h2 { margin: 0 0 8px; font: 500 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.ver-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--surface); display: grid; gap: 4px; }
.ver-box span { font-size: 12px; color: var(--muted); }
.ver-box b { font-family: var(--f-mono); font-weight: 500; font-size: 15px; }
.ver-box a { font-size: 13px; color: var(--accent-ink); }
@media (max-width: 1080px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 780px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .docs-nav { display: none; }
  .docs-mobile { display: block; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 16px; }
  .docs-mobile summary { padding: 10px 14px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
  .docs-mobile .inner { padding: 4px 14px 14px; display: grid; gap: 18px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: auto; }
}

/* change log */
.cl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.release { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding-block: 20px; border-top: 1px solid var(--line); }
.release .v { font: 500 18px var(--f-mono); }
.release .d { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.release ul { margin: 0; padding-left: 18px; }
.release p { margin-top: 10px; font-size: 15px; }
.pill-latest { display: inline-block; margin-top: 8px; font: 600 11px/1 var(--f-body); padding: 4px 8px; border-radius: 99px; background: var(--accent); color: #1a1006; }
@media (max-width: 560px) { .release { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
