/* Hallmark · shape: Stage hero on a spotlight card (the words on five columns; on seven, a diagram of Amazon and Flipkart sending labels through Flex Print, with the two printed sample labels), then a bento with its head set inside it, the steps and the questions as two equal panels, and a close card with the same two labels · genre: modern-minimal · theme: brand (DESIGN.md, Framer's system, locked; the Seznik logo and the page's own words stay) · job: sign up (request access) · idea: "Show the one thing Flex Print does, with the marketplaces' own names on it: their labels go in, and printed labels come out." · vibe: "dark, warm spotlight, alive, wide" · redesign: full
 * paper: oklch(13% 0.005 270) · accent: oklch(67.5% 0.185 245) · display: Mona Sans · body: Inter · hero: Stage, the words on five columns and a sunset spotlight card on seven that holds the Amazon and Flipkart logos, a Flex Print node, light travelling between them, and two printed sample labels, together exactly one screen · nav: sticky bar, the logo in its own colours left, a light/dark switch and one quiet pill right · footer: colophon, the logo left and one paragraph right (with the trademark line) · imagery: product (sample labels made from the test sandbox's own orders: Amazon's by the extension's ZPL engine, Flipkart's from the sandbox's print page), plus the four marketplaces' logos from the sandbox · signature: Amazon and Flipkart sending labels through Flex Print, and two real-looking labels printing out
 * axes: dark/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the stage now holds a diagram, a light, a ring, a sheen, a border light and a word-by-word headline; each runs once, in the first four seconds, and then rests, and nothing loops. Cut: icon tiles above headings (3), a second gradient hue, glow and halo, scroll reveals, any effect that needs a library */
/* Hallmark · waive 59 · a dense macrostructure: the sections part by surface, hairline and a one-screen hero, not by empty space · the request asked for fewer scrolls on one wide page, so the gaps sit near 88px */
/* Hallmark · dropped .q__num · 54 names an ordinal set before a heading; the progress bar and the "n of 7" count in the form's bar already show the position */
/* Hallmark · review: no reviewer subagent ran on this build; it was checked by the render lint over http (0 FAIL, 0 REFLEX), 14 screen sizes from 320 to 2560 with no sideways scroll, the request form end to end against a local database, reduced motion and no script */
/* Hallmark · dismissed render · linting from a file path cannot load the page's self-hosted fonts, so that run shows a fallback; the run over http on the dev server loaded Mona Sans and Inter and is the one reviewed */
/* Hallmark · dropped label.png, label-100x100.png · the hero and the close card now show real Amazon and Flipkart sample labels, as the owner asked; the files stay in assets/ and label-100x50.png still peeks out of the Zebra tile */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- type ---------- */
body { font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03"; letter-spacing: var(--tracking-body); }
h1, h2, h3 { font-weight: var(--display-weight); letter-spacing: var(--tracking-heading); }
h1 { max-width: 13ch; font-size: var(--text-hero); line-height: 0.98; letter-spacing: var(--tracking-display); }
h2 { max-width: 16ch; font-size: var(--text-section); line-height: 1.04; }
h3 { font-size: var(--text-title); line-height: 1.12; }
.lead { max-width: 38ch; font-size: var(--text-lead); line-height: 1.4; color: var(--color-muted); text-wrap: balance; }
a { color: var(--color-accent); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-primary); color: var(--color-on-primary); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- controls: the white pill, the charcoal pill ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn svg { flex: none; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--secondary { background: var(--color-paper-3); color: var(--color-ink); }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
@media (hover: hover) {
  .btn--primary:hover:not(:disabled) { background: var(--color-primary-hover); }
  .btn--secondary:hover:not(:disabled) { background: var(--color-lift); }
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }

.field { width: 100%; min-width: 0; min-height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-edge); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: 0; transition: border-color var(--dur-short) var(--ease-out); }
.field::placeholder { color: var(--color-muted); opacity: 1; }
@media (hover: hover) { .field:hover:not(:disabled) { border-color: var(--color-muted); } }
.field:focus-visible { border-color: var(--color-accent); outline-color: var(--color-focus); }
.field:disabled { opacity: 0.55; cursor: not-allowed; }
.field[aria-invalid="true"] { border-color: var(--color-error); }

/* ---------- the bar: the logo at the left edge, one quiet pill at the right ---------- */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-top: env(safe-area-inset-top); background: var(--color-paper); border-bottom: 1px solid var(--color-rule-soft); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--nav-h); }
.bar__logo { display: block; line-height: 0; border-radius: var(--radius-xs); }
/* the logo keeps its colours: two files of one mark, the letters off-white for the dark page and navy for the light one; only one is shown */
.brand { width: auto; }
.brand--light { display: none; }
:root[data-theme="light"] .brand--light { display: block; }
:root[data-theme="light"] .brand--dark { display: none; }
.bar__logo .brand { height: 36px; }
.bar__tools { display: flex; align-items: center; gap: var(--space-xs); }
.bar .btn { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.bar .icon-btn { background: var(--color-paper-3); color: var(--color-ink); }
@media (hover: hover) { .bar .icon-btn:hover:not(:disabled) { background: var(--color-lift); } }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ---------- hero: the words on five columns, the real labels on seven, together one screen with a sliver of the next ---------- */
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--space-2xl); min-height: min(calc(100dvh - var(--nav-h) - var(--space-3xl)), 54rem); padding-block: var(--space-lg); }
.hero__text { display: grid; justify-items: start; min-width: 0; }
.hero .lead { margin-top: var(--space-md); }
/* effects in the spirit of Magic UI (Blur Fade, Border Beam) and Vengeance UI (Stagger Text), written here in plain CSS: the headline arrives word by word, then the line and the card */
.hero .w { display: inline-block; animation: blur-fade calc(var(--dur-long) * 1.6) var(--ease-out) backwards; animation-delay: calc(var(--w, 0) * 70ms); }
.hero .lead, .hero .ask, .hero .rules { animation: blur-fade calc(var(--dur-long) * 1.6) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes blur-fade { from { opacity: 0; translate: 0 var(--space-sm); filter: blur(10px); } }
.hero .rules { margin-top: var(--space-md); max-width: 32rem; font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); }
.ask { position: relative; width: min(100%, 32rem); margin-top: var(--space-xl); padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule); }
/* a light runs once or twice round the card's edge, then rests; without @property the edge is simply still */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ask::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--beam), transparent 0 72%, var(--color-muted) 88%, var(--color-ink) 96%, transparent 100%); -webkit-mask: linear-gradient(var(--color-ink) 0 0) content-box, linear-gradient(var(--color-ink) 0 0); -webkit-mask-composite: xor; mask: linear-gradient(var(--color-ink) 0 0) content-box, linear-gradient(var(--color-ink) 0 0); mask-composite: exclude; animation: beam-spin 6s linear 1.6s 2 both; }
@keyframes beam-spin { to { --beam: 360deg; } }
.ask .field { background: var(--color-paper); }
.ask__q { display: block; margin-bottom: var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.ask__row { display: flex; gap: var(--space-sm); }
.ask__row .btn { flex: none; }
.ask .field { border-radius: var(--radius-pill); padding-inline: var(--space-lg); }
.ask__nojs { margin-top: var(--space-md); color: var(--color-error); font-weight: 500; }
.js .ask__nojs { display: none; }

/* the stage is a panel whose own box sizes the labels (container units): three real labels fanned as if just printed, never leaving it */
.labels { display: grid; gap: var(--space-sm); min-width: 0; margin: 0; }
.labels__stage { container: labels / size; position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; aspect-ratio: 7 / 6; max-height: calc(100dvh - var(--nav-h) - var(--space-3xl) - var(--space-xl)); border-radius: var(--radius-panel); background: linear-gradient(150deg, var(--glow-c), var(--glow-a) 46%, var(--glow-b)); box-shadow: var(--edge-glow); }
/* one sheen crosses the card once, after the labels have printed */
.labels__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 38%, var(--sheen) 50%, transparent 62%); translate: -110% 0; animation: sheen calc(var(--dur-long) * 3.5) var(--ease-in-out) 3200ms forwards; }
@keyframes sheen { to { translate: 110% 0; } }

/* the canvas keeps one shape (7 by 6) whatever the stage does, so the beams and the nodes, both placed in its percentages, stay together */
.flow { container: flow / inline-size; position: relative; width: min(100cqw, calc(100cqh * 7 / 6)); aspect-ratio: 7 / 6; }
.flow__beams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.track { fill: none; stroke: var(--color-track); stroke-width: 2; }
/* Animated Beam, as Magic UI has it: a bright comet runs along each path, here three passes and then still; a dash is drawn on a path of length 100 and moved by its offset */
.beam { fill: none; stroke: var(--on-glow); stroke-width: 3; stroke-dasharray: 8 192; --o0: 8; --o1: -118; stroke-dashoffset: var(--o1); animation: beam-in 4.2s var(--ease-in-out) calc(900ms + var(--d, 0ms)) 3 backwards; }
.beam--tail { stroke-dasharray: 26 174; --o0: 26; --o1: -100; opacity: 0.42; }
.beam--out { animation-name: beam-out; animation-delay: 900ms; }
@keyframes beam-in { 0% { stroke-dashoffset: var(--o0); } 34%, 100% { stroke-dashoffset: var(--o1); } }
@keyframes beam-out { 0%, 38% { stroke-dashoffset: var(--o0); } 60%, 100% { stroke-dashoffset: var(--o1); } }
.is-replay .beam, .is-replay .node__ring { animation: none; }

.node { position: absolute; z-index: 1; translate: -50% -50%; animation: blur-fade calc(var(--dur-long) * 1.6) var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 140ms + 250ms); }
.node--a, .node--b { left: 15%; display: grid; place-items: center; width: 22%; aspect-ratio: 2 / 1; border-radius: 3cqw; background: var(--color-tile); box-shadow: var(--shadow-lift); }
.node--a { top: 28%; }
.node--b { top: 72%; }
.node--a img, .node--b img { width: 68%; height: auto; max-height: 58%; object-fit: contain; }
.node--print { left: 43%; top: 50%; display: grid; place-items: center; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-lift), var(--edge-light); }
.node--print > svg { width: 38%; height: auto; }
.node__ring { position: absolute; inset: 0; border: 2px solid var(--on-glow); border-radius: 50%; opacity: 0; animation: ring 4.2s var(--ease-out) 900ms 3 backwards; }
@keyframes ring { 0%, 33% { opacity: 0; scale: 1; } 36% { opacity: 0.7; scale: 1; } 64%, 100% { opacity: 0; scale: 1.55; } }
.node__name { position: absolute; top: calc(100% + 1.6cqw); left: 50%; translate: -50% 0; padding: 0.7cqw 1.8cqw; border-radius: var(--radius-pill); background: var(--color-tile); font-size: max(var(--text-sm), 2cqw); font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--color-on-tile); box-shadow: var(--shadow-lift); }

.out { position: absolute; z-index: 1; width: 27%; height: auto; translate: -50% -50%; rotate: var(--r, 0deg); border-radius: var(--radius-xs); box-shadow: var(--shadow-lift); animation: print-out calc(var(--dur-long) * 1.8) var(--ease-out) backwards; }
.out--a { left: 67.5%; top: 48%; --r: -4deg; animation-delay: 2300ms; }
.out--b { left: 82.5%; top: 55%; --r: 5deg; animation-delay: 2700ms; z-index: 2; }
@keyframes print-out { from { opacity: 0; translate: -50% -66%; } }
.labels figcaption { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- what it does: the head is a cell of the same grid as the four tiles, 4 4 4 over 6 6 ---------- */
.what { padding-top: var(--section-gap); }
.what__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: var(--space-md); }
.what h2 { position: relative; z-index: var(--z-base); grid-column: 1 / span 4; grid-row: 1; align-self: end; max-width: none; padding-right: var(--space-md); }
.bento { grid-column: 1 / -1; grid-row: 1 / span 2; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; margin: 0; padding: 0; list-style: none; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg); min-width: 0; padding: clamp(var(--space-md), 2.4vw, var(--space-xl)); overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--edge-light); }
.badge { display: grid; place-items: center; flex: none; align-self: flex-end; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); box-shadow: var(--edge-light); }
.tile > .badge { position: absolute; top: clamp(var(--space-md), 2vw, var(--space-lg)); right: clamp(var(--space-md), 2vw, var(--space-lg)); }
.tile > div { margin-top: auto; padding-top: var(--space-2xl); }
.tile--sites { grid-column: 5 / span 4; grid-row: 1; }
.tile--zebra { grid-column: 9 / span 4; grid-row: 1; }
.tile--lead { grid-column: 1 / span 6; grid-row: 2; }
.tile--wide { grid-column: 7 / span 6; grid-row: 2; }
.tile h3 { font-size: var(--text-2xl); line-height: 1.15; }
.tile p { max-width: 34ch; margin-top: var(--space-2xs); font-size: var(--text-lg); line-height: 1.4; color: var(--color-muted); }
.tile--lead, .tile--wide { min-height: clamp(11rem, 16vw, 15rem); }
.tile--lead { background: linear-gradient(160deg, var(--color-paper-3), var(--color-paper-2) 70%); }
.tile--wide { background: var(--color-paper-3); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-sm) 0 0; padding: 0; list-style: none; }
.pills li { padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper-3); box-shadow: var(--edge-light); font-size: var(--text-md); font-weight: 500; line-height: 1.2; }
.pills li.logo { display: grid; place-items: center; height: 44px; padding: 0 var(--space-sm); background: var(--color-tile); box-shadow: inset 0 0 0 1px var(--color-tile-edge); }
.more { margin-top: var(--space-sm); font-size: var(--text-md); color: var(--color-muted); }
.pills li.logo img { width: auto; height: 24px; max-width: 5.5rem; }
.peek { position: absolute; top: 12%; left: 47%; width: 48%; height: auto; rotate: 6deg; border-radius: var(--radius-xs); box-shadow: var(--shadow-lift); }
.tile--zebra > div { max-width: 62%; }
/* The two big tiles on the bottom row share one heading size, so their words match side by side. */
.tile--lead h3, .tile--wide h3 { font-size: var(--text-section); line-height: 1; letter-spacing: var(--tracking-display); }

/* ---------- how you get in, beside the questions: one band, two columns ---------- */
.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: stretch; margin-top: var(--section-gap); }
.panel { padding: clamp(var(--space-md), 3vw, var(--space-2xl)); border-radius: var(--radius-panel); background: var(--color-paper-2); color: var(--color-ink); box-shadow: var(--edge-light); }
.how { grid-column: 1 / span 6; }
.faq { grid-column: 7 / -1; }
.how h2, .faq h2 { max-width: none; margin-bottom: var(--space-xl); font-size: var(--text-title-lg); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--color-rule); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: var(--space-3xl) minmax(0, 1fr); column-gap: var(--space-xs); align-items: center; padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--font-display); font-size: var(--text-numeral); font-weight: var(--display-weight); line-height: 0.9; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; color: var(--color-edge); }
.steps h3 { grid-column: 2; font-size: var(--text-2xl); }
.steps p { grid-column: 2; max-width: 36ch; margin-top: var(--space-2xs); font-size: var(--text-lg); line-height: 1.4; color: var(--color-muted); }

.faq__list { border-bottom: 0; }
.faq__item { border-top: 1px solid var(--color-rule); }
.faq__item h3 { max-width: none; padding-block: var(--space-sm); letter-spacing: var(--tracking-heading); }
.faq__q { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); width: 100%; min-height: 52px; margin: 0; padding: 0; border: 0; background: none; color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--display-weight); letter-spacing: var(--tracking-heading); line-height: 1.2; text-align: left; cursor: pointer; }
.faq__q::before { content: ""; position: absolute; inset: calc(-1 * var(--space-sm)) 0; }
.faq__q::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: var(--space-2xs); border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); rotate: 45deg; transition: rotate var(--dur-short) var(--ease-out); }
.faq__q[aria-expanded="true"]::after { rotate: -135deg; }
@media (hover: hover) { .faq__q:hover { color: var(--color-accent-hi); } }
.faq__q:focus-visible { outline-offset: -2px; border-radius: var(--radius-input); }
.faq__a > div { overflow: hidden; }
.faq__a p { max-width: 52ch; padding-bottom: var(--space-lg); font-size: var(--text-lg); line-height: 1.45; color: var(--color-muted); }
.js .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-long) var(--ease-out); }
.js .faq__a > div { visibility: hidden; transition: visibility 0s linear var(--dur-long); }
.js .faq__item[data-open] .faq__a { grid-template-rows: 1fr; }
.js .faq__item[data-open] .faq__a > div { visibility: visible; transition-delay: 0s; }

/* ---------- the close: the one spotlight card, a wide band, the words left and the hero's action right ---------- */
.close { padding-top: var(--section-gap-s); }
.close__card { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; min-height: clamp(18rem, 32vw, 26rem); overflow: hidden; padding: clamp(var(--space-lg), 5vw, var(--space-3xl)); border-radius: var(--radius-panel); background: linear-gradient(145deg, var(--glow-a), var(--glow-b)); color: var(--on-glow); box-shadow: var(--edge-glow); }
.close__text { position: relative; z-index: var(--z-raised); display: grid; justify-items: start; gap: var(--space-sm); }
.close__text h2 { max-width: none; font-size: var(--text-display-s); }
.close__text .lead { color: var(--on-glow); }
.close__text .btn { margin-top: var(--space-md); }
.close__text .btn--primary { background: var(--on-glow); color: var(--on-glow-ink); }
@media (hover: hover) { .close__text .btn--primary:hover:not(:disabled) { background: var(--on-glow-hover); } }
.close__text .btn:focus-visible { outline-color: var(--on-glow); }
.close__labels { position: absolute; inset: 0 0 0 55%; pointer-events: none; }
.close__labels img { position: absolute; height: auto; border-radius: var(--radius-xs); box-shadow: var(--shadow-lift); }
.close__a { width: 36%; left: 6%; top: 16%; rotate: -5deg; }
.close__b { width: 36%; right: 8%; bottom: -16%; rotate: 5deg; }

.foot { margin-top: var(--section-gap-s); padding-block: var(--space-xl) calc(var(--space-xl) + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-rule-soft); }
.foot__in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-lg); }
.foot .brand { height: 28px; }
.foot p { max-width: 52ch; font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.foot__links a { display: inline-block; padding-block: var(--space-xs); color: var(--color-muted); text-decoration: none; }
.foot__links a:hover, .foot__links a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; }

/* ---------- the form: one question at a time, full screen, centred ---------- */
.stage { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-paper); color: var(--color-ink); overflow: hidden; z-index: var(--z-modal); }
.stage::backdrop { background: var(--color-paper); }
.stage[open] { animation: stage-in var(--dur-long) var(--ease-out); }
@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
.stage form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.stage__bar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-md); padding: max(var(--space-md), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) var(--space-md) max(var(--gutter), env(safe-area-inset-left)); }
.stage__bar .brand { height: 28px; }
.stage__count { grid-column: 3; font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-rule); }
.progress__fill { display: block; width: 100%; height: 100%; background: var(--color-accent); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent; color: var(--color-muted); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
@media (hover: hover) { .icon-btn:hover:not(:disabled) { background: var(--color-paper-3); color: var(--color-ink); } }
.icon-btn:active:not(:disabled) { transform: scale(0.95); }
.icon-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.icon-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.stage__nav .icon-btn { background: var(--color-paper-2); color: var(--color-ink); }
@media (hover: hover) { .stage__nav .icon-btn:hover:not(:disabled) { background: var(--color-paper-3); } }

.stage__body { position: relative; overflow: hidden; }
.q { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; width: 100%; max-width: calc(40rem + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-md) var(--gutter); overflow-y: auto; text-align: center; opacity: 0; visibility: hidden; translate: 0 var(--space-lg); transition: opacity var(--dur-long) var(--ease-out), translate var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
.q[data-pos="before"] { translate: 0 calc(-1 * var(--space-lg)); }
.q[data-pos="current"] { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.q__set { width: 100%; margin: 0; padding: 0; border: 0; min-width: 0; }
.q__title { display: block; max-width: 20ch; margin-inline: auto; padding: 0; font-family: var(--font-display); font-size: var(--text-question); font-weight: var(--display-weight); line-height: 1.08; letter-spacing: var(--tracking-heading); text-wrap: balance; }
.q__help { max-width: 40ch; margin: var(--space-xs) auto 0; font-size: var(--text-lg); line-height: 1.45; color: var(--color-muted); }
.q .field--lg { width: min(100%, 30rem); min-height: 60px; margin: var(--space-lg) auto 0; font-size: var(--text-xl); text-align: center; }
.q .field--area { min-height: 8rem; padding-block: var(--space-sm); font-size: var(--text-lg); line-height: 1.45; text-align: left; resize: vertical; }
.phone { display: flex; width: min(100%, 30rem); margin: var(--space-lg) auto 0; border: 1px solid var(--color-edge); border-radius: var(--radius-input); background: var(--color-paper-2); outline: 2px solid transparent; outline-offset: 0; transition: border-color var(--dur-short) var(--ease-out); }
.phone:has(.field:focus-visible) { border-color: var(--color-accent); outline-color: var(--color-focus); }
.phone:has(.field[aria-invalid="true"]) { border-color: var(--color-error); }
.phone__cc { display: grid; place-items: center; flex: none; padding: 0 var(--space-md); border-right: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-xl); font-weight: 500; }
.q .phone .field { width: auto; flex: 1; margin: 0; border: 0; background: transparent; text-align: left; }
.q .phone .field:focus-visible { outline-color: transparent; }

/* the invoice: a PDF chosen or dropped here, shown as a row once it is in */
.drop { position: relative; display: grid; justify-items: center; gap: var(--space-xs); width: min(100%, 30rem); margin: var(--space-lg) auto 0; padding: var(--space-xl) var(--space-lg); border: 2px dashed var(--color-edge); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); text-align: center; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.drop__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--color-paper-3); color: var(--color-ink); }
.drop__title { font-size: var(--text-lg); font-weight: 600; }
.drop__fine { font-size: var(--text-sm); color: var(--color-muted); }
@media (hover: hover) { .drop:hover { border-color: var(--color-muted); } }
.drop[data-over] { border-color: var(--color-accent); background: var(--color-accent-soft); }
.drop:has(.drop__input:focus-visible) { border-color: var(--color-accent); outline: 2px solid var(--color-focus); outline-offset: 2px; }
.drop[aria-invalid="true"] { border-color: var(--color-error); }
.file { display: flex; align-items: center; gap: var(--space-sm); width: min(100%, 30rem); margin: var(--space-lg) auto 0; padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md); border: 1px solid var(--color-accent); border-radius: var(--radius-input); background: var(--color-paper-2); text-align: left; }
.file__icon { flex: none; color: var(--color-accent); }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-lg); font-weight: 500; }
.file__size { flex: none; font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
/* the printer: three cards to pick from, each a picture and the model name; the chosen one takes the blue */
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); width: min(100%, 40rem); margin: var(--space-lg) auto 0; }
.pick { position: relative; display: grid; grid-template-rows: auto auto; gap: var(--space-xs); padding: var(--space-xs) var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); text-align: center; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.pick__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick__img { --pad: var(--space-sm); position: relative; aspect-ratio: 1; border-radius: calc(var(--radius-card) - var(--space-xs)); background: radial-gradient(ellipse at 50% 30%, var(--color-lift), var(--color-paper-3) 72%); }
.pick__img img { position: absolute; inset: var(--pad); display: block; width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; }
.pick__name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--display-weight); letter-spacing: var(--tracking-heading); line-height: 1.2; }
.pick__tick { position: absolute; top: var(--space-sm); right: var(--space-sm); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); opacity: 0; scale: 0.6; transition: opacity var(--dur-short) var(--ease-out), scale var(--dur-short) var(--ease-out); }
@media (hover: hover) { .pick:hover { border-color: var(--color-edge); } }
.pick:active { transform: scale(0.985); }
.pick:has(.pick__input:checked) { border-color: var(--color-accent); background: var(--color-accent-soft); box-shadow: 0 0 0 1px var(--color-accent); }
.pick:has(.pick__input:checked) .pick__tick { opacity: 1; scale: 1; }
.pick:has(.pick__input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.picks[aria-invalid="true"] .pick { border-color: var(--color-error); }
.q__note { display: flex; align-items: flex-start; gap: var(--space-xs); width: min(100%, 30rem); margin: var(--space-md) auto 0; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); background: var(--color-paper-2); box-shadow: var(--edge-light); font-size: var(--text-md); line-height: 1.45; text-align: left; }
.q__note svg { flex: none; margin-top: 0.2em; color: var(--color-muted); }

.q__msg { min-height: 1lh; margin-top: var(--space-sm); color: var(--color-error); font-weight: 500; }
.q__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-md); margin-top: var(--space-md); }
.hint { font-size: var(--text-sm); color: var(--color-muted); }
kbd { padding: 0 var(--space-xs); border: 1px solid var(--color-rule); border-radius: var(--radius-xs); background: var(--color-paper-2); font: inherit; font-size: var(--text-xs); font-weight: 500; color: var(--color-ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.q__done { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-md); border-radius: 50%; background: var(--color-paper-3); color: var(--color-accent); }
.q--done .q__title:focus-visible { outline: none; }
.stage__nav { display: flex; justify-content: center; gap: var(--space-xs); padding: var(--space-md) var(--gutter) max(var(--space-lg), env(safe-area-inset-bottom)); }
.stage[data-done] .stage__nav, .stage[data-done] .stage__count { visibility: hidden; }

/* reduced motion: the finished picture at once, with no comet, ring, sheen or entrance (the base rule shortens animations, but a delay would still hold the labels back) */
@media (prefers-reduced-motion: reduce) {
  .out, .node, .hero .w, .hero .lead, .hero .ask, .hero .rules, .beam, .node__ring, .labels__stage::after, .ask::before { animation: none; }
  /* a question appears at once: while it fades in it is still hidden, and a hidden field cannot take the keyboard focus */
  .q { transition: none; }
}

/* ---------- every screen: percentages and fluid sizes carry most of it; these few steps only change the count of columns ---------- */
@media (max-width: 64rem) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; padding-block: var(--space-lg) var(--space-xl); }
  .hero h1 { max-width: 14ch; font-size: clamp(2.75rem, 0.5rem + 8vw, 4.75rem); }
  .labels__stage { max-height: none; }
  .what__in { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; }
  .what h2 { grid-column: 1 / -1; align-self: start; padding-right: 0; margin-bottom: var(--space-md); }
  .bento { grid-row: 2 / span 3; }
  .tile--lead, .tile--wide { grid-column: 1 / -1; }
  .tile--lead { grid-row: 1; }
  .tile--sites { grid-column: 1 / span 3; grid-row: 2; }
  .tile--zebra { grid-column: 4 / span 3; grid-row: 2; }
  .tile--wide { grid-row: 3; }
  .pair { grid-template-columns: minmax(0, 1fr); row-gap: var(--section-gap-s); }
  .how, .faq { grid-column: 1 / -1; }
  .close__card { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 0; }
  .close__text { padding-bottom: var(--space-lg); }
  .close__labels { position: relative; inset: auto; height: clamp(11rem, 34vw, 16rem); margin-inline: calc(-1 * clamp(var(--space-lg), 5vw, var(--space-3xl))); }
  .close__a { left: 12%; top: 10%; width: clamp(6rem, 22vw, 10rem); }
  .close__b { right: 12%; bottom: -30%; width: clamp(6rem, 22vw, 10rem); }
  .tile--zebra > div { max-width: 100%; padding-top: 7rem; }
  .peek { top: 8%; width: 46%; }
}
@media (max-width: 40rem) {
  .ask__row { flex-direction: column; }
  .ask__row .btn { width: 100%; }
  .what__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .bento { grid-row: 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .tile--lead, .tile--sites, .tile--zebra, .tile--wide { grid-column: 1; grid-row: auto; }
  .tile { padding: var(--space-lg); }
  .steps li { grid-template-columns: var(--space-xl) minmax(0, 1fr); }
  .peek { top: 10%; left: 50%; width: 44%; }
  .tile--zebra > div { max-width: 100%; padding-top: var(--space-3xl); }
  .close__a { left: 8%; }
  .stage__bar { gap: var(--space-sm); }
  .q .field--lg { min-height: 56px; font-size: var(--text-lg); }
  /* the printers become a column of rows: the picture on the left, the name beside it */
  .picks { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .pick { grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-rows: none; align-items: center; gap: var(--space-md); text-align: left; }
  .pick__img { aspect-ratio: 4 / 3; --pad: var(--space-xs); }
  .pick__tick { top: 50%; right: var(--space-md); translate: 0 -50%; }
}
@media (max-width: 26rem) {
  .faq__q { font-size: var(--text-lg); }
  .steps li { grid-template-columns: var(--space-2xl) minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .btn, .field { min-height: 48px; }
  .btn.btn--sm, .bar .btn { min-height: 44px; }
}
@media (max-height: 42rem) {
  .q__help { font-size: var(--text-md); }
  .q .field--lg { min-height: 52px; margin-top: var(--space-md); }
  .drop { margin-top: var(--space-md); padding-block: var(--space-lg); }
  .file { margin-top: var(--space-md); }
  .picks { margin-top: var(--space-md); }
  .pick__img { aspect-ratio: 4 / 3; --pad: var(--space-xs); }
  .pick__name { font-size: var(--text-lg); }
  .q .field--area { min-height: 4.5rem; }
  .q__note { margin-top: var(--space-sm); padding-block: var(--space-xs); font-size: var(--text-sm); }
  .q__act { margin-top: var(--space-sm); }
  .q__msg { margin-top: var(--space-xs); }
  .q__title { font-size: var(--text-2xl); }
  .stage__nav { padding-block: var(--space-xs) max(var(--space-md), env(safe-area-inset-bottom)); }
}
@media (max-height: 34rem) {
  .hero__in { min-height: 0; padding-block: var(--space-md) var(--space-lg); }
  .hero h1 { font-size: clamp(2rem, 9dvh, 3rem); }
  .hero .lead { margin-top: var(--space-xs); }
  .ask { margin-top: var(--space-md); }
  .q .field--lg { min-height: 48px; margin-top: var(--space-sm); }
  .drop { margin-top: var(--space-sm); padding-block: var(--space-md); }
  .file { margin-top: var(--space-sm); }
  .picks { margin-top: var(--space-xs); }
  .pick__img { aspect-ratio: 2 / 1; --pad: var(--space-2xs); }
  .stage__bar { padding-block: var(--space-xs); }
  .stage__bar .brand { height: 24px; }
  .stage__nav { padding-block: var(--space-2xs) var(--space-xs); }
  .q { padding-block: var(--space-xs); }
  .q__title { max-width: none; font-size: var(--text-xl); line-height: 1.15; }
  .q__help { margin-top: var(--space-2xs); font-size: var(--text-sm); }
  .q .field--area { min-height: 3.5rem; margin-top: var(--space-xs); }
  .q__note { margin-top: var(--space-xs); }
  .q__act { margin-top: var(--space-xs); }
}
