/* ==========================================================================
   IPTV Québec — affiliate landing pages
   Shared design system. Tokens are lifted from iptv-qc.ca's own stylesheet
   (--bg-base, --bg-card, --accent-lime, --accent-cyan, Outfit + DM Sans) so
   these pages read as part of the same site. Page-specific rules live in a
   <style> block of each page, never here.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* iptv-qc.ca tokens */
  --bg: #090d16;            /* --bg-base */
  --bg-deep: #070a13;
  --surface: #0e131f;       /* --bg-surface */
  --card: #131b2e;          /* --bg-card */
  --line: #ffffff14;        /* --border-default */
  --line-strong: #ffffff24;
  --text: #f8fafc;          /* --text-primary */
  --text-2: #a5b4c8;        /* --text-secondary, nudged up for 7:1 on --card */
  --lime: #84cc16;          /* --accent-lime */
  --lime-hi: #a3e635;
  --cyan: #06b6d4;          /* --accent-cyan */
  --cyan-hi: #22d3ee;
  --teal: #14b8a6;
  --danger: #f87171;
  --glow-lime: #84cc1626;   /* --lime-glow */

  --grad-brand: linear-gradient(90deg, var(--lime-hi), var(--cyan-hi));
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --gutter: 20px;
  --section: 72px;
  --header-h: 60px;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 104px; --header-h: 68px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan-hi); text-underline-offset: 3px; }
a:hover { color: var(--lime-hi); }
:focus-visible { outline: 3px solid var(--lime-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 7.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 5.4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: #000; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #000; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--text-2); font-size: clamp(1.0625rem, 2.4vw, 1.2rem); }

/* ---------- Icons ---------- */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--lime); --btn-fg: #05080f;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px;
  border: 0; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1.0625rem/1.2 var(--font-display); letter-spacing: .005em;
  text-decoration: none; text-align: center;
  box-shadow: 0 10px 30px -10px #84cc1680, inset 0 -2px 0 #00000026;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { --btn-bg: var(--lime-hi); color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 14px 36px -10px #a3e63599, inset 0 -2px 0 #00000026; }
.btn:active { transform: translateY(1px); }
.btn .i { transition: transform .15s ease; }
.btn:hover .i { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { --btn-bg: #ffffff0d; --btn-fg: var(--text); box-shadow: inset 0 0 0 1.5px #ffffff40; }
.btn--block { width: 100%; }
@media (min-width: 560px) { .btn--block { width: auto; } }
.btn-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-2); font-size: .9375rem; }
.btn-note .i { color: var(--lime-hi); }

/* ---------- Pills / kickers ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #ffffff0a; border: 1px solid var(--line-strong);
  font: 600 .8125rem/1.3 var(--font-body); color: var(--text);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--glow-lime); }
.kicker { display: inline-block; margin-bottom: 14px; font: 700 .8125rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--lime-hi); }

/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 40;
  background: #090d16d9; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.lp-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; font-family: var(--font-display); font-weight: 800; }
.brand__a { color: var(--text); font-size: 1.05rem; letter-spacing: .02em; }
.brand__b { color: var(--lime); font-size: 1.05rem; }
.brand:hover .brand__a { color: var(--text); }
.lp-header__meta { display: flex; align-items: center; gap: 14px; font-size: .875rem; color: var(--text-2); }
.lp-header__meta a { color: var(--text-2); }
.lp-header__meta a:hover { color: var(--text); }
.lp-header__tag { display: none; }
@media (min-width: 640px) { .lp-header__tag { display: inline-flex; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- FAQ (native <details>, no JS needed) ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease; }
.faq details[open] { border-color: #84cc1659; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; min-height: 64px; cursor: pointer; list-style: none;
  font: 600 1.0625rem/1.4 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--lime-hi); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .faq__a { padding: 0 22px 22px; color: var(--text-2); }
.faq .faq__a p + p { margin-top: 10px; }

/* ---------- Disclosure + footer ---------- */
.disclosure {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius);
  background: #ffffff08; border: 1px dashed var(--line-strong);
  color: var(--text-2); font-size: .9375rem; line-height: 1.55;
}
.disclosure .i { color: var(--cyan-hi); margin-top: 2px; }
.disclosure strong { color: var(--text); }
.lp-footer { padding: 48px 0 120px; border-top: 1px solid var(--line); background: var(--bg-deep); color: var(--text-2); font-size: .875rem; }
.lp-footer p + p { margin-top: 12px; }
.lp-footer a { color: var(--text-2); }
.lp-footer a:hover { color: var(--text); }
@media (min-width: 900px) { .lp-footer { padding-bottom: 48px; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #070a13f2; border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .28s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__txt { flex: 1; min-width: 0; font-size: .8125rem; line-height: 1.35; color: var(--text-2); }
.sticky-cta__txt strong { display: block; color: var(--text); font: 700 .9375rem/1.25 var(--font-display); }
.sticky-cta .btn { min-height: 48px; padding: 10px 18px; font-size: 1rem; flex: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Dev helper: shown only while the affiliate URL is a placeholder ---------- */
.aff-dev-banner {
  position: fixed; left: 12px; bottom: 84px; z-index: 60; max-width: 300px;
  padding: 10px 14px; border-radius: 10px; background: #fbbf24; color: #1c1300;
  font: 600 .8125rem/1.4 var(--font-body); box-shadow: 0 8px 24px #0008;
}
@media (min-width: 900px) { .aff-dev-banner { bottom: 16px; } }
