/* StreamAscent IPTV — site.css. One file, no preprocessor. Design §5. */

:root {
  --bg: #0F121F;
  --bg-deep: #0D0F1F;
  --surface: #1A1F2E;
  --surface-2: #1F2436;
  --tint: #1D2340;
  --text: #F4F6FB;
  --text-2: #BDC1CE;
  --text-3: #9499A8;
  --link: #8FB0FF;
  --link-visited: #B9A3FF;
  --focus: #9DBBFF;
  --border-strong: #6B7080;
  --hairline: rgba(255, 255, 255, .10);
  --ph: #2A3046;
  --ph-text: #BDC1CE;
  --shadow-card: none;
  --shadow-deep: 0 24px 60px -20px rgba(0, 0, 0, .65);

  --fill-a: #4266B8;
  --fill-b: #734CD6;
  --on-fill: #FFFFFF;
  --stage-a: #1A2147;
  --stage-b: #0D0F1F;
  --stage-text: #F4F6FB;
  --stage-text-2: #BDC1CE;
  --stage-text-3: #9499A8;
  --stage-link: #8FB0FF;
  --stage-focus: #9DBBFF;
  --glow-blue: rgba(3, 129, 255, .18);
  --glow-magenta: rgba(249, 19, 255, .12);
  --icon-hue-1: #00C0FF;
  --icon-hue-2: #0381FF;
  --icon-hue-3: #6416FF;
  --icon-hue-4: #F913FF;
  --icon-plate: #030510;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;

  --r-sm: .5rem; --r-md: .75rem; --r-lg: 1rem; --r-xl: 1.5rem; --r-pill: 999px; --r-icon: 22.37%;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F7FB;
    --bg-deep: #ECEEF5;
    --surface: #FFFFFF;
    --surface-2: #ECEEF5;
    --tint: #E6EBFA;
    --text: #0F121F;
    --text-2: #454B60;
    --text-3: #5B627A;
    --link: #2F4FA3;
    --link-visited: #5B3FA8;
    --focus: #2F4FA3;
    --border-strong: #7A8198;
    --hairline: rgba(15, 18, 31, .10);
    --ph: #DDE1EC;
    --ph-text: #454B60;
    --shadow-card: 0 1px 2px rgba(15, 18, 31, .06), 0 1px 1px rgba(15, 18, 31, .04);
    --shadow-deep: 0 24px 60px -24px rgba(15, 18, 31, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { hyphens: manual; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { color: var(--ph-text); font-size: .8125rem; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0 0 1rem; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Typography — Design §5.2 */
h1 { font: 700 clamp(2rem, 1.5rem + 2vw, 2.75rem)/1.1 var(--font-sans); letter-spacing: -.018em; }
.display { font: 700 clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem)/1.05 var(--font-sans); letter-spacing: -.022em; margin: 0 0 1rem; }
h2 { font: 700 clamp(1.5rem, 1.25rem + 1.2vw, 2rem)/1.2 var(--font-sans); letter-spacing: -.012em; }
h3 { font: 600 1.25rem/1.3 var(--font-sans); }
h4 { font: 600 1.0625rem/1.35 var(--font-sans); }
.lead { font: 400 1.125rem/1.5 var(--font-sans); }
@media (min-width: 48rem) { .lead { font-size: 1.25rem; } }
.small { font: 400 .9375rem/1.5 var(--font-sans); }
.caption { font: 400 .8125rem/1.45 var(--font-sans); }
.eyebrow { font: 600 .8125rem/1.4 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
code, .mono { font-family: var(--font-mono); }

/* Layout */
.container { max-width: 70rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .container { padding-inline: 1.5rem; } }
@media (min-width: 75rem) { .container { padding-inline: 2rem; } }
section { padding-block: var(--s8); }
.icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

.stage {
  background: linear-gradient(135deg, var(--stage-a), var(--stage-b));
  color: var(--stage-text);
  position: relative;
  isolation: isolate;
}
.stage a { color: var(--stage-link); }
.stage a.btn { color: inherit; }
.stage .lead, .stage p { color: var(--stage-text-2); }
.stage :focus-visible { outline-color: var(--stage-focus); }
.stage::before, .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.stage::before { background: radial-gradient(40% 50% at 78% 30%, var(--glow-blue), transparent 70%); }
.stage::after { background: radial-gradient(35% 45% at 20% 75%, var(--glow-magenta), transparent 70%); }

/* Skip link — CLAUDE.md §4.5, Design §6.1.b */
.skip-link {
  position: fixed; left: 1rem; top: 0; translate: 0 -150%; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: .75rem 1.25rem; border-radius: var(--r-md); border: 1px solid var(--hairline);
  text-decoration: none;
}
.skip-link:focus { translate: 0 1rem; }

/* Header — Design §2.0.a */
.site-header { border-bottom: 1px solid var(--hairline); position: relative; z-index: 10; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; min-height: 4rem; padding-block: .75rem; }
.site-header__inner > .brand { padding-block: .625rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; font: 600 1.0625rem/1 var(--font-sans); color: var(--text); text-decoration: none; }
.brand__icon { border-radius: var(--r-icon); display: block; }
.nav-main ul, .lang-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-inline ul { flex-direction: row; gap: 1.5rem; align-items: center; }
.nav-main a {
  display: flex; align-items: center; min-height: 2.75rem; padding-block: .5rem;
  text-decoration: none; color: var(--text); font: 500 .9375rem/1.3 var(--font-sans);
  border-block: 2px solid transparent;
}
.nav-main a[aria-current="page"] { border-bottom-color: currentColor; font-weight: 600; }
.menu { display: contents; }
.menu__summary {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; min-height: 2.75rem; padding-inline: .75rem;
  list-style: none; cursor: pointer; font: 500 .9375rem/1 var(--font-sans); border-radius: var(--r-sm);
}
.menu__summary::-webkit-details-marker { display: none; }
.menu[open] .menu__summary { background: color-mix(in srgb, currentColor 8%, transparent); }
.menu__panel { flex-basis: 100%; padding-block: .5rem 1rem; }
.lang-row { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--hairline); }
.lang-row__label { display: block; padding-inline: .75rem; margin-bottom: .25rem; }
.lang-row a, .lang-row span, .lang-switcher a, .lang-switcher span {
  display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding-inline: .75rem;
  text-decoration: none; color: var(--text);
}
.lang-switcher { margin-inline-start: auto; position: relative; }
.lang-switcher summary { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding-inline: .75rem; list-style: none; cursor: pointer; border-radius: var(--r-sm); }
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher[open] > summary { background: color-mix(in srgb, currentColor 8%, transparent); }
.lang-switcher ul { list-style: none; margin: .25rem 0 0; padding: 0; position: absolute; right: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); min-width: 9rem; box-shadow: var(--shadow-deep); }
.header-cta { display: none; }
.nav-inline, .site-header .lang-switcher { display: none; }
@media (min-width: 56rem) {
  .menu { display: none; }
  .nav-inline, .site-header .lang-switcher { display: block; }
}
@media (min-width: 64rem) {
  .header-cta { display: inline-flex; }
}

/* Footer — Design §2.0.b */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--hairline); margin-top: var(--s8); }
.footer-nav { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
@media (min-width: 48rem) { .footer-nav { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer-nav { grid-template-columns: repeat(4, 1fr); } }
.footer-col h2 { font: 600 .8125rem/1.4 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: .25rem; }
.footer-col a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.footer-legal { padding-block: 1.5rem; border-top: 1px solid var(--hairline); font-size: .8125rem; color: var(--text-3); }
.footer-legal p { margin: 0 0 .5rem; }

/* Components — Design §5.6 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .625rem 1.25rem; border-radius: var(--r-md);
  font: 600 1.0625rem/1.3 var(--font-sans); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: linear-gradient(90deg, var(--fill-a), var(--fill-b)); color: var(--on-fill); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--text); border-color: color-mix(in srgb, currentColor 40%, transparent); }
.btn-secondary:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding-inline: .875rem;
  border-radius: var(--r-pill); background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  font: 600 .9375rem/1 var(--font-sans);
}
.pill .icon { width: 1.25rem; height: 1.25rem; }

.chip {
  display: inline-flex; align-items: center; gap: .375rem; height: 1.5rem; padding-inline: .5rem;
  border-radius: var(--r-pill); border: 1px solid var(--border-strong); color: var(--text-2);
  font: 500 .8125rem/1 var(--font-sans); white-space: nowrap;
}
.chip .icon { width: 1.125rem; height: 1.125rem; }

.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-card); }
.card-pro {
  border: 1px solid transparent; background-origin: border-box; background-clip: padding-box, border-box;
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(135deg, var(--fill-a), var(--fill-b));
}

.prose a, .content a { color: var(--link); text-underline-offset: .18em; text-decoration: underline; overflow-wrap: anywhere; }
.prose a:visited, .content a:visited { color: var(--link-visited); }
.more-link { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; font-weight: 600; text-decoration: none; color: var(--link); }

.mark { display: inline-flex; align-items: flex-start; }
.mark .icon { width: 1.5rem; height: 1.5rem; }
.mark-yes--pro { color: var(--text); }
.mark-yes--free { color: var(--text-2); }
.mark-no { color: var(--text-3); }

.shot { display: block; background: var(--ph); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-deep); }
.shot img { display: block; width: 100%; height: auto; background: var(--ph); }

.badge { display: inline-block; margin-inline-end: 1rem; line-height: 0; }
.badge img { display: block; height: 3rem; width: auto; }

.on-this-page { border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 1rem 1.25rem; }
.on-this-page p { margin: 0 0 .5rem; }
.on-this-page ul { list-style: none; margin: 0; padding: 0; }
.on-this-page a { display: block; padding-block: .375rem; min-height: 2.75rem; display: flex; align-items: center; text-decoration: none; color: var(--link); }
.back-to-top { margin-top: 2rem; }
.back-to-top a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--link); text-decoration: none; }
.print-footer { display: none; }

/* Prose pages (Setup, FAQ, Privacy, Terms) — Design §4.1: capped measure at
   medium width, a 68ch column beside a static 240px "On this page" at wide. */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .prose { max-width: 68ch; }
}
@media (min-width: 64rem) {
  .prose { display: grid; grid-template-columns: minmax(0, 68ch) 15rem; grid-template-rows: auto 1fr; column-gap: 2rem; align-items: start; }
  .prose > .prose__head { grid-column: 1; grid-row: 1; }
  .prose > .prose__body { grid-column: 1; grid-row: 2; }
  .prose > .on-this-page { grid-column: 2; grid-row: 1 / span 2; }
}

/* Page sections — Task 3, Design §2.1–§2.5 */
.hero { padding-block: var(--s8); }
.hero__grid { display: grid; gap: var(--s7); align-items: center; }
.h1-line { display: block; }
.hero__note { display: flex; align-items: flex-start; gap: .5rem; font-weight: 500; margin-top: 1rem; }
.hero__note .icon { flex-shrink: 0; margin-top: .125rem; }
.hero-cluster { margin-top: 1.5rem; }
@media (min-width: 64rem) { .hero__grid { grid-template-columns: 1fr 1fr; } }

.shot-cluster { position: relative; aspect-ratio: 16 / 11; max-width: 40rem; margin-inline: auto; }
.shot-cluster__primary { position: absolute; top: 0; right: 0; width: 88%; margin: 0; }
.shot-cluster__secondary { position: absolute; bottom: 0; left: 0; width: 24%; margin: 0; }
.shot-cluster__icon { position: absolute; inset: 0; margin: auto; width: 10rem; height: 10rem; }
.shot-note { font: 400 .8125rem/1.5 var(--font-sans); color: var(--text-2); max-width: 40rem; margin: 1rem auto 0; text-align: center; }

.player-only-band { background: var(--surface); border-block: 1px solid var(--hairline); }
.player-only-band h2 { margin-bottom: .5rem; }

.feature-grid, .triage-grid, .tier-grid, .device-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
.feature-grid .card, .triage-grid .card, .tier-grid .card { height: 100%; }
.feature-grid .icon { width: 2rem; height: 2rem; margin-bottom: .75rem; color: var(--link); }
.device-grid figure { margin: 0; }
.device-grid figcaption { margin-top: .5rem; color: var(--text-2); }
@media (min-width: 48rem) {
  .feature-grid, .triage-grid, .tier-grid, .device-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .feature-grid, .triage-grid { grid-template-columns: repeat(3, 1fr); }
  .device-grid { grid-template-columns: repeat(4, 1fr); }
}

.fact-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .fact-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.setup-teaser, .questions-list { list-style: none; margin: 0; padding: 0; }
.questions-list li { border-top: 1px solid var(--hairline); }
.questions-list a { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--link); }
.setup-teaser { list-style: decimal; padding-inline-start: 1.25rem; }
.setup-teaser li { padding-block: .25rem; }

.faq-teaser details { border-top: 1px solid var(--hairline); padding-block: 1rem; }
.faq-teaser details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq-teaser summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.faq-teaser p { margin-top: .75rem; }

.cta-band { padding-block: var(--s8); text-align: center; }

.trial-strip { border-block: 1px solid var(--hairline); padding-block: var(--s6); }
.trial-strip > .container > p { margin-bottom: 1rem; font-weight: 600; }
.trial-strip__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.trial-strip__list li { display: flex; flex-direction: column; gap: .25rem; }
@media (min-width: 48rem) { .trial-strip__list { grid-template-columns: repeat(3, 1fr); } }

dl dt { font-weight: 600; margin-top: 1rem; }
dl dt:first-child { margin-top: 0; }
dl dd { margin: .25rem 0 0; }

.compare-table, .exceptions-table { table-layout: fixed; margin-bottom: 1rem; }
.compare-table th, .compare-table td, .exceptions-table th, .exceptions-table td {
  border: 1px solid var(--hairline); padding: .75rem; vertical-align: top;
}
.compare-table thead th, .exceptions-table thead th { overflow-wrap: normal; }
.compare-table tbody th[colspan] { background: var(--surface-2); }
.compare-table th[scope="row"], .exceptions-table th[scope="row"] { font-weight: 600; text-align: left; }
.compare-table td, .exceptions-table td { text-align: center; }
.compare-table__col-free, .compare-table__col-pro { width: 4.5rem; }
.compare-table__col-pro { background: var(--tint); }
.exceptions-table__col-device { width: 3.375rem; }
@media (max-width: 47.9375rem) {
  .exceptions-table th, .exceptions-table td { padding-inline: .375rem; }
  .exceptions-table th[scope="row"], .exceptions-table td { font-size: .8125rem; }
}
@media (min-width: 48rem) {
  .compare-table__col-free, .compare-table__col-pro { width: 9rem; }
  .exceptions-table__col-device { width: 7rem; }
}
.compare-desc { display: block; font: 400 .8125rem/1.4 var(--font-sans); color: var(--text-2); margin-top: .25rem; }
.compare-table th[scope="row"] .chip { margin-top: .5rem; }
.compare-legend { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: .875rem; }
.compare-legend li { display: flex; align-items: center; gap: .5rem; }

/* Motion — Design §5.9, reduced-motion gated */
@media (prefers-reduced-motion: no-preference) {
  a, .btn, .chip, .menu__summary, .lang-switcher summary { transition: background-color .12s ease, border-color .12s ease, color .12s ease, filter .12s ease; }
  html { scroll-behavior: smooth; }
  .hero-cluster { animation: hero-rise .4s ease both; }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Print — Design §3.7 */
@media print {
  .menu, .nav-inline, .lang-switcher, .header-cta, .skip-link, .cta-cluster, .stage,
  .footer-nav, .back-to-top, .on-this-page { display: none !important; }
  * { background: transparent !important; box-shadow: none !important; }
  body { background: #fff !important; color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  h1, h2, h3, h4 { break-after: avoid; color: #000; }
  .print-footer { display: block; margin-top: 2rem; font-size: .8125rem; }
}
