/* ultimateiptv.app — one stylesheet for the home, privacy and support pages.
   No web fonts and no third-party requests: the system faces are the Apple
   faces the app itself uses, and the privacy page can say the site loads
   nothing from anyone else. */

:root {
  --ink: #141c31;          /* the icon's navy, a shade deeper */
  --panel: #1c2642;
  --rule: #2c3858;
  --text: #e9edf7;
  --muted: #9aa4bf;
  --cyan: #22c3f0;
  --violet: #6b5cf0;
  --magenta: #e2449c;
  --signal: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #f3f5fa;
    --panel: #ffffff;
    --rule: #d9deea;
    --text: #141c31;
    --muted: #59627c;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
}

a { color: inherit; text-decoration-color: var(--violet); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font: 650 1.05rem/1 var(--display);
  text-decoration: none;
}
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.55rem; }
.masthead nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.masthead nav a { text-decoration: none; color: var(--muted); }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--text); }

/* Home hero: the headline beside a programme guide whose rows are the
   sources the app plays. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
}
.hero h1 {
  margin: 0 0 1.25rem;
  font: 700 clamp(2.6rem, 6vw, 4.4rem)/1.02 var(--display);
  letter-spacing: -0.025em;
}
.hero p { margin: 0 0 1rem; max-width: 34rem; color: var(--muted); font-size: 1.15rem; }
.hero .note { font-size: 0.95rem; }
.store-status {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.guide {
  position: relative;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--panel);
  overflow: hidden;
  font-size: 0.82rem;
}
.guide-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}
.guide-row:first-child { border-top: 0; }
.guide-source {
  padding: 0.85rem 0.9rem;
  border-right: 1px solid var(--rule);
  font-weight: 650;
}
.guide-slots { display: flex; }
.slot {
  min-width: 0;
  padding: 0.85rem 0.8rem;
  border-left: 1px solid var(--rule);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.slot:first-child { border-left: 0; }
.slot b { display: block; color: var(--text); font-weight: 600; }
.ruler .guide-source, .ruler .slot { padding-block: 0.55rem; color: var(--muted); font-weight: 500; }
.ruler { background: color-mix(in srgb, var(--panel) 70%, var(--ink)); }
.now {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(7.5rem + 0.58 * (100% - 7.5rem));
  width: 3px;
  background: var(--signal);
  background-size: 100% 300%;
  border-radius: 3px;
}
.now::before {
  content: "Now";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--violet);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.guide figcaption {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
}
.section h2 {
  margin: 0 0 1.5rem;
  font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--display);
  letter-spacing: -0.015em;
}
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 2.5rem;
}
.columns h3 { margin: 0 0 0.35rem; font: 650 1.1rem/1.3 var(--display); }
.columns p { margin: 0; color: var(--muted); }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 650 clamp(1.3rem, 2.6vw, 1.7rem)/1.3 var(--display);
}

/* Long-form pages: privacy, support */
.doc {
  max-width: 44rem;
  padding-block: clamp(2rem, 6vw, 4rem) 4rem;
}
.doc h1 {
  margin: 0 0 0.5rem;
  font: 700 clamp(2.2rem, 5vw, 3rem)/1.08 var(--display);
  letter-spacing: -0.02em;
}
.doc .updated { margin: 0 0 2.5rem; color: var(--muted); }
.doc h2 { margin: 2.75rem 0 0.75rem; font: 650 1.35rem/1.25 var(--display); }
.doc h3 { margin: 1.75rem 0 0.4rem; font: 650 1.08rem/1.3 var(--display); }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.4rem; }
.summary {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--violet);
  border-radius: 0.6rem;
  background: var(--panel);
}
.summary p { margin: 0; }
.summary p + p { margin-top: 0.6rem; }

.contact {
  margin: 0 0 2.5rem;
  font: 650 clamp(1.2rem, 3vw, 1.5rem)/1.3 var(--display);
}

/* Footer */
.footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
.footer p { margin: 0; max-width: 46rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .guide-row { grid-template-columns: 5.75rem minmax(0, 1fr); }
  .now { left: calc(5.75rem + 0.58 * (100% - 5.75rem)); }
}

@media (max-width: 30rem) {
  .masthead { flex-wrap: wrap; }
  .slot:nth-child(n + 3) { display: none; }
  .guide-source { padding-inline: 0.7rem; font-size: 0.74rem; }
  .now { left: calc(5.75rem + 0.6 * (100% - 5.75rem)); }
}
