/* Kora: a P2P USDC <-> US dollar market built on INFRA.
   Look: green and ink, a lime highlight, and thin "kora strings"
   (the West African harp Kora is named after) as the repeated motif. */

:root {
  --bg: #f3f0e8;
  --surface: #fffdf8;
  --raised: #ebe7dc;
  --line: #ddd7c8;
  --line-strong: #c9c1ad;
  --fg: #12140f;
  --muted: #4f544b;
  --subtle: #7d8276;
  --brand: #0b5d3f;
  --brand-fg: #ffffff;
  --brand-soft: #dcefe4;
  --lime: #c8f169;
  --ink: #10140f;
  --ink-2: #1a2019;
  --ink-fg: #f3f0e8;
  --ink-muted: #a9b0a2;
  --ok: #0b5d3f;
  --ok-soft: #dcefe4;
  --warn: #8a5200;
  --warn-soft: #f8ead0;
  --bad: #b42318;
  --bad-soft: #fbe5e2;
  --sell: #b42318;
  --buy: #0b5d3f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(18, 20, 15, .04), 0 8px 24px -12px rgba(18, 20, 15, .12);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f0c;
    --surface: #151813;
    --raised: #1e231c;
    --line: #2a3027;
    --line-strong: #3a4236;
    --fg: #f1efe7;
    --muted: #b0b6a8;
    --subtle: #848b7d;
    --brand: #5be3a1;
    --brand-fg: #06251a;
    --brand-soft: #12301f;
    --ink: #151813;
    --ink-2: #1e231c;
    --ok: #5be3a1;
    --ok-soft: #12301f;
    --warn: #f0b552;
    --warn-soft: #33270f;
    --bad: #ff8a7a;
    --bad-soft: #3a1714;
    --sell: #ff8a7a;
    --buy: #5be3a1;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding: 32px 0 72px; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 750; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
strong { font-weight: 650; }
code, .mono { font-family: var(--font-mono); font-size: 12.5px; }
::selection { background: var(--lime); color: #12140f; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--fg); letter-spacing: -0.04em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; display: block; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { color: var(--fg); background: var(--raised); text-decoration: none; }
.nav a.on { color: var(--brand-fg); background: var(--brand); }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.who .name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); }
.who .name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 720px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .who .name { display: none; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 640px; font-size: 16px; }

/* ── Building blocks ────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card h2 + p, .card h2 + .muted { margin-top: 6px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 18px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--fg); font: inherit; font-weight: 650; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--raised); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, black); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
form.inline { display: inline; }

label { display: block; font-weight: 650; font-size: 13px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--fg); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
input[type="number"] { font-family: var(--font-mono); }
.field + .field { margin-top: 12px; }

/* Network choice and wallet picker (PayV page). The global input rule is for text fields, so radios opt out. */
#network-choice { margin: 12px 0; }
#network-choice .choice {
  display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); font-weight: 600; font-size: 14px;
}
#network-choice .choice input { width: 18px; height: 18px; padding: 0; margin: 0; flex: none; accent-color: var(--brand); box-shadow: none; }
#network-choice .choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.wallet-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.6); }
.wallet-modal[hidden] { display: none; }
.wallet-sheet { width: 100%; max-width: 380px; max-height: 85vh; overflow: auto; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-strong); }
.wallet-sheet h3 { margin: 0 0 4px; font-size: 18px; }
.wallet-sheet .group { margin: 16px 0 6px; font-size: 12px; font-weight: 650; color: var(--muted); }
.wallet-row {
  display: flex; align-items: center; gap: 12px; width: 100%; height: auto; padding: 10px 12px; margin: 0 0 6px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); font: inherit; font-weight: 650; text-decoration: none;
}
.wallet-row:hover { background: var(--raised); text-decoration: none; }
.wallet-row img, .wallet-row .dot { width: 32px; height: 32px; border-radius: 8px; flex: none; object-fit: cover; background: var(--raised); }
.wallet-row .tag { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--brand); }
.wallet-close { float: right; width: auto; height: 32px; padding: 0 12px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--raised); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }

.notice { border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 550; margin-bottom: 16px; border: 1px solid transparent; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.error { background: var(--bad-soft); color: var(--bad); }
.notice.info { background: var(--raised); color: var(--fg); border-color: var(--line); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }

/* ── Tier banner ────────────────────────────────────────────────────────── */
.tier { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; position: relative; overflow: hidden; }
.tier::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 40%; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 13px, color-mix(in srgb, var(--brand) 12%, transparent) 13px 14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.tier > * { position: relative; z-index: 1; }
.tier .badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: var(--brand-fg); }
.tier .badge svg { width: 26px; height: 26px; }
.tier .badge.off { background: var(--raised); color: var(--subtle); }
.tier .limit { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
@media (max-width: 560px) { .tier { grid-template-columns: auto 1fr; } .tier > :last-child { grid-column: 1 / -1; } }

/* ── Offers ─────────────────────────────────────────────────────────────── */
.offers { list-style: none; margin: 0; padding: 0; }
.offer {
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px 14px; align-items: center;
  padding: 14px 10px; margin: 0 -10px; border-top: 1px solid var(--line); border-radius: 12px; transition: background .15s;
}
.offer:first-child { border-top: 0; }
.offer:hover { background: var(--raised); }
.offer > div { min-width: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-weight: 750; font-size: 14px; letter-spacing: -0.02em;
  background: var(--brand-soft); color: var(--brand);
}
.offer .who-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 650; }
.offer .numbers { color: var(--muted); font-size: 14px; }
.offer .rate { font-family: var(--font-mono); font-weight: 700; color: var(--fg); font-size: 15px; }
.side-sell { color: var(--sell); }
.side-buy { color: var(--buy); }
.col-head { display: flex; align-items: center; gap: 10px; }
.col-head .tick { width: 10px; height: 10px; border-radius: 3px; }
.col-head .tick.sell { background: var(--sell); }
.col-head .tick.buy { background: var(--buy); }

/* ── Trade steps ────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding: 2px 0 20px 44px; }
.steps li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--raised); color: var(--muted); font-size: 13px; font-weight: 700; font-family: var(--font-mono);
}
.steps li.done::before { content: "✓"; background: var(--brand); color: var(--brand-fg); }
.steps li.now::before { background: var(--lime); color: #12140f; box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 35%, transparent); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--line); }
.steps li.done:not(:last-child)::after { background: var(--brand); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 8px; } }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--subtle); font-weight: 650; border-top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.table-scroll { overflow-x: auto; }

/* ── Landing ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 44px; border-radius: 28px; background: var(--ink); color: var(--ink-fg);
  display: grid; gap: 40px; grid-template-columns: 1.15fr 1fr; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(200, 241, 105, .16), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(243, 240, 232, .06) 21px 22px);
}
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: .98; letter-spacing: -0.045em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { font-size: 18px; color: var(--ink-muted); margin-top: 20px; max-width: 520px; }
.hero .subtle { color: var(--ink-muted); }
.hero .pill.brand { background: rgba(200, 241, 105, .14); color: var(--lime); }
.hero .btn.primary { background: var(--lime); border-color: var(--lime); color: #12140f; }
.hero .btn.primary:hover { background: #d6f68a; }
.hero .notice.warn { background: rgba(240, 181, 82, .15); color: #f0c574; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 36px 22px; border-radius: 22px; gap: 28px; } }

.infra-btn { height: 52px; padding: 0 24px; font-size: 16px; }
.infra-btn .dot { width: 22px; height: 22px; border-radius: 7px; background: #12140f; color: var(--lime); display: grid; place-items: center; font-size: 12px; font-weight: 900; font-family: var(--font-display); }

/* Example trade card in the hero */
.deal { background: var(--ink-2); border: 1px solid rgba(243, 240, 232, .1); border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transform: rotate(-1.2deg); }
.deal .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); font-weight: 650; }
.deal .party { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.deal .party + .party { border-top: 1px dashed rgba(243, 240, 232, .14); }
.deal .avatar { background: rgba(200, 241, 105, .14); color: var(--lime); }
.deal .pname { font-weight: 650; color: var(--ink-fg); }
.deal .check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--lime); font-weight: 600; }
.deal .check svg { width: 14px; height: 14px; }
.deal .amount { margin-left: auto; text-align: right; font-family: var(--font-mono); color: var(--ink-fg); font-weight: 700; }
.deal .amount small { display: block; color: var(--ink-muted); font-weight: 500; font-size: 11px; }
.deal .proof { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(200, 241, 105, .08); color: var(--ink-fg); font-size: 13px; }
.deal .proof svg { width: 16px; height: 16px; color: var(--lime); flex: none; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 18px; flex-wrap: wrap; }
.section-title h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.03em; }

.feature { position: relative; }
.feature .num { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.feature h3 { margin: 16px 0 6px; font-size: 18px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.feature .icon svg { width: 22px; height: 22px; }

.shares { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .shares { grid-template-columns: 1fr; } }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .btn, .offer, .nav a { transition: none; }
  .deal { transform: none; }
}

footer.foot { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--subtle); font-size: 13px; }
footer.foot strong { color: var(--fg); font-family: var(--font-display); }

/* ── Icons, INFRA mark, and the pieces built on them ────────────────────── */
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.btn .ico { width: 16px; height: 16px; }
.btn.small .ico { width: 14px; height: 14px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; }
.nav a .ico { width: 16px; height: 16px; opacity: .8; }
.nav a.on .ico { opacity: 1; }
.infra-mark, .infra-mark img { width: 18px; height: 18px; display: inline-block; flex: none; object-fit: contain; }
.btn .infra-mark, .btn .infra-mark img { width: 18px; height: 18px; }
.infra-btn .infra-mark, .infra-btn .infra-mark img { width: 24px; height: 24px; }
.pill .infra-mark, .pill .infra-mark img { width: 13px; height: 13px; }
.pill .ico { width: 13px; height: 13px; vertical-align: -2px; }
.pill.infra { background: var(--ok-soft); color: var(--ok); }
.notice.signed { display: block; }
.notice.signed > .infra-mark { vertical-align: -3px; margin-right: 4px; }
.hide-sm { display: inline; }
@media (max-width: 560px) { .hide-sm { display: none; } }

.who .name .avatar { width: 28px; height: 28px; font-size: 11px; }
.who .name::before { display: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 10px; }
.eyebrow .ico { width: 15px; height: 15px; }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--fg); text-decoration: none; }
.back .ico { width: 16px; height: 16px; }

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { line-height: 1.2; }
.card-head .subtle { display: block; margin-top: 2px; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.card-icon .ico { width: 20px; height: 20px; }
.buy-tone { background: var(--ok-soft) !important; color: var(--buy) !important; }
.sell-tone { background: var(--bad-soft) !important; color: var(--sell) !important; }
.bad-tone { background: var(--bad-soft) !important; color: var(--bad) !important; }

.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--subtle); }
.empty .ico { width: 26px; height: 26px; }
.empty p { max-width: 280px; font-size: 14px; }

/* Market summary */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: 1 / -1; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 90px; background: repeating-linear-gradient(90deg, transparent 0 9px, color-mix(in srgb, var(--brand) 9%, transparent) 9px 10px); -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.stat-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--muted); }
.stat-label .ico { width: 15px; height: 15px; color: var(--brand); }
.stat-value { font-family: var(--font-mono); font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: -0.02em; }

/* Offer rows: avatar | who | rate + action */
.offer { grid-template-columns: auto 1fr auto; }
.offer-end { display: flex; align-items: center; gap: 12px; }
.offer .rate { display: grid; text-align: right; line-height: 1.15; }
.offer .rate small { font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--subtle); }
.offer .numbers strong { color: var(--fg); font-weight: 650; }
@media (max-width: 520px) {
  .offer { grid-template-columns: auto 1fr; }
  .offer-end { grid-column: 1 / -1; justify-content: space-between; }
  .offer .rate { text-align: left; }
}
.avatar .ico { width: 18px; height: 18px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.hue-1 { background: #dcefe4; color: #0b5d3f; }
.hue-2 { background: #e5e9fb; color: #3446a8; }
.hue-3 { background: #f8ead0; color: #8a5200; }
.hue-4 { background: #f6e1ef; color: #8f2c6b; }
.hue-5 { background: #e2f1f3; color: #145f6b; }
@media (prefers-color-scheme: dark) {
  .hue-1 { background: #12301f; color: #5be3a1; }
  .hue-2 { background: #1c2347; color: #a9b6ff; }
  .hue-3 { background: #33270f; color: #f0c574; }
  .hue-4 { background: #3a1830; color: #f2a6d6; }
  .hue-5 { background: #10313a; color: #7fd6e3; }
}
.rate-inline { font-family: var(--font-mono); font-weight: 700; color: var(--fg); }

/* Numbered steps used as plain lists (merchant page) */
.steps h3 { font-size: 15px; }
.steps p { margin-top: 2px; }

/* ── Polish: limit ladder, market extras, profile ───────────────────────── */
.ladder { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 560px; }
.ladder li { position: relative; padding: 10px 0 0; display: grid; gap: 1px; font-size: 12px; color: var(--subtle); }
.ladder li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--raised); }
.ladder li.done::before { background: color-mix(in srgb, var(--brand) 55%, transparent); }
.ladder li.now::before { background: var(--brand); }
.ladder li strong { font-size: 13px; color: var(--muted); font-weight: 650; }
.ladder li.now strong { color: var(--fg); }

.stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: auto; } }
.pill.best { background: color-mix(in srgb, var(--lime) 22%, transparent); color: var(--fg); }
.pill.best .ico { color: color-mix(in srgb, var(--lime) 60%, var(--fg)); }
#offer-total.over { color: var(--bad); font-weight: 600; }

.profile-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.profile-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 45%; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 15px, color-mix(in srgb, var(--brand) 7%, transparent) 15px 16px); -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.profile-card > * { position: relative; z-index: 1; }
@media (max-width: 820px) { .profile-card { grid-template-columns: 1fr; } }
.profile-main { display: flex; align-items: center; gap: 18px; }
.profile-id h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.03em; }
.avatar.xl { width: 76px; height: 76px; font-size: 26px; border-radius: 24px; }
.handle { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 14px; }
.handle .ico { width: 13px; height: 13px; }

.info-list, .doc-list, .facts-grid, .access-list { list-style: none; margin: 0; padding: 0; }
.info-list li, .doc-list li { display: grid; grid-template-columns: auto 90px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.info-list li:first-child, .doc-list li:first-child { border-top: 0; }
.info-value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.info-label { color: var(--muted); font-size: 14px; }
.info-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--muted); }
.info-icon .ico { width: 17px; height: 17px; }
@media (max-width: 480px) { .info-list li { grid-template-columns: auto 1fr; } .info-list .info-value { grid-column: 2; } }

.doc-list li { grid-template-columns: auto 1fr auto; }
.doc-name { display: grid; font-weight: 650; }

.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.facts-grid li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.facts-grid li > span:last-child { display: grid; gap: 1px; font-size: 14px; }
.fact-tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand); color: var(--brand-fg); margin-top: 1px; }
.fact-tick .ico { width: 13px; height: 13px; }

.access-list { display: grid; gap: 8px; }
.access-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.access-list li > span:last-child { display: grid; }
.access-list code { color: var(--subtle); font-size: 11.5px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline li.tone-warn::before { border-color: var(--warn); }
.timeline li.tone-bad::before { border-color: var(--bad); }
.timeline li.tone-info::before { border-color: var(--subtle); }
.timeline p { font-weight: 550; }

.danger-zone { border-color: color-mix(in srgb, var(--bad) 25%, var(--line)); }

/* Spinner for waits (payment page). Takes the text colour, so it works on any button or notice. */
.spin { display: inline-block; width: 1em; height: 1em; margin-right: .6em; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: kora-spin .8s linear infinite; }
@keyframes kora-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
