:root {
  --bg: #0b0b0d;
  --panel: #131316;
  --panel-2: #19191d;
  --line: rgba(242, 242, 242, .08);
  --line-2: rgba(242, 242, 242, .14);
  --ink: #f2f2f2;
  --mute: rgba(242, 242, 242, .62);
  --dim: rgba(242, 242, 242, .38);
  --acc: #8ee6b4;
  --acc-ink: #07160e;
  --acc-soft: rgba(142, 230, 180, .12);
  --warn: #f2b48e;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0; }
.dim { color: var(--dim); }
.acc { color: var(--acc); }
.eyebrow { font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 0 0 14px; }
.eyebrow.acc { color: var(--acc); }
.eyebrow .x { color: var(--acc); margin-right: 6px; }

/* ── nav ─────────────────────────────────────────────── */
.nav-wrap { position: fixed; inset: 16px 16px auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav { pointer-events: auto; width: 100%; max-width: 760px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; background: rgba(19, 19, 22, .82); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: -.02em; margin-right: 18px; }
.logo { width: 24px; height: 24px; color: var(--ink); }
.logo rect:first-child { stroke: var(--acc); }
.nav-mid { display: flex; gap: 2px; }
.nav-mid a, .nav-link { text-decoration: none; color: var(--mute); font-size: 14.5px; font-weight: 500; padding: 8px 10px; border-radius: 10px; background: none; border: 0; cursor: pointer; transition: color .15s; }
.nav-mid a:hover, .nav-link:hover, .nav-mid a[aria-current] { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-x { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--mute); transition: color .15s, background .15s; }
.nav-x:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav-x svg { width: 17px; height: 17px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 500; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { background: #a5efc6; }
.btn-ghost { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-2); }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }

/* ── hero ────────────────────────────────────────────── */
.hero { padding: 150px 20px 30px; text-align: center; max-width: 900px; margin: 0 auto; }
h1 { font-weight: 400; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 22px; }
.lede { color: var(--mute); font-size: 17px; max-width: 560px; margin: 0 auto 34px; }
.bar { display: flex; align-items: center; gap: 8px; max-width: 600px; margin: 0 auto; padding: 8px 8px 8px 18px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; }
.bar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; padding: 8px 0; }
.bar input::placeholder { color: var(--dim); }
.chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 5px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--line-2); }
.chip-ico, .ico { width: 22px; height: 22px; border-radius: 50%; background: #2a2a30 center/cover; flex: none; display: inline-grid; place-items: center; font: 600 10px var(--mono); color: var(--mute); overflow: hidden; }
.bar-kind { font-size: 12px; color: var(--acc); white-space: nowrap; }
.fine { color: var(--dim); font-size: 12.5px; margin: 14px 0 0; }

.ca-wrap { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 30px; flex-wrap: wrap; }
.ca { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; max-width: 100%; transition: border-color .15s; }
.ca:hover { border-color: rgba(142, 230, 180, .45); }
.ca-tag { font: 600 12.5px var(--sans); color: var(--acc-ink); background: var(--acc); border-radius: 999px; padding: 4px 10px; }
.ca-addr { font-size: 13px; color: var(--mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-short { display: none; }
.ca-act { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 5px 10px; }
.ca.done .ca-act { color: var(--acc); }
.ca-link { font-size: 13px; color: var(--dim); text-decoration: none; }
.ca-link:hover { color: var(--ink); }
@media (max-width: 620px) { .ca-full { display: none; } .ca-short { display: inline; } }

/* ── sections ────────────────────────────────────────── */
.sec { max-width: var(--w); margin: 0 auto; padding: 110px 20px 0; }
.sec.first { padding-top: 140px; }
.sec-head { max-width: 640px; margin-bottom: 38px; }
h2 { font-weight: 400; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.032em; margin: 0 0 16px; }
h3 { font-weight: 500; font-size: 19px; letter-spacing: -.015em; margin: 0 0 10px; }
.sec-copy { color: var(--mute); margin: 0; max-width: 540px; }
.more { margin: 22px 0 0; }

/* ── tree ────────────────────────────────────────────── */
.tree { border-top: 1px solid var(--line); }
.tree .empty { color: var(--dim); padding: 26px 0; margin: 0; }
.tree-group + .tree-group { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1fr 1fr 150px; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row-h { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 12px 0; }
.row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .ind { flex: none; display: flex; align-self: stretch; }
.row .ind i { width: 22px; position: relative; }
.row .ind i.bar-v::before { content: ""; position: absolute; left: 10px; top: -14px; bottom: -14px; border-left: 1px solid var(--line-2); }
.row .ind i.elbow::before { content: ""; position: absolute; left: 10px; top: -14px; height: calc(50% + 14px); width: 10px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.row .ind i.elbow.more-below::after { content: ""; position: absolute; left: 10px; top: 50%; bottom: -14px; border-left: 1px solid var(--line-2); }
.row .who .ico { width: 30px; height: 30px; }
.row .nm { min-width: 0; }
.row .nm b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm small { display: block; color: var(--dim); font: 400 12px var(--mono); white-space: nowrap; }
.row .num { font-family: var(--mono); font-size: 13px; }
.row .num small { display: block; color: var(--dim); font-size: 11.5px; }
.row.outside { color: var(--mute); }
.row.outside .ico { opacity: .7; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute); white-space: nowrap; }
.pill.pair { color: var(--acc); border-color: rgba(142, 230, 180, .35); background: var(--acc-soft); }
.pill.fee { color: var(--warn); border-color: rgba(242, 180, 142, .35); background: rgba(242, 180, 142, .08); }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.tree-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search { flex: 1; min-width: 220px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; outline: 0; }
.search:focus { border-color: var(--line-2); }
.seg { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { background: none; border: 0; padding: 7px 12px; border-radius: 9px; color: var(--mute); cursor: pointer; font-size: 13.5px; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .07); color: var(--ink); }

/* ── how / compare / faq ─────────────────────────────── */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.col p:not(.eyebrow) { color: var(--mute); margin: 0; }
.route { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; }
.route:empty { display: none; }
.route .hop { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font: 500 12.5px var(--mono); }
.route .via { color: var(--dim); font: 400 11px var(--mono); }
.route .arr { color: var(--dim); }
.route .cap { width: 100%; color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.compare { border-top: 1px solid var(--line); }
.cmp-row { display: grid; grid-template-columns: 1fr 1.2fr 1.6fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cmp-row span:first-child { color: var(--mute); }
.cmp-row span:last-child { color: var(--ink); }
.cmp-row span:nth-child(2) { color: var(--dim); }
.cmp-h span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim) !important; }
.cmp-h span:last-child { color: var(--acc) !important; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--dim); font-weight: 300; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { color: var(--mute); margin: 0 0 20px; max-width: 680px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.steps li > p:not(.eyebrow) { color: var(--mute); margin: 0; max-width: 760px; }

/* ── footer ──────────────────────────────────────────── */
.foot { max-width: var(--w); margin: 130px auto 0; padding: 0 20px 20px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 34px 0; font-size: 13.5px; }
.foot-grid p { margin: 0; }
.foot-grid a { color: var(--mute); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.wordmark { margin: 10px 0 0; font-size: clamp(64px, 17vw, 210px); line-height: .8; letter-spacing: -.06em; color: rgba(242, 242, 242, .05); user-select: none; }

/* ── sheets ──────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 6, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.sheet-card { width: 100%; max-width: 460px; max-height: calc(100svh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; animation: rise .18s ease; }
.sheet-card.wide { max-width: 520px; }
.sheet-card h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; }
.x-btn { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; }
.x-btn:hover { color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.wallets { display: grid; gap: 8px; }
.wallet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; text-decoration: none; font-weight: 500; }
.wallet:hover { border-color: var(--line-2); }
.wallet img, .wallet .wf { width: 28px; height: 28px; border-radius: 8px; }
.wallet .wf { display: grid; place-items: center; background: #2a2a30; font: 600 12px var(--mono); }
.wallet small { margin-left: auto; color: var(--dim); font: 400 11.5px var(--mono); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; color: var(--mute); }
.field input, .field textarea, .field select { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line-2); }
.field textarea { resize: vertical; min-height: 64px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drop { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--panel-2); border: 1px dashed var(--line-2); border-radius: 12px; cursor: pointer; }
.drop img, .drop .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #222227; flex: none; }
.drop small { color: var(--dim); display: block; }
.parent { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.parent .ico { width: 34px; height: 34px; }
.parent b { font-weight: 500; }
.parent small { display: block; color: var(--dim); font: 400 12px var(--mono); }
.parent .btn { margin-left: auto; }
.note { color: var(--mute); font-size: 13px; margin: 0 0 14px; }
.note.kind { padding: 11px 13px; border-radius: 11px; background: var(--acc-soft); color: var(--ink); border: 1px solid rgba(142, 230, 180, .25); }
.note.kind.fee { background: rgba(242, 180, 142, .08); border-color: rgba(242, 180, 142, .25); }
.sum { display: grid; gap: 6px; margin: 4px 0 16px; font-size: 13.5px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--mute); }
.sum dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; }
.err { color: #ff9b8e; font-size: 13px; margin: 0 0 12px; }
.sheet .btn-block { width: 100%; padding: 13px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; cursor: pointer; font-size: 13px; }
.opts button[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }
.results { display: grid; gap: 4px; max-height: 260px; overflow: auto; margin-bottom: 12px; }
.results button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: none; border: 1px solid transparent; cursor: pointer; text-align: left; }
.results button:hover { background: var(--panel-2); border-color: var(--line); }
.results small { color: var(--dim); font: 400 11.5px var(--mono); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; z-index: 120; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 16px; font-size: 13.5px; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--acc); }

@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr) auto auto 140px; }
  .row .c-price, .row .c-burn, .row-h .c-price, .row-h .c-burn { display: none; }
  .cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(26px, 8vw, 36px); }
  .nav-mid { display: none; }
  .brand { margin-right: 0; }
  .hero { padding-top: 120px; }
  .bar { flex-wrap: wrap; padding: 8px; }
  .bar input { flex-basis: 100%; padding: 8px 10px; }
  .bar .btn { margin-left: auto; }
  .row { grid-template-columns: minmax(0, 1fr) auto 64px; }
  .row .c-cap, .row-h .c-cap { display: none; }
  .row .c-kind, .row-h .c-kind { display: none; }
  .row .acts .btn-ghost { display: none; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row span:nth-child(2) { display: none; }
  .two { grid-template-columns: 1fr; }
}

/* ── motion (see src/motion.js) ──────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: block; }
html.motion [data-rv]:not(h1):not(h2) { opacity: 0; transform: translate3d(0, 56px, 0) scale(.97); filter: blur(6px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform 1.2s cubic-bezier(.16, .84, .2, 1) var(--d, 0ms), filter 1s ease var(--d, 0ms); }
html.motion [data-rv].is-shown:not(h1):not(h2) { opacity: 1; transform: none; filter: none; }
html.motion .tree [data-rv]:not(.is-shown) { transform: translate3d(0, 28px, 0); filter: none; }
html.motion :is(h1, h2)[data-rv] .ln > span { opacity: 0; transform: translate3d(0, 115%, 0) rotate(2.5deg); transform-origin: 0 100%; transition: transform 1.15s cubic-bezier(.16, .84, .2, 1) calc(var(--d, 0ms) + var(--l, 0ms)), opacity .6s ease calc(var(--d, 0ms) + var(--l, 0ms)); }
html.motion :is(h1, h2)[data-rv].is-shown .ln > span { opacity: 1; transform: none; }
.hero { will-change: transform, opacity; }
/* Reduce motion: the same arrivals as plain fades, nothing moves. */
html.motion.reduce [data-rv]:not(h1):not(h2), html.motion.reduce :is(h1, h2)[data-rv] .ln > span { transform: none !important; filter: none !important; transition: opacity .6s ease var(--d, 0ms) !important; }
@media (max-width: 420px) {
  .nav { gap: 2px; padding: 6px 6px 6px 12px; }
  .brand { gap: 7px; font-size: 15px; }
  .nav-end { gap: 2px; }
  .nav-x { width: 34px; height: 34px; }
  .nav-link { padding: 8px 7px; font-size: 14px; }
  .nav .btn-acc { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 345px) { .brand span { display: none; } }
