/* Squaero site: landing (ES/EN), manual and privacy pages share this file.
   "Liquid Glass" direction (docs/SITE.md): translucent surfaces over two soft
   glows, in the four M14 styles. Fonts are served from fonts/ (SIL OFL). */

/* Fonts ------------------------------------------------------------------ */
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* Tokens -----------------------------------------------------------------
   Four styles, picked with data-style on <html>. Without it (no JS, nothing
   saved) the page is B, or A when the system is dark. Contrast is measured by
   scripts/site/contrast.mjs, which reads these blocks: keep one property per
   line. Glass and glow alphas live in the light/dark sets below. */
:root,
:root[data-style="b"] {
  --bg: #eef2f5;
  --surface: #ffffff;
  --surface-rgb: 255 255 255;
  --ink: #14181d;
  --dim: #4c5560;
  --line: #d5dbe1;
  --accent: #0f7b72;
  --accent-rgb: 15 123 114;
  --accent-fg: #ffffff;
  --accent-text: #08564f;
  --soft: #dcefec;
  --glow2-rgb: 122 167 217;
  --ctl-edge: #646d78;
  --kw: #1f4fd1;
  --danger: #c4302b;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --a-glass: 0.55;
  --a-strong: 0.72;
  --a-glow1: 0.20;
  --a-glow2: 0.24;
  --a-wash: 0.08;
  --a-detected: 0.10;
  --edge: rgb(255 255 255 / 0.75);
  --hi: rgb(255 255 255 / 0.9);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-style]) {
    --bg: #0b0e12;
    --surface: #12161b;
    --surface-rgb: 18 22 27;
    --ink: #e6e9ee;
    --dim: #a3acb7;
    --line: #232a33;
    --accent: #3fb8a9;
    --accent-rgb: 63 184 169;
    --accent-fg: #0b1513;
    --accent-text: #5fd0c2;
    --soft: #13282a;
    --glow2-rgb: 61 90 158;
    --ctl-edge: #7d8897;
    --kw: #7aa2f7;
    --danger: #f07178;
    --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
    --a-glass: 0.45;
    --a-strong: 0.70;
    --a-glow1: 0.24;
    --a-glow2: 0.20;
    --a-wash: 0.14;
    --a-detected: 0.14;
    --edge: rgb(255 255 255 / 0.12);
    --hi: rgb(255 255 255 / 0.10);
    color-scheme: dark;
  }
}
:root[data-style="a"] {
  --bg: #0b0e12;
  --surface: #12161b;
  --surface-rgb: 18 22 27;
  --ink: #e6e9ee;
  --dim: #a3acb7;
  --line: #232a33;
  --accent: #3fb8a9;
  --accent-rgb: 63 184 169;
  --accent-fg: #0b1513;
  --accent-text: #5fd0c2;
  --soft: #13282a;
  --glow2-rgb: 61 90 158;
  --ctl-edge: #7d8897;
  --kw: #7aa2f7;
  --danger: #f07178;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
}
:root[data-style="c"] {
  --bg: #14110c;
  --surface: #1c1812;
  --surface-rgb: 28 24 18;
  --ink: #ece2cf;
  --dim: #bdb198;
  --line: #2f281e;
  --accent: #e0a43c;
  --accent-rgb: 224 164 60;
  --accent-fg: #1a1408;
  --accent-text: #ecb85e;
  --soft: #2e2414;
  --glow2-rgb: 163 80 42;
  --ctl-edge: #9a8c6f;
  --kw: #e0a43c;
  --danger: #e46a4f;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
}
:root[data-style="rosa"] {
  --bg: #fff3f7;
  --surface: #ffffff;
  --surface-rgb: 255 255 255;
  --ink: #3b2431;
  --dim: #6a4a5a;
  --line: #f0d3df;
  --accent: #b9406f;
  --accent-rgb: 185 64 111;
  --accent-fg: #ffffff;
  --accent-text: #963060;
  --soft: #fbe1ec;
  --glow2-rgb: 183 154 224;
  --ctl-edge: #8f6479;
  --kw: #b03a72;
  --danger: #b8322b;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
}
/* The dark set, for A and C when picked by hand (the media block above sets it
   for the automatic A). */
:root[data-style="a"],
:root[data-style="c"] {
  --a-glass: 0.45;
  --a-strong: 0.70;
  --a-glow1: 0.24;
  --a-glow2: 0.20;
  --a-wash: 0.14;
  --a-detected: 0.14;
  --edge: rgb(255 255 255 / 0.12);
  --hi: rgb(255 255 255 / 0.10);
  color-scheme: dark;
}
:root[data-style="b"],
:root[data-style="rosa"] { color-scheme: light; }

/* No translucency when the visitor asks for it or the browser cannot blur:
   every glass surface becomes the opaque surface colour. */
@media (prefers-reduced-transparency: reduce) {
  :root:root { --a-glass: 1; --a-strong: 1; }
  .glass, .glass-strong { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root:root { --a-glass: 1; --a-strong: 1; }
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  /* The two glows behind everything: soft radial gradients, so nothing can
     overflow the page. Peak alpha = --a-glow1 / --a-glow2 (measured worst case). */
  background:
    radial-gradient(circle var(--glow1-r) at 240px 160px, rgb(var(--accent-rgb) / var(--a-glow1)), rgb(var(--accent-rgb) / 0) 100%) no-repeat,
    radial-gradient(circle var(--glow2-r) at calc(100% + 40px) 620px, rgb(var(--glow2-rgb) / var(--a-glow2)), rgb(var(--glow2-rgb) / 0) 100%) no-repeat,
    var(--bg);
  --glow1-r: 620px;
  --glow2-r: 560px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { --glow1-r: 380px; --glow2-r: 340px; } }

a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
img, svg, video { max-width: 100%; }
img { height: auto; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { font-size: 0.9em; overflow-wrap: anywhere; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.35em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.82em;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.skip:focus { top: 12px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

/* Glass ------------------------------------------------------------------- */
.glass, .glass-strong {
  background: rgb(var(--surface-rgb) / var(--a-glass));
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--hi), 0 8px 24px -12px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}
.glass-strong { background: rgb(var(--surface-rgb) / var(--a-strong)); }
.glass.deep, .glass-strong.deep { box-shadow: inset 0 1px 0 var(--hi), 0 30px 80px -30px rgb(0 0 0 / 0.45); }

.lift { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lift:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .lift { transition: none; } .lift:hover { transform: none; } }

/* Buttons: the accent pill and the glass one with a visible control edge. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 17px; box-shadow: 0 10px 30px -8px rgb(var(--accent-rgb) / 0.55); }
.btn.ghost { background: rgb(var(--surface-rgb) / var(--a-strong)); color: var(--ink); border-color: var(--ctl-edge); box-shadow: inset 0 1px 0 var(--hi); }

/* Header ------------------------------------------------------------------ */
.top { position: sticky; top: 0; z-index: 10; padding: 16px 16px 0; }
.bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; }
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; flex-grow: 1; font-size: 15px; color: var(--dim); }
.links a { text-decoration: none; }
.links a:hover, .links a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang { font-size: 15px; color: var(--dim); }
.bar .btn { min-height: 40px; }
@media (max-width: 860px) {
  .links { display: none; }
  .bar { border-radius: 26px; justify-content: space-between; gap: 10px 12px; padding: 8px 8px 8px 14px; }
  .bar .btn { order: 2; }
  .styles { order: 3; }
  .lang { order: 4; margin-right: 8px; }
}
/* On phones the two-row bar would cover too much of the screen: it scrolls away. */
@media (max-width: 640px) {
  .top { position: static; padding: 12px 12px 0; }
  html { scroll-padding-top: 16px; }
}

/* The mark (logo): ring in the text colour, tail and prompt in the accent. */
.mark { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark .ring { stroke: var(--ink); stroke-width: 14; }
.mark .tail { stroke: var(--accent); stroke-width: 14; }
.mark .prompt { stroke: var(--accent); stroke-width: 10; }
/* Optical size for 32 px and below, as in the app icon. */
.mark.small .ring, .mark.small .tail { stroke-width: 18; }
.mark.small .prompt { stroke-width: 14; }

/* Style switcher: one swatch per M14 style, pressed = the one in use. */
.styles { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(var(--surface-rgb) / 0.5); border: 1px solid var(--ctl-edge); }
.styles[hidden] { display: none; }
.styles button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid var(--surface);
  border-radius: 50%;
  outline: 1px solid var(--ctl-edge);
  outline-offset: 0;
  cursor: pointer;
}
.styles button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.styles button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.styles [data-pick="b"] { background: #0f7b72; }
.styles [data-pick="a"] { background: linear-gradient(135deg, #0b0e12 50%, #3fb8a9 50%); }
.styles [data-pick="c"] { background: linear-gradient(135deg, #14110c 50%, #e0a43c 50%); }
.styles [data-pick="rosa"] { background: #c2477a; }

/* Landing: hero ---------------------------------------------------------------- */
.hero { padding-block: 96px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.news { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 14px; text-decoration: none; }
.news b { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 500; font-size: 13px; }
.display { margin: 0; max-width: 960px; font-size: clamp(2.5rem, 6.5vw, 5rem); line-height: 1; font-weight: 600; letter-spacing: -0.05em; }
.lede { margin: 0; max-width: 620px; font-size: 1.25rem; color: var(--dim); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--dim); }
@media (max-width: 640px) { .hero { padding-block: 56px 32px; } .lede { font-size: 1.1rem; } }

/* App mocks (hero window and editor). Decorative: each has a text alternative. */
.frame { position: relative; border-radius: 22px; padding: 10px; }
.screen { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; text-align: left; }
.app-shot { padding-block: 16px 120px; }
.app-shot .screen { height: 500px; }
.titlebar { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.titlebar b { color: var(--ink); font-weight: 600; }
.prod { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.rows { font-family: var(--mono); font-size: 12px; }
.rows > div { display: grid; grid-template-columns: 70px 1.6fr 1fr 1fr 0.6fr; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.rows > .head { color: var(--dim); }
.rows > .on { background: var(--soft); }
.rows .r { text-align: right; padding-right: 16px; }
.rows .name { font-family: var(--font); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .id { color: var(--dim); }
.palette { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); border-radius: 18px; padding: 8px; }
.palette .q { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 15px; }
.palette .q svg { stroke: var(--dim); fill: none; stroke-width: 2; flex-shrink: 0; }
.caret { width: 2px; height: 18px; background: var(--accent); }
.palette .q .key { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.palette hr { height: 1px; margin: 0 8px 6px; border: 0; background: var(--line); }
.palette .item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; }
.palette .item.on { background: var(--soft); }
.palette .item span:last-child { color: var(--dim); }
.toast { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 760px) {
  .rows > div { grid-template-columns: 52px 1.6fr 1fr; }
  .rows .opt { display: none; }
  .app-shot { padding-bottom: 72px; }
  .app-shot .screen { height: 440px; }
  .toast { left: 12px; right: 12px; bottom: 12px; }
}

/* Sections ---------------------------------------------------------------- */
.section { padding-bottom: 120px; display: flex; flex-direction: column; gap: 32px; }
.title { margin: 0; max-width: 760px; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; }
.eyebrow, .copy .eyebrow, .card .eyebrow, .page-head .eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.intro p { margin: 0; color: var(--dim); }
@media (max-width: 640px) { .section { padding-bottom: 80px; } }

/* "A SQL editor that understands": copy + editor mock side by side. */
.split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > .copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.split > .frame { flex: 1 1 520px; min-width: 0; }
.copy p { margin: 0; color: var(--dim); font-size: 1.1rem; }
.dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.filebar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.filebar span { color: var(--dim); }
.code { margin: 0; padding: 12px 0 140px; overflow: hidden; font-size: clamp(11px, 3vw, 13px); line-height: 1.85; }
.code > span { display: block; white-space: pre; }
.code i { display: inline-block; width: 40px; padding-right: 14px; text-align: right; font-style: normal; color: var(--dim); }
.code b { font-weight: 400; color: var(--kw); }
.code u { text-decoration: underline wavy var(--danger); text-underline-offset: 4px; }
.code .caret { display: inline-block; height: 1.2em; vertical-align: middle; }
.complete { position: absolute; left: 150px; top: 238px; width: 290px; border-radius: 14px; padding: 6px; font-size: 13px; }
.complete div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 9px; }
.complete div:first-child { background: var(--soft); }
.complete code { font-size: 13px; }
.complete span { color: var(--dim); }
.diag { position: absolute; right: 14px; bottom: 14px; max-width: 300px; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
@media (max-width: 640px) {
  .code { padding-bottom: 12px; }
  .complete, .diag { position: static; width: auto; max-width: none; margin: 0 12px 12px; }
  .split { gap: 32px; }
  .split > .frame { flex-basis: 100%; }
  .split > .copy { flex-basis: 100%; }
}

/* Cards: safety, engines, features. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.card { padding: 24px; border-radius: 22px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card .eyebrow { font-size: 12px; }
.cards.c240 { --min: 240px; }
.cards.c300 { --min: 300px; }
.engines { position: relative; }
.engines > :not(.big-mark) { position: relative; }
.big-mark { position: absolute; right: 0; top: -60px; width: min(480px, 42vw); height: auto; opacity: 0.16; pointer-events: none; }
.engines .intro { max-width: 600px; }
@media (max-width: 860px) { .big-mark { display: none; } }
.big-mark .ring { stroke: var(--accent); }

/* iPhone and MCP. */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; padding-bottom: 120px; }
.duo .card { padding: 32px; border-radius: 26px; gap: 14px; }
.duo h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; }
.duo .card p { font-size: 16px; }
.cmd { display: block; padding: 12px 14px; border-radius: 12px; background: rgb(var(--surface-rgb) / 0.6); border: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .duo { padding-bottom: 80px; } .duo .card { padding: 24px; } }

/* Comparison. */
.table-box { overflow-x: auto; border-radius: 22px; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { padding-block: 16px; font-size: 14px; font-weight: 500; color: var(--dim); }
.compare tbody th { font-weight: 500; }
.compare tbody td { color: var(--dim); }
.compare tr:last-child > * { border-bottom: 0; }
.compare .q { background: rgb(var(--accent-rgb) / var(--a-wash)); color: var(--ink); font-weight: 600; }
.note { margin: 0; max-width: 820px; font-size: 14px; color: var(--dim); }
.note a, .card a, .policy a, .prose a { color: var(--accent-text); text-underline-offset: 3px; }

/* Downloads. */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.dl { padding: 26px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px; }
.dl h3 { margin: 0; font-size: 22px; font-weight: 600; }
.dl p { margin: 0; flex-grow: 1; color: var(--dim); font-size: 15px; }
.dl .btn { background: rgb(var(--surface-rgb) / var(--a-strong)); color: var(--ink); border-color: var(--ctl-edge); }
.dl .file { font-family: var(--mono); font-size: 13px; color: var(--dim); overflow-wrap: anywhere; }
.dl.is-detected { background: linear-gradient(rgb(var(--accent-rgb) / var(--a-detected)), rgb(var(--accent-rgb) / var(--a-detected))), rgb(var(--surface-rgb) / var(--a-glass)); border-color: rgb(var(--accent-rgb) / 0.6); }
.dl.is-detected .btn { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* Footer. */
.foot { padding: 0 16px 24px; }
.foot .inner { max-width: 1120px; margin: 0 auto; padding: 18px 24px; border-radius: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 14px; color: var(--dim); }
.foot .inner > b { color: var(--ink); font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.foot a { text-underline-offset: 3px; }

/* Long-form pages (manual and privacy) -------------------------------------- */
.page-head { padding-block: 72px 32px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; }
.page-head p { margin: 0; max-width: 720px; color: var(--dim); font-size: 1.15rem; }
.prose { font-size: 17px; }
.prose h2 { margin: 56px 0 14px; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.prose h3 { margin: 32px 0 10px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--dim); }
.prose figure { margin: 24px 0; }
.prose figure img { display: block; border-radius: 14px; border: 1px solid var(--line); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--dim); }
.prose figure.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose figure.shots figcaption { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 640px) { .prose figure.shots { grid-template-columns: 1fr; } }
.prose .callout { margin: 18px 0; padding: 16px 20px; border-radius: 18px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout.warn { border-left: 4px solid var(--danger); }
.prose section { scroll-margin-top: 104px; }
.prose section > h2:first-child { margin-top: 0; padding-top: 48px; }
.ref-box { overflow-x: auto; margin: 18px 0; border-radius: 18px; }
.ref { width: 100%; border-collapse: collapse; font-size: 15px; }
.ref th, .ref td { padding: 10px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ref thead th { font-weight: 500; color: var(--dim); }
.ref tr:last-child > * { border-bottom: 0; }
.ref .k { white-space: nowrap; font-weight: 500; }

/* Manual: sticky contents on wide screens, a collapsible block on narrow ones. */
.manual { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 104px; max-height: calc(100vh - 124px); overflow-y: auto; padding: 18px 14px; border-radius: 22px; font-size: 15px; }
.toc summary { cursor: pointer; font-weight: 600; padding: 4px 6px; list-style-position: inside; }
.toc ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li a { display: block; padding: 6px 8px; border-radius: 10px; color: var(--dim); text-decoration: none; }
.toc li a:hover { color: var(--ink); background: rgb(var(--accent-rgb) / var(--a-wash)); }
.toc li a[aria-current] { color: var(--ink); background: var(--soft); }
@media (min-width: 961px) { .toc summary { pointer-events: none; list-style: none; } .toc summary::-webkit-details-marker { display: none; } }
@media (max-width: 960px) {
  .manual { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .toc { position: static; max-height: none; }
}
.policy { max-width: 780px; padding-bottom: 96px; }
.policy .summary { margin: 0 0 32px; padding: 22px 26px; border-radius: 22px; font-size: 18px; }
