/* JamRun IPTV: tokens, type, nav, buttons and footer shared by every marketing page.
   Colours come from the app icon (blue, orange, violet) and the app UI (navy, gold, live red).
   Motion system: transform and opacity only; scroll-linked motion uses CSS scroll timelines;
   nothing moves under prefers-reduced-motion. */

@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 97%; ascent-override: 98%; descent-override: 26%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 96%; ascent-override: 96%; descent-override: 26%; }

:root {
  --navy: #0a1226;
  --deep: #050913;
  --raised: #121d38;
  --blue: #2fa8f0;
  --aqua: #5ce0e6;
  --orange: #f28a2e;
  --violet: #6a3bc9;
  --gold: #d1b88a;
  --live: #f24d4d;
  --ok: #31d159;
  --ink: #eef2ff;
  --mist: #b0bad4;
  --paper: #eef2f9;
  --paper-ink: #0c1530;
  --paper-mist: #4b5675;

  --display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --text: "Figtree", "Figtree Fallback", system-ui, -apple-system, sans-serif;

  --r-panel: 34px;
  --r-card: 22px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 10px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 60; padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--navy); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: .95;
  letter-spacing: -.035em;
}
.display .line { display: block; }
.display .dim { color: color-mix(in oklab, var(--ink) 58%, transparent); }
.h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
  max-width: 18ch;
}
.h2.center, .body.center { margin-inline: auto; text-align: center; }
.lede { font-size: clamp(17px, 1.35vw, 19px); color: color-mix(in oklab, var(--ink) 84%, transparent); max-width: 46ch; }
.body { color: var(--mist); max-width: 60ch; margin-top: 18px; }

/* Nav: one glass pill, centred, always on top */
.nav-wrap {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
  padding-inline: 12px;
}
.nav {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(8, 14, 32, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 13px; border-radius: var(--r-pill); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: color-mix(in oklab, currentColor 82%, transparent); }
.nav a:hover { background: rgba(255, 255, 255, .09); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
.nav .brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; font-family: var(--display); font-weight: 600; }
.nav .brand img { border-radius: 8px; }
.nav .nav-cta { background: var(--ink); color: var(--navy); font-weight: 600; margin-left: 4px; }
.nav .nav-cta:hover { background: #fff; }
.nav-wrap.on-light .nav { background: rgba(255, 255, 255, .82); color: var(--paper-ink); border-color: rgba(12, 21, 48, .08); }
.nav-wrap.on-light .nav a:hover { background: rgba(12, 21, 48, .06); }
.nav-wrap.on-light .nav .nav-cta { background: var(--paper-ink); color: #fff; }

.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; margin-left: 4px; background: rgba(255, 255, 255, .1);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  display: grid; padding: 8px; border-radius: 20px;
  background: rgba(8, 14, 32, .96); color: var(--ink); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.menu-panel a { padding: 12px 14px; font-size: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-light { background: var(--ink); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn-glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: var(--paper-ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  background: rgba(242, 77, 77, .16); color: #ffb3b3;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }
.pill-sm { padding: 3px 9px; font-size: 11px; }
.pill-ok { background: rgba(49, 209, 89, .16); color: #8ff0a8; }
@media (prefers-reduced-motion: no-preference) {
  .pill .dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: .35; } }

.grain {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* FAQ (home and /faq) */
.faq details { border-top: 1px solid rgba(255, 255, 255, .12); }
.faq details:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--mist); max-width: 66ch; }
.faq details p + p { margin-top: -10px; }
.faq a { color: var(--aqua); }

/* Footer */
.foot { background: var(--paper); color: var(--paper-ink); padding: 120px var(--gutter) 28px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.wordmark-wrap img { border-radius: 12px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 10vw, 150px); letter-spacing: -.055em; line-height: .9; margin-top: 18px; }
.foot-tag { color: var(--paper-mist); margin-top: 10px; }
.foot-badge { display: inline-block; margin-top: 16px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.foot-cols h2 { font-family: var(--text); font-size: 13px; color: var(--paper-mist); font-weight: 600; margin-bottom: 12px; }
.foot-cols a { display: block; text-decoration: none; padding: 5px 0; font-size: 15px; }
.foot-cols a:hover { color: var(--violet); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 80px; padding-top: 20px; border-top: 1px solid rgba(12, 21, 48, .12); font-size: 13px; color: var(--paper-mist); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu { display: block; }
}
@media (max-width: 560px) {
  .foot-cols { gap: 28px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
