@font-face { font-family: Newsreader; src: url("../fonts/newsreader-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; }
.buy-page { min-height: 100vh; }
.buy-back { color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.buy-back:hover { color: var(--accent-strong); }
.buy-back span { padding-left: 3px; }
.buy-main { position: relative; isolation: isolate; min-height: calc(100vh - 60px); padding: clamp(46px, 6vw, 88px) 0 90px; overflow: hidden; background: radial-gradient(ellipse at 78% -20%, rgba(187, 167, 130, .14), transparent 60%), var(--bg); }
.buy-glow { position: absolute; z-index: -1; border: 1px solid rgba(145, 135, 118, .13); border-radius: 50%; pointer-events: none; }
.buy-glow-one { width: 680px; height: 680px; top: -400px; right: -110px; }
.buy-glow-two { width: 920px; height: 920px; left: -540px; bottom: -530px; }
.buy-wrap { max-width: 1160px; }
.buy-heading { max-width: 760px; margin-bottom: 40px; }
.buy-eyebrow, .buy-aside-eyebrow { margin-bottom: 16px; color: var(--accent-strong); font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.buy-eyebrow-line { display: inline-block; width: 22px; height: 1px; margin: 0 8px 4px 0; background: currentColor; }
.buy-heading h1 { max-width: 14ch; font-family: Newsreader, Georgia, serif; font-size: clamp(48px, 6vw, 78px); font-weight: 500; letter-spacing: -.057em; line-height: .99; }
.buy-heading > p:last-child { max-width: 59ch; margin-top: 22px; color: var(--muted); font-size: clamp(16px, 2vw, 18px); line-height: 1.6; }
.buy-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 20px; align-items: stretch; }
.buy-card, .buy-aside { border-radius: 24px; box-shadow: 0 22px 70px rgba(40, 34, 26, .08); }
.buy-card { min-width: 0; padding: clamp(26px, 4vw, 46px); border: 1px solid var(--border); background: var(--surface); }
.buy-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 36px; }
.buy-step, .buy-lock { font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.buy-step { color: var(--accent-strong); }
.buy-lock { color: var(--muted); letter-spacing: .03em; text-transform: none; }
.buy-lock span { color: var(--ok); margin-right: 3px; }
.buy-card h2 { font-family: Newsreader, Georgia, serif; font-size: clamp(29px, 3.2vw, 39px); font-weight: 500; letter-spacing: -.045em; }
.buy-card-lede { max-width: 60ch; margin: 8px 0 28px; color: var(--muted); }
.buy-loading, .buy-notice { padding: 20px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg); color: var(--muted); }
.buy-fieldset { margin: 0 0 27px; padding: 0; border: 0; }
.buy-fieldset legend { margin-bottom: 13px; font-size: .77rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.buy-options { display: grid; gap: 10px; }
.buy-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 13px 17px; border: 1.5px solid var(--border-strong); border-radius: 13px; background: var(--bg); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.buy-option:hover { border-color: var(--accent); }
.buy-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-ring); }
.buy-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.buy-option-text { display: flex; align-items: center; gap: 11px; min-width: 0; }
.buy-radio { flex: none; width: 18px; height: 18px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--surface); }
.buy-option:has(input:checked) .buy-radio { border: 5px solid var(--accent); }
.buy-option strong { color: var(--text); font-size: .98rem; font-weight: 650; }
.buy-option-price { color: var(--accent-strong); font-size: 1.05rem; font-weight: 750; white-space: nowrap; }
.buy-referral { margin: 2px 0 25px; }
.buy-referral label { display: block; margin-bottom: 9px; font-weight: 700; }
.buy-referral label span { margin-left: 4px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.buy-referral input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--bg); color: var(--text); font: inherit; }
.buy-referral input:focus { outline: 2px solid var(--accent-ring); border-color: var(--accent); }
.buy-referral p, .buy-small { margin-top: 7px; color: var(--muted); font-size: .79rem; }
.buy-submit { width: 100%; justify-content: space-between; }
.buy-error { margin: 14px 0; padding: 11px 13px; border: 1px solid var(--bad); border-radius: 9px; color: var(--bad); background: var(--bg); font-size: .9rem; }
.buy-aside { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 43px); background: #26384a; color: #f4eee4; }
.buy-aside::after { position: absolute; top: -110px; right: -130px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; content: ""; pointer-events: none; }
.buy-aside-mark { display: block; width: 50px; height: 50px; margin-bottom: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; }
.buy-aside-eyebrow { color: #d5bd8e; }
.buy-aside h2 { max-width: 12ch; margin-bottom: 36px; font-family: Newsreader, Georgia, serif; font-size: clamp(33px, 3.4vw, 43px); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.buy-aside ol { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.buy-aside li { display: grid; grid-template-columns: 29px 1fr; gap: 12px; }
.buy-aside li > span { color: #d5bd8e; font-size: .77rem; font-weight: 750; }
.buy-aside li strong { display: block; margin-bottom: 3px; font-size: .96rem; }
.buy-aside li p { color: #cad3dc; font-size: .87rem; line-height: 1.55; }
.buy-aside-note { margin-top: 39px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.18); color: #cad3dc; font-size: .82rem; }
.buy-order-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--bg); font-size: .78rem; font-weight: 700; }
.buy-order-status > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.buy-order-status[data-state="approved"] > span:first-child { background: var(--ok); }
.buy-order-status[data-state="rejected"] > span:first-child, .buy-order-status[data-state="expired"] > span:first-child { background: var(--bad); }
.buy-order-details { display: grid; gap: 0; margin-bottom: 24px; padding: 3px 19px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg); }
.buy-order-details > div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; }
.buy-order-details > div + div { border-top: 1px solid var(--border); }
.buy-order-details span { color: var(--muted); }
.buy-order-details strong { text-align: right; overflow-wrap: anywhere; }
.buy-instructions { display: grid; gap: 9px; margin-bottom: 22px; padding: 19px; border-radius: 13px; background: var(--accent-soft); overflow-wrap: anywhere; }
.buy-instructions h3 { font-size: 1rem; }
.buy-instructions p { color: var(--muted); font-size: .89rem; }
.buy-instructions dl { display: grid; gap: 11px; margin: 6px 0 0; }
.buy-instructions dl div { display: grid; gap: 1px; }
.buy-instructions dt { color: var(--muted); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.buy-instructions dd { margin: 0; font-family: var(--mono); font-size: .86rem; overflow-wrap: anywhere; }
.buy-proof { display: grid; gap: 12px; margin-bottom: 21px; padding: 18px; border: 1px solid var(--border); border-radius: 13px; }
.buy-proof label { font-weight: 700; }
.buy-proof p { color: var(--muted); font-size: .82rem; }
.buy-proof input { max-width: 100%; font: inherit; font-size: .84rem; }
.buy-proof button { justify-self: start; }
.buy-key { margin: 22px 0; padding: 18px; border: 1px solid var(--ok-line); border-radius: 13px; background: var(--ok-soft); }
.buy-key > span { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.buy-key > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 10px; }
.buy-key code { font-family: var(--mono); font-size: 1.07rem; font-weight: 700; overflow-wrap: anywhere; }
.buy-key p { margin-top: 8px; color: var(--ok); font-size: .8rem; }
.buy-download-link { display: inline-block; margin-top: 15px; font-weight: 700; }
.buy-refresh { padding: 0; border: 0; background: none; color: var(--accent-strong); font: inherit; font-size: .87rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.buy-another { margin-left: 18px; }
.buy-receipt { margin: 10px 0 20px; padding: 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.buy-receipt button { padding: 0; border: 0; background: none; color: var(--accent-strong); font: inherit; font-size: .87rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.buy-receipt p { margin-top: 5px; color: var(--muted); font-size: .78rem; }
[hidden] { display: none !important; }
@media (max-width: 850px) { .buy-layout { grid-template-columns: 1fr; } .buy-aside { display: none; } }
@media (max-width: 500px) { .buy-heading h1 { font-size: clamp(42px, 12vw, 58px); } .buy-card { padding: 24px 18px; } .buy-card-top { margin-bottom: 25px; } .buy-order-details > div { font-size: .88rem; } }

.buy-qr { margin: 20px 0; display: grid; justify-items: center; gap: 12px; }
.buy-qr img { max-width: 100%; height: auto; border-radius: 12px; background: white; }
.buy-qr figcaption { max-width: 34ch; color: var(--muted); font-size: .82rem; text-align: center; }

.buy-upgrade { margin-bottom: 25px; border: 1px solid var(--border); border-radius: 11px; padding: 14px; background: var(--bg); }
.buy-upgrade summary { cursor: pointer; font-weight: 700; }
.buy-upgrade summary > span { margin-left: 4px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.buy-upgrade .buy-referral { margin: 16px 0 0; }

/* Receipts put the payment itself first and share space with the address QR. */
.buy-receipt-page .buy-main { padding: 26px 0 36px; }
.buy-receipt-page .buy-heading { margin-bottom: 20px; max-width: none; }
.buy-receipt-page .buy-heading h1 { max-width: none; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.buy-receipt-page .buy-heading > p:last-child { margin-top: 9px; font-size: 15px; }
.buy-receipt-page .buy-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); align-items: start; }
.buy-receipt-page .buy-card { padding: 25px 28px; }
.buy-receipt-page .buy-card-top { display: none; }
.buy-receipt-page .buy-order-status { margin-bottom: 10px; }
.buy-receipt-page .buy-card-lede { margin-bottom: 15px; font-size: 14px; }
.buy-receipt-page .buy-order-details { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; padding: 5px 14px; column-gap: 18px; }
.buy-receipt-page .buy-order-details > div { padding: 8px 0; font-size: 14px; }
.buy-receipt-page .buy-order-details > div:nth-child(2) { border-top: 0; }
.buy-payment-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.buy-payment-layout:has(.buy-qr:not([hidden])) { grid-template-columns: minmax(0, 1fr) 190px; }
.buy-payment-layout .buy-instructions { margin: 0; padding: 16px; }
.buy-payment-layout .buy-qr { margin: 0; gap: 7px; }
.buy-payment-layout .buy-qr img { width: 180px; height: 180px; }
.buy-payment-layout .buy-qr figcaption { font-size: 12px; line-height: 1.45; }
.buy-receipt-page .buy-proof { margin-top: 15px; padding: 14px; gap: 8px; }
.buy-receipt-page .buy-receipt { margin: 16px 0 12px; padding: 12px 14px; }
.buy-receipt-page .buy-aside { padding: 26px; }
.buy-receipt-page .buy-aside-mark { width: 40px; height: 40px; margin-bottom: 23px; }
.buy-receipt-page .buy-aside h2 { margin-bottom: 22px; font-size: 31px; }
.buy-receipt-page .buy-aside ol { gap: 19px; }
.buy-receipt-page .buy-aside-note { margin-top: 25px; padding-top: 16px; }
.buy-options:has(input[name="asset"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.buy-option:has(input[name="asset"]) { flex-wrap: wrap; gap: 5px; padding: 12px 14px; }
.buy-option:has(input[name="asset"]) .buy-option-price { padding-left: 29px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; color: var(--muted); }
@media (max-width: 850px) { .buy-receipt-page .buy-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .buy-receipt-page .buy-card { padding: 22px 18px; }
  .buy-receipt-page .buy-order-details { grid-template-columns: 1fr; }
  .buy-receipt-page .buy-order-details > div:nth-child(2) { border-top: 1px solid var(--border); }
  .buy-payment-layout:has(.buy-qr:not([hidden])) { grid-template-columns: 1fr; }
  .buy-payment-layout .buy-qr { justify-self: center; }
  .buy-options:has(input[name="asset"]) { grid-template-columns: 1fr; }
}

.buy-payment-layout .buy-instructions dd { font-size: 14px; line-height: 1.5; }
.buy-payment-layout .buy-instructions dl > div:last-child dd { font-size: 17px; font-weight: 750; color: var(--accent-strong); }
/* The order has its own heading; do not repeat the pre-purchase marketing panel. */
.buy-receipt-page .buy-heading,
.buy-receipt-page .buy-card > h2,
.buy-receipt-page .buy-card > .buy-card-lede { display: none; }
