/* =========================================================
   Redline Motors · site-2026.css
   Shared foundation for the 2026 redesign: tokens, base, buttons, forms,
   header, footer and utilities. Inner pages can link this file and reuse
   .site-header / .site-footer / .btn / .field without the home-page CSS.
   Contrast (WCAG AA, computed): ink on bg 16.5:1 · muted on bg 7.2:1 ·
   white on red 7.1:1 · red-ink link on bg 8.7:1 · night-dim on night 11.0:1 ·
   night-red link on night 8.0:1 · success on bg 4.9:1 · control borders 3.6:1+

   READABILITY + MICRO-SPACING TOKENS (standing rules for every page that links this file)
   Type scale, fluid (390px -> 1440px):
     --t-display 44 -> 76 · --t-h2 32 -> 56 · --t-h3 21 -> 26
     --t-lede    17 -> 18  (lead paragraph, 18px on desktop)
     --t-body    16 -> 16.6 (paragraphs, inputs, descriptions; never below 16)
     --t-small   15 -> 15.4 (nav, buttons, table cells, notes, "sample" lines; never below 15)
     --t-meta    14 -> 14.3 (mono caps labels, eyebrows, badges, table heads; never below 14)
   Nothing on the page renders below 14px. Line-height: body 1.6, small 1.5, headings 1.05-1.2.
   Letter-spacing: display -.035em, h2 -.03em, h3 -.02em, mono/caps labels +.08em.
   Measure: paragraphs cap at --measure (66ch); lede at 56ch.
   Spacing: 4px base, only these steps (--s-1..--s-10): 4 8 12 16 24 32 48 64 96 128.
     label -> input 8 · icon -> text 8 · badge padding 4 x 8 · button 48 high (44 min) x 24 side
     list rows 16-24 · table cells 12 · heading -> paragraph 12-16 · card padding 24 (32-48 desktop)
   Tap targets: every link/button is at least 44 x 44 (inline text links in paragraphs excepted).
   Figures (prices, finance, hours, counts) use tabular-nums so columns and baselines line up.
   ========================================================= */
:root {
  /* colour: neutrals (cool, matches the original steel/ink) */
  --bg: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #e9ecee;
  --line: #d9dde1;
  --line-strong: #b9c0c6;
  --control-line: #78828a; /* 3.9:1 on white, 3.6:1 on bg (WCAG 1.4.11) */
  --ink: #14171a;
  --ink-soft: #272c31;
  --muted: #4a535b;
  /* colour: brand, one accent (refined from #9E1228 / #C41230) */
  --red: #b0122c;
  --red-ink: #8c0e23;
  --red-tint: #f9e8eb;
  /* colour: dark band */
  --night: #14171a;
  --night-2: #1d2226;
  --night-line: #343b42;
  --night-dim: #c4cbd1;
  --night-red: #ff8a9b;
  --success: #1c7a45;
  --focus: #b0122c;

  /* type */
  --font-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-display: clamp(2.75rem, 1.35rem + 5.2vw, 4.75rem);
  --t-h2: clamp(2rem, 1.25rem + 2.6vw, 3.5rem);
  --t-h3: clamp(1.3125rem, 1.15rem + .5vw, 1.625rem);
  --t-lede: clamp(1.0625rem, 1.02rem + .22vw, 1.125rem);
  --t-body: clamp(1rem, .985rem + .06vw, 1.0625rem);
  --t-small: clamp(.9375rem, .925rem + .04vw, 1rem);
  --t-meta: clamp(.875rem, .86rem + .04vw, .9375rem);
  --lh-body: 1.6;
  --lh-small: 1.5;
  --lh-head: 1.1;
  --track-label: .08em;
  --measure: 66ch;

  /* spacing: 4px scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* shape: two levels */
  --r-control: 4px;
  --r-media: 8px;
  --shadow-overlay: 0 24px 64px -16px rgba(20, 23, 26, .32);

  /* layout */
  --max: 1360px;
  --gutter: 24px;
  --margin: clamp(20px, 4vw, 56px);
  --header-h: 64px;
  --section: clamp(64px, 40px + 6vw, 128px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 200ms;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/var(--lh-body) var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd, table { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-control); }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
::selection { background: var(--red); color: #fff; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-control); }
.skip-link:focus { top: var(--s-3); }
.num { font-variant-numeric: tabular-nums; }
:where(p) { max-width: var(--measure); }

/* ---------- type ---------- */
.meta { font: 500 var(--t-meta)/1.4 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.on-dark .meta { color: var(--night-dim); }
.display { font: 700 var(--t-display)/1.05 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.h2 { font: 700 var(--t-h2)/var(--lh-head) var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.h3 { font: 600 var(--t-h3)/1.2 var(--font-display); letter-spacing: -.02em; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; text-wrap: pretty; }
.on-dark .lede { color: var(--night-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-control);
  border: 1px solid transparent; font: 600 var(--t-small)/1.2 var(--font-text); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--control-line); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 600; color: var(--red-ink); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 5px; }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--night-red); }

/* ---------- buttons: states ---------- */
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--surface-2); color: var(--muted); border-color: var(--line-strong);
  cursor: not-allowed; transform: none;
}
.btn:disabled svg, .btn[aria-disabled="true"] svg { transform: none; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { rotate: 1turn; } }

/* =========================================================
   FORMS · reusable component layer (plain CSS, no build step)
   ---------------------------------------------------------
   Markup contract (see forms-demo.html for every state):
     .field            stacked label + control + .field-hint / .field-error
     .field--float     floating-label variant (input needs placeholder=" ")
     .input-group      input with .affix prefix/suffix (£, mi, mo)
     select            native <select>; styled closed state everywhere,
                       styled popup where `appearance: base-select` exists
     .check / .switch  checkbox + radio / toggle (label wraps the input)
     input[type=range] + <output> readout, .seg segmented radio group
     .btn[aria-busy]   loading, .btn:disabled
   Validation: :user-invalid / :user-valid (after interaction),
   [aria-invalid="true"] or .field[data-invalid] for server-side errors.
   Targets >= 44px, input text >= 16px (no iOS zoom), borders >= 3:1.
   Customizable-select pattern informed by Open Props UI (MIT,
   github.com/argyleink/open-props) and the Chrome customizable-select guide.
   ========================================================= */
:root { --field-h: 48px; --field-px: var(--s-4); }

.field { display: grid; gap: var(--s-2); min-width: 0; align-content: start; }
.field > label, .field > .label, .label {
  font: 600 var(--t-small)/1.3 var(--font-text); letter-spacing: 0; color: var(--form-label);
}
.field-opt { font-weight: 400; color: var(--form-hint); margin-left: var(--s-1); }
.field-hint, .field-error { margin: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--form-hint); }
.field-error { display: none; gap: var(--s-2); align-items: flex-start; color: var(--form-error); font-weight: 500; }
.field-error::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: .15em; background: currentColor;
  -webkit-mask: var(--i-alert) center / contain no-repeat; mask: var(--i-alert) center / contain no-repeat;
}
.field:has(:user-invalid, [aria-invalid="true"]) .field-error, .field[data-invalid] .field-error { display: flex; }
.field:has(:user-invalid, [aria-invalid="true"]) .field-hint, .field[data-invalid] .field-hint { display: none; }
.field:has(:disabled) > label { color: var(--form-hint); }
:root {
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Zm-.75 3.25h1.5v4h-1.5v-4Zm.75 6.9a.9.9 0 1 1 0-1.8.9.9 0 0 1 0 1.8Z'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-chev-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2314171a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-chev-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234a535b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}

/* --- text-like controls --- */
.input,
.field input:not([type="range"], [type="radio"], [type="checkbox"], [type="hidden"], [type="submit"], [type="button"], [type="file"]),
.field textarea {
  width: 100%; min-height: var(--field-h); padding: 0 var(--field-px);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--control-line); border-radius: var(--r-control);
  font: 400 var(--t-body)/1.4 var(--font-text);   /* >= 16px: no iOS zoom */
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { min-height: 7.5rem; padding-block: var(--s-3); resize: vertical; field-sizing: content; }
.input:hover, .field input:hover:not(:disabled), .field textarea:hover:not(:disabled) { border-color: var(--ink); }
.input:focus-visible, .field input:focus-visible, .field textarea:focus-visible { border-color: var(--red); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.input:user-invalid, .field input:user-invalid, .field textarea:user-invalid, select:user-invalid,
[aria-invalid="true"], .field[data-invalid] :where(input, select, textarea) {
  border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red);
}
/* valid tick: required fields only, so optional blanks never turn green */
.field input:required:user-valid:not([type="range"], [type="radio"], [type="checkbox"]) {
  border-color: var(--success); padding-inline-end: calc(var(--field-px) + 28px);
  background: var(--surface) var(--i-check) no-repeat right var(--field-px) center / 18px;
}
.input:disabled, .field input:disabled:not([type="range"], [type="radio"], [type="checkbox"]), .field textarea:disabled, select:disabled {
  background-color: var(--surface-2); border-color: var(--line-strong); color: var(--muted); cursor: not-allowed;
}
.field input:read-only:not(:disabled, [type="range"]) { background: var(--bg); border-style: dashed; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--surface) inset; -webkit-text-fill-color: var(--ink); }

/* floating label (input first-class: needs placeholder=" ") */
.field--float { position: relative; }
.field--float > label {
  position: absolute; z-index: 1; inset: 15px auto auto calc(var(--field-px) + 1px); max-width: calc(100% - 2 * var(--field-px));
  font: 400 var(--t-body)/1.3 var(--font-text); color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: top var(--dur) var(--ease), font-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.field.field--float input[placeholder] { min-height: 56px; padding-top: 22px; padding-bottom: 4px; }
.field--float input::placeholder { color: transparent; }
.field--float:has(input:focus, input:not(:placeholder-shown)) > label { top: 6px; font-size: var(--t-meta); font-weight: 600; color: var(--ink-soft); }
.field--float:has(input:disabled) > label { color: var(--form-hint); }

/* input with affixes */
.input-group {
  display: flex; align-items: stretch; min-height: var(--field-h); background: var(--surface);
  border: 1px solid var(--control-line); border-radius: var(--r-control); overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.input-group:hover { border-color: var(--ink); }
.input-group:has(input:focus-visible) { border-color: var(--red); outline: 2px solid var(--focus); outline-offset: 2px; }
.input-group:has(:user-invalid, [aria-invalid="true"]) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.input-group:has(input:disabled) { background: var(--surface-2); border-color: var(--line-strong); }
.field .input-group input {
  flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; outline: 0;
}
.affix {
  display: grid; place-items: center; padding-inline: var(--s-4); background: var(--surface-2); color: var(--ink-soft);
  font: 500 var(--t-small)/1 var(--font-mono); white-space: nowrap;
}
.affix:first-child { border-inline-end: 1px solid var(--line-strong); }
.affix:last-child { border-inline-start: 1px solid var(--line-strong); }

/* --- select: closed state (every browser) --- */
select {
  appearance: none; width: 100%; min-height: var(--field-h); padding: 0 var(--s-7) 0 var(--field-px);
  background: var(--surface) var(--i-chev-ink) no-repeat right var(--s-3) center / 20px;
  color: var(--ink); border: 1px solid var(--control-line); border-radius: var(--r-control);
  font: 400 var(--t-body)/1.4 var(--font-text); text-overflow: ellipsis; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
select:hover:not(:disabled) { border-color: var(--ink); }
select:focus-visible { border-color: var(--red); }
select:disabled { background-image: var(--i-chev-muted); }

/* --- select: customizable popup (Chrome/Edge 135+, Safari 27+, fine pointers only) ---
   Touch devices keep the native OS picker (better UX); Firefox keeps the native popup. */
@media (hover: hover) and (pointer: fine) {
  @supports (appearance: base-select) {
    select, select::picker(select) { appearance: base-select; }
    select, select:disabled { display: flex; align-items: center; background-image: none; }
    select::picker-icon {
      content: ""; width: 20px; height: 20px; margin-inline-start: auto; background: currentColor;
      -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat;
      transition: rotate var(--dur) var(--ease);
    }
    select:open::picker-icon { rotate: 180deg; }
    select::picker(select) {
      box-sizing: border-box; min-inline-size: anchor-size(width); max-block-size: min(22rem, 50svh); margin-block: var(--s-1);
      padding: var(--s-1); background: var(--surface); color: var(--ink);
      border: 1px solid var(--line-strong); border-radius: var(--r-media); box-shadow: var(--shadow-overlay);
      font: 400 var(--t-body)/1.4 var(--font-text);
      opacity: 1; translate: 0 0;
      transition: opacity 160ms var(--ease), translate 160ms var(--ease), display 160ms allow-discrete, overlay 160ms allow-discrete;
    }
    @starting-style { select::picker(select) { opacity: 0; translate: 0 -6px; } }
    select:not(:open)::picker(select) { opacity: 0; translate: 0 -6px; }
    select option {
      display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-3);
      border-radius: var(--r-control); color: var(--ink); cursor: pointer;
    }
    select option:hover, select option:focus-visible { background: var(--surface-2); }
    select option:checked { background: var(--red-tint); color: var(--red-ink); font-weight: 600; }
    select option:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
    select option:disabled { color: var(--muted); cursor: not-allowed; }
    select option::checkmark { order: 1; margin-inline-start: auto; color: var(--red-ink); font-weight: 700; }
    select optgroup label { display: block; padding: var(--s-3) var(--s-3) var(--s-1); font: 500 var(--t-meta)/1.3 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
  }
}
@media (prefers-reduced-motion: reduce) {
  select::picker(select), select::picker-icon { transition: none; }
}
@media (forced-colors: active) {   /* system colours + native arrow */
  select, select::picker(select) { appearance: auto; background-image: none; }
}

/* --- checkbox / radio --- */
.check, .switch { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; font-size: var(--t-body); line-height: 1.35; color: var(--form-label); }
.check:has(:disabled), .switch:has(:disabled) { color: var(--form-hint); cursor: not-allowed; }
.check input, .switch input {
  appearance: none; flex: none; margin: 0; display: grid; place-content: center; cursor: inherit;
  background: var(--surface); border: 2px solid var(--control-line);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.check input { width: 24px; height: 24px; border-radius: 4px; }
.check input[type="radio"] { border-radius: 50%; }
.check input:hover:not(:disabled), .switch input:hover:not(:disabled) { border-color: var(--ink); }
.check input[type="checkbox"]::after {
  content: ""; width: 16px; height: 16px; background: #fff; scale: 0; transition: scale 120ms var(--ease);
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.check input[type="checkbox"]:indeterminate::after { -webkit-mask: none; mask: none; height: 2px; width: 12px; scale: 1; }
.check input:checked, .check input:indeterminate { background: var(--red); border-color: var(--red); }
.check input[type="checkbox"]:checked::after { scale: 1; }
.check input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--surface); }
.check input:user-invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.check input:disabled, .switch input:disabled { background: var(--surface-2); border-color: var(--line-strong); }
.check input:checked:disabled { background: var(--line-strong); }

/* --- toggle (checkbox with role="switch") --- */
.switch input { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--surface-2); }
.switch input::after {
  content: ""; position: absolute; inset: 2px auto 2px 2px; width: 20px; border-radius: 50%;
  background: var(--ink-soft); transition: translate var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.switch input:checked { background: var(--red); border-color: var(--red); }
.switch input:checked::after { translate: 20px 0; background: #fff; }
.switch input:disabled::after { background: var(--muted); }
@media (forced-colors: active) {
  .check input, .switch input { appearance: auto; }
  .switch input::after { display: none; }
}

/* --- range slider + readout --- */
input[type="range"] {
  --fill: var(--red); --track: var(--form-track); --p: 16%;
  appearance: none; -webkit-appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--red);
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--fill) var(--p), var(--track) var(--p)); box-shadow: inset 0 0 0 1px var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 1px 4px rgba(20, 23, 26, .3); transition: scale var(--dur) var(--ease); }
input[type="range"]:hover::-webkit-slider-thumb { scale: 1.08; }
input[type="range"]:active::-webkit-slider-thumb { scale: .96; }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--track); box-shadow: inset 0 0 0 1px var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--fill); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 1px 4px rgba(20, 23, 26, .3); }
input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input[type="range"]:disabled { cursor: not-allowed; --fill: var(--muted); }
input[type="range"]:disabled::-webkit-slider-thumb { border-color: var(--muted); }
input[type="range"]:disabled::-moz-range-thumb { border-color: var(--muted); }
.range-ends { display: flex; justify-content: space-between; margin-top: calc(-1 * var(--s-1)); font: 400 var(--t-meta)/1.3 var(--font-mono); color: var(--form-hint); font-variant-numeric: tabular-nums; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.calc-row output { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (forced-colors: active) {
  input[type="range"] { appearance: auto; accent-color: Highlight; }
}

/* --- surfaces: controls are always light boxes; only the text around them flips ---
   .on-dark flips labels/hints/errors/track; .calc and .on-light switch back inside a light card. */
:root, .calc, .on-light { --form-label: var(--ink); --form-hint: var(--muted); --form-error: var(--red-ink); --form-track: var(--surface-2); }
.on-dark { --form-label: #fff; --form-hint: var(--night-dim); --form-error: var(--night-red); --form-track: var(--night-line); }

/* --- fieldset + segmented radio group --- */
.terms, .fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.terms legend, .fieldset legend { padding: 0; margin-bottom: var(--s-2); }
.seg { display: grid; grid-template-columns: repeat(var(--seg-n, 4), 1fr); border: 1px solid var(--control-line); border-radius: var(--r-control); overflow: hidden; background: var(--surface); }
.seg label { position: relative; display: block; }
.seg label + label { border-left: 1px solid var(--line-strong); }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: var(--field-h); font: 500 var(--t-small)/1 var(--font-mono); color: var(--ink-soft); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.seg input:hover + span { background: var(--surface-2); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -4px; }
.seg input:disabled + span { color: var(--muted); background: var(--surface-2); cursor: not-allowed; }
@media (forced-colors: active) {
  .seg input:checked + span { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}

/* ---------- utility bar ---------- */
.utility { background: var(--night); color: var(--night-dim); font-size: var(--t-small); line-height: var(--lh-small); }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); min-height: 44px; }
.utility .promises { display: none; white-space: nowrap; gap: var(--s-5); padding: 0; margin: 0; list-style: none; }
.utility .promises li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--night-dim); margin: 0 var(--s-5) 3px 0; opacity: .6; }
.utility strong { color: #fff; font-weight: 500; }
.status { display: flex; align-items: center; gap: var(--s-2); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--night-dim); flex: none; }
.status[data-open="true"] .dot { background: #46c27d; }
.status-hours { display: none; }
@media (min-width: 720px) { .status-hours { display: inline; } }
@media (max-width: 1199px) { .utility .promises li:nth-child(3) { display: none; } }
.utility .status, .utility .d-short { white-space: nowrap; }
.utility .d-short { margin: 0; }
@media (min-width: 1000px) { .utility .promises { display: flex; } .utility .d-short { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 245, 246, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(244, 245, 246, .84); backdrop-filter: saturate(1.4) blur(14px); } }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { height: 38px; width: auto; }
.nav { display: none; }
.nav a { display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; padding: 0 var(--s-3); font-size: var(--t-small); font-weight: 500; color: var(--ink-soft); text-decoration: none; border-radius: var(--r-control); position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 8px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.tool { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; min-width: 44px; justify-content: center; padding: 0 var(--s-3); border: 0; background: none; border-radius: var(--r-control); font-size: var(--t-small); font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.tool:hover { color: var(--ink); background: var(--surface-2); }
.tool svg { width: 20px; height: 20px; }
.tool .count { min-width: 24px; height: 24px; padding: 0 var(--s-2); display: inline-grid; place-items: center; border-radius: 12px; background: var(--ink); color: #fff; font: 500 var(--t-meta)/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.tool .count[data-n="0"] { background: var(--surface-2); color: var(--muted); }
.tool-label { display: none; }
.tool-call, .header-cta { display: none; }
.menu-btn { border: 1px solid var(--control-line); }
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .nav { display: flex; gap: var(--s-1); margin-right: var(--s-5); }
  .site-header .wrap { gap: var(--s-3); }
  .logo { margin-right: var(--s-5); }
  .logo img { height: 44px; }
  .nav { margin-left: 0; }
  .tool-label { display: inline; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .site-header .spacer { flex: 1; }
}
@media (min-width: 1200px) { .tool-call { display: inline-flex; } }

/* mobile menu: native popover */
.menu { margin: 0; inset: 0 0 0 auto; width: min(420px, 100%); height: 100%; max-height: none; border: 0; padding: 0; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-overlay); overflow: auto; }
.menu::backdrop { background: rgba(20, 23, 26, .5); }
.menu:popover-open { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .menu { transition: translate 260ms var(--ease), display 260ms allow-discrete, overlay 260ms allow-discrete; translate: 100% 0; }
  .menu:popover-open { translate: 0 0; }
  @starting-style { .menu:popover-open { translate: 100% 0; } }
}
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 0 var(--margin); border-bottom: 1px solid var(--line); }
.menu nav { display: grid; padding: var(--s-4) var(--margin); }
.menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); font: 600 1.5rem/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; }
.menu nav a svg { width: 18px; height: 18px; color: var(--muted); }
.menu-foot { margin-top: auto; padding: var(--s-5) var(--margin) var(--s-6); display: grid; gap: var(--s-3); }
.menu-foot .btn { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-dim); padding-block: var(--s-8) var(--s-6); }
.site-footer a { text-decoration-color: transparent; transition: text-decoration-color var(--dur); }
.site-footer a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-grid { display: grid; gap: var(--s-7) var(--s-6); grid-template-columns: 1fr 1fr; }
.footer-grid > div:last-child { grid-column: 1 / -1; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: var(--s-4); max-width: 38ch; align-content: start; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand address { font-style: normal; }
.site-footer h2 { font: 500 var(--t-meta)/1.4 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: #fff; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--night-line); display: grid; gap: var(--s-3); font-size: var(--t-small); line-height: var(--lh-small); }
.footer-legal p { max-width: 70ch; }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-legal { grid-template-columns: 1fr auto; align-items: start; gap: var(--s-7); }
}

/* =========================================================
   .img-fade · soft CSS edge fade for photographic images
   ---------------------------------------------------------
   HOW TO USE
   Add the class to the element that WRAPS the photo (a <figure>, <a> or <div>), never to a
   text container:
     <figure class="img-fade"><picture>...<img ...></picture><figcaption>..</figcaption></figure>
   The mask is applied to the <picture> (or a bare <img>) inside it, so captions, flags and
   badges stay crisp. Because it is pure CSS and targets whatever <picture>/<img> sits inside
   the wrapper, REPLACING THE PHOTO (new src, new <picture>, new file) KEEPS THE EFFECT. Nothing
   is baked into the image files.
   VARIANTS (all edges by default)
     .img-fade--l  .img-fade--r  .img-fade--t  .img-fade--b     one edge only
     .img-fade--x (left+right)   .img-fade--y (top+bottom)
   TUNING (custom properties, set on the wrapper or in a media query)
     --fade-size   length of the fade on every side (default clamp(24px, 6vw, 88px))
     --fade-x / --fade-y   override the size for left-right / top-bottom
     --fade-t --fade-r --fade-b --fade-l   1 = fade this side, 0 = keep it crisp
   BLENDING
     The fade is an alpha mask, so the photo dissolves into whatever is behind the wrapper:
     the page, a surface or a dark band (.on-dark) alike. Keep the wrapper's own background
     transparent so no box shows through. Do not fade an edge that touches the viewport edge.
   FALLBACKS
     No mask support or forced-colors mode: the mask is dropped, the photo shows in full with
     the normal 8px media radius. Nothing else changes, text is never placed over the fade.
   ========================================================= */
.img-fade {
  --fade-size: clamp(24px, 6vw, 88px);
  --fade-x: var(--fade-size);
  --fade-y: var(--fade-size);
  --fade-t: 1; --fade-r: 1; --fade-b: 1; --fade-l: 1;
}
.img-fade--l { --fade-t: 0; --fade-r: 0; --fade-b: 0; }
.img-fade--r { --fade-t: 0; --fade-b: 0; --fade-l: 0; }
.img-fade--t { --fade-r: 0; --fade-b: 0; --fade-l: 0; }
.img-fade--b { --fade-t: 0; --fade-r: 0; --fade-l: 0; }
.img-fade--x { --fade-t: 0; --fade-b: 0; }
.img-fade--y { --fade-r: 0; --fade-l: 0; }
.img-fade figure { margin: 0; height: 100%; }
.img-fade picture { display: block; height: 100%; }
.img-fade picture img { height: 100%; }
@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  @media not (forced-colors: active) {
    .img-fade picture, .img-fade > img {
      /* smoothstep-eased ramps (alpha 1 - f*(1-s) at 25/50/75% of the fade) read softer than a linear one */
      --_ax: linear-gradient(to right,
        rgb(0 0 0 / calc(1 - var(--fade-l))) 0,
        rgb(0 0 0 / calc(1 - var(--fade-l) * .844)) calc(var(--fade-x) * .25),
        rgb(0 0 0 / calc(1 - var(--fade-l) * .5)) calc(var(--fade-x) * .5),
        rgb(0 0 0 / calc(1 - var(--fade-l) * .156)) calc(var(--fade-x) * .75),
        #000 var(--fade-x),
        #000 calc(100% - var(--fade-x)),
        rgb(0 0 0 / calc(1 - var(--fade-r) * .156)) calc(100% - var(--fade-x) * .75),
        rgb(0 0 0 / calc(1 - var(--fade-r) * .5)) calc(100% - var(--fade-x) * .5),
        rgb(0 0 0 / calc(1 - var(--fade-r) * .844)) calc(100% - var(--fade-x) * .25),
        rgb(0 0 0 / calc(1 - var(--fade-r))) 100%);
      --_ay: linear-gradient(to bottom,
        rgb(0 0 0 / calc(1 - var(--fade-t))) 0,
        rgb(0 0 0 / calc(1 - var(--fade-t) * .844)) calc(var(--fade-y) * .25),
        rgb(0 0 0 / calc(1 - var(--fade-t) * .5)) calc(var(--fade-y) * .5),
        rgb(0 0 0 / calc(1 - var(--fade-t) * .156)) calc(var(--fade-y) * .75),
        #000 var(--fade-y),
        #000 calc(100% - var(--fade-y)),
        rgb(0 0 0 / calc(1 - var(--fade-b) * .156)) calc(100% - var(--fade-y) * .75),
        rgb(0 0 0 / calc(1 - var(--fade-b) * .5)) calc(100% - var(--fade-y) * .5),
        rgb(0 0 0 / calc(1 - var(--fade-b) * .844)) calc(100% - var(--fade-y) * .25),
        rgb(0 0 0 / calc(1 - var(--fade-b))) 100%);
      -webkit-mask-image: var(--_ax), var(--_ay);
      -webkit-mask-composite: source-in;
      mask-image: var(--_ax), var(--_ay);
      mask-composite: intersect;
    }
  }
}
/* no mask support, or forced colours: show the whole photo with the normal media radius */
@supports not ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  .img-fade picture, .img-fade > img { border-radius: var(--r-media); overflow: hidden; }
}
@media (forced-colors: active) {
  .img-fade picture, .img-fade > img { border-radius: var(--r-media); overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.footer-brand p a, .footer-brand address a { display: inline-flex; align-items: center; min-height: 44px; }
