/* ==========================================================================
   MiniCats SA — v4 design system
   --------------------------------------------------------------------------
   "Precision workshop": ink and steel neutrals, one safety-orange accent,
   engineering-drawing panels for technical figures. Self-hosted variable
   fonts (Inter for text, Space Grotesk for display and figures), no
   framework, no third-party requests.

   Layers, in order:
     1. Fonts & tokens (light, dark, legacy aliases)
     2. Base & typography
     3. Layout primitives
     4. Shell: topline, navbar, drawer, footer
     5. Components
     6. Forms
     7. Utilities, motion, print

   Page-specific styles live in pages/<name>.css and are loaded only where
   used. Anything two pages need belongs here instead.
   ========================================================================== */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens: light (default) ---------- */
:root {
  color-scheme: light;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg:          #f5f4f0;
  --bg-band:     #eceae4;
  --surface:     #ffffff;
  --surface-2:   #f8f7f3;
  --surface-3:   #efede7;
  --ink:         #11151b;
  --ink-2:       #3a424d;
  --ink-3:       #66707c;
  --line:        #e3e0d8;
  --line-2:      #cfcbc1;

  --accent:      #ff6b1a;
  --accent-2:    #ff8640;
  --accent-ink:  #b3430b;
  --accent-soft: #fff1e6;
  --accent-line: #ffcfae;
  --on-accent:   #1a0c02;

  --ok:          #0d7f57;
  --ok-soft:     #e5f5ee;
  --warn:        #9a5b00;
  --warn-soft:   #fff4de;
  --danger:      #bb2d2d;
  --danger-soft: #fdeceb;
  --info:        #1d5bb8;
  --info-soft:   #e9f0fb;

  /* Engineering panel — dark in both themes so technical drawings read
     the same way everywhere. */
  --steel-bg:    #0e141b;
  --steel-2:     #151d27;
  --steel-line:  #243140;
  --steel-ink:   #d6dee8;
  --steel-ink-2: #95a3b3;

  --shadow-xs: 0 1px 2px rgba(17, 21, 27, .06);
  --shadow-sm: 0 1px 3px rgba(17, 21, 27, .08), 0 1px 2px rgba(17, 21, 27, .04);
  --shadow:    0 12px 32px -14px rgba(17, 21, 27, .20), 0 2px 6px -2px rgba(17, 21, 27, .06);
  --shadow-lg: 0 34px 70px -28px rgba(17, 21, 27, .34), 0 8px 18px -10px rgba(17, 21, 27, .10);
  --ring:      0 0 0 3px rgba(255, 107, 26, .35);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1200px;
  --container-narrow: 820px;
  --gutter:  clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .18s var(--ease);

  /* Legacy aliases. Older templates (and inline styles still inside the
     checkout scripts) refer to these names; mapping them here keeps any
     leftover reference on the new palette in both themes. */
  --txt: var(--ink);
  --txt-bright: var(--ink);
  --text: var(--ink);
  --muted: var(--ink-3);
  --text-muted: var(--ink-3);
  --text-faint: var(--ink-3);
  --brand: var(--accent);
  --brand-hover: var(--accent-2);
  --brand-light: var(--accent-soft);
  --accent-hot: var(--accent-ink);
  --accent-dim: var(--accent-soft);
  --card: var(--surface);
  --card-hover: var(--surface-2);
  --border: var(--line);
  --border-light: var(--line);
  --line-soft: var(--line);
  --bg-secondary: var(--surface-2);
  --transition: var(--t);
  --shadow-md: var(--shadow);
  --shadow-brand: 0 10px 24px -10px rgba(255, 107, 26, .55);
  --success: var(--ok);
  --success-bg: var(--ok-soft);
  --ok-dim: var(--ok-soft);
  --warning: var(--warn);
  --warn-dim: var(--warn-soft);
  --error: var(--danger);
  --error-bg: var(--danger-soft);
  --font: var(--font-body);
  --mono: var(--font-mono);
  --maxw: var(--container);
  --readw: 68ch;
  --gap: var(--gutter);
}

/* ---------- 1. Tokens: dark ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #0b0e12;
  --bg-band:     #0f1318;
  --surface:     #141920;
  --surface-2:   #10151b;
  --surface-3:   #1b222b;
  --ink:         #edf1f5;
  --ink-2:       #b9c2cd;
  --ink-3:       #8b95a2;
  --line:        #232b35;
  --line-2:      #313c49;
  --accent:      #ff7a24;
  --accent-2:    #ff944f;
  --accent-ink:  #ff9d5c;
  --accent-soft: rgba(255, 122, 36, .12);
  --accent-line: rgba(255, 122, 36, .38);
  --on-accent:   #1a0c02;
  --ok:          #3ecf8e;
  --ok-soft:     rgba(62, 207, 142, .12);
  --warn:        #f5b73b;
  --warn-soft:   rgba(245, 183, 59, .12);
  --danger:      #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .12);
  --info:        #6aa6ff;
  --info-soft:   rgba(106, 166, 255, .12);
  --steel-bg:    #0a0f15;
  --steel-2:     #111922;
  --steel-line:  #1f2a37;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow:    0 14px 36px -16px rgba(0, 0, 0, .75);
  --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, .85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:          #0b0e12;
    --bg-band:     #0f1318;
    --surface:     #141920;
    --surface-2:   #10151b;
    --surface-3:   #1b222b;
    --ink:         #edf1f5;
    --ink-2:       #b9c2cd;
    --ink-3:       #8b95a2;
    --line:        #232b35;
    --line-2:      #313c49;
    --accent:      #ff7a24;
    --accent-2:    #ff944f;
    --accent-ink:  #ff9d5c;
    --accent-soft: rgba(255, 122, 36, .12);
    --accent-line: rgba(255, 122, 36, .38);
    --on-accent:   #1a0c02;
    --ok:          #3ecf8e;
    --ok-soft:     rgba(62, 207, 142, .12);
    --warn:        #f5b73b;
    --warn-soft:   rgba(245, 183, 59, .12);
    --danger:      #ff6b6b;
    --danger-soft: rgba(255, 107, 107, .12);
    --info:        #6aa6ff;
    --info-soft:   rgba(106, 166, 255, .12);
    --steel-bg:    #0a0f15;
    --steel-2:     #111922;
    --steel-line:  #1f2a37;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow:    0 14px 36px -16px rgba(0, 0, 0, .75);
    --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, .85);
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }

img, svg, video, picture { max-width: 100%; height: auto; display: block; }
img { border-style: none; }
[hidden] { display: none !important; }
figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 1000;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 2. Typography ---------- */
h1, h2, h3, h4, h5, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2, .h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.18rem, 2.2vw, 1.45rem); letter-spacing: -0.015em; line-height: 1.25; }
h4, .h4 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
small, .small { font-size: .875rem; }
strong, b { font-weight: 650; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--accent); }

.lead { font-size: clamp(1.06rem, 1.9vw, 1.24rem); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .92em; }
code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--surface-3); padding: .1em .38em; border-radius: 5px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px;
}
.eyebrow--plain::before { display: none; }

/* Long-form reading: guides, policies */
.prose { max-width: 70ch; color: var(--ink-2); font-size: 1.04rem; line-height: 1.75; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(1.4rem, 2.8vw, 1.85rem); color: var(--ink); }
.prose h3 { margin: 1.8em 0 .5em; color: var(--ink); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 650; background: var(--surface-2); }
.prose blockquote { margin: 1.4em 0; padding: 1em 1.2em; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container--wide { max-width: 1360px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--flush-top { padding-top: 0; }
.section--band { background: var(--bg-band); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--steel {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 107, 26, .12), transparent 60%),
    linear-gradient(var(--steel-bg), var(--steel-bg));
  color: var(--steel-ink);
}
.section--steel h1, .section--steel h2, .section--steel h3, .section--steel h4 { color: #fff; }
.section--steel .lead, .section--steel .muted { color: var(--steel-ink-2); }
.section--steel .eyebrow { color: var(--accent-2); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: .35em; }
.section-head .lead { margin: 0; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.section-head--split > div { max-width: 720px; }

.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, .75rem); align-items: center; }

.grid { display: grid; gap: var(--grid-gap, clamp(16px, 2.4vw, 24px)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Text + media, stacking on small screens */
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-media { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split--top { align-items: start; }
@media (max-width: 900px) { .split, .split--wide-text, .split--wide-media { grid-template-columns: minmax(0, 1fr); } .split--reverse-mobile > :first-child { order: 2; } }

/* Content + sticky aside (guides, product, checkout) */
.with-aside { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.with-aside--left { grid-template-columns: 260px minmax(0, 1fr); }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 980px) { .with-aside, .with-aside--left { grid-template-columns: minmax(0, 1fr); } .aside-sticky { position: static; } }

/* ---------- 4. Shell: topline ---------- */
.topline {
  background: var(--steel-bg);
  color: var(--steel-ink-2);
  font-size: .82rem;
  border-bottom: 1px solid var(--steel-line);
}
.topline__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topline__items { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.topline__item { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topline__item .icon { width: 15px; height: 15px; color: var(--accent-2); }
.topline a { color: var(--steel-ink); text-decoration: none; }
.topline a:hover { color: #fff; }
.topline strong { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .topline__item--hide-sm { display: none; } .topline__items { gap: 1rem; } }
@media (max-width: 520px) { .topline__phone { display: none; } }

/* ---------- 4. Shell: navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar__inner { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; line-height: 1; }
.brand__word span { color: var(--accent); }
.brand__sub { display: block; font-family: var(--font-body); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav__link {
  position: relative;
  padding: .55rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .93rem;
  transition: color var(--t), background var(--t);
}
.nav__link:hover { color: var(--ink); background: var(--surface-3); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--accent);
}

.navbar__actions { display: flex; align-items: center; gap: .4rem; }
.nav + .navbar__actions { margin-left: .6rem; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); text-decoration: none;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn .icon { width: 19px; height: 19px; }

.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
}

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  height: 40px; padding: 0 .95rem 0 .8rem; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 650; font-size: .9rem;
  transition: background var(--t), transform var(--t);
}
.cart-btn:hover { color: var(--bg); background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.cart-btn .icon { width: 18px; height: 18px; }
.cart-btn__count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center;
}

.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .navbar__actions, .nav + .navbar__actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .brand__sub { display: none; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 .7rem; }
  .navbar__account { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: calc(var(--header-h)) 0 0 0; z-index: 49;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1rem var(--gutter) 2rem;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.drawer[data-open="true"] { transform: none; opacity: 1; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.drawer__links { display: grid; gap: .25rem; margin-bottom: 1.5rem; }
.drawer__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem 1rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line);
}
.drawer__links a[aria-current="page"] { border-color: var(--accent-line); background: var(--accent-soft); }
.drawer__links .icon { width: 18px; height: 18px; color: var(--ink-3); }
.drawer__meta { display: grid; gap: .6rem; color: var(--ink-3); font-size: .92rem; }
.drawer__meta a { color: var(--ink-2); }
body.drawer-open { overflow: hidden; }
@media (min-width: 1021px) { .drawer { display: none; } }

/* ---------- 4. Shell: footer ---------- */
.footer {
  margin-top: auto;
  background: var(--steel-bg);
  color: var(--steel-ink-2);
  font-size: .93rem;
  border-top: 1px solid var(--steel-line);
}
.footer a { color: var(--steel-ink); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__top { padding-block: clamp(48px, 7vw, 80px) 2.4rem; display: grid; gap: 2.5rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; }
.footer .brand__sub { color: var(--steel-ink-2); }
.footer__blurb { margin: 1rem 0 1.3rem; max-width: 38ch; line-height: 1.65; }
.footer__contact { display: grid; gap: .55rem; font-style: normal; }
.footer__contact span, .footer__contact a { display: inline-flex; gap: .55rem; align-items: flex-start; }
.footer__contact .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-2); flex-shrink: 0; }
.footer h4 { font-family: var(--font-display); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer__trust { display: flex; flex-wrap: wrap; gap: .75rem; padding-block: 1.4rem; border-top: 1px solid var(--steel-line); }
.footer__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem; border-radius: var(--radius-sm);
  background: var(--steel-2); border: 1px solid var(--steel-line); color: var(--steel-ink); font-size: .84rem; font-weight: 550;
}
.footer__badge .icon { width: 17px; height: 17px; color: var(--accent-2); }
.footer__legal { padding: 1.2rem 1.3rem; margin-bottom: 1.4rem; border-radius: var(--radius); background: var(--steel-2); border: 1px solid var(--steel-line); font-size: .84rem; line-height: 1.6; }
.footer__legal strong { color: #fff; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-block: 1.3rem 2rem; border-top: 1px solid var(--steel-line); font-size: .82rem; }

/* ---------- 5. Icons ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 650; font-size: .96rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 22px -12px rgba(255, 107, 26, .8), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn--primary:hover { background: var(--accent-2); color: var(--on-accent); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); color: var(--bg); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn--ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent-ink); }
.btn--link:hover { color: var(--accent); text-decoration: underline; }
.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.section--steel .btn--secondary { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.section--steel .btn--secondary:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }

.btn--lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.04rem; border-radius: 12px; }
.btn--sm { min-height: 40px; padding: .5rem .9rem; font-size: .86rem; }
.btn--block { width: 100%; }

/* ---------- 5. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-xs);
}
.card--flat { box-shadow: none; }
.card--raised { box-shadow: var(--shadow); }
.card--inset { background: var(--surface-2); box-shadow: none; }
.card--accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.card--link:hover { color: inherit; border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--flush { padding: 0; overflow: hidden; }
.card__media { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; }
.card__body { padding: clamp(18px, 2.2vw, 24px); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; line-height: 1.3; color: var(--ink); margin: 0; }
.card__text { color: var(--ink-3); font-size: .93rem; margin: 0; }
.card__more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--accent-ink); font-weight: 650; font-size: .9rem; }
.card__more .icon { width: 16px; height: 16px; transition: transform var(--t); }
.card--link:hover .card__more .icon { transform: translateX(3px); }

/* Feature: icon tile + heading + text */
.feature { display: grid; gap: .6rem; align-content: start; }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line);
}
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3, .feature__title { font-size: 1.06rem; margin: .2rem 0 0; }
.feature p { margin: 0; color: var(--ink-3); font-size: .95rem; }
.section--steel .feature__icon { background: rgba(255, 122, 36, .12); color: var(--accent-2); border-color: rgba(255, 122, 36, .3); }
.section--steel .feature p { color: var(--steel-ink-2); }

/* ---------- 5. Pills & badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .7rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600; line-height: 1.3;
  background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line);
}
.pill .icon { width: 14px; height: 14px; }
.pill--accent { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.pill--ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.pill--warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.pill--danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.pill--info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 28%, transparent); }
.pill--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Stock indicator */
.stock { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--ok); }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--danger); }

/* ---------- 5. Price ---------- */
.price { display: inline-flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.price__amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price__amount--sm { font-size: 1.35rem; }
.price__note { color: var(--ink-3); font-size: .88rem; }

/* ---------- 5. Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; color: var(--ink-2); }
.ticks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7f57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks--cross li::before {
  background: var(--danger-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bb2d2d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks--inline { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.ticks--inline li { grid-template-columns: 18px auto; font-size: .9rem; }
.ticks--inline li::before { width: 18px; height: 18px; background-size: 10px; }

.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.meta-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; color: var(--ink-2); font-size: .95rem; }
.meta-list .icon { width: 20px; height: 20px; color: var(--accent-ink); margin-top: 2px; }
.meta-list strong { color: var(--ink); display: block; font-weight: 650; }

/* Definition grid (specs) */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.specs > div { background: var(--surface); padding: 1rem 1.1rem; }
.specs dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin-bottom: .35rem; }
.specs dd { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; color: var(--ink); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.4rem; margin: 0; }
.kv dt { color: var(--ink-3); font-size: .92rem; }
.kv dd { margin: 0; color: var(--ink); font-weight: 550; }

/* ---------- 5. Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); font-weight: 700; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 650; color: var(--ink); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table--compact th, .table--compact td { padding: .6rem .8rem; }

/* ---------- 5. Callouts ---------- */
.callout {
  display: grid; grid-template-columns: 22px 1fr; gap: .8rem;
  padding: 1rem 1.15rem; border-radius: var(--radius);
  background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); color: var(--ink-2);
  font-size: .95rem;
}
.callout > .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--info); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout--ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.callout--ok > .icon { color: var(--ok); }
.callout--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.callout--warn > .icon { color: var(--warn); }
.callout--danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.callout--danger > .icon { color: var(--danger); }
.callout--accent { background: var(--accent-soft); border-color: var(--accent-line); }
.callout--accent > .icon { color: var(--accent-ink); }
.callout--plain { background: var(--surface); border-color: var(--line); }
.callout--plain > .icon { color: var(--ink-3); }

/* Answer-first summary box (SEO/GEO): a self-contained paragraph */
.answer { position: relative; padding: 1.4rem 1.5rem 1.4rem 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.answer::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); }
.answer__label { display: block; font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); margin-bottom: .5rem; }
.answer p { margin: 0 0 .7em; color: var(--ink-2); }
.answer p:last-child { margin-bottom: 0; }

/* ---------- 5. Breadcrumbs ---------- */
.crumbs { font-size: .84rem; color: var(--ink-3); margin: 0 0 1.4rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--line-2); border-top: 1.5px solid var(--line-2); transform: rotate(45deg); margin-right: .15rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ---------- 5. Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background:
    radial-gradient(900px 320px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--bg); }
.page-hero h1 { margin-bottom: .3em; max-width: 22ch; }
.page-hero .lead { max-width: 62ch; margin: 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* ---------- 5. Figures & media ---------- */
.figure { margin: 0; }
.figure__frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.figure figcaption, .figure__caption { margin-top: .75rem; color: var(--ink-3); font-size: .88rem; line-height: 1.5; }

/* Engineering panel for technical drawings (dark in both themes) */
.blueprint {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(700px 300px at 80% 0%, rgba(255, 107, 26, .10), transparent 65%),
    var(--steel-bg);
  border: 1px solid var(--steel-line);
  padding: clamp(14px, 2.5vw, 28px);
  color: var(--steel-ink);
}
.blueprint svg, .blueprint img { width: 100%; height: auto; }
.blueprint__label { position: absolute; top: 12px; right: 14px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--steel-ink-2); opacity: .8; }

/* Product photo stage */
.photo-stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(75% 70% at 50% 42%, #ffffff 0%, #f1efea 70%, #e7e4dc 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .photo-stage { background: radial-gradient(75% 70% at 50% 42%, #ffffff 0%, #eeebe4 62%, #d9d5cb 100%); border-color: #2a333e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .photo-stage { background: radial-gradient(75% 70% at 50% 42%, #ffffff 0%, #eeebe4 62%, #d9d5cb 100%); border-color: #2a333e; } }
.photo-stage img { width: 100%; height: auto; mix-blend-mode: multiply; }
.photo-stage__tag { position: absolute; left: 14px; top: 14px; }

/* ---------- 5. Accordion ---------- */
.accordion { display: grid; gap: .6rem; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--t), box-shadow var(--t); }
.accordion details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.2rem; font-weight: 650; color: var(--ink); font-size: 1rem; line-height: 1.4;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366707c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform var(--t);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 1.2rem 1.15rem; color: var(--ink-2); }
.accordion__body p:last-child { margin-bottom: 0; }

/* ---------- 5. Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: clamp(16px, 2vw, 22px); }
.step { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.step::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  background: var(--ink); color: var(--bg);
}
.step h3, .step__title { margin: .35rem 0 .35rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-3); }

/* Horizontal process strip */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); counter-reset: proc; }
.process__item { counter-increment: proc; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.process__media { background: var(--steel-bg); border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.process__media img, .process__media svg { width: 100%; height: 100%; object-fit: contain; }
.process__body { padding: 1rem 1.1rem 1.2rem; }
.process__body::before { content: "Step " counter(proc); display: block; font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); margin-bottom: .35rem; }
.process__body h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.process__body p { margin: 0; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 5. Stat / metric tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 1.2rem 1.3rem; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.stat__value { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: .3rem; font-size: .86rem; color: var(--ink-3); }
.section--steel .stats { background: var(--steel-2); border-color: var(--steel-line); }
.section--steel .stat { background: var(--steel-2); box-shadow: 1px 0 0 var(--steel-line), 0 1px 0 var(--steel-line); }
.section--steel .stat__value { color: #fff; }
.section--steel .stat__label { color: var(--steel-ink-2); }

/* ---------- 5. Trust bar ---------- */
.trustbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trustbar__item { background: var(--surface); padding: 1.1rem 1.2rem; display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: center; }
.trustbar__item .icon { width: 22px; height: 22px; color: var(--accent-ink); }
.trustbar__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.trustbar__item strong { display: block; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.trustbar__item span:not(.trustbar__icon) { display: block; font-size: .84rem; color: var(--ink-3); line-height: 1.4; }
.trustbar__item .trustbar__icon { display: grid; place-items: center; }
@media (max-width: 960px) { .trustbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trustbar { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 5. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 107, 26, .28), transparent 70%),
    var(--steel-bg);
  color: var(--steel-ink);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: var(--steel-ink-2); margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- 5. Selectable option card (radio/checkbox tiles) ---------- */
.option {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.option:hover { border-color: var(--line-2); }
.option.is-selected, .option.selected, .option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.option input[type="radio"], .option input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.option__title { font-weight: 650; color: var(--ink); }
.option__meta { font-size: .88rem; color: var(--ink-3); }
.option__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- 5. Progress stepper (checkout) ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.stepper li { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-3); font-weight: 600; }
.stepper li + li::before { content: ""; width: 28px; height: 1.5px; background: var(--line-2); margin-right: .25rem; }
.stepper__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; background: var(--surface-3); color: var(--ink-3); border: 1px solid var(--line); }
.stepper .is-done .stepper__n { background: var(--ok); color: #fff; border-color: var(--ok); }
.stepper .is-current { color: var(--ink); }
.stepper .is-current .stepper__n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- 5. Summary box (cart/checkout) ---------- */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; color: var(--ink-2); font-size: .95rem; }
.summary__row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; }
.summary__total span:first-child { font-weight: 700; color: var(--ink); }
.summary__total span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 5. Quantity stepper ---------- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; height: 46px; }
.qty button { width: 42px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.qty button:hover { background: var(--surface-3); color: var(--ink); }
.qty input { width: 52px; border: 0; border-inline: 1px solid var(--line); text-align: center; background: transparent; font-weight: 650; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.qty--sm { height: 38px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 42px; }

/* ---------- 5. Empty state ---------- */
.empty { text-align: center; padding: clamp(36px, 6vw, 72px) 1rem; }
.empty__icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 20px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); }
.empty__icon .icon { width: 32px; height: 32px; }
.empty h2, .empty h3 { margin-bottom: .4em; }
.empty p { color: var(--ink-3); max-width: 46ch; margin: 0 auto 1.4rem; }

/* ---------- 5. Account layout ---------- */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; }
.account-nav a { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .94rem; }
.account-nav a:hover { background: var(--surface-3); color: var(--ink); }
.account-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.account-nav .icon { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .account { grid-template-columns: minmax(0, 1fr); }
  .account-nav { position: static; display: flex; overflow-x: auto; padding: .35rem; }
  .account-nav a { white-space: nowrap; }
}

/* Auth card (login/register) */
.auth { display: grid; place-items: center; padding-block: clamp(40px, 7vw, 88px); }
.auth__card { width: 100%; max-width: 440px; }
.auth__card h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }

/* ---------- 6. Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field > label, .label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent-ink); }
.input, .select, .textarea,
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"],
.field input[type="number"], .field input[type="search"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .7rem .9rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--t), box-shadow var(--t);
}
.textarea, .field textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.select, .field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366707c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 16px no-repeat;
}
.help { font-size: .84rem; color: var(--ink-3); margin: 0; }
.field-error, .error-text { font-size: .84rem; color: var(--danger); margin: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .94rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; color: var(--ink); margin-bottom: .8rem; }

/* Form section card with numbered heading */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); }
.form-card + .form-card { margin-top: 1.2rem; }
.form-card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.form-card__num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: .92rem; flex-shrink: 0; }
.form-card__head h2, .form-card__head h3 { margin: 0; font-size: 1.2rem; }

/* Flash / alert messages */
.alert { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid; margin-bottom: 1.2rem; }
.alert > .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert--error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--ink); }
.alert--error > .icon { color: var(--danger); }
.alert--ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ink); }
.alert--ok > .icon { color: var(--ok); }
.alert--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink); }
.alert--warn > .icon { color: var(--warn); }
.alert--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--ink); }
.alert--info > .icon { color: var(--info); }

/* ---------- 7. Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.gap-sm { --cluster: .5rem; } .gap-lg { --cluster: 1.25rem; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 1.5rem 0; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (min-width: 641px) { .show-sm { display: none !important; } }

/* Reveal-on-scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- 7. Print ---------- */
@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    color-scheme: light;
    --bg: #fff; --bg-band: #fff; --surface: #fff; --surface-2: #fafafa; --surface-3: #f2f2f2;
    --ink: #000; --ink-2: #222; --ink-3: #444; --line: #ccc; --line-2: #bbb;
    --accent-ink: #9a3a08; --accent-soft: #fff4ec; --ok: #0d7f57; --warn: #8a5200; --danger: #a82828; --info: #1d5bb8;
  }
  .topline, .navbar, .drawer, .footer, .skip-link, .no-print, .theme-toggle, .cart-btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .card, .callout, .answer, .summary { box-shadow: none !important; break-inside: avoid; }
  .blueprint { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .section, .section--tight { padding-block: 16px; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Drawer meta rows */
.drawer__meta span, .drawer__meta a { display: inline-flex; gap: .55rem; align-items: center; text-decoration: none; }
.drawer__meta .icon { color: var(--accent-ink); }

/* Wide technical drawings: scroll sideways on phones instead of shrinking
   text to an unreadable size. Wrap the SVG in .blueprint__scroll. */
.blueprint__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blueprint__hint { display: none; }
@media (max-width: 640px) {
  .blueprint__label { position: static; display: block; text-align: right; margin-bottom: .5rem; }
  .blueprint__scroll > svg, .blueprint__scroll > img { min-width: 680px; }
  .blueprint__hint { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .78rem; color: var(--steel-ink-2); }
  .blueprint__hint .icon { width: 14px; height: 14px; }
  .topline__items { flex-wrap: nowrap; }
}

/* Illustrated process strip on the dark engineering band */
.section--steel .process__item { background: var(--steel-2); border-color: var(--steel-line); }
.section--steel .process__media { background: var(--steel-bg); border-color: var(--steel-line); }
.section--steel .process__body h3 { color: #fff; }
.section--steel .process__body p { color: var(--steel-ink-2); }
.section--steel .process__body::before { color: var(--accent-2); }

/* Long-form content: tables in scroll wrappers, and component lists that
   must not inherit prose list indentation */
.prose .table-wrap { margin: 1.4em 0; }
.prose .table-wrap > table { margin: 0; }
.prose .meta-list, .prose .ticks, .prose .steps, .prose .process { padding-left: 0; }
.prose .meta-list li, .prose .ticks li { margin: 0; }
.prose .ticks li::marker, .prose .meta-list li::marker { content: none; }

/* Star rating */
.stars { display: inline-flex; gap: 2px; }
.stars .icon { width: 18px; height: 18px; color: var(--line-2); }
.stars .icon.is-on { color: #f5a623; fill: #f5a623; }

/* Dark bands need an edge in night mode, where --steel-bg sits close to --bg */
.cta-band { border: 1px solid var(--steel-line); }
:root[data-theme="dark"] .cta-band { background: radial-gradient(600px 300px at 100% 0%, rgba(255, 107, 26, .22), transparent 70%), #121922; border-color: #263241; }
:root[data-theme="dark"] .section--steel { border-block: 1px solid #1d2733; background-color: #0e141b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band { background: radial-gradient(600px 300px at 100% 0%, rgba(255, 107, 26, .22), transparent 70%), #121922; border-color: #263241; }
  :root:not([data-theme="light"]) .section--steel { border-block: 1px solid #1d2733; background-color: #0e141b; }
}

/* Phone: call-to-action buttons as one even column */
@media (max-width: 520px) {
  .cta-band__actions { display: grid; }
  .cta-band__actions .btn { width: 100%; }
}

/* Illustrated steps: two per row until there is room for four legible ones */
@media (min-width: 961px) and (max-width: 1180px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
