/* VisualShop — visualshop marketing page
   The palette and type are the product's own (apps/web/src/theme.css), widened for a
   page that has to work at arm's length instead of at a desk.

   Two accents, each with one job:
     steel blue  — the system, a link, an action
     amber       — a shortage, a number that needs a person
   Green means done or on the shelf. Nothing else is coloured. */

:root {
  --paper:     #f3f2ee;   /* the app's ground */
  --paper-2:   #eceae4;
  --panel:     #ffffff;
  --ink:       #1b1f23;
  --ink-2:     #262c33;
  --ink-3:     #333b44;
  --muted:     #5a6169;
  --muted-d:   #98a1ab;   /* muted, on ink */
  --line:      #d9d7d0;
  --line-d:    #3b434c;   /* line, on ink */

  --steel:      #1f5f8b;
  --steel-dark: #174c70;
  --steel-lit:  #8fc1e3;
  --green:      #1e6b45;
  --green-lit:  #7fc39c;
  --amber:      #a4650c;
  --amber-lit:  #e9a944;
  --violet:     #5b4b8a;
  --red:        #9b2c1f;

  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --r: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--steel-dark); }

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r) var(--r);
  font: 600 14px var(--sans); text-decoration: none; transition: top .15s;
}
.skip:focus { top: 0; color: #fff; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------------------------------------------------------------- type */

.h1 {
  font: 700 clamp(40px, 6.4vw, 76px)/1.02 var(--cond);
  letter-spacing: -.015em;
  margin: 0 0 22px;
}
.h2 {
  font: 700 clamp(28px, 3.6vw, 42px)/1.1 var(--cond);
  letter-spacing: -.01em;
  margin: 0 0 16px;
}
.h3 {
  font: 600 20px/1.25 var(--sans);
  letter-spacing: -.005em;
  margin: 0 0 8px;
}

.eyebrow {
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-dark);
  margin: 0 0 14px;
}
.eyebrow--onDark { color: var(--steel-lit); }

.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }
.lede--onDark { color: #c8ced5; }

p { margin: 0 0 16px; max-width: 68ch; }
strong { font-weight: 600; }

.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r);
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn--primary:hover { background: var(--steel-dark); border-color: var(--steel-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--onDark { background: transparent; color: #fff; border-color: var(--line-d); }
.btn--onDark:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 15px var(--sans); text-decoration: none;
}
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(27,31,35,0);
  transition: background .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(24,28,32,.94);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line-d);
}
.nav__inner {
  width: min(100% - 40px, var(--wrap)); margin-inline: auto;
  height: 66px; display: flex; align-items: center; gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; margin-right: auto;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font: 700 20px/1 var(--cond); letter-spacing: .01em; }
.brand__word b { font-weight: 700; }
.brand__word span { color: var(--steel-lit); font-weight: 400; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a {
  padding: 8px 12px; border-radius: 6px; text-decoration: none;
  color: #c0c7cf; font: 500 14.5px var(--sans);
  border-bottom: 2px solid transparent;
}
.nav__menu a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__menu a.is-active { color: #fff; border-bottom-color: var(--steel-lit); border-radius: 6px 6px 0 0; }
.nav__menu .btn { margin-left: 10px; }
.nav__menu .btn:hover { border-bottom-color: transparent; }

.nav__toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-d);
  border-radius: 6px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 18px; height: 2px; background: #fff; content: '';
}
.nav__bars { position: relative; }
.nav__bars::before { position: absolute; top: -6px; }
.nav__bars::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav { background: rgba(24,28,32,.94); border-bottom-color: var(--line-d); }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 66px;
    background: var(--ink); border-bottom: 1px solid var(--line-d);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 12px 6px; border-bottom: 1px solid var(--line-d); border-radius: 0; }
  .nav__menu a.is-active { border-bottom-color: var(--steel-lit); }
  .nav__menu .btn { margin: 14px 0 0; justify-content: center; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  margin-top: -66px; padding: 150px 0 0;
  overflow: hidden;
}
/* the build window's canvas: a dot grid, dimmed */
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 90% at 30% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 20%, transparent 78%);
}
.hero__glow {
  position: absolute; left: 50%; top: -280px; width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(31,95,139,.42), transparent);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }
.hero__title { color: #fff; }
.hero__title em { font-style: normal; color: var(--steel-lit); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__figure {
  position: relative; margin-top: 62px; padding-bottom: 90px;
}

/* ---------------------------------------------------------------- shot frame
   Screens are shown as figures on a drawing sheet: a plate, a rule, a caption
   in mono. The caption carries the figure number so the copy can point at it. */

.shot { position: relative; }
.shot__plate {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,24,28,.05), 0 18px 44px -18px rgba(20,24,28,.35);
}
.shot--onDark .shot__plate {
  border-color: #454d56;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.65);
}
.shot__plate img { display: block; width: 100%; }
.shot--clip .shot__plate img {
  mask-image: linear-gradient(#000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 78%, transparent 100%);
}
.shot__cap {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  margin-top: 12px; font: 500 12.5px/1.5 var(--mono);
  letter-spacing: .04em; color: var(--muted);
}
.shot__cap b { color: var(--ink); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.shot--onDark .shot__cap { color: var(--muted-d); }
.shot--onDark .shot__cap b { color: #fff; }

/* ---------------------------------------------------------------- the label
   The signature artifact: what the app prints for a bin, a part and a work
   order. Small in the hero, full size beside inventory. The bars are real —
   drawn from apps/api/src/lib/pdf/barcode.ts. */

.label {
  background: #fdfdfb;
  color: var(--ink);
  border: 1px solid #cfccc3;
  border-radius: 3px;
  box-shadow: 0 14px 34px -12px rgba(20,24,28,.55);
  padding: 12px 14px 11px;
  font-family: var(--mono);
  position: relative;
}
.label::before {
  /* the perforation down the left edge of a label sheet */
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px;
  background-image: linear-gradient(#bdb9ae 50%, transparent 0);
  background-size: 1px 6px;
}
.label__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid #e4e1d9; padding-bottom: 6px; margin-bottom: 8px;
}
.label__id { font: 600 21px/1 var(--mono); letter-spacing: .02em; }
.label__desc { font: 400 11.5px/1.4 var(--sans); color: var(--muted); margin: 5px 0 9px; }
.label__bars { display: block; width: 100%; height: 38px; }
.label__bars rect { fill: var(--ink); }
.label__foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 7px; font-size: 11px; color: var(--muted);
}
.label__foot b { color: var(--ink); font-weight: 600; }

/* overlapping the corner of the screenshot, not the caption under it */
.label--badge {
  position: absolute; right: 26px; bottom: 116px; width: 268px; z-index: 3;
  transform: rotate(-1.4deg);
}
@media (max-width: 1000px) { .label--badge { display: none; } }

/* ---------------------------------------------------------------- sections */

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .h2, .section--ink .h3 { color: #fff; }
.section--ink p { color: #c8ced5; }
.section--ink .rule { background: var(--line-d); }

.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center p { margin-inline: auto; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid--split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.grid--split.is-wide { gap: 64px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid--split, .grid--split.is-wide { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 22px 24px;
}
.section--ink .card { background: var(--ink-2); border-color: var(--line-d); }
.card__kicker {
  font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel-dark); margin: 0 0 10px;
}
.section--ink .card__kicker { color: var(--steel-lit); }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.section--ink .card p { color: #b9c1c9; }
.card ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; color: var(--muted); }
.card li { margin-bottom: 5px; }

/* a card that is one number */
.stat {
  border-left: 3px solid var(--steel); padding: 2px 0 2px 16px; margin-bottom: 26px;
}
.stat__n { font: 700 34px/1 var(--cond); display: block; margin-bottom: 4px; }
.stat__l { font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- figures */

.fig {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px;
}
.section--ink .fig { background: var(--ink-2); border-color: var(--line-d); }
.fig--flush { padding: 26px 20px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig__cap {
  margin: 14px 0 0; font: 400 12.5px/1.55 var(--mono); color: var(--muted);
  letter-spacing: .02em; max-width: none;
}
.section--ink .fig__cap { color: var(--muted-d); }

/* shared diagram ink */
.d-box { fill: var(--panel); stroke: var(--line); stroke-width: 1.2; }
.section--ink .d-box { fill: #2f363e; stroke: #454d56; }
.d-box--ink { fill: var(--ink); stroke: var(--ink); }
.d-box--steel { fill: #e8f0f6; stroke: var(--steel); }
.section--ink .d-box--steel { fill: #1d3a4f; stroke: var(--steel-lit); }
.d-box--green { fill: #e6f1eb; stroke: var(--green); }
.section--ink .d-box--green { fill: #1b3a2b; stroke: var(--green-lit); }
.d-box--amber { fill: #fbf1df; stroke: var(--amber); }
.section--ink .d-box--amber { fill: #3a2d11; stroke: var(--amber-lit); }
.d-line { stroke: var(--muted); stroke-width: 1.4; fill: none; }
.section--ink .d-line { stroke: #7d868f; }
.d-line--soft { stroke: var(--line); stroke-dasharray: 3 3; }
.section--ink .d-line--soft { stroke: #454d56; }
.d-t { font: 600 13px var(--mono); fill: var(--ink); letter-spacing: .02em; }
.section--ink .d-t { fill: #fff; }
.d-t--onInk { fill: #fff; }
.d-s { font: 400 11.5px var(--sans); fill: var(--muted); }
.section--ink .d-s { fill: #aab2bb; }
.d-k {
  font: 600 10px var(--mono); fill: var(--steel-dark);
  letter-spacing: .1em; text-transform: uppercase;
}
.section--ink .d-k { fill: var(--steel-lit); }
.d-k--amber { fill: var(--amber); }
.d-k--green { fill: var(--green); }
.section--ink .d-k--green { fill: var(--green-lit); }

/* ---------------------------------------------------------------- legend chips
   The build window's colour language, used as a key on this page too. */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 12.5px var(--mono); letter-spacing: .02em;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px 5px 9px; color: var(--muted);
}
.section--ink .chip { background: var(--ink-2); border-color: var(--line-d); color: #b9c1c9; }
.chip i { width: 9px; height: 9px; border-radius: 2px; flex: none; }

/* ---------------------------------------------------------------- screens strip */

.screens { display: grid; gap: 46px; }
/* the screenshot gets the larger half of the row; the note beside it is a column
   of text, so it can be narrow */
.screens__pair {
  display: grid; gap: 46px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
}
.screens__pair--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
@media (max-width: 900px) {
  .screens__pair, .screens__pair--flip { grid-template-columns: minmax(0, 1fr); }
  /* on one column the picture leads, whichever order it sits in the markup */
  .screens__pair--flip .screens__note { order: 2; }
}
.screens__note { max-width: 46ch; }
.screens__note .h3 { margin-bottom: 6px; }
.screens__note p { font-size: 15.5px; color: var(--muted); }

/* ---------------------------------------------------------------- table */

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec {
  width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
table.spec th {
  text-align: left; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.spec td { padding: 12px 16px; border-bottom: 1px solid #eceae4; vertical-align: top; }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:first-child { font: 600 14px var(--mono); white-space: nowrap; }
table.spec td.muted { color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- contact */

.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font: 500 13px var(--sans); color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid #c9c6bd; border-radius: 6px; padding: 10px 12px;
}
.field input, .field select { height: 44px; }
.field textarea { min-height: 116px; resize: vertical; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field__err { display: block; font-size: 13px; color: var(--red); margin-top: 5px; min-height: 0; }
.form__note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form__note.is-ok { color: var(--green); }

.contact__lines { list-style: none; margin: 26px 0 0; padding: 0; }
.contact__lines li {
  display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-d); font-size: 15.5px;
}
.contact__lines dt, .contact__k {
  flex: none; width: 104px; font: 600 11px var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-d); padding-top: 4px;
}
.contact__lines a { color: #fff; }
.contact__lines a:hover { color: var(--steel-lit); }

/* ---------------------------------------------------------------- footer */

.foot {
  background: var(--ink); color: var(--muted-d);
  border-top: 1px solid var(--line-d); padding: 34px 0;
  font-size: 14px;
}
.foot__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.foot a { color: #c8ced5; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__spacer { margin-left: auto; }

/* ---------------------------------------------------------------- reveal */

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .link-arrow::after { transition: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding-top: 124px; }
  .hero__figure { margin-top: 40px; padding-bottom: 60px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn { width: auto; flex: 1 1 200px; }
}

/* two figures of equal weight, rather than a figure and a note */
.screens__pair--even { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* the hero caption keeps clear of the label pinned over the figure's corner */
@media (min-width: 1001px) {
  .hero__figure .shot__cap { padding-right: 310px; }
}
