:root {
  --bg: #000; --fg: #fff; --muted: #9a9a9a; --line: #262626; --card: #0b0b0b;
  --err: #ff6b6b; --ok: #8ef0b0; --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--fg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.err { color: var(--err); min-height: 1em; margin: 8px 0 0; font-size: 14px; }
.ok { color: var(--ok); margin-top: 10px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); z-index: 5; }
.brand { font-weight: 700; letter-spacing: .18em; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--fg); border-radius: 6px; letter-spacing: 0; font-size: 13px; }
.top-right { display: flex; gap: 14px; align-items: center; }
#acct-mini { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.meter { width: 120px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter > div { height: 100%; background: var(--fg); }

main { max-width: 980px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 64px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 8px 0 16px; font-weight: 700; }
h2 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--muted); margin: 0; }
.lede { font-size: 17px; color: #cfcfcf; max-width: 46ch; }

.gate-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .gate-grid { grid-template-columns: 1fr; } }
.card, .price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--card); }
.price-card { margin-top: 24px; }
.price { font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.ticks { padding-left: 18px; margin: 14px 0 0; color: #cfcfcf; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; color: var(--muted); padding: 8px 10px; cursor: pointer; font: inherit; border-bottom: 2px solid transparent; }
.tab.active { color: var(--fg); border-color: var(--fg); }

label { display: block; font-size: 13px; color: #cfcfcf; margin: 12px 0; }
label.inline { display: inline-flex; gap: 10px; align-items: center; }
input, select, textarea { width: 100%; margin-top: 6px; background: #000; color: var(--fg); border: 1px solid #3a3a3a; border-radius: 8px; padding: 11px 12px; font: inherit; }
label.inline select, .cur select { width: auto; margin: 0; }
.cur select { padding: 6px 8px; font-size: 13px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.check { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.check input { width: auto; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--fg); background: transparent; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--fg); color: #000; }
.btn.ghost { border-color: #3a3a3a; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.file input { display: none; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.row input { flex: 1; min-width: 200px; margin: 0; }
.row .check input { flex: none; min-width: 0; width: auto; }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 0 0 18px; counter-reset: s; }
.stepper li { counter-increment: s; font-size: 12px; color: var(--muted); border-top: 2px solid var(--line); padding-top: 8px; }
.stepper li::before { content: counter(s) " "; font-weight: 700; }
.stepper li.done { color: #cfcfcf; border-color: #777; }
.stepper li.current { color: var(--fg); border-color: var(--fg); }
@media (max-width: 560px) { .stepper li { font-size: 0; } .stepper li::before { font-size: 12px; } }
.next { border: 1px solid var(--fg); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 26px; font-weight: 600; }
.next::before { content: "Next → "; color: var(--muted); font-weight: 400; }

.step { border-top: 1px solid var(--line); padding: 28px 0; }
.step.locked { opacity: .35; pointer-events: none; }
.drop { border: 1px dashed #444; border-radius: var(--radius); padding: 22px; margin-top: 18px; display: grid; gap: 10px; justify-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.lib { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 0; color: var(--fg); text-align: left; cursor: pointer; overflow: hidden; font: inherit; }
.lib img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.lib span { display: block; padding: 8px 10px; font-size: 13px; line-height: 1.35; }
.lib small { color: var(--muted); }
.player { position: relative; aspect-ratio: 16/9; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; width: 0; background: var(--fg); transition: width .2s; }
.progress.indeterminate > div { width: 30%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .progress.indeterminate > div { animation: none; width: 100%; opacity: .5; } }

.thumb { max-width: 220px; border-radius: 8px; margin-top: 14px; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { border: 1px solid #3a3a3a; background: none; color: var(--fg); border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.chip[aria-checked="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.limits { margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.limits summary { cursor: pointer; font-size: 14px; }
.limits ul { color: #cfcfcf; font-size: 13px; padding-left: 18px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; max-width: 520px; }
.compare img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.compare figure { margin: 0; } .compare figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.quote { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 14px 0; font-size: 14px; }
.quote.bad { border-color: var(--err); }
video#result { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #000; }

.foot { border-top: 1px solid var(--line); padding: 20px clamp(16px, 4vw, 40px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

.wm-row { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.wm-title { font-weight: 600; font-size: 15px; }
.wm-state { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.switch { flex: none; width: 46px; height: 26px; border-radius: 13px; border: 1.5px solid #555; background: #000; position: relative; cursor: pointer; padding: 0; margin-top: 1px; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #777; transition: transform .15s, background .15s; }
.switch[aria-checked="true"] { background: var(--fg); border-color: var(--fg); }
.switch[aria-checked="true"] .knob { transform: translateX(20px); background: #000; }
@media (prefers-reduced-motion: reduce) { .switch .knob { transition: none; } }

.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 6px 0; display: block; }
.linkbtn:hover { color: var(--fg); }
.account { margin-bottom: 28px; }
.acct-head { display: flex; justify-content: space-between; align-items: center; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0; font-size: 14px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.danger { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.danger summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.foot nav a { color: var(--muted); }
.legal { max-width: 760px; } .legal h1 { font-size: 34px; } .legal h2 { margin-top: 28px; } .legal p, .legal li { color: #cfcfcf; }

.lib { position: relative; }
.lib[aria-pressed="true"] { border-color: var(--fg); outline: 2px solid var(--fg); }
.lib .badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.75); border: 1px solid #444; border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.lib img[src=""], .lib img:not([src]) { visibility: hidden; }
.lib-preview { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.lib-preview video { width: 100%; max-height: 360px; background: #000; border-radius: 6px; }
.lib-side h3 { margin: 0 0 6px; font-size: 16px; }
@media (max-width: 760px) { .lib-preview { grid-template-columns: 1fr; } }
