/* STB4K buy pages: black, red #E50914 buttons, plan tiles with blue / purple / red headers (approved preview). */
:root {
  color-scheme: dark;
  --bg: #000; --bg2: #141414; --card: #1f1f1f; --line: #333; --fg: #fff; --muted: #a3a3a3; --dim: #8a8a8a;
  --red: #e50914; --red-hover: #f6121d; --blue: #2f8cff; --ok: #46d369; --bad: #ff6b6b;
  --g1: linear-gradient(140deg, #1e3a8a 0%, #2563eb 100%);
  --g2: linear-gradient(140deg, #4c1d95 0%, #c026d3 100%);
  --g3: linear-gradient(140deg, #7f1d1d 0%, #e50914 100%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 18px max(24px, env(safe-area-inset-right)) 18px max(24px, env(safe-area-inset-left)); border-bottom: 1px solid #1a1a1a; }
.logo img { display: block; height: 26px; width: auto; }
.help { font-weight: 600; text-decoration: none; opacity: .9; }
.help:hover { text-decoration: underline; }

.hero { text-align: center; padding: 56px 16px 28px; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(229, 9, 20, .28), transparent 70%), var(--bg); }
.step { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.step b { color: var(--fg); }
.step.left { text-align: left; }
h1 { font: 800 clamp(30px, 5.5vw, 48px)/1.1 var(--font); letter-spacing: -.02em; margin: 10px auto 12px; max-width: 18ch; text-wrap: balance; }
.sub { color: #ddd; font-size: 18px; margin: 0 auto; max-width: 56ch; }
.ticks { list-style: none; padding: 0; margin: 20px auto 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.ticks li::before { content: "✓"; color: var(--red); font-weight: 800; margin-right: 8px; }

main { max-width: 1000px; margin: 0 auto; padding: 8px 16px 64px; display: flex; flex-direction: column; gap: 40px; }
.buy { display: flex; flex-direction: column; gap: 40px; }
.note { margin: 0; padding: 12px 16px; border-radius: 8px; background: #1d1d1d; border: 1px solid #333; text-align: center; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; padding: 12px 0 0; margin: 0; min-width: 0; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; gap: 18px; } }
.plan { background: var(--card); border: 2px solid transparent; border-radius: 16px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; position: relative; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.plan:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.plan.dim { opacity: .55; }
.head { border-radius: 10px; padding: 18px 16px 16px; min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; position: relative; }
.head b { font-size: 22px; font-weight: 800; }
.head span { font-size: 14px; opacity: .9; }
.g1 { background: var(--g1); } .g2 { background: var(--g2); } .g3 { background: var(--g3); }
.sel { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000; display: none; place-items: center; font-weight: 900; font-size: 15px; font-style: normal; }
.plan:has(input:checked) .sel { display: grid; }
.pop { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 1; background: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.rows { display: flex; flex-direction: column; padding: 6px 10px 10px; }
.row { display: flex; flex-direction: column; padding: 11px 0; border-bottom: 1px solid #2c2c2c; }
.row:last-child { border-bottom: 0; }
.row small { color: var(--muted); font-size: 12px; font-weight: 600; }
.row strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.price strong { font-size: 26px; font-weight: 800; }

.box, .card { background: var(--bg2); border: 1px solid #222; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.box h2, .card h2 { margin: 0; font-size: 24px; font-weight: 800; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } .box, .card { padding: 18px; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { font: 600 18px var(--mono); padding: 15px 14px; border-radius: 6px; border: 1px solid #555; background: rgba(22, 22, 22, .9); color: #fff; letter-spacing: .04em; width: 100%; }
.field input.text { font-family: var(--font); letter-spacing: 0; font-weight: 500; font-size: 17px; }
.field input:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.field input.is-ok { border-color: var(--ok); }
.field input.is-bad { border-color: var(--bad); }
.hint { font-size: 12px; color: var(--dim); }
.msg { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.err { color: var(--bad); font-weight: 600; margin: 0; }
.err.big { background: rgba(229, 9, 20, .12); border: 1px solid rgba(229, 9, 20, .5); border-radius: 8px; padding: 12px 14px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid #262626; padding-top: 16px; flex-wrap: wrap; }
.sum span { color: var(--muted); }
.sum b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.btn { font: 700 20px var(--font); border: 0; border-radius: 6px; padding: 16px 20px; background: var(--red); color: #fff; cursor: pointer; width: 100%; text-align: center; text-decoration: none; display: block; }
.btn:hover { background: var(--red-hover); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn[disabled] { cursor: not-allowed; opacity: .55; }
.btn.alt { background: #2b2b2b; font-size: 17px; }
.btn.alt[disabled]:hover { background: #2b2b2b; }
.btn.busy { opacity: .7; cursor: progress; }
.methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.methods span { font-size: 11px; font-weight: 700; letter-spacing: .04em; border: 1px solid #3a3a3a; border-radius: 4px; padding: 4px 8px; color: #cfcfcf; }
.fine { font-size: 13px; color: var(--dim); margin: 0; text-align: center; }
.fine b { color: #bdbdbd; font-weight: 600; }

.after { display: flex; flex-direction: column; gap: 14px; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }
.screen { background: var(--bg2); border: 1px solid #222; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.screen h3 { margin: 0; font-size: 19px; font-weight: 800; }
.screen p { margin: 0; color: var(--muted); font-size: 14px; }
.big-ok { width: 48px; height: 48px; border-radius: 50%; background: rgba(70, 211, 105, .15); color: var(--ok); display: grid; place-items: center; font-size: 22px; font-weight: 900; }
.big-ok.wait { background: rgba(255, 255, 255, .08); color: #fff; }
.big-ok.bad { background: rgba(229, 9, 20, .15); color: var(--bad); }

/* thank-you page */
.done { max-width: 620px; margin: 40px auto 0; width: 100%; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.mono { font-family: var(--mono); }
.code { font: 600 22px var(--mono); letter-spacing: .06em; background: #000; border: 1px dashed #555; border-radius: 8px; padding: 14px 12px; text-align: center; overflow-wrap: anywhere; }
.tvsay { font-size: 18px; font-weight: 700; margin: 0; }
.small { font-size: 13px; color: var(--muted); margin: 0; }

.foot { border-top: 1px solid #1a1a1a; padding: 24px 16px 40px; text-align: center; color: var(--dim); font-size: 13px; }
.foot p { margin: 4px 0; }
.foot a { color: #bdbdbd; }
@media (prefers-reduced-motion: no-preference) { .plan { transition: border-color .15s, transform .15s; } .plan:hover { transform: translateY(-2px); } }
