/* ScaleLabel — "Counter Print". Flat colours only; patterns are hard-stop hairlines, never blends. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F2EDE3;
  --white: #FFFFFF;
  --ink: #15130F;
  --graphite: #5E5A52;
  --rule: #D9D2C4;
  --blue: #1565C0;
  --green: #1E7A46;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1328px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background-color: var(--paper);
  /* Butcher paper: long kraft fibres + fine grain (SVG noise, tinted warm). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.22' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.3  0 0 0 0 0.18  0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.22  0 0 0 0 0.14  0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 520px 520px, 260px 260px;
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- type ---------- */
.display {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(44px, 6.6vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.h2 {
  font-weight: 850;
  font-stretch: 125%;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.h3 { font-weight: 850; font-stretch: 115%; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--graphite); max-width: 34em; }
.section-lede { margin-top: 18px; color: var(--graphite); max-width: 40em; font-size: 18px; }
.marker, .mono-label, .mono-muted, .mono-caption, .tag, .mono-chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marker { color: var(--graphite); margin-bottom: 28px; }
.tag { color: var(--graphite); margin-top: 26px; }
.mono-muted { color: var(--graphite); text-transform: none; letter-spacing: 0; font-size: 13px; }
.mono-caption { color: var(--graphite); }
.mono-chip { display: inline-block; border: 1px solid var(--rule); background: var(--paper); padding: 3px 8px; color: var(--graphite); }
.note { margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--graphite); border: 1px solid var(--ink); display: inline-block; padding: 8px 12px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 14px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); padding: 12px 18px; cursor: pointer;
  background: transparent; color: var(--ink); border-radius: 0;
}
.btn--primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--lg { padding: 18px 28px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.link-quiet { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.link-quiet:hover, .link-underline:hover { color: var(--blue); }
.link-underline { font: 500 15px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; text-underline-offset: 6px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.topbar__inner { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 28px; }
.wordmark { font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.02em; text-decoration: none; font-size: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 0.5em; }
.logo-mark { height: 1.45em; width: auto; flex: none; }
.wordmark--lg .logo-mark { height: 1em; }
.wordmark--lg { font-size: clamp(36px, 6vw, 72px); }
.topbar__nav { display: flex; gap: 22px; }
.topbar__nav a { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.topbar__nav a:hover { color: var(--blue); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.topbar__menu { display: none; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) max(var(--pad), calc((100% - var(--max)) / 2)); border-top: 1px solid var(--rule); }

/* Section rhythm: full-width ink and label-white bands break up the paper. */
.section--white { background-color: var(--white); border-top-color: var(--ink); }
.section--ink { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.86  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 260px 260px; color: var(--paper); border-top: 0; }
.section--ink + .section { border-top: 0; }
.section--ink .marker, .section--ink .section-lede, .section--ink .mono-caption { color: var(--rule); }
.section--ink .sync__line, .section--ink .sync__devices { background-color: var(--paper); border-color: var(--paper); }
.section--ink .sync__node, .section--ink .sync__devices li, .section--ink .hangtag { color: var(--ink); border-color: var(--paper); }
.section--ink .note { border-color: var(--paper); color: var(--rule); }
.section--ink .hangtag__hole { background: var(--ink); }
.section--ink .sync__node--cloud, .section--ink .sync__node--cloud .mono-caption { color: var(--white); }
.hero { border-top: 0; padding-top: clamp(32px, 5vw, 64px); }

/* ---------- hero ---------- */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy .lede { margin-top: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero__stage { position: relative; display: flex; flex-direction: column; align-items: flex-end; }

.scale-display { width: min(100%, 440px); background: var(--ink); color: var(--paper); padding: 22px 24px; }
.scale-display__head { display: flex; justify-content: space-between; align-items: center; color: var(--rule); }
.scale-display__weight { font-family: var(--mono); font-size: clamp(56px, 6vw, 84px); line-height: 1.05; margin-top: 10px; }
.scale-display__weight .unit { font-size: 0.4em; color: var(--rule); }
.scale-display__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--graphite); }
.scale-display__total { font: 600 clamp(20px, 2vw, 26px)/1 var(--mono); text-transform: uppercase; color: var(--white); }
.pill { font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; }
.pill--stable { background: var(--green); color: var(--white); }
.printer-slot { width: min(100%, 440px); height: 10px; background: var(--ink); margin-top: 6px; }

/* muted text on the dark scale display needs the light rule colour for contrast */
.scale-display .mono-muted { color: var(--rule); }

/* ---------- the label (shared by hero, screens, film) ---------- */
.label {
  background: var(--white); color: var(--ink); border-radius: 10px; border: 1px solid var(--rule);
  font-family: var(--mono); padding: 20px 22px 16px;
}
.label--hero { width: min(86%, 330px); margin-right: 26px; margin-top: -2px; border-top-left-radius: 0; border-top-right-radius: 0; }
.label__brand { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.label__logo { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font: 600 13px/1 var(--mono); }
.label__address { font-size: 11px; line-height: 1.35; text-transform: uppercase; }
.label__name { font: 850 22px/1.05 var(--sans); font-stretch: 112%; text-transform: uppercase; margin-top: 12px; }
.label__desc { font-size: 11px; color: var(--graphite); margin-top: 4px; }
.label__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.label__facts dt { font-size: 10px; color: var(--graphite); text-transform: uppercase; }
.label__facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.label__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font: 900 28px/1 var(--sans); font-stretch: 112%; text-transform: uppercase; }
.label__total span:first-child { font-size: 14px; }
.label__barcode { position: relative; margin-top: 12px; overflow: hidden; }
.label__barcode img { width: 100%; height: 54px; }
.label__digits { display: block; text-align: center; font-size: 12px; letter-spacing: 0.18em; margin-top: 4px; }
.scanline { position: absolute; left: -4%; right: -4%; top: 0; height: 2px; background: var(--blue); opacity: 0; }

/* ---------- how it works (stage is filled by screens.css) ---------- */
.stage { margin-top: 56px; }

/* ---------- sync diagram ---------- */
.sync { margin-top: 64px; display: grid; grid-template-columns: auto minmax(80px, 1fr) auto minmax(80px, 1fr) auto; align-items: center; gap: 0; }
.sync__node { border: 1px solid var(--ink); padding: 22px 26px; display: grid; gap: 10px; justify-items: center; background: var(--white); }
.sync__brand { font: 800 26px/1 var(--sans); letter-spacing: -0.02em; }
.sync__node--cloud { background: var(--blue); border-color: var(--ink); color: var(--white); }
.sync__cloud-title { font: 850 18px/1.1 var(--sans); font-stretch: 115%; text-transform: uppercase; }
.mono-caption--inv { color: var(--white); }
.sync__wire { display: grid; gap: 10px; justify-items: center; padding: 0 10px; text-align: center; }
.sync__line { position: relative; display: block; width: 100%; height: 1px; background: var(--ink); }
.pulse { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.sync__devices { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 12px; border-left: 1px solid var(--ink); }
.sync__devices li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); background: var(--white); padding: 10px 14px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.device-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- product tour (filled by screens.css) ---------- */
.tour { margin-top: 56px; }

/* ---------- switching ---------- */
.points { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.point { border-top: 2px solid var(--ink); padding: 18px 0 30px; }
.point h3 { font: 850 20px/1.15 var(--sans); font-stretch: 110%; text-transform: uppercase; }
.point p { margin-top: 8px; color: var(--graphite); }

/* ---------- spec sheet ---------- */
.specs { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.spec { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; padding: 24px 26px 30px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: transparent; }
.spec__no, .spec__tag { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite); }
.spec__tag { justify-self: end; }
.spec h3 { grid-column: 1 / -1; font: 850 24px/1.1 var(--sans); font-stretch: 115%; text-transform: uppercase; margin-top: 6px; }
.spec p { grid-column: 1 / -1; font: 400 14px/1.55 var(--mono); color: var(--graphite); }

/* ---------- hardware hang tags ---------- */
.tags { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.hangtag { position: relative; background: var(--white); border: 1px solid var(--ink); border-radius: 10px 10px 4px 4px; padding: 46px 26px 30px; display: grid; gap: 10px; }
.hangtag__hole { position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); }
.hangtag .mono-label { color: var(--graphite); }
.hangtag h3 { font: 850 28px/1 var(--sans); font-stretch: 115%; text-transform: uppercase; }
.hangtag p { color: var(--graphite); font-size: 15px; }

/* ---------- origin ---------- */
.origin { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 64px); border: 1px solid var(--ink); background: var(--white); text-align: center; display: grid; gap: 18px; }
.origin p { font-family: var(--mono); font-size: 15px; line-height: 1.7; }
.crop { position: absolute; width: 18px; height: 18px; border-color: var(--ink); border-style: solid; border-width: 0; }
.crop--tl { top: -10px; left: -10px; border-top-width: 2px; border-left-width: 2px; }
.crop--tr { top: -10px; right: -10px; border-top-width: 2px; border-right-width: 2px; }
.crop--bl { bottom: -10px; left: -10px; border-bottom-width: 2px; border-left-width: 2px; }
.crop--br { bottom: -10px; right: -10px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- waitlist order slip ---------- */
.slip { margin: 48px auto 0; max-width: 760px; background: var(--white); border: 1px solid var(--ink); padding: clamp(24px, 4vw, 48px); }
.slip__head { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite); padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.slip__form { display: grid; gap: 22px; margin-top: 26px; }
.field { display: grid; gap: 6px; font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.field em { font-style: normal; color: var(--graphite); text-transform: none; letter-spacing: 0; }
.field input {
  font: 400 18px/1.3 var(--mono); color: var(--ink); background: transparent; border: 0; border-bottom: 1px dashed var(--ink);
  padding: 8px 0; border-radius: 0; width: 100%;
}
.field input:focus { outline: none; border-bottom: 2px solid var(--blue); }
.field input[aria-invalid="true"] { border-bottom-color: var(--blue); border-bottom-style: solid; }
.field--short input { max-width: 160px; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice legend { font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.choice label { display: flex; gap: 10px; align-items: center; font: 400 15px/1.3 var(--mono); cursor: pointer; }
.choice input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.slip__status { font: 500 14px/1.4 var(--mono); min-height: 1.4em; }
.slip__status[data-state="error"] { color: var(--blue); }
.slip__consent { font: 400 12px/1.55 var(--mono); color: var(--graphite); border-top: 1px dashed var(--rule); padding-top: 16px; }
.slip__done { display: grid; gap: 12px; padding: 24px 0 8px; }
.slip__done h3 { font: 900 32px/1 var(--sans); font-stretch: 120%; text-transform: uppercase; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer__inner { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 64px var(--pad) 40px; display: grid; gap: 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--rule); border-top: 1px solid var(--graphite); padding-top: 20px; }

/* ---------- privacy page ---------- */
.prose > * { max-width: 720px; }
.prose h2 { font: 850 22px/1.2 var(--sans); font-stretch: 112%; text-transform: uppercase; margin-top: 36px; }
.prose p, .prose li { margin-top: 10px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { align-items: center; }
  .label--hero { margin-right: 0; }
  .tags { grid-template-columns: 1fr; }
  .sync { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .sync__wire { width: 1px; height: 64px; padding: 0; position: relative; }
  .sync__wire .mono-caption { position: absolute; left: 16px; top: 22px; width: 150px; }
  .sync__line { width: 1px; height: 100%; }
  .sync__devices { border-left: 0; padding: 0; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .topbar__nav, .topbar__actions .link-quiet { display: none; }
  .topbar__inner { gap: 10px; }
  .wordmark { font-size: 17px; }
  .topbar__actions { gap: 10px; }
  .topbar__actions .btn { padding: 10px 12px; font-size: 12px; }
  .topbar .wide-only { display: none; }
  .topbar .wordmark { flex: none; }
  .topbar__menu { display: block; position: relative; }
  .topbar__menu summary { list-style: none; cursor: pointer; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--ink); padding: 10px 12px; }
  .topbar__menu summary::-webkit-details-marker { display: none; }
  .topbar__menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--ink); display: grid; min-width: 200px; }
  .topbar__menu-panel a { padding: 14px 16px; font: 500 13px/1 var(--mono); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--rule); }
  .points, .specs { grid-template-columns: 1fr; }
  .scale-display__foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- motion (motion.js adds .is-playing; without it everything shows its final frame) ---------- */
@keyframes settle-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes print-out { from { clip-path: inset(0 0 100% 0); transform: translateY(-36px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes scan { 0% { opacity: 1; top: 0; } 100% { opacity: 1; top: 100%; } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 9px); } }
.hero__stage.is-playing .pill--stable { animation: settle-in 0.01s linear 0.95s both; }
.hero__stage.is-playing .scale-display__total { animation: settle-in 0.01s steps(1) 1.15s both; }
.hero__stage.is-playing .label--hero { animation: print-out 1.1s steps(14, end) 1.35s both; }
.hero__stage.is-playing .scanline { animation: scan 0.7s linear 2.7s 2 alternate; }
.pulse { animation: travel 2.4s linear infinite; }
.pulse--late { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
.prose ul { padding-left: 20px; }
.film { margin: 96px 0 0; border: 1px solid var(--ink); background: var(--white); }
.film video { display: block; width: 100%; height: auto; background: var(--paper); }
.film figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--ink); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite); }
