/* STB Prime marketing site. Same violet as the app. */
:root {
  /* The app's own black-purple (its opening screen), panels a shade lighter. */
  --bg: #05020b;
  --bg-2: #0d0817;
  --card: #15101f;
  --line: rgb(255 255 255 / 0.08);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #7c5cff;
  --accent-2: #a08cff;
  --accent-rgb: 124 92 255;
  --radius: 14px;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Tints over the page, the sticky nav, shadows and status colours. */
  --fill-1: rgb(255 255 255 / 0.03);
  --fill-2: rgb(255 255 255 / 0.06);
  --fill-3: rgb(255 255 255 / 0.1);
  --ring: rgb(255 255 255 / 0.12);
  --nav-bg: rgb(5 2 11 / 0.78);
  --shadow: rgb(0 0 0 / 0.55);
  --ok: #34c759;
  --ok-2: #34d399;
  --warn: #ffb020;
  --warn-text: #ffcf73;
  --brand-mono: #ffffff;
  color-scheme: dark;
}

/* Light theme: the same design on white. Set on <html> by the toggle in the
 * nav (remembered), else following the device's own setting. */
:root[data-theme='light'] {
  --bg: #f7f7fb;
  --bg-2: #eeeef6;
  --card: #ffffff;
  --line: rgb(20 20 40 / 0.1);
  --text: #111118;
  --muted: #4b4b57;
  --dim: #6b6b78;
  --accent: #6a4bff;
  --accent-2: #7c5cff;
  --accent-rgb: 106 75 255;
  --fill-1: rgb(20 20 40 / 0.03);
  --fill-2: rgb(20 20 40 / 0.05);
  --fill-3: rgb(20 20 40 / 0.08);
  --ring: rgb(20 20 40 / 0.14);
  --nav-bg: rgb(247 247 251 / 0.85);
  --shadow: rgb(30 30 60 / 0.18);
  --ok: #15803d;
  --ok-2: #047857;
  --warn: #d97706;
  --warn-text: #92400e;
  --brand-mono: #414141;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* clip, not hidden: decorative glows and the tilted phone frame sit partly
 * outside their boxes; clip stops them widening the page. */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--heading); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }
h3 { font-size: 19px; }
p { margin: 0; }

.grad {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, #c9b8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn--sm { padding: 9px 16px; font-size: 15px; }
.btn--lg { padding: 15px 26px; font-size: 17px; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgb(var(--accent-rgb) / 0.35);
}
.btn--primary:hover { transform: translateY(-1px); background: #8a6dff; }
.btn--ghost { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--fill-3); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--heading); }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand__suffix { font-weight: 700; font-size: 13px; letter-spacing: 0.18em; color: var(--accent-2); margin-left: 4px; }
/* The boxed "TV" of the app's own logo. */
img.brand__tv { display: block; height: 22px; width: auto; margin-left: 0; }
/* The mark's picture has clear space around it: pull the name in, as in the app's logo. */
.brand img.brand__mark, .footer__brand img.brand__mark { margin-right: -3px; }
.footer__brand img.brand__tv { height: 17px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__link { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav__link:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--pad) clamp(40px, 6vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.32), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero__title { font-size: clamp(42px, 6vw, 74px); line-height: 1.02; font-weight: 800; }
.hero__sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.hero__chips li {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fill-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero__visual { position: relative; padding-bottom: 8%; }

/* ── Device frames ── */
.device { margin: 0; overflow: hidden; background: #000; }
.device--tv {
  border-radius: 14px;
  box-shadow: 0 0 0 10px #050507, 0 0 0 11px #2a2a33, 0 40px 90px var(--shadow);
}
.device--phone {
  width: 30%;
  border-radius: 28px;
  box-shadow: 0 0 0 7px #050507, 0 0 0 8px #2a2a33, 0 30px 70px var(--shadow);
}
.hero__visual .device--phone { position: absolute; right: -4%; bottom: -2%; width: 27%; }

/* ── Feature rows ── */
.feature {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature--flip .feature__text { order: 2; }
.feature__text p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a08cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px var(--shadow);
}
.phones { display: flex; justify-content: center; gap: 6%; }
.phones .device--phone { width: 38%; }
.phones .device--phone:nth-child(2) { transform: translateY(12%); }

/* ── Theme swatches ── */
.swatches { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches li {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ring);
}
.swatches li:first-child { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Layouts ── */
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; padding: 0 var(--pad); }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.layouts { padding: clamp(56px, 8vw, 110px) 0; background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.layouts__grid {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.layout-card { margin: 0; grid-column: span 2; }
.layout-card:nth-child(-n + 2) { grid-column: span 3; }
.layout-card img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px var(--shadow); }
.layout-card figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
.layout-card strong { color: var(--text); margin-right: 8px; font-family: var(--heading); }

/* ── Cards ── */
.grid-section { padding: clamp(56px, 8vw, 110px) var(--pad); }
.cards {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card__icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 16px; display: block; box-sizing: border-box;
  border-radius: 11px; background: rgb(var(--accent-rgb) / 0.14);
  fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ── Steps ── */
.how { padding: clamp(56px, 8vw, 100px) var(--pad); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.steps li { padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.steps__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.18);
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 14px;
}
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ── Pricing ── */
.pricing { padding: clamp(40px, 6vw, 80px) var(--pad); }
.pricing__card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgb(var(--accent-rgb) / 0.22), transparent 60%),
    var(--card);
  box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.3);
}
.pricing__card p:not(.eyebrow) { margin: 16px auto 28px; max-width: 36em; color: var(--muted); }

/* ── Devices ── */
.devices { padding: clamp(40px, 6vw, 80px) var(--pad); }
.devices__list { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.devices__item {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.devices__item span { color: var(--muted); font-size: 15px; }
.devices__item em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--fill-2);
}
.devices__item--now em { color: var(--ok-2); background: rgb(52 211 153 / 0.12); }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-2); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ── CTA + footer ── */
.cta { text-align: center; padding: clamp(56px, 8vw, 110px) var(--pad); }
.cta p { margin: 12px 0 28px; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding: 36px var(--pad); }
.footer__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 16px; }
.footer__brand { font-family: var(--heading); }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 15px; }
.footer__links a:hover { color: var(--text); }
.footer__note { color: var(--dim); font-size: 13px; max-width: 70em; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__text { order: 0; }
  .hero__visual { margin-right: 6%; }
  .layouts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-card, .layout-card:nth-child(-n + 2) { grid-column: span 1; }
  .layout-card:first-child { grid-column: span 2; }
  .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav__link { display: none; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .cards { gap: 10px; }
  .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .card__icon { grid-row: span 2; margin: 0; }
  .card p { margin-top: 4px; font-size: 15px; }
  .devices__item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .devices__item em { justify-self: start; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ── Legal pages (privacy.html, terms.html) ───────────────────────────── */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  line-height: 1.65;
}
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent-2); }
.legal__updated { color: var(--muted); font-size: 0.9rem; }

/* ── Compare ─────────────────────────────────────────────── */
.compare { padding: clamp(56px, 8vw, 110px) var(--pad); }
.compare__wrap { max-width: 960px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.compare__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare__table th, .compare__table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table thead th { font-family: var(--heading); font-size: 15px; color: var(--muted); }
.compare__table tbody th { color: var(--muted); font-weight: 600; width: 22%; }
.compare__table td { color: var(--muted); }
.compare__table .compare__us { color: var(--text); background: rgb(var(--accent-rgb) / 0.08); }
.compare__table thead .compare__us { color: var(--text); }

/* ── Resellers ───────────────────────────────────────────── */
.resellers { background: linear-gradient(180deg, transparent, rgb(var(--accent-rgb) / 0.06) 50%, transparent); }
.resellers__ticks { max-width: 760px; margin: 40px auto 0; }
.resellers__cta { text-align: center; margin: 36px 0 0; padding-bottom: clamp(24px, 4vw, 48px); }

/* ── Support ─────────────────────────────────────────────── */
.support .card h3 { margin-top: 0; }
.support__contact { border-color: rgb(var(--accent-rgb) / 0.45); }
@media (max-width: 640px) {
  .compare__table { font-size: 13.5px; }
  .compare__table th, .compare__table td { padding: 12px 10px; }
  .compare__table tbody th { width: 26%; }
}
.resellers__compare { margin-top: 40px; }

/* ── Legal disclaimer (every page, above the footer) ─────── */
.disclaimer {
  max-width: 900px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  padding: 22px 26px;
  border: 1px solid rgb(255 176 32 / 0.35);
  border-left: 4px solid var(--warn);
  border-radius: 14px;
  background: rgb(255 176 32 / 0.07);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.disclaimer strong { color: var(--text); }
.disclaimer__title {
  margin: 0 0 6px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warn-text);
}
.disclaimer p { margin: 0; }
.disclaimer .disclaimer__title { margin-bottom: 6px; }
@media (max-width: 640px) { .disclaimer { margin-left: 16px; margin-right: 16px; padding: 18px; font-size: 14px; } }

/* ── Platform strip (hero) ───────────────────────────────── */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.platforms__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--fill-1);
  color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.2;
}
.platforms__item { text-decoration: none; transition: border-color .15s, background .15s; }
.platforms__item:hover { border-color: rgb(var(--accent-rgb) / 0.55); background: rgb(var(--accent-rgb) / 0.08); }
.platforms__item svg { width: 26px; height: 26px; flex: none; }
.platforms__web { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.platforms__firetv { width: 48px !important; height: 26px !important; }
.platforms__item span { display: flex; flex-direction: column; }
.platforms__item small { font-size: 11.5px; font-weight: 500; color: var(--dim, #71717a); }
.platforms__item { color: var(--text); }
.platforms__item small { color: var(--ok); }

/* ── Theme toggle (nav) ──────────────────────────────────── */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--fill-1);
  color: var(--muted); cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text); background: var(--fill-2); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-toggle__sun { display: none; }
:root[data-theme='light'] .theme-toggle .theme-toggle__sun { display: block; }
:root[data-theme='light'] .theme-toggle .theme-toggle__moon { display: none; }
/* Light theme: the disclaimer's amber box reads better a touch stronger. */
:root[data-theme='light'] .disclaimer { background: rgb(217 119 6 / 0.07); border-color: rgb(217 119 6 / 0.35); }
/* Phones: the toggle and the button share the header without the button wrapping. */
.nav .btn--sm { white-space: nowrap; }
@media (max-width: 640px) {
  .theme-toggle { width: 34px; height: 34px; }
  .nav .btn--sm { padding: 8px 14px; font-size: 14px; }
  .nav__links { gap: 10px; }
}
/* Phones: the platform strip two to a row. */
@media (max-width: 640px) {
  .platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .platforms__item { padding: 8px 10px; gap: 8px; font-size: 13px; min-width: 0; }
  .platforms__item span { min-width: 0; }
  .platforms__item svg { width: 22px; height: 22px; }
  .platforms__firetv { width: 38px !important; height: 22px !important; }
  .platforms__item small { font-size: 11px; }
}

/* ── Brand mark (the play mark, as in the app) ── */
img.brand__mark { display: block; width: 34px; height: 34px; object-fit: contain; }
/* The STB Prime wordmark (mark + lettering + 4K badge), one picture. */
img.brand__wordmark { display: block; height: 34px; width: auto; }
.footer__brand img.brand__wordmark { height: 26px; }
/* White lettering on the dark theme, dark lettering on the light one. */
img.brand__wordmark--light { display: none; }
:root[data-theme='light'] img.brand__wordmark--dark { display: none; }
:root[data-theme='light'] img.brand__wordmark--light { display: block; }
.footer__brand { display: inline-flex; align-items: center; gap: 5px; }
.footer__brand img.brand__mark { width: 26px; height: 26px; }

/* ── Beta tag: on for the whole site while window.STB4K_SITE.beta is true
 *    (site-config.js, written at deploy from release.env). ── */
.beta-tag {
  display: none;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgb(var(--accent-rgb) / 0.14);
  box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.4);
}
.is-beta .beta-tag { display: inline-block; }
.beta-only { display: none; }
.is-beta .beta-only { display: block; }

/* ── The mark on the main buttons ── */
.btn__mark { width: 22px; height: 22px; margin-right: 10px; object-fit: contain; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.35)); }
.btn--brand { padding-left: 22px; }
.btn--brand .btn__mark { width: 26px; height: 26px; }
/* The app's own icon (dark tile), as on a home screen. */
.btn .btn__mark { border-radius: 23%; filter: none; box-shadow: 0 1px 3px rgb(0 0 0 / 0.35); width: 28px; height: 28px; margin: -4px 4px -4px -4px; }
.btn--brand .btn__mark { width: 32px; height: 32px; }

.platforms__item--soon { opacity: 0.75; }
.devices__cta { text-align: center; margin-top: 28px; }

/* ── Download page ── */
.download { max-width: 900px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--pad); }
.download h1 { font-family: var(--heading); font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin: 0 0 10px; }
.download__lead { color: var(--muted); font-size: 18px; max-width: 42em; }
.download__block { margin-top: 36px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--fill-1); scroll-margin-top: 90px; }
.download__block h2 { font-family: var(--heading); font-size: 22px; margin: 0 0 6px; }
.download__block > p { color: var(--muted); margin: 0 0 16px; }
.download__code { display: inline-flex; align-items: center; gap: 18px; margin: 6px 0 18px; padding: 14px 22px; border-radius: 14px; background: rgb(var(--accent-rgb) / 0.12); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.4); }
.download__code small { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.download__code strong { line-height: 1; font-family: var(--heading); font-size: clamp(30px, 6vw, 44px); letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.download__steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.download__steps li::marker { color: var(--accent-2); font-weight: 700; }
.download__block > p.download__note { margin: 22px 0 0; color: var(--dim); font-size: 14px; }
.download__actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 20px; }
.download__meta { color: var(--dim); font-size: 14px; }

.download__code[hidden] { display: none; }

/* ── Become a reseller: the form dialog ── */
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card, var(--bg)); color: var(--text); box-shadow: 0 30px 80px var(--shadow); overflow: auto; }
.modal::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(3px); }
.modal__form, .modal__done { position: relative; padding: clamp(22px, 4vw, 32px); }
.modal__form[hidden], .modal__done[hidden] { display: none; }
.modal h2 { font-family: var(--heading); font-size: 24px; letter-spacing: -0.01em; margin: 0 40px 8px 0; }
.modal__lead, .modal__done p { color: var(--muted); margin: 0 0 22px; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--fill-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--fill-3); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--dim); }
.field--wide { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--ring); border-radius: 10px; background: var(--fill-1); color: var(--text); font: inherit; font-weight: 400; font-size: 16px; }
.field input, .field select { height: 46px; }
.field > span { display: block; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .modal__close:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.form__error { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: rgb(255 80 80 / 0.12); color: var(--text); font-size: 15px; }
.form__error[hidden] { display: none; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.modal__fine { margin: 16px 0 0; color: var(--dim); font-size: 13px; }
.modal__fine a { color: var(--accent-2); }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } .modal__actions .btn { flex: 1 1 100%; } }

/* ════════ Motion and the interactive pieces (site.js) ════════ */

/* The accent can be re-tinted from the theme demo: text on it follows. */
.btn--primary { color: var(--on-accent, #fff); }
.btn--primary:hover { background: var(--accent); filter: brightness(1.12); }
.grad { background-image: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, color-mix(in srgb, var(--accent) 45%, #fff)); }
.ticks li::before { background: rgb(var(--accent-rgb) / 0.18); }
.ticks li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: calc(0.3em + 3px);
  width: 12px;
  height: 12px;
  background: var(--accent-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root { transition: --accent 0.3s; }
.btn--primary, .card__icon, .steps__num, .eyebrow, .pricing__card { transition: background-color 0.35s, color 0.35s, box-shadow 0.35s, transform 0.15s, filter 0.15s; }

/* Sections arrive on scroll. Only when site.js has switched motion on. */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .feature__media[data-reveal] { transform: translateY(22px) scale(0.97); }
.motion .feature__media[data-reveal].in { transform: none; }

/* Hero: the text and the devices come in once, and the glow drifts. */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: 0.06s; }
  .hero__text > :nth-child(3) { animation-delay: 0.12s; }
  .hero__text > :nth-child(4) { animation-delay: 0.18s; }
  .hero__text > :nth-child(5) { animation-delay: 0.24s; }
  .hero__text > :nth-child(6) { animation-delay: 0.3s; }
  .hero__visual .device--tv { animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__visual .device--phone { animation: rise 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both, bob 7s 1.4s ease-in-out infinite; }
  .hero::before { animation: drift 16s ease-in-out infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-9%, 7%) scale(1.14); } }

/* Hero reel: the TV cycles through the layouts. The first shot holds the box. */
.reel { position: relative; }
.reel img:not(:first-child) { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.reel img { transition: opacity 0.9s ease; }
.reel img.is-on { opacity: 1; }
.reel__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgb(10 10 15 / 0.62);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}

/* Layouts: tabs over one large screenshot. */
.layout-switch { max-width: 1040px; margin: 0 auto; padding: 0 var(--pad); }
.layout-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.layout-tabs button {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--fill-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font: 600 15px var(--heading);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.layout-tabs button:hover { color: var(--text); background: var(--fill-3); }
.layout-tabs button[aria-selected='true'] { background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 8px 24px rgb(var(--accent-rgb) / 0.35); }
.layout-tabs button:focus-visible, .swatches button:focus-visible, .more-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.layout-stage { position: relative; }
.layout-stage img:not(:first-child) { position: absolute; inset: 0; width: 100%; height: 100%; }
.layout-stage img { opacity: 0; transform: scale(1.015); transition: opacity 0.45s ease, transform 0.6s ease; }
.layout-stage img.is-on { opacity: 1; transform: none; }
.layout-note { margin-top: 16px; text-align: center; color: var(--muted); font-size: 15px; }

/* Theme demo: the swatches are buttons. */
.swatches li { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; }
.swatches li:first-child { box-shadow: none; }
.swatches button {
  display: block;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ring);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.swatches button:hover { transform: scale(1.14); }
.swatches button[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--c); transform: scale(1.08); }
.feature__text p.swatches__hint { margin-top: 10px; font-size: 14px; color: var(--dim); }

/* Cards lift a little under the pointer. */
@media (hover: hover) {
  .card, .steps li, .devices__item { transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s ease; }
  .card:hover, .steps li:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.45), 0 18px 40px var(--shadow); }
  .motion .card[data-reveal].in:hover, .motion .steps li[data-reveal].in:hover { transform: translateY(-3px); transition-delay: 0s; }
}

/* Long lists start short. */
.is-short > .is-extra { display: none; }
.more-row { text-align: center; margin: 22px 0 0; }
.more-btn { padding: 10px 20px; }

/* FAQ rows open smoothly where the browser can animate to "auto". */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq summary::after { transition: transform 0.25s; }
.faq details[open] summary::after { content: '+'; transform: rotate(45deg); }

/* Reseller panel: an illustration built here, so it follows the theme. */
.panel-mock {
  max-width: 960px;
  margin: 40px auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px var(--shadow);
  font-size: 14px;
}
.panel-mock__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--fill-2); border-bottom: 1px solid var(--line); }
.panel-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--fill-3); }
.panel-mock__bar span { margin-left: 10px; color: var(--dim); font-size: 12.5px; }
.panel-mock__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.panel-mock__side { display: grid; align-content: start; gap: 4px; padding: 16px 10px; border-right: 1px solid var(--line); }
.panel-mock__side b { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 9px; font-weight: 500; color: var(--muted); }
.panel-mock__side b.is-on { background: rgb(var(--accent-rgb) / 0.16); color: var(--text); font-weight: 600; }
.panel-mock__side em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); }
.panel-mock__main { padding: 16px 18px 8px; min-width: 0; }
.panel-mock__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.panel-mock__head strong { font: 700 18px var(--heading); }
.panel-mock__row { display: grid; grid-template-columns: minmax(0, 1.7fr) 0.7fr 0.9fr 0.9fr auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); }
.panel-mock__row--head { border-top: 0; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding: 6px 0; }
.panel-mock__row b { display: block; color: var(--text); font-weight: 600; }
.panel-mock__row small { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--dim); }
.panel-mock__row em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--fill-2); white-space: nowrap; }
.panel-mock__row em.ok { color: var(--ok-2); background: rgb(52 211 153 / 0.12); }
.panel-mock__row em.wait { color: var(--warn-text); background: rgb(255 176 32 / 0.12); }
.panel-mock__btn { justify-self: end; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.panel-mock__btn--main { background: var(--accent); color: var(--on-accent, #fff); box-shadow: none; }
.panel-mock__note { max-width: 960px; margin: 12px auto 0; text-align: center; color: var(--dim); font-size: 13px; }
@media (max-width: 720px) {
  .panel-mock__body { grid-template-columns: minmax(0, 1fr); }
  .panel-mock__side { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .panel-mock__side b { gap: 6px; white-space: nowrap; }
  .panel-mock__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .panel-mock__row > :nth-child(2), .panel-mock__row > :nth-child(3) { display: none; }
  .panel-mock__row--head { display: none; }
  .panel-mock__row > :nth-child(4) { grid-column: 1; grid-row: 2; }
  .panel-mock__row > :nth-child(5) { grid-column: 2; grid-row: 1 / span 2; }
}

/* What's new */
.news { padding: clamp(40px, 6vw, 80px) var(--pad); }
.news__list { list-style: none; max-width: 820px; margin: 0 auto; padding: 0; display: grid; gap: 14px; }
.news__item { padding: 22px 26px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.news__when { color: var(--dim); font-size: 14px; }
.news__when strong { margin-right: 10px; padding: 3px 10px; border-radius: 999px; font-family: var(--heading); font-size: 13px; color: var(--accent-2); background: rgb(var(--accent-rgb) / 0.14); }
.news__item ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); font-size: 16px; }
.news__item li::marker { color: var(--accent-2); }

/* Download page: QR for the phone */
.download__qr { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.download__qr img { flex: none; width: 120px; height: 120px; padding: 6px; border-radius: 12px; background: #fff; }
.download__qr p { color: var(--muted); font-size: 15px; max-width: 30em; }
.download__qr strong { color: var(--text); }
@media (max-width: 640px) { .download__qr { display: none; } }

/* 404 */
.notfound { max-width: 640px; margin: 0 auto; padding: clamp(72px, 14vh, 160px) var(--pad); text-align: center; }
.notfound h1 { font-size: clamp(32px, 5vw, 48px); }
.notfound p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Phones: each comparison row becomes a card (labels set by site.js). */
@media (max-width: 640px) {
  .compare__wrap { border: 0; border-radius: 0; overflow: visible; }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; width: auto; }
  .compare__table thead { display: none; }
  .compare__table tbody { display: grid; gap: 10px; }
  .compare__table tbody tr { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
  .compare__table tbody tr.is-extra { display: block; }
  .compare__table tbody.is-short tr.is-extra { display: none; }
  .compare__table tbody th { width: auto; padding: 14px 16px 4px; border: 0; font: 700 16px var(--heading); color: var(--text); }
  .compare__table td { padding: 8px 16px 12px; border: 0; font-size: 15px; }
  .compare__table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
  .compare__table td.compare__us[data-label]::before { color: var(--accent-2); }
  .compare__table td:last-child { border-top: 1px solid var(--line); }
  .layout-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scrollbar-width: none; }
  .layout-tabs button { flex: none; padding: 8px 15px; font-size: 14px; }
  .reel__tag { left: 8px; bottom: 8px; font-size: 10.5px; padding: 3px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel img, .layout-stage img, .swatches button, .card, .steps li { transition: none; }
}
/* Light theme: the headline gradient stays dark enough to read in any accent. */
:root[data-theme='light'] .grad { background-image: linear-gradient(100deg, var(--accent-2), color-mix(in srgb, var(--accent-2) 78%, #000)); }

/* ════════ The app's opening screen as the backdrop ════════ */
/* Hero: a full-width canvas of light waves and particles (drawn by site.js),
 * fading out towards the next section. */
.stage {
  position: absolute;
  left: 50%;
  top: -72px;
  width: 100vw;
  height: calc(100% + 72px);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
  mask-image: linear-gradient(#000 58%, transparent);
}
:root:not([data-theme='light']) .hero { background: radial-gradient(ellipse 58% 60% at 62% 48%, rgb(18 7 31 / 0.9) 0%, transparent 70%); }
:root[data-theme='light'] .stage { opacity: 0.7; }

/* Closing section: the halo and the thin line of light behind the app's logo. */
.cta { position: relative; isolation: isolate; overflow: clip; }
.cta::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(84vw, 1000px);
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(var(--accent-rgb) / 0.22) 0%, rgb(var(--accent-rgb) / 0.08) 38%, transparent 72%);
  filter: blur(28px);
  z-index: -1;
}
.cta::after {
  content: '';
  position: absolute;
  left: 50%;
  top: clamp(28px, 4vw, 56px);
  width: min(72vw, 900px);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, color-mix(in srgb, var(--accent) 35%, #fff) 50%, var(--accent) 65%, transparent);
  box-shadow: 0 0 22px rgb(var(--accent-rgb) / 0.9);
  opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .cta::after { animation: glint 6s ease-in-out infinite; }
  .cta::before { animation: halo 8s ease-in-out infinite alternate; }
}
@keyframes glint { 0%, 100% { transform: scaleX(0.35); opacity: 0.15; } 50% { transform: scaleX(1); opacity: 0.7; } }
@keyframes halo { from { transform: scale(0.85); opacity: 0.7; } to { transform: scale(1.1); opacity: 1; } }
