/* Layout and components. Colours and type come from tokens.css only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: var(--disp-weight); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: var(--on-acc); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--mute); }
.fine { font-size: 13px; color: var(--mute); }
.mono, .addr { font-family: var(--mono); }
.noscript { padding: 80px 0; }
.loading { padding: 80px 0; color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--mute); }
.btn.solid { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.btn.solid:hover { filter: brightness(1.06); }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 24px; font-size: 16px; }
.btn.warn { border-color: var(--warn); color: var(--warn); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; cursor: pointer; text-decoration: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--mute); font-size: 13px; white-space: nowrap; }
.chip b { color: var(--ink); font-weight: 600; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--mute); white-space: nowrap; }
.tag.acc { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, transparent); background: var(--acc-dim); }
.tag.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-dim); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--mute); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surf-2); color: var(--ink); }
.textarea { min-height: 120px; resize: vertical; }
.input.addr-in { font-family: var(--mono); font-size: 14px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--acc); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.check-row input { margin-top: 4px; accent-color: var(--acc); }
.problem { color: var(--warn); font-size: 14px; }
.askbox { display: flex; gap: 8px; padding: 7px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surf-2); }
.askbox input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font-family: var(--mono); font-size: 15px; color: var(--ink); height: 46px; }
.askbox input:focus { outline: none; }
.askbox:focus-within { border-color: var(--acc); }

/* ---------- header and footer ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 24px; letter-spacing: var(--disp-track); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 24px; margin-left: 10px; }
.nav a { text-decoration: none; color: var(--mute); font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }
.drawer { border-top: 1px solid var(--line); padding: 14px 24px 22px; display: grid; gap: 4px; }
.drawer[hidden] { display: none; }
.drawer a { padding: 12px 0; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 12px; }
.ca { font-family: var(--mono); font-size: 13px; }
.who { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surf); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; display: grid; z-index: 30; }
.menu .head { padding: 10px 12px; color: var(--mute); font-family: var(--mono); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu a, .menu button { text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: transparent; text-decoration: none; cursor: pointer; font-size: 15px; }
.menu a:hover, .menu button:hover { background: var(--surf-2); }
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 34px; color: var(--mute); font-size: 14px; }
.foot .row1 { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot .row1 nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .row2 { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot .fa { margin-top: 10px; font-size: 13px; }

/* ---------- sections ---------- */
.section { padding: 84px 0 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); font-size: 15px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.h-xl { font-family: var(--disp); font-size: clamp(46px, 7vw, 92px); line-height: 1; letter-spacing: var(--disp-track); }
.h-l { font-family: var(--disp); font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: var(--disp-track); }
.h-m { font-family: var(--disp); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: var(--disp-track); }
.h-s { font-family: var(--disp); font-size: 22px; line-height: 1.2; }
.acc { color: var(--acc); }
.lead { font-size: 19px; line-height: 1.55; color: var(--mute); max-width: 620px; }
.lead b, .body b { color: var(--ink); font-weight: 600; }
.body { color: var(--mute); max-width: 680px; }
.body p + p { margin-top: 12px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card.flat { background: var(--surf-2); border-radius: var(--r); padding: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.page-head { padding: 64px 0 8px; }
.page-head .lead { margin-top: 16px; }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; padding-top: 64px; align-items: start; }
.hero h1 { margin: 24px 0 22px; }
.hero .askbox { margin-top: 28px; max-width: 640px; }
.hero .alt { margin-top: 14px; font-size: 14px; color: var(--mute); }
.hero .alt a { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 38px; border-top: 1px solid var(--line); max-width: 640px; }
.stats div { padding-top: 16px; font-size: 14px; color: var(--mute); }
.stats b { display: block; font: 600 30px/1 var(--text); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }

/* the signature object: two faces, the evil one with the goatee */
.twins-card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.faces { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.face { background: var(--surf-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 12px 16px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.face svg { width: min(150px, 70%); height: auto; }
.face p { font-size: 14px; color: var(--mute); }
.face p b { color: var(--ink); font-weight: 600; }
.face.evil p b { color: var(--acc); }
.real-note { margin-top: 14px; font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.real-note a { color: var(--ink); }

/* a real address next to its twin, characters lined up */
.pair { display: grid; gap: 8px; margin-top: 18px; }
.pair .row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 10px; }
.pair .who-l { font-size: 13px; color: var(--mute); }
.pair .addr { font-size: 15px; letter-spacing: -0.01em; overflow-wrap: anywhere; word-break: break-all; }
.pair .m { color: var(--acc); }
.pair .row.real .m { color: var(--ink); }
.pair-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.pair-foot b { color: var(--acc); font-weight: 600; }
.pair-foot a { color: var(--ink); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.step .n { font-family: var(--disp); font-size: 40px; line-height: 1; color: var(--acc); }
.step h3 { font-family: var(--disp); font-size: 24px; line-height: 1.15; margin: 18px 0 10px; }
.step p { color: var(--mute); font-size: 15px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; align-content: start; text-decoration: none; transition: border-color .15s; }
.tool:hover { border-color: var(--line-2); }
.tool .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--acc-dim); display: grid; place-items: center; color: var(--acc); }
.tool h3 { font-family: var(--disp); font-size: 22px; }
.tool p { color: var(--mute); font-size: 15px; }
.tool .go { font-size: 14px; color: var(--ink); font-weight: 600; margin-top: auto; }

/* bounty band */
.band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; }
.rules { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rules li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--mute); font-size: 15px; }
.rules li b { color: var(--ink); font-weight: 600; }
.rules .k { width: 26px; height: 26px; border-radius: 8px; background: var(--acc-dim); color: var(--acc); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surf-2); font-size: 14px; color: var(--mute); }
.notice b { color: var(--ink); }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-dim); }
.notice.acc { border-color: color-mix(in srgb, var(--acc) 40%, transparent); background: var(--acc-dim); }

/* lists and tables */
.rows { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rows .r { display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1.4fr) 120px; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 15px; }
.rows .r:first-child { border-top: 0; }
.rows .r.h { color: var(--faint); font-size: 13px; background: var(--surf-2); }
.rows .t { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.rows .s { color: var(--mute); }
.rows .d { color: var(--mute); font-size: 14px; text-align: right; }
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 46px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--mute); }
.empty svg { width: 72px; height: 72px; }
.empty h3 { font-family: var(--disp); font-size: 24px; color: var(--ink); }

/* scan results */
.scan-sum { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 6px; }
.result-block { margin-top: 36px; }
.result-block > h2 { font-family: var(--disp); font-size: 28px; margin-bottom: 6px; }
.result-block > p.muted { margin-bottom: 16px; }
.twin-list { display: grid; gap: 14px; }
.twin-item { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.twin-item.paid { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.twin-item .top-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.twin-item .pair { margin-top: 14px; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--mute); }
.kv a { color: var(--ink); }
.small-list { display: grid; gap: 10px; }
.small-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); }
.small-item .t { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.small-item .s { font-size: 14px; color: var(--mute); margin-top: 4px; }
.verdict { display: grid; gap: 10px; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surf); }
.verdict.bad { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: linear-gradient(var(--warn-dim), var(--warn-dim)), var(--surf); }
.verdict.flag { border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.verdict h2 { font-family: var(--disp); font-size: 30px; line-height: 1.1; }
.verdict .t { font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; color: var(--mute); }
.contacts { display: grid; gap: 8px; }
.contact { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
.contact .addr { font-size: 13px; overflow-wrap: anywhere; color: var(--mute); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: start; }
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop { display: grid; gap: 10px; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--mute); font-size: 14px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.coin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.ca-box { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surf-2); }
.ca-box .addr { font-size: 14px; overflow-wrap: anywhere; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--acc); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--mute); padding-bottom: 18px; }
.desk-item { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 12px; }
.desk-item .story { white-space: pre-wrap; color: var(--ink); background: var(--surf-2); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--mute); }
.tabs button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nf { display: grid; justify-items: start; gap: 18px; padding: 90px 0 20px; }
.nf svg { width: 120px; height: 120px; }

/* dialogs and toasts */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); display: grid; place-items: center; z-index: 60; padding: 20px; }
.dialog { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surf); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 30px; }
.dialog .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--mute); display: grid; place-items: center; }
.dialog h2 { font-family: var(--disp); font-size: 28px; margin-bottom: 10px; padding-right: 30px; }
.dialog .lead { font-size: 16px; }
.wallet-list { display: grid; gap: 8px; margin-top: 18px; }
.wallet-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surf-2); cursor: pointer; text-align: left; }
.wallet-row img { width: 28px; height: 28px; border-radius: 8px; }
.get-wallets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; z-index: 80; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the one motion moment: the goatee grows in once, when the hero first shows */
.goatee { transform-origin: 50% 0; animation: grow .7s cubic-bezier(.2, .8, .2, 1) .35s both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .goatee, .spin { animation: none; } }

/* ---------- phones ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .top .right .get, .top .right .ca-chip { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .band, .coin, .two-col { grid-template-columns: minmax(0, 1fr); }
  .rows .r { grid-template-columns: 90px minmax(0, 1fr) 90px; }
  .rows .r .s { grid-column: 2 / -1; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .top .wrap { gap: 12px; height: 64px; }
  .who .lbl { display: none; }
  .steps, .grid-3, .grid-2, .grid-4, .tools { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .band { padding: 24px; }
  .card { padding: 22px; }
  .section { padding-top: 64px; }
  .pair .row { grid-template-columns: 1fr; gap: 2px; }
  .pair .addr { font-size: 13px; }
  .askbox { flex-direction: column; }
  .askbox input { height: 44px; }
  .form .row2 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr auto; }
  .contact .addr { grid-column: 1 / -1; }
  .rows .r { grid-template-columns: 1fr; gap: 4px; }
  .rows .r.h { display: none; }
  .rows .d { text-align: left; }
  .small-item { grid-template-columns: 1fr; }
  .dialog { padding: 24px 20px; }
  .scrim { align-items: end; padding: 0; }
  .dialog { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
@media (max-width: 360px) {
  .brand { font-size: 20px; }
  .h-xl { font-size: 40px; }
}

/* icons sit in the line of text they belong to; tags never stretch in a grid */
.ico { display: inline-block; vertical-align: -0.2em; flex: none; }
.verdict .tag, .twin-item .tag, .empty .tag { justify-self: start; }
.verdict p { display: flex; gap: 8px; align-items: baseline; }
.notice > .ico { margin-top: 2px; }
.drop input[type='file'] { color: var(--mute); font-size: 14px; }
.drop input[type='file']::file-selector-button { height: 36px; padding: 0 14px; margin-right: 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 600 14px var(--text); cursor: pointer; }

.add-contact { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr) auto; gap: 10px; margin-top: 14px; }
.select { max-width: 100%; }
@media (max-width: 720px) {
  .add-contact { grid-template-columns: minmax(0, 1fr); }
  /* a whole address on one line where it fits, so the real one and its twin line up character for character */
  .pair .addr { font-size: max(10px, min(15px, calc((100vw - 84px) / 26.6))); letter-spacing: 0; }
}
@media (max-width: 360px) {
  .btn { white-space: normal; height: auto; min-height: 44px; padding: 10px 14px; text-align: center; }
}
