/* ============================================================================
   PakSat IPTV — design system (LIGHT)
   Clean, bright IPTV/SaaS look: white canvas, soft slate lines, emerald signal
   accent, deep-navy text. Lightweight: one stylesheet, system body font + one
   display face. Contrast-checked for WCAG AA.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("/site/assets/fonts/archivo-600.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("/site/assets/fonts/archivo-800.woff2") format("woff2");
}

:root {
  --bg:        #ffffff;   /* page canvas                     */
  --bg-2:      #f4f7f9;   /* tinted section                  */
  --panel:     #ffffff;   /* card surface                    */
  --panel-2:   #f2f5f8;   /* hover / inset surface           */
  --line:      #e6eaef;   /* hairline                        */
  --line-2:    #d3dae2;   /* stronger hairline               */
  --haze:      #5b6672;   /* muted text (AA on white)        */
  --paper:     #0f1b28;   /* primary text (deep navy)        */
  --ink:       #0f1b28;   /* dark ink alias                  */
  --signal:    #10a95f;   /* emerald fill                    */
  --signal-d:  #0c8c4c;   /* deep emerald                    */
  --signal-ink:#077d46;   /* emerald text on white (AA)      */
  --signal-soft:#e4f6ec;  /* light emerald tint              */
  --live:      #d5362b;   /* LIVE red                        */
  --gold:      #b07d10;   /* accent / free badge             */

  --maxw: 1200px;
  --gap: clamp(16px, 3vw, 28px);
  --radius: 12px;
  --radius-lg: 18px;

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(16,32,48,.04), 0 10px 30px -18px rgba(16,32,48,.22);
  --shadow-sm: 0 1px 2px rgba(16,32,48,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--paper);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.06; letter-spacing: -.015em; margin: 0; color: var(--paper); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Signature tally "bug" ---- */
.tally {
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; color: var(--signal-ink); background: var(--signal-soft);
  padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(7,125,70,.16);
}
.tally--live { background: var(--live); color: #fff; border-color: transparent; }
.tally__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tally--live .tally__dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--signal-ink);
}

/* ============================ Header ============================ */
.topbar {
  font-family: var(--mono); font-size: .74rem; color: var(--haze);
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar a { color: var(--signal-ink); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__policy { display: inline-flex; align-items: center; gap: 7px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--paper); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand em { color: var(--signal-ink); font-style: normal; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  font-weight: 600; font-size: .95rem; color: var(--haze);
  padding: 9px 13px; border-radius: 9px; min-height: 40px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--paper); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--signal-ink); }
.nav .is-cta { color: #fff; background: var(--signal); font-weight: 700; box-shadow: var(--shadow-sm); }
.nav .is-cta:hover { background: var(--signal-d); color: #fff; }

.nav-toggle {
  margin-left: auto; display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: var(--panel); border-radius: 10px; color: var(--paper); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 2px; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gap) 18px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; box-shadow: var(--shadow);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .is-cta { margin-top: 6px; justify-content: center; }
}

/* ============================ Hero ============================ */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(120% 100% at 90% -20%, var(--signal-soft), transparent 60%),
  linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; padding-block: clamp(40px, 8vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); margin: 14px 0 18px; }
.hero h1 .grn { color: var(--signal-ink); }
.hero__lead { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--haze); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.onair {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 16px; font-family: var(--body);
}
.onair__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.onair__head b { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--haze); font-weight: 600; }
.onair__row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.onair__row:hover { background: var(--panel-2); }
.onair__row + .onair__row { border-top: 1px solid var(--line); }
.onair__logo { width: 46px; height: 46px; flex: none; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); object-fit: contain; padding: 5px; }
.onair__meta { min-width: 0; }
.onair__meta strong { display: block; font-size: .96rem; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onair__meta span { font-size: .8rem; color: var(--haze); }

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

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 14px 20px; min-height: 48px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--signal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--signal-d); }
.btn--ghost { background: var(--panel); border-color: var(--line-2); color: var(--paper); }
.btn--ghost:hover { background: var(--panel-2); border-color: var(--haze); }
.btn--wa { background: #25d366; border-color: #1eb257; color: #04310f; }
.btn--wa:hover { background: #1fc45c; }

/* ============================ Stat strip ============================ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px var(--gap); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--paper); display: block; }
.stat b .plus { color: var(--signal-ink); }
.stat span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--haze); }
@media (max-width: 620px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } }

/* ============================ Sections ============================ */
.section { padding-block: clamp(40px, 7vw, 72px); }
.section--tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section__head h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.section__head p { color: var(--haze); margin: 6px 0 0; }
.section__head a { color: var(--signal-ink); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.section__head a:hover { text-decoration: underline; }

/* ============================ Cards / grid ============================ */
.grid { display: grid; gap: 16px; }
.grid--chan { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid--poster { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover .card__play { opacity: 1; }

.chan { display: flex; flex-direction: column; }
.chan__logo { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px; }
.chan__logo img { max-height: 68px; width: auto; object-fit: contain; }
.chan__body { padding: 11px 12px 13px; }
.chan__name { font-weight: 700; font-size: .95rem; color: var(--paper); display: flex; align-items: center; gap: 8px; }
.chan__group { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--haze); margin-top: 5px; }

.poster { display: block; }
.poster__img { aspect-ratio: 2/3; background: var(--bg-2) center/cover no-repeat; position: relative; }
.poster__gen { display: grid; align-items: center; justify-items: center; padding: 18px; text-align: center; }
.poster__gen-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 3.2vw, 1.3rem);
  line-height: 1.1; color: #fff; z-index: 1; text-shadow: 0 1px 12px rgba(0,0,0,.35);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.poster__badge { position: absolute; top: 8px; left: 8px; z-index: 2; }
.poster__body { padding: 10px 12px 13px; }
.poster__title { font-weight: 700; font-size: .92rem; color: var(--paper); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.poster__meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--haze); margin-top: 5px; text-transform: uppercase; }

.card__play {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  background: rgba(15,27,40,.28); transition: opacity .15s ease; z-index: 1;
}
.card__play span {
  width: 52px; height: 52px; border-radius: 50%; background: var(--signal); color: #fff;
  display: grid; place-items: center; font-size: 20px; padding-left: 3px; box-shadow: 0 6px 18px rgba(7,125,70,.5);
}

/* ============================ Filter bar ============================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 11px; padding: 0 14px; min-height: 46px; box-shadow: var(--shadow-sm);
}
.search input { flex: 1; background: none; border: 0; color: var(--paper); font-size: 1rem; font-family: var(--body); min-width: 0; }
.search input:focus { outline: none; }
.search svg { flex: none; color: var(--haze); }
.chip {
  font-family: var(--body); font-weight: 600; font-size: .85rem; color: var(--haze);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 14px; min-height: 40px; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--paper); border-color: var(--haze); }
.chip[aria-pressed="true"] { color: #fff; background: var(--signal); border-color: var(--signal); }

.empty { text-align: center; color: var(--haze); padding: 56px 16px; font-family: var(--mono); font-size: .85rem; }

/* ============================ Watch / player ============================ */
.player-wrap { max-width: 1000px; }
.player {
  position: relative; aspect-ratio: 16/9; background: #05070a; border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.player video { width: 100%; height: 100%; display: block; background: #05070a; }
.player__fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; color: #c7d0da; }
.watch__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 8px; }
.watch__head h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
.watch__meta { font-family: var(--mono); font-size: .78rem; color: var(--haze); letter-spacing: .04em; }
.notice {
  margin-top: 16px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--signal);
  border-radius: 10px; padding: 12px 15px; color: var(--haze); font-size: .9rem;
}

/* ============================ Prose ============================ */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.prose p, .prose li { color: #3c4753; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.prose .tbl-wrap { overflow-x: auto; margin: 20px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--bg-2); color: var(--paper); font-family: var(--display); font-size: .9rem; }
.prose tbody td:first-child { color: var(--paper); font-weight: 600; }

/* ============================ Pricing ============================ */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.plan {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan--pop { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal), var(--shadow); }
.plan__flag {
  position: absolute; top: -11px; left: 20px; background: var(--signal); color: #fff;
  font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
}
.plan__name { font-family: var(--display); font-size: 1.25rem; }
.plan__blurb { color: var(--haze); font-size: .88rem; margin: 6px 0 16px; min-height: 2.4em; }
.plan__price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 18px; }
.plan__cur { font-family: var(--mono); font-size: .8rem; color: var(--haze); align-self: flex-start; margin-top: 6px; }
.plan__price b { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--paper); line-height: 1; }
.plan__per { font-family: var(--mono); font-size: .78rem; color: var(--haze); }
.plan__equiv { font-size: .85rem; color: var(--haze); margin: 6px 0 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan__save { background: var(--signal-soft); color: var(--signal-ink); font-family: var(--mono); font-size: .68rem; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 26px; font-size: .92rem; color: #3c4753; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--signal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23077d46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan__cta { margin-top: auto; width: 100%; }
.plans__note { text-align: center; color: var(--haze); font-size: .85rem; margin-top: 20px; }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* Feature cards (why-us) */
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.feature strong { color: var(--paper); display: block; margin-bottom: 6px; font-family: var(--display); font-size: 1.05rem; }
.feature p { color: var(--haze); font-size: .93rem; margin: 0; }

/* ============================ Footer ============================ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.site-footer .wrap { padding-block: 46px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--haze); margin: 0 0 14px; }
.foot a { color: #3c4753; display: block; padding: 5px 0; font-size: .93rem; }
.foot a:hover { color: var(--signal-ink); }
.foot__brand p { color: var(--haze); font-size: .9rem; max-width: 34ch; margin-top: 12px; }
.foot__policy { font-size: .85rem; color: var(--haze); }
.foot-cities { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.foot-cities h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--haze); margin: 0 0 12px; }
.foot-cities__list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-cities__list a { color: #3c4753; font-size: .9rem; }
.foot-cities__list a:hover { color: var(--signal-ink); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--haze); font-size: .82rem; font-family: var(--mono); }
.foot-legal a { color: var(--haze); }
.foot-legal a:hover { color: var(--signal-ink); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
