/* Layout: shipping-label grammar. A wide, heavy display face like a stencilled carton mark,
   boxed fields ruled in solid lines, mono for every scanned value. The hero sits on a swatch
   of corrugated kraft. Indigo (the product's own primary) marks scans that pass and the one
   action we want: book a demo. */
:root {
  --paper: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --rule: #cbd5e1;
  --rule-strong: #0f172a;
  --indigo: #4f39f6;
  --indigo-ink: #ffffff;
  --indigo-soft: #ebe8fe;
  --ok: #15803d;
  --no: #b91c1c;
  --band: #0f172a;
  --band-ink: #e2e8f0;
  --band-muted: #94a3b8;
  --band-rule: #334155;
  --band-accent: #a5b4fc;
  --kraft: #c9a47c;
  --kraft-line: #b8926a;
  /* Physical objects keep their own colours in both themes: a thermal label and a device screen. */
  --label: #ffffff;
  --label-ink: #000000;
  --device: #0b1020;
  --device-ink: #e2e8f0;
  --device-muted: #8b98b0;
  --device-ok: #4ade80;
  --device-flash: rgba(124, 134, 255, 0.45);
  --laser: #ef4444;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #020617; --surface: #0f172a; --ink: #e2e8f0; --muted: #94a3b8;
    --rule: #1e293b; --rule-strong: #cbd5e1;
    --indigo: #8b93ff; --indigo-ink: #020617; --indigo-soft: #1e1b4b;
    --ok: #4ade80; --no: #f87171;
    --band: #0b1226; --band-ink: #e2e8f0; --band-muted: #94a3b8; --band-rule: #24304a; --band-accent: #a5b4fc;
    --kraft: #8a6a4a; --kraft-line: #7a5c3f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #020617; --surface: #0f172a; --ink: #e2e8f0; --muted: #94a3b8;
  --rule: #1e293b; --rule-strong: #cbd5e1;
  --indigo: #8b93ff; --indigo-ink: #020617; --indigo-soft: #1e1b4b;
  --ok: #4ade80; --no: #f87171;
  --band: #0b1226; --band-ink: #e2e8f0; --band-muted: #94a3b8; --band-rule: #24304a; --band-accent: #a5b4fc;
  --kraft: #8a6a4a; --kraft-line: #7a5c3f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.35rem, 5.6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.sub {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 6px;
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--indigo); color: var(--indigo-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.head-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}
.mark { width: 36px; height: 36px; flex: none; }
.mark rect { fill: #4f39f6; }
.mark g { stroke: #f8fafc; }
.brand-name {
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-facts li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--indigo);
}

/* Hero art: kraft carton, thermal label, handheld screen */
.hero-art { position: relative; min-width: 0; }
.kraft {
  background-color: var(--kraft);
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, var(--kraft-line) 9px 10px);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
}
.label {
  width: 100%;
  max-width: 360px;
  background: var(--label);
  color: var(--label-ink);
  border: 2px solid var(--label-ink);
  transform: rotate(-1.4deg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 14px 30px -12px rgba(30, 20, 5, 0.55);
  font-family: var(--display);
  font-stretch: 75%;
  line-height: 1.2;
}
.lb-row { display: grid; border-bottom: 2px solid var(--label-ink); }
.lb-row:last-child { border-bottom: 0; }
.lb-2 { grid-template-columns: 1fr 1fr; }
.lb-3 { grid-template-columns: 1.3fr 1fr 1fr; }
.lb-cell { padding: 0.5rem 0.6rem; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.lb-cell + .lb-cell { border-left: 2px solid var(--label-ink); }
.lb-k {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lb-v { font-size: 0.78rem; font-weight: 500; }
.lb-big { font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
.lb-sscc { padding: 0.55rem 0.9rem 0.7rem; gap: 0.35rem; }
.barcode-box { position: relative; }
.barcode { display: block; width: 100%; height: 86px; fill: var(--label-ink); }
.laser {
  position: absolute;
  left: -6%; right: -6%;
  top: 50%;
  height: 2px;
  background: var(--laser);
  box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.55);
  opacity: 0;
  pointer-events: none;
}
.lb-hr {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
}

.scanner {
  background: var(--device);
  color: var(--device-ink);
  border-radius: 14px;
  padding: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  box-shadow: 0 18px 40px -16px rgba(2, 6, 23, 0.7);
  border: 6px solid #1c2333;
}
.sc-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--device-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #263046;
  margin-bottom: 0.4rem;
}
.sc-head strong { color: var(--device-ink); font-weight: 600; }
.sc-step {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.4rem;
  border-radius: 4px;
}
.sc-k { color: var(--device-muted); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.08em; }
.sc-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ok { width: 18px; height: 18px; color: var(--device-ok); }
.sc-done {
  margin-top: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--device-ok);
  font-weight: 600;
}
.hero-art figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 48ch;
}

.stage { position: relative; }
/* Wide screens: the handheld rests on the carton below the label, never over the barcode. */
@media (min-width: 1000px) {
  .scanner {
    position: absolute;
    left: -2.5rem;
    bottom: -4rem;
    width: 300px;
  }
  .kraft { justify-content: flex-end; padding-bottom: 11rem; }
  .hero-art figcaption { margin-top: 5rem; }
}
@media (max-width: 999px) {
  .scanner { margin: -2rem auto 0; max-width: 360px; position: relative; }
  .kraft { padding-bottom: 3.5rem; }
}

/* One orchestrated moment: the scans register, then the pick confirms. */
@media (prefers-reduced-motion: no-preference) {
  .sc-step { animation: scanflash 0.9s ease-out both; }
  .sc-step:nth-child(1) { animation-delay: 0.5s; }
  .sc-step:nth-child(2) { animation-delay: 1.1s; }
  .sc-step:nth-child(3) { animation-delay: 1.7s; }
  .sc-done { animation: confirm 0.8s ease-out 2.3s both; }
  .laser { animation: laser 0.5s ease-in-out 1.6s 2; }
}
@keyframes scanflash {
  0% { background: var(--device-flash); }
  100% { background: transparent; }
}
@keyframes confirm {
  0% { background: rgba(74, 222, 128, 0.45); }
  100% { background: rgba(74, 222, 128, 0.12); }
}
@keyframes laser {
  0%, 100% { opacity: 0; }
  40%, 60% { opacity: 1; }
}

/* Fit */
.fit { border-block: 1px solid var(--rule); background: var(--surface); }
.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-block: 2rem;
  align-items: end;
}
.fit-intro { color: var(--muted); max-width: 32ch; align-self: center; }
.fit-intro strong { display: block; color: var(--ink); font-family: var(--display); font-stretch: 105%; font-size: 1.15rem; margin-bottom: 0.2rem; }
.fig { display: flex; flex-direction: column-reverse; gap: 0.2rem; border-left: 2px solid var(--rule-strong); padding-left: 1rem; }
.fig dd {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fig dt { color: var(--muted); font-size: 0.92rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* NetSuite band */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-accent); }
.band .sub { color: var(--band-muted); }
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.flow-col {
  border: 1px solid var(--band-rule);
  border-radius: 6px;
  padding: 1.5rem;
  min-width: 0;
}
.flow-col h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-accent);
  margin-bottom: 1rem;
}
.flow-col li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 0.85rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--band-rule);
  color: var(--band-muted);
}
.flow-col li:first-child { border-top: 0; padding-top: 0; }
.flow-col li::before {
  content: "";
  width: 8px; height: 8px;
  margin-top: 0.55rem;
  background: var(--band-accent);
}
.flow-col li b { color: var(--band-ink); font-weight: 600; }
.flow-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-inline: 0.5rem;
  color: var(--band-accent);
}
.flow-core .mark { width: 56px; height: 56px; }
.flow-core span {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 800;
  color: var(--band-ink);
  text-align: center;
  line-height: 1.1;
}
.arrow { width: 44px; height: 24px; }
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.promise { border-top: 2px solid var(--band-accent); padding-top: 1rem; }
.promise h3 {
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.promise p { color: var(--band-muted); }
.leaves {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--band-rule);
  color: var(--band-muted);
  max-width: 80ch;
  font-size: 0.98rem;
}
.leaves strong { color: var(--band-ink); }

/* A day on the floor */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--rule-strong);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.step-n {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--indigo);
  letter-spacing: 0.08em;
}
.step h3 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
}
.step p { color: var(--muted); }
.tag {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border: 1px dashed var(--rule-strong);
  border-radius: 3px;
  color: var(--ink);
}
.tag.ns { border-style: solid; border-color: var(--indigo); color: var(--indigo); background: var(--indigo-soft); }

/* Features */
.feature-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2.5rem;
}
.group h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rule-strong);
}
.group dl > div { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.group dt {
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}
.group dd { color: var(--muted); font-size: 0.98rem; }

/* Setup */
.setup { background: var(--surface); border-top: 1px solid var(--rule); }
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}
.setup-item {
  padding: 1.5rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.setup-item .k {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}
.setup-item h3 {
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
}
.setup-item p { color: var(--muted); font-size: 0.98rem; }

/* Demo */
.demo-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: center;
  border: 2px solid var(--rule-strong);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
}
.demo-box .h2 { margin-block: 0.75rem 0.9rem; }
.section.flush-top { padding-top: 0; }
.section.flush-bottom { padding-bottom: 0; }
.demo-actions { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.email-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.email {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  user-select: all;
  overflow-wrap: anywhere;
}
.copy {
  border: 0;
  border-left: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.85rem var(--body);
  padding-inline: 1rem;
  cursor: pointer;
  min-width: 5.5rem;
}
.copy:hover { background: var(--indigo-soft); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2rem 2.5rem; margin-top: clamp(3.5rem, 8vw, 6rem); }
.foot-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot-row .brand { margin-right: 0; }
.fine { font-size: 0.82rem; color: var(--muted); max-width: 70ch; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 560px; }
  .fit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fit-intro { grid-column: 1 / -1; max-width: none; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-core { flex-direction: row; padding-block: 0.25rem; }
  .flow-core .arrow { transform: rotate(90deg); }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-groups { grid-template-columns: minmax(0, 1fr); }
  .setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-box { grid-template-columns: minmax(0, 1fr); }
}
/* The section links, Sign in and Book a demo share one header row down to about 900px. */
@media (max-width: 940px) {
  .nav { display: none; }
}
@media (max-width: 600px) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .setup-grid { grid-template-columns: minmax(0, 1fr); }
  .lb-big { font-size: 1rem; }
  .barcode { height: 72px; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .head-row { gap: 0.75rem; }
  .brand { gap: 0.5rem; }
  .brand .mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1rem; font-stretch: 105%; white-space: nowrap; }
  .site-head .btn-sm { padding-inline: 0.8rem; font-size: 0.9rem; white-space: nowrap; }
  /* Sign in drops its outline so both buttons fit beside the name. */
  .head-actions { gap: 0.25rem; }
  .site-head .btn-ghost { border-color: transparent; padding-inline: 0.5rem; }
}
@media (max-width: 480px) {
  .email { font-size: 0.85rem; padding-inline: 0.75rem; }
  .copy { min-width: 4.5rem; }
}
/* The narrowest phones keep Sign in alone: the hero's Book a demo sits just below. */
@media (max-width: 440px) {
  .head-actions .btn-primary { display: none; }
  .site-head .btn-ghost { border-color: var(--rule-strong); padding-inline: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
