/* Parley. Concept: the deal ticket, after hours. Near-black table, smoked ticket stubs with punched notches and a
   perforation between the two parties' halves, one iris accent for "your price" and the controls you touch.
   Type: Hedvig Letters Serif (display), Hedvig Letters Sans (text), Inconsolata (figures, addresses). */
@font-face { font-family: "Hedvig Letters Serif"; src: url("/fonts/hedvig-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hedvig Letters Sans"; src: url("/fonts/hedvig-sans.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("/fonts/inconsolata.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #09080c;             /* the table */
  --bg-2: #121017;           /* ticket stock */
  --bg-3: #1a1722;           /* the stub half */
  --text: #efebf6;
  --text-2: #b8b1c6;
  --text-3: #8b849a;
  --line: rgba(239, 235, 246, .12);
  --line-2: rgba(239, 235, 246, .22);
  --acc: #b49bff;            /* iris: the one accent */
  --acc-2: #8f72f2;
  --acc-ink: #150e29;        /* text on the accent */
  --acc-glow: rgba(180, 155, 255, .16);
  --bad: #ff8f9f;
  --display: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --sans: "Hedvig Letters Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inconsolata", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 12px;
  --pad: clamp(18px, 5vw, 56px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc); color: var(--acc-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--acc); color: var(--acc-ink); padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }
.mono, .num, .tag { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 18px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--display); color: var(--text); }
.brand .mark { width: 34px; height: 34px; color: var(--acc); --cut: var(--bg); }
.brand-sm { font-size: 21px; } .brand-sm .mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); }
.nav > a:not(.btn):not(.x-link) { text-decoration: none; font-size: 15px; color: var(--text-2); position: relative; transition: color .2s; }
.nav > a:not(.btn):not(.x-link)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > a:not(.btn):not(.x-link):hover { color: var(--text); }
.nav > a:not(.btn):not(.x-link):hover::after { transform: scaleX(1); }
.x-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .2s; }
.x-link:hover { border-color: var(--acc); }
.x-link svg { width: 15px; height: 15px; fill: var(--text); }
.x-link[hidden] { display: none; }
@media (max-width: 640px) { .nav > a:not(.btn):not(.x-link) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .25s, border-color .18s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn-ink { background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 0 0 var(--acc-glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -6px rgba(180,155,255,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ink:active { transform: translateY(1px) scale(.98); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--acc); color: var(--acc); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-stock { background: var(--bg-3); color: var(--text); border-color: var(--line-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 1; background: transparent; color: var(--text-3); border: 1.5px dashed var(--line-2); cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- hero ---------- */
.hero { position: relative; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(16px, 4vw, 56px) var(--pad) clamp(48px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 45% at 72% 42%, rgba(143,114,242,.16), transparent 70%), radial-gradient(40% 40% at 12% 8%, rgba(239,235,246,.05), transparent 70%); }
@media (min-width: 940px) { .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.eyebrow { font: 500 14px/1.2 var(--mono); letter-spacing: .02em; color: var(--acc); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 9.6vw, 84px); line-height: 1; }
.hero h1 em { font-style: normal; color: var(--text-2); }
.lede { margin-top: 20px; font-size: clamp(17px, 2.2vw, 19px); color: var(--text-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .14s; } .hero-copy > :nth-child(4) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.slope { margin: 0; min-width: 0; }
.slope-card { position: relative; background: linear-gradient(180deg, #15121c, #0e0c13); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); }
.slope-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tag { display: inline-block; font-size: 13px; color: var(--text-2); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.tag-quiet { color: var(--text-3); }
.stage { position: relative; aspect-ratio: 16 / 10; margin: 0 -6px; }
@media (max-width: 640px) { .stage { aspect-ratio: 4 / 3; } .hero { padding-top: 8px; } .lede { margin-top: 14px; } .cta-row { margin-top: 20px; } }
.slope-svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.slope-svg.dragging { cursor: grabbing; }
.slope-range { display: block; margin: 4px 0 10px; }
.slope-range input { width: 100%; height: 28px; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; --p: 40%; }
.slope-range input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p), var(--line-2) var(--p)); }
.slope-range input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.slope-range input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--acc); }
.slope-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--acc); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--acc); }
.slope-range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--acc); }
.slope-range input:focus-visible { outline: none; }
.slope-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--acc), 0 0 0 6px var(--acc-glow); }
.slope-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px dashed var(--line-2); padding-top: 12px; gap: 8px; }
.slope-read > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slope-read b { font: 700 clamp(22px, 6vw, 30px)/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.slope-read .k { font-size: 12.5px; color: var(--text-3); line-height: 1.25; }
.slope-read .win b { color: var(--acc); }
.slope figcaption { margin-top: 12px; font-size: 14px; color: var(--text-3); max-width: 38em; }

/* ---------- sections ---------- */
section { scroll-margin-top: 12px; }
.sec-head { max-width: var(--max); margin: 0 auto 28px; }
.sec-head h2 { font-size: clamp(32px, 6.4vw, 56px); }
.sec-sub { margin-top: 10px; color: var(--text-2); max-width: 40em; }
.how, .board-sec, .safe { padding: clamp(48px, 8vw, 96px) var(--pad); }
.how { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0d0b12, var(--bg)); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--r); padding: 20px; }
.step .num { position: absolute; top: 16px; right: 18px; color: var(--text-3); font-size: 14px; }
.step h3 { font-size: 28px; margin: 6px 0 8px; }
.step p { color: var(--text-2); font-size: 16px; }
.step-art { width: 100%; max-width: min(220px, 52vw); height: auto; margin-bottom: 8px; }
.step-art .ink-line { fill: none; stroke: var(--text-3); stroke-width: 2; }
.step-art .ink-fill { fill: var(--acc); }
.step-art .ink-soft { fill: rgba(239,235,246,.18); }
.step-art .paper { fill: none; stroke: var(--text-3); stroke-width: 2; }
.step-art .dash { stroke: var(--text-3); stroke-width: 2; stroke-dasharray: 4 5; fill: none; }
.step-art .coin { fill: var(--acc); stroke: var(--bg); stroke-width: 1.5; }
.step-art .on-acc { fill: none; stroke: var(--acc-ink); }
.swap-art .half-a ellipse { fill: var(--acc-ink); }
.swap-art .half-b rect { fill: var(--bg-3); stroke: var(--text-3); stroke-width: 2; }
.swap-art .half-b path { stroke: var(--text); }

/* ticket rows on the board */
.board { max-width: var(--max); margin: 0 auto; display: grid; gap: 14px; }
.board-loading, .empty { background: var(--bg-2); border-radius: var(--r); padding: 28px 22px; border: 1px dashed var(--line-2); color: var(--text-2); }
.empty h3 { font-size: 26px; margin-bottom: 8px; color: var(--text); }
.empty p { color: var(--text-2); max-width: 44em; }
.empty .btn { margin-top: 16px; }
.board-more { max-width: var(--max); margin: 18px auto 0; }
.board-more a { font-weight: 600; color: var(--acc); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); transition: transform .2s var(--ease), border-color .2s, box-shadow .25s; }
a.ticket:hover { transform: translateY(-2px); border-color: rgba(180,155,255,.45); box-shadow: 0 16px 40px -20px rgba(143,114,242,.5); }
.ticket .t-main { padding: 16px 18px; display: grid; gap: 10px; min-width: 0; }
.ticket .t-side { padding: 14px 18px 16px; border-top: 1.5px dashed var(--line-2); background: var(--bg-3); border-radius: 0 0 var(--r) var(--r); display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
@media (min-width: 760px) {
  .ticket { grid-template-columns: minmax(0, 1fr) 260px; }
  .ticket .t-side { border-top: 0; border-left: 1.5px dashed var(--line-2); border-radius: 0 var(--r) var(--r) 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
}
.t-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.monogram { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--acc); font: 700 15px var(--mono); }
.t-coin .sym { font: 400 24px/1.1 var(--display); }
.t-coin .addr { font: 13px var(--mono); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.t-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px 16px; }
.fig .k { display: block; font-size: 12.5px; color: var(--text-3); }
.fig .v { font: 600 17px/1.3 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* comparison chips stay neutral: a discount is good for one side and bad for the other */
.chip { display: inline-block; font: 600 13px/1 var(--mono); padding: 4px 7px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.t-side .price { font: 700 26px/1.1 var(--mono); color: var(--acc); }
.t-side .k { font-size: 13px; color: var(--text-3); }

/* terms */
.terms { padding: 0 var(--pad); }
.terms-ticket { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.tt-left { padding: clamp(22px, 4vw, 40px); }
.tt-left h2 { font-size: clamp(30px, 5.6vw, 48px); margin-bottom: 14px; }
.tt-left p:last-child { color: var(--text-2); max-width: 38em; }
.tt-right { position: relative; background: var(--bg-3); display: flex; flex-direction: column; justify-content: center; padding: 24px clamp(22px, 4vw, 40px); border-top: 1.5px dashed var(--line-2); border-radius: 0 0 var(--r) var(--r); }
.tt-right .big { font: 400 clamp(64px, 14vw, 120px)/1 var(--display); color: var(--acc); }
.tt-right .big small { font-size: .45em; }
.tt-right .small { font: 14px var(--mono); color: var(--text-3); }
@media (min-width: 820px) { .terms-ticket { grid-template-columns: minmax(0, 1fr) 320px; } .tt-right { border-top: 0; border-left: 1.5px dashed var(--line-2); border-radius: 0 var(--r) var(--r) 0; } }

/* safety */
.safe-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.safe-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.safe-item h3 { font-size: 26px; margin-bottom: 8px; }
.safe-item p { color: var(--text-2); }
@media (min-width: 820px) { .safe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } .safe-item { border-bottom: 0; } }

/* footer */
.foot { border-top: 1px solid var(--line); background: #060509; color: var(--text-2); padding: 36px var(--pad) 40px; }
.foot-row { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.foot .brand .mark { --cut: #060509; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; color: var(--text-2); min-height: 32px; display: inline-flex; align-items: center; transition: color .2s; }
.foot nav a:hover { color: var(--acc); }
.foot-note { max-width: var(--max); margin: 18px auto 0; font-size: 14px; color: var(--text-3); }

/* punched notches on every perforation (the notch shows the table colour) */
.ticket .t-side::before, .ticket .t-side::after, .deal-ticket .dt-bottom::before, .deal-ticket .dt-bottom::after, .tt-right::before, .tt-right::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); top: -10px; }
.ticket .t-side, .deal-ticket .dt-bottom { position: relative; }
.ticket .t-side::before, .deal-ticket .dt-bottom::before, .tt-right::before { left: -10px; clip-path: inset(0 0 0 50%); }
.ticket .t-side::after, .deal-ticket .dt-bottom::after, .tt-right::after { right: -10px; clip-path: inset(0 50% 0 0); }
@media (min-width: 760px) {
  .ticket .t-side::before { left: -10px; top: -10px; clip-path: inset(50% 0 0 0); }
  .ticket .t-side::after { left: -10px; right: auto; top: auto; bottom: -10px; clip-path: inset(0 0 50% 0); }
}
@media (min-width: 820px) {
  .tt-right::before { left: -10px; top: -10px; clip-path: inset(50% 0 0 0); }
  .tt-right::after { left: -10px; right: auto; top: auto; bottom: -10px; clip-path: inset(0 0 50% 0); }
}

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.coins-drop { transform: translateY(-14px); opacity: 0; transition: transform .7s var(--ease) .2s, opacity .4s .2s; }
.in .coins-drop { transform: translateY(26px); opacity: 1; }
.tick-pulse { transform-origin: 116px 70px; transform: scale(.4); opacity: 0; transition: transform .5s var(--ease) .35s, opacity .3s .35s; }
.in .tick-pulse { transform: scale(1); opacity: 1; }
.swap-art .half-a, .swap-art .half-b { transition: transform .9s var(--ease) .35s; }
.in .swap-art .half-a { transform: translateX(70px); }
.in .swap-art .half-b { transform: translateX(-70px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .coins-drop, .tick-pulse, .swap-art .half-a, .swap-art .half-b { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-copy > * { animation: none; }
  .btn, a.ticket { transition: none; }
}

/* ---------- app pages ---------- */
.page { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(12px, 3vw, 32px) var(--pad) clamp(48px, 8vw, 88px); }
.page h1 { font-size: clamp(36px, 8vw, 64px); margin-bottom: 10px; }
.page .lede { margin-top: 0; margin-bottom: 26px; }
.wallet-btn { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-2); border: 1px solid rgba(180,155,255,.3); color: var(--text-2); padding: 14px 16px; border-radius: var(--r); margin-bottom: 22px; font-size: 15px; }
.notice b { color: var(--text); font-weight: 600; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.notice svg { color: var(--acc); }
.sell-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 940px) { .sell-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); display: grid; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--text-3); }
.field .err { font-size: 14px; color: var(--bad); }
.input { width: 100%; min-height: 50px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); padding: 10px 14px; font: 500 17px var(--mono); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-glow); }
.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row .input { flex: 1; min-width: 0; }
.suffix { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: 600 15px var(--mono); background: var(--bg-3); white-space: nowrap; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font: 600 14px var(--mono); cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s var(--ease); }
.pill:hover { border-color: var(--acc); }
.pill:active { transform: scale(.96); }
.pill[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.coin-found { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg-3); font-size: 15px; min-width: 0; }
.coin-found .sym { font: 400 20px var(--display); }
.coin-found .nm { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.compare { background: linear-gradient(180deg, #15121c, #0e0c13); border: 1px solid var(--line); color: var(--text); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.compare h2 { font-size: 28px; }
.compare .muted { color: var(--text-3); font-size: 15px; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; gap: 6px; }
.bar .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--text-2); }
.bar .row b { font: 700 18px var(--mono); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.bar .track { height: 12px; border-radius: 3px; background: rgba(239,235,246,.08); overflow: hidden; }
.bar .fill { height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--w, 0)); background: var(--text-2); border-radius: 3px; transition: transform .5s var(--ease); }
.bar.you .fill { background: linear-gradient(90deg, var(--acc-2), var(--acc)); }
.bar.you .row b { color: var(--acc); }
.bar.pool .fill { background: repeating-linear-gradient(45deg, rgba(239,235,246,.6) 0 4px, rgba(239,235,246,.25) 4px 8px); }
.verdict { border-top: 1px dashed var(--line-2); padding-top: 14px; font-size: 15.5px; color: var(--text-2); }
.verdict b { color: var(--text); font-weight: 600; }
.small-print { font-size: 13.5px; color: var(--text-3); }
.small-print a { color: var(--acc); }
@media (prefers-reduced-motion: reduce) { .bar .fill { transition: none; } }

.deal { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .deal { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.deal-ticket { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.deal-ticket .dt-top { padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.deal-ticket .dt-bottom { padding: clamp(18px, 3vw, 28px); border-top: 1.5px dashed var(--line-2); display: grid; gap: 14px; background: var(--bg-3); border-radius: 0 0 var(--r) var(--r); }
.deal-ticket .hint { color: var(--text-3); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-family: var(--mono); text-align: right; overflow-wrap: anywhere; min-width: 0; }
.kv dd a { text-underline-offset: 3px; color: var(--acc); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--mono); letter-spacing: .04em; padding: 5px 9px; border-radius: 4px; background: var(--acc); color: var(--acc-ink); }
.status-pill.filled { background: var(--text); color: var(--bg); }
.status-pill.cancelled, .status-pill.closed { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line-2); }
.result { border-radius: 8px; padding: 12px 14px; font-size: 15px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); overflow-wrap: anywhere; }
.result.bad { border-color: var(--bad); color: var(--bad); }
.result a { color: var(--acc); }
.result.bad a { color: var(--bad); }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.back { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; margin-bottom: 14px; text-decoration: none; color: var(--text-2); min-height: 32px; }
.back:hover { color: var(--acc); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; border-right-color: currentColor; opacity: .6; } }

/* keep the promise line in one piece on wide screens */
@media (min-width: 940px) { .hero h1 { font-size: clamp(50px, 4.9vw, 72px); } .hero h1 em { white-space: nowrap; } }
