/* ==========================================================================
   IPTV Norske — static site stylesheet
   Dark premium streaming theme. One accent colour. Mobile-first.
   ========================================================================== */

:root {
  --bg: #0a0e16;
  --bg-2: #0f1521;
  --surface: #141c2b;
  --surface-2: #1b2536;
  --border: #243047;
  --text: #eef2f8;
  --muted: #9fb0c8;
  --accent: #1fd07a;
  --accent-600: #16b86b;
  --accent-ink: #04130b;
  --danger: #ff6b6b;
  --gold: #ffce54;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 64px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  background: rgba(31, 208, 122, .1); border: 1px solid rgba(31, 208, 122, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  min-height: 48px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(31, 208, 122, .6); }
.btn-primary:hover { background: var(--accent-600); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 22, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text); font-weight: 600; font-size: .96rem; padding: 9px 13px; border-radius: 9px;
  transition: background .15s, color .15s;
}
.site-nav a:hover { text-decoration: none; background: var(--surface); color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta {
  background: var(--accent); color: var(--accent-ink); margin-left: 8px;
  box-shadow: 0 8px 22px -10px rgba(31, 208, 122, .6);
}
.site-nav .nav-cta:hover { background: var(--accent-600); color: var(--accent-ink); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 10px; width: 46px; height: 46px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 14px 20px 22px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 13px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .site-nav .nav-cta { margin: 10px 0 0; text-align: center; border-bottom: 0; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(31, 208, 122, .16), transparent 60%),
    radial-gradient(55% 50% at 8% 18%, rgba(54, 122, 246, .12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .accent { color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.15rem; margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.stat-row .num { font-size: 1.7rem; font-weight: 800; color: var(--accent); display: block; }
.stat-row .lbl { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---- Feature grid ---- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p { margin-bottom: 0; color: var(--muted); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(31, 208, 122, .12); border: 1px solid rgba(31, 208, 122, .28); color: var(--accent);
}
.feature-ico svg { width: 24px; height: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(31, 208, 122, .4); }
.plan--featured { border-color: var(--accent); box-shadow: 0 20px 50px -22px rgba(31, 208, 122, .55); }
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.1rem; margin-bottom: 4px; }
.plan .term { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.plan .price { font-size: 2.3rem; font-weight: 800; line-height: 1; }
.plan .price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--muted); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(31, 208, 122, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fd07a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.plan .btn { margin-top: auto; }
@media (max-width: 1040px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: .86rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--border); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---- Article / prose ---- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 1.8em; padding-top: .3em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 22px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text);
}
.prose .lead { color: var(--muted); }
.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 36px;
}
.toc strong { display: block; margin-bottom: 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }
.callout {
  background: linear-gradient(160deg, rgba(31,208,122,.1), rgba(31,208,122,.03));
  border: 1px solid rgba(31, 208, 122, .3); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0;
}
.callout--warn {
  background: linear-gradient(160deg, rgba(255,206,84,.1), rgba(255,206,84,.03));
  border-color: rgba(255, 206, 84, .35);
}

/* ---- Author byline ---- */
.byline { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; color: var(--muted); font-size: .92rem; }
.byline .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 800; color: var(--accent);
}
.byline strong { color: var(--text); }

/* ---- FAQ accordion ---- */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer;
  font-size: 1.05rem; font-weight: 700; padding: 20px 56px 20px 22px; position: relative;
  font-family: inherit;
}
.faq-q::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px;
  transform: translateY(-50%); transition: transform .25s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fd07a' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(180deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 600px; }
.faq-a p { margin: 0 0 .8em; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(150deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 22px; padding: clamp(34px, 5vw, 60px); text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: .3em; }

/* ---- Product page ---- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.product-media {
  background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--border);
  border-radius: 20px; padding: 34px; box-shadow: var(--shadow); position: sticky; top: 90px;
}
.product-price { font-size: 2.8rem; font-weight: 800; }
.product-price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.tag { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-size: .8rem; padding: 5px 12px; border-radius: 999px; margin: 0 6px 6px 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(31, 208, 122, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fd07a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; gap: 28px; } .product-media { position: static; } }

/* ---- Channel list iframe ---- */
.channel-frame {
  width: 100%; height: 78vh; min-height: 560px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}

/* ---- Logo strip / channels marquee ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text); font-size: .95rem; }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 32ch; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: .86rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .plan:hover { transform: none; }
}

/* ---- Content images ---- */
.shot {
  width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); display: block; background: var(--surface);
}
.shot--hero { box-shadow: var(--shadow); }
figure { margin: 0; }
figure.media { margin: 28px 0; }
figure.media figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; text-align: center; }
.media-round { border-radius: 18px; }

/* image + text split row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media .shot { aspect-ratio: auto; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split--reverse .split-media { order: 0; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(31, 208, 122, .14); border: 1px solid rgba(31, 208, 122, .3);
  color: var(--accent); font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--surface-2); font-size: .9rem; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td.price { font-weight: 800; color: var(--accent); }
table.compare .best { color: var(--accent); font-weight: 700; }

/* device chips with logos-feel */
.device-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.device-row .card { padding: 20px 14px; }
.device-row .card strong { display: block; }
@media (max-width: 680px) { .device-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Focus visibility ---- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
