/* Eagle XR shop, "Surface Line". Tokens, base, type and the shared primitives (spec sections 2 and 3).
   Owner: Engineer A. Page styles live in lp-/op-/fl-/adm- blocks (A) and checkout.css (B, co- only). */

/* ============================================================ 2.2 tokens */
@font-face {                       /* metric-adjusted fallback so the swap does not reflow body text */
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 88%;
  descent-override: 21%;
}

:root {
  color-scheme: light;

  /* Grounds */
  --paper: #ffffff;                         /* page, forms, all white surfaces */
  --concrete: #e7e5e0;                      /* product stage, finishes band, order band */
  --concrete-line: rgba(31, 37, 42, .16);   /* floor line and dividers on concrete */
  --grain: url("../img/grain.png");    /* 128x128 alpha noise tile, layered over --concrete */
  --night: #14191d;                         /* landing hero, scan strips */
  --night-scan: #0d0f10;                    /* scan plot ground, unrevealed scan mask */
  --night-ink: #ffffff;
  --night-ink-2: rgba(255, 255, 255, .72);  /* 9.2:1 on --night */
  --night-line: rgba(255, 255, 255, .16);

  /* Ink */
  --ink: #1f252a;        /* brand charcoal. 15.5:1 on paper, 12.3:1 on concrete */
  --ink-2: #4a555c;      /* secondary text and labels. 7.7:1 paper, 6.1:1 concrete */
  --ink-3: #6b767c;      /* tertiary, paper only (4.7:1): item codes, future section titles. Never on concrete */
  --rule: #d5d9dc;       /* section rules, table head rules */
  --hairline: #e2e5e7;   /* row dividers on paper */
  --field: #7d878d;      /* input, checkbox and stepper borders. 3.7:1 on paper */
  --disabled-bg: #e2e5e7;
  --disabled-ink: #4a555c;

  /* Brand accents */
  --teal: #00a1b1;       /* NON-TEXT only: ruler fill, running status square, sweep on paper. Max 3 per view */
  --teal-ink: #006d78;   /* teal as text: discounts, nudges, "Change" links. 6.1:1 paper, 4.8:1 concrete */
  --cyan: #4ddbdd;       /* on night only: surface line, links and focus on night. 10.5:1 */
  --xr: #f7941d;         /* XR orange, NON-TEXT only: ruler needle cap, POC square, scan heat */
  --danger: #b3261e;     /* errors. 6.5:1 paper, 5.2:1 concrete */
  --scan-cursor: #d040e8;/* the scan cursor line only (from the XR app) */
  --focus: #006d78;      /* 2px focus outline on paper and concrete (6.1:1 / 4.8:1) */
  --focus-night: #4ddbdd;

  /* Finishes (same values as /api/config; for CSS-only uses such as the 16px index squares) */
  --fin-pure-platinum: #b8bbba;
  --fin-solar-gold: #ada076;
  --fin-crimson-red: #943844;
  --fin-blaze-orange: #a86440;

  /* Type families */
  --font-sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale: size tokens. Line-height, weight, width and tracking live in the .t-* classes (2.3) */
  --fs-display:   clamp(48px, 7.8vw, 112px);  /* landing H1 only */
  --fs-statement: clamp(34px, 4.4vw, 64px);   /* landing H2 */
  --fs-title:     clamp(34px, 3.9vw, 56px);   /* /buy "Eagle XR", order headline */
  --fs-figure:    clamp(112px, 16vw, 240px);  /* the giant "40" */
  --fs-signoff:   clamp(40px, 6.4vw, 92px);   /* "Protect The Built World" */
  --fs-index:     clamp(24px, 2.4vw, 34px);   /* landing finish index names */
  --fs-h3:        clamp(22px, 1.8vw, 26px);   /* open checkout section titles */
  --fs-price:     clamp(22px, 2vw, 28px);     /* unit price */
  --fs-total:     clamp(20px, 2vw, 28px);     /* receipt total */
  --fs-lead:      clamp(17px, 1.35vw, 19px);
  --fs-body:  16px;
  --fs-ui:    15px;   /* links, receipt rows on desktop, summaries */
  --fs-small: 14px;   /* captions, helpers, receipt rows on mobile */
  --fs-label: 14px;   /* field labels, group labels */
  --fs-mono:  12px;   /* item codes, SAP refs */
  --fs-axis:  11px;   /* depth axis, ruler numerals, POC tag */
  --fs-input: 16px;   /* 17px under 768px, see media query */
  --fs-button: 16px;

  /* Space (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 32px;
  --s-8: 40px; --s-9: 48px; --s-10: 56px; --s-11: 64px; --s-12: 80px; --s-13: 96px; --s-14: 120px;

  /* Layout */
  --container: 1280px;
  --gutter: 48px;          /* side padding: 48 desktop, 32 tablet, 20 mobile */
  --header-h: 56px;        /* 52 on mobile */
  --bar-h: 72px;           /* mobile action bar, excluding safe area */
  --co-col: 560px;         /* checkout sections column on desktop (480 at 1024 to 1279) */

  /* Shape */
  --r-control: 4px;        /* buttons, inputs, steppers, scan strips. Everything else is square */
  --border-hair: 1px solid var(--hairline);
  --border-rule: 1px solid var(--rule);
  --border-ink: 1px solid var(--ink);
  --border-field: 1px solid var(--field);

  /* Depth: physical only */
  --contact-shadow: radial-gradient(closest-side, rgba(20, 25, 29, .30), rgba(20, 25, 29, 0));
  --sheet-shadow: 0 -8px 40px rgba(20, 25, 29, .18);
  --scrim: rgba(20, 25, 29, .40);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-press: 120ms;
  --t-fade: 200ms;
  --t-layout: 240ms;
  --t-sweep: 1600ms;
  --t-hero: 3600ms;

  /* Layers */
  --z-header: 20;
  --z-bar: 30;
  --z-toast: 40;
}

@media (max-width: 1023px) { :root { --gutter: 32px; } }
@media (max-width: 767px)  { :root { --gutter: 20px; --header-h: 52px; --fs-input: 17px; } }
@media (min-width: 1024px) and (max-width: 1279px) { :root { --co-col: 480px; } }

@media (prefers-reduced-motion: reduce) {
  :root { --t-press: 0ms; --t-fade: 0ms; --t-layout: 0ms; --t-hero: 0ms; }
}

/* ============================================================ 2.3 base and type */
*, *::before, *::after { box-sizing: border-box; }
/* WCAG 2.4.11: a control scrolled into view by focus never ends under the sticky header (or the fixed bar, below) */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.5 var(--font-sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis: none;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-night :focus-visible { outline-color: var(--focus-night); }

.t-display   { font-size: var(--fs-display);   line-height: .9;  font-weight: 800; font-stretch: 125%; letter-spacing: -.04em;  text-wrap: balance; }
.t-statement { font-size: var(--fs-statement); line-height: .98; font-weight: 800; font-stretch: 125%; letter-spacing: -.03em;  text-wrap: balance; }
.t-title     { font-size: var(--fs-title);     line-height: 1;   font-weight: 800; font-stretch: 125%; letter-spacing: -.03em; }
.t-figure    { font-size: var(--fs-figure);    line-height: .8;  font-weight: 800; font-stretch: 125%; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.t-signoff   { font-size: var(--fs-signoff);   line-height: .95; font-weight: 800; font-stretch: 125%; letter-spacing: -.035em; text-wrap: balance; }
.t-index     { font-size: var(--fs-index);     line-height: 1.1; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; }
.t-h3        { font-size: var(--fs-h3);        line-height: 1.15;font-weight: 600; letter-spacing: -.01em; }
.t-h4        { font-size: 17px;                line-height: 1.3; font-weight: 600; }
.t-price     { font-size: var(--fs-price);     line-height: 1;   font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.t-total     { font-size: var(--fs-total);     line-height: 1;   font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.t-lead      { font-size: var(--fs-lead);      line-height: 1.45; color: var(--ink-2); max-width: 38ch; text-wrap: pretty; }
.t-body      { font-size: var(--fs-body);      line-height: 1.5; max-width: 62ch; text-wrap: pretty; }
.t-ui        { font-size: var(--fs-ui);        line-height: 1.4; }
.t-small     { font-size: var(--fs-small);     line-height: 1.45; color: var(--ink-2); }
.t-label     { font-size: var(--fs-label);     line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.mono        { font-family: var(--font-mono);  font-size: var(--fs-mono); line-height: 1.4; font-weight: 400; letter-spacing: 0; }
.t-axis      { font-family: var(--font-mono);  font-size: var(--fs-axis); line-height: 1; }
.num         { font-variant-numeric: tabular-nums; }
.nowrap      { white-space: nowrap; }
.vh          { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container   { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.grid12      { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.ground-concrete { background: var(--grain), var(--concrete); }
.ground-night    { background: var(--night); color: var(--night-ink); }

/* Base additions (not in 2.3, needed by every page) */
[hidden] { display: none !important; }            /* the hidden attribute beats any display rule below */
a { color: inherit; }
button:not(:disabled) { cursor: pointer; }
table { border-collapse: collapse; }
.on-night .t-lead, .on-night .t-small { color: var(--night-ink-2); }

/* ============================================================ 3.4 glyphs */
.glyph { display: inline-block; flex: none; width: 20px; height: 20px; vertical-align: middle; overflow: visible; }

/* ============================================================ 3.1 header, wordmark, POC tag */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-fade) var(--ease), border-color var(--t-fade) var(--ease), color var(--t-fade) var(--ease);
}
.site-header--solid { background: var(--paper); border-bottom-color: var(--hairline); }
.site-header--night { background: var(--night); color: var(--night-ink); }   /* the hero colour: nothing shows through while it scrolls under */
.site-header__in { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.site-header__center { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: var(--s-7); }
.site-header__right { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; flex: none; }

.wordmark {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; flex: none;
  font: 700 17px/1 var(--font-sans); font-stretch: 100%; letter-spacing: -.01em;
  color: inherit; text-decoration: none; white-space: nowrap;
}
.wordmark__mark { display: block; width: auto; height: 26px; flex: none; }

.poc { position: relative; flex: none; }
.poc__tag {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 4px;
  list-style: none; cursor: pointer; user-select: none;
  color: var(--ink-2);
}
.poc__tag::-webkit-details-marker { display: none; }
.poc__tag::marker { content: ""; }
.poc__tag .mono { font-size: var(--fs-axis); line-height: 1; font-weight: 400; color: inherit; }
.poc__sq { width: 6px; height: 6px; background: var(--xr); flex: none; }
.poc__tag:hover .mono { color: var(--ink); }
.on-night .poc__tag { color: var(--night-ink-2); }
.on-night .poc__tag:hover .mono { color: var(--night-ink); }
.poc__pop {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: var(--z-toast);
  width: 280px; max-width: calc(100vw - 2 * var(--gutter));
  padding: 12px 16px;
  background: var(--paper); color: var(--ink); border: var(--border-ink);
  font: 400 14px/1.45 var(--font-sans); font-stretch: 100%; text-align: left;
}
/* phones: the tag is not the last header item, so a right-anchored 280 px box would start off screen. Fixed to the
   viewport (the header has no transform or filter), between the gutters, under the header. */
@media (max-width: 479px) {
  .poc__pop { position: fixed; top: calc(var(--header-h) + 4px); left: var(--gutter); right: var(--gutter); width: auto; max-width: none; }
}

/* The look switch (theme.py): Classic | MPXR, in the landing header and in the POC note */
.theme-sw { display: inline-flex; flex: none; gap: 2px; padding: 2px; border: 1px solid var(--rule); border-radius: 999px; }
.theme-sw a {
  display: flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px;
  font: 400 var(--fs-axis)/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.theme-sw a:hover { color: var(--ink); }
.theme-sw a[aria-current] { background: var(--ink); color: var(--paper); }
.on-night .theme-sw { border-color: var(--night-line); }
.on-night .theme-sw a { color: var(--night-ink-2); }
.on-night .theme-sw a:hover { color: var(--night-ink); }
.on-night .theme-sw a[aria-current] { background: var(--night-ink); color: var(--night); }
.poc__design { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
@media (max-width: 479px) { .theme-sw--head a { padding: 0 7px; } }

/* ============================================================ 3.2 buttons and links */
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 20px; margin: 0;
  border-radius: var(--r-control); border: 1px solid transparent;
  font: 600 var(--fs-button)/1 var(--font-sans); font-stretch: 100%; letter-spacing: 0;
  text-decoration: none; text-align: left; white-space: nowrap;
  cursor: pointer; position: relative; overflow: hidden; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-press) linear, border-color var(--t-press) linear, color var(--t-press) linear, transform var(--t-press) var(--ease);
}
a.btn, span.btn { display: inline-flex; }
.btn__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btn__amount { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.btn .glyph { flex: none; }
.btn:active:not([disabled]):not(.is-disabled):not(.is-busy) { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }

.btn--inverse { background: #fff; color: var(--ink); }
.btn--inverse:hover { background: #e7e5e0; }

/* buy: the Screening Eagle teal with charcoal text (white on #00a1b1 is 3.1:1, charcoal 5.0:1) */
.btn--buy { background: var(--teal); color: var(--ink); }
.btn--buy:hover { background: var(--cyan); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: rgba(31, 37, 42, .06); }
.on-night .btn--secondary { color: var(--night-ink); border-color: var(--night-ink); }
.on-night .btn--secondary:hover { background: rgba(255, 255, 255, .1); }

.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; gap: 12px; overflow: visible; }
.btn--sm::after { content: ""; position: absolute; left: 0; right: 0; top: -3px; bottom: -3px; }   /* 44 px hit area, 40 px visual */
.btn--block { width: 100%; display: flex; }

.btn[disabled]:not(.is-busy), .btn.is-disabled:not(.is-busy) {
  background: var(--disabled-bg); color: var(--disabled-ink); border-color: transparent; cursor: not-allowed;
}
.btn.is-busy { pointer-events: none; cursor: progress; }

.link {
  display: inline; padding: 12px 0; margin: -12px 0;   /* 44 px hit area without changing the line box */
  background: none; border: 0; border-radius: 0;
  font: inherit; font-weight: 600; color: var(--ink); text-align: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.link:hover { text-decoration-thickness: 2px; }
.link--teal { color: var(--teal-ink); }
.link--night { color: var(--cyan); }
.link[disabled], .link[aria-disabled="true"] { color: var(--ink-2); text-decoration: none; cursor: not-allowed; }

/* ============================================================ 3.3 fields */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field__label { font-size: var(--fs-label); line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field__input {
  display: block; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 14px;
  font: 400 var(--fs-input)/1.25 var(--font-sans); font-stretch: 100%; color: var(--ink);
  background-color: #fff; border: var(--border-field); border-radius: var(--r-control);
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-press) linear;
}
.field__input::placeholder { color: var(--ink-3); opacity: 1; }
.field__input:hover { border-color: var(--ink-2); }
.field__input:focus { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: 2px; }
.field__input:disabled { background-color: var(--disabled-bg); color: var(--disabled-ink); border-color: var(--disabled-bg); cursor: not-allowed; }
.field[data-state="error"] .field__input, .field__input[aria-invalid="true"] {
  border: 1.5px solid var(--danger); padding: 0 13.5px;
}
select.field__input {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f252a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 10px 6px;
}
.field[data-state="error"] select.field__input, select.field__input[aria-invalid="true"] { padding-right: 39.5px; }
textarea.field__input { height: auto; min-height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field[data-state="error"] textarea.field__input, textarea.field__input[aria-invalid="true"] { padding: 11.5px 13.5px; }
input.field__input::-webkit-outer-spin-button, input.field__input::-webkit-inner-spin-button { margin: 0; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.field__hint { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.field__error { font-size: var(--fs-small); line-height: 1.4; color: var(--danger); }
.field__error:empty { display: none; }

/* country combobox (combobox.js): the flag leads, the select behind it keeps the value */
.cbx { position: relative; min-width: 0; }
.cbx__native { position: absolute !important; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cbx__input { padding: 0 40px 0 46px; text-overflow: ellipsis; }
.field[data-state="error"] .cbx__input, .cbx__input[aria-invalid="true"] { padding: 0 39.5px 0 45.5px; }
.cbx__flag {
  position: absolute; left: 14px; top: 50%; width: 20px; height: 15px; margin-top: -7.5px;
  border-radius: 2px; cursor: text;
}
.cbx__flag:empty { border: 1px dashed var(--field); }
.cbx__img { display: block; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(31, 37, 42, .16); }
.cbx__chev {
  position: absolute; right: 0; top: 0; width: 40px; height: 48px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f252a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px 6px;
  transition: transform var(--t-press) linear;
}
.cbx.is-open .cbx__chev { transform: rotate(180deg); }
.cbx__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: var(--z-toast);
  max-height: 316px; margin: 0; padding: 4px 0; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r-control);
  box-shadow: 0 12px 32px rgba(20, 25, 29, .16);
  -webkit-overflow-scrolling: touch;
}
.cbx__opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 14px; cursor: pointer;
  font-size: var(--fs-input); line-height: 1.25; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.cbx__opt[aria-selected="true"] { background: var(--concrete); }
.cbx__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbx__name b { font-weight: 700; }
.cbx__opt.is-current .cbx__name { font-weight: 600; }
.cbx__opt.is-current .cbx__name::after {
  content: ""; display: inline-block; width: 12px; height: 9px; margin-left: 8px; vertical-align: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3.2L11 1' fill='none' stroke='%23006d78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cbx__code { display: flex; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1; color: var(--ink-3); }
.cbx__code span { min-width: 3ch; }
.cbx__empty { padding: 12px 14px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .cbx__chev { transition: none; } }

.check {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.check__input { position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; opacity: 0; cursor: pointer; }
.check__box {
  flex: none; width: 20px; height: 20px; border: var(--border-field); border-radius: 2px; background: #fff;
  background-repeat: no-repeat; background-position: center; background-size: 14px 14px;
  transition: background-color var(--t-press) linear, border-color var(--t-press) linear;
}
.check:hover .check__box { border-color: var(--ink-2); }
.check__input:checked + .check__box {
  background-color: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check__input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check__input:disabled + .check__box { background-color: var(--disabled-bg); border-color: var(--disabled-bg); }
.check__label { font-size: var(--fs-body); line-height: 1.4; color: var(--ink); }

.fieldgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.fieldgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fieldgrid--zip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span-2 { grid-column: 1 / -1; }

/* ============================================================ 3.5 receipt */
.receipt { font-size: var(--fs-ui); line-height: 1.4; }
.receipt__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline;
  padding: 6px 0; color: var(--ink-2);
}
.receipt__row > :last-child { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt__label { min-width: 0; }
.receipt__code { margin-left: 6px; color: var(--ink-3); white-space: nowrap; }
.ground-concrete .receipt__code { color: var(--ink-2); }
.receipt__amt { font-variant-numeric: tabular-nums; }
.receipt__row--disc > :last-child { color: var(--teal-ink); }   /* teal on the amount only; the label stays ink-2 */
.receipt__row--disc.is-none > :last-child { color: var(--ink-2); }   /* no discount: the row keeps its place, quietly */
/* tax value before it is known: data-state="unknown" ("Set by your delivery country") or "calculating" */
.receipt__row--tax[data-state="unknown"] > :last-child,
.receipt__row--tax[data-state="calculating"] > :last-child { color: var(--ink-2); }
.receipt__row:has(.receipt__thumb) { align-items: center; }
.receipt__row:has(.receipt__thumb) .receipt__label { display: flex; align-items: center; flex-wrap: wrap; column-gap: 6px; }
.receipt__row:has(.receipt__thumb) .receipt__code { margin-left: 0; }
.receipt__thumb {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 6px;
  background: var(--grain), var(--concrete); vertical-align: middle;
}
.receipt__thumb img { width: 36px; height: auto; }
.receipt__total {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline;
  margin-top: 8px; padding-top: 12px; border-top: var(--border-ink);
}
.ground-concrete .receipt__total { border-top-color: var(--concrete-line); }
.receipt__total .receipt__label { font-size: 15px; font-weight: 600; color: var(--ink); }
.receipt__total small { display: block; margin-top: 2px; font-size: var(--fs-small); font-weight: 400; line-height: 1.4; color: var(--ink-2); }
.receipt__total .receipt__amt { color: var(--ink); text-align: right; white-space: nowrap; }
.receipt__meta { margin-top: 12px; color: var(--ink-3); }
.ground-concrete .receipt__meta { color: var(--ink-2); }
.receipt__row .receipt__amt, .receipt__total .receipt__amt, .receipt__row > .num { transition: opacity 120ms linear; }
.receipt.is-pending .receipt__amt, .receipt.is-pending .receipt__row > .num { opacity: .5; }

/* ============================================================ 3.6 line-up */
/* Piles share one floor (the bottom of row 1); labels sit in row 2, below the floor. */
.lineup {
  display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: center;
  column-gap: calc(var(--w, 230px) * .1);
  position: relative; isolation: isolate;
}
.lineup::after {               /* the floor line, full width of the line-up */
  content: ""; position: absolute; grid-row: 1 / 2; left: 0; right: 0; bottom: 0;   /* abspos: both lines explicit */
  border-top: 1px solid var(--concrete-line); pointer-events: none; z-index: -1;   /* behind the devices */
}
.lineup__group { display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: end; }
.lineup__pile {
  position: relative; isolation: isolate; align-self: end;
  width: var(--w, 230px); aspect-ratio: 326 / 273;       /* the cut-out, seated on its base edge */
  margin-bottom: calc(var(--w, 230px) * -.009);          /* its 3 px transparent margin sits below the floor */
}
/* devices behind the front one stick out to the left: reserve that room so piles never overlap */
/* order page: US tax exemption certificate (upload until Sales has checked it) */
.op-exempt { margin-top: 24px; padding: 16px 0 0 16px; border-left: 2px solid var(--teal); }
.op-exempt p { margin-top: 6px; max-width: 60ch; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.op-exempt__file { color: var(--ink) !important; font-weight: 500; }
.op-exempt__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.op-exempt__pick { cursor: pointer; }
.op-exempt__pick:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.op-exempt__hint { color: var(--ink-2); }
.op-exempt__msg { flex-basis: 100%; margin: 0 !important; min-height: 1.5em; }
.receipt__row--refund { color: var(--teal-ink, var(--ink)); }

.lineup__pile { margin-left: calc(var(--w, 230px) * var(--side, 0)); }   /* --side: pile_layout, set per pile */
.lineup__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
/* a pile reads as separate units: each device further back is smaller, a touch darker (its true finish colour
   stays) and clearly offset; in a real pile the front one has a tight occlusion edge, a single device none */
.lineup__img:first-child { filter: none; }
.lineup__pile:has(> :nth-child(2)) > .lineup__img:first-child { filter: drop-shadow(-2px 0 2px rgba(20, 25, 29, .2)); }
.lineup__img:nth-child(2) { transform: translate(-24%, -9%) scale(.9); filter: brightness(.95); z-index: -1; }
.lineup__img:nth-child(3) { transform: translate(-44%, -15%) scale(.82); filter: brightness(.9); z-index: -2; }
.lineup__pile::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -3%; height: 11%;
  background: var(--contact-shadow); z-index: -20; pointer-events: none;   /* under every unit of a 10-pile */
}
/* name and count at 14 px everywhere; under a narrow pile the name wraps and the count goes under it */
.lineup__label {
  align-self: start; width: var(--w, 230px); margin-top: 8px;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .3em; white-space: normal;
  font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--ink); text-align: center;
}
.lineup__label .num { color: var(--ink-2); white-space: nowrap; }
.lineup--nolabels .lineup__label { display: none; }

/* ============================================================ 3.7 volume ruler */
/* 11 equal slots; slot i centre = (i - .5) / 11. --val (1..11) is set by the page on .ruler. */
.ruler {
  position: relative; min-height: 96px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ruler__segs { position: relative; height: 18px; }
.ruler__seg {
  position: absolute; top: 0;
  left: calc((var(--from) - 1) / 11 * 100%); width: calc((var(--to) - var(--from) + 1) / 11 * 100%);
  display: flex; justify-content: center; white-space: nowrap;
  font-size: var(--fs-small); line-height: 18px; font-weight: 400; color: var(--ink-2);
}
.ruler__seg.is-current { color: var(--ink); font-weight: 600; }
.ruler__seg--quote { justify-content: flex-end; color: var(--ink-2); }      /* a scale label, not an accent */
.ruler__seg--quote.is-current { color: var(--ink); }

.ruler__scale {
  position: relative; height: 24px; margin-top: 10px;
  overflow-x: clip; overflow-y: visible;          /* the needle layer travels right; never widen the page */
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) calc(100% * 2 / 11) 50% / 1px 20px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) calc(100% * 5 / 11) 50% / 1px 20px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) calc(100% * 10 / 11) 50% / 1px 20px no-repeat,
    repeating-linear-gradient(90deg,
      transparent 0 calc(100% / 22 - .5px),
      var(--field) calc(100% / 22 - .5px) calc(100% / 22 + .5px),
      transparent calc(100% / 22 + .5px) calc(100% / 11)) 0 50% / 100% 10px no-repeat,
    linear-gradient(var(--field), var(--field)) 0 50% / 100% 1px no-repeat;
}
.ruler__fill {
  position: absolute; top: 50%; height: 4px; margin-top: -2px;
  left: calc(100% / 22); width: calc(100% * 10 / 11);
  background: var(--teal);
  transform-origin: left center; transform: scaleX(calc((var(--val, 1) - 1) / 10));
  transition: transform 200ms var(--ease);
}
.ruler__needle {
  position: absolute; inset: 0 auto 0 0; width: 100%; pointer-events: none;
  transform: translateX(calc(100% / 22 + (var(--val, 1) - 1) * 100% / 11));
  transition: transform 200ms var(--ease);
}
.ruler__needle::before { content: ""; position: absolute; left: -1px; top: -2px; width: 2px; height: 28px; background: var(--ink); }
.ruler__needle::after { content: ""; position: absolute; left: -4px; top: -10px; width: 8px; height: 8px; background: var(--xr); }

.ruler__nums {
  display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); margin-top: 6px;
  text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.ruler__q { color: var(--ink-2); }
.ruler__prices {
  display: grid; grid-template-columns: 2fr 3fr 5fr 1fr; margin-top: 8px;
  font-size: var(--fs-ui); line-height: 19px; font-weight: 600; color: var(--ink);
}
.ruler__prices > span { display: flex; justify-content: center; white-space: nowrap; }
.ruler__prices > span:last-child { justify-content: flex-end; color: var(--ink-2); }

.ruler__input {
  position: absolute; z-index: 1;
  left: calc(100% / 22 - 22px); width: calc(100% * 10 / 11 + 44px);
  top: 18px; height: 44px; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ruler__input:focus, .ruler__input:focus-visible { outline: none; }
/* touch screens: the ruler takes a sideways drag or a tap (buy.js), a vertical swipe scrolls the page */
@media (pointer: coarse) {
  .ruler { touch-action: pan-y; }
  .ruler__input { pointer-events: none; }
}
.ruler__input::-webkit-slider-runnable-track { height: 44px; background: transparent; border: 0; }
.ruler__input::-moz-range-track { height: 44px; background: transparent; border: 0; }
.ruler__input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; background: transparent; border: 0; }
.ruler__input::-moz-range-thumb { width: 44px; height: 44px; background: transparent; border: 0; border-radius: 0; }
.ruler:has(.ruler__input:focus-visible) .ruler__needle::before,
.ruler.is-focus .ruler__needle::before { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--focus); }

/* ============================================================ 3.8 status log */
.statuslog { list-style: none; margin: 0; padding: 0; }
.status {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 0; align-items: start;
  padding: 14px 0;
}
.status + .status { border-top: var(--border-hair); }
.status__glyph { position: relative; height: 22px; width: 24px; }   /* centred on the title's first line */
.status__glyph::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  box-sizing: border-box; border: var(--border-field);              /* pending (and unknown) */
}
.status[data-state="running"] .status__glyph::before { border: 0; background: var(--teal); animation: status-pulse 1s ease-in-out infinite alternate; }
.status[data-state="done"] .status__glyph::before,
.status[data-state="failed"] .status__glyph::before {
  width: 12px; height: 12px; margin-top: -6px; left: -2px; border: 0;
  -webkit-mask: var(--mask) center / 12px 12px no-repeat; mask: var(--mask) center / 12px 12px no-repeat;
}
.status[data-state="done"] .status__glyph::before {
  background: var(--ink);
  --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.status[data-state="failed"] .status__glyph::before {
  background: var(--danger);
  --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
@keyframes status-pulse { from { opacity: .35; } to { opacity: 1; } }
.status__text { display: flex; flex-direction: column; min-width: 0; }
.status__title { font-size: var(--fs-body); line-height: 22px; font-weight: 600; color: var(--ink); }
.status[data-state="pending"] .status__title { font-weight: 400; color: var(--ink-2); }
.status__detail { margin-top: 2px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.status__ref { padding-left: 16px; line-height: 22px; color: var(--ink-2); text-align: right; white-space: nowrap; }
/* shipped: "FedEx tracking 7…" under the ship row's detail, the number in mono as FedEx's link */
.status__track { margin-top: 2px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.status__trackno { font-family: var(--font-mono); font-weight: 400; letter-spacing: .02em; overflow-wrap: anywhere; }
.statuslog--compact .status { min-height: 44px; padding: 11px 0; }
.statuslog--compact .status__detail { display: none; }

/* ============================================================ 3.9 sweep */
/* A 2px track along the bottom edge of its positioned parent; the 30% teal bar crosses it.
   The track clips the bar, so the parent never needs overflow: hidden. */
.sweep { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; pointer-events: none; }
.sweep::before {
  content: ""; position: absolute; left: 0; top: 0; width: 30%; height: 100%;
  background: var(--teal);
  animation: sweep var(--t-sweep) linear infinite;
}
.sweep--on-ink::before { background: rgba(255, 255, 255, .7); }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
/* Stage: a vertical 2px line, full height, travelling left to right across the parent. */
.sweep--stage { top: 0; bottom: 0; height: auto; container-type: inline-size; }
.sweep--stage::before {
  left: -1px; width: 2px; height: 100%;
  box-shadow: 0 0 12px rgba(0, 161, 177, .45);
  animation-name: sweep-stage;
}
@keyframes sweep-stage { from { transform: translateX(-14px); } to { transform: translateX(calc(100cqw + 14px)); } }
@media (prefers-reduced-motion: reduce) {
  .sweep::before { animation: none; width: 100%; transform: none; }
  .sweep--stage { display: none; }
  .status[data-state="running"] .status__glyph::before { animation: none; opacity: 1; }
  .ruler__fill, .ruler__needle { transition: none; }
  .btn, .site-header, .actionbar { transition: none; }
}

/* ============================================================ 3.10 mobile action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: var(--border-hair);
  transition: transform var(--t-fade) var(--ease);
}
.actionbar.is-hidden { transform: translateY(110%); }
.actionbar__sum {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-width: 0; min-height: 44px; margin: 0; padding: 0;
  background: none; border: 0; text-align: left; color: var(--ink);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
button.actionbar__sum { cursor: pointer; }
.actionbar__total { font-size: 20px; line-height: 1; white-space: nowrap; }
.actionbar__cap {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  font-size: 13px; line-height: 1.2; font-weight: 400; color: var(--ink-2);
  white-space: nowrap;
}
.actionbar__cap .glyph { width: 16px; height: 16px; }
.actionbar__btn { height: 52px; min-width: 160px; flex: none; justify-content: center; }
@media (max-width: 1023px) {
  body.has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 24px); }
  /* WCAG 2.4.11: focus scrolling keeps controls clear of the fixed bar */
  html:has(body.has-bar) { scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 16px); }
}
/* phones: one button size and one label size in every state, so the bar never changes shape between steps */
@media (max-width: 767px) {
  .actionbar { gap: 12px; }
  .actionbar__btn { width: 140px; min-width: 0; flex: none; padding: 0 12px; font-size: 17px; }
}
@media (max-width: 389px) {
  .actionbar { gap: 8px; }      /* 360: "10 devices, 10% off, excl. VAT" (170 px) still on one line */
}
/* very narrow phones (static, not measured at runtime): smaller button, the caption may wrap */
@media (max-width: 359px) {
  .actionbar__total { font-size: 18px; }
  .actionbar__btn { width: 120px; font-size: 16px; }
  .actionbar__cap { white-space: normal; }
}
@media (min-width: 1024px) {
  .actionbar { display: none !important; }
}

/* ============================================================ mobile adjustments of the primitives */
@media (max-width: 1023px) {
  .site-header__center { display: none; }       /* centre slot is desktop only (landing anchors, order number) */
}
@media (max-width: 767px) {
  .wordmark { font-size: 15px; gap: 7px; }
  .wordmark__mark { height: 22px; }
  .site-header__in { gap: var(--s-3); }
  .field__input { height: 52px; }
  .receipt { font-size: var(--fs-small); }
  .ruler { min-height: 76px; }
  .ruler__prices { display: none; }
  .status { grid-template-columns: 24px minmax(0, 1fr); }
  .status__ref { grid-column: 2; padding-left: 0; margin-top: 2px; line-height: 1.4; text-align: left; }
}

/* ============================================================ 3.11 scan (scan.js builds the markup) */
.scan { position: relative; overflow: hidden; isolation: isolate; background: var(--night-scan); color: var(--night-ink); }
.scan--surface::before {            /* the surface line: 1px cyan along the top edge, full width */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--cyan); z-index: 5;
}
.scan__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.scan__mask { position: absolute; inset: 0; z-index: 1; background: rgba(13, 15, 16, .78); will-change: transform; }
.scan__notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scan__cursor { position: absolute; inset: 0; z-index: 3; pointer-events: none; will-change: transform; }
/* a reflector the scan line passes (scan.js hits): a ring pulses out from its head, a bigger one for bigger objects */
.scan__hits { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scan__hit { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 2px solid #ffd34d; box-shadow: 0 0 14px rgba(255, 211, 77, .75), inset 0 0 8px rgba(255, 211, 77, .5);
  opacity: 0; animation: scan-hit 900ms cubic-bezier(.2, .7, .3, 1) both; }
.scan__hit--conduit { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.scan__hit--duct { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: #ff7a3d; box-shadow: 0 0 18px rgba(255, 122, 61, .8), inset 0 0 10px rgba(255, 122, 61, .5); }
@keyframes scan-hit { 0% { opacity: 1; transform: scale(.5); } 100% { opacity: 0; transform: scale(2); } }
@media (prefers-reduced-motion: reduce) { .scan__hit { animation: scan-hit-still 900ms linear both; } @keyframes scan-hit-still { 0%, 60% { opacity: 1; } 100% { opacity: 0; } } }
.scan__cursor::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: var(--scan-cursor); box-shadow: 0 0 8px rgba(208, 64, 232, .7);
}
.scan__cursor.is-off { opacity: 0; }
.scan { -webkit-user-select: none; user-select: none; }        /* a drag never selects the labels */
/* drag to scan: the whole field takes the drag (horizontal), a vertical swipe still scrolls the page */
.scan--drag { cursor: ew-resize; touch-action: pan-y; }
.scan--drag.is-dragging { cursor: grabbing; }
.scan__grip {
  position: absolute; left: -15px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--night-scan); border: 2px solid var(--scan-cursor); box-shadow: 0 0 10px rgba(208, 64, 232, .55);
  pointer-events: none;
}
.scan__grip::before, .scan__grip::after {            /* two small chevrons: it slides left and right */
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-top: 2px solid #fff; border-left: 2px solid #fff;
}
.scan__grip::before { left: 6px; transform: rotate(-45deg); }
.scan__grip::after { right: 6px; transform: rotate(135deg); }
.scan__grip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.scan--drag .scan__cursor.is-off { opacity: 1; }      /* a draggable line stays visible */
.lp-dev { pointer-events: auto; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.lp-dev img { -webkit-user-drag: none; pointer-events: none; }
.scan__note {
  position: absolute; opacity: 0; transition: opacity var(--t-fade) linear;
  font: 400 var(--fs-axis)/1 var(--font-mono); color: rgba(255, 255, 255, .7); white-space: nowrap;
}
.scan__note.is-on { opacity: 1; }
.scan__leader { position: absolute; left: 0; top: 0; box-sizing: border-box; }
.scan__label { position: absolute; transform: translateY(-50%); }
.scan__note--right .scan__leader { width: 20px; border-top: 1px solid rgba(255, 255, 255, .5); }
.scan__note--right .scan__label { left: 26px; top: 0; }
.scan__note--below .scan__leader { width: 16px; border-left: 1px solid rgba(255, 255, 255, .5); border-bottom: 1px solid rgba(255, 255, 255, .5); }
.scan__note--below .scan__label { left: 22px; }
/* flipped by scan.js when a label would run into the cursor: leader to the left, label ending at the leader */
.scan__note--left .scan__leader { left: auto; right: 0; width: 20px; border-top: 1px solid rgba(255, 255, 255, .5); }
.scan__note--left .scan__label { left: auto; right: 26px; top: 0; text-align: right; }
.scan__note--below.scan__note--left .scan__leader { width: 16px; border-top: 0; border-left: 0; border-right: 1px solid rgba(255, 255, 255, .5); }
.scan__note--below.scan__note--left .scan__label { left: auto; right: 22px; }
.scan__note.is-hidden { display: none; }
.scan__notes, .scan__frame { text-shadow: 0 0 3px var(--night-scan), 0 0 2px var(--night-scan); }   /* halo: crisp over speckle and the cursor */
.scan__frame { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.scan__frame--container { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.scan__frame--box { padding: 0 10px; }       /* no vertical inset: the axis spans the true 0 to 40 cm */
.scan__frame-in { position: relative; height: 100%; }
.scan__axis { position: absolute; left: 0; top: 0; bottom: 0; }
/* a tick is a zero-size anchor at its true depth: the 6 px line sits exactly on it (the 40 cm line on the scan's
   last pixel row), only the numeral moves: "0" below its line, "40 cm" above it, the others centred */
.scan__tick { position: absolute; left: 0; width: 0; height: 0; }
.scan__tick-line { position: absolute; left: 0; top: 0; width: 6px; height: 1px; background: rgba(255, 255, 255, .45); }
.scan__tick--bottom .scan__tick-line { top: -1px; }
.scan__tick-num {
  position: absolute; left: 10px; top: 0; transform: translateY(-50%);
  font: 400 var(--fs-axis)/1 var(--font-mono); color: rgba(255, 255, 255, .6); white-space: nowrap;
}
.scan__tick--top .scan__tick-num { transform: translateY(4px); }
.scan__tick--bottom .scan__tick-num { transform: translateY(calc(-100% - 5px)); }
.scan__caption {
  position: absolute; right: 0; bottom: 8px; margin: 0;
  font: 400 var(--fs-axis)/1 var(--font-mono); color: rgba(255, 255, 255, .6); white-space: nowrap;
}
.scan__frame--box .scan__caption { bottom: 6px; }
@media (prefers-reduced-motion: reduce) {
  .scan__note { transition: none; }
}

/* ============================================================ landing (lp-), spec 4.1 */
/* header over the hero */
.lp-nav { display: flex; align-items: center; gap: 32px; }
.lp-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-ui); line-height: 1; font-weight: 400; text-decoration: none;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.lp-nav a:hover { text-decoration-line: underline; }
.lp-headbuy { flex: none; }

/* 2. hero */
.lp-hero {
  position: relative; display: flex; flex-direction: column;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);   /* runs under the transparent header */
  min-height: calc(var(--header-h) + clamp(760px, calc(100svh - 56px), 880px));
  overflow-x: clip;                     /* the device track travels right; never widen the page */
  isolation: isolate;
}
/* the wall the device scans: fair-faced concrete (scripts/build_concrete.py), kept dark where the type is and
   showing more of itself down at the surface line, where the device rests */
.lp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 25, 29, .95) 0%, rgba(20, 25, 29, .84) 38%, rgba(20, 25, 29, .52) 100%),
    radial-gradient(90% 70% at 72% 100%, rgba(20, 25, 29, 0) 0%, rgba(20, 25, 29, .38) 100%),
    url("../img/concrete-wall.webp") center bottom / cover no-repeat;
}
.lp-scan__cap { background: var(--night); }
.lp-hero__text { padding-top: 96px; }
.lp-hero__title { grid-column: 1 / span 7; align-self: end; }
.lp-hero__buy { grid-column: 9 / span 4; align-self: end; }
.lp-hero__line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.lp-hero__name { font-size: var(--fs-ui); line-height: 1.2; font-weight: 600; color: var(--night-ink); }
.lp-hero__line .mono { font-size: 13px; color: var(--night-ink-2); }
.lp-hero .t-display { white-space: nowrap; }
.lp-hero__buy .t-lead { margin-bottom: 24px; }
.lp-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.lp-price__q { font-size: var(--fs-small); color: var(--night-ink-2); }
.lp-hero__buy .btn { margin-bottom: 12px; }
.lp-surface { position: relative; flex: 1 0 auto; min-height: 270px; }
.lp-surface__track { position: absolute; inset: 0; pointer-events: none; transform: translateX(8%); }
.lp-dev {
  --dw: 260px;
  position: absolute; left: 0; bottom: calc(var(--dw) * -.009);  /* the cut-out's 3 px margin (of 326) sits below the line */
  width: var(--dw); isolation: isolate;
}
.lp-dev { opacity: 0; transition: opacity 280ms linear; }      /* until site.js has put it at its resting place */
.lp-dev.is-placed { opacity: 1; }
.lp-dev img { width: 100%; height: auto; transition: opacity 140ms linear; }
.lp-dev img.is-swapping { opacity: 0; }
/* the finish on the scan line: a quiet mono label above the device */
.lp-dev__name {
  position: absolute; left: 6%; bottom: calc(100% + 6px); white-space: nowrap; pointer-events: none;
  font-size: 12px; line-height: 1; letter-spacing: .02em; color: var(--night-ink-2);
}
/* "View in 3D" beside the device: right of it, left near the right edge (site.js: is-buy-left), a third of the
   way down. It shows once the device has come to rest; the drag starts anywhere on the device but not on it. */
.lp-dev__acts {
  position: absolute; left: calc(100% + 4px); top: 34%; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  opacity: 0; transform: translateX(-6px); pointer-events: none;
  transition: opacity 260ms linear, transform 260ms var(--ease);
}
.lp-dev__acts .btn { cursor: pointer; touch-action: manipulation; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.lp-dev__3d { height: 34px; padding: 0 12px; gap: 8px; font-size: 14px; background: var(--night); }
.lp-dev.is-rest .lp-dev__acts { opacity: 1; transform: none; pointer-events: auto; }
.lp-dev.is-buy-left .lp-dev__acts { left: auto; right: calc(100% + 4px); align-items: flex-end; }
@media (prefers-reduced-motion: reduce) { .lp-dev__acts { transition: none; } }
/* the hero's 3D sheet: a panel in the middle on a desktop, a sheet from the bottom on a phone */
.lp-x3d {
  width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0 0 20px;
  border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.lp-x3d[open] { animation: lp-x3d-in 240ms var(--ease); }
.lp-x3d::backdrop { background: rgba(13, 15, 16, .62); }
html:has(.lp-x3d[open]) { overflow: hidden; }
.lp-x3d__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; }
.lp-x3d__h { margin: 0; font-size: var(--fs-h3); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.lp-x3d__h:focus { outline: none; }
.lp-x3d__pick { margin-top: 14px; padding: 0 24px; }
.lp-x3d__buy { width: auto; margin: 16px 24px 0; justify-content: space-between; }
.lp-x3d .lp-x3d__note { margin: 12px 24px 0; padding: 0; }
.lp-x3d__handle { display: none; }
/* phones: drag the handle or the head down (over 80 px, or a flick) to close, as the checkout's sheets do (site.js) */
.lp-x3d.is-dragging { animation: none; transition: none; }
.lp-x3d.is-settling { animation: none; transition: transform 200ms var(--ease); }
@keyframes lp-x3d-in { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 767px) {
  .lp-x3d { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .lp-x3d__handle { display: grid; place-items: center; height: 24px; touch-action: none; cursor: grab; }
  .lp-x3d__handle span { width: 36px; height: 4px; border-radius: 2px; background: var(--field); }
  .lp-x3d__head { padding: 2px var(--gutter) 10px; touch-action: none; }
  .lp-x3d__pick { padding: 0 var(--gutter); }
  .lp-x3d__buy { margin: 14px var(--gutter) 0; }
  .lp-x3d .lp-x3d__note { margin: 10px var(--gutter) 0; }
  .lp-x3d a.lp-x3d__buy { display: flex; }
  .lp-x3d .x3d-v--sheet .x3d__model { height: min(50vh, 420px); }
}
@media (prefers-reduced-motion: reduce) { .lp-x3d[open] { animation: none; } }
/* hero finishes: four cut-outs with their names under "Buy now"; the picked one carries a cyan rule */
.lp-hfin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.lp-hfin__opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 10px;
  border: 0; border-bottom: 2px solid transparent; background: none; color: var(--night-ink-2); cursor: pointer;
  font: inherit; transition: color var(--t-press) linear, border-color var(--t-press) linear;
}
.lp-hfin__img { display: block; width: 100%; max-width: 72px; }
.lp-hfin__img img { display: block; width: 100%; height: auto; opacity: .72; transition: opacity var(--t-press) linear, transform 200ms var(--ease); }
.lp-hfin__name { font-size: 12px; line-height: 1.25; text-align: center; text-wrap: balance; }
.lp-hfin__opt:hover { color: var(--night-ink); }
.lp-hfin__opt:hover .lp-hfin__img img { opacity: 1; }
.lp-hfin__opt[aria-checked="true"] { color: var(--night-ink); border-bottom-color: var(--cyan); }
.lp-hfin__opt[aria-checked="true"] .lp-hfin__img img { opacity: 1; transform: translateY(-2px); }
.lp-hfin__opt:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .lp-hfin__img img, .lp-dev img { transition: none; } }
.lp-dev::after {                       /* contact shadow on the surface line, under the base edge it rests on */
  content: ""; position: absolute; z-index: -1; left: 9%; right: 6%;
  bottom: calc(var(--dw) * .009); height: calc(var(--dw) * .07);
  background: radial-gradient(50% 100% at 50% 100%, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
}
.lp-scan { flex: none; height: 240px; }
.lp-scan__cap { display: none; }
.lp-hero.is-cap-below .lp-scan__cap {           /* desktop fallback when the resting cursor would cut the caption */
  display: block; margin: 0; padding: 10px var(--gutter) 14px; text-align: right;
  font: 400 var(--fs-axis)/1.2 var(--font-mono); color: rgba(255, 255, 255, .6);
}
.lp-hero__end { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; pointer-events: none; }
/* laptop and iPad heights (1366 x 657, 1024 x 768): the scan sits higher, so the slide starts on load */
@media (min-width: 1024px) and (max-height: 820px) {
  .lp-hero { min-height: 0; }
  .lp-hero__text { padding-top: 48px; }
  .lp-surface { min-height: 220px; }
  .lp-dev { --dw: 220px; }
}

/* shared landing pieces */
.lp-band { padding: 120px 0; }
.lp-fig img { max-width: none; }
.lp-fig__cap { margin-top: 12px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.lp-fig__n { font-weight: 600; color: var(--ink); margin-right: 8px; }
.lp-specs { border-bottom: var(--border-hair); }
.lp-specs > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  padding: 16px 0; border-top: var(--border-hair);
}
.lp-specs dt { font-size: var(--fs-label); line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.lp-specs dd { font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }

/* 3. the image */
.lp-image__head { align-items: end; }
.lp-image__head .t-statement { grid-column: 1 / span 7; }
.lp-image__lead { grid-column: 9 / span 4; color: var(--ink-2); }
.lp-image__body { margin-top: 48px; align-items: start; }
.lp-fig--hand { grid-column: 1 / span 3; }
.lp-fig--hand img { width: 206px; height: 464px; }
.lp-depth {
  --rh: 464px;
  grid-column: 4 / span 4;
  display: grid; grid-template-columns: 64px auto; column-gap: 20px; align-items: end;
}
.lp-depth__rule {
  position: relative; grid-row: 1; height: calc(var(--rh) + 1px);
  --tick: rgba(31, 37, 42, .4);
  background:
    linear-gradient(var(--tick), var(--tick)) right top / 1px calc(100% - 1px) no-repeat,
    repeating-linear-gradient(to bottom, var(--tick) 0 1px, transparent 1px calc(var(--rh) / 4)) right top / 13px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--tick) 0 1px, transparent 1px calc(var(--rh) / 40)) right top / 7px 100% no-repeat;
}
.lp-depth__rule span {
  position: absolute; right: 18px; transform: translateY(-50%); margin-top: .5px;
  font: 400 var(--fs-axis)/1 var(--font-mono); color: var(--ink-2); white-space: nowrap;
}
.lp-depth__fig { grid-row: 1; margin-bottom: calc(var(--fs-figure) * -.06); white-space: nowrap; line-height: .8; }
.lp-depth__cm { margin-left: 10px; font-size: 32px; font-weight: 700; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); }
.lp-depth__cap { grid-column: 2; margin-top: 16px; font-size: var(--fs-body); line-height: 1.45; color: var(--ink-2); }
.lp-image__specs { grid-column: 9 / span 4; }

/* 4. finishes */
.lp-finishes { padding: 96px 0; }
.lp-finishes .grid12 { grid-template-rows: auto auto; align-items: start; }
.lp-finishes__copy { grid-column: 1 / span 5; grid-row: 1; }
.lp-finishes__lead { margin-top: 16px; max-width: 40ch; color: var(--ink-2); }
.lp-finishes__pick { grid-column: 1 / span 5; grid-row: 2; margin-top: 40px; }
.lp-index { border-top: var(--border-ink); border-bottom: var(--border-ink); }
.lp-index__row {
  position: relative; display: flex; align-items: center; gap: 16px;
  width: 100%; height: 72px; margin: 0; padding: 0;
  background: none; border: 0; text-align: left; color: var(--ink-2);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.lp-index__row + .lp-index__row { border-top: 1px solid var(--concrete-line); }
.lp-index__row:focus-visible { outline-offset: -2px; }
.lp-index__sq {
  flex: none; width: 16px; height: 16px; background: var(--hex);
  background: linear-gradient(180deg, color-mix(in srgb, var(--hex) 85%, #fff), var(--hex) 45%, color-mix(in srgb, var(--hex) 88%, #000));
  outline: 1px solid rgba(31, 37, 42, .12); outline-offset: -1px;
}
.lp-index__name { position: relative; flex: 0 1 auto; min-width: 0; transition: color var(--t-press) linear; }
.lp-index__code { flex: none; margin-left: auto; font-size: 11px; color: var(--ink-2); }   /* item codes: there for buyers, quiet otherwise (ink-2: concrete ground) */
.lp-index__row:hover .lp-index__name, .lp-index__row[aria-checked="true"] .lp-index__name { color: var(--ink); }
/* selected: a 2 px ink bar under the name only, so the list still reads as one list of four */
.lp-index__row[aria-checked="true"] .lp-index__name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--ink);
}
.lp-finishes__btn { margin-top: 32px; }
/* the plate shares the index's row: its floor line is the index's bottom rule, one horizon across the band */
.lp-plate { grid-column: 7 / span 6; grid-row: 2; align-self: start; margin-top: 40px; }
.lp-plate__stage {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: 290px;                                   /* = the index: 4 rows of 72 px plus its two 1 px rules */
  border-bottom: 1px solid var(--concrete-line);
}
.lp-plate__dev {
  --dw: 340px;                                     /* 1.04x the 326 px cut-out until larger renders exist */
  position: relative; isolation: isolate; flex: none; width: var(--dw); aspect-ratio: 326 / 273;
  top: calc(var(--dw) * .009);                     /* the cut-out's 3 px margin sits below the floor */
}
.lp-plate__dev::after {
  content: ""; position: absolute; z-index: -1; left: 9%; right: 6%; bottom: 0; height: 8%;
  background: var(--contact-shadow);
}
.lp-plate__img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain;
  opacity: 0; transition: opacity var(--t-fade) linear;
}
.lp-plate__img.is-on { opacity: 1; }
.lp-plate__3d { position: absolute; inset: 0; }
.lp-plate.is-3d .lp-plate__stage { height: 420px; }
.lp-plate.is-3d .lp-plate__dev { visibility: hidden; }
.lp-plate__3dbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin-top: 12px; }
.lp-plate__3dbtn { gap: 8px; }
.lp-plate__3dlink { font-size: var(--fs-small); }
.lp-plate__cap {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; margin-top: 14px;
  font-size: var(--fs-small); line-height: 1.4;
}
.lp-plate__name { font-weight: 600; color: var(--ink); }
.lp-plate__code { font-size: 11px; color: var(--ink-2); }
/* availability of the finish on show (stock.py bands), as in the checkout finish table */
.lp-plate__avail { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.lp-plate__avail::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--ink-2); }
.lp-plate__avail[data-state="in_stock"]::before { background: var(--teal-ink); border-color: var(--teal-ink); }
.lp-plate__avail[data-state="limited"]::before { background: #c98a2b; border-color: #c98a2b; }
.lp-plate__avail[data-state="unknown"], .lp-plate__avail:empty { display: none; }

/* 5. on site */
.lp-site .grid12 { align-items: start; }
.lp-fig--wall { grid-column: 1 / span 6; }
.lp-fig--wall img { width: 530px; height: 294px; }
.lp-site__copy { grid-column: 8 / span 5; }
.lp-site__copy .t-statement { margin-bottom: 40px; }

/* 6. team pricing */
.lp-team { padding: 96px 0; border-top: var(--border-hair); }
.lp-team .grid12 { align-items: start; }
.lp-team__copy { grid-column: 1 / span 5; }
.lp-team__text { margin-top: 16px; color: var(--ink-2); max-width: 40ch; }
.lp-calc { grid-column: 7 / span 6; }
.lp-calc__readout { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.lp-calc__price { margin-top: 6px; color: var(--ink-2); }
.lp-calc__price .num { font-weight: 600; color: var(--ink); white-space: nowrap; }
.lp-cur { flex: none; }
.lp-cur .field__input { height: 44px; width: auto; min-width: 96px; font-weight: 600; font-size: var(--fs-ui); }
.lp-calc__btn { margin-top: 32px; }
.lp-team__text + .lp-team__text { margin-top: 12px; }

/* 7. before you buy: the practical questions as one datasheet */
.lp-before { border-top: var(--border-hair); }
.lp-before .grid12 { align-items: start; }
.lp-before__copy { grid-column: 1 / span 5; }
.lp-before__lead { margin-top: 16px; color: var(--ink-2); max-width: 36ch; }
.lp-before__list { grid-column: 7 / span 6; }
.lp-before__list > div { grid-template-columns: 168px minmax(0, 1fr); }

/* 8. the last word: price and Buy now once more, on the hero's ground */
.lp-final { padding: 96px 0; }
.lp-final .grid12 { align-items: end; }
.lp-final__h { grid-column: 1 / span 7; }
.lp-final__buy { grid-column: 9 / span 4; display: grid; gap: 16px; }
.lp-final__cap { color: rgba(255, 255, 255, .72); }
@media (max-width: 1023px) {
  .lp-before .grid12, .lp-final .grid12 { display: block; }
  .lp-before__list { margin-top: 32px; }
  .lp-final__buy { margin-top: 32px; max-width: 420px; }
}
@media (max-width: 767px) {
  .lp-final { padding: 64px 0; }
  .lp-before__list > div { display: block; }
}

/* unconfirmed product facts (facts.py), POC only: says plainly that Product / Legal still owe the wording */
.tbc {
  display: inline-block; margin-left: 6px; padding: 1px 5px; vertical-align: 1px;
  font: 400 11px/1.3 var(--font-mono); color: #8a4b00; white-space: nowrap;
  border: 1px dashed #c98a2b; border-radius: 2px; background: #fff6e8;
}
.on-night .tbc { color: #ffd59a; border-color: rgba(255, 213, 154, .6); background: rgba(255, 213, 154, .08); }

/* 7. sign-off and footer */
.lp-foot { padding: 120px 0 40px; }
.lp-foot__sign { max-width: 10.5em; }
.lp-foot__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 16px; border-top: var(--border-ink);
  font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2);
}
.lp-foot__poc { color: var(--ink-3); }

/* tablet and mobile: one column, content max 640 */
@media (max-width: 1023px) {
  body[data-page="landing"] main .container, body[data-page="landing"] .lp-foot .container,
  body[data-page="landing"] .scan__frame--container { max-width: calc(640px + 2 * var(--gutter)); }
  .lp-wide { display: none; }
  .lp-hero { min-height: 0; }
  .lp-hero__text { display: block; padding-top: 24px; }
  .lp-hero__title { margin-bottom: 20px; }
  .lp-hero__buy .t-lead { margin-bottom: 20px; }
  .lp-surface { min-height: 170px; }
  .lp-dev { --dw: 160px; }
  .lp-scan { height: 160px; }
  /* the caption cannot fit the masked part of a narrow scan: it runs under the field, still on night */
  .lp-scan__cap, .lp-hero.is-cap-below .lp-scan__cap {
    display: block; align-self: center; width: 100%; margin: 0; padding: 10px var(--gutter) 14px;
    max-width: calc(640px + 2 * var(--gutter)); text-align: left;
    font: 400 var(--fs-axis)/1.2 var(--font-mono); color: rgba(255, 255, 255, .6);
  }

  .lp-band { padding: 64px 0; }
  .lp-image__head, .lp-finishes .grid12, .lp-site .grid12, .lp-team .grid12 { display: block; }
  .lp-image__lead { margin-top: 16px; }
  .lp-image__body { margin-top: 40px; display: grid; grid-template-columns: 155px minmax(0, 1fr); column-gap: 16px; }
  .lp-fig--hand { grid-column: 1; grid-row: 1; }
  .lp-fig--hand img { width: 155px; height: 349px; }
  .lp-depth { --rh: 349px; grid-column: 2; grid-row: 1; grid-template-columns: 40px auto; column-gap: 12px; }
  .lp-depth__rule span { right: 15px; }
  .lp-depth__cap { font-size: var(--fs-small); }
  .lp-fig--hand .lp-fig__cap { grid-column: 1 / -1; }
  .lp-image__specs { grid-column: 1 / -1; grid-row: 3; margin-top: 32px; }

  .lp-finishes { padding: 56px 0; }
  .lp-plate { margin-top: 32px; }
  .lp-plate__stage { height: auto; }
  .lp-plate.is-3d .lp-plate__stage { height: 360px; }
  .lp-plate__dev { --dw: 260px; }
  .lp-finishes__pick { margin-top: 32px; }
  .lp-index__row { height: 56px; }
  .lp-index__name { font-size: 24px; }

  .lp-fig--wall { margin: 0 calc(-1 * var(--gutter)); }
  .lp-fig--wall img { width: 100%; height: auto; max-width: 530px; }
  .lp-fig--wall .lp-fig__cap { padding: 0 var(--gutter); }
  .lp-site__copy { margin-top: 40px; }
  .lp-site__copy .t-statement { margin-bottom: 32px; }

  .lp-team { padding: 64px 0; }
  .lp-calc { margin-top: 40px; }
  .lp-foot { padding: 64px 0 32px; }
}
@media (max-width: 349px) {
  /* "concrete." is about 6 em wide: below 350 px the display line narrows with the viewport so it never clips */
  .lp-hero .t-display { font-size: calc((100vw - 2 * var(--gutter)) / 6.05); }
}
@media (max-width: 359px) {
  /* narrow phones: Fig. 1 at 130 px (0.63x) leaves the "40" room to stay legible */
  .lp-image__body { --photo: 130px; grid-template-columns: 130px minmax(0, 1fr); }
  .lp-fig--hand img { width: 130px; height: 293px; }
  .lp-depth { --rh: 293px; }
}
@media (max-width: 767px) {
  /* "40 cm" on one baseline, sitting on the 40 cm tick as on desktop. The figure narrows with the viewport so its
     right edge stays at least 4 px inside the content box: room = 100vw - gutters - photo - 16 - ruler 40 - 12,
     less 10 px (4 px clearance plus glyph overhang); "40" is about 1.51 em wide in the display voice, "cm"
     (13 px) plus its 4 px gap about 18 px. */
  .lp-depth { grid-template-columns: 40px minmax(0, 1fr); }
  .lp-depth__fig {
    --room: calc(100vw - 2 * var(--gutter) - var(--photo, 155px) - 78px);
    --fig: min(88px, calc((var(--room) - 18px) / 1.51));
    display: block; white-space: nowrap; margin-bottom: calc(var(--fig) * -.06);
  }
  .lp-depth__fig .t-figure { font-size: var(--fig); }
  .lp-depth__cm { margin-left: 4px; font-size: 13px; line-height: .8; }
  .lp-specs > div { display: block; }
  .lp-specs dd { margin-top: 2px; }
  .lp-calc__readout { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-plate__img, .lp-index__name { transition: none; }
}

/* landing: the bar leaves the accessibility tree and the paint while it is tucked away */
body[data-page="landing"] .actionbar.is-hidden { visibility: hidden; transition: transform var(--t-fade) var(--ease), visibility 0s var(--t-fade); }

/* ============================================================ order page (op-), spec 4.3 */
.op-print {                                   /* 44 x 44 target around the text link */
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  margin: 0 4px 0 0; padding: 0 4px; font-size: var(--fs-ui);
}
.op-meta { display: none; }                   /* the order number shows in the band and the log; print keeps it here */

.op-band { padding: 56px 0; }
.op-band__in { min-height: 208px; align-items: end; }      /* 320 band = 56 + 208 + 56 */
.op-band__text { grid-column: 1 / span 7; align-self: center; }
.op-no { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.op-head .t-title { text-wrap: balance; }
.op-head .t-lead { margin-top: 16px; max-width: 44ch; }
.op-back { margin-top: 24px; }
.op-email { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }   /* moves to the next line whole */
.op-lineup { max-width: 100%; grid-auto-columns: minmax(min-content, max-content); }   /* labels wrap before the band overflows */
.op-lineup .lineup__group { justify-items: center; }
.op-lineup .lineup__label { width: auto; min-width: var(--w); }
.op-head__v.is-in { animation: op-fade var(--t-fade) var(--ease) both; }
@keyframes op-fade { from { opacity: 0; } to { opacity: 1; } }
/* the line-up is sized to its column: --f (order.html) is the order's footprint in pile widths */
.op-band__lineup { grid-column: 8 / span 5; display: flex; flex-direction: column; align-items: center; container-type: inline-size; }
.op-lineup__sum {
  margin-top: 12px; max-width: 40ch; text-align: center; text-wrap: balance;
  font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink);
}
.op-lineup { --w: min(180px, calc(100cqi / var(--f, 1))); }

.op-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start;
  padding-top: 56px; padding-bottom: 96px;
}
/* test access (gate.html): the password card over the dark hero, the device dim and blurred behind it */
.gate { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 32px var(--gutter); overflow: hidden; }
.gate__dev {
  position: absolute; right: -4%; bottom: -6%; width: min(760px, 80vw); height: auto; opacity: .35;
  filter: blur(6px); pointer-events: none;
}
.gate__card {
  position: relative; width: min(420px, 100%); padding: 32px 28px 24px; border-radius: 8px;
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
  animation: op-done-in 320ms var(--ease) both;
}
.gate__brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.gate__mark { display: block; width: auto; height: 22px; }
.gate__title { margin-top: 18px; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.gate__lead { margin: 10px 0 20px; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.gate__card .field { margin-bottom: 16px; }
.gate__note { margin-top: 14px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .gate__card { animation: none; } }

/* a fresh order is paced by site.js: its rows and bar stay out of sight until the script has taken them over, so the
   server's final state never flashes first (order.html has the no-script fallback) */
main[data-fresh="1"]:not(.is-paced) .op-prog, main[data-fresh="1"]:not(.is-paced) .op-log,
main[data-fresh="1"]:not(.is-paced) .op-head { visibility: hidden; }

/* the order is through: one card over the blurred page, a tick that draws itself and what comes next */
.op-done {
  width: min(440px, calc(100vw - 2 * var(--gutter))); margin: auto; padding: 36px 32px 28px; border: 0;
  border-radius: 8px; background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 24px 64px rgba(20, 25, 29, .22);
}
.op-done[open] { animation: op-done-in 320ms var(--ease) both; }
.op-done::backdrop { background: rgba(244, 244, 242, .5); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
@keyframes op-done-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.op-done__check { width: 72px; height: 72px; margin: 0 auto 18px; }
.op-done__check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.op-done__check circle { stroke: var(--teal); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: op-draw 600ms var(--ease) 150ms forwards; }
.op-done__check path { stroke: var(--teal); stroke-width: 4; stroke-dasharray: 34; stroke-dashoffset: 34; animation: op-draw 350ms var(--ease) 650ms forwards; }
@keyframes op-draw { to { stroke-dashoffset: 0; } }
.op-done__title { font-family: var(--font-display, inherit); font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.op-done__no { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.op-done__lead { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.op-done__next { list-style: none; margin: 18px 0 24px; padding: 16px 0 0; border-top: var(--border-hair); display: grid; gap: 10px; text-align: left; }
.op-done__next li {
  position: relative; padding-left: 26px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); text-wrap: pretty;
}
.op-done__next li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0, 161, 177, .14) no-repeat center / 9px 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23006d78' stroke-width='2'/%3E%3C/svg%3E");
}
.op-done__next b { font-weight: 600; color: var(--ink); word-break: break-all; }
@media (prefers-reduced-motion: reduce) {
  .op-done[open] { animation: none; }
  .op-done__check circle, .op-done__check path { animation: none; stroke-dashoffset: 0; }
}
/* "It's yours" (order.html .op-yours, site.js adds is-go when the card opens): the XR turns above its open box (0 to
   1.9 s), sinks in, the lid drops (2.7 s), the label goes on (3.2 s), the route draws to the buyer's city (3.6 s).
   Without is-go (reduced motion, no script) everything stands at the end. Box and lid in the brand's night. */
.op-yours { margin: -8px auto 18px; width: min(300px, 100%); }
.op-done__title:focus { outline: none; }        /* focused on open (autofocus) so reading starts here; not a control */
/* a phone with its browser bars: the card fits with its button. The decoration shrinks (zoom keeps its layout and
   animation in proportion), text and button keep their size */
@media (max-height: 820px) {
  .op-done { padding: 24px 24px 20px; }
  .op-yours { zoom: .74; margin-bottom: 10px; }
  .op-done__lead { margin-top: 10px; }
  .op-done__next { margin: 14px 0 18px; padding-top: 12px; gap: 8px; }
}
@media (max-height: 680px) {
  .op-done { padding: 18px 20px 16px; }
  .op-yours { zoom: .56; margin-bottom: 6px; }
  .op-done__title { font-size: 26px; }
  .op-done__next { margin: 10px 0 14px; padding-top: 10px; gap: 6px; }
}
.op-yours__stage { position: relative; height: 216px; }
.op-yours__dev { position: absolute; left: 50%; top: 0; width: 230px; height: 170px; margin-left: -115px; z-index: 2;
  transform: translateY(82px); }                    /* the camera at 190 %: the XR about 80 px tall, all of it in the box */
.op-yours__mv { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.op-yours__rim { position: absolute; left: 50%; bottom: 96px; width: 176px; height: 22px; margin-left: -88px; z-index: 1;
  background: #0d1012; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.op-yours__front { position: absolute; left: 50%; bottom: 0; width: 176px; height: 96px; margin-left: -88px; z-index: 3;
  background: linear-gradient(180deg, #2b3339 0%, #1f252a 38%, #181d21 100%); border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 24px -12px rgba(20, 25, 29, .55), inset 0 1px 0 rgba(77, 219, 221, .55); }
.op-yours__lid { position: absolute; left: 50%; bottom: 92px; width: 188px; height: 30px; margin-left: -94px; z-index: 4;
  background: linear-gradient(180deg, #39434a 0%, #2b3339 60%, #232a2f 100%); border-radius: 4px 4px 2px 2px;
  clip-path: polygon(7% 0, 93% 0, 100% 72%, 100% 100%, 0 100%, 0 72%);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25); }
.op-yours__label { position: absolute; left: 22px; right: 22px; top: 22px; display: grid; gap: 1px; padding: 7px 10px 8px;
  border-radius: 3px; background: #fbfbf9; color: var(--ink); text-align: left; font-size: 11px; line-height: 1.3;
  transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.op-yours__label b { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.op-yours__label span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.op-yours__bars { position: absolute; right: 10px; top: 9px; width: 30px; height: 14px; opacity: .8;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 6px); }
.op-yours__route { display: block; width: 100%; height: 56px; margin-top: 14px; overflow: visible; }
.op-yours__arc { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke; }
.op-yours__end { fill: var(--paper); stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; }
.op-yours__end--to { fill: var(--teal); }
.op-yours__van { fill: #ffb547; stroke: var(--paper); stroke-width: 2; vector-effect: non-scaling-stroke; }
.op-yours__ends { display: flex; justify-content: space-between; gap: 16px; margin: 4px 0 0; font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.op-yours__ends > span { display: grid; max-width: 50%; }
.op-yours__ends > span:last-child { text-align: right; }
.op-yours__ends b { font-weight: 600; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.op-yours.is-go .op-yours__dev { animation: op-yours-sink 760ms cubic-bezier(.55, 0, .3, 1) 1.9s both; }
.op-yours.is-go .op-yours__lid { animation: op-yours-lid 560ms cubic-bezier(.3, 1.5, .5, 1) 2.7s both; }
.op-yours.is-go .op-yours__label { animation: op-yours-label 380ms cubic-bezier(.3, 1.4, .5, 1) 3.2s both; }
.op-yours.is-go .op-yours__arc { animation: op-yours-arc 1100ms cubic-bezier(.45, 0, .25, 1) 3.6s both; }
.op-yours.is-go .op-yours__end--to, .op-yours.is-go .op-yours__ends > span:last-child { animation: op-yours-fade 300ms linear 4.5s both; }
@keyframes op-yours-sink { from { transform: translateY(-27px); } to { transform: translateY(82px); } }
@keyframes op-yours-lid { from { opacity: 0; transform: translateY(-80px); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes op-yours-label { from { opacity: 0; transform: scale(.6) rotate(-10deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes op-yours-arc { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes op-yours-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .op-yours.is-go * { animation: none !important; } }
@media print { .op-done { display: none !important; } }

/* order progress: six milestones on one rail; filled to the last step done, a light runs along the part in progress */
.op-prog {
  --p: 0; margin: 16px 0 8px; padding: 22px 20px 16px; border: var(--border-hair); border-radius: var(--r-control);
  background: var(--paper);
}
.op-prog__steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.op-prog__rail {                                /* from the first dot's centre to the last one's */
  position: relative; height: 0; margin: 0 calc(100% / 12);
}
.op-prog__rail::before, .op-prog__fill {
  content: ""; position: absolute; left: 0; top: 8px; height: 3px; border-radius: 2px;
}
.op-prog__rail::before { right: 0; background: var(--hairline); }
.op-prog__fill {
  width: calc(var(--p) * 100%); background: var(--teal); transition: width 700ms var(--ease); overflow: hidden;
}
.op-prog[data-state="running"] .op-prog__fill::after {         /* a light running along the bar while work goes on */
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  animation: op-run 1.2s linear infinite;
}
@keyframes op-run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.op-prog__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.op-prog__dot {
  width: 19px; height: 19px; border-radius: 50%; background: var(--paper); border: 2px solid var(--hairline);
  transition: background-color 300ms linear, border-color 300ms linear;
}
.op-prog__step[data-state="done"] .op-prog__dot {
  background: var(--teal) no-repeat center / 11px 11px; border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.op-prog__step[data-state="running"] .op-prog__dot { border-color: var(--teal); animation: op-pulse 1.4s ease-out infinite; }
.op-prog__step[data-state="failed"] .op-prog__dot { border-color: var(--danger); background: var(--danger); }
@keyframes op-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 161, 177, .55); } 100% { box-shadow: 0 0 0 10px rgba(0, 161, 177, 0); } }
.op-prog__label { font-size: 12px; line-height: 1.2; color: var(--ink-3); text-align: center; }
.op-prog__step[data-state="done"] .op-prog__label, .op-prog__step[data-state="running"] .op-prog__label { color: var(--ink); }
.op-prog__step[data-state="running"] .op-prog__label { font-weight: 600; }
.op-prog__now {
  display: flex; align-items: center; gap: 10px; min-height: 22px; margin-top: 16px; padding-top: 12px;
  border-top: var(--border-hair); font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2);
}
.op-prog__spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hairline); border-top-color: var(--teal); display: none; }
.op-prog[data-state="running"] .op-prog__spin { display: block; animation: op-spin .8s linear infinite; }
.op-prog[data-state="failed"] .op-prog__now { color: var(--danger); }
@keyframes op-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .op-prog { padding: 18px 10px 14px; } .op-prog__label { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  .op-prog__fill, .op-prog__dot { transition: none; }
  .op-prog[data-state="running"] .op-prog__fill::after, .op-prog__step[data-state="running"] .op-prog__dot { animation: none; }
  .op-prog[data-state="running"] .op-prog__spin { animation-duration: 2.4s; }
}
.op-log { margin-top: 4px; }
.op-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: var(--fs-ui); }
.op-sapref { margin-top: 16px; font-size: var(--fs-mono); line-height: 1.5; color: var(--ink-3); }   /* POC evidence, not for customers */
.op-rcpt { margin-top: 16px; }
.op-taxnote { margin-top: 8px; }
.op-addr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding-top: 20px; border-top: var(--border-hair); }
.op-addr h3 { margin: 0 0 6px; }
.op-addr p { font-size: var(--fs-ui); line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.op-addr__bill--print { display: none; }      /* same as Ship to and no VAT ID: shown in print only */
.op-vat { font-size: 13px; }

/* minimal footer for /buy and /order: the legal line */
.site-foot { border-top: var(--border-hair); }
.site-foot__in { padding-top: 20px; padding-bottom: 24px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
/* legal links and the contact line (also in the landing footer): plain 14 px ink-2 links, 44 px tall targets */
.site-foot__line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; min-width: 0; }
.site-foot__contact { column-gap: .3em; }
.site-foot__link {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere;
  color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.site-foot__link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.site-foot__sep { color: var(--ink-2); }
.site-foot__phone { display: inline-flex; align-items: center; column-gap: 8px; }
.site-foot__contact .site-foot__sep { margin-left: calc(8px - .3em); }
/* phones: the phone number takes its own line (no separator left dangling at a line end) */
@media (max-width: 479px) {
  .site-foot__phone { flex-basis: 100%; }
  .site-foot__phone .site-foot__sep { display: none; }
}
/* checkout: the footer closes the sections column and sits at the bottom of a short page */
.co-col { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); }
.co-col > .site-foot { margin-top: auto; padding-top: 48px; border-top: 0; }
.co-col > .site-foot .site-foot__in { border-top: var(--border-hair); }
.co-col > .site-foot .container { max-width: none; padding: 0; }
@media (max-width: 1023px) {
  .co-col { min-height: calc(100svh - var(--header-h) - var(--bar-h) - 24px - env(safe-area-inset-bottom)); }
}

@media (max-width: 1023px) {
  .op-band__in { display: block; min-height: 0; }
  .op-band__lineup { margin-top: 32px; }
  .op-body { grid-template-columns: minmax(0, 1fr); row-gap: 48px; max-width: calc(640px + 2 * var(--gutter)); }
}
/* the quote page (quote.html): the order band with Buy now and the PDF, the finishes side by side, the quote and
   what comes with it below */
.qp__lead { margin-top: 16px; max-width: 46ch; }
.qp__lead b { font-weight: 600; }
.qp__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.qp__pics { grid-column: 8 / span 5; display: flex; justify-content: center; align-items: flex-end; gap: 8px; }
.qp__pic { margin: 0; flex: 0 1 160px; min-width: 0; text-align: center; }
.qp__pic img { width: 100%; height: auto; }
.qp__pic figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.qp__rcpt { margin-top: 16px; }
.qp__note { margin-top: 12px; color: var(--ink-2); }
.qp__terms { margin: 16px 0 0; display: grid; gap: 0; }
.qp__terms > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: var(--border-hair);
  font-size: var(--fs-ui); line-height: 1.45; }
.qp__terms dt { color: var(--ink-2); }
.qp__terms dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 1023px) { .qp__pics { margin-top: 28px; justify-content: flex-start; } }
@media (max-width: 767px) {
  .qp__acts .btn { flex: 1 1 100%; }
  .qp__pic { flex-basis: 110px; }
}
@media (max-width: 767px) {
  .op-band { padding: 32px 0; }
  .op-lineup { --w: min(150px, calc(100cqi / var(--f, 1))); }
  .op-body { padding-top: 32px; padding-bottom: 64px; }
  .op-addr { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .op-head__v.is-in { animation: none; }
}

/* ============================================================ 404 (nf-): an unknown order link or page */
body.nf-page { display: flex; flex-direction: column; min-height: 100svh; }
.nf { flex: 1 0 auto; padding: 96px 0 120px; }
.nf__title { max-width: 16ch; text-wrap: balance; }
.nf__lead { margin-top: 16px; }
.nf__act { margin-top: 28px; font-size: var(--fs-ui); }
@media (max-width: 767px) { .nf { padding: 48px 0 64px; } }

/* ============================================================ flyer (fl-), spec 4.4: A5, print units */
body.fl-page { background: var(--grain), var(--concrete); }
.fl-tools { background: var(--paper); border-bottom: var(--border-hair); }
.fl-tools__in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.fl-tools__target { min-width: 0; overflow-wrap: anywhere; }
.fl-tools__url { display: inline-block; padding: 13px 0; margin: -13px 0; font-size: 13px; color: var(--ink); text-underline-offset: 3px; }
.fl-desk { display: flex; justify-content: center; padding: 48px var(--gutter) 80px; }
.fl-sheet {
  display: flex; flex-direction: column; flex: none;
  width: 148mm; height: 210mm; padding: 10mm; overflow: hidden;
  background: #fff; color: var(--ink); outline: 1px solid var(--concrete-line);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.fl-top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 2.5mm; border-bottom: 1pt solid var(--ink);
  font-size: 9pt; line-height: 1.2;
}
.fl-top__word { display: inline-flex; align-items: center; gap: 2mm; font-weight: 700; }
.fl-top__mark { display: block; width: auto; height: 6mm; }
.fl-top__prod { color: var(--ink-2); }
.fl-mono { font-family: var(--font-mono); font-size: 8pt; margin-left: 1.5mm; }
.fl-h1 { margin-top: 9mm; font-size: 44pt; line-height: .9; font-weight: 800; font-stretch: 125%; letter-spacing: -.04em; }
.fl-lead { margin-top: 4mm; max-width: 112mm; font-size: 10pt; line-height: 1.4; color: var(--ink-2); }
.fl-scan { flex: none; height: 30mm; margin: 7mm -10mm 0; }
.fl-scan .scan__frame--box { padding: 0 10mm; }            /* axis and caption on the sheet's 10 mm margins */
.fl-scan .scan__frame--box .scan__caption { bottom: 1.5mm; }
/* photo and caption as one figure on the left; the spec rows fill the right column, tops aligned */
.fl-band { margin-top: 6mm; display: grid; grid-template-columns: 60mm minmax(0, 1fr); column-gap: 7mm; align-items: start; }
.fl-photo img { display: block; width: 60mm; height: auto; max-width: none; }
.fl-photo figcaption { margin-top: 1.5mm; font-size: 7.5pt; line-height: 1.35; color: var(--ink-2); text-align: left; }
.fl-specs { border-top: .75pt solid var(--rule); }
.fl-specs > div { padding: 1.8mm 0; border-bottom: .75pt solid var(--rule); }
.fl-specs dt { font-size: 7.5pt; line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.fl-specs dd { margin-top: .5mm; font-size: 8.5pt; line-height: 1.35; color: var(--ink); }
.fl-buy {
  display: grid; grid-template-columns: 38mm minmax(0, 1fr); column-gap: 7mm; align-items: start;
  margin-top: auto; padding-top: 6mm; border-top: 1pt solid var(--ink);
}
.fl-qr { width: 38mm; height: 38mm; }
.fl-qr svg { display: block; width: 38mm; height: 38mm; shape-rendering: crispEdges; }
.fl-h2 { font-size: 18pt; line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; }
.fl-price { display: flex; align-items: baseline; gap: 2mm; margin-top: 4mm; }
.fl-price__amt { font-size: 24pt; line-height: 1; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.fl-price__q { font-size: 9pt; color: var(--ink-2); }
.fl-terms { margin-top: 3.5mm; font-size: 9pt; line-height: 1.4; color: var(--ink-2); }
.fl-foot { margin-top: 6mm; font-size: 7pt; line-height: 1.3; color: var(--ink-2); }
@media (max-width: 639px) {
  .fl-desk { padding: 24px 0 48px; }
  .fl-sheet { zoom: .62; }
}
@media (max-width: 359px) {
  .fl-sheet { zoom: .55; }
}

/* ============================================================ admin (adm-), spec 4.5: functional, light touch */
body[data-page="admin"] .site-header__center { display: flex; justify-content: flex-start; }
.adm-crumb { font-size: var(--fs-ui); color: var(--ink-2); }
.adm-nav { display: flex; align-items: center; gap: 24px; font-size: var(--fs-ui); }
.adm-nav .link[aria-current="page"] { text-decoration: none; }
.adm-nav .link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; margin: 0; }
.adm { padding-top: 40px; padding-bottom: 96px; }
.adm-meta { margin-top: 8px; max-width: none; }
.adm-warn {
  margin-top: 16px; padding: 10px 12px; border-left: 3px solid var(--danger); background: #fdf1f0;
  font-size: var(--fs-small); line-height: 1.5; color: var(--ink);
}
.fl-tools__warn { margin: 8px 0 0; flex-basis: 100%; }
.adm-sub { color: var(--ink-2); }
.adm-nowrap { white-space: nowrap; }
.adm-wrap { overflow-wrap: anywhere; }
.adm-id { color: var(--ink); text-underline-offset: 3px; }
.adm-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.adm-title__no { font-size: inherit; font-weight: inherit; letter-spacing: -.01em; overflow-wrap: anywhere; }
.adm-title .adm-st { font-size: var(--fs-ui); font-weight: 600; letter-spacing: 0; }

.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; border-top: var(--border-hair); border-bottom: var(--border-hair); }
.adm-kpis > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 20px 24px; }
.adm-kpis > div:first-child { padding-left: 0; }
.adm-kpis > div + div { border-left: var(--border-hair); }
.adm-kpis dt { font-size: var(--fs-small); line-height: 1.3; color: var(--ink-2); }
.adm-kpis dd { font-size: 32px; line-height: 1; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.adm-kpis .is-alert dd { color: var(--danger); }

.adm-sec { margin-top: 48px; padding-top: 16px; border-top: var(--border-ink); }
.adm-sec > h2 { margin-bottom: 12px; }
.adm-scroll { overflow-x: auto; }
.adm-table { width: 100%; font-size: var(--fs-small); line-height: 1.4; }
.adm-table th {
  padding: 10px 12px; border-bottom: var(--border-ink); text-align: left; vertical-align: bottom; white-space: nowrap;
  font-size: var(--fs-label); line-height: 1.3; font-weight: 600; color: var(--ink-2);
}
.adm-table td { padding: 10px 12px; border-bottom: var(--border-hair); vertical-align: top; }
.adm-table th:first-child, .adm-table td:first-child { padding-left: 0; }
.adm-table th:last-child, .adm-table td:last-child { padding-right: 0; }
.adm-table .r { text-align: right; }
.adm-table .mono { white-space: nowrap; }
.adm-table td.mono { line-height: 19px; }
.adm-empty { color: var(--ink-2); }
.adm-sap { white-space: nowrap; }
.adm-sap .mono { display: block; line-height: 19px; color: var(--ink); }
.adm-msg { min-width: 16ch; max-width: 40ch; }
.adm-ev--warn td:last-child { color: var(--ink); font-weight: 600; }
.adm-ev--error td { color: var(--danger); }

.adm-st { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.adm-st::before { content: ""; flex: none; width: 8px; height: 8px; box-sizing: border-box; border: 1px solid var(--field); }
.adm-st--completed::before { background: var(--ink); border-color: var(--ink); }
.adm-st--awaiting_payment::before { background: var(--teal); border-color: var(--teal); }
.adm-st--paid::before { border-color: var(--ink); }
.adm-release { border: 1px solid #c98a2b; padding: 16px 20px; background: #fffaf2; }
.adm-release__form { display: grid; gap: 16px; margin-top: 12px; justify-items: start; }
.adm-release__opts { display: grid; gap: 4px; border: 0; margin: 0; padding: 0; }
.adm-release__other { max-width: 220px; height: 40px; margin-left: 32px; }
.adm-ship__form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.adm-ship__no { max-width: 260px; height: 40px; font-family: var(--font-mono); }
.adm-msg-line { margin-bottom: 16px; }
.adm-st--awaiting_release { color: #8a4b00; font-weight: 600; }
.adm-st--awaiting_release::before { background: #c98a2b; border-color: #c98a2b; }
.adm-st--tax_review { color: #8a4b00; font-weight: 600; }
.adm-st--tax_review::before { background: #c98a2b; border-color: #c98a2b; }
.adm-st--sap_error { color: var(--danger); }
.adm-st--sap_error::before { background: var(--danger); border-color: var(--danger); }
.adm-st--cancelled, .adm-st--new { color: var(--ink-2); }

.adm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 32px; padding-top: 16px; border-top: var(--border-ink); }
.adm-facts h2 { margin-bottom: 12px; }
.adm-facts p { font-size: var(--fs-small); line-height: 1.55; }
.adm-facts dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: var(--border-hair); font-size: var(--fs-small); line-height: 1.4; }
.adm-facts dl > div:first-child { border-top: 0; padding-top: 0; }
.adm-facts dt { color: var(--ink-2); }
.adm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.adm-actions form { margin: 0; }

.adm-qr { display: grid; grid-template-columns: 240px minmax(0, 480px); gap: 48px; align-items: start; padding-top: 32px; }
.adm-qr__code { padding: 12px; background: #fff; border: var(--border-hair); }
.adm-qr__code svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.adm-qr__cur .field__input { max-width: 200px; }
.adm-qr__link { margin-top: 24px; }
.adm-qr__link .mono { margin-top: 6px; font-size: 13px; }

@media (max-width: 1023px) {
  .adm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-nav { gap: 16px; }
}
@media (max-width: 767px) {
  body[data-page="admin"] .site-header__center { display: none; }
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-kpis > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .adm-kpis > div:nth-child(n+3) { border-top: var(--border-hair); }
  .adm-facts, .adm-qr { grid-template-columns: minmax(0, 1fr); }
  .adm-qr__code { max-width: 240px; }
  .adm-nav .link:last-child { display: none; }
  .adm-table { min-width: 880px; }                 /* scroll sideways inside .adm-scroll instead of tall rows */
  .adm-log, .adm-facts .adm-table { min-width: 560px; }
}
@media (max-width: 359px) {
  .adm-crumb, .adm-long { display: none; }          /* "QR": the header fits 320 px without sideways scroll */
}

/* ============================================================ print */
@page { margin: 14mm; }                     /* the flyer sets its own A5 page with no margin */
@media print {
  body.fl-page { background: #fff; }
  body.fl-page .site-header, body.fl-page .fl-tools { display: none !important; }
  body.fl-page .fl-desk { display: block; padding: 0; background: none; }
  body.fl-page .fl-sheet { outline: 0; zoom: 1; margin: 0; break-after: avoid; }
  .actionbar, .poc, .sweep { display: none !important; }
  .site-header { position: static; }
  body { background: #fff; }
  /* order page: a clean black-on-white receipt */
  body[data-page="order"] .site-header, body[data-page="order"] .op-band__lineup,
  body[data-page="order"] .op-prog, body[data-page="order"] .op-actions, body[data-page="order"] .op-back { display: none !important; }
  body[data-page="order"] { color: #000; }
  body[data-page="order"] .ground-concrete { background: none; }
  body[data-page="order"] .op-band { padding: 0 0 16px; border-bottom: 1px solid #000; }
  body[data-page="order"] .op-band__in { min-height: 0; display: block; }
  body[data-page="order"] .t-title { font-size: 28px; }
  body[data-page="order"] .container { max-width: none; padding: 0; }
  body[data-page="order"] .op-body {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 12mm; row-gap: 0;
    padding: 16px 0 0; max-width: none;
  }
  body[data-page="order"] .op-receipt { break-inside: avoid; }
  body[data-page="order"] .op-addr { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body[data-page="order"] .status { padding: 8px 0; }
  body[data-page="order"] .receipt__row--disc, body[data-page="order"] .receipt__row--disc > :last-child { color: #000; }
  body[data-page="order"] .t-lead, body[data-page="order"] .op-no, body[data-page="order"] .status__detail,
  body[data-page="order"] .status__track, body[data-page="order"] .status__trackno,
  body[data-page="order"] .status__ref, body[data-page="order"] .receipt__row, body[data-page="order"] .receipt__meta,
  body[data-page="order"] .receipt__code, body[data-page="order"] small, body[data-page="order"] .t-label { color: #000; }
  body[data-page="order"] .receipt__thumb { background: none; }
  body[data-page="order"] .status[data-state="running"] .status__glyph::before { background: none; border: 1px solid #000; animation: none; }
  body[data-page="order"] .op-meta, body[data-page="order"] .op-addr__bill--print { display: block; }
  body[data-page="order"] .site-foot { border-top: 1px solid #000; color: #000; }
}

/* phones: the mono captions on photos and scans read at arm's length on a fair floor */
@media (max-width: 767px) {
  .lp-scan__cap, .lp-hero.is-cap-below .lp-scan__cap { font-size: 12px; }
  .lp-scan__cap, .lp-hero.is-cap-below .lp-scan__cap { color: rgba(255, 255, 255, .72); }
}

/* phones: the ruler numerals at thumb distance (11 px mono is a desktop size) */
@media (max-width: 767px) {
  .ruler__nums { font-size: 13px; }
}
