/* ==========================================================================
   Kolos Hetyéssy — site styles
   Plain CSS, no build step. Colours are tokens; dark mode follows the system.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see /assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #f4f4f1;
  --panel: #fbfbf9;
  --panel-2: #efefea;
  --line: #dcdcd5;
  --line-strong: #c4c4bb;
  --text: #15171b;
  --muted: #565c66;
  --faint: #7d838c;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(194, 65, 12, .09);
  --ok: #15803d;
  --bad: #b91c1c;
  --grid: rgba(21, 23, 27, .085);
  --code-key: #9a3412;
  --code-str: #166534;
  --code-num: #1d4ed8;

  --sans: "Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c0f;
    --panel: #101318;
    --panel-2: #151a20;
    --line: #1f252d;
    --line-strong: #2e3640;
    --text: #e6e9ed;
    --muted: #9aa3ae;
    --faint: #6e7782;
    --accent: #ff8a4c;
    --accent-ink: #0a0c0f;
    --accent-soft: rgba(255, 138, 76, .1);
    --ok: #4ade80;
    --bad: #f87171;
    --grid: rgba(230, 233, 237, .07);
    --code-key: #ffb38a;
    --code-str: #86efac;
    --code-num: #93c5fd;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* Engineering-paper dot grid, fading out below the first screen */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background-image: radial-gradient(var(--grid) 1px, transparent 1.2px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
main { flex: 1; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
code, pre { font-family: var(--mono); }
b, strong { font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 8px 12px; background: var(--accent); color: var(--accent-ink); font: 500 14px var(--mono); }
.skip:focus { top: 8px; }

/* Small mono labels used throughout */
.eyebrow, .kind, .status, .io, .sec-head__num, .meta, .site-nav, .brand__role, .btn, .readout, .site-foot__note, .fact__label, .card__go, .specs dt {
  font-family: var(--mono);
}
.eyebrow { font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }
.meta { font-size: 13px; color: var(--faint); }

/* ---------- Page transitions (same-site navigation; skipped with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; animation-timing-function: ease-out; }
  .site-head { view-transition-name: site-head; }
  ::view-transition-group(site-head) { animation-duration: 0s; }
}

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); position: sticky; top: 0; z-index: 5; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand:hover .mark { color: var(--accent); }
.brand__text { display: grid; line-height: 1.2; }
.brand__name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand__role { font-size: 12px; color: var(--faint); }

/* Corner-bracket monogram */
.mark {
  --s: 34px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--s); height: var(--s);
  font: 500 12px/1 var(--mono);
  letter-spacing: .02em;
  transition: color .15s;
}
.mark::before, .mark::after {
  content: ""; position: absolute; width: 9px; height: 9px; border: 0 solid var(--accent);
}
.mark::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.mark::after { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.mark--small { --s: 26px; font-size: 10px; }
.mark--small::before, .mark--small::after { width: 7px; height: 7px; }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; }
.site-nav a { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding-block: 6px; position: relative; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: var(--text); background: var(--panel);
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--soon { border-style: dashed; color: var(--muted); background: transparent; cursor: default; }
.btn--soon:hover { border-color: var(--line-strong); color: var(--muted); }
.btn--soon small { font-size: 11px; color: var(--faint); letter-spacing: .04em; text-transform: none; }

.link-arrow { font-family: var(--mono); font-size: 14px; text-decoration: none; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px 64px; align-items: center; padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); margin-top: 20px; max-width: 14ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 54ch; margin-top: 20px; }
.hero .actions { margin-top: 32px; }

/* ---------- Readout panels (instrument-style figures) ---------- */
.readout {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 13.5px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(0, 0, 0, .35);
}
/* corner registration ticks */
.readout::before, .readout::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--accent); }
.readout::before { top: -5px; left: -5px; border-top-width: 1.5px; border-left-width: 1.5px; }
.readout::after { bottom: -5px; right: -5px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.readout__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.readout__tag { color: var(--faint); text-transform: none; letter-spacing: 0; }
.readout__acct { padding: 14px 18px 4px; color: var(--faint); font-size: 12.5px; }
.readout__rows { margin: 0; padding: 8px 18px 14px; display: grid; }
.readout__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.readout__rows dt { color: var(--muted); }
.readout__rows dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.readout__rows .op { display: inline-block; width: 1.2em; color: var(--accent); }
.readout__sum { border-top: 1px dashed var(--line-strong); margin-top: 4px; padding-top: 10px !important; }
.readout__sum dd { font-weight: 500; }
.readout__verdict { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-2); color: var(--muted); }
.verdict { color: var(--ok); font-weight: 500; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 8px; }
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.readout__foot { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.readout__foot b { color: var(--accent); font-weight: 500; }

/* Technical drawing */
.drawing { display: block; width: 100%; height: auto; padding: 18px 18px 4px; }
.drawing__cut { fill: none; stroke: var(--text); stroke-width: 1.1; }
.drawing__dim line { stroke: var(--faint); stroke-width: .5; }
.drawing__dim text, .drawing__pierce text, .drawing__note { fill: var(--faint); font: 6px var(--mono); }
.drawing__pierce circle { fill: var(--accent); }
.drawing__pierce text { fill: var(--accent); }

/* Column schema */
.cols { padding: 14px 18px; display: grid; gap: 10px; }
.cols__group { line-height: 1.55; color: var(--text); font-size: 12.5px; }
.cols__group b { color: var(--accent); font-weight: 500; }
.cols__label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 5.5vw, 68px); }
.sec-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; align-items: baseline; margin-bottom: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 1px solid var(--line); position: relative; }
.sec-head::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--accent); }
.sec-head__num { font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.sec-head__title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.sec-head__intro { grid-column: 2; color: var(--muted); max-width: 62ch; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.card::before, .card::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--accent); opacity: 0; transition: opacity .15s; }
.card::before { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.card::after { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.card:hover { border-color: var(--line-strong); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card:focus-within { border-color: var(--line-strong); }

.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kind { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.status--plain::before { display: none; }
.card__title { font-size: 1.3rem; }
.card__title a { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; }
.io { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.io__in, .io__out { display: block; }
.io__arrow { color: var(--accent); margin-right: .3em; }
.io--large { font-size: 13.5px; margin-top: 18px; }
.card__text { color: var(--muted); font-size: 15.5px; }
.fact { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.fact__value { font: 500 1.6rem/1.2 var(--mono); letter-spacing: -.02em; color: var(--text); }
.fact__label { font-size: 12px; color: var(--faint); }
.card__go { font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.card:hover .card__go { color: var(--accent); }

/* ---------- Principles ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: p; }
.principles li { padding: 24px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-increment: p; }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font: 12px var(--mono); color: var(--faint); margin-bottom: 18px; }
.principles h3 { font-size: 1.05rem; margin-bottom: 8px; }
.principles p { color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 18px; max-width: 62ch; margin-left: 72px; }
.contact__text { color: var(--muted); font-size: 1.1rem; }
.contact__line { font: 500 clamp(1.15rem, 2.6vw, 1.6rem)/1.3 var(--mono); }
.contact__line a { text-decoration: none; color: var(--accent); border-bottom: 1px solid currentColor; }
.contact__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 14px var(--mono); }
.contact__links a { text-decoration: none; color: var(--muted); }
.pending { color: var(--faint); font-family: var(--mono); font-weight: 400; font-size: .9em; }

/* ---------- Product page ---------- */
.product-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; padding-block: clamp(44px, 7vw, 88px) clamp(24px, 4vw, 48px); }
.product-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-top: 18px; }
.product-hero .actions { margin-top: 28px; }
.notify { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.notify a { color: var(--accent); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 40px; counter-reset: f; }
.feature { padding: 18px 0 22px 44px; border-top: 1px solid var(--line); position: relative; counter-increment: f; }
.feature::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 21px; font: 12px var(--mono); color: var(--accent); }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; }

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 8px 32px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.specs dd { margin: 0; }

.checks, .limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 80ch; }
.checks li, .limits li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 5px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg); }
.limits li::before { content: ""; position: absolute; left: 1px; top: .78em; width: 12px; height: 1.5px; background: var(--accent); }
.checks li strong, .limits li strong, .checks code, .limits code { color: var(--text); }

.privacy-box { border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--panel); padding: 20px 22px; display: grid; gap: 12px; max-width: 80ch; border-radius: 0 var(--radius) var(--radius) 0; }
.footnote { margin-top: 28px; font-size: 13px; color: var(--faint); max-width: 80ch; }

/* ---------- Feedback: report form and contact form ---------- */
.fb { display: grid; gap: 10px; max-width: 640px; }
.fb__form { display: grid; gap: 10px; }
.fb__title { font-weight: 600; font-size: 1.05rem; }
.fb__lead { color: var(--muted); font-size: 14.5px; }
.fb__label { font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.fb input[type="text"], .fb input[type="email"], .fb textarea, .fb select {
  width: 100%; font: 15px/1.5 var(--sans); color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px;
}
.fb textarea { resize: vertical; min-height: 84px; }
.fb select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.fb input:focus, .fb textarea:focus, .fb select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.fb ::placeholder { color: var(--faint); }
.fb__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb__consent { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.fb__fine { font-size: 12.5px; color: var(--faint); }
.fb__fine a { color: var(--accent); }
.fb__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.fb__status { font-size: 14px; color: var(--muted); }
.fb__status--error { color: var(--bad); }
.fb__sent summary { cursor: pointer; font: 12.5px var(--mono); color: var(--muted); }
.fb__sent-list { margin: 8px 0 6px; display: grid; gap: 2px; font: 12px var(--mono); }
.fb__sent-list > div { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 12px; }
.fb__sent-list dt { color: var(--faint); }
.fb__sent-list dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.fb__thanks { border: 1px solid var(--line); border-left: 2px solid var(--ok); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg); padding: 18px 20px; display: grid; gap: 6px; max-width: 640px; outline: none; }
.fb__thanks-title { font-weight: 600; color: var(--ok); }
.fb__thanks p { color: var(--muted); }
.fb__ref { font: 12.5px var(--mono); color: var(--faint) !important; }
.fb--report { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.fb-open { margin-top: 4px; }
.btn--ghost { background: transparent; border-style: dashed; color: var(--muted); }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }
.live__result > .fb-open { margin-top: 14px; }

.contact-form { margin-top: 6px; }
.contact-form__kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form__kinds legend { width: 100%; margin-bottom: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 13px var(--mono); color: var(--muted); transition: border-color .15s, color .15s, background-color .15s; }
.chip:hover span { color: var(--text); }
.chip input:checked + span { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form__praise { display: grid; gap: 10px; }
.contact-form__praise[hidden] { display: none; }
.contact__alt { font-size: 14px; color: var(--faint); }

/* ---------- Product catalogue: groups, filter, related ---------- */
.filter { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); max-width: 760px; }
.filter[hidden] { display: none; }
.filter__input {
  width: 100%; font: 16px/1.5 var(--sans); color: var(--text); background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px;
}
.filter__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.filter__input::placeholder { color: var(--faint); }
.filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font: 500 13px var(--mono); color: var(--muted); background: transparent; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: border-color .15s, color .15s, background-color .15s;
}
.chip-btn:hover { color: var(--text); }
.chip-btn[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.filter__count { font: 12.5px var(--mono); color: var(--faint); min-height: 1.2em; }
.filter__empty { color: var(--muted); padding: 24px 0; }
.filter__empty a { color: var(--accent); }

.pgroups { display: grid; gap: clamp(36px, 5vw, 56px); }
.pgroup[hidden] { display: none; }
.pgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 18px; }
.pgroup__head h2 { font-size: 1.35rem; }
.pgroup__head h2 a { text-decoration: none; }
.pgroup__head h2 a:hover { color: var(--accent); }
.pgroup__head p { color: var(--muted); font-size: 15px; }
.pgroup__count { display: inline-block; margin-left: 8px; font: 12px var(--mono); color: var(--faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.card[hidden] { display: none; }

.section-more { margin-top: 22px; }
.page-foot { margin-top: 32px; }
.sec-head--quiet::before { background: var(--line-strong); }
.sec-head--quiet .sec-head__num { color: var(--faint); }

/* ---------- Tool (keyword) pages ---------- */
.tool-head { padding-top: clamp(44px, 7vw, 80px); margin-bottom: 0; }
.tool-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 12.5px var(--mono); color: var(--muted); }
.tool-facts li { display: inline-flex; align-items: center; gap: 8px; }
.tool-facts li::before { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }
.section--tight { padding-top: clamp(28px, 4vw, 44px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 32px; counter-reset: s; }
.steps li { counter-increment: s; padding: 16px 0 18px; border-top: 1px solid var(--line); color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 12px var(--mono); color: var(--accent); margin-bottom: 8px; }
.steps li strong, .steps li code { color: var(--text); }
.faq { display: grid; max-width: 820px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 500 18px var(--mono); color: var(--accent); }
.faq__item[open] summary::after { content: "−"; }
.faq__a { padding: 0 0 18px; color: var(--muted); max-width: 72ch; }
.faq__a p + p { margin-top: .8em; }
.faq__a a { color: var(--accent); }
.faq__a code { font-size: .88em; color: var(--text); }
.tool-cta { display: grid; gap: 16px; max-width: 72ch; }
.tool-cta p:first-child { color: var(--muted); font-size: 1.05rem; }
.tools-index .pgroup + .pgroup, .page > .pgroup + .pgroup { margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Generic pages & prose ---------- */
.page { padding-block: clamp(44px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.page-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 16px; }
.page-head .meta { margin-top: 14px; }

.prose { max-width: 72ch; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: 14px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.prose :not(pre) > code { font-size: .86em; padding: .1em .35em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); white-space: nowrap; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.prose > p:first-child { margin-top: 0; }

.highlighter-rouge, .prose pre { max-width: 100%; }
.prose pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13px; line-height: 1.6; color: var(--text); tab-size: 2;
}
.prose div.highlighter-rouge { max-width: 900px; }
.highlight .nt, .highlight .na, .highlight .nv { color: var(--code-key); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb { color: var(--code-str); }
.highlight .mi, .highlight .mf, .highlight .m, .highlight .kc { color: var(--code-num); }
.highlight .c, .highlight .c1, .highlight .cm { color: var(--faint); }
.highlight .nb, .highlight .k { color: var(--accent); }
.highlight .err { color: inherit; background: none; }

.prose table { width: 100%; max-width: 900px; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.prose td { color: var(--muted); }
.prose td:first-child { color: var(--text); }
.prose td code { white-space: normal; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; }
.site-foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.site-foot__id { display: inline-flex; align-items: center; gap: 12px; }
.site-foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.site-foot__links a { text-decoration: none; }
.site-foot__note { width: 100%; font-size: 12px; color: var(--faint); letter-spacing: .03em; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero, .product-hero { grid-template-columns: minmax(0, 1fr); }
  .hero__visual, .product-hero__visual { max-width: 520px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-head { position: static; }
  .site-head__inner { padding-block: 14px; }
  .site-nav ul { gap: 4px 20px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-head__intro { grid-column: 1; }
  .contact { margin-left: 0; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .readout { font-size: 12.5px; }
  .readout__rows, .readout__acct, .readout__head, .readout__verdict, .cols, .readout__foot { padding-inline: 14px; }
  .feature { padding-left: 36px; }
}

@media print {
  body::before, .site-head, .site-foot, .actions { display: none; }
  body { background: #fff; color: #000; }
}
.specs code { font-size: .88em; color: var(--text); }
