/* StreamVault — storefront styles. Dark, streaming-service feel. No framework. */
:root {
  --bg: #0b0f1a; --bg-2: #111728; --bg-3: #171f33;
  --card: #141b2d; --line: #243049; --line-2: #2f3d5c;
  --text: #e8ecf5; --muted: #98a3bd; --faint: #6b768f;
  --brand: #7c5cff; --brand-2: #22d3ee; --brand-grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code { background: var(--bg-3); padding: .1em .4em; border-radius: 6px; font-size: .95em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--brand-2); margin-bottom: .6em; }
.grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 12px 22px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 24px rgba(124,92,255,.35); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-3); }
.btn--sm { padding: 8px 16px; font-size: .9rem; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11,15,26,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
.nav .btn { color: #fff; }
.nav .btn--ghost { color: var(--text); }
.nav__muted { font-size: .9rem; }
.navtoggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.navtoggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
  .navtoggle { display: flex; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px; gap: 6px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 12px; border-radius: 8px; }
  .nav a:hover { background: var(--bg-3); }
  .nav .btn { margin-top: 6px; }
  .navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(60% 50% at 30% 30%, rgba(124,92,255,.28), transparent 70%), radial-gradient(40% 40% at 80% 20%, rgba(34,211,238,.18), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.hero__trust li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.hero__art { position: relative; min-height: 340px; }
.tv { position: relative; width: min(100%, 460px); margin-inline: auto; }
.tv__screen { aspect-ratio: 16/10; background: linear-gradient(160deg, #1a2340, #0d1222); border: 6px solid #1e2740; border-radius: 18px; box-shadow: var(--shadow), inset 0 0 60px rgba(124,92,255,.15); position: relative; overflow: hidden; padding: 20px; }
.tv__stand { width: 40%; height: 10px; margin: 8px auto 0; background: #1e2740; border-radius: 0 0 10px 10px; }
.tv__bars { position: absolute; inset: 0; display: flex; opacity: .25; }
.tv__bars span { flex: 1; background: var(--brand-grad); animation: pulse 3s ease-in-out infinite; }
.tv__bars span:nth-child(2) { animation-delay: .4s; } .tv__bars span:nth-child(3) { animation-delay: .8s; } .tv__bars span:nth-child(4) { animation-delay: 1.2s; } .tv__bars span:nth-child(5) { animation-delay: 1.6s; }
@keyframes pulse { 0%,100% { opacity: .25; } 50% { opacity: .7; } }
.tv__badge { position: absolute; top: 16px; right: 16px; background: #ef4444; color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .1em; }
.tv__guide { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 6px; }
.tv__row { display: flex; align-items: center; gap: 10px; background: rgba(11,15,26,.75); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: .8rem; }
.tv__row i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tv__row b { flex: 1; } .tv__row em { color: var(--muted); font-style: normal; }
.float { position: absolute; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite; }
.float--a { top: 2%; left: -2%; } .float--b { bottom: 10%; right: -2%; animation-delay: 2s; } .float--c { top: 40%; right: -6%; animation-delay: 4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero { padding: 40px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; margin-top: 8px; }
  .float--a { left: 0; } .float--b, .float--c { right: 0; }
}

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats__grid div { padding: 22px 8px; display: grid; gap: 2px; }
.stats__grid strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stats__grid span { color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections + cards */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature__icon { font-size: 1.7rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features, .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features, .steps { grid-template-columns: 1fr; } .section { padding: 48px 0; } }

/* Pricing */
.duration { display: inline-flex; gap: 4px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 32px; position: relative; left: 50%; transform: translateX(-50%); }
.duration button, .duration a { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.duration button[aria-selected="true"], .duration a.is-on { background: var(--card); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.duration small { font-size: .65rem; color: var(--ok); font-weight: 700; }
.duration--compact { left: 0; transform: none; margin: 0; padding: 3px; }
.duration--compact a { padding: 5px 12px; font-size: .85rem; }
.duration--compact a:hover { text-decoration: none; color: var(--text); }
@media (max-width: 600px) { .duration { display: flex; width: 100%; left: 0; transform: none; } .duration button { flex: 1; padding: 8px 6px; font-size: .85rem; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 24px 60px rgba(124,92,255,.25); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-grad); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; }
.plan__tag { color: var(--muted); min-height: 2.6em; margin-bottom: 14px; }
.plan__price { margin: 6px 0 10px; }
.plan__priceopt strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.plan__priceopt span { color: var(--muted); }
.plan__priceopt small { display: block; color: var(--faint); font-size: .85rem; }
.plan__conn { background: var(--bg-3); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .9rem; margin-bottom: 14px; }
.plan__conn b { color: var(--brand-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .ticks { flex: 1; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } .plan--featured { order: -1; } }

/* Devices, reviews, CTA */
.devices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 28px; }
.device { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; display: grid; gap: 4px; }
.device__icon { font-size: 1.8rem; }
@media (max-width: 900px) { .devices { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .devices { grid-template-columns: repeat(2, 1fr); } }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 16px; }
.reviews blockquote { margin: 0; }
.reviews p { font-size: 1.05rem; }
.reviews footer { color: var(--muted); font-size: .9rem; }
.reviews footer::before { content: "— "; }
@media (max-width: 800px) { .reviews { grid-template-columns: 1fr; } }
.cta { padding: 56px 0; background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(34,211,238,.12)); border-top: 1px solid var(--line); }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta p { color: var(--muted); margin: 0; }
.cta .hero__cta { margin: 0; }

/* Forms */
.form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.form legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field small { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); padding: 12px 14px; font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398a3bd' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; }
.field em, .field__err { display: block; color: var(--err); font-style: normal; font-size: .85rem; margin-top: 5px; }
.field--error input, .field--error textarea { border-color: var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.choice input { margin-top: 4px; accent-color: var(--brand); }
.choice small { display: block; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 18px; font-size: .95rem; }
.check input { margin-top: 5px; accent-color: var(--brand); }
.notice { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; border: 1px solid; font-size: .95rem; }
.notice--error { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.4); color: #fecaca; }
.notice--warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.4); color: #fde68a; }
.notice--ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.4); color: #a7f3d0; }

/* Checkout layout */
.checkout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: start; }
.checkout__summary { position: sticky; top: 88px; }
.summary__plan { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.summary__plan strong { font-size: 1.2rem; } .summary__plan span { color: var(--muted); font-size: .9rem; }
.summary__dur { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.summary__lines { margin: 0 0 12px; display: grid; gap: 6px; }
.summary__lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary__lines dt { color: var(--muted); } .summary__lines dd { margin: 0; font-weight: 600; }
.summary__save dd { color: var(--ok); }
.summary__total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 1.15rem; }
.summary__total dt { color: var(--text); font-weight: 700; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout__summary { position: static; order: -1; } }

/* Order display */
.done { text-align: center; margin-bottom: 28px; }
.done__icon { font-size: 3rem; display: block; margin-bottom: 8px; }
.order { margin-bottom: 20px; }
.order__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ref { display: block; font-size: 1.4rem; letter-spacing: .05em; font-weight: 800; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--bg-3); color: var(--muted); }
.pill--paid, .pill--active { background: rgba(52,211,153,.15); color: var(--ok); }
.pill--pending { background: rgba(251,191,36,.15); color: var(--warn); }
.pill--cancelled, .pill--refunded, .pill--expired { background: rgba(248,113,113,.15); color: var(--err); }
.kv { margin: 0 0 16px; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.kv--bank { background: var(--bg-2); border-radius: var(--radius-sm); padding: 14px; }
@media (max-width: 520px) { .kv div { grid-template-columns: 1fr; gap: 0; } }

/* Split (contact/trial), FAQ, guides, legal */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.contactlist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.contactlist li { display: flex; gap: 12px; align-items: flex-start; }
.contactlist li > span { font-size: 1.4rem; }
.contactlist strong { display: block; }
.faq__group { font-size: 1.2rem; margin: 28px 0 10px; color: var(--muted); }
.faq { display: grid; gap: 8px; margin-bottom: 20px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq__item summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--brand-2); font-weight: 800; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--muted); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.chips a { background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; color: var(--text); font-size: .9rem; font-weight: 600; }
.chips a:hover { background: var(--bg-3); text-decoration: none; }
.guide { margin-bottom: 16px; scroll-margin-top: 90px; }
.guide h2 { font-size: 1.3rem; display: flex; gap: 10px; align-items: center; }
.guide__steps { padding-left: 22px; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.guide__steps li::marker { color: var(--brand-2); font-weight: 700; }
.legal h2 { font-size: 1.25rem; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 24px; margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.footer__grid a:not(.brand) { display: block; color: var(--text); padding: 3px 0; font-size: .95rem; }
.footer__blurb { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 320px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
