/* The receipt world (DESIGN.md): paper with a torn foot, the clip it hangs from, the till rail, line items with dot
   leaders, the barcode, the tape, the aisle directory and the Z report. Layouts for each page live here too. */

/* ---------- the paper ---------- */
.paper { position: relative; background: var(--paper); padding: 18px 18px 30px; --zig: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%; }
.paper-wrap, .ticket { filter: var(--paper-drop); }
.rule { border: 0; border-top: 1.5px dashed var(--line-3); margin: 12px 0; height: 0; }
.rule.solid { border-top-style: solid; border-top-color: var(--ink); }
.label.ink { color: var(--ink); }
.tok-icon { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.tok-icon.drawn { display: inline-grid; place-items: center; font: 600 9px/1 var(--font-mono); color: var(--ink-2); border: 1px solid var(--line-3); background: var(--surface); }
.barcode { display: inline-flex; color: var(--ink); }
.barcode svg { height: auto; }
.spark { display: inline-flex; color: var(--ink); }
.spark.empty { width: 96px; height: 28px; border-bottom: 1.5px dashed var(--line-2); }

/* ---------- line items ---------- */
.lines { display: grid; gap: 7px; font: 13px/1.3 var(--font-mono); }
.line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.line-n { color: var(--muted); font-size: 11px; width: 16px; flex: none; }
.line-sym { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12ch; }
.leader { flex: 1; min-width: 10px; border-bottom: 2px dotted var(--line-3); transform: translateY(-3px); }
.line-w { flex: none; }
.line-more { color: var(--muted); padding-left: 24px; }

/* ---------- the ticket: a fund at a glance, clipped to the rail ---------- */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 22px; padding-top: 12px; }
.ticket { position: relative; display: block; color: var(--ink); transform-origin: 50% 0; transition: transform var(--t) var(--ease); }
a.ticket:hover { transform: translateY(2px) rotate(-0.7deg); }
a.ticket:hover .t-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.clip { position: absolute; z-index: 2; left: 50%; top: -9px; width: 54px; height: 16px; margin-left: -27px; border-radius: 3px 3px 7px 7px; background: linear-gradient(var(--rail-2), var(--rail)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.clip::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.ticket .paper { padding-top: 22px; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.t-code { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; padding: 1px 6px; border: 1.5px solid var(--ink); border-radius: 3px; }
.t-title { font: 800 27px/0.98 var(--font-display); letter-spacing: -0.005em; margin: 12px 0 14px; text-wrap: balance; min-height: 2em; }
.ticket .lines { padding: 12px 0; border-block: 1.5px dashed var(--line-3); }
.t-foot { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: end; padding-top: 12px; }
.t-foot > div { display: grid; gap: 1px; }
.t-foot .spark { justify-self: end; }
.t-unit { font-size: 17px; font-weight: 600; }
.t-unit, .t-foot .up, .t-foot .down { line-height: 24px; }
.t-foot .up, .t-foot .down { font-size: 13.5px; }
.t-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.t-bar .barcode { color: var(--ink-2); }
.ticket.skeleton .paper { display: grid; gap: 10px; min-height: 300px; align-content: start; }

/* ---------- the till rail: receipts hang from it ---------- */
.rail { position: relative; height: 30px; background: linear-gradient(var(--rail-2), var(--rail)); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.4); }
.rail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 3px; background: #0b0a08; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.rail-label { position: absolute; top: 5px; left: var(--gut); font: 11px/16px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #a69d8c; }

/* ---------- printing: the one motion moment ---------- */
.printing > *, .printing .print-line { animation: feed var(--t) var(--ease) both; animation-delay: calc(var(--i, 0) * var(--step, 70ms)); }
@keyframes feed { from { opacity: 0; transform: translateY(-5px); clip-path: inset(0 0 100% 0); } }
.feed-out { animation: feed-out 1.3s var(--ease) both; }
@keyframes feed-out { from { transform: translateY(-104%); } }

/* ---------- home ---------- */
.home-hero { padding-top: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 20px 56px; align-items: end; }
.home-hero h1 { font-size: clamp(64px, 11vw, 168px); line-height: 0.84; letter-spacing: -0.015em; text-transform: uppercase; }
.home-hero h1 span { display: block; }
.home-copy { display: grid; gap: 22px; padding-bottom: 8px; }
.home-copy .row .btn { flex: 1 1 auto; }
.counter { margin-top: clamp(44px, 6vw, 72px); }
.counter-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(16px, 2.4vw, 36px); align-items: start; margin-top: -4px; }
.counter-row > * { min-width: 0; }
.counter-row .ticket { margin-top: 0; }
.counter-row .side-ticket { padding-top: 18px; }
.hero-receipt { position: relative; }
.hero-receipt .slot { overflow: hidden; padding: 0 6px 18px; margin: 0 -6px; }
.hero-receipt .paper { padding: 22px 20px 34px; }
.order-strip { display: grid; gap: 12px; margin-top: 14px; }
.counter-note { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.directory { background: var(--rail); color: #ece4d3; border-radius: var(--r); padding: clamp(20px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; box-shadow: var(--shadow); }
.directory a { display: grid; grid-template-columns: 40px minmax(0, auto) 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed rgba(236, 228, 211, 0.22); }
.directory a:hover .dir-name { text-decoration: underline; text-underline-offset: 4px; }
.dir-n { font: 800 30px/1 var(--font-display); color: #ece4d3; }
.dir-name { font: 800 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.dir-dots { border-bottom: 2px dotted rgba(236, 228, 211, 0.3); transform: translateY(-5px); }
.dir-count { font: 13px var(--font-mono); color: #b9b0a0; }
.dir-blurb { grid-column: 2 / -1; font-size: 13.5px; color: #b9b0a0; margin-top: -4px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { display: grid; gap: 10px; align-content: start; }
.step .paper { min-height: 100%; display: grid; gap: 10px; align-content: start; }
.step-n { font: 800 64px/0.8 var(--font-display); }
.step h3 { font: 800 26px/1 var(--font-display); }
.step p { color: var(--ink-2); font-size: 15px; }
.step-art { margin-top: 8px; padding-top: 12px; border-top: 1.5px dashed var(--line-3); font: 12.5px/1.5 var(--font-mono); display: grid; gap: 5px; }
.step-art .amount-mock { display: flex; justify-content: space-between; border: 1.5px solid var(--ink); border-radius: 4px; padding: 6px 10px; font-size: 16px; }
.step-art .total { color: var(--accent); font-weight: 600; }

.tape-list { max-width: 900px; }
.tape-list .paper { padding: 22px clamp(16px, 3vw, 30px) 34px; }
.tape-row { display: grid; grid-template-columns: 62px minmax(0, auto) 1fr auto 96px 110px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font: 14px var(--font-mono); }
.tape-row:hover .tape-title { text-decoration: underline; text-underline-offset: 3px; }
.tape-title { font-family: var(--font-text); font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape-row .leader { transform: translateY(-4px); }
.tape-row .spark { justify-self: end; }
.tape-row .up, .tape-row .down { text-align: right; }

.rail-row { position: relative; }
.rail-row .tickets { margin-top: -4px; }
.paper-panel { background: var(--paper); border-radius: var(--r-sm); border: 1px solid var(--line-2); padding: 6px clamp(14px, 2.4vw, 24px); box-shadow: var(--shadow); }
.closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px 56px; align-items: end; }
.closing h2 { font-size: clamp(56px, 8vw, 120px); line-height: 0.86; text-transform: uppercase; }
.closing h2 span { display: block; }
.closing-side { display: grid; gap: 18px; }

/* ---------- funds ---------- */
.funds-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.aisle-tabs { margin-bottom: 18px; }
.funds-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -6px 0 22px; }
.aisle-break { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; margin: 18px 0 -12px; }
.aisle-break h2 { font-size: 36px; text-transform: uppercase; }

/* ---------- a fund ---------- */
.fund-top { padding-top: clamp(24px, 4vw, 44px); display: grid; gap: 14px; justify-items: start; }
.crumbs { font: 12.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.fund-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fund-title h1 { font-size: clamp(48px, 7vw, 96px); text-transform: uppercase; line-height: 0.86; }
.fund-title .t-code { font-size: 15px; padding: 3px 10px; }
.fund-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 26px; }
.fund-main { display: grid; gap: 34px; min-width: 0; }
.receipt-full .paper { padding: clamp(18px, 3vw, 32px) clamp(16px, 3vw, 32px) 40px; --zig: 12px; }
.rcpt-head { display: grid; justify-items: center; text-align: center; gap: 4px; font-family: var(--font-mono); }
.rcpt-head .lockup > svg { height: 30px; }
.rcpt-head .lockup .brand-word svg { height: 18px; }
.rcpt-head .rcpt-sub { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.rcpt-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 12.5px var(--font-mono); color: var(--ink-2); }
.unit-big { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.unit-big .num { font: 600 clamp(40px, 5vw, 60px)/1 var(--font-mono); letter-spacing: -0.04em; }
.unit-big .up, .unit-big .down { font-size: 17px; }
.tape { display: grid; gap: 6px; margin-top: 12px; }
.tape-svg { border-block: 1.5px solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px); }
.tape-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.tape-rule { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.tape-start { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.tape-dot { fill: var(--ink); }
.tape-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.tape.empty { padding: 40px 0; text-align: center; border-block: 1.5px dashed var(--line-3); font: 13px var(--font-mono); }
.r-cols, .r-line { display: grid; grid-template-columns: 26px minmax(0, 1fr) 70px 104px 86px; gap: 12px; align-items: center; }
.r-cols { font: 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.r-cols span:nth-child(n + 3), .r-line > :nth-child(n + 3) { text-align: right; }
.r-line { padding: 10px 0; border-top: 1px dashed var(--line-2); font: 14px var(--font-mono); }
.r-tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.r-tok b { font-weight: 600; }
.r-tok .r-name { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-text); }
.r-tok > span { display: grid; min-width: 0; }
.r-sub { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding-top: 12px; border-top: 1.5px solid var(--ink); font: 14px var(--font-mono); }
.r-sub dd { text-align: right; }
.r-foot { display: grid; justify-items: center; gap: 8px; margin-top: 22px; font: 12px var(--font-mono); color: var(--ink-2); text-align: center; }

.order-pad { position: sticky; top: calc(var(--top-h) + 18px); display: grid; gap: 14px; }
.pad { background: var(--paper); border-radius: var(--r-sm); border: 1.5px solid var(--ink); padding: 18px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.pad-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pad-head h2 { font-size: 30px; text-transform: uppercase; }
.amount { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--paper); padding-right: 14px; }
.amount input { width: 100%; min-width: 0; height: 58px; border: 0; background: none; padding: 0 14px; font: 600 28px var(--font-mono); letter-spacing: -0.02em; }
.amount input:focus { outline: none; }
.amount:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.amount span { font: 600 15px var(--font-mono); color: var(--ink-2); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick button { height: 34px; border-radius: 4px; border: 1px solid var(--line-3); background: var(--surface); font: 500 13px var(--font-mono); cursor: pointer; }
.quick button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.get { display: grid; gap: 6px; font: 13px var(--font-mono); max-height: 236px; overflow: auto; padding-right: 2px; }
.get .line { gap: 8px; }
.get .line-w { color: var(--ink-2); }
.costs { display: grid; grid-template-columns: 1fr auto; gap: 7px 0; font: 13px var(--font-mono); }
.costs dd { padding-left: 14px; }
.costs dt { color: var(--ink-2); }
.costs dd { text-align: right; white-space: nowrap; }
.costs .total { color: var(--accent); font-weight: 600; font-size: 15.5px; padding-top: 9px; border-top: 1.5px solid var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.costs .total + dd { padding-top: 9px; border-top: 1.5px solid var(--ink); }
.todo { font-size: 13.5px; color: var(--ink-2); min-height: 1.4em; }
.notes { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.notes li { display: flex; gap: 8px; align-items: flex-start; }
.notes .icon { color: var(--ink); margin-top: 2px; }
.coin-box { display: grid; gap: 10px; }
.coin-pic { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.facts dt { color: var(--muted); font: 12px/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.facts a { text-decoration: underline; text-underline-offset: 3px; }

/* the order flow, in the one modal */
.flow-steps { display: grid; gap: 10px; margin: 4px 0 6px; }
.flow-steps li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 15px; }
.flow-steps li.now, .flow-steps li.done { color: var(--ink); }
.flow-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; border: 1.5px solid var(--line-3); font: 12px var(--font-mono); flex: none; }
.flow-steps li.now .flow-mark { border-color: var(--ink); background: var(--warn); }
.flow-steps li.done .flow-mark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.big-line { font-size: 18px; }
.big-line b { color: var(--accent); }
.order-receipt { filter: var(--paper-drop); }
.order-receipt .paper { background: var(--surface); padding: 16px 16px 28px; }
.paid-stamp { position: absolute; right: 14px; top: 12px; transform: rotate(-8deg); font: 800 30px/1 var(--font-display); letter-spacing: 0.06em; color: var(--good); border: 3px solid currentColor; border-radius: 6px; padding: 3px 10px 1px; opacity: 0.85; }
.void-stamp { color: var(--ink); }

/* ---------- launch: write your own fund ---------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.launch-steps { display: grid; gap: 18px; min-width: 0; }
.wstep { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: clamp(16px, 2.4vw, 26px); box-shadow: var(--shadow); }
.wstep-title { display: flex; align-items: center; gap: 12px; font: 800 30px/1 var(--font-display); text-transform: uppercase; }
.wstep-title .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; border: 1.5px solid var(--ink); font: 600 14px var(--font-mono); }
.wstep-title .n.ok { background: var(--ink); color: var(--paper); }
.wstep > p { margin-top: 10px; color: var(--ink-2); }
.picker { display: grid; gap: 12px; margin-top: 16px; }
.picker-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.picker-tabs button { height: 30px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line-3); background: var(--surface); font: 12px var(--font-mono); cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em; }
.picker-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; padding: 2px; }
.pick { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; min-width: 0; }
.pick:hover { border-color: var(--ink); }
.pick[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick span { display: grid; min-width: 0; }
.pick b { font: 600 13px var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick small { font-size: 11.5px; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chosen { display: grid; gap: 6px; margin-top: 14px; }
.chosen-row { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr) 62px auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px dashed var(--line-3); border-radius: 4px; font: 13.5px var(--font-mono); background: var(--paper); }
.chosen-row .ctl { display: flex; gap: 2px; }
.chosen-row .ctl button { width: 30px; height: 30px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font: 13px var(--font-mono); }
.chosen-row .ctl button:hover { border-color: var(--ink); }
.launch-side { position: sticky; top: calc(var(--top-h) + 18px); display: grid; gap: 16px; }
.draft .paper { outline: 1.5px dashed var(--line-3); outline-offset: -8px; }
.draft-stamp { position: absolute; right: 18px; bottom: 74px; transform: rotate(-6deg); font: 800 22px/1 var(--font-display); letter-spacing: 0.12em; color: var(--ink-2); border: 2px solid currentColor; border-radius: 4px; padding: 3px 8px 1px; }

/* ---------- ranks: the Z report ---------- */
.zreport { max-width: 820px; margin-inline: auto; }
.zreport .paper { padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 36px) 44px; --zig: 12px; }
.z-head { display: grid; justify-items: center; text-align: center; gap: 6px; font-family: var(--font-mono); }
.z-head h1 { font-size: clamp(54px, 8vw, 96px); text-transform: uppercase; line-height: 0.85; }
.z-tabs { display: flex; justify-content: center; margin: 18px 0 8px; }
.z-row { display: grid; grid-template-columns: 34px minmax(0, auto) 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font: 14px var(--font-mono); }
.z-row .leader { transform: translateY(-4px); }
.z-row .z-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-row .z-sub { color: var(--muted); font-size: 12.5px; }
.z-row .z-val { font-weight: 600; text-align: right; white-space: nowrap; }
.z-row.top .z-n { background: var(--ink); color: var(--paper); border-radius: 3px; text-align: center; }
.z-total { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding-top: 14px; border-top: 1.5px solid var(--ink); margin-top: 6px; font: 14px var(--font-mono); }

/* ---------- your receipts ---------- */
.my-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 24px; padding-top: 12px; }
.my-receipt .paper { display: grid; gap: 12px; padding-top: 22px; }
.my-receipt .r-sub { font-size: 13.5px; }
.sell-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- how ---------- */
.how-steps { display: grid; gap: 22px; }
.how-step { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 0.9fr); gap: 26px; align-items: start; padding: 26px 0; border-top: 1.5px solid var(--ink); }
.how-step .step-n { font-size: 84px; }
.how-step h3 { font: 800 34px/1 var(--font-display); text-transform: uppercase; }
.how-step p { margin-top: 10px; color: var(--ink-2); max-width: 34em; }
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose p { color: var(--ink-2); }
.faq { display: grid; gap: 0; margin-top: 18px; max-width: 820px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px dashed var(--line-3); padding: 16px 2px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 600 18px var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 10px; color: var(--ink-2); max-width: 44em; }
.risk-list { display: grid; gap: 8px; max-width: 760px; }
.risk-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); }
.risk-list li::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; background: var(--warn); color: var(--ink); font: 700 13px var(--font-mono); }

/* ---------- 404 ---------- */
.void-wrap { max-width: 420px; margin: clamp(30px, 6vw, 70px) auto 0; }
.void-wrap .paper { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 30px 24px 40px; }
.void-wrap .paid-stamp { position: static; transform: rotate(-8deg); font-size: 56px; color: var(--ink); }

/* ---------- phones ---------- */
@media (max-width: 1080px) {
  .fund-grid, .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .order-pad, .launch-side { position: static; }
  /* phones and tablets: the order pad comes straight after the receipt, before the orders list */
  .fund-main { display: contents; }
  .fund-grid > .order-pad { order: 2; }
  .fund-main > :last-child { order: 3; }
  .counter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .counter-row .hero-receipt { grid-column: 1 / -1; order: -1; max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 900px) {
  .home-hero, .closing, .funds-head { grid-template-columns: minmax(0, 1fr); }
  .directory { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .how-step { grid-template-columns: 70px minmax(0, 1fr); }
  .how-step > :last-child { grid-column: 1 / -1; }
  .how-step .step-n { font-size: 60px; }
  .tape-row { grid-template-columns: 54px minmax(0, 1fr) auto 92px; }
  .tape-row .leader, .tape-row .spark { display: none; }
}
@media (max-width: 640px) {
  .counter-row { grid-template-columns: minmax(0, 1fr); }
  .counter-row .side-ticket { display: none; }
  .tickets { grid-template-columns: minmax(0, 1fr); }
  .r-cols, .r-line { grid-template-columns: 22px minmax(0, 1fr) 58px 74px; }
  .r-cols :nth-child(4), .r-line > :nth-child(4) { display: none; }
  .z-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .z-row .leader, .z-row .z-sub { display: none; }
  .tape-row { grid-template-columns: 50px minmax(0, 1fr) 78px; }
  .tape-row .t-unit-cell { display: none; }
  .chosen-row { grid-template-columns: 20px 20px minmax(0, 1fr) auto; }
  .chosen-row .chosen-w { display: none; }
  .dir-blurb { display: none; }
  .directory a { grid-template-columns: 34px minmax(0, auto) 1fr auto; }
}

/* live orders: the quote on the confirm screen, and each landed swap's link on the printed receipt */
.quote-lines { font-size: 12.5px; padding: 10px 12px; background: var(--surface); border: 1px dashed var(--line-3); border-radius: 4px; max-height: 220px; overflow: auto; }
.tx-link { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.tx-link:hover { text-decoration-color: var(--ink); }
