/* ---------- Self-hosted fonts (latin subset, from Google Fonts) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/css/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: 500;
  font-display: swap;
  src: url(/css/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: 600;
  font-display: swap;
  src: url(/css/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: 700;
  font-display: swap;
  src: url(/css/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: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/css/fonts/kanit-300.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: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/css/fonts/kanit-400.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: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/css/fonts/kanit-500.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/css/fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/css/fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/css/fonts/space-grotesk-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;
}

/* IPTV Nordic — shared stylesheet. Design spec: references/design.md (Aleric IT-Solution-Light aesthetic). */

/* ---------- Tokens ---------- */
:root {
  --bg: #fcfffc;
  --mint: #d5ffdd;
  --surface: #ffffff;
  --surface-alt: #f3f1f2;
  --ink: #10302a;
  --ink-card: #121212;
  --text-on-dark: #C6C4C5;
  --muted: #4c6a61;
  --lime: #b4e717;
  --orange: #ff6d00;
  --border-light: #eeeeee;
  --border-mint: rgba(16, 48, 42, 0.1);
  --radius-card: 18px;
  --radius-img: 16px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Kanit", sans-serif;
  --font-ui: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lime); }

img { max-width: 100%; height: auto; border-radius: var(--radius-img); }

strong { font-weight: 500; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 24px; z-index: 100;
  font-family: var(--font-ui); border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; padding: 0 12px; }

.site-header__bar {
  max-width: 1180px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border-mint);
  border-radius: 60px;
  padding: 10px 22px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 4px 24px rgba(16, 48, 42, 0.06);
}

.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  text-decoration: none; letter-spacing: -0.02em; white-space: nowrap;
}
.logo span { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.site-nav a {
  font-family: var(--font-ui); font-size: 15px; font-weight: 500;
  text-decoration: none; padding: 12px 2px; display: inline-block;
}
.site-nav a:hover { box-shadow: inset 0 -3px 0 var(--lime); }

.nav-toggle-box { position: absolute; opacity: 0; width: 0; height: 0; }
.nav-toggle-box:focus-visible ~ .nav-toggle { outline: 3px solid var(--ink); outline-offset: 2px; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border-mint); background: var(--surface);
  cursor: pointer; position: relative;
}
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 2px;
  background: var(--ink); transition: transform 0.2s;
}
.nav-toggle::before { top: 19px; }
.nav-toggle::after { top: 27px; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  background: var(--ink); color: #fff;
  border: 2px solid var(--ink); border-radius: 60px;
  padding: 13px 28px; min-height: 48px;
  text-decoration: none; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--lime); border-color: var(--lime); }

.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--on-dark:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.chip {
  display: inline-block;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--border-mint); border-radius: 60px;
  padding: 7px 16px; margin-bottom: 18px;
  background: transparent; color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--mint { background: linear-gradient(180deg, var(--mint) 0%, rgba(213, 255, 221, 0) 100%); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #fff; }

.section__intro { max-width: 640px; margin-bottom: 48px; }
.section__intro .lead { font-size: 1.15rem; color: var(--muted); }
.section--dark .section__intro .lead { color: var(--text-on-dark); }

/* Decorative mint blob */
.blob {
  position: absolute; border-radius: 50%;
  background: var(--mint); filter: blur(70px);
  z-index: 0; pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { padding: 90px 0 100px; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero__sub { font-size: 1.2rem; max-width: 560px; color: var(--muted); margin: 20px 0 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.stat-row { display: flex; gap: 56px; flex-wrap: wrap; }
.stat__number { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; display: block; }
.stat__label { font-family: var(--font-ui); font-size: 14px; color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px 28px;
}
.card--dark { background: var(--ink-card); border: none; color: var(--text-on-dark); }
.card--dark h3 { color: #fff; }

.card__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card--dark .card__icon { background: var(--lime); }
.card__icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card h2 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Packages ---------- */
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.package { display: flex; flex-direction: column; }
.package p { margin-bottom: 20px; }
.package .btn { margin-top: auto; align-self: flex-start; }
.btn--pending { pointer-events: none; opacity: 0.55; }
.package--featured {
  border: 2px solid var(--lime);
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; margin-bottom: 24px;
}
.package--featured .btn { margin-top: 0; }
.package--featured p { margin-bottom: 0; max-width: 640px; }
.package__price { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; letter-spacing: -0.01em; margin: 0 0 2px; }
.package__meta { font-family: var(--font-ui); font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.package--featured .package__price { font-size: 1.9rem; margin: 0 0 12px; }
.package--featured__buy { text-align: left; }
.tier-head { margin: 40px 0 20px; }
.tier-head h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; margin-bottom: 4px; }
.tier-head p { color: var(--muted); margin: 0; max-width: 640px; }

a.card-link { text-decoration: none; display: block; height: 100%; }
a.card-link:hover .card { border-color: var(--lime); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li {
  counter-increment: step;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-card); padding: 24px 28px 24px 84px; position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 24px; top: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; }

/* ---------- Callout / TL;DR ---------- */
.callout {
  background: var(--mint); border-radius: var(--radius-card);
  padding: 26px 30px; margin: 32px 0;
  border: 1px solid var(--border-mint);
}
.callout__label {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 8px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ (JS-free via <details>) ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-card); padding: 0;
}
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: 20px 56px 20px 26px; cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 26px 22px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-family: var(--font-ui); font-size: 13.5px; padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Article / long-form ---------- */
.article-header { padding: 60px 0 30px; }
.article-header .chip { margin-bottom: 22px; }

.byline {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-ui); font-size: 14px; color: var(--muted);
  margin-top: 26px;
}
.byline__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
img.byline__avatar { object-fit: cover; }

.article-body { max-width: 760px; }
.article-body h2 { margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.45em; }
.article-body figure { margin: 30px 0; }
.article-body figcaption {
  font-family: var(--font-ui); font-size: 13.5px; color: var(--muted);
  margin-top: 10px;
}

.toc {
  background: var(--surface-alt); border-radius: var(--radius-card);
  padding: 24px 28px; margin: 30px 0; font-family: var(--font-ui);
}
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.toc li { margin-bottom: 6px; }

.signoff {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  border-left: 4px solid var(--lime); padding-left: 18px; margin: 40px 0 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--surface-alt);
  margin-top: 100px; padding: 80px 0 0; overflow: hidden;
}
.site-footer a { color: var(--surface-alt); font-family: var(--font-ui); font-size: 15px; }
.site-footer .logo { color: #fff; font-size: 1.25rem; }
.site-footer .logo span { -webkit-text-stroke-color: #fff; }
.site-footer a:hover { text-decoration-color: var(--lime); }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-grid h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid p { color: var(--text-on-dark); }

.footer-watermark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 10rem); line-height: 0.9;
  color: #74817a;
  white-space: nowrap; text-align: center; user-select: none;
}

.footer-legal {
  border-top: 1px solid rgba(243, 241, 242, 0.12);
  padding: 22px 0; text-align: center;
  font-family: var(--font-ui); font-size: 13.5px;
  color: rgba(243, 241, 242, 0.8);
}

/* ---------- Fade-up (JS enhancement only; visible without JS) ---------- */
.fade-up { opacity: 1; transform: none; }
.js .fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.25s ease-out, transform 0.25s ease-out; }
.js .fade-up.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-up { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-row { gap: 32px; }
  .cta-band { padding: 36px 26px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    background: var(--bg); border: 1px solid var(--border-mint);
    border-radius: 24px; padding: 16px 24px;
    box-shadow: 0 12px 32px rgba(16, 48, 42, 0.12);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { display: block; padding: 12px 4px; }
  .nav-toggle-box:checked ~ .site-nav { display: block; }
  .nav-toggle-box:checked ~ .nav-toggle::before { transform: translateY(4px) rotate(45deg); }
  .nav-toggle-box:checked ~ .nav-toggle::after { transform: translateY(-4px) rotate(-45deg); }
  .site-header__bar { position: relative; }
}
