/* ============================================================
   TV Listo – dunkler Kino-Look mit bewegtem Hintergrund
   Farben und Maße zentral hier ändern.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-vf.woff2") format("woff2-variations"),
       url("../fonts/archivo-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #0a1020;
  --bg-2: #121a30;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f4f6fb;
  --text-2: #aeb8cf;
  --text-3: #8792ad;

  /* Nachtblau: signal orange is the one action colour (always with dark ink), sky blue the quiet second */
  --accent: #ff7a1a;
  --accent-2: #ff9a4d;
  --on-accent: #1a0d02;
  --sky: #6fb6ff;
  --live: #ff4d3d;
  --violet: var(--sky);
  --pink: var(--accent);
  --cyan: var(--sky);
  --amber: var(--accent);
  --grad: var(--accent);
  --grad-text: none;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --header-h: 68px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #24324f var(--bg);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--bg); padding: 10px 16px;
  border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- animated background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #17284a 0%, transparent 60%),
    var(--bg);
}
.orb {
  position: absolute; border-radius: 50%;
  width: 60vmax; height: 60vmax;
  opacity: 0.6;
}
.orb-1 { left: -15vmax; top: -20vmax; background: radial-gradient(closest-side, rgba(52, 92, 160, 0.45), transparent); }
.orb-2 { right: -18vmax; top: -10vh; background: radial-gradient(closest-side, rgba(255, 122, 26, 0.14), transparent); }
.orb-3 { left: 20vw; bottom: -35vmax; background: radial-gradient(closest-side, rgba(111, 182, 255, 0.16), transparent); }

.bg-waves {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1600ms ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 24%, #000 85%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 4%, #000 24%, #000 85%, transparent 100%);
}
.bg-waves.is-on { opacity: 1; }
.bg-waves[data-mode="aurora"],
.bg-waves[data-mode="lichter"],
.bg-waves[data-mode="ambilight"],
.bg-waves[data-mode="kino"],
.bg-waves[data-mode="ki"] { -webkit-mask-image: none; mask-image: none; }
.bg-waves[data-mode="wand"] {
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0.35) 20%, #000 75%);
          mask-image: radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0.35) 20%, #000 75%);
}
/* soft vignette keeps text readable over the light */
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(6, 10, 22, 0.7) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .orb-1 { animation: drift-1 34s var(--ease-in-out) infinite alternate; }
  .orb-2 { animation: drift-2 42s var(--ease-in-out) infinite alternate; }
  .orb-3 { animation: drift-3 48s var(--ease-in-out) infinite alternate; }
}
@keyframes drift-1 { to { transform: translate(22vw, 18vh) scale(1.12); } }
@keyframes drift-2 { to { transform: translate(-20vw, 30vh) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(24vw, -24vh) scale(1.15); } }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 240ms ease, background-color 200ms ease, color 200ms ease;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1.0625rem; }

.btn-signal {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-paper  { background: #fff; color: var(--bg); }
.btn-ink    { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

@media (hover: hover) and (pointer: fine) {
  .btn-signal:hover { background: var(--accent-2); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  .btn-paper:hover  { background: #e9e6ff; }
  .btn-ink:hover    { background: rgba(255, 255, 255, 0.14); }
}

.text-link {
  font-weight: 700; color: var(--cyan);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 32, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo span { font-size: 1.5rem; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.logo span b {
  font-weight: 800; color: var(--accent);
}
.logo-mark { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark .tick { stroke: var(--pink); stroke-width: 2.8; }

.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600;
  color: var(--text-2); transition: color 200ms ease, background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--text); background: var(--surface-2); }
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* language menu */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.lang-btn:active { transform: scale(0.97); }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover { border-color: rgba(255, 255, 255, 0.45); }
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
  background: rgba(16, 24, 46, 0.92); color: var(--text); border-radius: 14px;
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform-origin: top right;
  opacity: 0; transform: scale(0.97) translateY(-4px);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.lang-menu.is-open { opacity: 1; transform: none; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 8px; background: transparent;
  text-align: left; font-weight: 600; cursor: pointer;
}
.lang-menu button[aria-checked="true"]::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
}
.lang-menu button:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .lang-menu button:hover { background: var(--surface-2); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 8vw, 96px);
}
.hero-title {
  max-width: 17ch;
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  font-weight: 800; font-stretch: 74%;
  line-height: 0.96; letter-spacing: -0.02em;
  color: var(--text);
}
.hero-lead {
  max-width: 60ch; margin-top: 20px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-2);
}

/* programme guide strip */
.epg {
  --label-w: 150px;
  --now: 0.3;
  position: relative;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.epg-head, .epg-row { display: grid; grid-template-columns: var(--label-w) 1fr; }
.epg-head { height: 44px; align-items: center; }
.epg-day, .epg-label {
  font-size: 0.8125rem; font-weight: 700; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2);
}
.epg-ticks { position: relative; height: 100%; }
.epg-ticks span {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  font-size: 0.8125rem; color: var(--text-3);
}

.epg-row { height: 68px; border-top: 1px solid var(--line); align-items: center; }
.epg-label { color: var(--text); }
.epg-track { position: relative; height: 100%; overflow: hidden; }
.epg-track::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: calc(var(--now) * 100%);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 9px);
}
.epg-block {
  position: absolute; top: 12px; bottom: 12px; left: 30%; width: 15%;
  min-width: max-content;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: rgba(255, 255, 255, 0.08); color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 10px; font-weight: 650; white-space: nowrap;
}
.epg-time { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.epg-block-live {
  background: var(--accent); border-color: transparent; color: var(--on-accent);
  border-radius: 10px 0 0 10px;
}
.epg-block-live .epg-time { color: var(--on-accent); opacity: 0.75; }
.epg-block-live svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.epg-now {
  position: absolute; top: 0; bottom: 0; width: 0;
  left: calc(18px + var(--label-w) + (100% - 36px - var(--label-w)) * var(--now));
  border-left: 2px solid var(--cyan);
  box-shadow: 0 0 16px 1px rgba(111, 182, 255, 0.8);
  pointer-events: none;
}
.epg-now-pill {
  position: absolute; top: 10px; left: -1px; transform: translateX(-50%);
  padding: 2px 9px; border-radius: 999px;
  background: var(--cyan); color: var(--bg);
  font-size: 0.75rem; font-weight: 800; white-space: nowrap;
}

/* the guide fills in, block by block; the live block keeps breathing */
@media (prefers-reduced-motion: no-preference) {
  .is-ready .epg-block { animation: epg-reveal 900ms var(--ease-out) backwards; }
  .is-ready .epg-row:nth-of-type(2) .epg-block { animation-delay: 120ms; }
  .is-ready .epg-row:nth-of-type(3) .epg-block { animation-delay: 260ms; }
  .is-ready .epg-row:nth-of-type(4) .epg-block { animation-delay: 400ms; }
  .is-ready .epg-now { animation: epg-now 700ms var(--ease-out) backwards; }
  .epg-block-live { background-size: 200% 100%; }
  .is-ready .epg-block-live { animation: epg-reveal 900ms var(--ease-out) backwards, live-shift 6s ease-in-out 1s infinite alternate; }
  .epg-now-pill { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes epg-reveal {
  from { clip-path: inset(0 100% 0 0 round 10px); }
  to   { clip-path: inset(0 0 0 0 round 10px); }
}
@keyframes epg-now {
  from { opacity: 0; transform: translateY(-6px); }
}
@keyframes live-shift { to { background-position: 100% 0; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 182, 255, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(111, 182, 255, 0); }
}

/* trial form */
.trial { margin-top: clamp(28px, 3.5vw, 40px); }
.devices { border: 0; margin: 0; padding: 0; min-width: 0; }
.devices legend {
  padding: 0; margin-bottom: 14px;
  font-size: 1.125rem; font-weight: 700; transition: color 200ms ease;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-weight: 600; user-select: none; -webkit-user-select: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
}
.chip:active span { transform: scale(0.97); }
.chip input:checked + span { background: #fff; color: var(--bg); border-color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover input:not(:checked) + span { border-color: rgba(255, 255, 255, 0.5); background: var(--surface-2); }
}
.trial.needs-device legend { color: #ffb27a; }
/* the missing-device hint: words, not only colour */
.device-error { margin-top: 10px; font-size: 0.9375rem; font-weight: 600; color: #ffb27a; }
@media (prefers-reduced-motion: no-preference) {
  .trial.needs-device .chips { animation: nudge 320ms var(--ease-out); }
}
@keyframes nudge {
  25% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
}

.trial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 20px; }
@media (min-width: 1100px) {
  .hero .trial { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
  .hero .trial-actions { margin-top: 0; flex-direction: column; align-items: end; gap: 10px; }
}
.trial-note { font-size: 0.9375rem; color: var(--text-2); }
.hours { color: var(--text); font-weight: 600; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section h2 {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  font-weight: 800; font-stretch: 76%; line-height: 0.98; letter-spacing: -0.015em;
}
.section-lead { margin-top: 18px; max-width: 40ch; font-size: 1.125rem; color: var(--text-2); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: calc(var(--header-h) + 32px); }
/* football & TV guide: the "not affiliated" line stays quiet but readable */
.football-note { margin-top: 16px; max-width: 44ch; font-size: 0.875rem; line-height: 1.5; color: var(--text-3); }

/* the benefits as tonight's TV listing: a time column, the programme, one line; one show is on air */
.evening { margin-top: clamp(40px, 6vw, 64px); max-width: 980px; border-top: 1px solid var(--line); }
.show {
  isolation: isolate;
  position: relative; display: grid; grid-template-columns: minmax(96px, 150px) 1fr; gap: 6px clamp(20px, 4vw, 56px);
  padding: clamp(20px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.show-time {
  padding-top: 0.2em; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 750; font-stretch: 80%;
  color: var(--sky); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.show-body h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; font-stretch: 76%; line-height: 1; letter-spacing: -0.015em;
}
.show-body p { margin-top: 10px; max-width: 56ch; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--text-2); }
.show-live {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 9px; border-radius: 6px;
  background: var(--live); color: #fff; font-size: 0.75rem; font-weight: 800; font-stretch: 110%; letter-spacing: 0.08em; text-transform: uppercase;
}
.show-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
/* the show on air sits on a soft band of screen light */
.show.is-live::before {
  content: ""; position: absolute; inset: 0 -24px; z-index: -1; border-radius: 16px;
  background: linear-gradient(90deg, rgba(111, 182, 255, 0.1), rgba(111, 182, 255, 0.02) 70%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal .show { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(160ms + var(--i) * 70ms); }
  .reveal.is-in .show { opacity: 1; transform: none; }
}

/* packages: a channel tuner – remote keys on the left, one screen on the right */
.prices-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.prices-head .section-lead { margin-top: 0; }
.tuner { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.tuner-keys { margin: 0; padding: 0; border: 0; min-width: 0; }
.tuner-keys legend { padding: 0; margin-bottom: 14px; font-size: 0.9375rem; font-weight: 700; color: var(--text-2); }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.key { position: relative; cursor: pointer; }
.key input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.key-n, .key-u { position: relative; pointer-events: none; }
.key {
  display: grid; place-content: center; justify-items: center; gap: 2px; aspect-ratio: 1;
  border-radius: 22px; background: linear-gradient(180deg, #18233f, #111a31);
  border: 1px solid var(--line-2);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 140ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.key-n { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; font-stretch: 70%; line-height: 0.9; font-variant-numeric: tabular-nums; }
.key-u { font-size: 0.75rem; font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.key:active { transform: scale(0.96); }
/* the world plan: one wide key under the four periods */
.key.is-wide { grid-column: 1 / -1; aspect-ratio: auto; padding: 18px 12px; }
.key:has(input:checked) { border-color: var(--amber); background: linear-gradient(180deg, #24304f, #16203a); }
.key:has(input:checked) .key-u { color: var(--amber); }
.key:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .key:hover { border-color: rgba(255, 255, 255, 0.32); }
}

/* the screen: dark glass with an on-screen display line, like a TV showing the chosen channel */
.screen {
  position: relative; overflow: hidden; border-radius: 26px; padding: 10px;
  background: #070c19; border: 1px solid var(--line-2);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}
.screen-in {
  height: 100%; display: grid; align-content: start; gap: 22px;
  padding: clamp(22px, 3vw, 36px); border-radius: 18px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(111, 182, 255, 0.22), transparent 60%), linear-gradient(180deg, #122039, #0c152b);
}
.osd {
  font-size: 0.875rem; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.osd span { color: var(--text-3); }
.screen-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-variant-numeric: tabular-nums; }
.screen-price strong { font-size: clamp(3.25rem, 7vw, 5.5rem); font-weight: 800; font-stretch: 74%; line-height: 0.9; letter-spacing: -0.02em; }
.screen-price span { font-size: 1rem; color: var(--text-2); }
.screen-best { flex-basis: 100%; font-style: normal; font-size: 0.875rem; font-weight: 700; color: var(--amber); }
.screen-inc { display: grid; gap: 10px; color: var(--text); }
.screen-inc li { display: flex; align-items: center; gap: 10px; }
.screen-inc svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.screen .plan-cta { justify-self: start; margin-top: 4px; }

.prices-note { margin-top: 24px; font-size: 0.9375rem; color: var(--text-2); }

/* one-off services: a service menu – what we do on the left, the price large on the right */
.service-menu { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.4vw, 26px) 0; border-bottom: 1px solid var(--line);
}
.service-text h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 750; font-stretch: 84%; line-height: 1.15; }
.service-text p { margin-top: 6px; max-width: 58ch; color: var(--text-2); }
.service-price { display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-price strong { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; font-stretch: 78%; line-height: 1; }
.service-price span { font-size: 0.8125rem; color: var(--text-3); }
@media (max-width: 640px) {
  .service { grid-template-columns: minmax(0, 1fr) auto; }
  .service-cta { grid-column: 1 / -1; width: 100%; }
}

/* player apps: the second half of the guides section */
.apps-split { margin-top: clamp(56px, 8vw, 96px); }
.sub-title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; font-stretch: 76%; line-height: 1; letter-spacing: -0.015em; }

/* kick-off check: tick four things off before the match, then the official league sites */
.kickoff { display: grid; gap: clamp(32px, 4vw, 48px); }
.checklist { margin: 0; padding: 0; border: 0; min-width: 0; }
.checklist legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 12px; font-size: 1.25rem; font-weight: 750; font-stretch: 88%; }
.check-progress { font-size: 0.875rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.checks { border-top: 1px solid var(--line); }
.check {
  position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 4px 14px; align-items: start;
  padding: 18px 4px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 30px; height: 30px; margin: 0; cursor: pointer; }
.check-box {
  grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line-2);
  display: grid; place-items: center; transition: background-color 180ms ease, border-color 180ms ease;
}
.check-box svg { width: 18px; height: 18px; fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.8); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.check-t { font-size: 1.125rem; font-weight: 700; font-stretch: 88%; line-height: 1.3; transition: color 200ms ease; }
.check-d { color: var(--text-2); max-width: 58ch; }
.check input:checked + .check-box { background: var(--sky); border-color: var(--sky); }
.check input:checked + .check-box svg { opacity: 1; transform: none; }
.check input:checked ~ .check-t { color: var(--text-2); }
.check input:focus-visible + .check-box { outline: 3px solid var(--cyan); outline-offset: 3px; }
.check:active .check-box { transform: scale(0.94); }
.check-ready { min-height: 1.6em; margin-top: 14px; font-weight: 700; color: var(--amber); }
.checklist:not(.is-done) .check-ready { margin-top: 0; min-height: 0; }
.check-help { margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); }
.check-help a { color: var(--text); text-underline-offset: 3px; }

.leagues h3 { font-size: 1.25rem; font-weight: 750; font-stretch: 88%; }
.leagues p { margin-top: 8px; max-width: 58ch; color: var(--text-2); }
.league-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.league-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); text-decoration: none; font-weight: 650;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.league-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .league-links a:hover { border-color: var(--amber); background: rgba(255, 122, 26, 0.08); }
}

/* accordions (guides + faq) */
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 4px; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc-title {
  flex: 1; font-size: clamp(1.1875rem, 1.8vw, 1.4375rem); font-weight: 700; font-stretch: 88%; line-height: 1.2;
  transition: color 200ms ease;
}
.acc-meta { font-size: 0.875rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chev {
  width: 34px; height: 34px; padding: 7px; flex: none; border-radius: 50%;
  background: var(--surface-2);
  fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}
.acc[open] .chev { transform: rotate(180deg); background: var(--accent); stroke: var(--on-accent); }
@media (hover: hover) and (pointer: fine) {
  .acc summary:hover .acc-title { color: #ffb27a; }
}
.acc summary:focus-visible { outline-offset: -3px; }
.acc-body > div { padding: 0 4px 26px; max-width: 62ch; color: var(--text-2); }

/* smooth open where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  .acc { interpolate-size: allow-keywords; }
  .acc::details-content {
    height: 0; overflow: clip;
    transition: height 260ms var(--ease-out), content-visibility 260ms allow-discrete;
  }
  .acc[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) {
    .acc::details-content { transition: none; }
  }
}

.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.steps li::before {
  content: counter(s);
  display: grid; place-items: center; width: 28px; height: 28px; margin-top: -1px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-size: 0.8125rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* legal band */
.legal { padding: clamp(24px, 4vw, 48px) 0; }
.legal-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start;
  padding: clamp(28px, 4vw, 44px); border-radius: 24px;
  background: linear-gradient(135deg, rgba(111, 182, 255, 0.1), rgba(111, 182, 255, 0.08));
  border: 1px solid rgba(111, 182, 255, 0.25);
}
.legal-ico { width: 48px; height: 48px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; font-stretch: 80%; line-height: 1; }
.legal p { margin-top: 12px; max-width: 72ch; color: var(--text-2); font-size: 1.0625rem; }

/* closing call */
.close { position: relative; padding: clamp(72px, 10vw, 128px) 0; overflow: hidden; }
.close::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.16), rgba(52, 92, 160, 0.18) 50%, transparent);
}
.close-title {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem); font-weight: 800; font-stretch: 74%;
  line-height: 0.96; letter-spacing: -0.02em;
  color: var(--text);
}

/* footer */
.site-footer {
  background: rgba(6, 10, 22, 0.75); color: var(--text-2);
  padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.logo-footer { color: var(--text); }
.footer-tag { margin-top: 12px; max-width: 32ch; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { text-decoration: none; font-weight: 600; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--text); }
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--text-3);
}
.footer-bottom p:first-child { max-width: 80ch; }
.footer-bottom .footer-sitelinks, .footer-bottom .footer-langs { flex-basis: 100%; max-width: none; line-height: 1.9; }
.footer-sitelinks a, .footer-langs a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-sitelinks a:hover, .footer-langs a:hover { color: var(--text); }
}

/* sticky WhatsApp */
.sticky-wa {
  position: fixed; z-index: 40; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(calc(100% + 40px));
  transition: transform 320ms var(--ease-out), box-shadow 200ms ease;
}
.sticky-wa.is-on { transform: none; }
.sticky-wa:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .sticky-wa:hover { background: var(--accent-2); }
}

/* legal pages */
.doc-body { max-width: 820px; padding-top: 56px; padding-bottom: 96px; }
.doc-body h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; font-stretch: 76%; line-height: 1; }
.doc-body h2 { margin-top: 40px; font-size: 1.375rem; font-weight: 750; font-stretch: 88%; }
.doc-body p { margin-top: 10px; color: var(--text-2); max-width: 68ch; }
.doc-hint { padding: 12px 16px; border-radius: var(--radius); background: rgba(255, 122, 26, 0.12); border: 1px solid rgba(255, 122, 26, 0.35); color: #fde68a !important; }

/* scroll reveal (set up by main.js) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .main-nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  /* tuner: the keys become one row of four above the screen */
  .tuner { grid-template-columns: 1fr; }
  .keys { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .key.is-wide { padding: 12px 4px; }
  .key { aspect-ratio: auto; padding: 14px 4px; border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .logo span { font-size: 1.3rem; }
  /* phones: the test button stays in the header, compact, so the first screen has an action */
  .header-cta { min-height: 36px; padding: 0 12px; font-size: 0.8125rem; }
  .header-actions { gap: 8px; }
  .lang-btn { padding-inline: 10px; }
  /* footer links get a full finger-sized row */
  .footer-links { gap: 0; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .orb { width: 110vmax; height: 110vmax; }

  /* guide strip: compact, times sit inside the blocks */
  .epg { --label-w: 0px; --now: 0.08 !important; padding: 0 10px; }
  .epg-now { left: calc(10px + (100% - 20px) * var(--now)); }
  .epg-label, .epg-day, .epg-ticks span { display: none; }
  .epg-head, .epg-row { grid-template-columns: 1fr; }
  .epg-head { height: 36px; }
  .epg-row { height: 58px; }
  .epg-block { padding: 0 12px; font-size: 0.9375rem; gap: 8px; }
  .epg-block[data-block="1"] { left: 8% !important; }
  .epg-block[data-block="2"] { left: 20% !important; }
  .epg-block[data-block="3"] { left: 32% !important; width: 68% !important; }
  .epg-now-pill { transform: translateX(-12px); }

  .chips { gap: 8px; }
  .chip span { padding: 0 14px; }
  .trial-actions .btn { width: 100%; }

  .show { grid-template-columns: 1fr; }
  .show.is-live::before { inset: 0 -12px; }
  .screen .plan-cta { justify-self: stretch; }

  .legal-row { grid-template-columns: 1fr; gap: 16px; }

  .sticky-wa { left: 16px; right: 16px; justify-content: center; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* phones and touch screens: keep the glow, drop the expensive layers */
@media (max-width: 920px), (hover: none) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 16, 32, 0.94); }
  .epg { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(18, 26, 48, 0.78); }

  .orb-2 { display: none; }
  .orb-1 { animation-duration: 50s !important; }
  .orb-3 { animation-duration: 60s !important; }
}

@media (max-width: 380px) {
  .epg-block { font-size: 0.875rem; }
  .epg-block .epg-time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-wa, .lang-menu { transition-property: opacity; }
}

/* ---------- cartoon family scene (?bg=familie, built by family.js) ---------- */
.hero .wrap { position: relative; }
.hero-title, .hero-lead, .epg, .trial { position: relative; z-index: 1; }
.bg:has(.family-stage) { perspective: 1400px; }
.family-stage {
  position: absolute; z-index: 1;
  top: 6vh; right: -6vw;
  width: min(60vw, 980px); aspect-ratio: 540 / 400;
  transform-style: preserve-3d;
  transition: opacity 700ms ease;
}
.family-stage .fam-layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.family-stage svg { display: block; width: 100%; height: 100%; overflow: visible; }
.family-stage.family-3d canvas { display: block; width: 100%; height: 100%; }
.family-stage.family-3d {
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
@media (min-width: 921px) { .family-stage.family-3d { right: 0; width: min(62vw, 1000px); } }
/* once you scroll past the top, the room steps back so text stays easy to read */
html.fam-dim .family-stage { opacity: 0.4; }
.family-stage.family-3d.is-live { opacity: 1; }
html.fam-dim .family-stage.family-3d.is-live { opacity: 0.4; }
@media (max-width: 920px) {
  /* phones: the room gets its own space above the headline */
  .family-stage { width: 124vw; right: auto; left: 50%; margin-left: -62vw; top: calc(var(--header-h) - 4vw); }
  html.has-family .hero { padding-top: 84vw; }
  html.fam-dim .family-stage { opacity: 0.22; }
}

.family-stage .fam-body { fill: #2a2266; }
.family-stage .fam-skin { fill: #1d3157; stroke: #4b4f7a; stroke-width: 3; }
.family-stage .fam-ring { fill: none; stroke: #ffb27a; stroke-width: 3; opacity: 0; animation: fam-after 12s ease infinite; }
.family-stage .fam-hair { fill: #120e30; }
.family-stage .fam-head { isolation: isolate; }
.family-stage .fam-hair-grey { fill: #9ca3c7; }
.family-stage .fam-cap { fill: #22d3ee; }
.family-stage .fam-rimlight { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0; animation: fam-after 12s ease infinite; }
.family-stage .fam-pulse { animation: fam-after 12s ease infinite, fam-pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.family-stage .fam-heart-2 { animation-delay: 0.6s; }
.family-stage .fam-ch { opacity: 0; transition: opacity 220ms ease; }
.family-stage .fam-ch.is-on { opacity: 1; }
.family-stage .fam-ball { transform-box: fill-box; transform-origin: center; animation: fam-ball 2.4s var(--ease-in-out) infinite alternate; }
@keyframes fam-ball { to { transform: translate(-46px, -22px); } }
@keyframes fam-pulse { 50% { transform: scale(1.06); } }
.family-stage .fam-arm, .family-stage .fam-arm-solid { fill: #1d3157; }

/* timeline: 0–34 % before · 30–50 % rescue · 48–92 % after · then reset */
.family-stage .fam-before { animation: fam-before 12s ease infinite; }
.family-stage .fam-after  { opacity: 0; animation: fam-after 12s ease infinite; }
.family-stage .fam-noise  { animation: fam-noise 0.24s steps(3) infinite; }
.family-stage .fam-spin   { transform-box: fill-box; transform-origin: center; animation: fam-spin 1s linear infinite; }
.family-stage .fam-pop    { transform-box: fill-box; transform-origin: 50% 100%; }
.family-stage .fam-wa     { opacity: 0; transform-box: fill-box; transform-origin: 0% 100%; animation: fam-wa 12s var(--ease-out) infinite; }
.family-stage .fam-arm    { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(180deg); }
.family-stage .fam-arm-l  { transform: rotate(-180deg); animation: fam-cheer-l 12s var(--ease-out) infinite; }
.family-stage .fam-arm-r  { animation: fam-cheer-r 12s var(--ease-out) infinite; }
.family-stage .fam-phone-arm { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(180deg); animation: fam-phone 12s var(--ease-out) infinite; }
.family-stage .fam-dad .fam-head { transform-box: fill-box; transform-origin: 50% 100%; animation: fam-shake 12s ease-in-out infinite; }
.family-stage .fam-people > g { animation: fam-jump 12s var(--ease-out) infinite; }
.family-stage .fam-people > g:nth-child(2) { animation-delay: 0.08s; }
.family-stage .fam-people > g:nth-child(3) { animation-delay: 0.16s; }
.family-stage .fam-people > g:nth-child(4) { animation-delay: 0.24s; }
.family-stage .fam-tail   { transform-box: fill-box; transform-origin: 0% 100%; animation: fam-tail 12s linear infinite; }
.family-stage .fam-conf   { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fam-conf 12s linear infinite; }
.family-stage .fam-heart  { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fam-heart 12s var(--ease-out) infinite; }

@keyframes fam-before { 0%, 36% { opacity: 1; } 42%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fam-after  { 0%, 42% { opacity: 0; } 47%, 91% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes fam-noise  { 0% { transform: translate(0, 0); } 33% { transform: translate(-4px, 3px); } 66% { transform: translate(3px, -2px); } }
@keyframes fam-spin   { to { transform: rotate(360deg); } }
@keyframes fam-wa {
  0%, 30% { opacity: 0; transform: translateY(8px) scale(0.92); }
  34%, 46% { opacity: 1; transform: none; }
  52%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes fam-phone {
  0%, 27% { transform: rotate(180deg); }
  32%, 45% { transform: rotate(-8deg); }
  50%, 100% { transform: rotate(180deg); }
}
@keyframes fam-cheer-l {
  0%, 46% { transform: rotate(-180deg); }
  51% { transform: rotate(-30deg); } 58% { transform: rotate(-14deg); } 65% { transform: rotate(-32deg); }
  72% { transform: rotate(-14deg); } 79% { transform: rotate(-30deg); } 88% { transform: rotate(-20deg); }
  95%, 100% { transform: rotate(-180deg); }
}
@keyframes fam-cheer-r {
  0%, 46% { transform: rotate(180deg); }
  51% { transform: rotate(30deg); } 58% { transform: rotate(14deg); } 65% { transform: rotate(32deg); }
  72% { transform: rotate(14deg); } 79% { transform: rotate(30deg); } 88% { transform: rotate(20deg); }
  95%, 100% { transform: rotate(180deg); }
}
@keyframes fam-shake {
  0%, 6% { transform: rotate(0); } 10% { transform: rotate(-9deg); } 14% { transform: rotate(9deg); }
  18% { transform: rotate(-9deg); } 22% { transform: rotate(9deg); } 26%, 100% { transform: rotate(0); }
}
@keyframes fam-jump {
  0%, 48% { transform: translateY(0); } 53% { transform: translateY(-10px); } 58% { transform: translateY(0); }
  64% { transform: translateY(-8px); } 69% { transform: translateY(0); } 75% { transform: translateY(-6px); } 80%, 100% { transform: translateY(0); }
}
@keyframes fam-tail {
  0%, 46% { transform: rotate(18deg); }
  50% { transform: rotate(-22deg); } 53% { transform: rotate(14deg); } 56% { transform: rotate(-22deg); } 59% { transform: rotate(14deg); }
  62% { transform: rotate(-22deg); } 65% { transform: rotate(14deg); } 68% { transform: rotate(-22deg); } 71% { transform: rotate(14deg); }
  74% { transform: rotate(-22deg); } 77% { transform: rotate(14deg); } 80% { transform: rotate(-22deg); } 84%, 100% { transform: rotate(18deg); }
}
@keyframes fam-conf {
  0%, 48% { opacity: 0; transform: translateY(-20px) rotate(0); }
  51% { opacity: 1; }
  86% { opacity: 1; transform: translateY(var(--d)) rotate(var(--r)); }
  92%, 100% { opacity: 0; transform: translateY(var(--d)) rotate(var(--r)); }
}
@keyframes fam-heart {
  0%, 52% { opacity: 0; transform: translateY(10px) scale(0.9); }
  57%, 80% { opacity: 1; transform: translateY(-14px) scale(1); }
  90%, 100% { opacity: 0; transform: translateY(-30px) scale(1); }
}

/* no motion: show the happy ending as a still picture */
@media (prefers-reduced-motion: reduce) {
  .family-stage * { animation: none !important; }
  .family-stage .fam-before, .family-stage .fam-wa, .family-stage .fam-conf { opacity: 0; }
  .family-stage .fam-after, .family-stage .fam-heart { opacity: 1; }
  .family-stage .fam-arm-l { transform: rotate(-24deg); }
  .family-stage .fam-arm-r { transform: rotate(24deg); }
  .family-stage .fam-ring { opacity: 1; }
}

/* ---------- family picture background (?bg=foto, built by family-photo.js) ---------- */
.fam-photo {
  position: absolute; z-index: 1; top: var(--header-h); right: 0;
  width: min(58vw, 1100px); aspect-ratio: 3 / 2;
  overflow: hidden;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
  /* fades into the dark page on the left (behind the headline) and at the bottom */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%), linear-gradient(to bottom, #000 66%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, #000 14%), linear-gradient(to bottom, #000 66%, transparent 100%);
          mask-composite: intersect;
}
.fam-photo.is-live { opacity: 1; }
html.fam-dim .fam-photo.is-live { opacity: 0.35; }
.fam-photo-move { position: absolute; inset: 0; transform: scale(1.04); transform-origin: 97% 30%; }
.fam-photo-move img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the TV in the picture glows and flickers softly, like a screen in a dark room */
.fam-photo-tv {
  position: absolute; left: 74%; top: 6%; width: 30%; height: 50%;
  background: radial-gradient(closest-side, rgba(111, 182, 255, 0.55), rgba(255, 122, 26, 0.18) 60%, transparent);
  mix-blend-mode: screen;
  opacity: 0.6;
}
@media (prefers-reduced-motion: no-preference) {
  .fp-drift { animation: photo-drift 16s var(--ease-in-out) infinite alternate; }
  .fam-photo-tv { animation: tv-flicker 3.2s steps(1, end) infinite, tv-breathe 7s ease-in-out infinite alternate; }
}
@keyframes photo-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(1%, 1.5%); } }
@keyframes tv-flicker { 0%, 100% { filter: brightness(1); } 12% { filter: brightness(1.25); } 14% { filter: brightness(0.9); } 47% { filter: brightness(1.15); } 49% { filter: brightness(1); } 81% { filter: brightness(1.3); } 83% { filter: brightness(0.95); } }
@keyframes tv-breathe { from { opacity: 0.45; } to { opacity: 0.8; } }

@media (min-width: 921px) {
  html.has-photo .hero-title, html.has-photo .hero-lead { text-shadow: 0 2px 24px rgba(10, 16, 32, 0.8); }
}
@media (max-width: 920px) {
  /* phones: the picture gets its own space above the headline */
  .fam-photo {
    width: 100vw; top: var(--header-h);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  html.has-photo .hero { padding-top: 60vw; }
  html.fam-dim .fam-photo.is-live { opacity: 0.25; }
}

/* everything inside the picture moves together with it */
.fp-drift { position: absolute; inset: 0; transform-origin: 97% 30%; }
.fp-drift > * { position: absolute; }
.fp-drift > img { inset: 0; }

/* the TV screen in the picture */
/* measured on familie.webp: corners (1240,225) (1502,135) (1502,478) (1240,455) of 1536 × 1024 */
.fp-screen { left: 80.73%; top: 13.18%; width: 17.06%; height: 33.5%; }
/* the flat 1600 × 900 screen, put in perspective onto the angled TV by family-photo.js */
.fp-screen-in { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; }
.fp-ch { inset: 0; position: absolute; opacity: 0; transition: opacity 220ms ease; }
.fp-ch.is-on { opacity: 1; }
.fp-ch[data-ch="sport"] {
  background:
    radial-gradient(circle at 50% 55%, transparent 9%, rgba(255, 255, 255, 0.8) 9.6%, transparent 10.4%),
    linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, 0.8) 49.6% 50.4%, transparent 50.4%),
    repeating-linear-gradient(90deg, #16a34a 0 12.5%, #15803d 12.5% 25%);
}
/* a film: cinema bars, a moonlit valley at dusk, a slow camera push */
.fp-ch[data-ch="film"] { background: #000; overflow: hidden; }
.fp-ch[data-ch="film"]::before {
  content: ""; position: absolute; inset: 12% 0;
  background:
    radial-gradient(circle at 72% 30%, #fff6dc 0 3.2%, rgba(255, 240, 210, 0.35) 3.8%, transparent 11%),
    radial-gradient(120% 60% at 30% 118%, #0c1424 0 56%, transparent 56.5%),
    radial-gradient(110% 70% at 82% 125%, #15213a 0 58%, transparent 58.5%),
    linear-gradient(180deg, #0d1734 0%, #2b2552 46%, #8a4a5e 70%, #f0a35e 86%, #1a1424 86.5%);
  transform-origin: 72% 40%;
}
.fp-ch[data-ch="film"]::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55); }
.fp-ch[data-ch="ocean"] {
  background:
    radial-gradient(ellipse 22% 10% at 42% 66%, #1e3a8a 0 98%, transparent 100%),
    linear-gradient(180deg, #38bdf8 0 42%, #0ea5e9 42% 70%, #075985 100%);
}
.fp-ch[data-ch="concert"] {
  background:
    conic-gradient(from 160deg at 20% 0%, transparent 0 8deg, rgba(255, 122, 26, 0.75) 8deg 22deg, transparent 22deg),
    conic-gradient(from 165deg at 50% 0%, transparent 0 10deg, rgba(111, 182, 255, 0.7) 10deg 22deg, transparent 22deg),
    conic-gradient(from 170deg at 80% 0%, transparent 0 8deg, rgba(111, 182, 255, 0.75) 8deg 20deg, transparent 20deg),
    linear-gradient(180deg, #132240 0 78%, #0b0d22 78%);
}
.fp-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.fp-live {
  position: absolute; right: 4%; top: 6%; padding: 0.3em 0.6em 0.3em 1.5em; border-radius: 12px;
  font: 800 64px/1 var(--font); letter-spacing: 0.08em; color: #fff; background: rgba(11, 13, 34, 0.75);
}
.fp-live::before {
  content: ""; position: absolute; left: 0.55em; top: 50%; width: 0.55em; height: 0.55em; margin-top: -0.275em;
  border-radius: 50%; background: #ef4444;
}

/* popcorn jumping out of the bowl */
.fp-pops { left: 22%; top: 52%; width: 0; height: 0; }
.fp-pop {
  position: absolute; left: 0; top: 0; width: 0.9vw; height: 0.8vw; min-width: 6px; min-height: 5px;
  border-radius: 45% 55% 50% 50%; background: #fff6d8; box-shadow: inset -1px -1px 0 rgba(180, 140, 60, 0.35);
  opacity: 0;
}
/* hearts floating up between Anna and Leo */
.fp-hearts { left: 33%; top: 31%; width: 0; height: 0; }
.fp-heart {
  position: absolute; left: 0; top: 0; width: 1.6vw; height: 1.6vw; min-width: 12px; min-height: 12px; opacity: 0;
  background: #ec4899;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.6.7-1.4 2.2-2.6 4.3-2.6 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.6.7-1.4 2.2-2.6 4.3-2.6 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fp-heart:nth-child(2) { left: 9vw; background: #f472b6; }
.fp-heart:nth-child(3) { left: 18vw; background: #a78bfa; }
/* a glint on Rosa's glasses */
.fp-glint {
  left: 50.6%; top: 39.6%; width: 2vw; height: 2vw; margin: -1vw 0 0 -1vw; opacity: 0;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 70%);
  -webkit-mask: conic-gradient(from 45deg, #000 0 6deg, transparent 6deg 84deg, #000 84deg 96deg, transparent 96deg 174deg, #000 174deg 186deg, transparent 186deg 264deg, #000 264deg 276deg, transparent 276deg), radial-gradient(closest-side, #000 25%, transparent 30%);
          mask: conic-gradient(from 45deg, #000 0 6deg, transparent 6deg 84deg, #000 84deg 96deg, transparent 96deg 174deg, #000 174deg 186deg, transparent 186deg 264deg, #000 264deg 276deg, transparent 276deg), radial-gradient(closest-side, #000 25%, transparent 30%);
}

@media (prefers-reduced-motion: no-preference) {
  .fp-live::before { animation: live-dot 1.4s ease-in-out infinite; }
  .fp-ch[data-ch="film"].is-on::before { animation: film-push 14s var(--ease-in-out) infinite alternate; }
  .fp-pop { animation: pop-jump 2.4s var(--ease-out) infinite; }
  .fp-pop:nth-child(1) { --x: -3vw; --y: -7vw; animation-delay: 0s; }
  .fp-pop:nth-child(2) { --x: 1vw;  --y: -9vw; animation-delay: 0.3s; }
  .fp-pop:nth-child(3) { --x: 3.5vw; --y: -6vw; animation-delay: 0.6s; }
  .fp-pop:nth-child(4) { --x: -1.5vw; --y: -10vw; animation-delay: 0.9s; }
  .fp-pop:nth-child(5) { --x: 2.5vw; --y: -8.5vw; animation-delay: 1.2s; }
  .fp-pop:nth-child(6) { --x: -4vw; --y: -5vw; animation-delay: 1.5s; }
  .fp-pop:nth-child(7) { --x: 0.5vw; --y: -6.5vw; animation-delay: 1.8s; }
  .fp-pop:nth-child(8) { --x: 4.5vw; --y: -9.5vw; animation-delay: 2.1s; }
  .fp-heart { animation: heart-rise 4.2s var(--ease-out) infinite; }
  .fp-heart:nth-child(2) { animation-delay: 1.4s; }
  .fp-heart:nth-child(3) { animation-delay: 2.8s; }
  .fp-glint { animation: glint 4s ease-in-out infinite; }
}
@keyframes live-dot { 50% { opacity: 0.25; } }
@keyframes film-push { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }
@keyframes pop-jump {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  10% { opacity: 1; }
  45% { transform: translate(calc(var(--x) * 0.6), var(--y)) scale(1) rotate(160deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) * 0.35)) scale(0.9) rotate(320deg); }
}
@keyframes heart-rise {
  0% { opacity: 0; transform: translateY(0) scale(0.7); }
  15% { opacity: 0.95; }
  70% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-9vw) scale(1.1); }
}
@keyframes glint {
  0%, 70%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  80% { opacity: 1; transform: scale(1.2) rotate(45deg); }
  90% { opacity: 0; transform: scale(0.8) rotate(90deg); }
}
@media (max-width: 920px) {
  .fp-pop { width: 2vw; height: 1.8vw; }
  .fp-heart { width: 3.4vw; height: 3.4vw; }
  .fp-heart:nth-child(2) { left: 16vw; }
  .fp-heart:nth-child(3) { left: 30vw; }
  .fp-glint { width: 4vw; height: 4vw; margin: -2vw 0 0 -2vw; }
}

/* the programme's light falls on the family: a soft glow from the TV, tinted per channel */
.fp-tint {
  inset: 0; opacity: 0; mix-blend-mode: soft-light; pointer-events: none;
  transition: opacity 700ms ease;
}
.fp-tint.is-on { opacity: 1; }
.fp-tint[data-ch="sport"]   { background: radial-gradient(70% 90% at 89% 29%, rgba(34, 197, 94, 0.75), transparent 70%); }
.fp-tint[data-ch="film"]    { background: radial-gradient(70% 90% at 89% 29%, rgba(255, 170, 110, 0.6), transparent 70%); }
.fp-tint[data-ch="ocean"]   { background: radial-gradient(70% 90% at 89% 29%, rgba(56, 189, 248, 0.8), transparent 70%); }
.fp-tint[data-ch="concert"] { background: radial-gradient(70% 90% at 89% 29%, rgba(255, 122, 26, 0.8), transparent 70%); }

/* hovering a "Test" button puts TV Listo on the screen in the picture */
.fp-brand {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #132240, #0f2a52);
  font: 800 190px/1 var(--font); letter-spacing: -0.01em; color: #fff;
  opacity: 0; transform: scale(0.96);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.fp-brand b { color: #4ade80; }
.fp-brand.is-on { opacity: 1; transform: scale(1); }
.fp-heart.fp-burst { animation: none; }

/* first visit: the TV is off and the room is dark until it switches on (family-photo.js) */
.fp-dark { inset: 0; background: #0a1020; opacity: 0; pointer-events: none; }
.fp-power { position: absolute; inset: 0; background: #000; opacity: 0; display: grid; place-items: center; }
.fp-power i { display: block; width: 100%; height: 100%; background: radial-gradient(closest-side, #fff, rgba(190, 220, 255, 0.6) 60%, transparent); opacity: 0; }
.tv-off .fp-dark { opacity: 0.6; }
.tv-off .fp-power { opacity: 1; }

/* 3D photo: the WebGL canvas replaces the flat picture once it is ready */
.fp-drift > canvas.fp-depth { inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 500ms ease; }
.fp-drift > canvas.fp-depth.is-on { opacity: 1; }
.fp-drift > img.is-hidden { opacity: 0; transition: opacity 500ms ease 200ms; }

/* ---------- match night: four friends cheer a goal on the TV (football section) ----------
   The photo already shows the goal on the TV; around it one 8 s loop adds the moment: TOR! on the angled screen,
   the screen light over the friends, popcorn, scarf-coloured confetti and a shout. main.js keeps the stage on the
   photo's cover rect (so every overlay uses picture coordinates), skews the TV layer onto the screen and pauses
   the loop off screen. Only transform and opacity animate. */
.match {
  --loop: 8s;
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
  margin: clamp(36px, 5vw, 56px) 0 0; aspect-ratio: 16 / 9; border-radius: clamp(16px, 2vw, 26px);
  border: 1px solid var(--line-2); background: #1a1020;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
.match-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.match-stage > * { position: absolute; }
.match-photo { inset: 0; width: 100%; height: 100%; transform-origin: 85% 30%; }
/* the TV layer is a 16:9 screen (1600 × 900) that main.js maps onto the angled TV in the photo */
.match-tv { left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; visibility: hidden; }
.match-tv.is-placed { visibility: visible; }
.match-tv::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; }
.match-osd {
  position: absolute; left: 60px; top: 56px; display: inline-flex; align-items: center; gap: 26px;
  padding: 14px 30px; border-radius: 16px; background: rgba(6, 10, 22, 0.8);
  font: 800 72px/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.match-live { padding: 8px 18px; border-radius: 10px; background: var(--live); }
.match-goal {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font: 900 330px/1 var(--font); font-stretch: 76%; letter-spacing: -0.02em; color: #fff; white-space: nowrap;
  text-shadow: 0 12px 0 rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
}
/* screen light falling on the friends */
.match-light { inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.15;
  background: radial-gradient(60% 80% at 87% 28%, rgba(140, 200, 255, 0.75), transparent 70%); }
.match-shout {
  left: 13%; top: 3%; padding: 0.9cqw 1.8cqw; border-radius: 2cqw;
  background: #fff; color: var(--bg); font: 800 max(13px, 2.6cqw)/1 var(--font); font-stretch: 86%;
  box-shadow: 0 1cqw 2cqw -1cqw rgba(0, 0, 0, 0.5); opacity: 0; transform-origin: 30% 100%;
}
.match-shout::after { content: ""; position: absolute; left: 62%; bottom: -0.9cqw; width: 1.8cqw; height: 1.8cqw; background: #fff; transform: rotate(45deg); border-radius: 0.3cqw; }
.match-pops { left: 37%; top: 63%; width: 0; height: 0; }
.match-pops i { position: absolute; width: 1.3cqw; height: 1.1cqw; border-radius: 45% 55% 50% 50%; background: #fff4d6; opacity: 0; }
.match-confetti { left: 39%; top: 27%; width: 0; height: 0; }
.match-confetti i { position: absolute; width: 0.9cqw; height: 1.5cqw; border-radius: 0.2cqw; opacity: 0; background: var(--accent); }
.match-confetti i:nth-child(3n + 1) { background: #fff; }
.match-confetti i:nth-child(4n + 2) { background: var(--sky); }

@media (prefers-reduced-motion: no-preference) {
  .match .match-photo { animation: match-bump var(--loop) var(--ease-out) infinite; }
  .match .match-goal { animation: match-goal var(--loop) var(--ease-out) infinite; }
  .match .match-tv::after { animation: match-flash var(--loop) ease-out infinite; }
  .match .match-light { animation: match-light var(--loop) ease-out infinite; }
  .match .match-shout { animation: match-shout var(--loop) var(--ease-out) infinite; }
  .match .match-pops i { animation: match-pop var(--loop) var(--ease-out) infinite; animation-delay: calc(var(--d) * 1ms); }
  .match .match-confetti i { animation: match-conf var(--loop) cubic-bezier(0.2, 0.7, 0.3, 1) infinite; animation-delay: calc(var(--d) * 1ms); }
  .match:not(.is-playing) *,
  .match:not(.is-playing) *::before,
  .match:not(.is-playing) *::after { animation-play-state: paused !important; }
}
/* reduced motion: a calm still of the goal moment */
@media (prefers-reduced-motion: reduce) {
  .match .match-goal { opacity: 1; }
}
@keyframes match-goal {
  0%, 28% { opacity: 0; transform: scale(0.8); }
  31% { opacity: 1; transform: scale(1.08); }
  35%, 60% { opacity: 1; transform: scale(1); }
  66%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes match-flash { 0%, 28% { opacity: 0; } 29% { opacity: 0.6; } 36%, 100% { opacity: 0; } }
@keyframes match-light {
  0%, 28% { opacity: 0.15; }
  31% { opacity: 0.9; }
  55% { opacity: 0.35; }
  70%, 100% { opacity: 0.15; }
}
@keyframes match-bump { 0%, 28% { transform: none; } 31% { transform: scale(1.015); } 40%, 100% { transform: none; } }
@keyframes match-shout {
  0%, 30% { opacity: 0; transform: translateY(1cqw) scale(0.9); }
  34% { opacity: 1; transform: scale(1.04); }
  38%, 60% { opacity: 1; transform: none; }
  66%, 100% { opacity: 0; transform: none; }
}
@keyframes match-pop {
  0%, 30% { opacity: 0; transform: translate(0, 0); }
  32% { opacity: 1; }
  44% { opacity: 1; transform: translate(calc(var(--x) * 0.3cqw), calc(var(--y) * 0.3cqw)) rotate(120deg); }
  60%, 100% { opacity: 0; transform: translate(calc(var(--x) * 0.4cqw), calc(var(--y) * 0.1cqw)) rotate(240deg); }
}
@keyframes match-conf {
  0%, 30% { opacity: 0; transform: translate(0, 0) rotate(0); }
  33% { opacity: 1; }
  48% { opacity: 1; transform: translate(calc(var(--x) * 0.7cqw), -14cqw) rotate(calc(var(--r) * 1deg)); }
  64%, 100% { opacity: 0; transform: translate(calc(var(--x) * 0.9cqw), -4cqw) rotate(calc(var(--r) * 2deg)); }
}
@media (max-width: 640px) {
  /* phones: a taller crop that keeps the TV and the friends nearest to it */
  .match { aspect-ratio: 4 / 3; }
  .match-shout { left: 30%; }
}

.kickoff { margin-top: clamp(36px, 5vw, 56px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .kickoff { grid-template-columns: 1fr; } }
.leagues .football-note { margin-top: 18px; }
/* while the match scene is on screen the background photo steps away, so the family is not shown twice */
html.fam-off .fam-photo.is-live { opacity: 0; }

/* ---------- guide sub pages (apps, guide hub) built by tools/build-languages.py ---------- */
.doc-langs { display: flex; gap: 4px; margin-left: auto; }
.doc-langs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 999px; text-decoration: none; font-size: 0.875rem; font-weight: 700; color: var(--text-2); }
.doc-langs a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .doc-langs a:hover { color: var(--text); } }
.doc-back { margin-bottom: 18px; font-size: 0.9375rem; }
.doc-back a, .sub-links a { color: var(--text-2); text-underline-offset: 3px; }
.sub-page h1 { max-width: 18ch; }
.sub-lead { margin-top: 16px; max-width: 62ch; font-size: 1.125rem; color: var(--text-2); }
.sub-page h2 { margin-top: 44px; margin-bottom: 14px; }
.sub-page .steps { max-width: 62ch; color: var(--text-2); }
.sub-list { display: grid; gap: 10px; max-width: 62ch; padding-left: 1.1em; list-style: disc; color: var(--text-2); }
.sub-links { display: grid; gap: 6px; }
.sub-links a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 650; }
.sub-cta { margin-top: 36px; }
.sub-page .trial-note { margin-top: 10px; }
.doc-foot { padding-bottom: 48px; font-size: 0.875rem; color: var(--text-3); display: grid; gap: 6px; }
.doc-foot a { color: var(--text-2); }
.acc-more, .know-more { margin-top: 14px; }
.know-more { margin-top: 20px; }

/* ---------- content pages (content/*.md) ---------- */
/* text pages scroll long copy under a two-row header on phones: keep it readable */
.doc .site-header { background: var(--bg); }
.doc .header-row { flex-wrap: wrap; height: auto; min-height: var(--header-h); row-gap: 0; }
.sub-nav { display: flex; gap: 2px; }
.sub-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 650; color: var(--text-2); text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease;
}
.sub-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .sub-nav a:hover { color: var(--text); background: var(--surface-2); } }

.crumbs { margin-bottom: 22px; font-size: 0.875rem; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-underline-offset: 3px; }
.crumbs span[aria-hidden] { margin: 0 6px; }
.sub-kicker { margin-bottom: 12px; font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.sub-page h3 { margin-top: 26px; font-size: 1.125rem; font-weight: 720; }
.sub-page h3 + p { margin-top: 6px; }
.sub-page a:not(.btn):not(.link-card) { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgba(255, 122, 26, 0.6); }
.page-meta { margin-top: 48px; font-size: 0.875rem; color: var(--text-3) !important; }

.summary-box { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); }
.summary-box p { margin-top: 0; max-width: 64ch; }
.summary-box .summary-label { margin-bottom: 6px; font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.sub-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.sub-table th, .sub-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sub-table thead th { font-weight: 750; color: var(--text); background: var(--surface); }
.sub-table tbody th { font-weight: 650; color: var(--text); }
.sub-table td { color: var(--text-2); }
.sub-table tr:last-child > * { border-bottom: 0; }

.faq-list { margin-top: 8px; }
.faq-list .acc-body p { margin-top: 0; }

.link-cards, .plan-grid, .service-grid { margin-top: 18px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.link-card, .plan-card, .service-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.link-card { transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-card:hover { border-color: var(--line-2); background: var(--surface-2); } }
.link-card:active { transform: scale(0.98); }
.link-card-kicker { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.link-card-title { font-weight: 750; font-size: 1.0625rem; line-height: 1.25; }
.link-card-text { font-size: 0.9375rem; color: var(--text-2); }

.plan-card.is-featured { border-color: rgba(255, 122, 26, 0.55); }
.plan-name { font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 0 !important; }
.plan-price { margin-top: 2px !important; font-size: 2rem; font-weight: 800; font-stretch: 80%; color: var(--text) !important; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 0.875rem; font-weight: 600; color: var(--text-3); }
.plan-term { margin-top: 0 !important; }
.plan-card ul { display: grid; gap: 6px; margin: 8px 0 14px; padding-left: 1.1em; list-style: disc; color: var(--text-2); font-size: 0.9375rem; }
.service-card h3 { margin-top: 0; }
.service-card p { margin-top: 0; }
.plan-add { margin-top: auto; }

@media (max-width: 760px) {
  .doc .header-row { padding-top: 8px; }
  .sub-nav { order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; }
  .sub-nav::-webkit-scrollbar { display: none; }
  .sub-nav a { flex: none; }
}

/* ---------- home: new blocks (kicker, stats, trial steps, hub, buying guide, ask band) ---------- */
.hero-kicker { margin-bottom: 16px; font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; }
.hero-stats li { display: flex; align-items: baseline; gap: 8px; color: var(--text-2); font-size: 0.9375rem; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; font-stretch: 78%; color: var(--text); font-variant-numeric: tabular-nums; }

.trial-steps { counter-reset: ts; margin-top: clamp(32px, 5vw, 48px); display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trial-steps li { counter-increment: ts; position: relative; padding: 22px 20px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trial-steps li::before {
  content: counter(ts); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-variant-numeric: tabular-nums;
}
.trial-steps h3 { font-size: 1.125rem; font-weight: 750; }
.trial-steps p { margin-top: 6px; color: var(--text-2); }

.hub .link-cards { margin-top: clamp(32px, 5vw, 48px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hub-more { margin-top: 20px; }

.choose-grid { margin-top: clamp(32px, 5vw, 48px); display: grid; gap: 32px clamp(32px, 5vw, 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choose-grid h3 { font-size: 1.25rem; font-weight: 750; font-stretch: 90%; }
.choose-grid p { margin-top: 10px; max-width: 62ch; color: var(--text-2); }

.ask { padding: clamp(24px, 4vw, 48px) 0; }
.ask-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) * 1.5); background: var(--bg-2); border: 1px solid var(--line-2); }
.ask h2 { font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 800; font-stretch: 80%; line-height: 1.1; }
.ask p { margin-top: 8px; color: var(--text-2); max-width: 52ch; }

.screen-name { font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 920px) {
  .trial-steps, .choose-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* phones: the three figures sit side by side, number above its label */
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stats li { flex-direction: column; gap: 2px; font-size: 0.8125rem; line-height: 1.3; }
}

/* ---------- cart ---------- */
.cart-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  color: var(--text); background: transparent; transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .cart-btn:hover { background: var(--surface-2); } }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.6875rem; font-weight: 800; background: var(--accent); color: var(--on-accent);
  font-variant-numeric: tabular-nums;
}
.doc .cart-btn { margin-left: auto; }
.doc .cart-btn + .doc-langs { margin-left: 0; }

dialog.cart {
  position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  border: 0; border-left: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  transform: translateX(100%); transition: transform 280ms var(--ease-out), overlay 280ms allow-discrete, display 280ms allow-discrete;
}
dialog.cart[open] { transform: none; }
@starting-style { dialog.cart[open] { transform: translateX(100%); } }
dialog.cart::backdrop { background: rgba(4, 7, 15, 0.6); opacity: 0; transition: opacity 280ms ease, overlay 280ms allow-discrete, display 280ms allow-discrete; }
dialog.cart[open]::backdrop { opacity: 1; }
@starting-style { dialog.cart[open]::backdrop { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.cart, dialog.cart::backdrop { transition: none; } }

.cart-panel { display: flex; flex-direction: column; height: 100%; padding: 20px clamp(16px, 4vw, 24px) calc(20px + env(safe-area-inset-bottom)); }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-head h2 { font-size: 1.375rem; font-weight: 800; font-stretch: 82%; }
.cart-btn, .cart-close, .cart-remove { border: 0; background: transparent; font: inherit; cursor: pointer; }
.cart-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--text-2); }
.cart-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .cart-close:hover { color: var(--text); background: var(--surface-2); } }
.cart-list { margin-top: 16px; flex: 1; overflow-y: auto; border-top: 1px solid var(--line); }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-name { font-weight: 650; }
.cart-price { margin-top: 2px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cart-remove { min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 650; color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .cart-remove:hover { color: var(--text); background: var(--surface-2); } }
.cart-foot { display: grid; gap: 12px; padding-top: 16px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.0625rem; }
.cart-total strong { font-size: 1.75rem; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.cart-checkout { width: 100%; }
.cart-note, .cart-empty { font-size: 0.875rem; color: var(--text-3); }
.cart-empty { margin-top: 24px; }
.buy-box { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(255, 122, 26, 0.45); }
.buy-box p { margin-top: 0; }

/* ---------- main menu: test ticker, drop-down groups, phone sheet and dock (tools/menu.py, menu.js) ---------- */
.ticker { position: relative; z-index: 51; background: #0d1530; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.no-ticker .ticker { display: none; }
.ticker-row { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.ticker-row p { color: var(--text-2); min-width: 0; }
.ticker-row strong { color: var(--text); font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8125rem; }
.ticker-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18); }
.ticker-a { flex: none; margin-left: auto; font-weight: 750; color: var(--accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ticker-a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.ticker-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-right: -8px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; }
.ticker-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .ticker-x:hover { color: var(--text); background: var(--surface-2); } }

.header-row { position: relative; }
.mega-list { display: flex; align-items: center; gap: 2px; }
.mega-btn, .mega-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; font: inherit; font-size: 0.9375rem; font-weight: 650; color: var(--text-2); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}
.mega-link.is-quiet { font-weight: 550; color: var(--text-3); }
.mega-item.is-open .mega-btn, .mega-item[data-active] .mega-btn, .mega-link[aria-current="page"] { color: var(--text); }
.mega-item[data-active] .mega-btn, .mega-link[aria-current="page"] { background: var(--surface); }
@media (hover: hover) and (pointer: fine) { .mega-btn:hover, .mega-link:hover { color: var(--text); background: var(--surface-2); } }
.mega-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.mega-item.is-open .mega-chev { transform: rotate(180deg); }
.mega-badge { padding: 2px 8px; border-radius: 999px; background: rgba(255, 122, 26, 0.14); color: var(--accent); font-size: 0.75rem; font-weight: 750; font-variant-numeric: tabular-nums; }

.mega-entry { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.mega-entry-t { font-weight: 700; font-size: 0.9375rem; }
.mega-entry-d { font-size: 0.8125rem; color: var(--text-3); }
.mega-entry[aria-current="page"] { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .mega-entry:hover { background: var(--surface-2); } .mega-entry:hover .mega-entry-d { color: var(--text-2); } }
.mega-col-t { padding: 0 12px 6px; font-size: 0.6875rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.mega-foot { display: flex; gap: 6px; margin-top: 10px; padding: 12px 12px 4px; border-top: 1px solid var(--line); font-size: 0.875rem; font-weight: 700; color: var(--accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .mega-foot:hover { text-decoration: underline; text-underline-offset: 3px; } }
.mega-card { display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: var(--radius); background: rgba(255, 122, 26, 0.08); border: 1px solid rgba(255, 122, 26, 0.3); text-decoration: none; color: var(--text); }
.mega-card-k { font-size: 0.6875rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.mega-card-t { font-weight: 750; font-size: 1.0625rem; line-height: 1.25; }
.mega-card-d { font-size: 0.875rem; color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .mega-card:hover { background: rgba(255, 122, 26, 0.13); } }

.header-wa svg, .dock-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.header-wa { gap: 8px; }
.mega-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.mega-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mega-toggle:active { transform: scale(0.94); }

/* sub pages: language codes in a small drop-down like on the home page */
.doc-lang summary { list-style: none; }
.doc-lang summary::-webkit-details-marker { display: none; }
.doc-lang .doc-langs { display: grid; gap: 2px; margin: 0; min-width: 120px; }
.doc-lang[open] .lang-menu { opacity: 1; transform: none; }
.doc-lang .doc-langs a { justify-content: flex-start; }
.doc .cart-btn { margin-left: 0; }

/* desktop: groups open as panels under the header */
@media (min-width: 1100px) {
  .mega { margin-left: 8px; }
  .mega-item { position: static; }
  .mega-panel {
    position: absolute; top: calc(100% - 6px); left: 50%; width: max-content; max-width: calc(100% - var(--gutter) * 2); padding: 14px;
    background: rgba(14, 21, 42, 0.98); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transform-origin: top center;
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
  }
  .mega-item.is-open .mega-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  /* invisible bridge so the pointer can move from the button down into the panel */
  .mega-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .mega-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, auto); gap: 8px; }
  .mega-start .mega-cols { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(220px, auto)); }
  .mega-football .mega-card { width: 230px; }
}

/* tablet and phone: burger opens a full-screen sheet, groups fold open one by one */
@media (max-width: 1099.98px) {
  .mega-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  /* a blurred header would become the frame of the fixed sheet and squeeze it into the header strip */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 16, 32, 0.96); }
  .mega-list { max-width: 640px; margin: 0 auto; }
  .doc .header-row { flex-wrap: nowrap; }
  .mega {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, var(--header-h)); z-index: 49; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) calc(110px + env(safe-area-inset-bottom)); background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .menu-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open, .menu-open body { overflow: hidden; }
  .menu-open .site-header { background: var(--bg); }
  .mega-list { flex-direction: column; align-items: stretch; gap: 0; }
  .mega-item { border-bottom: 1px solid var(--line); }
  .mega-btn, .mega-link { width: 100%; min-height: 56px; padding: 0 4px; justify-content: space-between; border-radius: 0; font-size: 1.125rem; color: var(--text); background: transparent !important; }
  .mega-link { justify-content: flex-start; gap: 10px; }
  .mega-link.is-quiet { color: var(--text-2); }
  .mega-chev { width: 18px; height: 18px; }
  .mega-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease-out); }
  .mega-panel > .mega-inner { min-height: 0; overflow: hidden; }
  .mega-item.is-open .mega-panel { grid-template-rows: 1fr; }
  .mega-inner { display: grid; gap: 12px; }
  .mega-item.is-open .mega-inner { padding-bottom: 12px; }
  .mega-cols { display: grid; gap: 12px; }
  .mega-entry { padding: 10px 8px; }
  .mega-col-t { padding: 4px 8px; }
  .mega-foot { margin-top: 0; padding: 12px 8px 0; }
}
@media (max-width: 640px) {
  .header-wa { display: none; }
  .ticker-sep, .ticker-t { display: none; }
  .ticker-row { font-size: 0.8125rem; }
}

/* phone dock: trial and WhatsApp always under the thumb */
.dock { display: none; }
@media (max-width: 920px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 16, 32, 0.96); border-top: 1px solid var(--line);
  }
  .dock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 750; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); }
  .dock-btn.is-wa { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  .dock-btn:active { transform: scale(0.97); }
  .sticky-wa { display: none !important; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .mega, .mega-panel, .mega-chev { transition: opacity 120ms ease !important; transform: none !important; }
}

/* plan themes: football first, then the other themes as small tiles with an icon */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.themes li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.themes svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.themes .is-top, .themes .is-world { grid-column: 1 / -1; font-weight: 750; }
.themes .is-top { background: rgba(255, 122, 26, 0.12); border-color: rgba(255, 122, 26, 0.45); }
.themes .is-top svg { stroke: var(--accent); }
.themes .is-world { background: rgba(111, 182, 255, 0.12); border-color: rgba(111, 182, 255, 0.45); }
.screen-inc { font-size: 0.9375rem; color: var(--text-2); }
.plan-card ul.themes { grid-template-columns: 1fr; margin: 10px 0 4px; padding-left: 0; list-style: none; }
.plan-card .themes li { padding: 8px 10px; font-size: 0.875rem; }
.plan-card ul:empty { display: none; }
@media (max-width: 520px) { .themes { grid-template-columns: 1fr; } }
.themes li:last-child:not(.is-top):not(.is-world) { grid-column: 1 / -1; }
