/* SCANCAT design tokens. World: a retail scanning hardware vendor's spec sheet.
   Palette is the art: pure black modules on pure white, one accent only, the red of a
   laser scan line. ink #000 / paper #FFF / ash #F1F1EF panel / dim #6E6E6E meta / beam #FF2E17.
   Type: JetBrains Mono 800 for every headline and label (scanner readout), JetBrains Mono 500
   for data and codes, IBM Plex Sans 400/600 for body prose (vendor brochure voice).
   Spacing scale: 8 / 16 / 24 / 40 / 72 / 112. Radius: 0 everywhere, this is equipment.
   Rules: 1px hairline, 3px for chassis. Motion: one 2.8s linear beam sweep, UI flips at 120ms. */

@font-face { font-family: "JetBrains Mono"; font-weight: 800; src: url(assets/fonts/jetbrains-mono-latin-800-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; src: url(assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; src: url(assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; src: url(assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #000000;
  --paper: #FFFFFF;
  --ash: #F1F1EF;
  --dim: #6E6E6E;
  --beam: #FF2E17;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 40px;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

#fault {
  position: fixed; z-index: 99; top: 0; left: 0; right: 0;
  padding: 8px 16px; background: var(--beam); color: var(--paper);
  font: 500 13px/1.4 var(--mono);
}

/* ---------- utility bar ---------- */
.util {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter); height: 56px;
  background: var(--ink); color: var(--paper);
  border-bottom: 2px solid var(--beam);
}
.mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.mark-grid {
  width: 20px; height: 20px; flex: none;
  background: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5'><rect width='5' height='5' fill='white'/><g fill='black'><rect x='0' y='0' width='2' height='2'/><rect x='3' y='0' width='1' height='1'/><rect x='0' y='3' width='2' height='2'/><rect x='4' y='2' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='3' y='4' width='1' height='1'/></g></svg>");
  background-size: 100% 100%;
}
.mark-name { font: 800 13px/1 var(--mono); letter-spacing: .1em; }
.util-nav { display: flex; gap: 16px; margin-left: auto; }
.util-nav a { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .12s linear, color .12s linear; }
.util-nav a:hover { border-bottom-color: var(--beam); color: var(--beam); }
.util-meta { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: #9A9A9A; white-space: nowrap; }
.util-meta b { color: var(--paper); font-weight: 500; }

/* ---------- shared bits ---------- */
.eyebrow { font: 800 11px/1.4 var(--mono); letter-spacing: .22em; color: var(--dim); }
h1, h2, h3 { font-family: var(--mono); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; margin-top: 16px; }
h2 { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.06; margin-top: 16px; }
h3 { font-size: 15px; letter-spacing: .06em; }
.sec-head { max-width: 46rem; }
.sec-lede { margin-top: 16px; max-width: 44ch; color: #2B2B2B; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border: 3px solid var(--ink);
  font: 800 13px/1 var(--mono); letter-spacing: .1em;
  text-decoration: none; cursor: pointer;
  transition: background-color .12s linear, color .12s linear;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--beam); border-color: var(--beam); }
.btn-hollow { background: var(--paper); color: var(--ink); }
.btn-hollow:hover { background: var(--ink); color: var(--paper); }
.btn:focus-visible, .trigger:focus-visible, .serial:focus-visible, .util-nav a:focus-visible {
  outline: 3px solid var(--beam); outline-offset: 3px;
}
.with-icon .x-mark {
  width: 14px; height: 14px; flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7'><g fill='black'><rect x='0' y='0' width='2' height='2'/><rect x='5' y='0' width='2' height='2'/><rect x='1.5' y='1.5' width='2' height='2'/><rect x='3.5' y='1.5' width='2' height='2'/><rect x='2.5' y='2.5' width='2' height='2'/><rect x='1.5' y='3.5' width='2' height='2'/><rect x='3.5' y='3.5' width='2' height='2'/><rect x='0' y='5' width='2' height='2'/><rect x='5' y='5' width='2' height='2'/></g></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7'><g fill='black'><rect x='0' y='0' width='2' height='2'/><rect x='5' y='0' width='2' height='2'/><rect x='1.5' y='1.5' width='2' height='2'/><rect x='3.5' y='1.5' width='2' height='2'/><rect x='2.5' y='2.5' width='2' height='2'/><rect x='1.5' y='3.5' width='2' height='2'/><rect x='3.5' y='3.5' width='2' height='2'/><rect x='0' y='5' width='2' height='2'/><rect x='5' y='5' width='2' height='2'/></g></svg>") center / contain no-repeat;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 72px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 72px; align-items: center;
}
.lede { margin-top: 24px; max-width: 42ch; font-size: 17px; color: #2B2B2B; }
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.badges { margin-top: 24px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { border: 1px solid var(--ink); padding: 5px 10px; font: 500 11px/1 var(--mono); letter-spacing: .1em; }

.unit { margin: 0; }
.unit-frame {
  position: relative; aspect-ratio: 1; background: var(--ash);
  border: 3px solid var(--ink); overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.unit-frame img { width: 86%; margin: 7% auto; }
.beam {
  position: absolute; left: 0; right: 0; top: -4px; height: 3px;
  background: var(--beam);
  box-shadow: 0 0 14px 3px rgba(255,46,23,.65), 0 0 40px 10px rgba(255,46,23,.25);
  animation: sweep 2.8s linear infinite;
}
@keyframes sweep {
  0%   { top: -4px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.bracket { position: absolute; width: 26px; height: 26px; border: 3px solid var(--ink); }
.bracket.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.bracket.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.bracket.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.bracket.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.unit figcaption { margin-top: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--dim); }

/* ---------- stat strip ---------- */
.stats {
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 40px var(--gutter); border-right: 1px solid #2E2E2E; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 clamp(30px, 3.4vw, 46px)/1 var(--mono); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; color: #9A9A9A; }
.stat.hit b { color: var(--beam); }

/* ---------- console ---------- */
.console { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter); }
.console-body { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.term { border: 3px solid var(--ink); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; }
.term-bar { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid #2E2E2E; font: 500 11px/1 var(--mono); letter-spacing: .14em; color: #9A9A9A; }
.term-bar span:last-child { color: var(--beam); }
.term-log { list-style: none; margin: 0; padding: 16px; font: 500 13px/1.85 var(--mono); min-height: 260px; max-height: 300px; overflow-y: auto; }
.term-log li::before { content: "> "; color: var(--beam); }
.term-log li.muted { color: #9A9A9A; }
.term-log li.muted::before { color: #6E6E6E; }
.term-log li.err { color: var(--beam); }

.term-side { display: flex; flex-direction: column; gap: 24px; }
.trigger {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 22px 16px; border: 3px solid var(--ink); background: var(--paper);
  cursor: pointer; font: inherit; color: var(--ink);
  transition: background-color .12s linear, color .12s linear;
}
.trigger:hover { background: var(--ink); color: var(--paper); }
.trigger-lamp { width: 12px; height: 12px; background: var(--ink); border-radius: 50%; flex: none; }
.trigger:hover .trigger-lamp { background: var(--paper); }
.trigger.busy { background: var(--ink); color: var(--paper); cursor: progress; }
.trigger.busy .trigger-lamp { background: var(--beam); animation: blink .28s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.trigger-label { font: 800 15px/1 var(--mono); letter-spacing: .16em; }

.term-facts { margin: 0; border-top: 1px solid var(--ink); }
.term-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #D6D6D2; }
.term-facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; color: var(--dim); }
.term-facts dd { margin: 0; font: 800 12px/1.4 var(--mono); letter-spacing: .04em; text-align: right; }
.term-note { font-size: 13px; line-height: 1.5; color: var(--dim); }

/* ---------- capability ---------- */
.cap { border-top: 3px solid var(--ink); background: var(--ash); }
.cap > * { max-width: var(--wrap); margin: 0 auto; }
.cap .sec-head { padding: 72px var(--gutter) 0; }
.cap-grid {
  list-style: none; margin: 40px auto 0; padding: 0 var(--gutter) 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cap-grid li { background: var(--paper); border: 3px solid var(--ink); padding: 24px; }
.cap-no { font: 800 11px/1 var(--mono); letter-spacing: .2em; color: var(--beam); }
.cap-grid h3 { margin-top: 16px; }
.cap-grid p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #2B2B2B; }

/* ---------- spec ---------- */
.spec {
  max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start;
}
.spec-table { width: 100%; margin-top: 24px; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--ink); }
.spec-table tr:first-child { border-top: 3px solid var(--ink); }
.spec-table th {
  text-align: left; padding: 14px 16px 14px 0; width: 42%;
  font: 800 12px/1.4 var(--mono); letter-spacing: .12em; vertical-align: top;
}
.spec-table td { padding: 14px 0; font: 500 14px/1.45 var(--mono); color: #2B2B2B; }
.spec-table tr:hover { background: var(--ash); }
.spec-aside { border: 3px solid var(--ink); padding: 24px; }
.spec-aside img { width: 74%; max-width: 300px; margin: 0 auto 8px; mix-blend-mode: multiply; }
.steps { margin: 16px 0 0; padding-left: 1.3em; }
.steps li { font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.steps li::marker { font-family: var(--mono); font-weight: 800; font-size: 12px; }

/* ---------- deployment report ---------- */
.report { background: var(--ink); color: var(--paper); border-top: 3px solid var(--ink); }
.report-head { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 0; }
.report-head .eyebrow { color: var(--beam); }
.report-shot { max-width: var(--wrap); margin: 40px auto 0; padding: 0 var(--gutter) 72px; position: relative; }
.report-shot img { width: 100%; border: 3px solid var(--paper); }
.stamp {
  position: absolute; top: 16px; right: calc(var(--gutter) + 16px);
  padding: 8px 14px; border: 3px solid var(--beam); color: var(--beam);
  font: 800 13px/1 var(--mono); letter-spacing: .18em; transform: rotate(-6deg);
  background: rgba(0,0,0,.72);
}
.report-shot figcaption { margin-top: 16px; max-width: 62ch; font-size: 14.5px; line-height: 1.65; color: #C9C9C9; }

/* ---------- order ---------- */
.order {
  max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start;
}
.order-copy p:last-child { margin-top: 16px; max-width: 40ch; color: #2B2B2B; }
.order-panel { border: 3px solid var(--ink); padding: 24px; }
.serial {
  width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px; border: 1px dashed var(--ink); background: var(--ash);
  cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  transition: background-color .12s linear;
}
.serial:hover { background: var(--paper); }
.serial-tag { font: 500 10px/1.4 var(--mono); letter-spacing: .18em; color: var(--dim); width: 100%; }
.serial-val { font: 800 15px/1.3 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; flex: 1; }
.serial-hint { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--paper); background: var(--ink); padding: 5px 8px; }
.serial.done .serial-hint { background: var(--beam); }
.order-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; }
.order-facts { margin: 24px 0 0; }
.order-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #D6D6D2; }
.order-facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; color: var(--dim); }
.order-facts dd { margin: 0; font: 800 12px/1.4 var(--mono); }

/* ---------- footer ---------- */
.foot {
  border-top: 3px solid var(--ink); padding: 40px var(--gutter);
  max-width: var(--wrap); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.foot p { font: 500 11px/1.6 var(--mono); letter-spacing: .12em; }
.foot-note { color: var(--dim); max-width: 48ch; letter-spacing: .04em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .unit { order: -1; max-width: 460px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .spec, .order { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid #2E2E2E; }
  .stat:nth-child(2n) { border-right: 0; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .util { gap: 12px; height: auto; padding: 10px 20px; flex-wrap: wrap; }
  .util-nav { gap: 12px; order: 3; width: 100%; overflow-x: auto; }
  .util-meta { margin-left: auto; }
  .console-body { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .cta-row .btn, .order-links .btn { flex: 1 1 auto; justify-content: center; }
  .spec-table th { width: 46%; font-size: 11px; }
  .spec-table td { font-size: 13px; }
  .serial-val { font-size: 13px; }
  .stamp { top: -12px; right: calc(var(--gutter) - 4px); font-size: 10px; padding: 6px 10px; border-width: 2px; }
  .term-log { font-size: 12px; min-height: 200px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam { animation: none; top: 34%; opacity: .9; }
  .trigger.busy .trigger-lamp { animation: none; }
}
