/* Airbag. A crash-test bay in daylight: concrete ground, black ink, one test-marker yellow.
   Yellow means one thing: the marker. The primary action, the active frame, the bag going off. */

@font-face { font-family: "Hubot Sans"; src: url(../fonts/hubot-sans-latin.woff2) format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url(../fonts/familjen-grotesk-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --ground: #E7E5DF;
  --ground-2: #DEDBD3;
  --panel: #F4F3EF;
  --panel-2: #ECEAE4;
  --field: #FBFAF7;
  --ink: #141413;
  --ink-2: #3A3936;
  --muted: #6E6C66;
  --line: rgba(20, 20, 19, .12);
  --line-2: rgba(20, 20, 19, .24);
  --yellow: #F5C400;
  --yellow-wash: rgba(245, 196, 0, .18);
  --err: #A8321F;
  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 7px, var(--ink) 7px 14px);
  --display: "Hubot Sans", "Arial Narrow", sans-serif;
  --text: "Familjen Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
main:focus, main:focus-visible { outline: none; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 24px; }
.link { color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--yellow); }

.display { font-family: var(--display); font-stretch: 75%; font-weight: 850; font-size: clamp(46px, 6vw, 94px); line-height: .9; letter-spacing: -.012em; text-wrap: balance; }
.display-l { font-family: var(--display); font-stretch: 75%; font-weight: 850; font-size: clamp(40px, 4.8vw, 68px); line-height: .92; letter-spacing: -.01em; text-wrap: balance; }
.display-m { font-family: var(--display); font-stretch: 78%; font-weight: 820; font-size: clamp(32px, 3.4vw, 50px); line-height: .95; letter-spacing: -.01em; text-wrap: balance; }
.nobr-l { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--yellow); color: var(--ink); font-weight: 650; font-size: 14px; line-height: 1; padding: 11px 16px; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 0 2px 0 var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: 0 2px 0 var(--ink); }
.btn-l { font-size: 15.5px; padding: 14px 20px; border-radius: 12px; }
.wide { width: 100%; }

/* ---------- contract-address bar (launch day) ---------- */
.cabar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; background: var(--ink); color: var(--ground); font-size: 13px; padding: 7px 16px; }
.cabar span { font-weight: 650; color: var(--yellow); }
.cabar code { font-family: var(--code); overflow-wrap: anywhere; }
.cabar .link { color: var(--ground); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(231, 229, 223, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.top-in { max-width: 1320px; margin-inline: auto; padding-inline: 24px; height: 64px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-mark { width: 32px; height: 32px; }
.brand-word { height: 25px; width: auto; aspect-ratio: 250 / 92; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav a[aria-current] { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.feechip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.feechip b { font-weight: 700; color: var(--ink); }
.feechip .ar svg, .route i svg { width: 16px; height: 9px; color: var(--muted); }
.walletchip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.walletchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.walletchip b { font-weight: 600; color: var(--ink); }
.mnav { display: none; gap: 4px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.mnav::-webkit-scrollbar { display: none; }
.mnav a { padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; text-decoration: none; white-space: nowrap; }
.mnav a[aria-current] { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 44px; align-items: center; padding-block: 44px 30px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; color: var(--ink-2); }
.tape { width: 36px; height: 11px; border-radius: 2px; background: var(--hazard); flex: none; }
.lede { margin: 24px 0 0; font-size: 18.5px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.lede b { color: var(--ink); font-weight: 650; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.readout { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 32px 0 0; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.readout dt { font-size: 13px; color: var(--muted); }
.readout dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.readout b { font-family: var(--display); font-stretch: 80%; font-weight: 760; font-size: 34px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* the test bay */
.bay { position: relative; margin: 0; aspect-ratio: 640 / 460; border: 1.5px solid var(--ink); border-radius: 20px; overflow: hidden; background: #EFEDE7; }
.bay-art, .bay-svg { width: 100%; height: 100%; }
/* trades fill the bag a step at a time, sitting on its module; a rug blows it fully open */
.bay .bag { transform-box: view-box; transform-origin: 320px 362px; transform: scale(var(--sx, .38), var(--sy, .3)); transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.bay[data-level="1"] { --sx: .5; --sy: .44; }
.bay[data-level="2"] { --sx: .63; --sy: .6; }
.bay[data-level="3"] { --sx: .74; --sy: .73; }
.bay.is-open .bag { transform: none; transition: transform .5s cubic-bezier(.16, 1.5, .38, 1); }
.bay.bump .bag { animation: bump .42s ease-out; }
@keyframes bump { 40% { transform: scale(.975, 1.02); } }
.bay .puffs circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
.bay.pop .puffs circle { animation: puff .9s ease-out both; }
.bay.pop .puffs circle:nth-child(2n) { animation-delay: .06s; }
@keyframes puff { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: .85; } 100% { opacity: 0; transform: scale(1.7); } }
.ro { position: absolute; display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--ink-2); background: rgba(244, 243, 239, .94); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; white-space: nowrap; }
.ro b { color: var(--ink); font-weight: 650; }
.ro-tl { top: 14px; left: 14px; }
.ro-tr { top: 14px; right: 14px; color: var(--muted); }
.ro-bl { bottom: 14px; left: 14px; }
.ro-bl b { font-family: var(--display); font-stretch: 85%; font-weight: 760; font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.ro-br { bottom: 14px; right: 14px; transition: background .2s; }
.ro-br.hot { background: var(--yellow); border-color: var(--ink); color: var(--ink); font-weight: 650; }

/* ---------- placards ---------- */
.placards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.plac { position: relative; display: grid; gap: 6px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; text-decoration: none; transition: border-color .15s; }
.plac::before, .plac::after { content: ""; position: absolute; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.plac::before { left: 9px; }
.plac::after { right: 9px; }
a.plac:hover { border-color: var(--ink); }
.pl-l { font-size: 13px; color: var(--muted); }
.pl-n { font-family: var(--display); font-stretch: 78%; font-weight: 820; font-size: 44px; line-height: .95; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pl-s { font-size: 13.5px; color: var(--ink-2); }
.pl-s u { text-decoration-thickness: 1px; text-underline-offset: 2px; color: var(--ink); white-space: nowrap; }

/* ---------- frame by frame ---------- */
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin: 64px auto 18px; }
.sec-h p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.film { background: var(--ink); border-radius: 18px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #55534d var(--ink); }
.film-in { position: relative; min-width: 1040px; padding: 26px 16px; }
.film-in::before, .film-in::after { content: ""; position: absolute; left: 16px; right: 16px; height: 7px; background: repeating-linear-gradient(90deg, rgba(231, 229, 223, .78) 0 12px, transparent 12px 26px); }
.film-in::before { top: 9px; }
.film-in::after { bottom: 9px; }
.rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.rail span { font-size: 12.5px; color: rgba(244, 243, 239, .72); border-top: 1.5px solid rgba(244, 243, 239, .35); padding-top: 6px; }
.rail span:last-child { border-top-color: var(--yellow); color: var(--yellow); }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.fr { width: 100%; height: 100%; text-align: left; display: grid; gap: 6px; align-content: start; background: var(--panel); border: 0; border-radius: 11px; padding: 12px; cursor: pointer; transition: background .2s, transform .2s; }
.fr:hover { background: #FFFFFF; }
.fr[aria-pressed="true"] { background: var(--yellow); transform: translateY(-3px); }
.fr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.fr-top b { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 17px; }
.fr-top span { font-size: 12px; color: var(--muted); }
.fr[aria-pressed="true"] .fr-top span, .fr[aria-pressed="true"] .fr-v { color: var(--ink); }
.fr-ic svg { width: 32px; height: 32px; color: var(--ink); margin-block: 4px; }
.fr-t { font-weight: 650; font-size: 15px; line-height: 1.2; }
.fr-v { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.fr-bar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 4px; }
.fr-bar i { display: block; height: 100%; background: var(--ink); }
.fr-bar-x { background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 7px); }
.caption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.cap-n { font-family: var(--display); font-stretch: 75%; font-weight: 850; font-size: 40px; line-height: 1; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 10px; padding: 6px 10px 4px; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.cap-b h3 { font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.cap-b p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.cap-g { display: flex; gap: 6px; }
.cap-g i { font-style: normal; font-size: 12.5px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.cap-g i.on { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* ---------- cards ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; margin-bottom: 72px; align-items: start; }
.stack { display: grid; gap: 14px; align-content: start; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h h3 { font-size: 15.5px; font-weight: 650; }
.card-h span { font-size: 12.5px; color: var(--muted); text-align: right; }
.card-f { display: block; margin: auto 0 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
a.card-f { color: var(--ink); }
.chart { padding: 12px 12px 6px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: var(--line); }
.chart .ax { fill: var(--muted); font: 11px var(--text); }
.chart .ar { fill: var(--yellow); opacity: .32; }
.chart .ln { stroke: var(--ink); stroke-width: 2.2; fill: none; }
.chart .mk { stroke: var(--ink); stroke-opacity: .45; stroke-dasharray: 2 3; }
.chart .dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; transition: cx .4s, cy .4s; }
.rules { list-style: none; margin: 0; padding: 4px 16px 6px; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.rules li:last-child { border-bottom: 0; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, color .2s, box-shadow .2s; }
.rules li b { color: var(--ink); font-weight: 650; }
.rules li.on { color: var(--ink); }
.rules li.on::before { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.vs > div { background: var(--panel); padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.vs span { font-size: 12.5px; color: var(--muted); }
.vs b { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 30px; line-height: 1; }
.vs em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.bar { display: block; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 6px); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 4px; }
.srcs { list-style: none; margin: 0; padding: 0; }
.srcs a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.srcs li:last-child a { border-bottom: 0; }
.srcs a:hover { background: var(--panel-2); }
.srcs span { font-size: 14px; color: var(--ink-2); }
.srcs b { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 22px; line-height: 1.1; }
.srcs em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- sheet pages ---------- */
.sheet { padding-block: 44px 84px; }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.sheet-h > p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.sheet-h > p b { color: var(--ink); font-weight: 650; }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 650; color: var(--muted); }
.tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 11px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.search { flex: 1 1 220px; max-width: 320px; margin-left: auto; background: var(--field); border: 1.5px solid var(--line-2); border-radius: 11px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.search:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-wash); }
.scroll { overflow-x: auto; }
.board { width: 100%; min-width: 780px; border-collapse: collapse; }
.board th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.board tr:last-child td { border-bottom: 0; }
.board .r { text-align: right; }
.board .n { width: 44px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin b { display: block; font-weight: 650; font-size: 15px; }
.coin em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.cm { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; color: var(--ink); display: grid; place-items: center; }
.cm svg, .cm img { width: 100%; height: 100%; object-fit: cover; }
.cm-x { background: var(--panel-2); }
.cm-x svg { width: 30px; height: 30px; }
.st { display: inline-block; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.st-y { background: var(--yellow); border-color: var(--ink); color: var(--ink); font-weight: 650; }
.st-o { border: 1.5px dashed var(--ink); color: var(--ink); }
.empty { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- forms ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.form { padding: 20px; display: grid; gap: 16px; }
.frow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.frow3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f > span:first-child { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f > span i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.f input:not([type=file]), .f textarea { width: 100%; background: var(--field); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink); outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.f input:focus, .f textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-wash); }
.f input::placeholder, .f textarea::placeholder { color: #9A978F; }
.f.bad input, .f.bad .drop-in, .f.bad .unit { border-color: var(--err); }
.ferr { font-style: normal; font-size: 13px; color: var(--err); }
.ferr:empty { display: none; }
.drop { position: relative; display: block; }
.drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.drop-in { display: grid; gap: 2px; text-align: center; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--field); }
.drop-in b { font-weight: 650; }
.drop-in small { font-size: 12.5px; color: var(--muted); }
.drop:focus-within .drop-in, .drop:hover .drop-in { border-color: var(--ink); }
.unit { display: flex; align-items: center; background: var(--field); border: 1.5px solid var(--line-2); border-radius: 10px; padding-right: 12px; }
.unit:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-wash); }
.f .unit input { border: 0; box-shadow: none; background: transparent; }
.unit b { font-size: 13px; color: var(--muted); font-weight: 500; }
.fitted { position: relative; border: 1.5px solid var(--ink); border-radius: 12px; padding: 18px 14px 14px; display: grid; gap: 12px; overflow: hidden; }
.fitted::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--hazard); }
.fitted-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.fitted-h b { color: var(--ink); font-weight: 650; }
.fitted p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.route { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr); gap: 6px; align-items: center; }
.route span { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 6px; text-align: center; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route span.y { background: var(--yellow); border-color: var(--ink); font-weight: 650; }
.route i { display: grid; place-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { position: relative; padding-left: 28px; font-size: 14px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.steps li.now { color: var(--ink); }
.steps li.now::before { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); animation: wait 1s ease-in-out infinite; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23F5C400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: none; }
@keyframes wait { 50% { transform: scale(.75); } }
.fmsg { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.fmsg.err { color: var(--err); }
.fmsg.ok { color: var(--ink); }
.pv-in { padding: 18px; display: grid; gap: 14px; }
.pv-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pv-img { width: 60px; height: 60px; border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; display: grid; place-items: center; background: var(--panel-2); flex: none; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-id { min-width: 0; }
.pv-id b { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 26px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-id span { font-size: 14px; color: var(--muted); }
.pv-d { margin: 0; font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.badge { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; background: var(--yellow-wash); }
.badge-m svg { width: 34px; height: 34px; }
.badge b { display: block; font-size: 14.5px; font-weight: 650; }
.badge span { font-size: 13px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--field); font-size: 14.5px; cursor: pointer; }
.chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.kindnote { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.receipt { border: 1.5px dashed var(--ink); border-radius: 12px; padding: 14px 16px; background: var(--field); }
.rc-h { display: flex; justify-content: space-between; gap: 12px; }
.rc-h b { font-weight: 700; }
.rc-h span { font-size: 13px; color: var(--muted); }
.receipt dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 10px 0; }
.receipt dt { font-size: 13px; color: var(--muted); }
.receipt dd { margin: 0; font-size: 14px; }
.receipt code { font-family: var(--code); font-size: 13px; }
.receipt p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.tsteps { list-style: none; margin: 0; padding: 4px 16px 8px; }
.tsteps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tsteps li:last-child { border-bottom: 0; }
.tsteps li > span { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 19px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 9px; }
.tsteps b { font-weight: 650; font-size: 15px; }
.tsteps p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- how it works ---------- */
.how3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 20px 20px 22px; gap: 8px; }
.step-n { font-size: 13px; color: var(--muted); }
.step-big { font-family: var(--display); font-stretch: 75%; font-weight: 850; font-size: 60px; line-height: .95; }
.step h3 { font-size: 17px; font-weight: 650; margin-top: 6px; }
.step p { margin: 0; color: var(--ink-2); }
.step.y { background: var(--yellow); border: 1.5px solid var(--ink); }
.step.y .step-n, .step.y p { color: var(--ink); }
.wide-card { margin-top: 14px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.cols3 > div { background: var(--panel); padding: 16px 18px 18px; display: grid; gap: 5px; align-content: start; }
.cols3 .k { font-size: 13px; color: var(--muted); }
.cols3 b { font-size: 16.5px; font-weight: 650; }
.cols3 p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--ground-2); border-top: 1.5px solid var(--ink); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 32px 28px; }
.foot-brand svg { width: 42px; height: 42px; }
.foot-brand p { margin: 12px 0 0; color: var(--ink-2); max-width: 32ch; font-size: 14.5px; }
.ca { display: grid; gap: 6px; align-content: start; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.ca-l { font-size: 13px; color: var(--muted); }
.ca code { font-family: var(--code); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ca.live code { font-size: 13.5px; }
.ca-act { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.ca-act:not(:has(:not([hidden]))) { display: none; }
.ca-cut { font-size: 12.5px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; font-size: 14.5px; }
.foot-nav a { color: var(--ink-2); text-underline-offset: 3px; }
.foot-nav .link { color: var(--muted); font-size: 14px; }
.fine { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11px; color: var(--muted); }

/* ---------- 404 ---------- */
.lost { padding-block: 12vh 16vh; }
.lost .lede { max-width: 40ch; }

/* Figures are set in Familjen bold: Hubot's barred zero reads like a θ, and money can't be misread. */
.pl-n, .readout b, .ro-bl b, .vs b, .srcs b, .cap-n, .fr-top b, .step-big, .tsteps li > span {
  font-family: var(--text); font-stretch: normal; font-weight: 700; letter-spacing: -.03em;
}
.pl-n { font-size: 42px; }
.cap-n { font-size: 34px; padding: 8px 10px 6px; }
.step-big { font-size: 54px; }

/* ---------- widths ---------- */
@media (max-width: 1240px) {
  .feechip { display: none; }
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 30px; }
  .placards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .mnav { display: flex; }
  .top-in { height: 58px; padding-inline: 16px; gap: 14px; }
  .walletchip { display: none !important; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .trio, .stack, .split, .how3, .cols3, .frow, .frow3, .foot-in { grid-template-columns: minmax(0, 1fr); }
  .stack { grid-column: auto; }
  .caption { grid-template-columns: auto minmax(0, 1fr); }
  .cap-g { display: none; }
  .sec-h { margin-top: 48px; }
  .search { max-width: none; margin-left: 0; }
  .sheet { padding-top: 30px; }
}
@media (max-width: 520px) {
  .lede { font-size: 17px; }
  .readout b { font-size: 28px; }
  .pl-n { font-size: 34px; }
  .plac { padding: 16px 14px 14px; }
  .pl-s { font-size: 13px; }
  .ro { font-size: 11.5px; padding: 4px 7px; gap: 6px; border-radius: 7px; }
  .ro-tl { top: 9px; left: 9px; }
  .ro-bl { bottom: 9px; left: 9px; }
  .ro-br { bottom: 9px; right: 9px; }
  .ro-bl b { font-size: 16px; }
  .ro-tr { display: none; }
  .bay { border-radius: 16px; }
  .cap-n { font-size: 32px; min-width: 52px; }
  .cap-b h3 { font-size: 19px; }
  .route { grid-template-columns: minmax(0, 1fr); }
  .route i { display: none; }
  .vs b { font-size: 24px; }
  .top-r .btn { padding: 9px 12px; font-size: 13.5px; }
  .brand-word { height: 22px; }
  .brand-mark { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  .placards { grid-template-columns: minmax(0, 1fr); }
  .top-r .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
