/* Helium IPTV website.
   Colours, corner radii and type follow the app (lib/theme/app_tokens.dart),
   so the site looks like the product: the near-black surfaces, the violet
   accent, the Live TV / Movies / Series colours, and white for "you are here"
   on hover and keyboard focus, as the app does on a TV. The font is the
   system's own, as the app's is: Segoe UI on Windows, Roboto on Android,
   San Francisco on Apple devices. */

:root {
  color-scheme: dark;
  --bg: #08080b;
  --bg-alt: #0c0c11;
  --surface: #131319;
  --surface-hi: #1b1b23;
  --surface-hover: #23232d;
  --line: #25252f;
  --line-soft: #1a1a22;
  --accent: #7c5cff;
  --accent-hi: #9277ff;
  --accent-lo: #5b3ee0;
  --text: #f4f4f7;
  --text2: #a6a6b4;
  --text3: #6c6c7c;
  --ink: #0b0b10;
  --gold: #f6c453;
  --good: #34d399;

  /* The section colours: Live TV, Movies, Series. */
  --live-a: #f43f5e; --live-b: #fb923c;
  --vod-a: #6366f1;  --vod-b: #22d3ee;
  --ser-a: #10b981;  --ser-b: #a3e635;

  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --font: "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --gutter: 16px;
}
@media (min-width: 700px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b3a1ff; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: var(--r-md); }
.skip-link:focus { left: 8px; }

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---- Buttons: the app's. Hover and focus turn a button white with dark
   text, as focus does on the TV app. ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn .ic { font-size: 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); color: #fff; }
.btn-quiet { background: rgba(255,255,255,.07); border-color: var(--line); color: var(--text); }
.btn-quiet:hover, .btn:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.btn:focus-visible { outline: none; transform: scale(1.04); box-shadow: 0 0 18px rgba(255,255,255,.3); }

/* ---- Top bar (the app's PageBar) ---------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8,8,11,.84);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; margin-right: auto; border-radius: var(--r-sm); text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--text2); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.08); color: var(--text); }
.nav a[aria-current="page"] { background: rgba(124,92,255,.2); color: #fff; }
.nav .btn { height: 38px; padding: 0 16px; font-size: 14px; margin-left: 8px; border-radius: 999px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav .btn:hover { background: var(--accent-hi); }
@media (max-width: 640px) {
  .nav .opt { display: none; }
  .brand img { height: 26px; }
}

/* ---- Home: hero ---------------------------------------------------------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
.hero .lede { margin-top: 22px; max-width: 620px; font-size: clamp(17px, 1.7vw, 19px); color: var(--text2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--text3); max-width: 620px; }

/* The app itself, in a TV frame. */
.screen {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 14px 44px rgba(0,0,0,.75);
  background: var(--bg);
}
.screen img { width: 100%; height: auto; }
/* On the home page it sits under the headline and fades into the page. */
.hero .screen { margin-top: 56px; }
.hero .screen::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, rgba(8,8,11,0), rgba(8,8,11,.7) 62%, var(--bg));
}

/* ---- Sections -------------------------------------------------------------- */
.section { padding: 80px 0; }
.section.tight { padding-top: 32px; }
.head { max-width: 680px; margin-bottom: 36px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.head p { margin-top: 14px; color: var(--text2); font-size: 17px; }

/* The Home screen's three cards: Live TV, Movies, Series - both colours, deep,
   darker toward the edges, with a lit rim (home_screen.dart _SectionCard). */
.homecards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .homecards { grid-template-columns: repeat(3, 1fr); } }
.homecard { display: flex; flex-direction: column; gap: 14px; }
.homecard p { color: var(--text2); font-size: 15.5px; padding: 0 4px; }
.card3 {
  position: relative; display: flex; align-items: center; gap: 18px;
  height: 116px; padding: 0 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); color: #fff; text-decoration: none; overflow: hidden;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card3::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 100%);
}
.card3::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.04) 55%, rgba(255,255,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card3 > * { position: relative; z-index: 1; }
.card3 .ic { font-size: 40px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.card3 .name { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.card3 .go { margin-left: auto; font-size: 26px; opacity: 0; transform: translateX(-3px); transition: opacity .16s, transform .16s; }
a.card3:hover, a.card3:focus-visible { color: #fff; transform: scale(1.015); border-color: rgba(255,255,255,.3); box-shadow: 0 6px 24px rgba(0,0,0,.55); outline: none; }
a.card3:focus-visible { border: 2px solid #fff; }
a.card3:hover .go, a.card3:focus-visible .go { opacity: 1; transform: none; filter: drop-shadow(0 0 6px #fff); }
.c-live { background: linear-gradient(to bottom, #6b4326, #9a2d42); }
.c-vod { background: linear-gradient(to bottom, #195c6a, #43459b); }
.c-ser { background: linear-gradient(to bottom, #4a6324, #117757); }

/* ---- A feature with its screenshot -------------------------------------------- */
.show { display: grid; gap: 28px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line-soft); }
.show:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .show { grid-template-columns: 5fr 7fr; gap: 56px; }
  .show.flip { grid-template-columns: 7fr 5fr; }
  .show.flip .show-copy { order: 2; }
}
.show h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.02em; margin-top: 16px; }
.show p { margin-top: 14px; color: var(--text2); font-size: 17px; }
.kind {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.kind .ic { font-size: 15px; }
.t-live { background: linear-gradient(135deg, var(--live-a), var(--live-b)); }
.t-vod { background: linear-gradient(135deg, var(--vod-a), var(--vod-b)); }
.t-ser { background: linear-gradient(135deg, var(--ser-a), var(--ser-b)); }
.t-acc { background: linear-gradient(135deg, var(--accent), #c084fc); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--text2); }
.ticks .ic { font-size: 20px; color: var(--good); margin-top: 2px; }
.ticks .plus-only { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-left: 4px; white-space: nowrap; }

/* ---- Settings-style rows ------------------------------------------------- */
.facts {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
}
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--surface); }
.tile {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--surface-hi); color: var(--text); font-size: 24px;
}
.fact h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.fact p { margin-top: 4px; color: var(--text2); font-size: 15px; }

/* ---- Plus ---------------------------------------------------------------- */
.plus {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, #17141f, #100d17);
  border: 1px solid rgba(246,196,83,.28);
  padding: clamp(24px, 4vw, 48px);
}
.plus-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.plus-logo { height: 78px; width: auto; }
.price { text-align: right; }
.price b { display: block; font-size: clamp(44px, 6vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.price span { display: block; margin-top: 8px; color: var(--text2); font-size: 15px; }
@media (max-width: 560px) { .price { text-align: left; } }
.plus-cols { display: grid; gap: 28px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .plus-cols { grid-template-columns: 1fr 1fr; } }
.plus-cols h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.plus-cols .gold h3 { color: var(--gold); }
.plus-cols ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.plus-cols li { display: flex; gap: 12px; color: var(--text); }
.plus-cols li .ic { font-size: 20px; margin-top: 2px; color: var(--text3); }
.plus-cols .gold li .ic { color: var(--gold); }
.plus-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); color: var(--text3); font-size: 14px; }

/* ---- Get the app -------------------------------------------------------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex; align-items: center; gap: 14px; flex: 1 1 240px; max-width: 300px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.store .ic { font-size: 28px; color: var(--text2); }
.store small { display: block; font-size: 12px; color: var(--text3); line-height: 1.3; }
.store b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.store .soon { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 3px 6px; }
.store .get { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: var(--r-xs); padding: 4px 8px; }
a.store[aria-disabled="true"] { cursor: default; }
a.store:not([aria-disabled="true"]):hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---- Footer ---------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0 56px; margin-top: 40px; color: var(--text3); font-size: 14px; }
.footer .wrap { display: grid; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer img { height: 24px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer nav a { color: var(--text2); text-decoration: none; }
.footer nav a:hover { color: var(--text); text-decoration: underline; }

/* ---- Text pages: privacy, terms, support, delete ------------------------------ */
.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line-soft); margin-bottom: 40px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; }
.page-head p { margin-top: 14px; max-width: 680px; color: var(--text2); font-size: 18px; }
.page-head .meta { font-size: 14px; color: var(--text3); margin-top: 12px; }

.doc { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 960px) { .doc { grid-template-columns: 250px minmax(0, 720px); gap: 64px; } }
.toc { align-self: start; }
@media (min-width: 960px) { .toc { position: sticky; top: 92px; } }
.toc p { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 12px; border-radius: var(--r-sm); color: var(--text2); text-decoration: none; font-size: 14.5px; }
.toc a:hover { background: rgba(255,255,255,.07); color: var(--text); }
@media (max-width: 959px) {
  .toc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px; }
}

.prose { max-width: 720px; color: var(--text2); font-size: 16.5px; }
.prose section + section { margin-top: 40px; }
.prose h2 { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.prose p + p, .prose ul + p, .prose p + ul, .prose ol + p, .prose p + ol, .prose .table-wrap + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--text3); }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
table.data th { color: var(--text); font-weight: 600; background: var(--surface); }
table.data tr:last-child td { border-bottom: 0; }
.prose .summary { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; margin-bottom: 40px; }
.prose .summary h2 { font-size: 18px; }
.prose ul.ticks { padding-left: 0; }
.prose .ticks li + li { margin-top: 0; }
.doc-solo { padding-bottom: 40px; }

/* Panels for Support and Delete. */
.panels { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 820px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; color: var(--text2); }
.panel .tile { margin-bottom: 18px; }
.panel h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.panel ol, .panel ul { padding-left: 20px; margin: 10px 0 0; }
.panel li + li { margin-top: 8px; }
.panel .btn { margin-top: 18px; }
.panel .note { margin-top: 14px; font-size: 14px; color: var(--text3); }
.panel .addr { margin-top: 10px; color: var(--text3); font-size: 14px; }
.panel-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.block-title { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 20px; }

/* Questions: rows that open, like the app's settings. */
.faq { display: grid; gap: 8px; max-width: 820px; padding-bottom: 40px; }
.faq details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.faq details[open] { border-color: var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 16px 18px; font-weight: 600; color: var(--text); border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; font-size: 22px; color: var(--text3); transition: transform .16s; }
.faq details[open] summary .ic { transform: rotate(90deg); }
.faq summary:hover { background: rgba(255,255,255,.04); }
.faq .answer { padding: 0 18px 18px; color: var(--text2); }
.faq .answer p + p, .faq .answer ul + p, .faq .answer p + ul { margin-top: 10px; }
.faq .answer ul { padding-left: 20px; margin: 10px 0 0; }
.faq .answer li + li { margin-top: 6px; }
