/* ==========================================================================
   SN Stream — IPTV service site
   Single stylesheet. Dark, broadcast-room look.
   Brand colours and fonts all come from the tokens in :root below —
   change them there and the whole site follows.
   ========================================================================== */

:root {
  /* Ground + surfaces (blue-biased neutrals, not flat grey) */
  --ink-900: #08090d;
  --ink-850: #0c0e14;
  --ink-800: #10131b;
  --ink-700: #141922;
  --ink-600: #1c2330;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #e6eaf2;
  --text-dim: #94a0b4;
  --text-faint: #6b7688;

  /* Accents */
  --cyan: #3fc8e4;
  --cyan-deep: #1b8ba4;
  --amber: #f0a93c;
  --good: #4ade80;
  --bad: #f2555a;

  /* SMPTE colour bars — the test pattern every broadcast feed starts with.
     Used as a thin section marker throughout the site. */
  --bar-1: #c0c0c0;
  --bar-2: #c0c000;
  --bar-3: #00c0c0;
  --bar-4: #00c000;
  --bar-5: #c000c0;
  --bar-6: #c00000;
  --bar-7: #2020c0;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Layout — full-page: content runs edge to edge, held off the sides by
     a gutter that grows with the viewport. Reading text still caps its own
     width (see .head / .prose) so long lines stay legible on wide screens. */
  --wrap: 100%;
  --gutter: clamp(18px, 3.4vw, 60px);
  --radius: 10px;
  --radius-sm: 6px;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0; }

/* Numbers line up in columns wherever they are compared */
.mono, .price, .spec-value, td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--ink-850); border-block: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--lg { gap: 32px; }

/* Section heading block */
.head { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.head p { color: var(--text-dim); font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}

/* SMPTE colour-bar strip — site's signature device */
.bars {
  display: flex;
  height: 4px;
  width: 120px;
  border-radius: 2px;
  overflow: hidden;
  flex: 0 0 auto;
}
.bars span { flex: 1; }
.bars span:nth-child(1) { background: var(--bar-1); }
.bars span:nth-child(2) { background: var(--bar-2); }
.bars span:nth-child(3) { background: var(--bar-3); }
.bars span:nth-child(4) { background: var(--bar-4); }
.bars span:nth-child(5) { background: var(--bar-5); }
.bars span:nth-child(6) { background: var(--bar-6); }
.bars span:nth-child(7) { background: var(--bar-7); }
.bars--full { width: 100%; height: 3px; border-radius: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  text-decoration: none;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--cyan); color: #04212a; }
.btn--primary:hover { background: #56d6ef; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--wa { background: #25d366; color: #06301a; }
.btn--wa:hover { background: #3ee07c; }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: auto;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand__mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name { line-height: 1; }
.brand__name b { color: var(--cyan); font-weight: 700; }
.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); background: var(--ink-700); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--cyan); }

.nav__cta { display: flex; gap: 10px; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav__toggle svg { margin-inline: auto; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__panel {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px var(--gutter) 22px;
    background: var(--ink-850);
    border-bottom: 1px solid var(--line);
  }
  .nav__panel.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 11px 12px; font-size: 1rem; }
  .nav__cta { flex-direction: column; margin-top: 8px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(63, 200, 228, 0.16), transparent 62%),
    radial-gradient(620px 340px at 10% 105%, rgba(240, 169, 60, 0.09), transparent 60%),
    var(--ink-900);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(52px, 7vw, 92px);
}

.hero__copy { display: flex; flex-direction: column; gap: 22px; }

.hero__lede {
  color: var(--text-dim);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  max-width: 54ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

/* On-air style status pill */
.tally {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tally__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero__note {
  font-size: 0.87rem;
  color: var(--text-faint);
}

/* Spec panel beside the hero copy — reads like a broadcast rack label */
.rack {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  overflow: hidden;
}
.rack__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-800);
}
.rack__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rack__body { padding: 6px 18px 14px; }

.spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
  border-bottom: 1px dashed var(--line);
}
.spec:last-child { border-bottom: 0; }
.spec-label {
  font-size: 0.86rem;
  color: var(--text-dim);
}
.spec-value {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}
.spec-value b { color: var(--cyan); font-weight: 600; }

/* --------------------------------------------------------------------------
   Cards / feature grid
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
}
.card h3 { font-size: 1.28rem; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

.card__icon {
  width: 34px;
  height: 34px;
  color: var(--cyan);
  margin-bottom: 4px;
}

/* Numbered steps — the order genuinely matters here, so they are numbered */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding: 24px 24px 24px 22px;
  border-left: 2px solid var(--cyan-deep);
  background: var(--ink-700);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 9px;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--text-dim); font-size: 0.93rem; }

/* Stat row */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats div {
  padding: 24px 20px;
  background: var(--ink-850);
}
.stats dt {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Pricing plans
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
  position: relative;
}

/* Only the recommended plan gets lifted — everything else stays quiet */
.plan--featured {
  border-color: var(--cyan-deep);
  background: linear-gradient(180deg, rgba(63, 200, 228, 0.07), var(--ink-700) 45%);
  box-shadow: 0 18px 46px -26px rgba(63, 200, 228, 0.65);
}

.plan__tag {
  position: absolute;
  top: -11px;
  left: 24px;
  padding: 3px 11px;
  border-radius: 100px;
  background: var(--cyan);
  color: #04212a;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.plan__term {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.price {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__per { color: var(--text-faint); font-size: 0.87rem; }
.plan__save {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--good);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.93rem;
  color: var(--text-dim);
}
.plan li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.plan li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan-deep);
}
.plan .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   Tables (channel counts, device matrix)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 460px;
}
thead th {
  text-align: left;
  padding: 13px 18px;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}
tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-700);
  color: var(--text-dim);
}
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--text); font-weight: 500; }
td.num { text-align: right; color: var(--text); }

/* --------------------------------------------------------------------------
   Device chips
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--ink-700);
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--cyan);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq__body { padding: 16px 22px 20px; color: var(--text-dim); font-size: 0.95rem; }
.faq__body p + p { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.87rem; font-weight: 600; color: var(--text); }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-850);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
textarea { resize: vertical; min-height: 118px; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; }

.field__hint { font-size: 0.8rem; color: var(--text-faint); }

/* --------------------------------------------------------------------------
   Callout / trial strip
   -------------------------------------------------------------------------- */
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 200px at 82% 0%, rgba(63, 200, 228, 0.14), transparent 68%),
    var(--ink-700);
}
.callout h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.callout p { color: var(--text-dim); margin-top: 8px; max-width: 48ch; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-850);
  padding-block: 48px 30px;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
}
.footer__about { color: var(--text-dim); max-width: 40ch; margin-top: 12px; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: var(--text-dim); }
.site-footer ul a:hover { color: var(--cyan); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 100px;
  background: #25d366;
  color: #06301a;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
}
.wa-float:hover { text-decoration: none; background: #3ee07c; }
@media (max-width: 560px) {
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* --------------------------------------------------------------------------
   Long-form legal pages
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.7rem; margin-top: 38px; }
.prose h3 { font-size: 1.22rem; margin-top: 26px; }
.prose p, .prose li { color: var(--text-dim); }
.prose p { margin-top: 12px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); }

.page-head {
  border-bottom: 1px solid var(--line);
  background: var(--ink-850);
  padding-block: clamp(40px, 6vw, 68px);
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head p { color: var(--text-dim); margin-top: 12px; max-width: 58ch; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.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;
}
.center { text-align: center; }
.dim { color: var(--text-dim); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
}

@media (min-width: 1500px) {
  .grid   { grid-template-columns: repeat(3, 1fr); }
  .grid--4,
  .steps,
  .plans,
  .stats  { grid-template-columns: repeat(4, 1fr); }
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
