/* DataLeadSupply public site. Layout and components first; the "look" (tokens, shapes) is the last section of this file. */

: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);
  --rule: var(--ink);          /* strong borders */
  --sel: var(--ink);           /* a selected choice */
  --sel-fg: var(--paper);
  --sel-sub: #bdb7ad;
  --top-bg: rgba(246, 243, 238, .92);
  --font: "Ledger", "Courier New", Courier, monospace;
  --wrap: 1200px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: only 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(--sel); color: var(--sel-fg); }
: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; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; background: var(--top-bg); 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: 1080px) {
  .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(--rule); 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(--sel); color: var(--sel-fg); }
.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); }

/* ---------------------------------------------------------------- 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(--rule); 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(--rule); 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; }
.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(--rule); }
.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(--rule); 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(--rule); }
.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(--rule); }
.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(--rule); }
.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(--rule); padding: 48px 0 30px; font-size: .84rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 2fr 1.4fr; gap: 28px; }
.foot .foot-h { 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; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ================================================================ market */
.mk { padding-top: 40px; padding-bottom: 26px; }
.crumbs { display: flex; gap: 10px; flex-wrap: nowrap; min-width: 0; white-space: nowrap; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs > * { flex: 0 0 auto; }
.crumbs > span:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.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(--rule); padding: 4px 8px; transform: translateY(-6px); }
.facts { display: flex; border: 1px solid var(--rule); }
.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(--rule); background: var(--card); }
.steps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.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(--sel); color: var(--sel-fg); }
.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(--rule); }
.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(--sel); color: var(--sel-fg); }
.choices input:checked + span small { color: var(--sel-sub); }
.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(--rule); 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(--rule); 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(--rule); }
.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(--sel); color: var(--sel-fg); }
.opt input:checked + .in small { color: var(--sel-sub); }
.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(--rule); 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(--rule); }
.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(--sel); color: var(--sel-fg); }
.quick button:disabled { opacity: .3; cursor: not-allowed; }

/* the sheet (right): count, the grid, the price */
.sheet { border: 1px solid var(--rule); 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(--sel); color: var(--sel-fg); 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(--rule); 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(--rule); 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(--rule); 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(--rule); 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(--sel); color: var(--sel-fg); }
.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(--rule); 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(--rule); 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(--rule); 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(--sel); color: var(--sel-fg); 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(--rule); 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(--rule); 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(--rule); 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(--rule); 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; } }
/* "Working…" signals (owner 14 Nov: waiting must never look stuck) */
.dots:empty { position: relative; display: inline-block; width: 6px; height: 6px; margin: 0 14px 2px 14px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: dotf .9s infinite alternate .3s; }
.dots:empty::before, .dots:empty::after { content: ""; position: absolute; top: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dotf .9s infinite alternate; }
.dots:empty::before { left: -10px; } .dots:empty::after { left: 10px; animation-delay: .6s; }
@keyframes dotf { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: .25; transform: translateY(-2px); } }
.as-msg.typing { padding: 12px 14px; }
.as-dots { display: inline-flex; gap: 5px; align-items: center; height: 10px; }
.as-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: asb 1.2s infinite ease-in-out; }
.as-dots i:nth-child(2) { animation-delay: .15s; } .as-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes asb { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
button[aria-busy="true"], .btn[aria-busy="true"] { position: relative; cursor: progress; }
button[aria-busy="true"]::after, .btn[aria-busy="true"]::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dots:empty, .dots:empty::before, .dots:empty::after, .as-dots i, button[aria-busy="true"]::after, .btn[aria-busy="true"]::after { animation-duration: 2.4s; } }
.filecard { display: flex; align-items: center; gap: 18px; border: 1px solid var(--rule); padding: 18px; background: var(--paper); margin-top: 22px; }
.filecard .ic { width: 46px; height: 58px; border: 1px solid var(--rule); 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(--rule); border-bottom: 1px solid var(--rule); }
@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(--rule); }
.panel-body, .card { padding: 24px; }
.card-link { display: block; transition: background .25s, color .25s; }
.card-link:hover { background: var(--sel); color: var(--sel-fg); }
.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(--rule); 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(--rule); 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(--rule); 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; }
}


/* ================================================================ 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(--sel); color: var(--sel-fg); 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(--rule); 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(--sel); color: var(--sel-fg); }
.tile:has(input:checked) small, .tile.any.on small { color: var(--sel-sub); }
.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(--rule); }
.q[data-name=Location].on { min-height: 0; }

/* review */
.review { margin-top: 22px; border-top: 1px solid var(--rule); }
.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(--rule); 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(--rule); 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(--rule); 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(--rule); 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(--rule); 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; grid-template-columns: minmax(0, 1fr); }
.hiw-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.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(--rule); 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(--rule); 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(--sel); color: var(--sel-fg); } }
.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(--rule); 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(--sel); color: var(--sel-fg); } }
@keyframes t2 { 0%, 63% { background: var(--paper); color: inherit; } 65%, 100% { background: var(--sel); color: var(--sel-fg); } }
.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(--rule); 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(--rule); 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(--rule); background: var(--paper); padding: 16px; max-width: 520px; margin: 40px auto 0; }
.mf-ic { width: 42px; height: 54px; border: 1px solid var(--rule); 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(--rule); 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(--sel); color: var(--sel-fg); } }
.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; }
  .hiw { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; overflow-x: hidden; }
  .hiw-in { display: flex; flex-direction: column; height: 100%; }
  /* full screen: the fixed-size scene (pointer animation is positioned in px) is centred, controls stay at the bottom */
  .hiw-in { background: var(--paper-2); }
  .hiw-in > .hiw-stage { margin: auto 0; border-bottom: 0; }
  .hiw-top, .hiw-cap, .hiw-nav { background: var(--paper); }
  .hiw-cap { border-top: 1px solid var(--line); }
  .hiw-nav { flex-wrap: wrap; gap: 10px; padding: 10px 14px 14px; }
  .hiw-dots { width: 100%; justify-content: center; }
  .hiw-btns { width: 100%; }
  .hiw-btns .btn { flex: 1; justify-content: center; }
  .hiw-cap { padding: 14px 14px 4px; }
}
@media (prefers-reduced-motion: reduce) { .scene { animation: none; } }
html.hiw-open { overflow: hidden; }
html.hiw-open .as { display: none; }
.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(--rule); 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(--rule); }
.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; }

/* ================================================================ home v2: plain words, one picker, country cards */
.hx { padding: clamp(48px, 7vw, 96px) 0 0; }
.hx-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 56px; align-items: center; }
@media (max-width: 960px) { .hx-grid { grid-template-columns: minmax(0, 1fr); } }
.hx-h { font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 16ch; }
.hx-sub { color: var(--ink-2); font-size: 1.08rem; max-width: 54ch; margin: 22px 0 0; }
.pick { display: flex; gap: 10px; margin-top: 30px; max-width: 620px; }
.pick select { flex: 1; min-width: 0; height: 58px; padding: 0 16px; border: 1px solid var(--rule); background: var(--card); font-size: 1rem; cursor: pointer; }
@media (max-width: 600px) { .pick { flex-direction: column; } .pick select { flex: none; width: 100%; } .pick .btn { width: 100%; } }
.hx-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .88rem; color: var(--ink-2); }
.hx-ticks li::before { content: "✓ "; color: var(--red); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis > div { padding: 22px 0; display: grid; gap: 4px; }
.kpis b { font-size: clamp(1.4rem, 2.6vw, 2rem); font-variant-numeric: tabular-nums; }
.kpis span { font-size: .86rem; color: var(--ink-2); }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hd2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.hd2 p { margin: 0; color: var(--ink-2); }
.cty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .cty { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cty { grid-template-columns: minmax(0, 1fr); } }
.cty-c { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--rule); background: var(--card); transition: border-color .2s, box-shadow .2s, transform .2s; }
.cty-c:hover { border-color: var(--red); }
.cty-top { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.cty-top .code { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 24px; padding: 0 6px; border: 1px solid var(--line-2); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
.cty-n { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cty-n small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.cty-m { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.cty-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; }
.cty-f .go { color: var(--red); font-weight: 700; }
.cty-c.soon { background: transparent; border-style: dashed; border-color: var(--line-2); color: var(--muted); }
.cty-c.soon .cty-n small { font-size: 1rem; }
.cty-c.soon .go { color: var(--ink-2); }
.soon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; font-size: .9rem; color: var(--ink-2); }
.soon-row a { padding: 6px 12px; border: 1px dashed var(--line-2); color: var(--ink-2); }
.soon-row a:hover { border-color: var(--red); color: var(--red); }
.soon-row small { color: var(--muted); }
@media (max-width: 600px) { .cty-c { padding: 16px; gap: 8px; } .cty-n { font-size: 1.5rem; } }
section.block.alt { background: var(--paper-2); }
.get { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 14px; }
@media (max-width: 960px) { .get { grid-template-columns: minmax(0, 1fr); } }
.get-c { border: 1px solid var(--line); background: var(--card); padding: 24px; }
.get-c h3 { font-size: 1.05rem; margin-bottom: 14px; }
.get-c h3 small { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 6px; }
.get-p { color: var(--ink-2); font-size: .9rem; }
.ticks2 { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.ticks2 li { padding-left: 24px; position: relative; }
.ticks2 li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { padding: 5px 10px; border: 1px solid var(--line-2); font-size: .8rem; background: var(--paper); }
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .steps3 { grid-template-columns: minmax(0, 1fr); } }
.steps3 li { padding: 24px; border: 1px solid var(--line); background: var(--card); }
.steps3 .n { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--sel); color: var(--sel-fg); font-weight: 700; }
.steps3 h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.steps3 p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.why4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .why4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why4 { grid-template-columns: minmax(0, 1fr); } }
.why4 h3 { font-size: 1.02rem; }
.why4 p { margin: 0; color: var(--ink-2); font-size: .9rem; }

/* ================================================================ the look: white, slate text, one blue accent, rounded cards, system sans
   (overrides the token defaults and shapes above) */
:root {
  --paper: #ffffff;
  --paper-2: #f5f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #64748b;
  --line: #e6eaf0;
  --line-2: #cfd7e2;
  --red: #2563eb;            /* the accent (name kept from ledger) */
  --red-soft: rgba(37, 99, 235, .08);
  --rule: #d9dfe8;
  --sel: #2563eb;
  --sel-fg: #ffffff;
  --sel-sub: rgba(255, 255, 255, .82);
  --top-bg: rgba(255, 255, 255, .9);
  --ok: #16a34a;
  --bad: #dc2626;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-up: 0 4px 10px rgba(15, 23, 42, .06), 0 14px 32px rgba(15, 23, 42, .08);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body { line-height: 1.55; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline-color: var(--red); }

/* type: bold headings, no tracking tricks, no capitals-everywhere */
h1, h2, .display { font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-weight: 650; }
.label, .sec, .q-n, .fx-exit, .fx-title, .fx-step, .nav a:not(.btn), .menu-btn, .btn, .tabs a, .crumbs, .progress, .track .st,
.facts span, .field > span, .steps-tabs button, .foot .foot-h, .foot-bottom, .departures .hd, th, .qty .u, .hiw-n, .stamps::before,
.receipt .rh b, .receipt .tot span:first-child, .chips button span, .review .rv span:first-child, .tag, .badge, .specimen .sp-h, .specimen .sp-f,
.mf-btn, .mr-h, .res-load small, .up {
  text-transform: none; letter-spacing: 0;
}
.label, .field > span, .foot .foot-h { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.q-n { font-size: .82rem; font-weight: 600; }
.sec::after { transform: none; }

/* header & footer */
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.brand { text-transform: none; letter-spacing: -.01em; font-size: 1.02rem; }
.nav a:not(.btn) { font-size: .92rem; font-weight: 500; }
.nav a:not(.btn)::after { display: none; }
.nav a:not(.btn):hover { color: var(--red); }
.foot { background: var(--paper-2); border-top: 1px solid var(--line); }
.foot-bottom { font-size: .8rem; color: var(--ink-2); }

/* buttons: solid, rounded, no wipe */
.btn { border-radius: 10px; font-weight: 600; font-size: .95rem; border-color: var(--line-2); background: #fff; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn::before { display: none; }
.btn:hover { color: var(--ink); background: var(--paper-2); border-color: var(--ink-2); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.btn[disabled]:hover { background: #fff; }
.btn-primary[disabled]:hover { background: var(--red); color: #fff; }
.link { text-decoration-color: rgba(37, 99, 235, .35); color: var(--red); }
.link:hover { text-decoration-color: var(--red); }

/* live numbers */
[data-total], [data-available], [data-flap] { font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-price [data-total] { font-size: 1.3rem; line-height: 1.1; }

/* cards & boxes: rounded, light border, soft shadow */
.tile, .paper, .receipt, .specimen, .cty-c, .get-c, .steps3 li, .stock, .start-r, .composer, .sheet, .panel, .card, .alert, .copy,
.qr, .filecard, .quick, .others, .facts, .opts, .choices, .promises, .cols, .hiw, .mock-board, .mock-receipt, .mock-file, .mock-qr {
  border-radius: var(--r); border-color: var(--rule);
}
.quick, .others, .facts, .opts, .choices, .promises, .cols, .stock, .specimen { overflow: hidden; }
.tile, .paper, .receipt, .specimen, .cty-c, .get-c, .steps3 li, .stock, .start-r, .sheet, .panel, .card { box-shadow: var(--shadow); }
.receipt::after { display: none; }
.cty-c:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: rgba(37, 99, 235, .45); }
.soon-row a { border-radius: 999px; background: #fff; }
.cty-top .code, .departures .code, .mk-title h1 .code, .badge, .tag, .pills span, .chips button, .start-steps li { border-radius: 999px; }
.cty-top .code { background: var(--paper-2); border-color: transparent; }
.pills span { background: var(--paper-2); border-color: transparent; color: var(--ink-2); }
.steps3 .n { border-radius: 50%; }
.alert-error { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.alert-warn { border-radius: var(--r); }
.notes { color: #b45309; }
.tag.red { border-color: var(--bad); color: var(--bad); }
.hx-ticks li::before, .ticks2 li::before, .ticks li::before, .check-list li::before { color: var(--ok); }
.ticks li::before, .check-list li::before { content: "✓ "; }

/* home */
.hx { background: linear-gradient(180deg, #f2f6fe 0%, #ffffff 78%); }
.hx-h { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.pick select { border-radius: 10px; border-color: var(--line-2); box-shadow: var(--shadow); appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.pick select:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.kpis { border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); padding: 0 8px; }
.kpis > div { padding: 20px 20px; }
.kpis > div + div { border-left: 1px solid var(--line); }
@media (max-width: 720px) { .kpis > div:nth-child(3) { border-left: 0; } .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.kpis b { color: var(--ink); }
.specimen .sp-h { border-bottom-color: var(--line); color: var(--ink); font-weight: 600; font-size: .8rem; }
.specimen .sp-h span:first-child::before { border-radius: 50%; background: var(--ok); }
.specimen .sp-f { font-size: .78rem; }
.specimen .sp-r { border-bottom: 1px solid var(--line); }
.specimen .sp-r span:last-child { font-family: var(--mono); font-size: .8rem; }
.closing { background: var(--paper-2); border-top: 0; }
.closing h2 { max-width: 24ch; }
.faq { border-top-color: var(--line); }
.faq summary { font-weight: 550; }

/* classic-template pages inside this layout */
.departures { border-top-color: var(--line); }
.departures a.row::before { background: var(--paper-2); }
.departures a.row:hover { color: var(--ink); }
.departures a.row:hover .code { background: var(--red); color: #fff; border-color: var(--red); }
.card-link:hover, .others a:hover { background: var(--paper-2); color: var(--ink); }
th { font-weight: 600; font-size: .8rem; border-bottom-color: var(--line-2); }

/* forms: boxed inputs */
.field input, .copy-field input, .search input { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; background: #fff; }
.field input:focus, .field textarea:focus, .copy-field input:focus, .search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); background: #fff; }
.field textarea { border-radius: 10px; }
.field select, .page select { height: 48px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; width: 100%; }
.qty { border-bottom-color: var(--line-2); }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--red) var(--p, 0%), var(--line) var(--p, 0%)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--red); }
.range::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--red); box-shadow: var(--shadow); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.quick { border-color: var(--line-2); }
.chips button { border-color: var(--line-2); }

/* list builder */
.fx-top { border-bottom-color: var(--line); }
.fx-prog { background: var(--line); }
.fx-title b { font-weight: 700; }
.q-t { font-weight: 700; }
.tile { border-color: var(--line-2); }
.tile:hover { background: #f8faff; border-color: rgba(37, 99, 235, .45); }
.tile > span::after { border-radius: 5px; border-color: var(--line-2); }
.tile:has(input:checked), .tile.any.on { background: #eff4ff; color: var(--ink); border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset, var(--shadow); }
.tile:has(input:checked) small, .tile.any.on small { color: var(--ink-2); }
.tile:has(input:checked) > span::after, .tile.any.on > span::after { border-color: var(--red); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat center; }
.fx-scroll { border-top-color: var(--line); }
.reg .box { border-color: var(--line-2); border-radius: 5px; }
.reg .box::after { border-radius: 2px; }
.reg .w { border-radius: 3px; overflow: hidden; }
.reg input:checked ~ .w i { background: var(--red); }
.fx-bar { border-top-color: var(--line); box-shadow: 0 -4px 16px rgba(15, 23, 42, .04); }
.res-amt { border-top-color: var(--line); }
.res-tick i { border-radius: 4px; border-color: var(--line-2); }
.res-out .strip i, .cells i, .strip i { border-radius: 2px; }
.cells i, .res-out .strip i, .fx-count .strip i, .strip i { background: #94a3b8; }
.cells i.off, .res-out .strip i.off, .strip i.off { background: var(--line); }
.cells i.sel, .res-out .strip i.sel, .strip i.sel { background: var(--red); }

/* checkout & order */
.progress, .track { border-top-color: var(--line); }
.track .st.done::before { background: var(--ok); }
.track .st.done b::before, .progress .done b::before { color: var(--ok); }
.stamp { mix-blend-mode: normal; }
.stamp.paid, .stamp.paid::before { border-color: var(--ok); color: var(--ok); }
.dots i { border-radius: 50%; }
.filecard .ic { border-radius: 6px; }

/* how-it-works dialog */
.hiw { box-shadow: var(--shadow-up); }
.hiw-top { border-bottom-color: var(--line); }
.hiw-stage { background-image: none; background: var(--paper-2); }
.scene { animation: none; }
.mq-tiles span, .mb-row b { border-radius: 8px; border-color: var(--line-2); }
.cur { border-radius: 50%; box-shadow: 0 0 0 5px rgba(37, 99, 235, .18); }

/* country picker nudge (Get leads → #start) */
.pick { position: relative; }
.pick-hint { position: absolute; left: 0; top: calc(100% + 12px); z-index: 5; margin: 0; padding: 10px 14px; max-width: 340px;
  background: var(--ink); color: #fff; font-size: .92rem; line-height: 1.35; border-radius: 10px; box-shadow: var(--shadow); }
.pick-hint::before { content: ""; position: absolute; left: 28px; top: -6px; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.pick.nudge select { animation: pick-pulse 1.2s ease-out 3; border-color: var(--red); }
@keyframes pick-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); } 100% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); } }
@media (max-width: 600px) { .pick-hint { top: auto; bottom: calc(100% + 12px); } .pick-hint::before { top: auto; bottom: -6px; } }
@media (prefers-reduced-motion: reduce) { .pick.nudge select { animation: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); } }

/* preview / sample dialog in the builder */
.pv { border: 0; border-radius: 14px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: var(--shadow-up); }
.pv::backdrop { background: rgba(15, 23, 42, .55); }
.pv-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pv-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.pv-body { padding: 16px 18px 18px; overflow: auto; max-height: calc(100vh - 100px); }
.pv-body .btn-block { margin-top: 14px; }
.pv-mail { margin-top: 14px; }

.pick-sample { margin: 12px 0 0; max-width: 620px; }

/* Homepage: one primary country action, then a compact row of optional paths. */
.hx-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 18px; max-width: 620px; }
.hx-ai { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid #dbe7ff; border-radius: 10px; background: #eff5ff; color: #1d4ed8; font-size: .88rem; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background .18s, border-color .18s; }
.hx-ai svg { width: 19px; height: 19px; flex: 0 0 19px; }
.hx-ai:hover { background: #e2edff; border-color: #b7ceff; }
.hx-sample { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); font-size: .88rem; font-weight: 500; text-underline-offset: 4px; }
.hx-sample svg { width: 16px; height: 16px; flex: 0 0 16px; color: #2563eb; }
.hx-sample:hover { color: #1d4ed8; text-decoration: underline; }
.hx-ai:focus-visible, .hx-sample:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; }
.hx-options + .hx-ticks { margin-top: 22px; gap: 6px 18px; font-size: .81rem; }
@media (max-width: 600px) {
  .hx-options { gap: 6px 18px; margin-top: 16px; }
  .hx-ai { flex: 1 1 auto; }
  .hx-sample { flex: 1 1 auto; justify-content: center; }
  .hx-options + .hx-ticks { margin-top: 18px; gap: 5px 16px; }
}

.foot-countries ul { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 24px; }
@media (max-width: 860px) { .foot-countries ul { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

/* FAQ grouped by topic */
.faq-toc { margin: 0 0 8px; line-height: 1.9; }
.faq-h { margin: 34px 0 10px; font-size: 1.25rem; scroll-margin-top: 80px; }

/* homepage: who buys from us */
.who6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.who6 > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 14px; }
.who6 h3 { margin: 0 0 6px; font-size: 1rem; }
.who6 p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.trust3 { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 860px) { .who6, .trust3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .who6, .trust3 { grid-template-columns: 1fr; } }

/* website assistant */
.as { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-size: .93rem; }
body.focus .as { bottom: 92px; }
.as-btn { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 16px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.as-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.as.open .as-btn { display: none; }
.as-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-up, 0 10px 40px rgba(0,0,0,.18)); overflow: hidden; }
.as-panel[hidden] { display: none; }
.as-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.as-top small { display: block; color: var(--muted); font-size: .76rem; }
.as-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: inherit; }
.as-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.as-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.as-contact { display: grid; gap: 6px; max-width: 88%; padding: 10px 12px; border: 1px solid var(--line, #dde3ee); border-radius: 12px; background: #fff; }
.as-contact p { margin: 0; font-size: .86rem; }
.as-contact input { font: inherit; font-size: .9rem; padding: 8px 10px; border: 1px solid var(--line, #dde3ee); border-radius: 8px; min-width: 0; }
.as-contact button { font: inherit; font-weight: 600; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--red, #2563eb); color: #fff; cursor: pointer; }
.as-contact small:empty { display: none; }
.as-contact small { color: #b42318; font-size: .8rem; }
.as-msg.bot { background: var(--paper-2, #f3f4f6); align-self: flex-start; border-bottom-left-radius: 4px; }
.as-msg.me { background: var(--red, #2563eb); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.as-msg.me a { color: #fff; }
.as-msg.typing { color: var(--muted); letter-spacing: 2px; }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.as-chips button { border: 1px solid var(--line-2, var(--line)); background: none; border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .82rem; cursor: pointer; }
.as-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.as-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; max-height: 120px; }
.as-tools { display: flex; align-items: center; gap: 10px; }
.as-about { position: relative; }
.as-about > summary { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-size: .75rem; color: var(--muted); cursor: pointer; list-style: none; }
.as-about > summary::-webkit-details-marker { display: none; }
.as-about > p { position: absolute; z-index: 5; right: 0; top: 30px; width: 220px; margin: 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 22px #17243e18; font-size: .78rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 600px) { .as-btn { padding: 10px 14px; } body.focus .as { bottom: 84px; } }

.post-card { padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--red); }

/* Aged Data page: one block per country, six fixed packs */
.aged { border-top: 1px solid var(--rule); padding: 22px 0 26px; }
.aged-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.aged-h h2 { margin: 0; }
.aged-pv { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-size: .84rem; cursor: pointer; }
.aged-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aged-pack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--card);
  font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.aged-pack b { font-size: 1.15rem; }
.aged-pack span { font-size: .8rem; color: var(--muted); }
.aged-pack em { font-style: normal; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.aged-pack:hover:not(:disabled) { background: var(--sel); color: var(--sel-fg); border-color: var(--ink); }
.aged-pack:hover:not(:disabled) span { color: inherit; }
.aged-pack:disabled { opacity: .45; cursor: not-allowed; }
.payment-actions { display: grid; gap: 0; margin-top: 24px; }
.btn.btn-paypal, .btn.btn-crypto { border-radius: 14px; min-height: 64px; padding: 16px 24px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 1rem; letter-spacing: 0; text-transform: none; box-shadow: 0 3px 8px #17243e12; transition: background .18s, box-shadow .18s, transform .18s; }
.btn.btn-paypal { background: #ffc439; color: #003087; border: 1px solid #efb52e; }
.btn.btn-paypal:hover { background: #f4b822; color: #003087; box-shadow: 0 5px 14px #17243e22; transform: translateY(-1px); }
.btn.btn-crypto { background: #f4f7ff; color: #172b50; border: 1px solid #cbd6ec; }
.btn.btn-crypto:hover { background: #e9efff; color: #172b50; box-shadow: 0 5px 14px #17243e18; transform: translateY(-1px); }
.btn.btn-paypal::before, .btn.btn-crypto::before { display: none; }
.btn.btn-card { border-radius: 14px; min-height: 64px; padding: 16px 24px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 1rem; letter-spacing: 0; text-transform: none; background: #1f2937; color: #fff; border: 1px solid #111827; box-shadow: 0 3px 8px #17243e12; margin-top: 10px; }
.btn.btn-card:hover { background: #111827; color: #fff; transform: translateY(-1px); }
.btn.btn-card::before { display: none; }
.btn-card .pay-symbol { background: #ffffff1f; color: #fff; font-style: normal; font-size: 1rem; }
.btn-card small { display: block; font-size: .72rem; font-weight: 400; color: #d1d5db; margin-top: 3px; }
.paypal-word { font-size: 1.18em; font-style: italic; letter-spacing: -.045em; }.paypal-word span { color: #0070ba; }
.pay-symbol { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #00308710; font-size: 1.3rem; font-weight: 800; font-style: italic; }
.btn-crypto .pay-symbol { background: #147a6915; color: #147a69; font-style: normal; }
.btn-crypto small { display: block; font-size: .72rem; font-weight: 400; color: #526481; margin-top: 3px; }
.payment-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; padding: 13px 0; }.payment-divider::before,.payment-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.payment-change { padding: 0; }
.payment-change > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; color: #2563eb; font-size: 1rem; font-weight: 650; }
.payment-change > summary::-webkit-details-marker, .payment-help > summary::-webkit-details-marker { display: none; }
.payment-change > summary:hover { color: #1d4ed8; text-decoration: underline; text-underline-offset: 4px; }
.payment-change > summary:focus-visible, .payment-help > summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; border-radius: 4px; }
.payment-chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 2px 0 0; }
.payment-change[open] > summary .payment-chevron { transform: rotate(225deg); margin-top: 4px; }
.payment-change-actions { display: flex; align-items: center; gap: 12px; max-width: 400px; margin-top: 10px; }
.payment-change-actions > form { flex: 1; min-width: 0; }
.payment-help { position: relative; flex: 0 0 32px; }
.payment-help > summary { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #bcc9e0; border-radius: 50%; color: #43648e; font-size: .85rem; font-weight: 650; cursor: pointer; list-style: none; }
.payment-help > summary:hover { background: #f0f5ff; color: #2563eb; border-color: #2563eb; }
.payment-help > p { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: min(280px, 75vw); margin: 0; padding: 14px 16px; background: #fff; color: #334155; border: 1px solid #d9e2f0; border-radius: 10px; box-shadow: 0 6px 22px #17243e18; font-size: .85rem; line-height: 1.5; }
[data-checkout] [aria-busy="true"] { opacity: .7; cursor: progress; }
@media(max-width:560px) { .btn.btn-paypal,.btn.btn-crypto { padding: 15px 16px; } }
@media (max-width: 560px) { .aged-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aged-pv { margin-left: 0; width: 100%; text-align: left; } }

/* Browser chat sessions: compact history picker; the message area keeps its space. */
.as-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.as-toolbar button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 6px; background: none; border: 0; color: #1d4ed8; font-size: .82rem; font-weight: 600; cursor: pointer; }
.as-toolbar svg { width: 16px; height: 16px; }
.as-sessions { max-height: 168px; flex-shrink: 0; overflow-y: auto; padding: 6px; background: #f5f8ff; border-bottom: 1px solid var(--line); }
.as-sessions[hidden] { display: none; }
.as-session { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; }
.as-session span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.as-session small { color: #526481; font-size: .7rem; white-space: nowrap; }
.as-session[aria-current=true] { background: #e2edff; color: #1d4ed8; }
.as-session:hover { background: #e9effc; }
.as-x { min-width: 32px; min-height: 32px; }
.as-form textarea { min-width: 0; }
.as-panel { height: min(600px, calc(100dvh - 40px)); }
@media (max-width:600px) { body.focus .as-panel { height:min(600px,calc(100dvh - 120px)); } }

/* Country page: panel for visitors who came from one of our campaign emails (app/welcome.py). */
.welcome { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; padding: 16px 18px; margin: 10px 0 22px; max-width: 820px; }
.welcome h2 { font-size: 1.08rem; margin: 0 0 4px; line-height: 1.35; }
.welcome-for { font-size: .82rem; color: var(--muted, #475569); margin: 0 0 6px; }
.welcome-filters { font-size: .92rem; color: #334155; margin: 0 0 10px; }
.welcome-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.welcome-n { font-size: 1.35rem; font-weight: 800; }
.welcome-price { color: #475569; margin-right: 4px; }
.welcome-alt { font-size: .85rem; margin: 10px 0 0; color: #475569; }
@media (max-width: 560px) { .welcome-row .btn { flex: 1 1 100%; text-align: center; justify-content: center; } }
/* Builder on phones: the chat button shrinks to "Ask" so it does not cover the answer cards (name unchanged for screen readers). */
@media (max-width: 600px) {
  body.focus .as-btn { padding: 9px 12px; gap: 6px; font-size: .85rem; }
}
.langs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.langs a { text-decoration: underline; text-underline-offset: 3px; }
.langs a:hover { color: var(--red); }
.langs [aria-current] { color: var(--ink); font-weight: 600; }
.gl { display: none; }
.gl-on .gl { display: block; margin-top: 3px; font-size: .8rem; font-weight: 400; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--muted); }
.gl-on .q-t .gl { font-size: .5em; margin-top: 6px; }
.gl-on label > .gl, .gl-on summary > .gl { display: inline; margin-left: 6px; }
.fx-lang { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 10px; font-size: .72rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.fx-lang[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.fx-end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }
.foot-langs a { text-decoration: underline; text-underline-offset: 3px; }


/* ================================================================ tidy-up (12 Nov): one rhythm, calmer header, balanced grids */
/* header: one line, language in a compact menu (globe + current language), as most multilingual sites do */
.top .wrap { gap: 20px; }
.nav { gap: 2px; }
.nav a:not(.btn) { white-space: nowrap; padding: 8px 11px; }
.nav > .btn { margin-left: 8px; white-space: nowrap; }
.lang { position: relative; margin-left: 6px; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .88rem; font-weight: 550; color: var(--ink-2); cursor: pointer; white-space: nowrap; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 17px; height: 17px; flex: 0 0 17px; }
.lang summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.lang summary:hover, .lang[open] summary { border-color: var(--line-2); background: var(--paper-2); color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-up); }
.nav .lang li a { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; font-size: .93rem; color: var(--ink); white-space: nowrap; }
.nav .lang li a:hover { background: var(--paper-2); color: var(--ink); }
.nav .lang li a[aria-current] { color: var(--red); font-weight: 600; }
.nav .lang li a[aria-current]::after { content: "✓"; display: inline; position: static; transform: none; background: none; height: auto; }
@media (max-width: 1080px) {
  .lang { margin: 0; border-bottom: 1px solid var(--line); }
  .lang summary { width: 100%; height: 56px; padding: 0; border: 0; border-radius: 0; background: none !important; font-size: .9rem; color: var(--ink); }
  .lang summary::after { margin-left: auto; }
  .lang ul { position: static; min-width: 0; padding: 0 0 10px; border: 0; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .nav .lang li a { min-height: 44px; border: 1px solid var(--line); }
  .nav > .btn { margin-left: 0; }
}

/* one vertical rhythm for every section */
section.block { padding: clamp(56px, 7vw, 96px) 0; }
.closing { padding: clamp(64px, 8vw, 104px) 0; }
.hd2 { margin-bottom: 32px; }
.hd2 p { max-width: 52ch; }

/* home: AI section in two balanced columns, the example as a card */
.about .prose + .prose { grid-column: 8 / 13; align-self: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 20px; box-shadow: var(--shadow); }
.about .prose + .prose h3 { font-size: 1.1rem; margin: 0 0 10px; }
.about .prose + .prose p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .about .prose + .prose { grid-column: 1 / -1; margin-top: 28px; } }

/* home: "what you get" = two equal cards, then the survey card across the full width */
.get { grid-template-columns: 1fr 1fr; }
.get-c:nth-child(3) { grid-column: 1 / -1; }
.get-c:nth-child(3) .get-p { max-width: 70ch; }
@media (max-width: 960px) { .get { grid-template-columns: minmax(0, 1fr); } }
.cty-more { display: flex; flex-direction: column; justify-content: center; gap: 8px; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 22px; color: var(--ink-2); background: transparent; }
.cty-more b { color: var(--ink); font-size: 1.02rem; }
.cty-more .go { color: var(--red); font-weight: 600; font-size: .92rem; }
.cty-more:hover { border-color: var(--red); background: #fff; }

/* country page: the questions stay in view while the long text scrolls */
@media (min-width: 861px) { .about .faq { position: sticky; top: 92px; align-self: start; } }
.mk-title h1 .code { display: none; }

/* text pages: a calmer title */
.page-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 22ch; }
.page-head .crumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; display: inline-block; vertical-align: bottom; }

/* footer: four short columns instead of one long list */
.foot-grid { grid-template-columns: 1.6fr 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-bottom { gap: 12px 24px; flex-wrap: wrap; }

/* phones: the chat button becomes a small pill so it never covers content */
@media (max-width: 600px) {
  .as-btn { padding: 10px 14px; gap: 6px; font-size: .88rem; }
}
.about .prose > h2:first-child, .about .prose > h3:first-child { margin-top: 0; }
.mk-title { align-items: center; }
.mk-title h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); max-width: 20ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-head .card { margin-top: 18px; }
@media (max-width: 860px) { .foot-countries ul { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-flow: row; column-gap: 16px; } }
@media (min-width: 961px) { .cty-more { grid-column: span var(--span, 1); } }
@media (max-width: 960px) { .cty-more { grid-column: 1 / -1; } }

/* ================================================================ focal points (12 Nov, owner: option B)
   Buying choices stand out: white cards with blue accents that turn solid blue under the pointer, and one blue
   call-to-action band at the end of the pages where buyers decide (home, pricing, how it works, FAQ). */
.cty-c { background: linear-gradient(180deg, #f5f8ff 0%, #fff 60%); border-color: #dbe6ff; }
.cty-top .code { background: var(--red); color: #fff; }
.cty-n { color: #1d4ed8; }
.cty-f .go { background: var(--red); color: #fff; padding: 6px 13px; border-radius: 999px; font-size: .85rem; }
.cty-c:hover, .cty-c:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.cty-c:hover .cty-n, .cty-c:hover .cty-top b, .cty-c:hover .cty-f, .cty-c:hover .cty-f b,
.cty-c:focus-visible .cty-n, .cty-c:focus-visible .cty-top b, .cty-c:focus-visible .cty-f, .cty-c:focus-visible .cty-f b { color: #fff; }
.cty-c:hover .cty-n small, .cty-c:hover .cty-m, .cty-c:focus-visible .cty-n small, .cty-c:focus-visible .cty-m { color: rgba(255, 255, 255, .82); }
.cty-c:hover .cty-top .code, .cty-c:focus-visible .cty-top .code { background: rgba(255, 255, 255, .2); }
.cty-c:hover .cty-f, .cty-c:focus-visible .cty-f { border-top-color: rgba(255, 255, 255, .3); }
.cty-c:hover .go, .cty-c:focus-visible .go { background: #fff; color: var(--red); }

/* country page: the other countries, same treatment */
.others a .code { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; letter-spacing: .06em; }
.others a:hover, .others a:focus-visible { background: var(--red); color: #fff; }
.others a:hover .f, .others a:focus-visible .f { color: rgba(255, 255, 255, .82); }
.others a:hover .code, .others a:focus-visible .code { background: rgba(255, 255, 255, .2); }

/* free sample: the country choice */
.pick-card { border-color: #dbe6ff; background: linear-gradient(180deg, #f5f8ff 0%, #fff 70%); transition: background .2s, border-color .2s, color .2s; }
.pick-card b { color: #1d4ed8; }
.pick-card:hover, .pick-card:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.pick-card:hover b, .pick-card:hover .muted, .pick-card:focus-visible b, .pick-card:focus-visible .muted { color: #fff; }

/* one blue band to act on: home closing, and the end of pricing, how it works and the FAQ */
.closing, .cta-band { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; }
.closing h2, .cta-band h2 { color: #fff; }
.closing .dim, .cta-band p { color: rgba(255, 255, 255, .86); }
.closing .btn, .cta-band .btn { background: #fff; border-color: #fff; color: #1d4ed8; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }
.closing .btn:hover, .cta-band .btn:hover { background: #eff4ff; border-color: #eff4ff; color: #1d4ed8; }
.cta-band { margin: 56px calc(50% - 50vw) 0; padding: clamp(48px, 7vw, 80px) 16px; text-align: center; }
.page:has(.cta-band) { padding-bottom: 0; }
.page-head:has(.cta-band) { padding-bottom: 0 !important; }
.cta-band .btn, .closing .btn { text-decoration: none; }
.cta-band h2 { max-width: 22ch; margin: 0 auto; }
.cta-band p { margin: 12px auto 26px; max-width: 46ch; }

/* Real-time leads landing */
.rt-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 64px); }
.rt-hero h1 { margin: 14px 0 14px; max-width: 18ch; }
.rt-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.rt-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--card); max-width: 860px; }
.rt-facts li { padding: 14px 18px; border-right: 1px solid var(--line); min-width: 0; }
.rt-facts li:last-child { border-right: 0; }
.rt-facts b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.rt-facts span { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted); }
@media (max-width: 720px) { .rt-facts { grid-template-columns: 1fr 1fr; } .rt-facts li:nth-child(2n) { border-right: 0; } .rt-facts li:nth-child(n+3) { border-top: 1px solid var(--line); } .rt-cta .btn { flex: 1 1 100%; } }
.rt-sec h2 { margin: 0 0 24px; }
.rt-sec h3 { margin: 0 0 8px; }
.rt-px { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rt-px span { display: flex; flex-direction: column; }
.rt-px small { font-size: .72rem; color: var(--muted); }
.rt-px b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .rt-two { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.rt-fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rt-fields li { padding: 7px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: .88rem; }
.rt-opts { display: grid; gap: 12px; }
.rt-opts p { margin: 0; color: var(--ink-2); }
.rt-code { margin: 12px 0 14px; padding: 14px 16px; background: #0f172a; color: #e2e8f0; border-radius: 10px; overflow-x: auto; font-size: .8rem; line-height: 1.55; max-width: 100%; }
.rt-code code { background: none; color: inherit; padding: 0; white-space: pre; }
.rt-sec p code { overflow-wrap: anywhere; }
.rt-note p { margin: 0 0 6px; }
.rt-note { margin-top: 28px; color: var(--ink-2); font-size: .9rem; max-width: 80ch; }
details.qhelp { display: inline-block; vertical-align: middle; position: relative; font-size: 1rem; letter-spacing: 0; text-transform: none; }
details.qhelp > summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: var(--card); }
details.qhelp > summary::-webkit-details-marker { display: none; }
details.qhelp > summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
details.qhelp[open] > summary { background: var(--ink); color: var(--paper); }
details.qhelp > div { position: absolute; z-index: 20; top: 30px; left: 0; width: min(360px, calc(100vw - 48px)); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); font-size: .84rem; font-weight: 400; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 600px) { details.qhelp { position: static; } details.qhelp > div { left: 0; right: 0; width: auto; top: 100%; margin-top: 8px; } .hd2 h2 { position: relative; } }
.rt-sec .steps3 h3 { margin: 14px 0 6px; }
.rt-facts li:last-child b { font-size: .95rem; }
fieldset.rt-regions { border: 0; padding: 0; min-width: 0; }
fieldset.rt-regions legend { padding: 0; margin-bottom: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
fieldset.rt-regions .hint { margin: 0 0 10px; font-size: .82rem; color: var(--muted); }
.rt-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.rt-checks label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; font-size: .9rem; min-width: 0; }
.rt-checks label:has(input:checked) { border-color: #2563eb; background: #eff4ff; }
.rt-checks input[type=checkbox], .rt-checks input[type=radio] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: #2563eb; }
.rt-checks span { overflow-wrap: anywhere; }
.rt-checks.rt-ages { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
/* Partner programme */
.pt-facts { margin: 8px 0 32px; }
.pt-link { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.pt-link .field { flex: 1 1 260px; margin: 0; }
.pt-dash { padding: 28px var(--gutter) 70px; }
.pt-dash h1 { margin: 10px 0 6px; }
.pt-dash h2 { margin: 34px 0 14px; }
.pt-dash .panel { margin-top: 22px; }
.pt-copy { display: flex; gap: 10px; margin: 10px 0; }
.pt-copy input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: #fff; }
.pt-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pt-stats { margin-top: 16px; max-width: none; }
.pt-stats span { overflow-wrap: anywhere; }
@media (max-width: 600px) { .pt-copy { flex-direction: column; } }
/* Do Not Call guide */
.dnc-c { margin-top: 30px; padding-top: 6px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.dnc-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 18px; margin: 12px 0; }
.dnc-dl dt { font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.dnc-dl dd { margin: 0; }
@media (max-width: 600px) { .dnc-dl { grid-template-columns: 1fr; gap: 2px; } .dnc-dl dd { margin-bottom: 10px; } }
.dnc-t td, .dnc-t th { vertical-align: top; }
.dnc-t td:first-child, .dnc-t th:first-child, .dnc-t th:nth-child(3) { white-space: nowrap; }   /* Chinese: no one-character-per-line names */
.dnc-t td:nth-child(3) { min-width: 4.5em; }
/* Consumer Sign-up Index */
.si-c { margin-top: 34px; padding-top: 8px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.si-c h2 { margin-bottom: 2px; }
.si-bars { width: 100%; max-width: 640px; height: auto; display: block; margin: 10px 0 6px; }
.si-base { stroke: var(--line-2); stroke-width: 1; }
.si-mark { fill: #2563eb; }
.si-hit { fill: transparent; }
.si-bar:hover .si-mark { fill: #1d4ed8; }
.si-bar:hover .si-hit { fill: rgba(37, 99, 235, .06); }
.si-ax { font-size: 10px; fill: var(--muted); }
.si-facts { margin: 10px 0 12px; max-width: 640px; }
.si-more summary { cursor: pointer; font-size: .86rem; color: var(--ink-2); margin: 6px 0; }
.si-t .qhelp > div { right: 0; left: auto; text-align: left; }
.si-val { font-size: 10px; font-weight: 600; fill: var(--ink-2); }
/* Checkout: card first (inline PayPal card form), PayPal, crypto; compact on phones (owner, 15 Nov) */
.pay-card .btn.btn-card { margin-top: 0; }
.pay-card + .btn-paypal { margin-top: 10px; }
/* Keep PayPal's internal z-index 100/200 frames below the sticky site header. */
.pay-card-slot { position: relative; isolation: isolate; min-height: 52px; }
.pay-card .field-error { margin: 8px 0 0; }
.co-mini { display: none; }
@media (max-width: 960px) {
  .co-mini { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
  .co-mini b { color: var(--ink); font-size: 1.15rem; white-space: nowrap; }
}
@media (max-width: 600px) {
  .flow-co { padding-top: 14px; padding-bottom: 40px; }
  .flow-co .progress { display: none; }
  .flow-co h1 { margin-top: 0 !important; font-size: 1.35rem; }
  .flow-co .flow-grid { margin-top: 12px; gap: 18px; }
  .flow-co form.paper { padding: 16px; }
  .flow-co .field.big input { font-size: 1rem; padding: 12px 14px; }
  .flow-co .payment-actions { margin-top: 14px; }
  .flow-co .btn.btn-paypal, .flow-co .btn.btn-crypto, .flow-co .btn.btn-card { min-height: 54px; padding: 11px 14px; }
  .flow-co .payment-divider { padding: 8px 0; }
}
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick-grid a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); font-weight: 600; text-decoration: none; }
.pick-grid a:hover { border-color: #2563eb; }
.pick-grid a::after { content: "→"; color: var(--muted); }
/* Order page, crypto: 1 coin, 2 network, 3 send (owner, 15 Nov) */
.cx { margin: 0 0 16px; counter-reset: cx; }
.cx-step { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .82rem; font-weight: 600; color: var(--ink); counter-increment: cx; }
.cx-step::before { content: counter(cx); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2563eb; color: #fff; font-size: .72rem; }
.cx-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 0 0 16px; }
.cx-nets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cx button { padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; text-align: left; font: inherit; font-size: .85rem; }
.cx-coins button { display: flex; flex-direction: column; gap: 1px; }
.cx-coins small { font-size: .68rem; color: var(--muted); }
.cx button.on { border-color: #2563eb; background: #eff4ff; box-shadow: inset 0 0 0 1px #2563eb; }
/* Trust badges (owner, 17 Nov): rules we work under + payment methods */
.lawb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0; }
.lawb-l { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lawb-row { display: flex; flex-wrap: wrap; gap: 6px; }
.lawb-row a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: #0f5132; font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lawb-row a svg { color: #15803d; }
.lawb-row a:hover { border-color: #15803d; }
.lawb-sm .lawb-row a { font-size: .72rem; padding: 3px 8px; }
.payb { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.payb-row { display: flex; flex-wrap: wrap; gap: 6px; }
.payb-row svg { display: block; }
.payb-note { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.payb-note svg { color: #15803d; flex: 0 0 auto; }
.foot-trust { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 0 0 22px; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.foot-trust .lawb, .foot-trust .payb { margin: 0; }
.hx-trust { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; margin-top: 18px; }
.hx-trust .payb { margin: 0; }
.hx-nomin { margin: 10px 0 0; font-size: .95rem; color: var(--ink); }
.hx-nomin b { color: #15803d; }
/* Testimonials: a row that moves by itself and can be swiped or scrolled */
.tm-nav { display: flex; gap: 6px; }
.tm-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; font-size: 1rem; }
.tm-btn:hover { border-color: #2563eb; color: #2563eb; }
.tm-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 32px) / 3)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: thin; }
.tm-card { scroll-snap-align: start; margin: 0; padding: 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.tm-stars { color: #f59e0b; letter-spacing: 2px; font-size: .95rem; }
.tm-card blockquote { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-2); flex: 1; }
.tm-card figcaption { display: flex; flex-direction: column; font-size: .85rem; }
.tm-card figcaption span { color: var(--muted); font-size: .78rem; }
@media (max-width: 900px) { .tm-track { grid-auto-columns: minmax(260px, 82%); } }
/* Latest guides and popular audiences */
.lg-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lg-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.lg-card:hover { border-color: #2563eb; transform: translateY(-2px); }
.lg-card b { font-size: 1rem; line-height: 1.35; }
.lg-meta { font-size: .74rem; color: var(--muted); }
.lg-d { font-size: .85rem; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .lg-track { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(250px, 80%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; } .lg-card { scroll-snap-align: start; } }
.pop { margin-top: 26px; }
.pop-l { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pop-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pop-row a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .82rem; color: var(--ink); text-decoration: none; background: var(--card); }
.pop-row a:hover { border-color: #2563eb; color: #2563eb; }
@media (prefers-reduced-motion: reduce) { .tm-track { scroll-behavior: auto; } .lg-card:hover { transform: none; } }
@media (max-width: 600px) { .pop-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; } .pop-row a { flex: 0 0 auto; } }

/* Right-to-left (Arabic, Hebrew). Text arrows are swapped by the translator; these are the CSS ones. */
[dir=rtl] .btn:hover .ar, [dir=rtl] .departures a.row:hover .go { transform: translateX(-4px); }
[dir=rtl] .start-steps li + li::before { content: "←"; margin-right: 0; margin-left: 4px; }
[dir=rtl] .pick-grid a::after { content: "←"; }
[dir=rtl] .fx-prog i { inset: 0 0 0 auto; }

/* Footer (owner, 18 Nov): link columns first; payment logos and the rules we follow in one quiet row;
   logo, year and support email in the bottom bar. Rules are plain text links, not seals: they are rules we
   follow, not certifications. */
.foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-trust { margin: 36px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); border-bottom: 0; gap: 12px 24px; }
.payb-row { align-items: center; }
.payb-row img { display: block; width: 40px; height: 25px; border-radius: 4px; }
.lawb-row { gap: 4px 14px; }
.lawb-row a, .lawb-sm .lawb-row a { padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: .76rem; font-weight: 500; }
.lawb-row a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { margin-top: 20px; align-items: center; }
.foot-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.foot-id .brand { font-size: .9rem; gap: 8px; }

/* Data enrichment page */
.enr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 8px; }
.enr-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.enr-card p { margin: 0; font-size: .95rem; }
.enr-steps { padding-left: 1.2em; }
.enr-steps li { margin-bottom: 8px; }
.enr-services { border: 0; padding: 0; }
.enr-services legend { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.enr-services .check { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: .95rem; }
.enr-services .check input { width: auto; }
.field select { width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; font-size: 1rem; }
@media (max-width: 720px) { .enr-grid { grid-template-columns: 1fr; } }
.prose .enr-cta .btn, .prose .paper .btn { text-decoration: none; }
.pay-retry-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay-retry-row form { margin: 0; }
.pay-retry-row .btn { min-height: 0; padding: 8px 14px; font-size: .9rem; }
.enr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
