/* IPTV-Norsk — clean static rebuild
   One stylesheet. Mobile-first. WCAG AA. Single accent (brand green). */

/* ---------- Self-hosted Inter (variable, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --brand: #15803d;            /* primary green — AA on white, buttons & links */
  --brand-dark: #115c2e;       /* hover */
  --brand-bright: #65bc7b;     /* highlights / icons on dark */
  --ink: #14211a;              /* primary text */
  --muted: #51605a;            /* secondary text */
  --bg: #ffffff;
  --surface: #f4f7f5;          /* tinted section bg */
  --surface-2: #eaf2ed;
  --border: #e0e7e3;
  --dark: #14211a;             /* dark sections / footer */
  --dark-2: #1c2b23;
  --on-dark: #e8efea;
  --on-dark-muted: #a9b8b0;
  --gold: #f5b301;             /* star ratings only */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,33,26,.04), 0 8px 24px rgba(20,33,26,.06);
  --shadow-lg: 0 12px 40px rgba(20,33,26,.12);
  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section-tint { background: var(--surface); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--on-dark-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.section-dark .eyebrow { color: var(--brand-bright); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .lead { color: var(--on-dark-muted); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); font-size: 1.1rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 132px; height: auto; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0 auto 0 1rem; flex-wrap: wrap; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .94rem; padding: .5rem .6rem; border-radius: 8px; }
.nav-links a:hover { color: var(--brand); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border); margin: 0; padding: .5rem 1rem 1rem;
    gap: 0; box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem .4rem; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 1rem; }
  .nav-cta { margin: .75rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: 1rem; line-height: 1; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: .15s; min-height: 48px; text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface); color: var(--brand); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--on-dark); padding-block: clamp(3rem, 8vw, 6rem); }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; }
.hero p { color: var(--on-dark-muted); font-size: 1.15rem; }
.hero .checks { margin: 1.5rem 0; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-note { font-size: .9rem; color: var(--on-dark-muted); margin-top: .9rem; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } .hero-media { order: -1; } }

/* ---------- Check lists ---------- */
.checks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2rem; color: inherit; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.35rem; height: 1.35rem;
  background: var(--brand-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section-dark .checks li, .hero .checks li { color: var(--on-dark); }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card .icon { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 1rem; }
.section-dark .card { background: var(--dark-2); border-color: rgba(255,255,255,.08); }
.section-dark .card h3 { color: #fff; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 1024px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.25rem; display: flex; flex-direction: column; text-align: center; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.plan h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan .price span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan .per { font-size: .85rem; color: var(--muted); min-height: 1.2rem; }
.plan .note { font-size: .9rem; color: var(--brand); font-weight: 600; margin: .6rem 0 1rem; min-height: 1.2rem; }
.plan .btn { margin-top: auto; }

/* ---------- Stat / CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: .75rem auto 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.section-dark .stat .num { color: var(--brand-bright); }
.stat .lbl { font-size: .92rem; color: var(--muted); }
.section-dark .stat .lbl { color: var(--on-dark-muted); }

/* ---------- Media + text rows ---------- */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.media-row.reverse .media-row__text { order: 2; }
@media (max-width: 800px) { .media-row { grid-template-columns: 1fr; } .media-row.reverse .media-row__text { order: 0; } }
.media-row img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.quote .stars { color: var(--gold); letter-spacing: .1em; font-size: .95rem; }
.quote p { color: var(--ink); margin: .6rem 0; }
.quote cite { color: var(--muted); font-style: normal; font-weight: 600; font-size: .9rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-block: 1rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li::after { content: "›"; margin-left: .4rem; color: var(--border); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--brand); }

/* ---------- Table of contents ---------- */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
.toc ol { margin: 0; }
.toc li { margin: .2rem 0; }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; margin-bottom: .75rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose .lead { margin-bottom: 1.5rem; }

/* ---------- Author byline ---------- */
.byline { font-size: .9rem; color: var(--muted); margin-top: .75rem; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.byline strong { color: var(--ink); font-weight: 700; }
.byline .sep { color: var(--border); }

/* ---------- FAQ (native details) ---------- */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.25rem; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; padding: 1.1rem 2rem 1.1rem 0; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: .2s; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p, .faq details > ul { padding-bottom: 1.1rem; margin: 0; color: var(--muted); }
.faq details > p { padding-top: 0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; background: #fff; }
table.cmp th, table.cmp td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp thead th { background: var(--surface); font-size: .9rem; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp .yes { color: var(--brand); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: .75rem; }
.site-footer .brand img { filter: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface-2); color: var(--brand); font-weight: 700; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; }
.disclaimer { font-size: .85rem; color: var(--muted); background: var(--surface); border-left: 3px solid var(--brand-bright); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }
