/* ═══════════════════════════════════════════════════════════════════════════
   components.css — every component on the site
   ───────────────────────────────────────────────────────────────────────────
   Order: nav · buttons · chips · hero · marquee · console (dark scope) ·
          capabilities · spec table · process · quality · equipment · FAQ ·
          RFQ · footer · print sheet · responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Dark scope ───────────────────────────────────────────────────────────
   The console and the quality band are dark in both themes. Rather than
   writing a second set of component rules, we remap the tokens inside the
   scope — every component below then just works.                            */
.s-dark {
  color-scheme: dark;   /* native select popups render dark instead of white-on-white */
  --bg:         var(--k-bg);
  --bg-deep:    #0E1014;
  --surface:    var(--k-surface);
  --surface-2:  var(--k-surface-2);
  --surface-3:  var(--k-surface-3);
  --ink:        var(--k-ink);
  --ink-2:      var(--k-ink-2);
  --ink-3:      var(--k-ink-3);
  --line:       var(--k-line);
  --line-2:     var(--k-line-2);
  --line-3:     rgba(247, 248, 250, 0.05);
  --accent:     var(--k-accent);
  --accent-ink: var(--k-accent-2);
  --accent-deep:var(--k-accent-2);
  --accent-soft:var(--k-accent-soft);
  --accent-glow:rgba(79, 140, 255, 0.26);
  --on-accent:  #06111F;
  --ok: var(--k-ok);   --ok-bg:   rgba(95, 214, 138, 0.14);  --ok-ink:   var(--k-ok);
  --warn: var(--k-warn); --warn-bg: rgba(245, 196, 81, 0.14); --warn-ink: var(--k-warn);
  --high: var(--k-high); --high-bg: rgba(255, 138, 115, 0.14);--high-ink: var(--k-high);
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --sh-2: 0 6px 20px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
  --sh-3: 0 24px 60px rgba(0, 0, 0, 0.62), 0 6px 18px rgba(0, 0, 0, 0.42);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: var(--bg);
  color: var(--ink);
}

/* ═══ NAV ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform var(--dur-3) var(--ease-soft);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: var(--shell-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur-2) ease-out,
    background var(--dur-2) ease-out,
    box-shadow var(--dur-2) ease-out;
}
/* Fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav__inner { background: rgba(244, 245, 247, 0.78); }
  [data-theme="dark"] .nav__inner { background: rgba(8, 9, 11, 0.78); }
}
.nav.is-stuck .nav__inner {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(14, 17, 22, 0.02), 0 8px 30px rgba(14, 17, 22, 0.06);
}

.brand { display: flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; }
.brand__mark { color: var(--ink); flex: 0 0 auto; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-inline: auto;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding-inline: var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.008em;
  transition: background var(--dur-1) ease-out, color var(--dur-1) ease-out;
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link[aria-current="true"] { color: var(--ink); font-weight: 600; }

.nav__tools { display: flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }

.seg-mini {
  display: inline-flex;
  padding: 2px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-3);
}
.seg-mini button {
  height: 28px;
  min-width: 34px;
  padding-inline: var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  transition: background var(--dur-1) ease-out, color var(--dur-1) ease-out;
}
.seg-mini button:hover { color: var(--ink); }
.seg-mini button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-1);
}

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: background var(--dur-1) ease-out, color var(--dur-1) ease-out;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ── Sticky section rail — appears once past the hero ─────────────────── */
.subnav {
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  left: 50%;
  transform: translate(-50%, -14px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) ease-out, transform var(--dur-2) var(--ease-out);
}
.subnav.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.subnav__inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--sh-2);
  max-width: calc(100vw - 2 * var(--gutter));
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__link {
  white-space: nowrap;
  height: 30px;
  padding-inline: var(--sp-4);
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 550;
  color: var(--ink-2);
  transition: background var(--dur-1) ease-out, color var(--dur-1) ease-out;
}
.subnav__link:hover { background: var(--surface-2); color: var(--ink); }
.subnav__link[aria-current="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }

/* ═══ BUTTONS ═══════════════════════════════════════════════════════════ */
.btn {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--btn-h);
  padding: 0 var(--sp-6);
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 620;
  letter-spacing: -0.008em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background var(--dur-1) ease-out,
    border-color var(--dur-1) ease-out,
    color var(--dur-1) ease-out,
    transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) ease-out;
}
.btn:active { transform: scale(0.975); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.42; cursor: not-allowed; transform: none;
}

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--accent-deep); color: var(--on-accent); box-shadow: var(--sh-2); }

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--ink); color: var(--bg); opacity: 0.86; }

.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }

.btn--quiet { color: var(--accent-ink); padding-inline: var(--sp-3); }
.btn--quiet:hover { background: var(--accent-soft); color: var(--accent-ink); }

.btn--sm { --btn-h: 36px; padding-inline: var(--sp-4); font-size: var(--fs-xs); }
.btn--lg { --btn-h: 54px; padding-inline: var(--sp-7); font-size: var(--fs-body); }
.btn--block { width: 100%; }
.btn svg { flex: 0 0 auto; }

.btn__arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ═══ CHIPS / TAGS / BADGES ═════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 28px;
  padding-inline: var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.chip--ink { border-color: transparent; background: var(--ink); color: var(--bg); }
.chip--ok   { border-color: transparent; background: var(--ok-bg);   color: var(--ok-ink); }
.chip--warn { border-color: transparent; background: var(--warn-bg); color: var(--warn-ink); }
.chip--high { border-color: transparent; background: var(--high-bg); color: var(--high-ink); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.dot--live { position: relative; }
.dot--live::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0.5;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ═══ HERO ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 7rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__copy { display: grid; gap: var(--sp-6); align-content: center; }
.hero__eyebrow { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.hero h1 {
  font-size: var(--fs-d1);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
}
.hero__lede {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
  letter-spacing: -0.012em;
}
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.hero__note { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-3); }

/* ── The specimen: a drawing that draws itself ─────────────────────────── */
.specimen {
  position: relative;
  border-radius: var(--r-5);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  padding: var(--sp-5);
  overflow: hidden;
}
.specimen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}
.specimen__title {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.specimen svg { width: 100%; height: auto; overflow: visible; }

/* Drawing layers */
.ln        { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ln--thin  { stroke-width: 0.9; }
.ln--hid   { stroke: var(--ink-3); stroke-width: 0.8; stroke-dasharray: 5 4; }
.ln--axis  { stroke: var(--accent); stroke-width: 0.7; stroke-dasharray: 12 4 3 4; opacity: 0.85; }
.ln--dim   { stroke: var(--ink-3); stroke-width: 0.7; }
.ln--accent{ stroke: var(--accent); stroke-width: 1.4; }
.fill-soft { fill: var(--surface-2); }
.fill-hatch{ fill: url(#hatch); }
.txt-dim {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.04em; fill: var(--ink-3);
}
.txt-key {
  font-family: var(--f-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.06em; fill: var(--accent-ink);
}

/* stroke draw-on */
.draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.is-ready .draw { animation: drawLine var(--dur-4) var(--ease-out) forwards; animation-delay: var(--d, 0ms); }

.specimen__foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-4);
}
.readout-cell { display: grid; gap: 2px; min-width: 0; }
.readout-cell__k {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-3);
}
.readout-cell__v {
  font-family: var(--f-mono); font-size: 1.0625rem; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.readout-cell__u { font-size: 0.6875rem; color: var(--ink-3); margin-left: 2px; font-weight: 500; }

/* Floating "measured" tag that overlaps the card edge */
.specimen__tag {
  position: absolute;
  top: var(--sp-5);
  right: calc(var(--sp-5) * -1 + 18px);
  z-index: 3;
}

/* ── Stat strip under the hero ─────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.stat { background: var(--bg); padding: var(--sp-6) var(--sp-5); display: grid; gap: var(--sp-2); }
.stat__v {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.stat__v span { font-size: 0.42em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.stat__k { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }

/* ═══ MARQUEE ═══════════════════════════════════════════════════════════ */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--line);
  background: var(--bg);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  white-space: nowrap;
}
.marquee__item::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--line-2);
}

/* ═══ CONSOLE ═══════════════════════════════════════════════════════════ */
.console {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--ink);
  border-block: 1px solid var(--line-3);
}
.console__head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.console__head h2 { max-width: 20ch; }
.console__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }

.console__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

/* ── Form controls ─────────────────────────────────────────────────────── */
.cfg { display: grid; gap: var(--sp-5); }
.fset {
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
  margin: 0;
}
.fset__head { display: flex; align-items: center; gap: var(--sp-3); }
.fset__num {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--accent-ink);
  padding: 3px 7px; border-radius: var(--r-1); background: var(--accent-soft);
}
.fset__title { font-size: var(--fs-sm); font-weight: 650; letter-spacing: -0.01em; }
.fset__hint { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }

.field { display: grid; gap: var(--sp-2); min-width: 0; }
.field__label {
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
  letter-spacing: -0.004em; display: flex; align-items: center; gap: var(--sp-2);
}
.field__label .opt { font-weight: 450; color: var(--ink-3); }
.field__box {
  display: flex; align-items: center; gap: var(--sp-2);
  height: 44px; padding-inline: var(--sp-4);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-2);
  transition: border-color var(--dur-1) ease-out, background var(--dur-1) ease-out,
              box-shadow var(--dur-1) ease-out;
}
.field__box:hover { background: var(--surface-3); }
.field__box:focus-within {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__box input, .field__box select {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: none;
  font-size: var(--fs-sm); font-weight: 550;
  font-family: var(--f-mono); font-variant-numeric: tabular-nums;
  color: var(--ink);
  height: 100%;
  appearance: none;
}
.field__box select { font-family: var(--f-body); font-weight: 550; padding-right: var(--sp-5); cursor: pointer; }
/* The console is dark in both themes, but a light-theme page root makes the
   native option list white — without this the text is white-on-white. */
.s-dark .field__box select option {
  background: #17191D;
  color: #F5F6F8;
}

/* ── Custom dropdown (.cs) ──────────────────────────────────────────────
   The native popup is unreliable in a dark scope, so once JS enhances a
   select it is visually hidden and this widget takes over. */
.field__box select.is-enhanced {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cs { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; display: flex; }
.cs__btn {
  appearance: none; border: 0; background: none; outline: none;
  flex: 1 1 auto; min-width: 0; height: 100%;
  display: flex; align-items: center;
  font: inherit; font-size: var(--fs-sm); font-weight: 550;
  color: var(--ink); text-align: left;
  padding: 0 var(--sp-5) 0 0; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs__btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); border-radius: 6px; }
.cs__panel {
  position: absolute; z-index: 80;
  top: calc(100% + 8px); left: -13px; right: -13px;
  max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
  background: #1B1E24;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--sh-2);
  padding: 6px;
}
.cs__group {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.09em;
  padding: 12px 10px 4px;
}
.cs__group:first-child { padding-top: 6px; }
.cs__opt {
  padding: 9px 10px;
  border-radius: 9px;
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-1), color var(--dur-1);
}
.cs__opt:hover { background: var(--accent-soft); color: var(--ink); }
.cs__opt.is-selected { color: var(--accent-ink); font-weight: 650; }
.cs__opt.is-selected::after { content: " ✓"; }
.field__box--select { position: relative; }
.field__box--select::after {
  content: ""; position: absolute; right: var(--sp-4); top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg); pointer-events: none;
}
.field__suffix {
  font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3);
  flex: 0 0 auto; font-weight: 500;
}
.field__box input::placeholder { color: var(--ink-3); font-family: var(--f-body); font-weight: 450; }
.field__err { font-size: var(--fs-xs); color: var(--high); display: none; }
.field.is-invalid .field__box { border-color: var(--high); box-shadow: 0 0 0 3px var(--high-bg); }
.field.is-invalid .field__err { display: block; }

/* Valid state — only after the user has actually answered something */
.field.is-valid .field__box { border-color: var(--ok); }

/* ── Segmented control ─────────────────────────────────────────────────── */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: var(--r-2);
}
.seg label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 38px;
  padding-inline: var(--sp-3);
  border-radius: var(--r-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-1) ease-out, color var(--dur-1) ease-out, box-shadow var(--dur-1) ease-out;
}
.seg label:hover { color: var(--ink); }
.seg input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-1); }
.seg input:checked ~ span { color: var(--ink); }
.seg label:has(input:checked) {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-1);
}
.seg label:has(input:checked)::after {
  content: ""; position: absolute; left: var(--sp-3); top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--accent);
}
.seg label:has(input:checked) span { padding-left: var(--sp-3); }
.seg--stack { grid-auto-flow: row; }

/* ── Process choice cards ──────────────────────────────────────────────── */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.pick {
  position: relative;
  display: grid;
  gap: 3px;
  padding: var(--sp-3) var(--sp-3) calc(var(--sp-3) + 2px);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-1) ease-out, background var(--dur-1) ease-out, transform var(--dur-1) var(--ease-out);
}
.pick:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-1); }
.pick__code { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-3); }
.pick__name { font-size: var(--fs-xs); font-weight: 620; color: var(--ink); line-height: 1.25; letter-spacing: -0.006em; }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick:has(input:checked) .pick__code { color: var(--accent-ink); }
.pick:has(input:checked)::after {
  content: ""; position: absolute; top: 9px; right: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ── Drop zone ─────────────────────────────────────────────────────────── */
.drop {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  justify-items: center;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-3);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color var(--dur-2) ease-out, background var(--dur-2) ease-out;
}
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop.is-over { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { color: var(--ink-3); }
.drop:hover .drop__icon, .drop.is-over .drop__icon { color: var(--accent-ink); }
.drop__title { font-size: var(--fs-sm); font-weight: 620; color: var(--ink); }
.drop__meta { font-size: var(--fs-xs); color: var(--ink-3); max-width: 44ch; }

.progress { width: 100%; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress__bar {
  height: 100%; width: 0; background: var(--accent);
  transition: width var(--dur-2) var(--ease-out);
}

/* ── Measured geometry strip ───────────────────────────────────────────── */
.measures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-2);
  background: var(--surface-2);
}
.measures[hidden] { display: none; }
.measure { display: grid; gap: 2px; min-width: 0; }
.measure__k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.measure__v { font-family: var(--f-mono); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

.queue { display: grid; gap: var(--sp-2); }
.queue__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  border-radius: var(--r-2);
  background: var(--surface);
  font-size: var(--fs-xs);
}
.queue__name { font-family: var(--f-mono); color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue__note { color: var(--ink-3); margin-left: auto; white-space: nowrap; }

/* ── Readout ───────────────────────────────────────────────────────────── */
.readout {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.readout__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.readout__price { display: grid; gap: var(--sp-1); }
.readout__amount {
  display: flex; align-items: baseline; gap: var(--sp-2);
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.readout__amount .cur { font-size: 0.42em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.readout.is-pending .readout__amount { color: var(--ink-3); }
.readout__amount .spin { animation: flash var(--dur-2) var(--ease-out); }
@keyframes flash { from { opacity: 0.35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.readout__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden;
}
.readout__cell { background: var(--surface); padding: var(--sp-3) var(--sp-4); display: grid; gap: 2px; }

.bars { display: grid; gap: var(--sp-3); }
.bars__row { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2) var(--sp-3); align-items: center; }
.bars__label { font-size: var(--fs-xs); color: var(--ink-2); }
.bars__val { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bars__track { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.bars__fill {
  height: 100%; width: 0; border-radius: 2px; background: var(--ink);
  transition: width var(--dur-3) var(--ease-out);
}
.bars__row:nth-child(2) .bars__fill { background: var(--accent); }
.bars__row:nth-child(3) .bars__fill { background: var(--ink-3); }

.dfm { display: grid; gap: var(--sp-2); }
.dfm__row {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-left-width: 2px;
  border-radius: var(--r-2);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-2);
}
.dfm__row[data-level="ok"]   { border-left-color: var(--ok); }
.dfm__row[data-level="warn"] { border-left-color: var(--warn); }
.dfm__row[data-level="high"] { border-left-color: var(--high); }
.dfm__sev {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 6px; border-radius: var(--r-1); white-space: nowrap; margin-top: 1px; font-weight: 600;
}
.dfm__row[data-level="ok"]   .dfm__sev { background: var(--ok-bg);   color: var(--ok-ink); }
.dfm__row[data-level="warn"] .dfm__sev { background: var(--warn-bg); color: var(--warn-ink); }
.dfm__row[data-level="high"] .dfm__sev { background: var(--high-bg); color: var(--high-ink); }

.readout__actions { display: grid; gap: var(--sp-2); }
.readout__legal { font-size: 11px; color: var(--ink-3); line-height: 1.5; }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%; bottom: var(--sp-6);
  transform: translate(-50%, 20px);
  z-index: 150;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg);
  font-size: var(--fs-sm); font-weight: 550;
  box-shadow: var(--sh-3);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) ease-out, transform var(--dur-2) var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ═══ CAPABILITIES ══════════════════════════════════════════════════════ */
.caps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.cap {
  grid-column: span 2;
  position: relative;
  display: grid;
  gap: var(--sp-4);
  align-content: start;
  padding: var(--sp-6);
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease-out, border-color var(--dur-2) ease-out;
}
.cap:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.cap--wide { grid-column: span 4; }
.cap--full { grid-column: span 6; }
.cap--half { grid-column: span 3; }
.cap__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--sp-7);
  align-items: center;
}
.cap__list { display: grid; gap: var(--sp-3); }
.cap__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.55;
  border-bottom: 1px solid rgba(128, 130, 136, 0.26);
}
.cap__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cap__list b {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; padding-top: 3px; opacity: 0.55;
}
.cap__code { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-3); }
.cap__name { font-size: 1.25rem; font-weight: 680; letter-spacing: -0.024em; line-height: 1.15; }
.cap__body { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.cap__spec {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
  padding-top: var(--sp-4); border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11.5px; color: var(--accent-ink); letter-spacing: 0.02em;
}
.cap--feature {
  background: var(--ink); color: var(--bg); border-color: transparent;
}
.cap--feature .cap__body { color: var(--bg); opacity: 0.72; }
.cap--feature .cap__code { color: var(--bg); opacity: 0.55; }
.cap--feature .cap__spec { border-top-color: rgba(128, 130, 136, 0.3); color: var(--bg); }
.cap--feature .cap__name { color: var(--bg); }
.cap--feature .cap__list { border-top: 1px solid rgba(128, 130, 136, 0.3); padding-top: var(--sp-5); }

/* ═══ SPEC TABLE ════════════════════════════════════════════════════════ */
.tablewrap {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table caption { text-align: left; padding: var(--sp-5) var(--sp-5) 0; }
.table th, .table td { text-align: left; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.table thead th {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3);
  background: var(--surface-2);
  position: sticky; top: var(--nav-h); z-index: 2;
}
.table tbody tr { transition: background var(--dur-1) ease-out; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .m { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 550; }
.table .grade { font-family: var(--f-mono); color: var(--accent-ink); }

/* ═══ PROCESS ═══════════════════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.step {
  background: var(--surface);
  padding: var(--sp-6) var(--sp-5);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  position: relative;
  transition: background var(--dur-2) ease-out;
}
.step:hover { background: var(--surface-2); }
.step__num {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--accent-ink);
}
.step__name { font-size: var(--fs-sm); font-weight: 660; letter-spacing: -0.012em; }
.step__body { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.55; }
.step__bar { height: 2px; background: var(--surface-3); border-radius: 2px; overflow: hidden; margin-top: var(--sp-2); }
.step__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width var(--dur-4) var(--ease-out); }
.step.is-in .step__bar i { width: 100%; }

/* ═══ QUALITY ═══════════════════════════════════════════════════════════ */
.quality__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.quality__list { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.qitem { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.qitem__tick {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-top: 1px;
}
.qitem__txt { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.qitem__txt b { color: var(--ink); }

.qstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.qstat {
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  display: grid; gap: var(--sp-2);
}
.qstat__v {
  font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; display: flex; align-items: baseline; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.qstat__v span { font-size: 0.36em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.qstat__k { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }

/* ═══ EQUIPMENT TEASER ══════════════════════════════════════════════════ */
.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--r-5);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.gates { display: grid; gap: var(--sp-3); }
.gate {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: var(--sp-4); align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  transition: border-color var(--dur-2) ease-out, transform var(--dur-2) var(--ease-out);
}
.gate:hover { border-color: var(--accent); transform: translateX(3px); }
.gate__id { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.06em; }
.gate__name { font-size: var(--fs-sm); font-weight: 600; }
.gate__out { font-size: var(--fs-xs); color: var(--ink-3); font-family: var(--f-mono); }

/* ═══ FAQ ═══════════════════════════════════════════════════════════════ */
.faq { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc > summary {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-6) 0;
  cursor: pointer; list-style: none;
  font-family: var(--f-display);
  font-size: clamp(1.0625rem, 1.7vw, 1.375rem);
  font-weight: 620; letter-spacing: -0.02em;
  color: var(--ink);
  transition: color var(--dur-1) ease-out;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { color: var(--accent-ink); }
.acc__sign {
  margin-left: auto; flex: 0 0 auto;
  width: 26px; height: 26px; position: relative;
  border-radius: 50%; border: 1px solid var(--line-2);
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-2) ease-out, border-color var(--dur-2) ease-out;
}
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor;
  transform: translate(-50%, -50%);
}
.acc__sign::before { width: 10px; height: 1.4px; }
.acc__sign::after  { width: 1.4px; height: 10px; transition: transform var(--dur-2) var(--ease-out); }
.acc[open] .acc__sign { transform: rotate(90deg); background: var(--accent); border-color: transparent; color: var(--on-accent); }
.acc[open] .acc__sign::after { transform: translate(-50%, -50%) scaleY(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-soft); }
.acc[open] .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { padding-bottom: var(--sp-7); max-width: 74ch; color: var(--ink-2); font-size: var(--fs-body); }
.acc__body p + p { margin-top: var(--sp-4); }

/* ═══ RFQ ═══════════════════════════════════════════════════════════════ */
.rfq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--sp-6);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.form {
  display: grid; gap: var(--sp-5);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.form textarea {
  width: 100%; min-height: 104px; resize: vertical;
  padding: var(--sp-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-2);
  font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 450;
  line-height: 1.6; color: var(--ink);
  outline: none;
  transition: border-color var(--dur-1) ease-out, box-shadow var(--dur-1) ease-out, background var(--dur-1) ease-out;
}
.form textarea::placeholder { color: var(--ink-3); }
.form textarea:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Auto-carried technical fields */
.carried {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-3);
  background: var(--accent-soft);
  border: 1px solid transparent;
}
.carried__head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.carried__title { font-size: var(--fs-xs); font-weight: 650; color: var(--accent-ink); letter-spacing: -0.004em; }
.carried__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }
.carried__item { display: grid; gap: 1px; min-width: 0; }
.carried__k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.carried__v {
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.carried__v[data-empty="true"] { color: var(--ink-3); font-weight: 450; }

.check { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.55; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }

.formstatus {
  display: none;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.formstatus.is-error { display: grid; background: var(--high-bg); color: var(--high-ink); }
.formstatus.is-ok { display: grid; background: var(--ok-bg); color: var(--ok-ink); }

/* Receipt card */
.receipt {
  display: grid; gap: var(--sp-4);
  padding: var(--sp-6);
  border-radius: var(--r-4);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--sh-3);
}
.receipt[hidden] { display: none; }
.receipt__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.receipt__id {
  font-family: var(--f-mono); font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 600;
  letter-spacing: 0.01em;
}
.receipt p { font-size: var(--fs-sm); opacity: 0.78; line-height: 1.55; }
.receipt__rows { display: grid; gap: var(--sp-2); border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: var(--sp-4); }
.receipt__row { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-xs); }
.receipt__row span:first-child { opacity: 0.6; }
.receipt__row span:last-child { font-family: var(--f-mono); }

/* Aside summary */
.aside { display: grid; gap: var(--sp-4); }
.aside__card {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  display: grid; gap: var(--sp-4);
}
.aside__title { font-size: var(--fs-sm); font-weight: 650; letter-spacing: -0.012em; }
.aside__list { display: grid; gap: var(--sp-3); }
.aside__row { display: grid; grid-template-columns: 18px 1fr; gap: var(--sp-3); align-items: start; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; }
.aside__row svg { color: var(--accent-ink); margin-top: 2px; }

/* ═══ FOOTER ════════════════════════════════════════════════════════════ */
.footer {
  padding-block: clamp(3rem, 6vw, 5rem) var(--sp-7);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.footer__col { display: grid; gap: var(--sp-4); align-content: start; }
.footer__h {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.footer__links { display: grid; gap: var(--sp-3); }
.footer__links a { font-size: var(--fs-sm); color: var(--ink-2); }
.footer__links a:hover { color: var(--accent-ink); }
.footer__blurb { font-size: var(--fs-sm); color: var(--ink-2); max-width: 40ch; line-height: 1.6; }
.footer__bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--ink-3);
}
.footer__bar a { color: var(--ink-3); }
.footer__bar a:hover { color: var(--ink); }

/* ═══ PRINT SHEET — a clean A4 quote ════════════════════════════════════ */
.sheet { display: none; }

@media print {
  @page { size: A4; margin: 14mm; }

  html, body { background: #fff; }
  .nav, .subnav, .hero, .marquee, .console, .toast, .footer, .skip,
  .section:not(.print-keep), .teaser, .receipt, .sheet + * { display: none !important; }
  .sheet { display: block !important; }

  .sheet {
    color: #0E1116;
    font-family: var(--f-body);
    font-size: 10.5pt;
    line-height: 1.5;
  }
  .sheet__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12mm; padding-bottom: 5mm; border-bottom: 2px solid #0E1116; margin-bottom: 6mm;
  }
  .sheet__brand { font-family: var(--f-display); font-size: 17pt; font-weight: 700; letter-spacing: -0.03em; }
  .sheet__doctype { font-family: var(--f-mono); font-size: 8pt; letter-spacing: 0.14em; text-transform: uppercase; color: #5A6169; }
  .sheet__meta { text-align: right; font-family: var(--f-mono); font-size: 8.5pt; line-height: 1.7; }
  .sheet__meta b { display: inline-block; min-width: 24mm; color: #5A6169; font-weight: 500; }
  .sheet__block { margin-bottom: 6mm; break-inside: avoid; }
  .sheet__h {
    font-family: var(--f-mono); font-size: 8pt; letter-spacing: 0.12em; text-transform: uppercase;
    color: #5A6169; padding-bottom: 1.5mm; margin-bottom: 2.5mm; border-bottom: 1px solid #D5D9DF;
  }
  .sheet__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2mm 6mm; }
  .sheet__row { display: flex; justify-content: space-between; gap: 3mm; border-bottom: 1px dotted #C9CED5; padding-bottom: 1mm; }
  .sheet__row span:first-child { color: #5A6169; }
  .sheet__row span:last-child { font-family: var(--f-mono); font-weight: 600; }
  .sheet__money { display: flex; justify-content: space-between; align-items: flex-end; margin: 4mm 0 6mm; }
  .sheet__amount { font-family: var(--f-display); font-size: 26pt; font-weight: 700; letter-spacing: -0.04em; }
  .sheet__amount small { font-size: 10pt; font-weight: 500; color: #5A6169; letter-spacing: 0; }
  .sheet table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .sheet th, .sheet td { text-align: left; padding: 2mm 2mm; border-bottom: 1px solid #E2E5EA; }
  .sheet th { font-family: var(--f-mono); font-size: 7.5pt; letter-spacing: 0.1em; text-transform: uppercase; color: #5A6169; }
  .sheet td.num { font-family: var(--f-mono); text-align: right; }
  .sheet__dfm li { padding: 1.5mm 0 1.5mm 5mm; position: relative; break-inside: avoid; font-size: 9pt; }
  .sheet__dfm li::before { content: "—"; position: absolute; left: 0; color: #5A6169; }
  .sheet__foot {
    margin-top: 8mm; padding-top: 3mm; border-top: 1px solid #D5D9DF;
    font-size: 8pt; color: #5A6169; line-height: 1.6;
  }
  .a4-break { break-before: page; }
}

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero h1 { max-width: 18ch; }
  .console__grid { grid-template-columns: 1fr; }
  .readout { position: static; }
  .console__head { grid-template-columns: 1fr; }
  .console__badges { justify-content: flex-start; }
  .caps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cap, .cap--half { grid-column: span 2; }
  .cap--wide, .cap--full { grid-column: span 4; }
  .cap__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rfq__grid { grid-template-columns: 1fr; }
  .quality__grid { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  /* The nav CTA duplicates the hero CTA one screen down, and the row does not
     fit beside the brand once the language switch is on it. */
  .nav__tools .btn { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carried__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --nav-h: 50px; }
  .subnav { display: none; }
  /* The equipment teaser's pill button and badge refuse to wrap by design, so
     they get the full width instead of pushing the section 7px past the edge. */
  .teaser { padding: var(--sp-6) var(--sp-5); }
  .teaser .btn { width: 100%; }
  .teaser .chip { white-space: normal; height: auto; min-height: 28px; padding-block: 5px; }
  .qstats { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .cap, .cap--half, .cap--wide, .cap--full { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .specimen__tag { display: none; }
  .hero__cta .btn { width: 100%; }
  .carried__grid { grid-template-columns: 1fr; }
  .seg { grid-auto-flow: row; }
  .seg label { justify-content: flex-start; padding-inline: var(--sp-4); }
  .seg label:has(input:checked)::after { left: var(--sp-2); }
  .seg label:has(input:checked) span { padding-left: var(--sp-4); }
  /* Spec table becomes stacked cards */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tbody tr {
    padding: var(--sp-4) 0; border-bottom: 1px solid var(--line);
  }
  .table td { border: 0; padding: 2px var(--sp-5); display: flex; justify-content: space-between; gap: var(--sp-4); }
  .table td::before {
    content: attr(data-th);
    font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-3); flex: 0 0 auto;
  }
  .tablewrap { border-radius: var(--r-3); }
  .toast { left: var(--sp-4); right: var(--sp-4); transform: translate(0, 20px); width: auto; }
  .toast.is-on { transform: translate(0, 0); }
}

/* ═══ ADDENDA — utilities introduced by the page markup ════════════════ */

/* SVG fade-in for drawing elements that should not "draw", only appear */
.fade { opacity: 0; animation: fadeIn 720ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }

/* Theme toggle glyph: light shows the moon (go dark), dark shows the sun */
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: inline; }
[data-theme="dark"] .theme-moon { display: none; }

/* Quantity shortcut chips — kept tappable without dominating the row */
.chip--tap { height: 34px; padding-inline: var(--sp-4); cursor: pointer; }
.chip--tap:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--ink); }
@media (max-width: 680px) { .chip--tap { height: 42px; padding-inline: var(--sp-5); } }

/* The carried-over block reports "nothing yet" until a quote exists */
.carried__v[data-empty="true"] { color: var(--ink-3); font-weight: 450; }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; animation: none; }
}

/* ═══ INTERIOR PAGES — equipment.html, privacy.html ═════════════════════ */
.phero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}
.phero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.phero h1 { max-width: 20ch; }
.crumbs {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--f-mono); font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--sp-5);
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs::after { content: "/"; opacity: 0.4; }

/* Bilingual clarification questions, side by side */
.qlist {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.qlist__head, .qlist__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  align-items: start;
}
.qlist__head {
  background: var(--surface-2);
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3);
}
.qlist__num {
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 600;
  color: var(--accent-ink); padding-top: 2px;
}
.qlist__q { font-size: var(--fs-sm); font-weight: 620; color: var(--ink); line-height: 1.45; }
html[lang="zh"] .qlist__q { font-family: var(--f-cjk); }
.qlist__why { display: block; margin-top: var(--sp-2); font-size: var(--fs-xs); font-weight: 450; color: var(--ink-3); line-height: 1.5; }
.qlist__row:hover { background: var(--surface-2); }

@media (max-width: 900px) {
  .phero__grid { grid-template-columns: 1fr; }
  .qlist__head { display: none; }
  .qlist__row { grid-template-columns: 40px 1fr; }
  .qlist__row .qlist__q:last-child { grid-column: 2; }
}

/* ═══ LEGAL DOCUMENT LAYOUT — privacy.html ══════════════════════════════ */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.doc__toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: var(--sp-3);
}
.doc__toc a { font-size: var(--fs-sm); color: var(--ink-2); }
.doc__toc a:hover { color: var(--accent-ink); }
.doc__body { display: grid; gap: clamp(2.5rem, 5vw, 4rem); max-width: 74ch; }
.doc__sec { display: grid; gap: var(--sp-4); scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc__sec h2 { font-size: var(--fs-d3); letter-spacing: var(--tr-tight); }
.doc__sec h3 { font-size: 1.0625rem; letter-spacing: var(--tr-snug); margin-top: var(--sp-3); }
.doc__sec p, .doc__sec li { color: var(--ink-2); font-size: var(--fs-body); line-height: 1.68; }
.doc__sec ul { display: grid; gap: var(--sp-3); }
.doc__sec li { position: relative; padding-left: var(--sp-6); }
.doc__sec li::before {
  content: ""; position: absolute; left: 0; top: 0.82em;
  width: 10px; height: 1px; background: var(--line-2);
}
.doc__note {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-3);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.doc__note p { color: var(--ink); font-size: var(--fs-sm); }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static; padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
}

/* ═══ STEP kernel status & engineer-queue note ═════════════════════════ */
.drop__status {
  display: block;
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-2);
  background: var(--accent-soft);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-2);
}
.queue-note {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-2);
}
