/* glintv Pro purchase pages (pro.html, pro-done.html, devices.html). Loaded after site.css. No monospace anywhere. */
.buy { padding: 72px 0 0; position: relative; }
.buy > .wrap { border-top: 1px solid var(--line); padding-top: 28px; }
.buy .wrap { position: relative; }
.buy h1 { font-size: clamp(36px, 5.4vw, 58px); letter-spacing: -.04em; }
.buy .lead { font-size: 18px; margin-top: 18px; }
.card { margin-top: 32px; padding: 30px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 50px -34px rgba(0,0,0,.95); }
.card h2 { font-size: 22px; letter-spacing: -.015em; }
.card > p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* paired-TV banner */
.tvcode { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 16px 18px; border-radius: 8px; border: 1px solid var(--accent); background: rgba(6, 22, 18, .92); }
.tvcode svg { flex: none; width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.tvcode b { display: block; font: 600 17px/1.3 'Inter Tight', sans-serif; }
.tvcode span { display: block; color: var(--muted); font-size: 15px; }
.tvcode .c { color: var(--accent); letter-spacing: .08em; }

/* plan picker */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; border: 0; }
.plans legend { position: absolute; left: -9999px; }
.plan { position: relative; display: block; cursor: pointer; padding: 22px 20px 20px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:hover { border-color: var(--muted); }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan .nm { display: block; font: 600 17px/1.2 'Inter Tight', sans-serif; color: var(--muted); padding-right: 30px; }
.plan .amt { display: block; font: 600 44px/1 'Inter Tight', sans-serif; letter-spacing: -.04em; margin-top: 10px; }
.plan .per { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.plan .dot { position: absolute; top: 20px; right: 18px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line3); }
.plan:has(input:checked) .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--bg) inset, 0 0 0 10px var(--accent) inset; }
.plan .tag { position: absolute; top: -10px; left: 16px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--bg); border: 1px solid var(--accent); padding: 3px 7px 2px; border-radius: 4px; }

/* form */
.field { margin-top: 20px; }
.field label { display: block; font-weight: 700; font-size: 15px; }
.field .hint { color: var(--muted); font-size: 14px; margin-top: 2px; }
.field input { display: block; width: 100%; margin-top: 8px; height: 52px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: 500 17px 'Figtree', system-ui, sans-serif; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field input.codein { font: 600 20px 'Inter Tight', sans-serif; letter-spacing: .14em; text-transform: uppercase; max-width: 220px; }
.field input.keyin { font: 600 18px 'Inter Tight', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.paybtn { width: 100%; margin-top: 24px; height: 56px; font-size: 17px; }
.paybtn[disabled] { opacity: .6; cursor: progress; transform: none; }
.msg { margin-top: 16px; padding: 14px 16px; border-radius: 6px; font-size: 15.5px; border: 1px solid var(--line2); background: var(--bg); }
.msg:empty { display: none; }
.msg.err { border-color: #FF4D5E; color: #FFC2C8; background: #170B0D; }
.msg.soon { border-color: #A9C7FF; color: var(--text); background: #0B1119; }
.msg.soon a, .msg a { color: var(--accent); text-decoration: underline; }
.trust { list-style: none; display: grid; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 14.5px; }
.trust li { padding-left: 24px; position: relative; }
.trust li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.links { margin-top: 22px; font-size: 15px; color: var(--muted); }
.links a { color: var(--accent); text-decoration: underline; }

/* key display (pro-done) */
.keybox { margin-top: 18px; padding: 22px 18px; border-radius: 6px; border: 1px solid var(--accent); background: var(--bg); text-align: center; }
.keybox .key { display: block; font: 600 clamp(16px, 5.6vw, 38px)/1.15 'Inter Tight', sans-serif; letter-spacing: .03em; white-space: nowrap; user-select: all; }
.keybox .btn { margin-top: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 14px; color: var(--muted); font-size: 15px; }
.meta b { color: var(--text); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; margin-top: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; font-size: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font: 600 14px 'Inter Tight', sans-serif; }
.steps b { color: var(--text); }
.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent); animation: spin .9s linear infinite; vertical-align: -5px; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* devices */
.devlist { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.devlist li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg); }
.devlist .nm { font-weight: 700; overflow-wrap: anywhere; }
.devlist .when { color: var(--muted); font-size: 14px; }
.devlist .btn { margin-left: auto; flex: none; }
.count { margin-top: 6px; color: var(--muted); }
.count b { color: var(--text); }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  .buy { padding: 40px 0 0; }
  .card { padding: 20px 16px; }
  .keybox { padding: 20px 10px; }
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan .amt { font-size: 38px; }
  .wrap.narrow { width: min(820px, 100% - 32px); }
  .devlist li { flex-wrap: wrap; }
}
