/* STB Pro+ website. One stylesheet, no build step. Colours come from the app icon: ink blue, ice blue, play orange. */

:root {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --bg-sunken: #eceff6;
  --text: #0d1226;
  --text-2: #4a5170;
  --text-3: #6f7694;
  --line: rgba(13, 18, 38, 0.1);
  --brand: #2443c9;
  --brand-ink: #14246f;
  --brand-ice: #dce4ff;
  --accent: #f26b3a;
  --accent-ink: #b8461d;
  --accent-fill: #c94a1a;
  --ok: #1f8a4c;
  --soon: #8a6a12;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 18, 38, 0.06), 0 8px 30px rgba(13, 18, 38, 0.08);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --hero-from: #0b1440;
  --hero-to: #2443c9;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a17;
    --bg-elevated: #10152b;
    --bg-sunken: #0c1022;
    --text: #eef1ff;
    --text-2: #b3bad6;
    --text-3: #8890b0;
    --line: rgba(238, 241, 255, 0.12);
    --brand: #8aa2ff;
    --brand-ink: #c8d3ff;
    --brand-ice: #1a2350;
    --accent: #ff8a5c;
    --accent-ink: #ffb08f;
    --ok: #5fd58f;
    --soon: #e6c35c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.35);
    --hero-from: #050817;
    --hero-to: #1a2f97;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #070a17;
  --bg-elevated: #10152b;
  --bg-sunken: #0c1022;
  --text: #eef1ff;
  --text-2: #b3bad6;
  --text-3: #8890b0;
  --line: rgba(238, 241, 255, 0.12);
  --brand: #8aa2ff;
  --brand-ink: #c8d3ff;
  --brand-ice: #1a2350;
  --accent: #ff8a5c;
  --accent-ink: #ffb08f;
  --ok: #5fd58f;
  --soon: #e6c35c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.35);
  --hero-from: #050817;
  --hero-to: #1a2f97;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-2); max-width: 46rem; }
.muted { color: var(--text-3); }
.small { font-size: 0.875rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-elevated); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
/* Plain menu links only: the Download button keeps its own button colours, padding and hover. */
.nav a:not(.btn) { color: var(--text-2); padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--text); background: var(--bg-sunken); text-decoration: none; }
.nav a:not(.btn)[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.1; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.9rem; }
.btn-primary { background: var(--accent-fill); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-fill) 35%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-fill) 88%, #000); }
.btn-dark { background: #000; color: #fff; }
.btn-light { background: #fff; color: #0d1226; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-tonal { background: var(--brand-ice); color: var(--brand-ink); }
/* A download that isn't published yet: neutral and readable, never a faded orange. */
.btn[aria-disabled="true"] { background: var(--bg-sunken); color: var(--text-3); border-color: var(--line); box-shadow: none; pointer-events: none; transform: none; }
.btn .sub { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.8; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(138, 162, 255, 0.35), transparent 60%),
    linear-gradient(160deg, var(--hero-from), var(--hero-to));
  padding: clamp(48px, 8vw, 96px) 0 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: clamp(48px, 8vw, 110px); }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.hero h1 { color: #fff; }
.hero h1 .glow { background: linear-gradient(90deg, #fff, #ffd2bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; }
.hero .meta { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin-top: 16px; }
.hero-art { position: relative; min-height: 460px; }
.hero-art .tv {
  position: absolute; right: -8%; bottom: 60px; width: 108%;
  border-radius: 14px; border: 6px solid #0a0a0f; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero-art .phone {
  position: absolute; left: 2%; bottom: -40px; width: 34%;
  border-radius: 34px; border: 7px solid #0a0a0f; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { min-height: 0; aspect-ratio: 16 / 11; margin: 0 calc(var(--gutter) * -0.25); }
  .hero-art .tv { right: 0; width: 92%; bottom: 18%; }
  .hero-art .phone { width: 30%; bottom: -12%; }
}

/* Platform strip */
.platforms { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--bg-elevated); }
.platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.platforms li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
.platforms svg { width: 22px; height: 22px; color: var(--brand); }

/* Sections */
section.block { padding: clamp(64px, 10vw, 120px) 0; }
section.alt { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* Sources */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.source { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
section.alt .source { background: var(--bg); }
.source .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-ice); color: var(--brand-ink); margin-bottom: 12px; }
.source p { color: var(--text-2); margin: 0; font-size: 0.95rem; }
.callout { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--bg-sunken); color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 760px) { .sources { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
section.alt .feature { background: var(--bg); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent)));
  color: #fff;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.feature ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--text-2); font-size: 0.92rem; }
.feature li { margin: 3px 0; }
.feature.wide { grid-column: span 2; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature.wide { grid-column: auto; } }

/* Spotlight rows (image + copy) */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(64px, 10vw, 120px); }
.spot:last-child { margin-bottom: 0; }
.spot.flip .spot-media { order: 2; }
.spot-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.spot-media.phones { display: flex; gap: 16px; justify-content: center; }
.spot-media.phones img { width: 44%; border-radius: 28px; border: 6px solid #0a0a0f; }
.spot ul { padding-left: 1.1em; color: var(--text-2); }
.spot li { margin: 6px 0; }
@media (max-width: 860px) { .spot { grid-template-columns: 1fr; } .spot.flip .spot-media { order: 0; } }

/* Gallery */
.segmented {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--line);
  margin: 0 auto 32px;
}
.segmented button {
  font: inherit; font-weight: 600; font-size: 0.95rem; border: 0; background: transparent; color: var(--text-2);
  min-height: 40px; padding: 0 22px; border-radius: 999px; cursor: pointer;
}
.segmented button[aria-selected="true"] { background: var(--bg-elevated); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.gallery-tabs { text-align: center; }
.shelf { margin-bottom: 40px; }
.shelf h3 { display: flex; align-items: baseline; gap: 10px; }
.shelf h3 .muted { font-weight: 500; font-size: 0.9rem; }
.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.rail figure { margin: 0; flex: none; scroll-snap-align: start; }
.rail button.shot { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; border-radius: 16px; }
.rail img { border-radius: 16px; border: 1px solid var(--line); background: #000; }
.rail .phone img { height: clamp(360px, 52vw, 520px); width: auto; border-radius: 26px; border: 5px solid #0a0a0f; }
.rail .wide img { height: clamp(200px, 30vw, 340px); width: auto; }
.rail .tablet img { height: clamp(220px, 32vw, 380px); width: auto; border: 6px solid #0a0a0f; border-radius: 18px; }
.rail figcaption { font-size: 0.85rem; color: var(--text-3); margin-top: 10px; max-width: 30ch; }
.rail .wide figcaption, .rail .tablet figcaption { max-width: 50ch; }
[hidden] { display: none !important; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh;
}
dialog.lightbox::backdrop { background: rgba(3, 5, 14, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: 14px; margin: 0 auto; }
dialog.lightbox p { color: #e9ecff; text-align: center; margin: 12px 0 0; font-size: 0.95rem; }
dialog.lightbox .close {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 24px; cursor: pointer;
}

/* Availability table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elevated); }
table.matrix { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.95rem; }
.matrix th, .matrix td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); background: var(--bg-sunken); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.soon { color: var(--soon); font-weight: 600; font-size: 0.85rem; }
.no { color: var(--text-3); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 0.875rem; color: var(--text-3); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
section.alt .plan { background: var(--bg); }
.plan.featured { border: 2px solid var(--accent-fill); box-shadow: var(--shadow); }
.plan .price { font-size: 1.6rem; font-weight: 750; margin: 6px 0 4px; letter-spacing: -0.02em; }
.plan ul { padding-left: 1.1em; color: var(--text-2); font-size: 0.95rem; flex: 1; }
.plan .btn { margin-top: 12px; align-self: flex-start; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* Android download */
.dl-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
}
.dl-card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-ice); color: var(--brand-ink); display: grid; place-items: center; }
.dl-card .ico svg { width: 30px; height: 30px; }
.dl-card h3 { margin: 0 0 4px; }
.dl-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.dl-card .facts { font-size: 0.82rem; color: var(--text-3); margin-top: 6px; word-break: break-all; }
.dl-card .actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.dl-card details { grid-column: 1 / -1; font-size: 0.92rem; color: var(--text-2); }
.dl-card summary { cursor: pointer; color: var(--brand); font-weight: 600; }
@media (max-width: 720px) { .dl-card { grid-template-columns: auto 1fr; } .dl-card .actions { grid-column: 1 / -1; } }
details.advanced { margin: 8px 0 24px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--bg-sunken); color: var(--text-2); font-size: 0.92rem; }
details.advanced summary { cursor: pointer; color: var(--brand); font-weight: 600; }
details.advanced ul { padding-left: 1.1em; }
details.advanced ul.facts { list-style: none; padding: 0; }
details.advanced .facts { word-break: break-all; }
.status { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-size: 0.95rem; }
.status.pending { background: color-mix(in srgb, var(--soon) 14%, var(--bg-elevated)); border: 1px solid color-mix(in srgb, var(--soon) 35%, transparent); }
.status.live { background: color-mix(in srgb, var(--ok) 12%, var(--bg-elevated)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 64px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.steps > li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em;
  background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}
.shortlink { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 750; letter-spacing: -0.01em; }
.qr { width: 168px; height: 168px; background: #fff; border-radius: 12px; padding: 10px; border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

/* FAQ / prose */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 12px 0 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text-2); }
.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); }

/* CTA band */
.cta {
  border-radius: 28px; padding: clamp(32px, 6vw, 64px); color: #fff; text-align: center;
  background:
    radial-gradient(600px 300px at 90% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 60%),
    linear-gradient(150deg, var(--hero-from), var(--hero-to));
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.8); }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--text-3); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-2); }
.disclaimer { flex-basis: 100%; font-size: 0.82rem; max-width: 70rem; }

/* Small utilities (the Content-Security-Policy allows no inline styles). */
.spot-title { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.cta-icon { margin: 0 auto 20px; }
.gap-top { margin-top: 28px; }
section.block.flush-top { padding-top: 0; }
