/* brreg public site — design layer over vendored Pico 2.1.1 and anav.
   Tokens are droide "UI Visual Standards" (dark first, light follows
   prefers-color-scheme), the same palette as /admin. Sizes are px so the
   15 px floor is checkable (badges 14 px, the documented exception).
   Mobile first; no web fonts beyond the two vendored faces; no inline styles
   in templates. Font URLs are rewritten to hashed ones at startup. */

/* chrome:begin — the rules between these markers are also served as chrome.css, the site chrome on pages the store and connector libraries render */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2?h=b6511d71) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: optional;
  src: url(/fonts/jetbrains-mono-latin.woff2?h=b6511d71) format("woff2"); }

:root {
  --bg: #0c1014; --bg-card: #111518; --bg-surface: #161b22; --bg-hover: #1c2428;
  --text: #e8edf2; --text-bright: #ffffff; --text-subtle: #8a9aa8; --text-quiet: #aebbc7;
  --border: #1c2428; --border-bright: #2a3640;
  --blue: #818cf8; --orange: #f59e0b; --gold: #daa04a; --green: #22c55e;
  --red: #f85149; --cyan: #22d3ee; --pink: #f472b6; --purple: #a78bfa;
  --on-accent: #0c1014;
  --glow-blue: rgba(129, 140, 248, 0.16); --glow-cyan: rgba(34, 211, 238, 0.10); --glow-gold: rgba(218, 160, 74, 0.10);
  --grid-line: rgba(138, 154, 168, 0.07);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
  --radius: 12px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
/* chrome:end — the store and connector pages are dark (brreg's Lighthouse
   branding), so their chrome keeps the dark tokens in both schemes. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9; --bg-card: #ffffff; --bg-surface: #eef1f4; --bg-hover: #e4e8ee;
    --text: #141a21; --text-bright: #05080b; --text-subtle: #4d5a67; --text-quiet: #37424d;
    --border: #e1e5ea; --border-bright: #c9d0d8;
    --blue: #4f46e5; --orange: #9a4a06; --gold: #8a5d0b; --green: #137333;
    --red: #b42318; --cyan: #0e7490; --pink: #be185d; --purple: #6d28d9;
    --on-accent: #ffffff;
    --glow-blue: rgba(79, 70, 229, 0.10); --glow-cyan: rgba(14, 116, 144, 0.07); --glow-gold: rgba(138, 93, 11, 0.06);
    --grid-line: rgba(20, 26, 33, 0.05);
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 32px -20px rgba(16, 24, 40, 0.28);
    color-scheme: light;
  }
}


/* Pico mapped onto the tokens; (0,2,1) outranks both Pico theme blocks. */
html:root:not([data-theme]) {
  --pico-font-family: var(--font-sans); --pico-font-family-sans-serif: var(--font-sans); --pico-font-family-monospace: var(--font-mono);
  --pico-font-size: 17px; --pico-line-height: 1.6; --pico-border-radius: 8px; --pico-spacing: 16px;
  --pico-typography-spacing-vertical: 16px; --pico-block-spacing-vertical: 24px; --pico-block-spacing-horizontal: 24px;
  --pico-background-color: var(--bg); --pico-color: var(--text); --pico-muted-color: var(--text-subtle); --pico-muted-border-color: var(--border);
  --pico-primary: var(--blue); --pico-primary-background: var(--blue); --pico-primary-border: var(--blue); --pico-primary-hover: var(--text-bright);
  --pico-primary-underline: color-mix(in srgb, var(--blue) 45%, transparent); --pico-primary-focus: color-mix(in srgb, var(--blue) 35%, transparent);
  --pico-h1-color: var(--text-bright); --pico-h2-color: var(--text-bright); --pico-h3-color: var(--text-bright); --pico-h4-color: var(--text);
  --pico-card-background-color: var(--bg-card); --pico-code-background-color: var(--bg-surface); --pico-code-color: var(--text);
  --pico-table-border-color: var(--border);
}

/* ---- base */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-size: 17px; line-height: 1.6; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-sans); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--text-bright); }
h2 { font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--text-bright); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text-bright); }
h4 { font-size: 17px; font-weight: 600; color: var(--text); }
@media (min-width: 768px) { h1 { font-size: 52px; } h2 { font-size: 34px; } h3 { font-size: 21px; } }
@media (min-width: 1200px) { h1 { font-size: 60px; } }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: 15px; }
code { padding: 2px 7px; border-radius: 6px; background: var(--bg-surface); color: var(--text); overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: none; }
/* chrome:begin */
.muted { color: var(--text-subtle); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 60; padding: 10px 16px; border-radius: 8px; background: var(--blue); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
/* chrome:end */
main { display: block; }
main:focus { outline: none; }

/* chrome:begin */
/* ---- chrome */
.anav { --anav-bg: color-mix(in srgb, var(--bg) 84%, transparent); --anav-fg: var(--text-bright); --anav-accent: var(--blue); --anav-muted: var(--text-subtle);
  --anav-border: var(--border); --anav-font: var(--font-sans); --anav-fs: 16px; --anav-h: 64px; --anav-max: 1200px; }
.anav { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); }
.anav .anav-wrap { padding-inline: var(--gutter); }
.anav .anav-cb { display: none; }
.anav ul, .anav li { margin: 0; padding: 0; list-style: none; }
.anav details, .anav summary { margin: 0; }
.anav summary::after { display: none; }
@media (max-width: 860px) { .anav .anav-burger { display: inline-flex; width: 44px; height: 44px; margin: 0; } }
.anav .nav-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--blue); color: var(--on-accent);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.anav .nav-cta:hover { background: var(--text-bright); color: var(--bg); }
@media (max-width: 480px) { .anav .nav-cta { display: none; } }

.attribution { border-top: 1px solid var(--border); background: var(--bg-card); }
.attribution-row { display: flex; gap: 14px; align-items: flex-start; padding-block: 20px; font-size: 15px; color: var(--text-quiet); }
.attribution-row .icon { color: var(--green); margin-top: 2px; }
.attribution-row a { white-space: normal; }
.anav-footer { --anav-footer-fg:var(--text); --anav-footer-bg:var(--bg); }
/* Tap targets the libraries leave short of 44 px (anav's language menu and
   account link, the store's card and back links). */
.anav .anav-langbtn, .anav .anav-langitem, .anav .nav-account { min-height: 44px; display: flex; align-items: center; }
.anav .anav-langitem { padding-block: 0; }

/* chrome:end */

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--on-accent); }
.btn-primary:hover { background: var(--text-bright); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text-bright); border-color: var(--border-bright); }
.btn-ghost:hover { border-color: var(--blue); color: var(--text-bright); }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* One confident action on a phone: full width, thumb-sized, never a row of
   three half-width buttons of equal weight. */
@media (max-width: 560px) { .actions { display: grid; gap: 10px; } .actions .btn { width: 100%; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--glow-cyan); }
.lede { font-size: 19px; line-height: 1.6; color: var(--text-quiet); max-width: 62ch; }
@media (min-width: 768px) { .lede { font-size: 21px; } }

/* ---- sections */
.section { padding-block: 64px; }
@media (min-width: 768px) { .section { padding-block: 96px; } }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.section-head p { color: var(--text-quiet); font-size: 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--border-bright); color: var(--text-quiet); background: var(--bg-surface); }

/* ---- hero */
.hero { position: relative; overflow: hidden; padding-block: 36px 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--glow-blue), transparent 70%),
    radial-gradient(700px 380px at -10% 110%, var(--glow-cyan), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 44px 44px; }
@media (min-width: 768px) { .hero { padding-block: 88px 104px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }
.hero h1 { margin-top: 14px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 16px; }
.endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding: 12px 12px 12px 16px; border: 1px solid var(--border-bright);
  border-radius: 12px; background: color-mix(in srgb, var(--bg-card) 88%, transparent); max-width: 560px; }
.endpoint-label { font-size: 14px; font-weight: 600; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .06em; }
.endpoint code { flex: 1 1 240px; background: transparent; padding: 0; font-size: 15px; color: var(--text-bright); overflow-wrap: anywhere; }
.copy-btn { min-height: 36px; padding: 0 14px; margin: 0; width: auto; border-radius: 8px; border: 1px solid var(--border-bright); background: var(--bg-surface); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--blue); color: var(--text-bright); }
.copy-btn[data-copied] { border-color: var(--green); color: var(--green); }
@media (max-width: 560px) { .endpoint { padding: 14px; } .endpoint code { flex-basis: 100%; } .copy-btn { min-height: 44px; width: 100%; } }

/* ---- the buy block: price, one action, the reassurance under it
   (house rule: price is visible on the surface that sells, one primary CTA,
   and what removes the risk sits directly beneath it). */
.audience { margin-top: 12px; font-size: 16px; color: var(--text-subtle); max-width: 52ch; }
.buy { margin-top: 26px; display: grid; gap: 14px; justify-items: start; max-width: 520px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-from { font-size: 16px; font-weight: 600; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .06em; }
.price-amount { font-size: 34px; font-weight: 700; line-height: 1; color: var(--text-bright); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-per { font-size: 17px; font-weight: 600; color: var(--text); }
.price-vat { font-size: 15px; color: var(--text-subtle); }
.buy .btn { width: 100%; }
@media (min-width: 560px) { .buy .btn { width: auto; min-width: 260px; } }
.reassure { font-size: 15px; line-height: 1.55; color: var(--text-subtle); max-width: 46ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: 16px; font-weight: 600; }
.hero-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- the trust strip under the hero: the four facts a buyer checks. */
.trustbar { display: grid; gap: 10px; padding: 0; margin: 36px 0 0; list-style: none; }
@media (min-width: 640px) { .trustbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .trustbar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.trustbar li { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; list-style: none; border: 1px solid var(--border); border-radius: 10px;
  background: color-mix(in srgb, var(--bg-card) 80%, transparent); font-size: 15px; line-height: 1.4; color: var(--text-quiet); }
.trustbar .icon { width: 18px; height: 18px; color: var(--green); }

/* ---- the phone action bar: the buy action always within a thumb's reach.
   No script: it is displayed only below 768 px and <body> reserves its height,
   so it covers nothing and shifts nothing. */
.thumbbar { display: none; }
@media (max-width: 767px) {
  .thumbbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-bright); background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); }
  .thumbbar-in { display: flex; align-items: center; gap: 12px; }
  .thumbbar-price { display: grid; line-height: 1.2; }
  .thumbbar-price .price-amount { font-size: 20px; }
  .thumbbar-price .price-per { font-size: 15px; font-weight: 400; color: var(--text-subtle); }
  .thumbbar .btn { flex: 1; min-height: 48px; }
  body:has(.thumbbar) { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* the conversation card */
.chat { border: 1px solid var(--border-bright); border-radius: 16px; background: var(--bg-card); box-shadow: var(--shadow); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text-subtle); }
.chat-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-bright); }
.chat-bar i:nth-child(1) { background: #f85149; } .chat-bar i:nth-child(2) { background: #f59e0b; } .chat-bar i:nth-child(3) { background: #22c55e; }
.chat-bar span { margin-left: 8px; }
.chat-body { display: grid; gap: 14px; padding: 20px; }
.msg { max-width: 92%; padding: 12px 16px; border-radius: 14px; font-size: 16px; line-height: 1.5; }
.msg-user { justify-self: end; background: var(--blue); color: var(--on-accent); border-bottom-right-radius: 4px; font-weight: 500; }
.msg-tool { justify-self: start; display: grid; gap: 8px; width: 100%; max-width: 100%; background: var(--bg-surface); border: 1px dashed var(--border-bright); font-size: 15px; }
.msg-tool .tool-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-subtle); }
.msg-assistant { justify-self: start; background: var(--bg-hover); color: var(--text); border-bottom-left-radius: 4px; }
.fields { display: flex; flex-wrap: wrap; gap: 6px; }
.fields span { font-family: var(--font-mono); font-size: 14px; padding: 2px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--text-quiet); }
.tool { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; padding: 3px 10px; border-radius: 999px;
  color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent); white-space: nowrap; }

/* ---- feature cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card);
  transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.card p { color: var(--text-quiet); font-size: 16px; }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-surface); border: 1px solid var(--border-bright); }
.accent-blue { color: var(--blue); } .accent-cyan { color: var(--cyan); } .accent-gold { color: var(--gold); }
.accent-green { color: var(--green); } .accent-pink { color: var(--pink); } .accent-purple { color: var(--purple); } .accent-orange { color: var(--orange); }
.card.edge-blue { border-left: 3px solid var(--blue); } .card.edge-cyan { border-left: 3px solid var(--cyan); } .card.edge-gold { border-left: 3px solid var(--gold); }
.card.edge-green { border-left: 3px solid var(--green); } .card.edge-pink { border-left: 3px solid var(--pink); } .card.edge-purple { border-left: 3px solid var(--purple); }
.card-note { font-size: 15px; color: var(--text-subtle); }
/* The positioning cards: what a buyer would otherwise do, and what changes. */
.compare .card { gap: 12px; padding-top: 26px; border-top: 3px solid var(--border-bright); }
.compare .card h3 { font-size: 19px; color: var(--text); }
.compare .card:first-child { border-top-color: var(--cyan); }
.compare .card:nth-child(2) { border-top-color: var(--blue); }
.compare .card:nth-child(3) { border-top-color: var(--gold); }

/* ---- steps */
.steps { display: grid; gap: 16px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); list-style: none; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-weight: 700; font-size: 17px; color: var(--on-accent); background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.steps li p { color: var(--text-quiet); font-size: 16px; }
.steps li p > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.steps code { font-size: 15px; overflow-wrap: anywhere; }

/* ---- examples */
.examples { display: grid; gap: 16px; }
@media (min-width: 900px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.example { display: grid; gap: 14px; align-content: start; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.example .prompt { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; font-weight: 600; color: var(--text-bright); line-height: 1.4; }
.example .prompt .icon { color: var(--blue); margin-top: 2px; }
.example .does { color: var(--text-quiet); font-size: 16px; }
.example .tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.example .tools .arrow { color: var(--text-subtle); }

/* ---- audience + trust */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; margin: 0; border-radius: 999px; border: 1px solid var(--border-bright); background: var(--bg-card); font-size: 16px; font-weight: 500; list-style: none; }
.who { display: grid; gap: 16px; }
@media (min-width: 640px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .who { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust { background: linear-gradient(180deg, var(--bg-card), var(--bg)); }
.trust-list { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 768px) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; margin: 0; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); list-style: none; }
.trust-list li p { color: var(--text-quiet); font-size: 16px; margin-top: 4px; }

/* ---- faq */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--text-bright); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
/* The chevron stays on the question's centre line however the question wraps. */
.faq summary::after { float: none; flex: none; margin: 0 0 0 auto; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding: 16px 22px 20px; color: var(--text-quiet); font-size: 17px; }

/* ---- cta band */
.cta-band { padding: 40px 28px; border-radius: 20px; border: 1px solid var(--border-bright); text-align: center;
  background: radial-gradient(600px 240px at 50% 0%, var(--glow-blue), transparent 70%), var(--bg-card); }
.cta-band h2 { text-wrap: balance; }
.cta-band p { margin: 14px auto 0; max-width: 60ch; color: var(--text-quiet); }
.cta-band .actions { justify-content: center; }
.cta-band .price { justify-content: center; margin-top: 22px; }
.cta-band .hero-links { justify-content: center; margin-top: 10px; }

/* ---- docs */
.page-hero { padding-block: 48px 40px; border-bottom: 1px solid var(--border);
  background: radial-gradient(700px 300px at 90% -20%, var(--glow-blue), transparent 70%); }
@media (min-width: 768px) { .page-hero { padding-block: 72px 56px; } }
.page-hero h1 { margin-top: 14px; }
.page-hero .lede { margin-top: 16px; }
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 80px; }
@media (min-width: 1024px) { .docs { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
nav.toc { display: block; align-self: start; }
nav.toc ol { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; align-items: stretch; margin: 0; }
@media (min-width: 1024px) { nav.toc ol { display: grid; gap: 2px; } }
nav.toc li { padding: 0; }
article.card, article.example, article.tool-card { margin: 0; box-shadow: none; }
.tool-card ul.args { padding: 0; padding-inline-start: 0; }
nav.toc { display: block; }
.toc ol { min-width: 0; }
@media (min-width: 1024px) { .toc { position: sticky; top: 88px; } }
.toc p { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 10px; }
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .toc ol { display: grid; gap: 2px; } }
.toc li { margin: 0; list-style: none; }
.toc a { display: block; margin: 0; padding: 8px 12px; border-radius: 8px; color: var(--text-quiet); text-decoration: none; font-size: 16px; border: 1px solid var(--border); }
@media (min-width: 1024px) { .toc a { border-color: transparent; } }
.toc a:hover { color: var(--text-bright); background: var(--bg-surface); }
.doc-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-section > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 28px; }
.doc-section > h2 .icon { width: 26px; height: 26px; }
.doc-section > p, .doc-section > ul > li, .doc-section > ol > li { color: var(--text-quiet); }
/* A comfortable measure. Body prose on a wide screen ran to ~105 characters
   a line (docs) and ~127 (the library's product page); 66ch lands near the
   45–75 character range reading research settles on. Cards and the hero are
   already narrow enough to need no rule. */
.doc-section > p, .doc-section > ul, .doc-section > ol, .doc-section > h3, .prose-card > p { max-width: 66ch; }
.doc-section > p + p { margin-top: 12px; }
.doc-section ul, .doc-section ol { margin: 14px 0 0; padding-left: 22px; }
.doc-section li { margin-bottom: 8px; }
.doc-section h3 { margin: 28px 0 10px; }
.prose-card { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.prose-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.prose-card ol, .prose-card ul { margin: 0; padding-left: 22px; color: var(--text-quiet); }
.prose-card p { color: var(--text-quiet); }
.codeblock { position: relative; display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding: 14px 14px 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border-bright); }
.codeblock code { flex: 1 1 260px; padding: 0; background: transparent; color: var(--text-bright); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.kv { display: grid; gap: 0; margin: 16px 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden auto; }
.kv > div { display: grid; gap: 4px; padding: 14px 18px; background: var(--bg-card); }
.kv > div + div { border-top: 1px solid var(--border); }
@media (min-width: 700px) { .kv > div { grid-template-columns: 220px 1fr; gap: 20px; } }
.kv dt { font-weight: 600; color: var(--text-bright); font-size: 16px; }
.kv dd { margin: 0; color: var(--text-quiet); font-size: 16px; }
.tool-list { display: grid; gap: 14px; margin-top: 20px; }
.tool-card { display: grid; gap: 10px; padding: 20px 22px; border: 1px solid var(--border); border-left: 3px solid var(--cyan); border-radius: var(--radius); background: var(--bg-card); }
.tool-card h3 { margin: 0; font-family: var(--font-mono); font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--text-bright); overflow-wrap: anywhere; }
.tool-card > p { color: var(--text-quiet); font-size: 16px; max-width: 66ch; }
.args { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.args li { margin: 0; list-style: none; font-family: var(--font-mono); font-size: 14px; padding: 2px 9px; border-radius: 6px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-quiet); }
.args li.req { border-color: color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold); }
.tool-card details { margin: 0; }
.tool-card summary { font-size: 15px; color: var(--blue); cursor: pointer; }
.tool-card details p { margin-top: 10px; font-size: 15px; color: var(--text-quiet); line-height: 1.6; overflow-wrap: anywhere; }
.callout { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); background: color-mix(in srgb, var(--gold) 8%, var(--bg-card)); color: var(--text); font-size: 16px; }
.callout .icon { color: var(--gold); }
.callout.info { border-color: color-mix(in srgb, var(--blue) 40%, transparent); background: color-mix(in srgb, var(--blue) 8%, var(--bg-card)); }
.callout.info .icon { color: var(--blue); }

/* ---- 404 */
.notfound { padding-block: 96px 120px; }
.notfound .eyebrow { color: var(--gold); }
.notfound h1 { margin-top: 12px; }
.notfound .lede { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .btn { transition: none; } .card:hover, .btn:hover { transform: none; } }

/* chrome:begin */
/* ---- CJK typography (translation review 2026-09-15) */
/* Korean and Chinese punctuation and text use system CJK fonts before DM Sans
   (DM Sans has no CJK glyphs and draws "——" as two Latin dashes). */
:lang(ko) { --font-sans: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "DM Sans", system-ui, sans-serif; }
:lang(zh) { --font-sans: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Hiragino Sans GB", "DM Sans", system-ui, sans-serif; }
/* Korean breaks between words, never inside a syllable block. */
:lang(ko) body, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) p, :lang(ko) li, :lang(ko) dd, :lang(ko) .card { word-break: keep-all; overflow-wrap: anywhere; }
/* Chinese: strict line breaking; headings balance their lines. (keep-all is
   wrong for Chinese: unspaced text becomes one unbreakable run.) */
:lang(zh) body { line-break: strict; }
:lang(zh) h1, :lang(zh) h2 { text-wrap: balance; }
/* site.js wraps each Chinese word of a heading (Intl.Segmenter) in .nw. */
.nw { white-space: nowrap; }
/* chrome:end */

/* ---- customer plane: account, legal pages */
.anav .nav-account { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-right: 6px; color: var(--text-bright); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.anav .nav-account:hover { color: var(--blue); }
.account, .legal { padding-block: 40px 80px; }
.account-links { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.account-links li { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.account-links a { font-weight: 600; font-size: 18px; }
.legal-version { font-size: 15px; margin-bottom: 20px; }
.legal-body { display: grid; gap: 14px; }
.legal-body p, .legal-body li { max-width: 66ch; }
.legal-body h2 { font-size: 26px; margin-top: 28px; } .legal-body h3 { font-size: 20px; margin-top: 16px; } .legal-body h4 { margin-top: 8px; }
.legal-body ul, .legal-body ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal-other { margin-top: 32px; }
.legal-other a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
/* chrome:begin */
/* The price's VAT basis on store pages (storefilter.go). */
.lh-price .brreg-vat { display: block; margin: .35rem 0 0; font: 500 15px/1.35 var(--font-sans); color: var(--text-quiet); letter-spacing: 0; }
.brreg-card-pay { margin: 0 0 1rem; }
/* Five plans across one row leave each card ~200 px: the figure must not break
   inside "kr" or "/mnd". */
@media (min-width: 1180px) { .lh-featured-5 .lh-price { font-size: 1.35rem; } }
.lh-price { overflow-wrap: normal; }
.lh-price > small:not(.brreg-vat) { white-space: nowrap; }
.lh-foot-lang { display: inline-flex; flex-wrap: wrap; gap: .4rem 1rem; }

/* ---- the library's plan cards and product page, on a phone (owner ruling
   2026-09-18: readable and tappable at 375 px). ginstore owns the markup and
   the look — the mono price is the fleet's store face and is left alone; these
   are only the accessibility floors brreg holds everywhere:
     · nothing below 15 px,
     · nothing tappable below 44 px,
     · no input below 16 px, which is what makes iOS zoom the page on focus.
   Selectors name the library's own classes, never `p`, so a rule can never
   reach the price element by accident. */
.lh-price > small:not(.brreg-vat) { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-quiet); }
.lh-summary, .lh-label, .lh-trust, .lh-recommend, .lh-stripe-badge, .lh-back, .lh-foot-browse, .lh-card-link { font-size: 15px; }
.lh-recommend, .lh-label, .lh-trust { letter-spacing: .06em; }
.lh-card-link, .lh-back, .lh-foot-browse, .lh-stripe-badge { display: inline-flex; align-items: center; min-height: 44px; }
/* The monthly/yearly switch is the first thing a buyer touches on the store
   and ginstore renders it 34 px tall (measured live, 2026-09-18, in all five
   languages). */
.lh-periods .lh-period { display: inline-flex; align-items: center; min-height: 44px; }
.lh-foot-lang { gap: .4rem .75rem; }
main.container details > summary { min-height: 44px; padding-block: 10px; font-size: 16px; }
main.container :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) { font-size: 16px; }
/* anav sets these in em off the footer's own size and lands at 9.8 px for a
   column heading and 12.6 px for the identity line. Its selectors carry an
   element (h2./p.), so ours must too. */
.lh-foot-browse { padding-inline: 8px; }
.lh-unlocks li { font-size: 15px; }
main.container .lh-terms a { display: inline-block; padding-block: 12px; }
/* ginconnect's connect card: its eyebrow, key label and copy button are set in
   em and land at 11 px with a 23 px button. Same floors as everywhere else. */
.cx-eyebrow, .cx-kv .k, .cx-copy { font-size: 15px; }
button.cx-copy { min-height: 44px; padding-inline: 14px; }
/* ginconnect floats the copy button over the top-right of the code block. At
   44 px on a 375 px screen that covers the command it copies, so on a phone it
   drops below the block and spans it. */
@media (max-width: 560px) {
  .cx-codewrap { display: flex; flex-direction: column; }
  .cx-codewrap .cx-copy { position: static; order: 2; width: 100%; margin: 10px 0 0; }
}
main.container form input[type="checkbox"] { width: 24px; height: 24px; }
/* chrome:end */
/* chrome:begin */
/* ---- store form pages: quote, company details, confirm (spec public-site-and-store).
   ginstore renders these as a bare <article> in a 78rem container with Pico's
   full-width controls; storefilter.go stamps the route on <body data-store-page>
   so they get one centred card. Only generic elements are styled (label, input,
   select, textarea, small, [role=alert], [role=status]), so a field the library
   adds keeps the same look. */
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) main.container { max-width: calc(620px + 2 * var(--gutter)); padding-inline: var(--gutter); padding-block: 32px 72px; }
body:is([data-store-page="orders"], [data-store-page="cart"], [data-store-page="success"]) main.container { max-width: calc(960px + 2 * var(--gutter)); padding-inline: var(--gutter); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) main.container > article {
  max-width: none; margin: 0 0 16px; padding: 36px 36px 32px; border: 1px solid var(--border-bright); border-radius: 16px; background: var(--bg-card); box-shadow: var(--shadow); color: var(--text); }
@media (max-width: 560px) { body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) main.container > article { padding: 24px 18px; border-radius: 14px; } }
body[data-store-page] main.container > article hgroup { margin: 0 0 24px; }
body[data-store-page] main.container > article h1 { margin: 0; font: 700 32px/1.15 var(--font-sans); letter-spacing: -0.02em; color: var(--text-bright); }
@media (max-width: 560px) { body[data-store-page] main.container > article h1 { font-size: 26px; } }
body[data-store-page] main.container > article hgroup p { margin: 8px 0 0; font: 400 16px/1.5 var(--font-sans); color: var(--text-quiet); }
body[data-store-page] main.container > article hgroup p strong { color: var(--text); font-weight: 600; }
body[data-store-page] main.container > article > p:not(.lh-price, .lh-unavail, [role="alert"]) { font-size: 16px; line-height: 1.55; color: var(--text-quiet); margin: 0 0 20px; }
body[data-store-page] .lh-quote-intro { margin: 0 0 28px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 7%, var(--bg-card)); color: var(--text-quiet); font-size: 15px; line-height: 1.55; }
body[data-store-page] .lh-quote-intro p { margin: 0; font-size: 15px; } body[data-store-page] .lh-quote-intro p + p { margin-top: 8px; }
body[data-store-page] main.container > article form { display: grid; gap: 20px; margin: 0; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form :is(.lh-biz-group, .lh-quote-group):not([hidden]) { display: grid; gap: 20px; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-quote-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-subtle); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form label:has(> input:not([type="checkbox"], [type="radio"], [type="hidden"]), > select, > textarea) { display: grid; gap: 7px; margin: 0; font: 600 15px/1.35 var(--font-sans); color: var(--text); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
  width: 100%; min-height: 48px; margin: 0; padding: 11px 14px; font: 400 16px/1.4 var(--font-sans); color: var(--text-bright); background-color: var(--bg);
  border: 1px solid var(--border-bright); border-radius: 10px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form select { padding-inline-end: 40px; } body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form select:has(option[value=""]:checked) { color: var(--text-subtle); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form textarea { min-height: 128px; resize: vertical; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form :is(input, select, textarea)::placeholder { color: var(--text-subtle); opacity: 1; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form :is(input, select, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--red); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form :is(input, select, textarea)[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 30%, transparent); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form label small { display: block; margin: 0; font: 400 15px/1.45 var(--font-sans); color: var(--text-subtle); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form [aria-invalid="true"] ~ small { color: var(--red); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form :is(output, [role="status"]) { display: block; margin: 0; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); border-radius: 10px;
  background: color-mix(in srgb, var(--green) 9%, var(--bg-card)); color: var(--text); font: 500 15px/1.45 var(--font-sans); }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-quote-notice { border-color: var(--border-bright); background: color-mix(in srgb, var(--text-subtle) 8%, var(--bg-card)); color: var(--text-quiet); font-weight: 400; } body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-quote-notice p { margin: 0; font-size: 15px; line-height: 1.45; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-quote-confirm p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); } body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-quote-confirm p + p { margin-top: 4px; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-quote-confirm strong { color: var(--text-bright); font-size: 17px; font-weight: 600; } body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-quote-confirm .lh-quote-note { color: var(--text-quiet); margin-top: 8px; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .brreg-card-pay { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-quiet); } body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .brreg-card-pay strong { color: var(--text); font-weight: 600; }
body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-terms { margin: 0; } body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-terms small { font-size: 15px; } body:is([data-store-page="quote"], [data-store-page="business"], [data-store-page="confirm"]) form .lh-terms label { font-size: 15px; font-weight: 400; color: var(--text); }
body[data-store-page] main.container > article :is(button[type="submit"], a[role="button"]) {
  display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 48px; margin: 4px 0 0; padding: 0 26px; border-radius: 10px;
  font: 600 16px/1 var(--font-sans); text-decoration: none; border: 1px solid var(--blue); background: var(--blue); color: var(--on-accent); box-shadow: none; }
body[data-store-page] main.container > article form button[type="submit"] { justify-self: start; }
body[data-store-page] main.container > article :is(button[type="submit"], a[role="button"]):hover { background: var(--text-bright); border-color: var(--text-bright); color: var(--bg); }
body[data-store-page] main.container > article a[role="button"].outline { background: transparent; border-color: var(--border-bright); color: var(--text-bright); }
body[data-store-page] main.container > article a[role="button"].outline:hover { background: var(--bg-surface); border-color: var(--blue); color: var(--text-bright); }
@media (max-width: 560px) { body[data-store-page] main.container > article :is(button[type="submit"], a[role="button"]) { width: 100%; } body[data-store-page] main.container > article form button[type="submit"] { justify-self: stretch; } }
body[data-store-page] main.container > article:has(> p[role="alert"]), body[data-store-page] .lh-biz-err {
  margin: 0 0 16px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--red) 50%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--red) 11%, var(--bg-card)); box-shadow: none; }
body[data-store-page] main.container > article > p[role="alert"] { margin: 0; font: 500 16px/1.45 var(--font-sans); color: var(--text-bright); }
body[data-store-page] main.container > article > p.lh-unavail { margin: 0 0 24px; padding: 14px 16px; border-radius: 10px; background: var(--bg-surface); border: 1px solid var(--border-bright); color: var(--text); font-size: 16px; }
/* chrome:end */

/* Central FAQ inherits Brreg's typography, colours and native details. */
.afaq-page { max-width: 76rem; margin-inline: auto; }
.afaq-page h1, .afaq-page h2, .afaq-page h3 { color: var(--text-bright); }
.afaq details { border-bottom: 1px solid var(--border); padding-block: 1rem; }
.afaq summary { min-height: 44px; cursor: pointer; }
.afaq a { color: var(--blue); }
