:root {
  --bg: #07090a;
  --bg-raised: #10150f;
  --bg-band: #0c110b;
  --line: #1a2318;
  --line-strong: #2c3a2a;
  --panel-line: #22301f;
  --text: #e8ece6;
  --muted: #a9b1a6;
  --faint: #8a9487;
  --accent: #c8ff6a;
  --accent-soft: #1a2617;
  --code-key: #ffb86b;
  --rec: #ff8a6b;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #e4ffb8; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
.btn { border: 1px solid transparent; font-family: var(--sans); }
.btn-ghost { background: transparent; }
.muted { color: var(--muted); line-height: 1.6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.3px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; flex-grow: 1; justify-content: center; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; border-radius: 10px; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { background: #dcff9e; color: var(--bg); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { color: var(--text); border-color: #4a5e46; }
.btn-small { min-height: 44px; padding: 10px 18px; font-family: var(--mono); font-size: 14px; border-radius: 8px; }

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-top: 80px; padding-bottom: 40px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 99px; padding: 8px 16px; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); line-height: 0.96; letter-spacing: -0.035em; font-weight: 700; max-width: 960px; }
.hero h1 span { color: var(--accent); }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.fineprint { font-family: var(--mono); font-size: 13px; color: var(--faint); }

/* overlay preview */
.preview { padding-top: 24px; padding-bottom: 96px; }
.wire { display: block; width: 100%; height: 70px; }
.panels { display: flex; flex-wrap: wrap; gap: 16px; }
.panel { background: var(--bg-raised); border: 1px solid var(--panel-line); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.panel-code { flex: 2 1 420px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; display: flex; flex-direction: column; }
.panel-code .keys { font-family: var(--sans); }
.complexity { margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.panel-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.panel-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-family: var(--sans); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pill { font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 99px; }
.badge { font-size: 12px; border: 1px solid #3a4a35; padding: 1px 8px; border-radius: 99px; }
.kw { color: var(--code-key); }
.comment { color: var(--faint); }
.indent { padding-left: 20px; }
.label { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tag { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.step-now { background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 12.5px; }
.rec { font-family: var(--mono); font-size: 12px; color: var(--rec); }
.meter { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.meter span { flex: 1; background: var(--rec); border-radius: 2px; }
.heard { color: #c9d0c5; line-height: 1.5; }
.panel-row { display: flex; justify-content: space-between; gap: 8px; }
.script { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.script li { padding: 6px 10px; border-radius: 8px; line-height: 1.45; }
.script li.done { opacity: 0.45; }
.script li.now { background: var(--accent-soft); box-shadow: inset 0 0 0 1px #2f4527; }
.script code { font-family: var(--mono); font-size: 12.5px; }
.script em { color: var(--muted); }
.progress { display: block; height: 2px; margin-top: 8px; background: #2a3a25; border-radius: 2px; overflow: hidden; }
.progress span { display: block; width: 60%; height: 100%; background: var(--accent); }
.ok { font-size: 13px; color: var(--accent); }
.ready { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text); background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; }
.caret { color: var(--rec); margin-left: 2px; }
.keys { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
kbd.key { align-self: auto; font-size: 11.5px; padding: 2px 6px; border-radius: 5px; color: var(--text); }

/* sections */
.band { border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-band); border-top: 1px solid var(--line); }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 44px; }
.section h2 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.03em; line-height: 1.08; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; }
kbd { align-self: flex-start; font-family: var(--mono); font-size: 15px; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; }
.step h3 { font-size: 22px; }
.step p, .feature p { color: var(--muted); line-height: 1.6; font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 19px; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 380px; }
.split p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding-top: 104px; padding-bottom: 104px; }
.cta h2 { font-size: clamp(40px, 6vw, 56px); letter-spacing: -0.03em; }
.cta p { color: var(--muted); font-size: 18px; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; font-size: 14px; color: var(--faint); }
.site-footer a { color: var(--faint); }

/* pricing and checkout */
.pricing-section { align-items: center; gap: 24px; text-align: center; }
.pricing-intro { color: var(--muted); font-size: 19px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 900px; margin: 16px 0 8px; text-align: left; }
.price-card { display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg); padding: 32px; }
.price-card-featured { border-color: var(--accent); background: linear-gradient(150deg, #172211, var(--bg) 65%); }
.plan-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.plan-heading h3 { font-size: 24px; }
.saving { background: var(--accent); color: var(--bg); border-radius: 5px; padding: 6px 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.price { font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -3px; }
.price span { color: var(--muted); font-size: 16px; letter-spacing: 0; font-weight: 400; }
.plan-detail { color: var(--muted); }
.plan-features { display: grid; gap: 14px; list-style: none; margin: 8px 0 16px; padding: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.plan-features li { display: flex; gap: 10px; }
.plan-features li::before { content: '✓'; color: var(--accent); }
.price-card .btn { width: 100%; margin-top: auto; }
.crypto-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 14px; }
.network-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: none; }
.pricing-section .fineprint { line-height: 1.7; }
.feedback { min-height: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.feedback:empty { min-height: 0; }
.error { color: #ffb5a3; }
dialog { width: min(480px, calc(100% - 32px)); padding: 0; background: var(--bg-raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: 18px; max-height: calc(100dvh - 32px); }
dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
.checkout-form { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 36px; }
.checkout-form .eyebrow { align-self: flex-start; font-size: 10px; }
.checkout-form h2 { font-size: 30px; letter-spacing: -1px; }
.checkout-summary { color: var(--accent); }
.checkout-form label { font-size: 14px; margin-top: 6px; }
input { min-width: 0; width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 14px; background: var(--bg); color: var(--text); }
.checkout-form input { margin-top: -8px; }
.checkout-form .muted, .checkout-form .fineprint { font-size: 12px; line-height: 1.6; }
.dialog-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 26px; }
.dialog-close:hover { background: var(--accent-soft); color: var(--text); }
.back-link { margin-left: auto; font-size: 14px; color: var(--muted); text-decoration: none; }
.pay-wrap { max-width: 880px; display: flex; flex-direction: column; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.pay-wrap > .eyebrow { align-self: flex-start; }
.pay-wrap h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -1.8px; line-height: 1.08; max-width: 680px; }
.pay-summary { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.payment-card { display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line-strong); background: var(--bg-raised); padding: 32px; border-radius: 16px; }
.payment-card h2 { font-size: 25px; letter-spacing: -.5px; }
.payment-card .fineprint { font-size: 12px; line-height: 1.7; }
.token-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.token-option { display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 22px 16px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--bg); }
.token-option strong { font-size: 22px; }
.token-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.token-quote { color: var(--muted); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
.payment-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.window-label { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.network-warning { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; padding: 12px 16px; line-height: 1.6; }
.payment-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 28px; align-items: start; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; background: #fff; }
.qr-wrap img { display: block; max-width: 100%; height: auto; }
.qr-wrap .label { font-size: 10px; color: #394834; }
.payment-values { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.amount-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.payment-amount { font-family: var(--mono); font-size: 24px; letter-spacing: -.7px; overflow-wrap: anywhere; }
.copy-button { color: var(--accent); background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px 10px; font-size: 12px; min-height: 36px; }
.copy-button:hover { border-color: var(--accent); }
.address-input { font-family: var(--mono); font-size: 12px; padding: 12px; }
.payment-status { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-strong); line-height: 1.6; }
.payment-card > .muted { font-size: 14px; }
.receipt-check { display: grid; place-items: center; width: 56px; height: 56px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; font-size: 28px; }
.receipt-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 24px; margin: 0; padding: 24px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); font-size: 14px; }
.receipt-facts dt { color: var(--muted); }
.receipt-facts dd { margin: 0; overflow-wrap: anywhere; }
.receipt-facts .mono { font-size: 12px; }
.pay-footnote { font-size: 12px; color: var(--faint); line-height: 1.7; text-align: center; }
.checkout-account-links { color:var(--muted); font-size:12px; line-height:1.6; }
.account-wrap { max-width:960px; padding-top:64px; padding-bottom:80px; display:flex; flex-direction:column; gap:24px; }
.account-wrap > .eyebrow { align-self:flex-start; }
.auth-panel { max-width:480px; width:100%; margin:0 auto; }
.auth-panel h1 { font-size:34px; letter-spacing:-1px; }
.auth-tabs { display:flex; gap:8px; padding:4px; border:1px solid var(--line-strong); border-radius:9px; }
.auth-tabs button { flex:1; min-height:40px; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:14px; }
.auth-tabs button[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent); }
.account-form,.account-field { display:flex; flex-direction:column; gap:12px; }
.account-form label { font-size:14px; }
.account-form .btn { margin-top:8px; }
.text-button { color:var(--accent); background:none; border:0; padding:4px 0; text-align:left; font-size:13px; }
.guest-link { font-size:13px; line-height:1.6; padding-top:16px; border-top:1px solid var(--line-strong); }
.billing-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; margin-bottom:32px; }
.billing-heading h1 { font-size:48px; letter-spacing:-2px; margin-bottom:10px; }
#billing-title:focus { outline:none; }
.billing-heading p { overflow-wrap:anywhere; }
.billing-plan h2 { font-size:38px; color:var(--accent); }
.billing-plan .btn { align-self:flex-start; }
.billing-history { display:flex; flex-direction:column; gap:18px; margin-top:48px; }
.billing-history h2 { font-size:26px; }
.billing-history > .muted { font-size:14px; }
.billing-orders { display:grid; gap:12px; }
.billing-order { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:20px; padding:24px; background:var(--bg-raised); border:1px solid var(--line-strong); border-radius:12px; }
.billing-order h3 { font-size:17px; margin-bottom:8px; }
.billing-order p { font-size:11px; line-height:1.7; }
.billing-status { font-family:var(--mono); font-size:11px; color:var(--muted); }
.billing-status.is-paid { color:var(--accent); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-nav { justify-content: flex-start; }
  .hero { padding-top: 48px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .site-nav { order: 3; width: 100%; gap: 20px; }
  .site-header { gap: 18px; }
  .site-header > .btn { margin-left: auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { padding: 26px; }
  .pay-wrap { padding-top: 32px; }
  .payment-card { padding: 22px; }
  .payment-layout { grid-template-columns: 1fr; }
  .qr-wrap { width: 224px; margin: 0 auto; }
  .token-options { gap: 8px; }
  .token-option { padding: 18px 10px; }
  .token-quote { font-size: 10px; }
  .checkout-form { padding: 28px; }
  .account-wrap { padding-top:32px; }
  .billing-order { grid-template-columns:minmax(0,1fr) auto; gap:14px; padding:20px; }
  .billing-order > a { grid-column:1/-1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.download-link { width: 100%; text-align: center; }
.download-link[aria-disabled="true"] { opacity: .5; cursor: default; }
@media (max-width: 800px) { .download-grid { grid-template-columns: 1fr; } }
