/* Ledger — paper, ink, one red seal. A strict grid, generous space, motion only when something happens.
   Font: Courier Prime (OFL), falling back to Courier New. */
@font-face { font-family: "Ledger"; src: url("fonts/courier-prime-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Ledger"; src: url("fonts/courier-prime-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Ledger"; src: url("fonts/courier-prime-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f3ee;
  --paper-2: #efebe4;
  --card: #fbfaf7;
  --ink: #141414;
  --ink-2: #4b4945;
  --muted: #8b867d;
  --line: #ddd7cd;
  --line-2: #c7c0b4;
  --red: #c8331f;
  --red-soft: rgba(200, 51, 31, .08);
  --font: "Ledger", "Courier New", Courier, monospace;
  --wrap: 1200px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (max-width: 720px) { :root { --gutter: 18px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.dim { color: var(--ink-2); }
.red { color: var(--red); }
.tiny { font-size: .78rem; }
.small { font-size: .88rem; }
.center { text-align: center; }
.up { text-transform: uppercase; letter-spacing: .14em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .display { font-family: var(--font); font-weight: 400; margin: 0; letter-spacing: -.035em; line-height: 1.08; }
.display { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sec { display: flex; align-items: baseline; gap: 14px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sec b { color: var(--red); font-weight: 400; }
.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-3px); }
.lede { color: var(--ink-2); font-size: 1.02rem; max-width: 52ch; margin: 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* typewriter: JS types the text once; without JS it is simply there */
[data-type].typing::after { content: ""; display: inline-block; width: .55em; height: .9em; margin-left: .06em; background: var(--red); vertical-align: -.06em; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(246, 243, 238, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 22px; height: 22px; display: block; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 6px 12px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; height: 44px; padding: 0 2px 0 10px; cursor: pointer; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; align-items: center; gap: 10px; }
.burger { width: 20px; height: 10px; position: relative; display: inline-block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 0; } .burger i:last-child { top: 8px; }
.menu-btn.open .burger i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn.open .burger i:last-child { top: 4px; transform: rotate(-45deg); }
.nav .na { display: none; }
.scrim { position: fixed; inset: 68px 0 0; z-index: 30; background: rgba(20, 20, 20, .28); }
.scrim[hidden] { display: none; }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line);
         transform: translateY(-6px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink); }
  .nav .na { display: inline; color: var(--red); }
  .nav .btn { height: 52px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 50px; padding: 0 24px; border: 1px solid var(--ink); background: transparent; cursor: pointer;
       font-size: .84rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
       transition: color .35s var(--ease), border-color .35s, opacity .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary::before { background: var(--red); }
.btn-primary:hover { border-color: var(--red); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .74rem; }
.btn-lg { height: 58px; padding: 0 30px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn[disabled]::before { display: none; }
.btn[disabled]:hover { color: inherit; }
.btn-primary[disabled]:hover { color: var(--paper); }
.btn .ar { transition: transform .35s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.link { color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; font: inherit; }
.link:hover { text-decoration-color: var(--red); color: var(--red); }

/* ---------------------------------------------------------------- reveal (quiet: fade + 10px rise, once) */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal].in, .no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- split-flap board */
.flap { display: inline-flex; gap: .08em; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.flap .c { position: relative; display: inline-flex; align-items: center; justify-content: center; width: .74em; height: 1.18em; background: var(--ink); color: var(--paper); border-radius: .06em; overflow: hidden; }
.flap .c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(246, 243, 238, .22); }
.flap .c.sep { background: transparent; color: var(--ink); width: .42em; }
.flap .c.sep::after { display: none; }
.flap .c.tick { animation: tick .05s steps(1); }
@keyframes tick { 0% { transform: scaleY(.86); } }
.flap.light .c { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.flap.light .c::after { background: var(--line); }
.flap.light .c.sep { background: transparent; box-shadow: none; }
.flap.red .c { background: var(--red); }

/* ---------------------------------------------------------------- home */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 56px; align-items: start; margin-top: 8px; }
.hero-grid .specimen { margin-top: 26px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .specimen { margin-top: 48px; } }
.hero h1 { margin-top: 34px; max-width: 22ch; }
.specimen { border: 1px solid var(--ink); background: var(--card); font-size: .82rem; }
.specimen .sp-h, .specimen .sp-f { display: flex; justify-content: space-between; padding: 10px 16px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.specimen .sp-h { border-bottom: 1px solid var(--ink); color: var(--ink); }
.specimen .sp-h span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 8px; }
.specimen .sp-f { border-top: 1px solid var(--line); }
.specimen .sp-r { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 7px 16px; border-bottom: 1px dotted var(--line); }
.specimen .sp-r:last-of-type { border-bottom: 0; }
.specimen .sp-r span:first-child { color: var(--muted); }
.specimen .sp-r span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.specimen .sp-r span.typing::after { content: ""; display: inline-block; width: .5em; height: .9em; background: var(--red); vertical-align: -.1em; margin-left: 1px; }
.hero .lede { margin-top: 26px; }
.board { margin-top: 52px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: end; }
.board .flap { font-size: clamp(2rem, 5.6vw, 4.2rem); }
.board .cap { padding-bottom: 6px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 46px; }
@media (max-width: 720px) { .board { grid-template-columns: 1fr; gap: 14px; } }

section.block { padding: clamp(64px, 9vw, 120px) 0; }
.block-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; margin: 28px 0 44px; }
.block-head h2 { grid-column: 1 / 8; }
.block-head .lede { grid-column: 8 / 13; align-self: end; }
@media (max-width: 860px) { .block-head h2, .block-head .lede { grid-column: 1 / -1; } .block-head .lede { margin-top: 16px; } }

/* departure board of markets */
.departures { border-top: 1px solid var(--ink); }
.departures .hd, .departures a.row { display: grid; grid-template-columns: 64px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 16px; align-items: center; padding: 0 12px; }
.departures .hd { height: 40px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.departures a.row { height: 74px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; transition: color .25s; }
.departures a.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.departures a.row:hover { color: var(--paper); }
.departures a.row:hover::before { transform: scaleY(1); }
.departures a.row:hover .code { background: var(--red); color: var(--paper); border-color: var(--red); }
.departures .code { display: inline-flex; width: 44px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--ink); font-weight: 700; font-size: .82rem; letter-spacing: .1em; transition: .25s; }
.departures .nm { font-size: 1.3rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.departures .r { text-align: right; font-variant-numeric: tabular-nums; }
.departures .go { justify-self: end; transition: transform .35s var(--ease); }
.departures a.row:hover .go { transform: translateX(4px); }
.departures a.row.soon { color: var(--muted); }
@media (max-width: 760px) {
  .departures .hd, .departures a.row { grid-template-columns: 52px minmax(0, 1fr) auto 18px; gap: 12px; padding: 0 4px; }
  .departures a.row { height: 64px; }
  .departures .hide-s { display: none; }
  .departures .nm { font-size: 1.1rem; }
}

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps .s { padding: 26px 24px 34px 0; border-right: 1px solid var(--line); }
.steps .s + .s { padding-left: 24px; }
.steps .s:last-child { border-right: 0; }
.steps .n { color: var(--red); font-size: .8rem; letter-spacing: .14em; }
.steps h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: -.02em; margin: 30px 0 8px; }
.steps p { color: var(--ink-2); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps .s:nth-child(2) { border-right: 0; } .steps .s:nth-child(3) { padding-left: 0; } .steps .s:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps .s { border-right: 0; padding-left: 0 !important; border-top: 1px solid var(--line); } .steps .s:first-child { border-top: 0; } }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); }
.promises > div { padding: 26px 22px; border-right: 1px solid var(--line); }
.promises > div:last-child { border-right: 0; }
.promises b { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.promises span { color: var(--ink-2); font-size: .86rem; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } .promises > div { border-right: 0; border-top: 1px solid var(--line); } .promises > div:first-child { border-top: 0; } }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 20px; padding: 20px 0; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; text-align: right; color: var(--red); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 72ch; margin: -4px 0 22px; font-size: .94rem; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.split > :first-child { grid-column: 1 / 5; }
.split > :last-child { grid-column: 6 / 13; }
@media (max-width: 860px) { .split > :first-child, .split > :last-child { grid-column: 1 / -1; } .split > :last-child { margin-top: 26px; } }

.closing { padding: clamp(80px, 12vw, 150px) 0; text-align: center; border-top: 1px solid var(--line); }
.closing h2 { max-width: 20ch; margin: 0 auto; }
.closing .btn { margin-top: 36px; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--ink); padding: 48px 0 30px; font-size: .84rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
.foot h4 { margin: 0 0 14px; font-size: .7rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ================================================================ market */
.mk { padding-top: 40px; padding-bottom: 26px; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.mk-title { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: 26px; }
.mk-title h1 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mk-title h1 .code { font-size: .9rem; letter-spacing: .12em; font-weight: 700; border: 1px solid var(--ink); padding: 4px 8px; transform: translateY(-6px); }
.facts { display: flex; border: 1px solid var(--ink); }
.facts > div { padding: 12px 18px; min-width: 120px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 2px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--red); }
@media (max-width: 860px) { .mk-title { grid-template-columns: 1fr; } .facts { width: 100%; } .facts > div { flex: 1; min-width: 0; padding: 10px 12px; } }

.desk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; padding-top: 30px; padding-bottom: 60px; }
@media (max-width: 980px) { .desk { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* composer (left) */
.composer { border: 1px solid var(--ink); background: var(--card); }
.steps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.steps-tabs button { background: none; border: 0; border-right: 1px solid var(--line); padding: 12px 10px; text-align: left; cursor: pointer; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; transition: background .25s, color .25s; min-width: 0; }
.steps-tabs button:last-child { border-right: 0; }
.steps-tabs button b { display: block; font-weight: 400; color: inherit; }
.steps-tabs button span { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-tabs button:hover { color: var(--ink); }
.steps-tabs button.on { background: var(--ink); color: var(--paper); }
.steps-tabs button.on b { color: #ff8a78; }
.steps-tabs button.done b::after { content: " ✓"; color: var(--red); }
.steps-tabs button.on.done b::after { color: #ff8a78; }
.pane { padding: 26px 24px 8px; }
.js .pane { display: none; }
.js .pane.on { display: block; animation: pane .45s var(--ease) both; }
@keyframes pane { from { opacity: 0; transform: translateY(6px); } }
.pane h2 { font-size: 1.7rem; }
.pane .hint { color: var(--muted); font-size: .86rem; margin: 6px 0 22px; }
.group { margin-bottom: 26px; }
.group > .lbl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pane-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.no-js .pane-nav { display: none; }

/* choice rows: square boxes, like a form */
.choices { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--ink); }
.choices label { position: relative; cursor: pointer; border-right: 1px solid var(--line); display: flex; }
.choices label:last-child { border-right: 0; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choices span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 8px 4px; text-align: center; font-size: .88rem; transition: background .25s, color .25s; }
.choices span small { font-size: .7rem; color: var(--muted); }
.choices label:hover span { background: var(--paper-2); }
.choices input:checked + span { background: var(--ink); color: var(--paper); }
.choices input:checked + span small { color: #bdb7ad; }
.choices input:disabled + span { opacity: .35; cursor: not-allowed; }
.choices input:focus-visible + span { outline: 2px solid var(--red); outline-offset: -4px; }
.choices.compact span { min-height: 46px; }

/* age: a printed bar chart you click */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 150px; }
.bars label { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; position: relative; }
.bars input { position: absolute; opacity: 0; }
.bars .col { height: calc(var(--h) * 1%); min-height: 4px; background: repeating-linear-gradient(0deg, var(--line-2) 0 1px, transparent 1px 4px); border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.bars label:hover .col { border-color: var(--ink); }
.bars input:checked ~ .col { background: var(--ink); border-color: var(--ink); }
.bars input:focus-visible ~ .col { outline: 2px solid var(--red); outline-offset: 2px; }
.bars .t { margin-top: 8px; font-size: .74rem; text-align: center; }
.bars .v { font-size: .66rem; color: var(--muted); text-align: center; }
.bars input:checked ~ .t { color: var(--red); font-weight: 700; }

/* regions: a ruled list with checkboxes */
.search input { width: 100%; height: 42px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 0 2px; outline: none; margin-bottom: 8px; }
.search input::placeholder { color: var(--muted); }
.regions { max-height: 320px; overflow: auto; scrollbar-width: thin; }
.reg { display: grid; grid-template-columns: 18px 1fr 60px 64px; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; font-size: .9rem; }
.reg input { position: absolute; opacity: 0; }
.reg .box { width: 16px; height: 16px; border: 1px solid var(--ink); display: grid; place-items: center; }
.reg .box::after { content: ""; width: 8px; height: 8px; background: var(--red); transform: scale(0); transition: transform .2s var(--ease); }
.reg input:checked ~ .box::after { transform: scale(1); }
.reg input:focus-visible ~ .box { outline: 2px solid var(--red); outline-offset: 2px; }
.reg .w { height: 6px; background: var(--paper-2); position: relative; }
.reg .w i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); background: var(--line-2); }
.reg input:checked ~ .w i { background: var(--ink); }
.reg .ct { text-align: right; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.reg[hidden] { display: none; }
.reg.radio { grid-template-columns: 18px minmax(0, 1fr) auto; }
.reg.radio .box { border-radius: 50%; }
.reg.radio .box::after { border-radius: 50%; }
.reg input:disabled ~ * { opacity: .4; }
.reg:has(input:disabled) { cursor: not-allowed; }
.reg:hover { background: var(--paper-2); }

/* option cards */
.opts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.opt { position: relative; cursor: pointer; border-right: 1px solid var(--line); }
.opt:last-child { border-right: 0; }
.opt input { position: absolute; opacity: 0; }
.opt .in { display: block; padding: 16px; height: 100%; transition: background .25s, color .25s; }
.opt b { display: block; font-size: .95rem; }
.opt small { display: block; margin-top: 6px; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.opt:hover .in { background: var(--paper-2); }
.opt input:checked + .in { background: var(--ink); color: var(--paper); }
.opt input:checked + .in small { color: #bdb7ad; }
.opt input:disabled + .in { opacity: .35; cursor: not-allowed; }
.opt input:focus-visible + .in { outline: 2px solid var(--red); outline-offset: -4px; }

/* volume */
.qty { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.qty input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; padding: 0; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty .u { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 16px 0 4px; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--line-2) var(--p, 0%)); }
.range::-moz-range-track { height: 2px; background: var(--line-2); }
.range::-moz-range-progress { height: 2px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--red); border: 0; border-radius: 0; }
.range::-moz-range-thumb { width: 18px; height: 18px; background: var(--red); border: 0; border-radius: 0; }
.range-ends { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; margin-top: 18px; border: 1px solid var(--ink); }
.quick button { flex: 1; height: 38px; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; font-size: .78rem; transition: background .2s, color .2s; }
.quick button:last-child { border-right: 0; }
.quick button:hover { background: var(--paper-2); }
.quick button.on { background: var(--ink); color: var(--paper); }
.quick button:disabled { opacity: .3; cursor: not-allowed; }

/* the sheet (right): count, the grid, the price */
.sheet { border: 1px solid var(--ink); background: var(--card); position: sticky; top: 88px; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 24px 16px; }
.sheet .flap { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.sheet .of { margin-top: 10px; font-size: .8rem; color: var(--ink-2); }
.sheet.busy .flap { opacity: .7; }
.cells-wrap { padding: 0 24px; }
.cells { display: grid; grid-template-columns: repeat(50, 1fr); gap: 2px; }
.cells i { aspect-ratio: 1; background: var(--ink); transition: background-color .25s, opacity .25s, transform .25s; transition-delay: calc(var(--i) * .55ms); }
.cells i.off { background: var(--line); }
.cells i.sel { background: var(--red); }
.cells i:hover { transform: scale(1.6); position: relative; z-index: 2; }
.cells-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 24px 0; font-size: .72rem; color: var(--muted); }
.cells-legend span { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.cells-legend i { width: 9px; height: 9px; display: inline-block; }
.cells-legend .k1 { background: var(--red); } .cells-legend .k2 { background: var(--ink); } .cells-legend .k3 { background: var(--line); }
.cell-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--paper); font-size: .72rem; padding: 6px 9px; white-space: nowrap; opacity: 0; transform: translate(-50%, -140%); transition: opacity .15s; }
.cell-tip.show { opacity: 1; }
.sheet-price { margin-top: 22px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px 24px 22px; }
.sheet-price .flap { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.sheet-price .sub { margin-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-2); }
.notes { list-style: none; padding: 0; margin: 10px 0 0; font-size: .78rem; color: var(--red); }
.notes:empty { display: none; }
.why { margin-top: 8px; font-size: .76rem; }
.why summary { cursor: pointer; color: var(--muted); list-style: none; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.why summary::-webkit-details-marker { display: none; }
.why table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.why td { padding: 5px 0; border-bottom: 1px dotted var(--line-2); color: var(--ink-2); }
.why .r { text-align: right; }
.sheet-price [data-hidden-filters] { display: none; }
.mini { display: none; }
@media (max-width: 980px) {
  .mini { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; top: 64px; z-index: 20;
          padding: 10px var(--gutter); background: var(--card); border-bottom: 1px solid var(--ink); transform: translateY(-110%); opacity: 0; transition: transform .35s var(--ease), opacity .25s; pointer-events: none; }
  .mini.show { transform: none; opacity: 1; }
  .mini-n { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
  .mini-of { font-size: .72rem; color: var(--muted); }
  .strip { display: grid; grid-template-columns: repeat(50, 1fr); gap: 1px; height: 12px; }
  .strip i { background: var(--ink); transition: background-color .25s; transition-delay: calc(var(--i) * 6ms); }
  .strip i.off { background: var(--line); }
  .strip i.sel { background: var(--red); }
  .sheet { order: -1; position: relative; top: 0; }
  .sheet-top { padding: 10px 14px 8px; }
  .sheet-top > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .sheet-top .label { display: none; }
  .sheet [data-available] { margin-top: 0 !important; }
  .sheet .flap { font-size: 1.15rem; }
  .sheet .of { margin-top: 0; font-size: .74rem; }
  .cells-wrap { padding: 0 14px 12px; }
  .cells { gap: 1px; }
  .cells-legend, .sheet-price { display: none; }
}

/* mobile dock */
.dock { display: none; }
@media (max-width: 980px) {
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
          background: var(--paper); border-top: 1px solid var(--ink); transform: translateY(110%); transition: transform .45s var(--ease); }
  .dock.show { transform: none; }
  .dock .t { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .dock .s { font-size: .72rem; color: var(--muted); }
  .dock .btn { margin-left: auto; height: 46px; }
  body.has-dock { padding-bottom: 76px; }
}

.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.about .prose { grid-column: 1 / 7; }
.about .faq { grid-column: 8 / 13; }
.about .prose p { color: var(--ink-2); }
@media (max-width: 860px) { .about .prose, .about .faq { grid-column: 1 / -1; } .about .faq { margin-top: 30px; } }
.others { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.others a { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, color .25s; }
.others a:hover { background: var(--ink); color: var(--paper); }
.others .nm { font-size: 1.15rem; margin: 6px 0 4px; }
.others .f { font-size: .76rem; color: var(--muted); }
@media (max-width: 860px) { .others { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.ticks li::before { content: "— "; color: var(--red); }

/* ================================================================ checkout & order */
.flow { padding-top: 44px; padding-bottom: 90px; }
.progress { display: flex; flex-wrap: wrap; gap: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.progress span { flex: 1; padding: 12px 0; min-width: 0; }
.progress span b { font-weight: 400; margin-right: 8px; }
.progress .done { color: var(--ink); }
.progress .done b::before { content: "✓ "; color: var(--red); }
.progress .on { color: var(--ink); font-weight: 700; }
.progress .on b { color: var(--red); }
@media (max-width: 560px) { .progress span { flex: 0 0 50%; } }
.flow-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; margin-top: 36px; }
@media (max-width: 960px) { .flow-grid { grid-template-columns: minmax(0, 1fr); } }
.paper { border: 1px solid var(--ink); background: var(--card); padding: 28px; }
@media (max-width: 720px) { .paper { padding: 20px; } }

/* form fields: lines on paper */
.field { display: block; margin-bottom: 24px; }
.field > span { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 2px; outline: none; font-size: 1rem; border-radius: 0; transition: border-color .25s, background .25s; }
.field textarea { min-height: 84px; resize: vertical; border: 1px solid var(--line-2); padding: 12px; }
.field input:focus, .field textarea:focus { border-color: var(--red); background: rgba(20, 20, 20, .025); }
.field.big input { font-size: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: .78rem; transition: .2s; }
.chips button:hover { border-color: var(--ink); }
.chips button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.more summary { cursor: pointer; color: var(--ink-2); font-size: .86rem; margin-bottom: 18px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--red); }
.agree { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin: 4px 0 24px; font-size: .84rem; color: var(--ink-2); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* the receipt: prints line by line, takes stamps */
.receipt { position: relative; background: var(--card); border: 1px solid var(--ink); padding: 26px 26px 30px; }
.receipt::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -9px; height: 9px;
  background: linear-gradient(-45deg, transparent 6px, var(--card) 6px) 0 0 / 12px 12px repeat-x, linear-gradient(45deg, transparent 6px, var(--card) 6px) 0 0 / 12px 12px repeat-x; }
.receipt .rh { text-align: center; border-bottom: 1px dashed var(--line-2); padding-bottom: 16px; margin-bottom: 14px; }
.receipt .rh b { display: block; font-size: .9rem; letter-spacing: .2em; }
.receipt .rh small { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.receipt .ln { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: .86rem; }
.receipt .ln span:first-child { color: var(--ink-2); }
.receipt .ln span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.receipt .dash { border-top: 1px dashed var(--line-2); margin: 12px 0; }
.receipt .tot { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.receipt .tot span:first-child { font-size: .8rem; letter-spacing: .16em; }
.js .receipt .pr { opacity: 0; clip-path: inset(0 0 100% 0); animation: print .32s steps(4) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes print { to { opacity: 1; clip-path: inset(0 0 0 0); } }
.hold { margin-top: 18px; }
.hold .bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.hold .bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transition: transform 1s linear; }
.hold .t { display: flex; justify-content: space-between; margin-top: 8px; font-size: .74rem; color: var(--muted); }

.stamp { position: absolute; width: 132px; height: 132px; border: 3px solid var(--red); border-radius: 50%; color: var(--red); display: grid; place-content: center; text-align: center;
         font-weight: 700; letter-spacing: .14em; transform: rotate(-12deg); opacity: .88; mix-blend-mode: multiply; pointer-events: none; }
.stamp::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--red); border-radius: 50%; }
.stamp b { font-size: 1.35rem; letter-spacing: .16em; }
.stamp small { display: block; font-size: .6rem; letter-spacing: .14em; margin-top: 2px; }
.stamps { position: relative; height: 150px; margin-top: 18px; border-top: 1px dashed var(--line-2); }
.stamps::before { content: "STAMPS"; position: absolute; left: 0; top: 10px; font-size: .62rem; letter-spacing: .2em; color: var(--muted); }
.stamp.paid { right: 120px; top: 14px; }
.stamp.ready { right: 0; top: 22px; transform: rotate(8deg); width: 116px; height: 116px; }
@media (max-width: 420px) { .stamp.paid { right: 96px; } }
.js .stamp.fresh { animation: stamp .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--sd, .5s); }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-20deg); } 60% { opacity: .95; } 100% { opacity: .88; transform: scale(1) rotate(var(--r, -12deg)); } }
.stamp.ready.fresh { --r: 8deg; }
.js .receipt.thud { animation: thud .3s ease-out both; animation-delay: calc(var(--sd, .5s) + .3s); }
@keyframes thud { 40% { transform: translateY(2px); } }

.track { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 22px; }
.track .st { padding: 12px 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); position: relative; }
.track .st::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; }
.track .st.done { color: var(--ink); }
.track .st.done::before { background: var(--ink); }
.track .st.done b::before { content: "✓ "; color: var(--red); }
.track .st.now { color: var(--ink); font-weight: 700; }
.track .st.now::before { background: var(--red); transform-origin: left; animation: grow 1.6s var(--ease) infinite alternate; }
.track .st b { font-weight: inherit; }
@keyframes grow { from { transform: scaleX(.15); } }
@media (max-width: 560px) { .track .st { font-size: .62rem; letter-spacing: .08em; } }

.pay { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
@media (max-width: 640px) { .pay { grid-template-columns: minmax(0, 1fr); } }
.flow-grid > *, .pay > * { min-width: 0; }
.nowrap { white-space: nowrap; }
.qr { border: 1px solid var(--ink); padding: 10px; background: #fff; width: 200px; aspect-ratio: 1; }
.qr svg { width: 100%; height: 100%; }
.amount { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 6px; }
.amount small { font-size: .38em; letter-spacing: .14em; color: var(--muted); margin-left: 8px; }
.copy { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); padding: 8px 8px 8px 12px; margin-top: 10px; background: var(--paper); }
.copy code { flex: 1; min-width: 0; font: inherit; font-size: .84rem; overflow-wrap: anywhere; }
.guards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--ink); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.tag.red { border-color: var(--red); color: var(--red); }
.state { padding: 48px 28px; text-align: center; }
.state h2 { margin-top: 22px; }
.state p { color: var(--ink-2); max-width: 46ch; margin: 12px auto 0; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; background: var(--ink); animation: dot 1.2s steps(1) infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; } .dots i:nth-child(4) { animation-delay: .6s; background: var(--red); }
@keyframes dot { 50% { opacity: .15; } }
.filecard { display: flex; align-items: center; gap: 18px; border: 1px solid var(--ink); padding: 18px; background: var(--paper); margin-top: 22px; }
.filecard .ic { width: 46px; height: 58px; border: 1px solid var(--ink); display: grid; place-items: end start; padding: 5px; font-size: .62rem; font-weight: 700; color: var(--red); flex: 0 0 auto; position: relative; }
.filecard .ic::before { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; background: var(--paper); border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
@media (max-width: 560px) { .filecard { flex-wrap: wrap; } .filecard .btn { width: 100%; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .88rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ================================================================ generic pages + classic-template compatibility */
.page { padding: 48px 0 100px; }
.page .container { padding-left: 0; padding-right: 0; }
.page .page-head { padding-top: 0; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow, .narrow { max-width: 820px; }
.page-head { padding: 0 0 26px; }
.page-head h1 { margin: 14px 0 18px; }
.lead { color: var(--ink-2); max-width: 62ch; }
.prose h2 { margin: 1.6em 0 .5em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a, .page p a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:hover, .page p a:hover { color: var(--red); }
.panel, .card { background: var(--card); border: 1px solid var(--ink); }
.panel-body, .card { padding: 24px; }
.card-link { display: block; transition: background .25s, color .25s; }
.card-link:hover { background: var(--ink); color: var(--paper); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }
.section-head { margin-bottom: 24px; }
.alert { padding: 12px 16px; border: 1px solid var(--ink); background: var(--card); margin-bottom: 18px; font-size: .9rem; }
.alert-error { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.alert-warn { border-color: #b7791f; color: #7a4f0e; background: #fbf3e2; }
.alert-ok, .alert-info { border-color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.check-list li::before { content: "— "; color: var(--red); }
.copy-field { display: flex; gap: 10px; align-items: stretch; }
.copy-field input { flex: 1; min-width: 0; height: 50px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 0 2px; outline: none; }
.copy-field input:focus { border-color: var(--red); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
th { font-size: .7rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-flex; height: 22px; padding: 0 8px; align-items: center; border: 1px solid var(--ink); font-size: .7rem; letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ================================================================ phones: solid, clearly tappable, never cramped */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .top { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); }
  .composer { scroll-margin-top: 124px; }
  .top .wrap { height: 64px; }
  .scrim { inset: 64px 0 0; }
  .nav { inset: 64px 0 auto; }
  .btn { height: 52px; }
  .btn-sm { height: 44px; padding: 0 18px; }
  .btn-lg { height: 56px; }
  .cta { flex-direction: column; gap: 10px; }
  .cta .btn { width: 100%; }
  .hero { padding-top: 40px; }
  .hero h1 { margin-top: 24px; }
  .board { margin-top: 36px; }
  .board .flap { font-size: 2.4rem; }
  section.block { padding: 56px 0; }
  .block-head { margin: 20px 0 28px; }
  /* product tabs: one row of outlined pills you can swipe */
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; border-bottom: 0; margin-top: 20px; padding-bottom: 2px; scrollbar-width: none;
          mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: 0 0 auto; height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-2); margin: 0; font-size: .72rem; }
  .tabs a:last-child { margin-right: 40px; }
  .tabs a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .mk { padding-top: 24px; padding-bottom: 14px; }
  .mk-title { margin-top: 18px; gap: 16px; }
  .facts > div { padding: 10px 12px; }
  .facts b { font-size: 1rem; }
  .facts span { font-size: .62rem; }
  .desk { padding-top: 18px; }
  .pane { padding: 22px 18px 4px; }
  .pane-nav { padding: 14px 18px; }
  .steps-tabs button { padding: 12px 8px; min-height: 56px; }
  .group > .lbl .link { min-height: 32px; display: inline-flex; align-items: center; }
  .quick button { height: 44px; }
  .reg { padding: 12px 2px; grid-template-columns: 18px 1fr 44px 52px; }
  .others { grid-template-columns: 1fr 1fr; }
  .track .st b { display: block; margin-bottom: 4px; }
  .track .st { padding: 10px 0; }
  .paper { padding: 20px 18px; }
  .receipt { padding: 22px 18px 26px; }
  .faq summary { min-height: 56px; align-items: center; padding: 14px 0; }
  .foot { padding-top: 40px; }
  .copy .btn { height: 40px; }
  td { padding: 10px 6px; }
}

.col-stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }

/* ================================================================ focus mode: the list builder, one question per screen, no page scroll */
body.focus { height: 100vh; height: 100dvh; overflow: hidden; }
.no-js body.focus { height: auto; overflow: auto; }
.fx { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 2px minmax(0, 1fr) auto; background: var(--paper); }
.no-js .fx { height: auto; }
.fx-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 60px; border-bottom: 1px solid var(--line);
          padding: 0 max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }
.fx-exit { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 0; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.fx-exit:hover { color: var(--red); }
.fx-title { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.fx-step { justify-self: end; font-size: .76rem; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-prog { background: var(--line); position: relative; overflow: hidden; }
.fx-prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width .5s var(--ease); }
.fx-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: 0; max-width: 1200px; width: 100%; margin: 0 auto; }
.fx-count { order: 2; padding: 34px var(--gutter); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow: hidden; }
.fx-count-h { display: grid; gap: 8px; }
.fx-count-h .flap { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.fx-count-h .of { font-size: .8rem; color: var(--ink-2); }
.fx-count .cells-legend { padding: 0; }
.fx-q { order: 1; padding: 34px var(--gutter); min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.fx-q form { display: contents; }
.js .q { display: none; }
.js .q.on { display: flex; flex-direction: column; min-height: 0; flex: 1; animation: qin .4s var(--ease) both; }
.js .q.on.back { animation-name: qback; }
@keyframes qin { from { opacity: 0; transform: translateX(18px); } }
@keyframes qback { from { opacity: 0; transform: translateX(-18px); } }
.no-js .q { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.q-n { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.q-t { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 12px 0 0; }
.q .hint { color: var(--ink-2); font-size: .9rem; margin: 10px 0 0; }
.q .tiles, .q .search { margin-top: 26px; }
.q .tiles + .search { margin-top: 0; }

/* tiles: big, obviously tappable choices */
.tiles { display: grid; gap: 8px; }
.tiles.t1 { grid-template-columns: minmax(0, 1fr); }
.tiles.t2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: block; cursor: pointer; border: 1px solid var(--ink); background: var(--card); padding: 0; text-align: left; font: inherit; color: inherit; transition: background .2s, color .2s, transform .15s; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile > span { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 68px; padding: 14px 16px; position: relative; }
.tile b { font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.tile small { font-size: .76rem; color: var(--muted); }
.tile > span::after { content: ""; position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border: 1px solid var(--line-2); }
.tile:has(input[type=radio]) > span::after { border-radius: 50%; }
.tile:hover { background: var(--paper-2); }
.tile:active { transform: scale(.985); }
.tile:has(input:checked), .tile.any.on { background: var(--ink); color: var(--paper); }
.tile:has(input:checked) small, .tile.any.on small { color: #bdb7ad; }
.tile:has(input:checked) > span::after, .tile.any.on > span::after { border-color: var(--red); background: var(--red); }
.tile:has(input:disabled) { opacity: .35; cursor: not-allowed; }
.tile:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.tile.slim > span { min-height: 52px; }
.fx-scroll { flex: 1; min-height: 120px; max-height: none; overflow-y: auto; border-top: 1px solid var(--ink); }
.q[data-name=Location].on { min-height: 0; }

/* review */
.review { margin-top: 22px; border-top: 1px solid var(--ink); }
.review .rv { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.review .rv span:first-child { color: var(--muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.review .rv button { background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; font-size: .8rem; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.review .rv button:hover { color: var(--red); }
.review .rv.total { border-bottom: 0; padding-top: 16px; }
.review .rv.total span:nth-child(2) { font-weight: 700; font-size: 1.4rem; }

/* bottom bar: price + Back / Next, always in reach */
.fx-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; border-top: 1px solid var(--ink); background: var(--card);
          padding: 14px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))) calc(14px + env(safe-area-inset-bottom)); }
.fx-count .strip { display: none; }
.fx-price .flap { font-size: 1.3rem; }
.fx-price small { display: block; margin-top: 6px; font-size: .74rem; color: var(--ink-2); }
.fx-nav { display: flex; gap: 8px; }
.fx-nav .btn { min-width: 120px; height: auto; min-height: 52px; padding: 10px 20px; white-space: normal; text-align: center; line-height: 1.3; }
.fx-nav [data-next] { min-width: 170px; }
#checkout { display: none; }
.no-js #checkout { display: block; padding: 0 var(--gutter) 30px; }
.hide-xs { }

@media (max-width: 860px) {
  .fx-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .fx-count { order: 0; border-left: 0; border-bottom: 1px solid var(--line); padding: 12px var(--gutter); gap: 10px; }
  .fx-count-h { grid-template-columns: auto auto 1fr; align-items: baseline; gap: 10px; }
  .fx-count-h .label { display: none; }
  .fx-count-h .flap { font-size: 1.2rem; }
  .fx-count-h .of { font-size: .72rem; }
  .fx-count .cells, .fx-count .cells-legend { display: none; }
  .fx-count .strip { display: grid; grid-template-columns: repeat(50, minmax(0, 1fr)); gap: 1px; height: 14px; }
  .fx-count .strip i { background: var(--ink); transition: background-color .25s; transition-delay: calc(var(--i) * 6ms); }
  .fx-count .strip i.off { background: var(--line); }
  .fx-count .strip i.sel { background: var(--red); }
  .fx-q { padding: 20px var(--gutter); }
  .q .tiles, .q .search { margin-top: 18px; }
  .tile > span { min-height: 60px; padding: 12px 14px; }
  .review .rv { grid-template-columns: 90px minmax(0, 1fr) auto; }
}
@media (max-width: 560px) {
  .hide-xs { display: none; }
  .fx-top { height: 54px; }
  .tiles.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles.t3 .tile > span { padding: 12px 10px; }
  .fx-bar { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 10px; }
  .fx-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .fx-price small { margin-top: 0; text-align: right; }
  .fx-nav .btn { flex: 1; min-width: 0; }
  .fx-nav [data-next] { flex: 1.6; min-width: 0; }
}


/* market page: the invitation to build */
.start { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0 56px; align-items: start; padding-top: 40px; padding-bottom: 80px; }
.start-l h2 { max-width: 20ch; }
.start-steps { list-style: none; padding: 0; margin: 28px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.start-steps li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); font-size: .82rem; background: var(--card); }
.start-steps li + li::before { content: "→"; color: var(--red); margin-right: 4px; }
.start-steps li small { color: var(--muted); font-size: .7rem; }
.start-r { border: 1px solid var(--ink); background: var(--card); padding: 22px 24px; }
.start-r-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.start-r-h b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .start { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 56px; } .start-cta { width: 100%; } .start-r .cells { gap: 1px; } }

@media (max-height: 720px) and (max-width: 860px) {
  .q-t { font-size: 1.45rem; margin-top: 6px; }
  .q .hint { font-size: .84rem; margin-top: 6px; }
  .q .tiles, .q .search { margin-top: 14px; }
  .tile > span { min-height: 50px; padding: 9px 12px; gap: 3px; }
  .qty input { font-size: 1.9rem; }
  .range { margin: 10px 0 2px; }
  .quick { margin-top: 12px; }
  .fx-q { padding-top: 14px; padding-bottom: 14px; }
  .fx-nav .btn { min-height: 46px; }
}

/* ================================================================ home: what's in stock */
.stock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--card); }
.stock > div { padding: 22px 22px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stock > div:last-child { border-right: 0; }
.stock b { font-size: clamp(1.1rem, 2.2vw, 1.7rem); }
.stock .flap { font-size: clamp(1rem, 1.9vw, 1.5rem); flex-wrap: wrap; row-gap: .08em; }
.stock small { font-size: .78rem; color: var(--ink-2); }
.stock-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.stock-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.fresh { display: grid; gap: 10px; }
.fr { display: grid; grid-template-columns: 110px minmax(0, 1fr) 60px; gap: 14px; align-items: center; font-size: .86rem; }
.fr .num { text-align: right; font-variant-numeric: tabular-nums; }
.fr-bar { height: 14px; background: var(--paper-2); position: relative; overflow: hidden; }
.fr-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .9s steps(9); transition-delay: calc(var(--d) * 120ms); }
.fr:first-child .fr-bar i { background: var(--red); }
.in .fr-bar i, .no-js .fr-bar i { transform: none; }
.gsplit { height: 14px; background: var(--line-2); position: relative; }
.gsplit i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); background: var(--ink); }
.glabels { display: flex; justify-content: space-between; margin-top: 8px; font-size: .84rem; }
.abars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: 110px; margin-top: 22px; align-items: end; }
.abars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.abars i { display: block; height: calc(var(--h) * 1%); background: var(--ink); transform-origin: bottom; transform: scaleY(0); transition: transform .8s steps(8); transition-delay: calc(var(--d) * 90ms); }
.in .abars i, .no-js .abars i { transform: none; }
.abars span { font-size: .7rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .stock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock > div:nth-child(2) { border-right: 0; }
  .stock > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stock-2 { grid-template-columns: minmax(0, 1fr); }
  .fr { grid-template-columns: 96px minmax(0, 1fr) 48px; gap: 10px; font-size: .8rem; }
}
.departures.dep5 .hd, .departures.dep5 a.row { grid-template-columns: 64px minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .9fr) 32px; }
@media (max-width: 760px) { .departures.dep5 .hd, .departures.dep5 a.row { grid-template-columns: 52px minmax(0, 1fr) auto 18px; } }

/* every record includes: a CSV header that types itself in */
.cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--card); }
.col-h { padding: 14px 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; opacity: 0; transition: opacity .01s steps(1); transition-delay: calc(var(--i) * 90ms); }
.in .col-h, .no-js .col-h { opacity: 1; }
.col-h:nth-child(6n) { border-right: 0; }
.col-h:nth-last-child(-n+6) { border-bottom: 0; }
.col-h code { font: inherit; font-weight: 700; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.col-h small { font-size: .68rem; color: var(--red); letter-spacing: .06em; }
@media (max-width: 860px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-h:nth-child(6n) { border-right: 1px solid var(--line); }
  .col-h:nth-child(2n) { border-right: 0; }
  .col-h:nth-last-child(-n+6) { border-bottom: 1px solid var(--line); }
  .col-h:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ================================================================ how it works: a stop-motion preview in a dialog */
.hiw { padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.hiw::backdrop { background: rgba(20, 20, 20, .45); }
.hiw[open] { animation: hiw-in .35s var(--ease) both; }
@keyframes hiw-in { from { opacity: 0; transform: translateY(10px); } }
.hiw-in { display: grid; grid-template-rows: auto auto auto auto; }
.hiw-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--ink); }
.hiw-x { background: none; border: 0; width: 40px; height: 40px; cursor: pointer; font-size: 1rem; margin-right: -10px; }
.hiw-x:hover { color: var(--red); }
.hiw-stage { position: relative; height: 300px; overflow: hidden; background: var(--card); border-bottom: 1px solid var(--line);
             background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.scene { position: absolute; inset: 0; padding: 28px; display: none; animation: jit .36s steps(1) infinite; }
.scene.on { display: block; }
@keyframes jit { 0% { transform: rotate(-.15deg); } 33% { transform: rotate(.2deg) translate(.4px, 0); } 66% { transform: rotate(0) translate(0, .4px); } }
.cur { position: absolute; width: 18px; height: 18px; background: var(--red); z-index: 3; box-shadow: 0 0 0 4px rgba(200, 51, 31, .18); }

/* scene 1: departure board, cursor hops to AU */
.mock-board { border: 1px solid var(--ink); background: var(--paper); max-width: 460px; margin: 8px auto 0; }
.mb-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mb-row:last-child { border-bottom: 0; }
.mb-row b { border: 1px solid var(--ink); text-align: center; font-size: .78rem; padding: 2px 0; }
.mb-row em { font-style: normal; font-variant-numeric: tabular-nums; }
.sc1.on .mb-row.hit { animation: hit-row 3.4s steps(1) both; }
@keyframes hit-row { 0%, 58% { background: transparent; color: inherit; } 60%, 100% { background: var(--ink); color: var(--paper); } }
.sc1.on .cur { animation: c1 3.4s steps(1) both; }
@keyframes c1 { 0% { left: 80%; top: 80%; } 15% { left: 70%; top: 62%; } 30% { left: 60%; top: 45%; } 45% { left: 52%; top: 36%; } 55% { left: 50%; top: 33%; transform: scale(.7); } 60%, 100% { left: 50%; top: 33%; transform: scale(1); } }

/* scene 2: tap Female, tap 25–34; the grid empties in steps, the count drops */
.sc2 { display: none; }
.sc2.on { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.mq-t { font-size: .92rem; font-weight: 700; margin-bottom: 8px; }
.mq-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mq-tiles span { border: 1px solid var(--ink); background: var(--paper); padding: 12px 8px; font-size: .82rem; text-align: center; }
.sc2.on .hit1 { animation: t1 3.6s steps(1) both; }
.sc2.on .hit2 { animation: t2 3.6s steps(1) both; }
@keyframes t1 { 0%, 28% { background: var(--paper); color: inherit; } 30%, 100% { background: var(--ink); color: var(--paper); } }
@keyframes t2 { 0%, 63% { background: var(--paper); color: inherit; } 65%, 100% { background: var(--ink); color: var(--paper); } }
.mc-n { position: relative; height: 1.4em; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-n span { position: absolute; left: 0; top: 0; opacity: 0; }
.sc2.on .n1 { animation: n1 3.6s steps(1) both; }
.sc2.on .n2 { animation: n2 3.6s steps(1) both; }
.sc2.on .n3 { animation: n3 3.6s steps(1) both; }
@keyframes n1 { 0%, 31% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes n2 { 0%, 31% { opacity: 0; } 32%, 66% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes n3 { 0%, 66% { opacity: 0; } 67%, 100% { opacity: 1; } }
.mc-grid { margin-top: 12px; height: 150px; position: relative; background-color: var(--ink);
           background-image: linear-gradient(var(--card) 2px, transparent 2px), linear-gradient(90deg, var(--card) 2px, transparent 2px); background-size: 12px 12px; }
.mc-grid i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background-color: var(--line);
             background-image: linear-gradient(var(--card) 2px, transparent 2px), linear-gradient(90deg, var(--card) 2px, transparent 2px); background-size: 12px 12px; background-position: 0 100%; }
.sc2.on .mc-grid i { animation: g2 3.6s steps(1) both; }
@keyframes g2 { 0%, 31% { height: 0; } 32%, 66% { height: 48%; } 67%, 100% { height: 84%; } }
.sc2.on .cur { animation: c2 3.6s steps(1) both; }
@keyframes c2 { 0% { left: 40%; top: 85%; } 12% { left: 38%; top: 60%; } 22% { left: 40%; top: 36%; } 29% { left: 41%; top: 33%; transform: scale(.7); } 31%, 45% { left: 41%; top: 33%; transform: scale(1); } 52% { left: 30%; top: 50%; } 62% { left: 25%; top: 62%; transform: scale(.7); } 66%, 100% { left: 25%; top: 62%; transform: scale(1); } }

/* scene 3: the receipt prints, PAID stamps on */
.sc3 { display: none; }
.sc3.on { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.mock-receipt { position: relative; border: 1px solid var(--ink); background: var(--paper); padding: 16px; font-size: .84rem; }
.mr-h { text-align: center; font-weight: 700; letter-spacing: .18em; font-size: .78rem; padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); margin-bottom: 8px; }
.mr-l, .mr-t { display: flex; justify-content: space-between; padding: 4px 0; }
.mr-t { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; }
.sc3.on .mr-l, .sc3.on .mr-t { animation: pr 3.6s steps(1) both; }
.sc3.on .mr-l:nth-child(2) { animation-name: pr1; } .sc3.on .mr-l:nth-child(3) { animation-name: pr2; } .sc3.on .mr-l:nth-child(4) { animation-name: pr3; } .sc3.on .mr-l:nth-child(5) { animation-name: pr4; } .sc3.on .mr-t { animation-name: pr5; }
@keyframes pr1 { 0%, 8% { opacity: 0; } 9%, 100% { opacity: 1; } }
@keyframes pr2 { 0%, 17% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes pr3 { 0%, 26% { opacity: 0; } 27%, 100% { opacity: 1; } }
@keyframes pr4 { 0%, 35% { opacity: 0; } 36%, 100% { opacity: 1; } }
@keyframes pr5 { 0%, 46% { opacity: 0; } 47%, 100% { opacity: 1; } }
.mock-stamp { position: absolute; right: 14px; bottom: 50px; width: 92px; height: 92px; border: 3px solid var(--red); border-radius: 50%; color: var(--red); display: grid; place-items: center;
              font-weight: 700; letter-spacing: .14em; font-size: 1.05rem; transform: rotate(-12deg); opacity: 0; mix-blend-mode: multiply; }
.sc3.on .mock-stamp { animation: ms 3.6s steps(1) both; }
@keyframes ms { 0%, 69% { opacity: 0; transform: scale(1.8) rotate(-20deg); } 70% { opacity: .9; transform: scale(1.15) rotate(-14deg); } 73%, 100% { opacity: .9; transform: scale(1) rotate(-12deg); } }
.mock-qr { border: 1px solid var(--ink); background: #fff; padding: 12px; text-align: center; font-size: .78rem; }
.mock-qr i { display: block; aspect-ratio: 1; margin-bottom: 10px;
             background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 16px 16px; }

/* scene 4: the file fills, Download lights up, READY */
.mock-file { display: flex; align-items: center; gap: 14px; border: 1px solid var(--ink); background: var(--paper); padding: 16px; max-width: 520px; margin: 40px auto 0; }
.mf-ic { width: 42px; height: 54px; border: 1px solid var(--ink); display: grid; place-items: end start; padding: 4px; font-size: .62rem; font-weight: 700; color: var(--red); flex: 0 0 auto; }
.mf-b { flex: 1; min-width: 0; font-size: .84rem; }
.mf-b small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.mf-bar { height: 8px; background: var(--paper-2); margin-top: 8px; position: relative; }
.mf-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
.sc4.on .mf-bar i { animation: mf 3.4s steps(8) both; }
@keyframes mf { 0% { width: 0; } 55%, 100% { width: 100%; } }
.mf-btn { border: 1px solid var(--ink); padding: 10px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.sc4.on .mf-btn { animation: mb 3.4s steps(1) both; }
@keyframes mb { 0%, 59% { background: transparent; color: inherit; } 60%, 100% { background: var(--ink); color: var(--paper); } }
.mock-stamp.ready { right: auto; left: 50%; bottom: 26px; margin-left: -46px; transform: rotate(8deg); }
.sc4.on .mock-stamp.ready { animation: ms2 3.4s steps(1) both; }
@keyframes ms2 { 0%, 74% { opacity: 0; transform: scale(1.8) rotate(16deg); } 75% { opacity: .9; transform: scale(1.12) rotate(10deg); } 78%, 100% { opacity: .9; transform: scale(1) rotate(8deg); } }
.sc4.on .cur { animation: c4 3.4s steps(1) both; }
@keyframes c4 { 0% { left: 50%; top: 85%; } 30% { left: 70%; top: 60%; } 50% { left: 80%; top: 40%; } 57% { left: 82%; top: 32%; transform: scale(.7); } 60%, 100% { left: 82%; top: 32%; transform: scale(1); } }

.hiw-cap { display: grid; gap: 4px; padding: 16px 18px 6px; }
.hiw-n { font-size: .7rem; letter-spacing: .16em; color: var(--red); }
.hiw-cap b { font-size: 1.2rem; }
.hiw-cap span:last-child { font-size: .86rem; color: var(--ink-2); }
.hiw-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px 18px; }
.hiw-dots { display: flex; gap: 6px; }
.hiw-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hiw-dots button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 4px; background: var(--line-2); }
.hiw-dots button.on::after { background: var(--red); }
.hiw-btns { display: flex; gap: 8px; }
@media (max-width: 600px) {
  .hiw-stage { height: 270px; }
  .scene { padding: 16px; }
  .sc2.on, .sc3.on { grid-template-columns: 1fr; gap: 12px; }
  .mock-count { display: none; }
  .mock-qr { display: none; }
  .mock-board .mb-row { padding: 11px 12px; font-size: .82rem; }
  .mock-file { margin-top: 24px; }
  .mf-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scene { animation: none; } }
html.hiw-open { overflow: hidden; }
.hiw [hidden] { display: none !important; }
.hiw-tag { position: absolute; right: 10px; bottom: 8px; z-index: 3; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .hiw-tag { display: none; } }

/* ================================================================ builder v2: questions alone, then a results screen */
.fx-body { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.fx-q { padding: 40px var(--gutter) 28px; }
.fx-price[hidden], .res-load[hidden], .res-out[hidden] { display: none !important; }
.fx:not(.at-results) .fx-bar { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.fx:not(.at-results) .fx-nav { width: min(100%, 420px); }
.fx:not(.at-results) .fx-nav .btn { flex: 1; }
.fx:not(.at-results) .fx-nav [data-next] { flex: 1.5; }

/* loader: twenty squares stamped in one by one, stop-motion */
.res { justify-content: flex-start; }
.res-load { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; min-height: 260px; }
.res-tick { display: grid; grid-template-columns: repeat(10, 18px); gap: 4px; }
.res-tick i { width: 18px; height: 18px; border: 1px solid var(--ink); background: var(--card); animation: tick 1.6s steps(1) infinite; animation-delay: calc(var(--i) * 70ms); }
@keyframes tick { 0% { background: var(--card); } 30% { background: var(--ink); } 85% { background: var(--ink); } 86% { background: var(--card); } }
.res-tick i:nth-child(7n) { animation-name: tick-red; }
@keyframes tick-red { 0% { background: var(--card); } 30% { background: var(--red); border-color: var(--red); } 85% { background: var(--red); } 86% { background: var(--card); border-color: var(--ink); } }
.res-load p { margin: 0; font-size: 1.15rem; font-weight: 700; }
.res-load small { color: var(--muted); font-size: .78rem; letter-spacing: .06em; }
.dots::after { content: ""; display: inline-block; width: 1.5em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* results */
.res-out { display: flex; flex-direction: column; gap: 0; animation: qin .4s var(--ease) both; }
.res-n { display: grid; gap: 8px; margin-top: 14px; }
.res-n .flap, .res-n > div { font-size: clamp(2rem, 6vw, 3.4rem); }
.res-n > span { font-size: .84rem; color: var(--ink-2); }
.res-out .strip { display: grid; grid-template-columns: repeat(50, minmax(0, 1fr)); gap: 2px; height: 14px; margin-top: 18px; }
.res-out .strip i { background: var(--ink); transition: background-color .25s; transition-delay: calc(var(--i) * 8ms); }
.res-out .strip i.off { background: var(--line); }
.res-out .strip i.sel { background: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips button { display: inline-flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-2); background: var(--card); font: inherit; font-size: .8rem; cursor: pointer; text-align: left; }
.chips button span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chips button:hover { border-color: var(--ink); }
.res-amt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink); }
.res-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px; align-items: center; margin: 10px 0 14px; }
.res-row .qty { margin: 0; }
.res-row .quick { margin: 0; }
.res-after { margin: 14px 0 0; font-size: .84rem; color: var(--ink-2); }
.res-out .notes { margin: 10px 0 0; }
.res-out .why { margin-top: 10px; }
@media (max-width: 560px) {
  .fx-q { padding: 22px var(--gutter) 16px; }
  .res-row { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 8px 0 10px; }
  .res-n { margin-top: 10px; gap: 4px; }
  .res-out .strip { margin-top: 12px; }
  .chips { margin-top: 12px; }
  .res-amt { margin-top: 14px; padding-top: 12px; }
  .res-out .why, .res-after { font-size: .76rem; }
  .fx:not(.at-results) .fx-nav { width: 100%; }
}
@media (max-height: 700px) and (max-width: 560px) { .res-out .why { display: none; } }
@media (max-width: 560px) { .res-out .range-ends { display: none; } .res-out .range { margin-bottom: 4px; } }
.tile > span { padding-right: 38px; }
.res-row .qty input { font-size: 1.8rem; }
