/* Reinpay theme v2: near-black, sharp edges, mono caps, mint and brass. Loaded after style.css and extra.css. */
:root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
  --bg: #070a09; --paper: #0d1210; --ink: #e8eee9; --muted: #8a978f; --line: #1c2622;
  --rein: #8ccdb0; --rein-ink: #070a09; --brass: #e2b057; --ok: #72c793; --wait: #e2b057; --stop: #f0836e;
  --card: #0b100e; --edge: rgba(140, 205, 176, 0.22);
  color-scheme: dark;
}
body { font-size: 15px; line-height: 1.65; background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -0.025em; }
::selection { background: rgba(140, 205, 176, 0.3); }
.wrap { max-width: 1240px; }

/* nav: mono caps, square icon buttons */
nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 10, 9, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav .wrap { min-height: 60px; }
.navlinks { gap: 26px !important; }
.navlinks > a:not(.btn) { font: 500 12px var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; text-decoration: none; }
.navlinks > a:not(.btn):hover, .navlinks > a.on { color: var(--ink) !important; }
.navlinks a[aria-label] { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; letter-spacing: 0 !important; }
.navlinks a[aria-label]:hover { border-color: var(--edge); }

/* buttons: sharp, caps on the primary */
.btn { border-radius: 6px !important; font-weight: 600; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.btn:not(.ghost) { background: var(--rein); color: var(--rein-ink); }
.btn:not(.ghost):hover { transform: translateY(-1px); background: #a3dbc2; }
.btn.ghost { background: transparent; border: 1px solid var(--line) !important; color: var(--ink); }
.btn.ghost:hover { border-color: var(--edge) !important; }
.btn.launch { background: var(--brass) !important; color: #140f05 !important; font: 600 12px var(--mono) !important; letter-spacing: .16em; text-transform: uppercase; padding: 11px 18px !important; }
.btn.launch svg { display: none; }

/* hero with a pixel mosaic behind it */
.hero { position: relative; overflow: hidden; }
#mosaic { position: absolute; left: 0; right: 0; top: 0; height: 340px; width: 100%; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
.hero > .wrap { position: relative; z-index: 1; }
.hero .eyebrow:first-child { font: 500 11.5px var(--mono); letter-spacing: .16em; color: var(--rein); }
.hero h1 { font-size: clamp(40px, 5vw, 68px) !important; line-height: 1.02; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--rein); }
.hero .lede { font-size: 16px; color: var(--muted); max-width: 54ch; }
.hero .note { font-size: 12.5px; color: var(--muted); }

/* surfaces: flat, sharp, thin borders */
.receipt, .card, .stat-tile, .tokenbox, .flowbox, .bullet, .step, .cta-box, .panel, .box, .tablewrap, .meter, details.faq, .app, .fundbox, .cmd pre {
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; }
.card, .stat-tile, .bullet { transition: border-color .2s ease, background .2s ease; }
.card:hover, .stat-tile:hover, .bullet:hover { border-color: var(--edge) !important; background: #0e1512 !important; }
.stat-tile b { font: 600 40px var(--mono) !important; color: var(--ink); letter-spacing: -.03em; }
.tokenbox { border-color: rgba(226, 176, 87, .3) !important; }
.cta-box { background: linear-gradient(135deg, #0f2a21, #0a1813) !important; border-color: var(--edge) !important; }

/* section heads: mono caps label */
.section-head .eyebrow, .page-head .eyebrow { font: 500 11.5px var(--mono) !important; letter-spacing: .16em; color: var(--brass); }
.section-head h2 { font-size: clamp(26px, 2.8vw, 38px) !important; line-height: 1.1; }
.page-head h1 { font-size: clamp(34px, 4vw, 52px) !important; }
.section-head p { color: var(--muted); }
.toolrow code { color: var(--rein); }

/* token marquee */
.ticker { padding: 26px 0 8px; }
.ticker-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ticker-head b { color: var(--rein); font-weight: 500; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee + .marquee { margin-top: 10px; }
.mtrack { display: flex; gap: 10px; width: max-content; animation: mq var(--dur, 60s) linear infinite; }
.marquee.rev .mtrack { animation-direction: reverse; }
.marquee:hover .mtrack { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.chip { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; width: 228px; padding: 11px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.chip:hover { border-color: var(--edge); }
.chip .mono-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--mono); color: #070a09; }
.chip b { display: block; font: 700 14.5px var(--display); letter-spacing: -.01em; }
.chip small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.chip i { font: normal 500 9.5px var(--mono); letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; }
.chip i.v { color: var(--rein); border-color: var(--edge); }

/* directory */
.dir { padding: 36px 0 10px; }
.dir-head { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; margin-bottom: 16px; }
.dir-head b { font: 500 12px var(--mono); letter-spacing: .16em; color: var(--brass); text-transform: uppercase; }
.dir-head span { color: var(--muted); font-size: 14.5px; }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dir-col { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px 8px; }
.dir-col h4 { margin: 0 0 12px; font: 500 11px var(--mono); letter-spacing: .16em; color: var(--muted); }
.dir-col a { display: block; text-decoration: none; padding: 9px 0 13px; }
.dir-col a b { font: 600 15px var(--display); color: var(--ink); }
.dir-col a b::after { content: " →"; color: var(--rein); transition: margin .15s; }
.dir-col a:hover b::after { margin-left: 4px; }
.dir-col a span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

footer { border-top: 1px solid var(--line); }

@media (max-width: 900px) { .dir-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .hero h1 { font-size: clamp(34px, 9.6vw, 46px) !important; } .stat-tile b { font-size: 32px !important; } .chip { width: 200px; } }
@media (prefers-reduced-motion: reduce) { .mtrack { animation: none; } .btn, .card, .stat-tile, .bullet { transition: none; } }
.chip { width: 248px; grid-template-columns: 34px minmax(0, 1fr) auto; }
.chip i { white-space: nowrap; }
.chip small { max-width: 120px; }
.dir + section, .dir + .flow, .dir ~ .flow { margin-top: 28px; }
section.flow, .flow { margin-top: 28px; }
