/* Logo typeface (self-hosted, variable weight). */
@font-face { font-family: "Sora"; src: url("fonts/sora-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* SAND Player activation portal: same deep-navy palette as the apps. Mobile first (people arrive by QR code). */
:root {
  --abyss: #03081a;
  --navy: #071233;
  --accent: #3d8bff;
  --sky: #7cb8ff;
  --ice: #b9daff;
  --text: #eef4ff;
  --muted: #94a8d0;
  --dim: #5e739f;
  --live: #ff4d6a;
  --surface: rgba(14, 29, 72, 0.72);
  --surface-raised: rgba(22, 41, 95, 0.85);
  --stroke: rgba(124, 184, 255, 0.14);
  --stroke-strong: rgba(124, 184, 255, 0.32);
  --grad: linear-gradient(135deg, #5aa2ff 0%, #2459e0 100%);
}

* { box-sizing: border-box; }
html { margin: 0; min-height: 100%; background: #030818; }
body { margin: 0; }
body {
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  background: linear-gradient(160deg, #0b1b48 0%, #06102e 45%, #030818 100%) no-repeat;
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: ''; position: fixed; left: -30vw; top: -40vw; width: 90vw; height: 90vw; border-radius: 50%; pointer-events: none;
  z-index: -1; transform: translateZ(0); /* own GPU layer: scrolling doesn't repaint the glow */
  /* closest-side: the glow fades out inside its box, so it never shows a hard edge */
  background: radial-gradient(circle closest-side, rgba(61, 139, 255, 0.28) 0%, rgba(61, 139, 255, 0) 100%);
}

.page { position: relative; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 620px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 8px; gap: 12px; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.top nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
a { color: var(--sky); }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand .word { margin-left: 12px; font-family: "Sora", "Segoe UI", system-ui, sans-serif; font-size: 21px; white-space: nowrap; }
.brand .word b { color: var(--text); font-weight: 700; letter-spacing: 0.08em; }
.brand .word span { color: var(--sky); font-weight: 500; }

h1 { font-size: 32px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.5px; }
h2 { font-size: 20px; margin: 0 0 14px; }
.hero { padding: 26px 0 18px; }
.lead { color: var(--muted); margin: 0; font-size: 16px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); font-weight: 400; }
.center { text-align: center; }
.mono { font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; letter-spacing: 1px; }

.card {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 22px; padding: 22px;
  margin-bottom: 16px;
}

label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sky); margin: 14px 0 8px; }
label:first-child { margin-top: 0; }
label .dim { text-transform: none; letter-spacing: 0; font-size: 12px; margin-left: 6px; }
input {
  width: 100%; height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(5, 12, 36, 0.6); border: 1px solid var(--stroke-strong); border-radius: 14px; outline: none;
}
input::placeholder { color: var(--dim); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.25); }
.row2 { display: flex; gap: 12px; }
.row2 > div { flex: 1; min-width: 0; }

button {
  font: inherit; font-weight: 650; color: var(--text); cursor: pointer; border-radius: 14px; border: 1px solid var(--stroke);
  background: var(--surface-raised); height: 46px; padding: 0 18px;
}
button.primary { background: var(--grad); border: none; color: #fff; height: 54px; font-size: 16px; margin-top: 20px; }
button.primary:disabled { opacity: 0.6; }
button.wide { width: 100%; display: flex; align-items: center; justify-content: center; }
button.ghost { background: transparent; border-color: transparent; color: var(--sky); }
button.danger { color: #ff8da0; }

.tabs { display: flex; background: rgba(5, 12, 36, 0.6); border: 1px solid var(--stroke); border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; height: 40px; white-space: nowrap; padding: 0 8px; border: none; background: transparent; color: var(--muted); border-radius: 10px; }
.tabs button.on { background: var(--grad); color: #fff; }

.alert { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 77, 106, 0.16); border: 1px solid rgba(255, 77, 106, 0.4); }
.notice { margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(61, 139, 255, 0.16); border: 1px solid var(--stroke-strong); color: var(--ice); }

.device-chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--surface-raised); border: 1px solid var(--stroke); color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.device-chip i { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; margin-right: 8px; box-shadow: 0 0 8px #39d98a; }
.device-chip .mono { color: var(--text); margin-left: 6px; }

.playlist { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.playlist:last-child { border-bottom: none; }
.pl-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #1e3a78, #0e1d48); color: var(--sky); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pl-text { flex: 1; min-width: 0; margin: 0 12px; display: flex; flex-direction: column; }
.pl-text span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { margin: 0; text-align: center; padding: 8px 0; }

.steps { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.steps div { display: flex; align-items: center; color: var(--muted); }
.steps span { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-raised); border: 1px solid var(--stroke-strong); color: var(--ice); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-right: 12px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; margin-right: 10px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.plan { border-color: var(--stroke-strong); }
.plan.expired { border-color: rgba(255, 77, 106, 0.55); }
.plan-status { display: flex; flex-direction: column; margin-bottom: 16px; }
.plan-status b { font-size: 19px; }
.plans { display: flex; gap: 12px; }
.plan-option {
  flex: 1; position: relative; height: auto; padding: 18px 12px 16px; display: flex; flex-direction: column; align-items: center;
  border-radius: 18px; background: rgba(5, 12, 36, 0.6); border: 1px solid var(--stroke-strong);
}
.plan-option.best { background: linear-gradient(160deg, rgba(90, 162, 255, 0.28), rgba(36, 89, 224, 0.28)); border-color: var(--accent); }
.plan-option .price { font-size: 30px; font-weight: 800; }
.plan-option .per { color: var(--ice); font-size: 14px; }
.plan-option .note { color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 8px; text-align: center; }
.plan-option .tag { position: absolute; top: -11px; padding: 2px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.small-print { font-size: 12px; margin: 14px 0 0; text-align: center; }
.small-print.left { text-align: left; font-size: 13px; margin-top: 16px; }

/* ---------- buttons as links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--grad); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; margin-left: 8px; }
.btn.ghost-btn { background: transparent; border: 1px solid var(--stroke-strong); color: var(--text); }
.help-link { font-size: 14px; margin-top: 22px; }

/* ---------- landing ---------- */
.landing-hero { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 40px 0 24px; }
.landing-hero h1 { font-size: 38px; line-height: 1.1; letter-spacing: -0.8px; margin-bottom: 18px; }
.landing-hero .lead { font-size: 17px; max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trial-note { font-size: 14px; margin: 16px 0 0; }

/* Device family next to the headline: TV, laptop, tablet and phone, grouped closely. */
.family { position: relative; width: 100%; max-width: 580px; margin: 0 auto; aspect-ratio: 16 / 10.4; }
.fam-screen {
  overflow: hidden; background: linear-gradient(160deg, #0d1f52, #050b22); border: 4px solid #0b1430; border-radius: 8px;
  box-shadow: 0 0 0 1px var(--stroke-strong), 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}
/* The TV: thin even bezel and two slim feet near the edges, so it reads as a TV rather than a monitor. */
.fam-tv { position: absolute; left: 7%; top: 0; width: 86%; }
.fam-tv .fam-screen { aspect-ratio: 16 / 9; border: 3px solid #121b38; border-radius: 5px; }
.fam-tv .leg {
  position: absolute; top: 100%; width: 7%; height: 14px; background: linear-gradient(#1f2d5a, #0e1735);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}
.fam-tv .leg.left { left: 36%; }
.fam-tv .leg.right { right: 36%; }
/* Featured "continue watching" tile on the TV: play button, title, subtitle and progress. */
.mini-hero:has(.mini-play) { background: radial-gradient(circle at 80% 35%, rgba(120, 170, 255, 0.28), transparent 45%), linear-gradient(120deg, rgba(90, 162, 255, 0.36), rgba(36, 89, 224, 0.08) 65%), #0f2050; }
.mini-play { position: absolute; left: 5%; top: 22%; width: 22px; height: 22px; border-radius: 50%; background: rgba(238, 244, 255, 0.92); box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.6); }
.mini-play::after { content: ""; position: absolute; left: 41%; top: 31%; border-style: solid; border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent #0f2050; }
.mini-title { position: absolute; left: 5%; top: 52%; width: 34%; height: 7px; border-radius: 3px; background: rgba(238, 244, 255, 0.75); }
.mini-sub { position: absolute; left: 5%; top: 66%; width: 20%; height: 4px; border-radius: 2px; background: rgba(238, 244, 255, 0.3); }
.mini-progress { position: absolute; left: 5%; bottom: 12%; width: 30%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.mini-progress span { display: block; width: 45%; height: 100%; border-radius: 2px; background: var(--accent); }
.fam-laptop { position: absolute; left: 4%; bottom: 2%; width: 34%; z-index: 2; }
.fam-laptop .fam-screen { aspect-ratio: 16 / 10; border-radius: 8px 8px 0 0; }
.fam-base { height: 8px; margin: 0 -7%; background: linear-gradient(#22356c, #0b1430); border-radius: 0 0 10px 10px; }
.fam-tablet { position: absolute; right: 11%; bottom: 1%; width: 25%; z-index: 2; }
.fam-tablet .fam-screen { aspect-ratio: 4 / 3; border-width: 6px; border-radius: 12px; }
.fam-phone { position: absolute; right: 5%; bottom: 0; width: 11%; z-index: 3; }
.fam-phone .fam-screen { aspect-ratio: 9 / 19; border-radius: 12px; }

.mini { display: flex; gap: 4%; height: 100%; padding: 4%; }
.mini-side { width: 11%; display: flex; flex-direction: column; align-items: center; gap: 8%; }
.mini-side b { width: 80%; aspect-ratio: 1; border-radius: 24%; background: var(--grad); }
.mini-side i { width: 70%; height: 3px; border-radius: 2px; background: rgba(124, 184, 255, 0.22); }
.mini-side i:first-of-type { background: var(--accent); }
.mini-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5%; }
.mini-hero { position: relative; flex: 1; border-radius: 4px; background: linear-gradient(120deg, rgba(90, 162, 255, 0.42), rgba(36, 89, 224, 0.1) 65%), #0f2050; }
.mini-tiles { flex: 1.1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6%; }
.fam-laptop .mini-tiles, .fam-tablet .mini-tiles { grid-template-columns: repeat(3, 1fr); }
.mini-tiles i { border-radius: 3px; background: var(--poster); border: 1px solid rgba(255, 255, 255, 0.05); }
.mini-tiles i:first-child { box-shadow: 0 0 0 1.5px var(--accent); }
.mini-phone { padding: 12% 8%; }
.mini-phone .mini-tiles { flex: 2; grid-template-columns: 1fr 1fr; gap: 5%; }

.section { padding: 56px 0 8px; }
.section h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.3px; margin-bottom: 20px; }
.section-lead { max-width: 640px; margin-bottom: 22px; }

.platform-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.platform { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); }
.platform b { display: block; }
.platform .muted { display: block; font-size: 13px; line-height: 1.4; }
.p-icon {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  color: var(--sky); background: linear-gradient(135deg, #1e3a78, #0e1d48); border: 1px solid var(--stroke);
}
.p-icon svg { width: 24px; height: 24px; }
.soon { display: inline-block; margin: 2px 0; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ice); background: rgba(61, 139, 255, 0.2); border: 1px solid var(--stroke-strong); }

/* How it works: three numbered steps joined by a thin line. */
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: step; position: relative; }
.how-list li { counter-increment: step; position: relative; padding-left: 58px; color: var(--muted); }
.how-list li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 0 0 6px rgba(61, 139, 255, 0.1), 0 10px 24px -10px rgba(61, 139, 255, 0.8);
}
.how-list b { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }

/* Soft coloured light so the dark page has some depth. Kept behind the content of each section. */
.landing-hero, .section { position: relative; isolation: isolate; }
.family::before {
  content: ""; position: absolute; inset: -18% -14% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side at 42% 42%, rgba(61, 139, 255, 0.42), transparent),
    radial-gradient(closest-side at 72% 66%, rgba(124, 92, 255, 0.3), transparent),
    radial-gradient(closest-side at 18% 78%, rgba(45, 200, 210, 0.18), transparent);
}
#platforms::before, #pricing::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 760px; max-width: 100vw; aspect-ratio: 1.6;
}
#platforms::before { right: -12%; top: 4%; background: radial-gradient(closest-side, rgba(45, 200, 210, 0.12), transparent); }
#pricing::before { right: -8%; top: 12%; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.2), transparent); }

.feature-list { display: grid; grid-template-columns: 1fr; gap: 0 40px; }
.feature-list div { padding: 14px 0; border-top: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 2px; }

.price-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); }
.price-card.best { background: linear-gradient(160deg, rgba(90, 162, 255, 0.22), rgba(36, 89, 224, 0.18)); border-color: var(--accent); }
.price-card .tag { position: absolute; top: -11px; right: 18px; padding: 2px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; }
#pricing .center { margin-top: 26px; }
.price-card .p-name { color: var(--sky); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.price-card .p-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 24px; font-weight: 300; color: var(--sky); }
.faq details[open] summary:after { content: '\2013'; }
.faq details p { margin: 0 0 18px; }

/* ---------- footer ---------- */
footer { margin-top: 64px; padding: 36px 0 28px; border-top: 1px solid var(--stroke); color: var(--dim); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .brand img { width: 32px; height: 32px; }
.foot-brand .brand .word { font-size: 16px; }
.foot-brand p { margin: 12px 0 0; max-width: 320px; color: var(--muted); }
footer h4 { margin: 0 0 10px; color: var(--text); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
footer a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
footer a:not(.brand):hover { color: var(--text); }
.legal { margin: 30px 0 0; font-size: 12px; line-height: 1.7; }
/* Privacy policy / terms */
.doc h2 { margin: 34px 0 10px; font-size: 20px; }
.doc p, .doc li { color: var(--muted); line-height: 1.7; }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li b { color: var(--text); }
.doc a { color: var(--sky, #7cb8ff); }

#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: #5c1020; color: #fff; z-index: 10; }
#blazor-error-ui .reload { color: #fff; margin-left: 8px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

@media (max-width: 759px) {
  .hide-sm { display: none; }
}
@media (min-width: 700px) {
  h1 { font-size: 40px; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
}
@media (min-width: 960px) {
  .landing-hero { grid-template-columns: 1.05fr 1fr; padding: 64px 0 32px; }
  .landing-hero h1 { font-size: 50px; }
  .how-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .how-list::before { content: ""; position: absolute; left: 40px; right: 33%; top: 16px; height: 1px; background: linear-gradient(90deg, rgba(124, 184, 255, 0.4), rgba(124, 184, 255, 0.05)); }
  .how-list li { padding: 58px 0 0; }
  .how-list li::before { top: 0; }
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
  .platform { flex-direction: column; align-items: flex-start; }
  .section { padding-top: 72px; }
  .section h2 { font-size: 32px; }
}

/* Blazor focuses the page heading after navigation (for screen readers); no visible box. */
h1:focus { outline: none; }
