/* pay.html only. Load after style.css. */
h4 { font: 600 var(--text-body)/1.3 var(--body); margin: 0; }

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero .wrap { gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.note { color: var(--muted); font-size: var(--text-secondary); margin-top: 1.5rem; max-width: 46rem; }

.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--rule-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.facts dt, .facts dd { margin: 0; padding: .75rem 1rem; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: var(--text-secondary); font-weight: 500; padding-top: .85rem; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }

/* addresses */
.wallets { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.wallet { background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .wallet.has-qr { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; } }
.wallet h3 { font-size: 1.5rem; }
.wallet .what { color: var(--muted); margin-top: .3rem; }
.addr { display: block; margin-top: 1.1rem; background: var(--tint); border: 2px solid var(--accent); border-radius: 8px; padding: .9rem 1rem; font: 500 clamp(.95rem, 2.4vw, 1.15rem)/1.5 var(--mono); overflow-wrap: anywhere; color: var(--ink); }
.addr b { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .9rem; }
.copyrow output { font-size: var(--text-secondary); color: var(--muted); }
.checks { margin: 1.25rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.checks li + li { margin-top: .4rem; }
.checks strong { color: var(--ink); font-weight: 600; }
.checks code { font-size: .9em; overflow-wrap: anywhere; }
.qr { margin: 0; }
.qr .tile { background: #ffffff; border: 1px solid var(--rule-strong); border-radius: 8px; padding: .6rem; max-width: 280px; }
.qr svg { display: block; width: 100%; height: auto; }
.qr .open { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; font-weight: 600; }
.qr figcaption { font-size: var(--text-secondary); color: var(--muted); margin-top: .4rem; max-width: 300px; }
.warn { border-left: 4px solid var(--accent); background: var(--surface); padding: 1.1rem 1.25rem; border-radius: 0 12px 12px 0; margin-top: 1.5rem; max-width: 52rem; }
.warn h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.warn p { color: var(--muted); }
.warn p + p { margin-top: .5rem; }

/* payment routes */
.routes { display: grid; gap: 1.5rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.route { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.5rem 1.4rem; }
.route h3 { font-size: 1.35rem; }
.route > p { margin: .4rem 0 1.25rem; color: var(--muted); font-size: var(--text-secondary); }
.flow { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; gap: 1rem; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .2rem .7rem; }
.flow li::before { content: counter(f); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 400 1rem/1 var(--display); background: var(--accent); color: var(--accent-ink); border: 0; }
.flow h4 { align-self: center; }
.flow p { color: var(--muted); font-size: var(--text-secondary); grid-column: 2; }
.flow strong { color: var(--ink); font-weight: 600; }

/* invoice link anatomy */
.link { font: var(--text-secondary)/1.7 var(--mono); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: .9rem 1rem; overflow-wrap: anywhere; margin-top: 2rem; color: var(--muted); }
.link span { color: var(--ink); background: var(--tint); border-radius: 3px; padding: 0 .15rem; }

/* tables */
.table { width: 100%; margin-top: 1.5rem; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--surface); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table th, .table td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table tr:last-child td { border-bottom: 0; }
.table thead th { font-size: var(--text-secondary); font-weight: 500; color: var(--muted); padding-block: .65rem; }
.table td:first-child { font-weight: 600; width: 34%; }
.table td:last-child { color: var(--muted); }
.table td code { font-size: .9em; }
@media (max-width: 719.98px) {
  .table, .table tbody { display: block; }
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--rule); padding: .9rem 1rem; }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: block; border: 0; padding: 0; width: auto; }
  .table td:first-child { width: auto; margin-bottom: .25rem; }
}
.table-cap { font-size: var(--text-secondary); color: var(--muted); margin-top: .8rem; max-width: 46rem; }

/* currency logos (official marks, see CREDITS.md) */
.coin-row { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.coin-row li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.coin-row img { width: 32px; height: 32px; flex: none; }
.coin-head { display: flex; align-items: center; gap: .7rem; }
.coin-head .logos { display: inline-flex; flex: none; }
.coin-head .logos img { width: 32px; height: 32px; }
.coin-head .logos img + img { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); border-radius: 50%; }

/* prices table: the price column stays readable */
.table.prices td:nth-child(2) { font-weight: 500; color: var(--ink); }
@media (min-width: 720px) { .table.prices td:first-child { width: 28%; } .table.prices td:nth-child(2) { width: 24%; } }
@media (max-width: 719.98px) { .table.prices td:nth-child(2) { margin-bottom: .25rem; } }
