* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Accent, matching the focused menu card in the TV app (#0087fe). */
  --orange: #0087fe;
  --orange2: #33a1ff;
  /* Palette of the TV app (apps/tv-app/src/theme.css): near-black base,
     slightly lifted panels, neutral surfaces, hairline borders. Colour is
     used for the accent and for status only. */
  --bg-1: #0c0e11;
  --bg-2: #111317;
  --bg-3: #1a1d22;
  --success: #7bd97f;
  --warning: #ffcf66;
  --danger: #ff8a8a;
  --card: rgba(26, 29, 34, 0.92);
  --card-soft: rgba(26, 29, 34, 0.5);
  --line: rgba(255, 255, 255, 0.1);
  --text-dim: rgba(255, 255, 255, 0.75);
  /* Bebas Neue (headings) + Manrope (everything else), both SIL OFL 1.1, so
     free for commercial use. Bebas has no Cyrillic/Greek/Arabic glyphs; the
     browser falls back to Manrope per glyph for ru/el, system font for ar. */
  --font-body: 'Manrope', 'Segoe UI', Arial, Helvetica, sans-serif;
  --font-display: 'Bebas Neue', 'Manrope', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

/* No square flash when tapping on phones (the browser's tap highlight ignores
   rounded corners); buttons and links have their own press/hover styles. */
html { -webkit-tap-highlight-color: transparent; }
/* Focus rings only for keyboard users: a mouse click or tap never draws one,
   Tab still does (:focus-visible rules elsewhere stay as they are). */
:focus:not(:focus-visible) { outline: none; }

body {
  font-family: var(--font-body);
  color: #fff;
  background: var(--bg-1);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Cinematic streaming background: dark gradient + soft orange glow + subtle dot grid */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-1);
}

/* Soft accent glow behind the hero so the centred content reads as the focal
   point, the same way a focused card lifts off the background in the app. */
.bg::before {
  content: '';
  position: absolute;
  top: -18vh;
  left: 50%;
  width: min(1100px, 120vw);
  height: min(1100px, 120vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 135, 254, 0.16) 0%, rgba(0, 135, 254, 0) 62%);
  pointer-events: none;
}

/* Activate / playlist pages: plain app base, no accent glow. */
.page-activate .bg::before { display: none; }
/* Activate page uses the same neutral gray gradient */
.page-activate .bg {
  background: var(--bg-1);
}

/* Top row: logo left, language selector right */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 44px 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* raz-logo.png is cropped to the artwork (1050x308), so the box height is the
   mark's height. 54px matches how large the mark rendered when the source still
   had ~70% transparent padding and the box was 180px tall. */
.brand-logo { height: 54px; width: auto; display: block; }

/* ---------------- Language dropdown ---------------- */
.lang-dropdown { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 100;
  letter-spacing: 1px;
  cursor: pointer;
  min-width: 150px;
}
.lang-current:focus,
.lang-dropdown.open .lang-current { outline: none; border-color: var(--orange); }
.lang-caret { margin-left: auto; opacity: 0.7; }
.lang-flag {
  width: 26px; height: 18px; object-fit: cover; border-radius: 3px;
  flex-shrink: 0; background: rgba(255, 255, 255, 0.1);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 60vh;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(26, 29, 34, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 30;
  display: none;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  color: #fff; font-weight: 100; letter-spacing: 1px;
}
.lang-option:hover { background: rgba(255, 255, 255, 0.12); }
.lang-option.selected { background: var(--orange); }

/* ===================== HERO (full screen) ===================== */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 24px 60px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 40px;
  background: rgba(0, 135, 254, 0.15);
  border: 1px solid rgba(0, 135, 254, 0.4);
  color: var(--orange2);
  font-weight: 100;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -1px;
  max-width: 16ch;
  color: #fff;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-trust {
  margin-top: 22px;
  font-size: 15px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 16px 34px;
  border-radius: 40px;
  transition: transform 0.25s cubic-bezier(0.34, 1.7, 0.5, 1), filter 0.2s, background 0.2s, border-color 0.2s;
}
.btn-lg { font-size: 19px; padding: 18px 40px; }
.btn-ico { width: 21px; height: 21px; flex-shrink: 0; }
.btn-primary { color: #fff; background: var(--orange); }
.btn-primary:hover {
  transform: scale(1.06) translateY(-3px);
  filter: brightness(1.08);
}
.btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: var(--orange); background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.btn-primary:focus-visible, .btn-ghost:focus-visible {
  outline: 3px solid var(--orange2);
  outline-offset: 3px;
}

.scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 26px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-hint svg { animation: bounce 1.8s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===================== SHOWCASE (app main-menu cards) ===================== */
.showcase {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 28px 20px;
  text-align: center;
}
.section-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 620px;
  margin: -18px auto 44px;
}

/* Same proportions and focus behaviour as .menu-item in the TV app, scaled
   down for a browser and with the middle card pre-focused. */
.menu-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.menu-card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 28px;
  padding: 38px 26px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.18s ease, background 0.2s, border-color 0.2s;
}
.menu-card:hover {
  background: var(--orange);
  border-color: transparent;
  transform: scale(1.05) translateY(-8px);
}
.menu-icon-circle {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 5px;
  display: flex;
  flex-shrink: 0;
}
.menu-card:hover .menu-icon-circle {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}
.menu-icon-inner {
  flex: 1;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  background-size: 46%;
  background-position: center;
  background-repeat: no-repeat;
}
.menu-label {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.menu-desc {
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}
.menu-card:hover .menu-desc { color: rgba(255, 255, 255, 0.92); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}
.pill-ico { width: 18px; height: 18px; opacity: 0.75; filter: invert(1); }

/* ===================== HOW IT WORKS ===================== */
.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 28px 20px;
  text-align: center;
}
.how-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  counter-reset: step;
  text-align: left;
}
.step-card {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 26px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 135, 254, 0.12);
  border: 1px solid rgba(0, 135, 254, 0.45);
  color: var(--orange);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.step-card p { font-size: 17px; line-height: 1.6; color: var(--text-dim); }

/* ===================== DOWNLOAD ===================== */
.download {
  max-width: 960px;
  margin: 0 auto;
  padding: 90px 28px 20px;
  text-align: center;
}
.dl-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}
/* The card is a plain panel. Only .dl-go inside it is a link. */
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px 28px;
  border-radius: 22px;
  background: var(--card-soft);
  border: 2px solid var(--line);
  color: #fff;
}
.dl-card h3 { font-size: 25px; font-weight: 600; }
.dl-card p { font-size: 17px; line-height: 1.55; color: var(--text-dim); }
.dl-meta { font-size: 14.5px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.45); }
.dl-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  align-self: flex-start;
  padding: 13px 30px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  color: #fff;
  background: var(--orange);
  transition: transform 0.2s cubic-bezier(0.34, 1.7, 0.5, 1), filter 0.2s;
}
.dl-go:hover { transform: translateY(-3px); filter: brightness(1.08); }
.dl-go:focus-visible { outline: 3px solid var(--orange2); outline-offset: 3px; }
/* Teaser: "Coming soon" in place of a link that needs the server. */
.btn-soon { cursor: default; opacity: 0.7; pointer-events: none; }
/* Not released yet: a quiet, non-clickable pill instead of the download. */
.dl-go.dl-soon,
.dl-go.dl-soon:hover {
  color: #5b6270;
  background: #eef0f3;
  box-shadow: inset 0 0 0 1px #e4e7ec;
  transform: none;
  filter: none;
  cursor: default;
}
.dl-note {
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== ABOUT ===================== */
.about {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 20px;
}
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 54px;
  padding: 60px 0;
}
.about-row.reverse .about-text { order: 2; }
.about-row.reverse .about-visual { order: 1; }

.about-text h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.about-text p {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

/* App screenshots (drop your images in public/screenshots/) */
.about-visual { display: flex; justify-content: center; }
.shot {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Live TV mockup */
.mock-live {
  display: grid;
  grid-template-columns: 84px 1fr 1.25fr;
  gap: 12px;
  height: 300px;
}
.mock-cats, .mock-channels { display: flex; flex-direction: column; gap: 8px; }
.mock-cat, .mock-ch {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-cat.active, .mock-ch.active {
  background: var(--orange);
  color: #fff;
  font-weight: 100;
}
.mock-preview {
  background: #000;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  overflow: hidden;
  background-image: linear-gradient(135deg, #10233b 0%, #1c3a5e 100%);
}
.mock-play {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}
.mock-now { display: flex; align-items: center; gap: 10px; }
.mock-badge {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 100;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 5px;
}
.mock-prog { font-size: 14px; color: rgba(255, 255, 255, 0.9); }

/* Movies grid mockup */
.mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.poster {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: linear-gradient(160deg, #2a3855 0%, #3a4d73 100%);
  position: relative;
  overflow: hidden;
}
.poster::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(0, 135, 254, 0.35), transparent);
}
.poster:nth-child(3n)::after { background: linear-gradient(to top, rgba(0, 135, 254, 0.4), transparent); }

/* Menu mockup */
.mock-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 240px;
}
.mcard {
  border-radius: 16px;
  background: rgba(26, 29, 34, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 100;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.mcard.active {
  background: var(--orange);
  border-color: transparent;
  transform: scale(1.06);
}

/* ===================== FAQ ===================== */
.faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 28px 20px;
}
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: rgba(26, 29, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 19px;
  font-weight: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--orange2), var(--orange2)) center / 100% 2px no-repeat,
    linear-gradient(var(--orange2), var(--orange2)) center / 2px 100% no-repeat;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 24px 20px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ===================== FINAL CTA ===================== */
.cta-final {
  text-align: center;
  padding: 100px 24px 50px;
}
.cta-final h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 30px;
}

/* ===================== Footer ===================== */
.foot {
  text-align: center;
  padding: 40px 20px 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
}
.foot-logo { height: 54px; width: auto; margin-bottom: 14px; }
.foot a { color: var(--orange); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-copy { margin-top: 10px; font-size: 14px; opacity: 0.6; }
.foot-legal { margin-top: 12px; font-size: 14px; }
.foot-legal a { color: rgba(255, 255, 255, 0.7); }
.foot-legal a:hover { color: var(--orange); }

/* ===================== Activate page ===================== */
.wrap { max-width: 640px; margin: 0 auto; padding: 8px 20px 60px; }
.hero { text-align: center; margin: 10px 0 30px; }
.hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 100;
  line-height: 1.1;
  margin-bottom: 14px;
}
.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto;
}
/* Same panel as the TV app's modals / activation screen: dark, a faint lift
   at the top, hairline border. */
.card {
  background-color: var(--bg-2);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 40%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 30px 30px 24px;
}
form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* Inputs like the app's forms: quiet fill, hairline border, accent on focus. */
form input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 16px 18px;
  font-size: 22px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.15s, background-color 0.15s;
}
form input::placeholder { color: rgba(255, 255, 255, 0.3); font-weight: 400; }
form input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
}
button {
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0;
  color: #fff;
  border: none;
  border-radius: 12px;
  background: var(--orange);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s, background-color 0.15s;
}
button:hover { transform: scale(1.02); background: var(--orange2); }
button:disabled { opacity: 0.6; cursor: default; transform: none; }
/* A text link that is a <button> (e.g. "I don't have a MAC address"): undo the
   big primary-button look above. */
button.link-btn {
  width: auto;
  margin: -8px 0 18px;
  padding: 2px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--orange2);
  background: none;
  border: none;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.link-btn:hover { transform: none; background: none; color: #fff; }
button.link-btn:focus-visible { outline: 2px solid var(--orange2); outline-offset: 3px; }
.message { margin-top: 12px; font-size: 18px; font-weight: 100; text-align: center; min-height: 0; }
.message:empty { margin-top: 0; }
.message.ok { color: var(--success); }
.message.err { color: var(--danger); }
.steps {
  margin-top: 40px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 26px 30px;
}
.steps h2 { font-size: 24px; margin-bottom: 16px; }
.steps ol { padding-left: 22px; line-height: 1.9; font-size: 18px; color: rgba(255, 255, 255, 0.7); }

/* Note under the pay button */
.pay-note {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Secondary path: redeem a prepaid code instead of paying */
.code-block {
  margin-top: 20px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
.code-block > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.code-block > summary::-webkit-details-marker { display: none; }
.code-block > summary::after {
  content: '';
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--orange2), var(--orange2)) center / 100% 2px no-repeat,
    linear-gradient(var(--orange2), var(--orange2)) center / 2px 100% no-repeat;
  transition: transform 0.2s;
}
.code-block[open] > summary::after { transform: rotate(45deg); }
.code-block > summary:hover { color: #fff; }
.code-block form { padding: 0 24px 22px; }

/* "Payment received" confirmation after returning from Lemon Squeezy */
.paid-panel { text-align: center; }
.paid-check {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #3fa957;
}
.paid-check svg { width: 38px; height: 38px; }
.paid-panel h1 {
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
}
.paid-key {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
}
.paid-key strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: 3px;
  color: #fff;
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .menu-row { grid-template-columns: 1fr; gap: 18px; }
  .menu-card { flex-direction: row; text-align: left; align-items: center; gap: 22px; padding: 24px; }
  .menu-icon-circle { width: 88px; height: 88px; }
  .menu-label { font-size: 22px; }
  .how-row { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .about-row { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .about-row.reverse .about-text { order: 1; }
  .about-row.reverse .about-visual { order: 2; }
  .showcase, .how, .download { padding-top: 60px; }
}
@media (max-width: 620px) {
  .topbar { padding: 14px 20px 0; }
  .brand-logo { height: 25px; }
  .lang-current { min-width: 0; }
  .lang-current span#langLabel { display: none; }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .btn-lg { width: 100%; }
  .foot-logo { height: 33px; }
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint svg { animation: none; }
  .btn-primary:hover, .btn-ghost:hover, .menu-card:hover, .dl-go:hover { transform: none; }
}

/* ===================== Legal pages (privacy / terms / cookies) ===================== */
.legal { max-width: 860px; margin: 0 auto; padding: 8px 24px 80px; }
.legal .legal-head { text-align: center; margin: 10px 0 26px; }
.legal h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 100;
  line-height: 1.1;
  margin-bottom: 10px;
}
.legal .updated { color: rgba(255, 255, 255, 0.55); font-size: 15px; letter-spacing: 1px; }
.legal .legal-note {
  background: rgba(0, 135, 254, 0.1);
  border: 1px solid rgba(0, 135, 254, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 30px;
}
.legal h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  margin: 34px 0 12px;
  color: #fff;
}
.legal h3 { font-size: 18px; font-weight: 600; margin: 20px 0 8px; color: rgba(255,255,255,0.92); }
.legal p, .legal li {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--orange); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 15.5px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: top;
  color: rgba(255, 255, 255, 0.8);
}
.legal th { background: rgba(255, 255, 255, 0.05); font-weight: 600; color: #fff; }
.legal .placeholder { color: var(--orange2); font-style: italic; }
.legal-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.legal-nav a { font-size: 15px; letter-spacing: 1px; }
.back-home {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 15px; letter-spacing: 1px;
}
.back-home:hover { color: #fff; }

/* ===================== Send playlist page ===================== */
/* URLs, usernames and passwords are case-sensitive: undo the uppercase
   styling the activation inputs use. Only the TV code stays uppercase. */
.pl-form input {
  text-transform: none;
  letter-spacing: 0;
  font-size: 18px;
}
.pl-form input.pl-code {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 24px;
  text-align: center;
}
.pl-types {
  display: flex;
  gap: 10px;
  margin: 4px 0 22px;
}
.pl-types .pl-type {
  flex: 1;
  margin: 0;
  padding: 14px 10px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.16);
}
.pl-types .pl-type:hover {
  transform: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}
.pl-types .pl-type.active {
  color: #fff;
  background: rgba(0, 135, 254, 0.18);
  border-color: rgba(0, 135, 254, 0.45);
}
.pl-types .pl-type:focus-visible,
.pl-secondary:focus-visible {
  outline: 3px solid var(--orange2);
  outline-offset: 3px;
}
.pl-secondary {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.22);
}

/* =====================================================================
   HOMEPAGE v2 (index.html, body.home2)
   ===================================================================== */
.home2 .bg::after {
  /* second, softer glow lower down so long scrolls don't go flat */
  content: '';
  position: absolute;
  bottom: -30vh;
  right: -20vw;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 135, 254, 0.08) 0%, rgba(0, 135, 254, 0) 60%);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.2s, border-color 0.2s, backdrop-filter 0.2s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 14, 17, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header .brand-logo { height: 44px; }
.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-header-actions { display: flex; align-items: center; gap: 12px; }
.site-header .lang-current { min-width: 0; padding: 8px 12px; }
.btn-sm { padding: 10px 22px; font-size: 15px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle:hover { transform: none; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Content that pokes out sideways (hero phone mock, marquee) is clipped here,
   not only by body. overflow-x: clip is not a scroll container, so the sticky
   header keeps working; without it, locking the page for the mobile menu lets
   the phone layout viewport grow to that overflow and the drawer slides off. */
#main, .site-foot { overflow-x: clip; }
/* Mobile-drawer-only pieces: hidden on desktop. */
.nav-drawer-cta, .nav-scrim { display: none; }
@media (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav.open, .nav-scrim, .nav-scrim.open { transition: none !important; }
}

/* ---------- Hero ---------- */
.h2-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 28px 70px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  /* Fill the first screen, but never become a huge empty block on tall
     screens (portrait monitors, zoomed-out browsers). */
  /* Hero + logo band together fill exactly the first screen: the band sits
     on the bottom edge when the page opens. svh = visible height on mobile. */
  min-height: calc(100vh - var(--header-h, 73px) - var(--band-h, 123px));
  min-height: calc(100svh - var(--header-h, 73px) - var(--band-h, 123px));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.5px;
  font-size: 15px;
}
.hero-badge:hover { background: rgba(0, 135, 254, 0.25); }
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange2);
  box-shadow: 0 0 0 4px rgba(51, 161, 255, 0.25);
}
.h2-title {
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #fff;
}
/* One mask per line: the text slides up from below it (motion.js). The small
   bottom padding keeps descenders (y, p, g) from being clipped. */
.h2-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.h2-line-in { display: inline-block; }
.h2-sub {
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 34px;
}
.h2-actions { justify-content: flex-start; }
.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15.5px;
}
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list svg {
  width: 18px; height: 18px;
  fill: none; stroke: #7bd97f; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

/* TV + phone mockup */
.h2-hero-visual { position: relative; padding: 20px 0 40px; }
.tv-mock { position: relative; }
.tv-screen {
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3f49 0%, #15171b 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.tv-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.tv-stand {
  width: 26%;
  height: 14px;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(#2a2e35, #15171b);
}
.phone-mock {
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 30%;
  min-width: 150px;
  aspect-ratio: 9 / 18.5;
  border-radius: 26px;
  padding: 8px;
  background: #0f1114;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  animation: floaty 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  width: 34%; height: 10px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #000;
}
.phone-body {
  height: 100%;
  border-radius: 19px;
  background: linear-gradient(135deg, #1b1e23 0%, #2c313a 100%);
  padding: 30px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.phone-title { font-size: 12px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.phone-field {
  height: 26px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 2px; color: #fff;
}
.phone-field.ghost { background: rgba(0, 0, 0, 0.25); }
.phone-field.short { width: 70%; }
.phone-seg { display: flex; gap: 6px; }
.phone-seg span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  padding: 6px 0;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.phone-seg span.on { background: var(--orange); border-color: transparent; }
.phone-btn {
  margin-top: auto;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 8px;
  background: var(--orange);
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 40px;
  font-size: 14px;
  background: rgba(26, 29, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  animation: floaty 7s ease-in-out infinite;
}
.chip-a { top: 0; left: -10px; }
.chip-b { top: 46%; left: -30px; animation-delay: -3s; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange2); }
.chip-dot.live { background: #ff4d4d; box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.2); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Device marquee (scrolling band) ---------- */
.devices {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.devices-title {
  text-align: center;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
}
.marquee {
  overflow: hidden;
  /* fade the edges so chips slide in/out softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  /* Decorative band: no text cursor, no selecting, no hover effects. */
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  list-style: none;
}
.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  padding: 14px 26px;
  border-radius: 16px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.88);
  background: var(--card-soft);
  border: 1px solid var(--line);
}
/* Real brand logos in their official colours (baked into the SVGs), shown
   straight on the dark band with no chip background, like a "works with"
   logo strip. The name next to each logo uses the brand colour too. */
/* One size for everything in the band: every logo mark is --logo-h tall,
   every name uses --logo-text, and each chip is the same height, so no brand
   looks bigger or smaller than another. */
.devices {
  --logo-h: 36px;
  --logo-text: 26px;
  --wordmark-h: 20px; /* Samsung's wide wordmark, optically matched to the text */
}
.device-logo {
  height: var(--logo-h);
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.devices .device-chip {
  background: none;
  border: 0;
  box-shadow: none;
  height: calc(var(--logo-h) + 24px);
  padding: 0 42px;
  gap: 12px;
  font-size: var(--logo-text);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.devices .marquee-group { gap: 8px; padding-right: 8px; }

/* Per-brand text colours. LG red and Samsung navy are too dark to read on
   the band, so their names use a light grey / white (Samsung's wordmark is
   also shown in white, the way brands appear on dark backgrounds). */
/* LG webOS lockup: white face on the red disc, "LG" bold grey, then a thin
   "web" in grey and "OS" in LG red, like the official webOS logo. */
.lg-word {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--logo-text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.lg-word b { font-weight: 700; color: #8e939b; margin-right: 8px; }
.lg-web { font-weight: 300; color: #8e939b; }
.lg-os { font-weight: 300; color: #b0144f; }
.brand-samsung { color: #ffffff; }
.brand-samsung .device-logo { filter: brightness(0) invert(1); }
.brand-android { color: #3ddc84; }
.brand-googletv { color: #8ab4f8; }
.brand-windows { color: #3d9be9; }
/* samsung.svg has its viewBox cropped to the wordmark (6:1), so it sizes
   like a normal image. */
.device-logo.wordmark { height: var(--wordmark-h); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stats {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 28px 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--orange2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 16px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.5px; }
.stat-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 246px; /* 7 flags per row, remaining row centered */
  margin: 0 auto 8px;
}
.stat-flags img {
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* ---------- Features grid ---------- */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 28px 20px;
  text-align: center;
}
.section-sub { margin-top: -14px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}
.feature-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 135, 254, 0.5);
  background: rgba(26, 29, 34, 0.75);
}
/* Neutral tile with a blue icon, like the TV app: colour on the symbol only. */
.feature-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
/* Icon files are drawn in white; a mask lets them take the accent colour. */
.feature-ico i {
  width: 26px; height: 26px;
  background: var(--orange);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.feature-ico svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--orange); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; line-height: 1.25; }
.feature-card p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.68); }

/* ---------- Screenshots ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange2);
  margin-bottom: 12px;
}
.home2 .shot {
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.8);
}

/* ---------- Add from phone ---------- */
.phone-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 28px 20px;
}
.phone-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 135, 254, 0.22) 0%, rgba(0, 135, 254, 0) 55%),
    var(--card-soft);
  border: 1px solid rgba(0, 135, 254, 0.3);
}
.phone-card h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 14px;
}
.phone-card p { font-size: 18px; line-height: 1.6; color: var(--text-dim); margin-bottom: 22px; }
.phone-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.phone-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.phone-steps li > span:first-child {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  background: rgba(0, 135, 254, 0.2);
  border: 1px solid rgba(0, 135, 254, 0.5);
  color: var(--orange2);
}
.phone-card-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-tile {
  width: min(240px, 70vw);
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
}
.qr-tile img { display: block; width: 100%; height: auto; }
/* Same as the pairing code in the TV app: white, bold, wide spacing. */
.qr-code-label { font-size: 30px; font-weight: 700; letter-spacing: 0.16em; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- How / download spacing in v2 ---------- */
.home2 .how-row { margin-bottom: 0; }

/* ---------- Final CTA band ---------- */
.cta-band {
  max-width: 1180px;
  margin: 90px auto 70px;
  padding: 64px 28px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 135, 254, 0.9) 0%, rgba(51, 161, 255, 0.75) 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 135, 254, 0.7);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; margin-bottom: 10px; }
.cta-band p { font-size: 19px; color: rgba(255, 255, 255, 0.9); margin-bottom: 30px; }
.cta-band .btn-primary { background: #fff; color: #0b5fb3; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- Footer v2 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 54px 28px 40px;
  color: rgba(255, 255, 255, 0.6);
}
.site-foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  /* 3 columns while the Legal column is hidden (index.html); 4 with it. */
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}
.foot-brand p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; max-width: 300px; }
.site-foot .foot-logo { height: 42px; margin: 0; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.foot-col a { color: rgba(255, 255, 255, 0.65); text-decoration: none; font-size: 15.5px; }
.foot-col a:hover { color: #fff; }
.foot-disclaimer {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.site-foot .foot-copy { text-align: center; }

/* ---------- Scroll reveal (only when home.js is running) ---------- */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive v2 ---------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 18px; }
}
@media (max-width: 960px) {
  .h2-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 30px; text-align: center; }
  .h2-hero-text { display: flex; flex-direction: column; align-items: center; }
  .h2-actions, .trust-list { justify-content: center; }
  .h2-hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .phone-card { grid-template-columns: 1fr; padding: 34px 26px; }
  .site-foot-inner { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }

  /* Mobile menu: a drawer that slides in from the right edge, in the app's
     panel style, over a dimmed scrim. The header's backdrop-filter is off at
     this width: it would trap the fixed drawer inside the header box. */
  .site-header { background: rgba(12, 14, 17, 0.86); }
  .site-header,
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 62; }
  /* Keep the menu button on the right edge (the nav is out of the flow here). */
  .site-header-actions { margin-left: auto; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 61;
    /* Half the screen, but never under 260px (link text + Activate need
       that on a phone) and never over 360px. */
    width: min(max(50vw, 260px), 360px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h, 73px) + 14px) 20px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 30%),
      #0c0e11;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.8);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.32s;
  }
  .site-nav.open {
    transform: none;
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
  }
  .site-nav a:not(.nav-drawer-cta) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 2px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav a:not(.nav-drawer-cta)::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    transition: border-color 0.15s;
  }
  .site-nav a:not(.nav-drawer-cta):hover,
  .site-nav a:not(.nav-drawer-cta):focus-visible { color: #fff; }
  .site-nav a:not(.nav-drawer-cta):hover::after,
  .site-nav a:not(.nav-drawer-cta):focus-visible::after { border-color: var(--orange2); }
  .site-nav .nav-drawer-cta {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding: 15px 22px;
    font-size: 17px;
  }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(6, 8, 11, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s; }
  /* Lock <body> only. Body's overflow then applies to the viewport; locking
     <html> instead makes body (overflow-x: hidden) its own scroll container,
     and the sticky header jumps off screen. */
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 620px) {
  .site-header-inner { padding: 10px 16px; gap: 10px; }
  .site-header .brand-logo { height: 30px; }
  .header-cta { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-foot-inner { grid-template-columns: 1fr; }
  .chip-b { display: none; }
  .phone-mock { min-width: 120px; }
  .cta-band { margin: 60px 16px 50px; padding: 44px 20px; }
  .devices { --logo-h: 26px; --logo-text: 19px; --wordmark-h: 14px; }
  .devices .device-chip { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .phone-mock, .float-chip { animation: none; }
  .marquee { overflow-x: auto; }
  .feature-card:hover { transform: none; }
}

/* =====================================================================
   LIVELY EFFECTS (vanilla versions of React Bits ideas)
   ===================================================================== */

/* ---- Aurora behind the hero ---- */
.h2-hero { position: relative; isolation: isolate; }
.aurora {
  position: absolute;
  inset: -10% -20% 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}
.aurora span:nth-child(1) {
  background: #0087fe;
  top: 0;
  left: 10%;
  animation: aurora-a 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  background: #6a3dff;
  top: 20%;
  right: 5%;
  opacity: 0.3;
  animation: aurora-b 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  background: #00c2c7;
  bottom: -10%;
  left: 35%;
  opacity: 0.22;
  animation: aurora-c 26s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(18vw, 8vh) scale(1.15); } }
@keyframes aurora-b { to { transform: translate(-16vw, 10vh) scale(0.9); } }
@keyframes aurora-c { to { transform: translate(10vw, -12vh) scale(1.2); } }

/* ---- Shiny text: brand-blue second line with a light sweep ---- */
.h2-accent {
  background: linear-gradient(
    110deg,
    var(--orange) 0%,
    var(--orange2) 35%,
    #cfe8ff 50%,
    var(--orange2) 65%,
    var(--orange) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: -150% 0; }
}

/* ---- Spotlight cards ---- */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(51, 161, 255, 0.18),
    transparent 60%
  );
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; }

/* ---- Tilting hero mockup ---- */
.tilt {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-style: preserve-3d;
}

/* ---- Live dot pulse ---- */
.chip-dot.live { animation: pulse-dot 1.8s ease-out infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
}

@media (max-width: 620px) {
  .aurora span { filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora span, .h2-accent, .chip-dot.live { animation: none; }
  .tilt { transform: none; }
}

/* =====================================================================
   LIGHT SECTIONS: break up the dark page with white/off-white bands.
   Dark: hero + device band, screenshots + phone section, footer.
   Light: stats + features, how / download / FAQ, and around the CTA.
   ===================================================================== */
.home2 {
  --light-bg: #f5f6f8;
  --light-card: #ffffff;
  --light-line: #e4e7ec;
  --ink: #12151a;
  --ink-dim: #5b6270;
}

/* Full-bleed background on a centred, max-width section without extra
   wrappers: a huge box-shadow spread, clipped to the section's height. */
.section-light {
  position: relative;
  color: var(--ink);
  background: var(--light-bg);
  box-shadow: 0 0 0 100vmax var(--light-bg);
  clip-path: inset(0 -100vmax);
}
/* Two light sections meeting on a fractional pixel leave a hairline of the
   dark page showing between them; overlap by 1px to close the seam. */
.section-light + .section-light,
.section-light + .cta-band { margin-top: -1px; }
.section-light .section-title { color: var(--ink); }
.section-light .section-sub { color: var(--ink-dim); }

/* Stats */
.section-light .stat strong {
  background: linear-gradient(135deg, var(--ink) 0%, #0a6fd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-light .stat span { color: var(--ink-dim); }

/* Feature, step and download cards: white cards with a soft shadow */
.section-light .feature-card,
.section-light .step-card,
.section-light .dl-card {
  background: var(--light-card);
  border: 1px solid var(--light-line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 30px -18px rgba(16, 24, 40, 0.18);
  color: var(--ink);
}
.section-light .feature-card:hover {
  background: var(--light-card);
  border-color: rgba(0, 135, 254, 0.45);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 22px 40px -20px rgba(0, 95, 190, 0.35);
}
.section-light .feature-ico {
  background: var(--light-bg);
  border-color: var(--light-line);
}
.section-light .feature-card h3,
.section-light .step-card h3,
.section-light .dl-card h3 { color: var(--ink); }
.section-light .feature-card p,
.section-light .step-card p,
.section-light .dl-card p { color: var(--ink-dim); }
.section-light .dl-meta { color: #8a909b; }
.section-light .dl-note { color: #8a909b; }
.section-light .spotlight::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 135, 254, 0.08), transparent 60%);
}

/* FAQ */
/* The FAQ provides the light gap above the CTA itself, so the CTA's
   light backdrop never has to reach up over the last question. */
.faq.section-light { padding-bottom: 90px; }
/* Features is followed by the dark About section, so it needs the same
   breathing room before the edge as FAQ. */
.features.section-light { padding-bottom: 90px; }
.section-light .faq-item {
  background: var(--light-card);
  border: 1px solid var(--light-line);
}
.section-light .faq-item summary { color: var(--ink); font-weight: 400; }
.section-light .faq-a { color: var(--ink-dim); }

/* CTA: a dark card sitting on the light area (less blue, more contrast). */
.cta-band {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(0, 135, 254, 0.22) 0%, rgba(0, 135, 254, 0) 55%),
    var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 100vmax var(--light-bg), 0 40px 80px -40px rgba(16, 24, 40, 0.5);
  clip-path: inset(0 -100vmax -70px -100vmax);
  margin-top: 0;
  margin-bottom: 70px;
}
.cta-band p { color: rgba(255, 255, 255, 0.72); }
.cta-band .btn-primary { background: var(--orange); color: #fff; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.3); }

/* Tone down the page-wide blue glow a little. */
.home2 .bg::before { opacity: 0.7; }
.aurora span { opacity: 0.32; }
.aurora span:nth-child(2) { opacity: 0.2; }

@media (max-width: 620px) {
  .cta-band { clip-path: inset(0 -100vmax -50px -100vmax); margin-bottom: 50px; }
  .faq.section-light { padding-bottom: 60px; }
}

/* =====================================================================
   DEVICE BAND ON WHITE: brand logos in their real colours read best on a
   white background (Samsung navy and LG red vanish on dark). It also
   leads straight into the light stats/features area below.
   ===================================================================== */
.devices {
  background: #ffffff;
  border-top: 0;
  border-bottom: 1px solid #e4e7ec;
}
.devices .devices-title { color: #8a909b; }
.devices .device-chip { opacity: 1; }

/* Text in each brand's colour, darkened where needed so it's readable on white. */
.brand-samsung { color: #1428A0; }
.brand-samsung .device-logo { filter: none; }
.lg-word b,
.lg-web { color: #6b7079; }
.lg-os { color: #A50034; }
.brand-android { color: #1e8e4e; }
.brand-googletv { color: #1a73e8; }
.brand-windows { color: #0078D4; }

/* ---- First screen = header + hero + logo band -------------------------
   --header-h: sticky header (44px logo + 2 x 14px padding + 1px border).
   --band-h:   thin logo band (logo + 24px vertical breathing room + 1px border).
   The band has a fixed height so the hero maths always adds up. */
.home2 {
  --header-h: 73px;
  --band-h: calc(36px + 48px + 1px);
}
@media (max-width: 620px) {
  .home2 {
    --header-h: 65px;
    --band-h: calc(26px + 36px + 1px);
  }
}
/* Chips fill the thin band; no extra height of their own. */
.devices .device-chip { height: auto; padding-top: 0; padding-bottom: 0; }
.devices {
  box-sizing: border-box;
  height: var(--band-h);
  padding: 0;
  display: flex;
  align-items: center;
}
.devices .marquee { width: 100%; }

/* =====================================================================
   HERO: neutral dark background + animated threads canvas (home.js).
   Replaces the blue glow / aurora.
   ===================================================================== */
.home2 .bg::before,
.home2 .bg::after { display: none; }

.hero-bg {
  position: absolute;
  z-index: -1;
  /* full-bleed, and up under the transparent sticky header */
  top: calc(-1 * var(--header-h, 73px));
  left: 50%;
  width: 100vw;
  height: calc(100% + var(--header-h, 73px));
  transform: translateX(-50%);
  display: block;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 70% 40%, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 70%),
    var(--bg-1);
  /* fade into the logo band */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

/* Light-rays fallback when WebGL is unavailable: a static soft beam. */
.hero-bg.no-gl {
  background:
    radial-gradient(60% 80% at 58% -10%, rgba(120, 190, 255, 0.22) 0%, rgba(0, 135, 254, 0.08) 40%, rgba(0, 0, 0, 0) 70%),
    var(--bg-1);
}

/* =====================================================================
   HERO MOCKUP v2: slimmer TV, compact filled-in phone, chips that don't
   cover the screenshot, soft glow underneath.
   ===================================================================== */
.h2-hero-visual { padding: 30px 30px 60px 10px; }

/* Glow puddle under the devices */
.device-glow {
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 18px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 135, 254, 0.35), rgba(0, 135, 254, 0));
  filter: blur(18px);
  z-index: -1;
}

/* TV: thin dark bezel, subtle edge highlight, glass sheen */
.tv-screen {
  position: relative;
  padding: 6px;
  border-radius: 14px;
  background: #0b0c0f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 50px 90px -35px rgba(0, 0, 0, 0.85);
}
.tv-screen img { border-radius: 9px; }
.tv-sheen {
  position: absolute;
  inset: 6px;
  border-radius: 9px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 100%);
}
/* Slim neck + flat foot instead of the block stand */
.tv-stand {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tv-stand::before {
  content: '';
  width: 6%;
  height: 22px;
  background: linear-gradient(#1c1f25, #121418);
}
.tv-stand span {
  display: block;
  width: 30%;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #15171b, #2a2e36, #15171b);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.8);
}

/* Phone: shorter, every row filled so there's no empty block */
.phone-mock {
  right: -8px;
  bottom: 28px;
  width: 31%;
  aspect-ratio: auto;
  border-radius: 28px;
  padding: 7px;
  background: linear-gradient(160deg, #2a2e36 0%, #0d0f12 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 40px 70px -25px rgba(0, 0, 0, 0.9);
}
.phone-notch { top: 14px; width: 30%; height: 9px; }
.phone-body {
  height: auto;
  border-radius: 22px;
  padding: 32px 12px 14px;
  gap: 6px;
  background: linear-gradient(180deg, #1d2026 0%, #15171b 100%);
}
.phone-title { font-size: 12.5px; margin-bottom: 6px; }
.phone-label {
  font-size: 8.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}
.phone-field {
  height: 24px;
  justify-content: flex-start;
  padding: 0 9px;
  font-size: 10px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  white-space: nowrap;
}
.phone-field.code { justify-content: center; letter-spacing: 2.5px; font-size: 11px; }
.phone-field.filled span { overflow: hidden; text-overflow: clip; }
.phone-field .caret {
  display: inline-block;
  width: 1px;
  height: 11px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--orange2);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.phone-seg { margin: 4px 0 2px; }
.phone-btn {
  margin-top: 10px;
  box-shadow: 0 8px 18px -8px rgba(0, 135, 254, 0.8);
}

/* Chips: placed on the frame edges, never over the channel list */
.float-chip { font-size: 13.5px; padding: 8px 14px; }
.chip-a { top: 8px; left: 18px; }
.chip-b { top: auto; bottom: 22px; left: 22%; animation-delay: -3s; }
.chip-sent {
  top: 22%;
  right: -6px;
  color: #b9f5c9;
  border-color: rgba(123, 217, 127, 0.35);
  animation-delay: -1.5s;
}
.chip-sent svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #7bd97f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 960px) {
  .h2-hero-visual { padding: 30px 14px 56px; }
}
@media (max-width: 620px) {
  .chip-sent { display: none; }
  .phone-mock { width: 36%; min-width: 0; }
  .phone-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-field .caret { animation: none; }
}

/* =====================================================================
   GSAP motion hooks (motion.js)
   ===================================================================== */
/* Hidden for a moment until motion.js has set the intro start states, so
   the hero doesn't flash. An inline script in index.html removes the class
   after 2.5 s regardless, in case the scripts fail to load. */
.motion-pending .h2-hero-text,
.motion-pending .h2-hero-visual { opacity: 0; }

/* The phone and chips already float with keyframes on `transform`, and the
   whole mockup tilts with `transform`. GSAP moves them through the separate
   `translate` / `scale` properties instead, so the effects stack. */
.tv-mock { translate: 0 var(--par-y, 0px); }
.phone-mock,
.float-chip {
  translate: 0 calc(var(--pop-y, 0px) + var(--par-y, 0px));
  scale: var(--pop-s, 1);
}

/* Pause hover transitions while GSAP is moving an element. */
.gsap-busy { transition: none !important; }

/* Lenis smooth scrolling: it scrolls the page itself, so the native
   smooth behaviour must be off or the two fight each other. */
html.lenis,
html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Language picker hidden: the site is English-only for now (see LANG_PICKER
   in app.js). Remove this rule to show it again. */
.lang-dropdown { display: none !important; }

/* =====================================================================
   Legal-use notice (legal-gate.js), shown once on the first visit
   ===================================================================== */
html.legal-open { overflow: hidden; }
.legal-gate {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-2);
  color: #fff;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 135, 254, 0.08);
  overflow: auto;
  overscroll-behavior: contain;
  animation: legal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.legal-gate::backdrop {
  background: rgba(8, 10, 13, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: legal-fade 0.35s ease;
}
.legal-gate.closing { animation: legal-out 0.22s ease forwards; }
.legal-gate.closing::backdrop { animation: legal-fade 0.22s ease reverse forwards; }
@keyframes legal-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes legal-out { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes legal-fade { from { opacity: 0; } }

.legal-gate-inner { padding: 34px 36px 30px; }
.legal-gate-logo { height: 38px; display: block; margin-bottom: 20px; }
.legal-gate h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.legal-gate-lead { color: var(--text-dim); font-size: 17px; line-height: 1.55; margin: 0 0 22px; }
.legal-gate h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange2);
  margin: 0 0 12px;
}
.legal-gate-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.legal-gate-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.45;
}
.legal-gate-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 135, 254, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333a1ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.legal-gate-warn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.28);
  margin-bottom: 18px;
}
.legal-gate-warn svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffb020;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}
.legal-gate-warn p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.legal-gate-fine { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); margin: 0 0 22px; }
.legal-gate-fine a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.legal-gate-fine a:hover { color: var(--orange2); }
.legal-gate-actions { display: flex; justify-content: flex-end; }
.legal-gate-accept { min-width: 220px; }
.legal-gate-accept:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 620px) {
  .legal-gate-inner { padding: 26px 22px 22px; }
  .legal-gate-lead { font-size: 16px; }
  .legal-gate-accept { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-gate, .legal-gate::backdrop, .legal-gate.closing, .legal-gate.closing::backdrop { animation: none; }
}

/* Single download card (Android APK only, for now). */
.dl-row.dl-row-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.dl-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.dl-badge img { width: 30px; height: 30px; }

/* Download card header: the real app icon next to the title, the platform
   logo as a small mark in the meta line. */
.dl-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
.dl-app-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  box-shadow: 0 6px 18px -8px rgba(16, 24, 40, 0.45);
}
.dl-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dl-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dl-os { width: 18px; height: 18px; }

/* =====================================================================
   CINEMA MODE (body.cinema): near-black auditorium, projector rays with
   dust (cine-rays.js, WebGL2), film grain + vignette. Remove the class from <body> to get the old
   background back.
   ===================================================================== */
.cinema .bg { background: #06080b; }
.cinema .bg::before,
.cinema .bg::after { display: none; }
.cinema .hero-bg { display: none; }

/* Fallback beam when WebGL2 is unavailable (body.no-rays): a narrow cone
   from just above the top edge. */
.cine-beam,
.cine-rays,
.cine-film { display: none; }
.cinema.no-rays .cine-beam {
  display: block;
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 158deg at 50% -12%,
      rgba(120, 185, 255, 0) 0deg,
      rgba(120, 185, 255, 0.05) 12deg,
      rgba(150, 205, 255, 0.11) 22deg,
      rgba(120, 185, 255, 0.05) 32deg,
      rgba(120, 185, 255, 0) 44deg,
      rgba(120, 185, 255, 0) 360deg),
    radial-gradient(40% 30% at 50% 0%, rgba(0, 135, 254, 0.18), rgba(0, 135, 254, 0) 70%);
  filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  animation: cine-flicker 7s ease-in-out infinite;
}
@keyframes cine-flicker {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.88; }
  43% { opacity: 0.97; }
  70% { opacity: 0.92; }
}
.cinema .cine-rays { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.cinema.no-rays .cine-rays { display: none; }

/* Grain + vignette, part of the background layer: it only shows through the
   dark, transparent sections and never greys out the light ones. */
.cinema .cine-film {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100%);
}
.cinema .cine-film::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  animation: cine-grain 0.9s steps(6) infinite;
}
@keyframes cine-grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(-4%, -5%); }
}

@media (prefers-reduced-motion: reduce) {
  .cinema .cine-beam,
  .cinema .cine-film::before { animation: none; }
}

/* Display type. Listed with the same selectors as the heading rules above so
   it wins by source order. Bebas Neue ships in one weight (400) and wants a
   little positive tracking instead of the tight negative tracking we used for
   bold Roboto Condensed. */
h1, h2,
.hero-title, .section-title, .h2-title,
.hero h1, .paid-panel h1, .legal h1, .legal h2,
.about-text h2, .cta-final h2, .cta-band h2, .steps h2,
.phone-card h2, .legal-gate h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}
/* Letter-spacing breaks Arabic joining. */
html[lang="ar"] :is(h1, h2, .hero-title, .section-title, .h2-title) { letter-spacing: normal; line-height: 1.25; }

/* Manrope runs wider than Roboto Condensed: trim the hero buttons so both
   still fit side by side in the hero text column. */
.h2-actions .btn-lg { font-size: 17px; padding: 18px 32px; }
/* Stat figures in the display face: narrow enough for "M3U + Xtream" to stay
   on one line in a quarter-width column. */
.stat strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  white-space: nowrap;
}

/* =====================================================================
   HERO STATUS CHIPS (premium): one surface for all three, the app's dark
   panel with a hairline edge and a faint top highlight. Icon tile + short
   uppercase tag + plain text. Colour lives only in the icon (red live dot,
   blue guide, green tick); all text is white / soft grey.
   ===================================================================== */
.float-chip {
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%),
    rgba(12, 14, 17, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 18px 40px -16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  animation-name: floaty-soft;
}
@keyframes floaty-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.chip-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}
.chip-ico svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip-ico-live { background: rgba(255, 90, 95, 0.14); }
.chip-ico-live .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a5f;
  box-shadow: none;
  animation: pulse-dot-soft 2.6s ease-out infinite;
}
@keyframes pulse-dot-soft {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.5); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(255, 90, 95, 0); }
}
.chip-ico-guide { color: var(--orange2); background: rgba(0, 135, 254, 0.15); }
.chip-ico-ok { color: #7bd97f; background: rgba(123, 217, 127, 0.15); }
.chip-ico-ok svg { stroke-width: 3; }

.chip-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}
.chip-text {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

/* "Sent" used to be green text on a green edge: now the same neutral chip. */
.chip-sent {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
}
.chip-sent .chip-ico svg { width: 12px; height: 12px; stroke: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .chip-ico-live .chip-dot { animation: none; }
}
/* The wider chip would sit on the phone's top edge: lift it clear. */
.chip-sent { top: 16%; }
