@font-face {
  font-family: "Inter"; src: url("./fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --bg: #fafafa; --surface: #ffffff; --text: #0b0f14; --muted: #6b7280; --faint: #9aa1ab; --line: #e8e8ec;
  --accent: #0f9f8f; --gold: #f59e0b; --ok: #0f9f8f; --ok-bg: #e7f6f3; --wait: #a16207; --wait-bg: #fdf6e3;
  --err-bg: #fdf1f1; --focus: #0f9f8f55;
  --radius: 12px; --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d12; --surface: #10151c; --text: #eef1f5; --muted: #8b95a3; --faint: #5d6776; --line: #1c2430;
    --accent: #2dd4bf; --gold: #fbbf24; --ok: #2dd4bf; --ok-bg: #0f2a28; --wait: #fbbf24; --wait-bg: #2a2410;
    --err-bg: #2a1515; --focus: #2dd4bf55;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { width: 18px; height: 18px; flex: none; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; letter-spacing: -.02em; font-size: 16px; }
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.brand.small { font-size: 13px; } .brand.small svg { width: 18px; height: 18px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--text); background: var(--surface); }

/* hero */
.hero { padding: 72px 16px 28px; text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.lead { margin: 0 auto 32px; max-width: 520px; color: var(--muted); font-size: 17px; }
.search { position: relative; display: flex; align-items: center; max-width: 600px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .12); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
.search-ico { position: absolute; left: 18px; color: var(--faint); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  padding: 12px 12px 12px 42px; font: 14px var(--mono); }
.search input::placeholder { font-family: var(--sans); color: var(--faint); }
.search button { border: 0; border-radius: 10px; padding: 11px 22px; background: var(--text); color: var(--bg);
  font: 600 14px var(--sans); cursor: pointer; transition: opacity .15s; }
.search button:hover { opacity: .88; } .search button:disabled { opacity: .5; cursor: wait; }
.hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 12.5px; color: var(--faint); }
.hint svg { width: 14px; height: 14px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 20px 14px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 13px; font-weight: 550; margin-top: 2px; }
.stat small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* results */
.result { padding-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 10px; }
.card.muted, .muted { color: var(--muted); }
.summary { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.summary.none { font-weight: 500; }
.card p + p { margin-top: 4px; }
.card p { margin: 0; }
.item { display: grid; gap: 8px; }
.item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.amount { font-size: 18px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.usd { color: var(--muted); font-size: 14px; margin-left: 4px; }
.meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.meta code { font: 12px var(--mono); color: var(--faint); }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.wait { background: var(--wait-bg); color: var(--wait); }
.step { font-size: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.step a { color: var(--accent); text-decoration: none; font-weight: 550; }
.step a:hover { text-decoration: underline; }
.warn { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.err { background: var(--err-bg); }

/* sections */
.section { padding: 64px 16px 8px; }
.section-head { margin-bottom: 20px; }
h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.03em; font-weight: 700; }
.section-head p { margin: 0; color: var(--muted); max-width: 560px; }
.guide-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 16px 2px; }
summary::-webkit-details-marker { display: none; }
summary > span { font-weight: 600; font-size: 15px; }
summary small { color: var(--faint); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s; flex: none; }
details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
summary:hover > span { color: var(--accent); }
.guide-body { padding: 0 2px 18px; }
.guide-body ol { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-body li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; }
.guide-body li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--muted); margin-top: 1px; }
.guide-body p { margin: 12px 0 0 36px; font-size: 13px; color: var(--muted); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { position: relative; padding-left: 22px; color: var(--muted); }
.rules li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.rules b { color: var(--text); font-weight: 600; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 72px; padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  nav a span { display: none; }
  nav a { padding: 8px; }
  .search button { padding: 11px 16px; }
  summary small { display: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dot { fill: var(--gold); }
.adv { margin: 16px 0 0 36px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.adv h4 { margin: 0 0 8px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adv ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; overflow-wrap: anywhere; }
.adv .adv-note { margin: 10px 0 0; font-size: 12px; color: var(--wait); }
@media (max-width: 640px) { .adv, .guide-body p { margin-left: 0; } }
.privacy { display: inline-flex; align-items: center; gap: 7px; margin: 0 auto 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); background: var(--surface); }
.privacy svg { width: 14px; height: 14px; color: var(--accent); }

/* finder's fee */
.optional { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }
.tip-list { display: grid; gap: 10px; }
.tip { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; display: grid; gap: 8px; }
.tip-label { font-size: 13px; font-weight: 600; }
.tip-sub { font-size: 12px; color: var(--faint); }
.tip-row { display: flex; align-items: center; gap: 10px; }
.tip-row code { flex: 1; min-width: 0; font: 13px var(--mono); overflow-wrap: anywhere; user-select: all; }
.copy { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font: 500 13px var(--sans); cursor: pointer; }
.copy svg { width: 15px; height: 15px; }
.copy:hover { border-color: var(--accent); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.fee-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
