/* The checkout borrows BOSS's own palette (web/static/css/boss.css), so
   pay.<domain> reads as the same site. */
:root {
  --bg: #f7f7f5; --surface: #ffffff; --surface-alt: #f1f0ec; --fg: #17181c; --muted: #62666f;
  --border: #e2e1db; --primary: #1f3a5f; --primary-dark: #16283f; --primary-fg: #ffffff; --primary-tint: #edf1f5;
  --positive: #15754d; --positive-tint: #e9f4ef; --negative: #a13529; --negative-tint: #f8ece9;
  --warn-bg: #f9f0e2; --warn-fg: #7c531a; --gold: #8a6512;
  --radius: 8px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113; --surface: #17181b; --surface-alt: #1d1f23; --fg: #e9e8e4; --muted: #9a9da5;
    --border: #2a2c31; --primary: #9db8d9; --primary-dark: #c2d5ea; --primary-fg: #10202f; --primary-tint: #1a2330;
    --positive: #6fcf9f; --positive-tint: #15261e; --negative: #ef9a8f; --negative-tint: #2b1a18;
    --warn-bg: #2a2216; --warn-fg: #e3c18a; --gold: #e0b75a;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--sans); padding: 0 16px 48px; }
main { max-width: 720px; margin: 0 auto; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.2rem 0 .4rem; text-wrap: balance; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
a { color: var(--primary); }
code, textarea { font-family: var(--mono); }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.5rem; max-width: 62ch; }
.fine { color: var(--muted); font-size: .88rem; }
.label { color: var(--muted); font-size: .85rem; margin: .2rem 0; }
.testnet { margin: 0 -16px; padding: .5rem 16px; background: var(--warn-bg); color: var(--warn-fg); font-weight: 600; text-align: center; font-size: .9rem; }
.top { max-width: 720px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .08em; text-decoration: none; color: var(--fg); }
.top nav { display: flex; gap: 1rem; font-size: .9rem; flex-wrap: wrap; }

.plans { display: grid; gap: .75rem; }
.plan { position: relative; display: grid; gap: .25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem .9rem 2.6rem; cursor: pointer; }
.plan input { position: absolute; left: 1rem; top: 1.15rem; accent-color: var(--primary); }
.plan:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.plan:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.plan.soldout { opacity: .55; cursor: not-allowed; }
.plan.founder { background: linear-gradient(var(--surface), var(--surface)) padding-box; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.plan-name { font-weight: 700; }
.founder .plan-name::after { content: " ★"; color: var(--gold); }
.plan-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price small { font-weight: 400; color: var(--muted); margin-left: .15rem; }
.plan-desc { color: var(--muted); font-size: .92rem; }
.plan-slots { color: var(--gold); font-size: .85rem; font-weight: 600; }
.renew summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
textarea, input[type=text], input:not([type]) { width: 100%; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--fg); font-size: .9rem; }
textarea { resize: vertical; word-break: break-all; }
button, .button { display: inline-block; font: inherit; font-size: .9rem; padding: .45rem .9rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; text-decoration: none; }
button.primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); font-weight: 600; padding: .65rem 1.4rem; justify-self: start; }
button.primary:hover { background: var(--primary-dark); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: progress; }
.error { color: var(--negative); background: var(--negative-tint); padding: .6rem .8rem; border-radius: var(--radius); margin: 0; }
.warn { color: var(--warn-fg); background: var(--warn-bg); padding: .6rem .8rem; border-radius: var(--radius); font-size: .9rem; }
.how { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.how ol { padding-left: 1.2rem; margin: 0 0 .6rem; }

.pay, .pass, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.card { display: grid; gap: .6rem; }
.pay-grid { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.qr { background: #fff; padding: 8px; border-radius: var(--radius); max-width: 100%; height: auto; image-rendering: pixelated; }
.amount { font-size: 1.8rem; font-weight: 800; margin: 0 0 .5rem; font-variant-numeric: tabular-nums; }
.net { font-family: var(--mono); font-size: .8rem; }
.addr { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.addr code { font-size: .88rem; word-break: break-all; background: var(--surface-alt); padding: .3rem .45rem; border-radius: 5px; }
.status { font-weight: 600; margin: .5rem 0; }
.status.ok { color: var(--positive); }
.txs { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; }
.txs a { word-break: break-all; }
.pass { border-color: var(--positive); }
.code-value { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.code-value code { font-size: 1.15rem; letter-spacing: .06em; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .status:not(.ok)::after { content: ""; display: inline-block; width: .6em; height: .6em; margin-left: .5em; border-radius: 50%; background: var(--primary); animation: pulse 1.2s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .2; } }
