/* Cloud IPTV — landing page.
   One stylesheet, no framework, no JavaScript. The page is text, links and
   two download buttons; every dependency beyond that is one more thing that
   can be slow or blocked for somebody on a television's browser.

   Palette: cool screen-glass ink, a raised panel a shade above it, hairline
   rules instead of boxes, and one blue — the same #6E8CFF the app draws its
   focus ring in, so the site and the product agree. Red appears exactly
   once, as the on-air dot, because that is what red means here.

   Type: Archivo for headings (tight, broad, a touch of grotesque
   character), IBM Plex Sans for reading, IBM Plex Mono for the technical
   line under each download — sizes and architectures are data, and data
   belongs in a monospace. */

@import url('/fonts.css');

:root {
  --ink: #0a0d12;
  --panel: #121722;
  --panel-2: #161c28;
  --line: #1f2733;
  --text: #e6eaf2;
  --muted: #8e9aae;
  --accent: #6e8cff;
  --accent-ink: #08101f;
  --onair: #ff4d4d;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 20px; top: 20px; z-index: 10;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}

/* ---------- navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .mark { width: 22px; height: 22px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.nav-links .nav-cta:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 680px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */

.hero { padding: 96px 0 72px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero { padding: 60px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.8vw, 62px);
  margin-bottom: 22px;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 54ch;
  margin-bottom: 30px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  margin-top: 20px;
}
.fineprint a { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- the three-fact strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--panel); }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-block: 26px;
}
.strip-inner div { display: flex; flex-direction: column; gap: 2px; }
.strip-inner strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.strip-inner span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .strip-inner { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.section h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 16px;
}
.section-lede { color: var(--muted); max-width: 62ch; margin-bottom: 48px; }

/* Features are a list under hairlines rather than a wall of cards: nine
   identical boxes read as a template, and the rules keep the eye moving
   across rather than into each box. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 34px 40px;
}
.card { border-top: 1px solid var(--line); padding-top: 20px; }
.card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 14px 0 8px;
}
.card p { color: var(--muted); font-size: 15px; }
.icon { width: 21px; height: 21px; color: var(--accent); display: block; }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 36px;
}
/* Numbered because this genuinely is a sequence: you cannot scan the code
   on the television before there is a playlist to sync to it. */
.step-n {
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 16px;
}
.steps h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- downloads ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}
.dl {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-alt .dl { background: var(--ink); }
.dl-head { display: flex; gap: 14px; align-items: flex-start; }
.dl-head h3 { font-size: 19px; font-weight: 600; }
.dl-meta {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 6px;
}
.dl p { color: var(--muted); font-size: 15px; }
.dl .btn { align-self: flex-start; margin-top: auto; }

.note {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--panel-2);
}
.section-alt .note { background: var(--ink); }
.note summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.note p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 70ch; }

/* ---------- bring your own playlist ---------- */

.byo { max-width: 68ch; }
.byo p { color: var(--muted); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 44px 0 64px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.brand-sm {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.muted { color: var(--muted); font-size: 14px; max-width: 42ch; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- privacy and terms ---------- */

.doc { max-width: 68ch; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.doc h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 40px 0 10px;
}
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ---------- the page a confirmation link lands on ---------- */

.done { max-width: 56ch; }
.done-mark {
  width: 42px;
  height: 42px;
  color: var(--accent);
  margin-bottom: 22px;
}
.done h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.done .lede { margin-bottom: 20px; }
.done-next { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

/* The version, size and date of the build actually being served: written
   beside the APKs at publish time, included by nginx. */
.dl-build {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.dl-build:empty { display: none; }
