/* IPTV Nator (iptvnator.com)
   Warm, friendly desktop-app feel: cream paper, deep teal, amber accent,
   rounded Lexend headings, soft cards with a hard offset shadow. */

:root {
  --bg: #fdf8ef;
  --bg-2: #f6eddc;
  --paper: #ffffff;
  --teal: #0f5257;
  --teal-2: #16696f;
  --teal-ink: #0f2a2c;
  --amber: #f2a541;
  --amber-dark: #d4861d;
  --text: #1f2a2b;
  --text-soft: #4c5859;
  --text-mute: #7a8586;
  --line: #e8dcc6;
  --ok: #1d7a4d;
  --err: #b3261e;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 5px 5px 0 0 rgba(15, 82, 87, 0.14);
  --w: 1160px;
  --w-prose: 750px;
  --ease: cubic-bezier(0.25, 0.75, 0.25, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Source Sans 3", "Segoe UI", -apple-system, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(242, 165, 65, 0.7); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--teal-2); text-decoration-color: var(--amber); }

h1, h2, h3, h4 { font-family: "Lexend", "Source Sans 3", sans-serif; color: var(--teal-ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 3.4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h1 span.hl { background: linear-gradient(transparent 62%, rgba(242, 165, 65, 0.55) 62%); }
p { margin: 0 0 1em; color: var(--text-soft); }
ul, ol { color: var(--text-soft); }
strong { color: var(--text); }
code { background: var(--bg-2); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; overflow-wrap: anywhere; }

.container { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--w-prose); }
.prose h2 { margin-top: 2em; }
.prose h2:first-of-type { margin-top: 0.5em; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: 6px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253, 248, 239, 0.95); backdrop-filter: blur(8px); border-bottom: 2px solid var(--teal-ink); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 70px; }
.brand-mark { display: flex; flex-shrink: 0; text-decoration: none; }
.brand-mark svg { display: block; height: 30px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-color: var(--amber); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 40px; border: 2px solid var(--teal-ink); border-radius: 10px; background: var(--paper); color: var(--teal-ink); font-size: 1.2rem; cursor: pointer; }
.main-nav-cta { display: none; }
@media (max-width: 1020px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 70px); background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 24px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 180ms var(--ease), transform 180ms var(--ease); overflow-y: auto; }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .main-nav-cta { display: grid; gap: 10px; margin-top: 18px; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 0.93rem; padding: 11px 22px; border-radius: 999px; border: 2px solid var(--teal-ink); cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background 140ms var(--ease); }
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); }
.btn-primary { background: var(--amber); color: var(--teal-ink); box-shadow: 3px 3px 0 0 var(--teal-ink); }
.btn-primary:hover { color: var(--teal-ink); box-shadow: 4px 4px 0 0 var(--teal-ink); }
.btn-ghost { background: var(--paper); color: var(--teal-ink); }
.btn-ghost:hover { background: var(--bg-2); color: var(--teal-ink); }
.hero-dark .btn-ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero-dark .btn-ghost-on-dark:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 80px 0; }
section.tight { padding: 50px 0; }
.section-head { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-head.left { margin: 0 0 34px; text-align: left; }
.eyebrow { display: inline-block; font-family: "Lexend", sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--teal); border: 2px solid var(--teal); border-radius: 999px; padding: 3px 12px; margin-bottom: 16px; background: var(--paper); }
.bg-quiet { background: var(--bg-2); }
.bg-dark { background: var(--teal); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: #d8ecec; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 66px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-copy p.lead { font-size: 1.15rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-media svg, .hero-media img { width: 100%; height: auto; border-radius: var(--r-lg); border: 2px solid var(--teal-ink); box-shadow: 8px 8px 0 0 var(--amber); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-media { max-width: 480px; } }
.hero-solo { text-align: center; }
.hero-solo .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hero-solo .hero-copy p.lead { margin: 0 auto; }
.hero-solo .hero-actions { justify-content: center; }
.hero-dark { background: var(--teal); }
.hero-dark h1 { color: #fff; }
.hero-dark .eyebrow { color: var(--amber); border-color: var(--amber); background: transparent; }
.hero-dark .hero-copy p.lead { color: #d8ecec; }
.hero-dark .hero-media svg { border-color: #fff; }
.hero-aurora { display: none; }
.hero-trust-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 42px; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.trust-check { width: 18px; height: 18px; border-radius: 50%; background: var(--amber); position: relative; }
.trust-check::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(45deg); }
.hero-dark .trust-item { color: #fff; }

/* Stats */
.stats-strip { background: var(--teal-ink); padding: 30px 0; }
.stats-strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; text-align: center; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: "Lexend", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 1.8vw + 1rem, 2.3rem); color: var(--amber); }
.stat-label { font-size: 0.88rem; color: #d8ecec; }
@media (max-width: 760px) { .stats-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-1 { grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: 2px solid var(--teal-ink); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 0 rgba(15, 82, 87, 0.2); }
.card h3, .card .card-title { margin-bottom: 8px; }
.card .card-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--teal-ink); line-height: 1.25; }
.card p { margin: 0; font-size: 0.97rem; }
.card-accent { background: #fff6e6; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--amber); color: var(--teal-ink); border: 2px solid var(--teal-ink); display: flex; align-items: center; justify-content: center; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; }

/* Badges */
.badge { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--teal-ink); border: 1px solid var(--line); }
.badge-brand { background: var(--amber); color: var(--teal-ink); border: 2px solid var(--teal-ink); }
.badge-success { background: #e2f3ea; color: var(--ok); border-color: #c4e4d2; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--teal-ink); border-radius: var(--r-lg); padding: 30px 22px 24px; box-shadow: var(--shadow); }
.plan-card.highlight { background: var(--teal); }
.plan-card.highlight h3, .plan-card.highlight .plan-price { color: #fff; }
.plan-card.highlight p, .plan-card.highlight li, .plan-card.highlight .plan-permonth { color: #d8ecec; }
.plan-card.highlight .plan-secondary-link { color: var(--amber); }
.plan-card .tag { position: absolute; top: -13px; right: 18px; }
.plan-card h3 { font-size: 1.15rem; }
.plan-price { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 2.5rem; color: var(--teal-ink); letter-spacing: -0.03em; line-height: 1; margin: 6px 0 10px; }
.plan-permonth { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-soft); margin-bottom: 14px; }
.plan-card ul { list-style: none; padding: 14px 0 0; margin: 0 0 22px; border-top: 2px dashed var(--line); font-size: 0.93rem; }
.plan-card.highlight ul { border-top-color: rgba(255, 255, 255, 0.25); }
.plan-card li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.plan-card li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.plan-card .btn { margin-top: auto; }
.plan-secondary-link { display: block; text-align: center; margin-top: 12px; font-size: 0.86rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 2px solid var(--teal-ink); border-radius: var(--r); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--teal); color: #fff; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 0.88rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; color: var(--text); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 2px solid var(--teal-ink); border-radius: var(--r); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 1.02rem; color: var(--teal-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); border: 2px solid var(--teal-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 20px 16px; }
.faq-answer p:last-child { margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.step { background: var(--paper); border: 2px solid var(--teal-ink); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.step .num { counter-increment: step; width: 42px; height: 42px; border-radius: 50%; background: var(--amber); border: 2px solid var(--teal-ink); color: var(--teal-ink); display: flex; align-items: center; justify-content: center; font-family: "Lexend", sans-serif; font-weight: 700; }
.step .num::before { content: counter(step); }
.step h3 { margin: 0 0 4px; font-size: 1.08rem; }
.step p { margin: 0; font-size: 0.96rem; }

/* Breadcrumbs */
.breadcrumbs { padding-top: 20px; font-size: 0.85rem; color: var(--text-mute); }
.breadcrumbs a { color: var(--text-mute); font-weight: 400; text-decoration: none; }
.breadcrumbs .sep { margin: 0 7px; }
.breadcrumbs + .hero, .breadcrumbs + section { padding-top: 34px; }

/* CTA */
.cta-banner { position: relative; overflow: hidden; background: var(--amber); border: 2px solid var(--teal-ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 0 var(--teal-ink); padding: 52px 40px; text-align: center; }
.cta-banner-glow { display: none; }
.cta-banner h2 { color: var(--teal-ink); max-width: 24ch; margin: 0 auto 10px; }
.cta-banner p { color: var(--teal-ink); max-width: 52ch; margin: 0 auto; }
.cta-banner-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 24px; }
.cta-banner .btn-primary { background: var(--teal); color: #fff; }
.cta-banner-link { color: var(--teal-ink); }

/* Forms */
.form-field { margin-bottom: 16px; }
label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 0.97rem; padding: 11px 13px; border: 2px solid #d9ccb3; border-radius: 10px; background: var(--paper); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(242, 165, 65, 0.35); }
textarea { resize: vertical; min-height: 130px; }
.form-hint { font-size: 0.82rem; color: var(--text-mute); margin: 7px 0 0; }
.form-alert { display: none; padding: 13px 15px; border-radius: 10px; font-size: 0.94rem; margin-bottom: 18px; }
.form-alert.success { background: #e2f3ea; color: var(--ok); border: 1px solid #c4e4d2; }
.form-alert.error { background: #fbe9e7; color: var(--err); border: 1px solid #f2c7c2; }
.form-alert.visible { display: block; }
form.card { padding: 28px; }
.form-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .form-split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Callouts */
.alert { margin: 18px 0; padding: 16px 18px; border-radius: var(--r); background: var(--paper); border: 2px dashed var(--line); font-size: 0.96rem; }
.alert p:last-child { margin: 0; }
.alert-brand { border: 2px solid var(--amber); background: #fff6e6; }
.alert-tip { border: 2px solid #9fd3b6; background: #eef8f2; }
.answer-box { background: var(--paper); border: 2px solid var(--teal); border-radius: var(--r-lg); padding: 20px 24px; margin: 0 0 28px; box-shadow: 6px 6px 0 0 var(--amber); }
.answer-box p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--teal-ink); color: #c9dcdc; padding: 60px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
.footer-about p { color: #c9dcdc; font-size: 0.94rem; max-width: 38ch; margin: 14px 0; }
.footer-trial { color: var(--amber); text-decoration: none; }
.footer-col-title { color: var(--amber); font-family: "Lexend", sans-serif; font-weight: 600; font-size: 0.95rem; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid li a { color: #e3eeee; font-weight: 400; font-size: 0.93rem; text-decoration: none; }
.footer-grid li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.83rem; }
.footer-bottom a { color: var(--amber); }

/* Articles */
h2[id], h3[id], section[id] { scroll-margin-top: 86px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; color: var(--text-mute); margin: 6px 0 24px; }
.toc { background: var(--paper); border: 2px solid var(--teal-ink); border-radius: var(--r); padding: 18px 22px; margin: 0 0 32px; box-shadow: var(--shadow); }
.toc-title { font-family: "Lexend", sans-serif; font-weight: 700; color: var(--teal-ink); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 26px; }
.toc li { margin-bottom: 7px; font-size: 0.95rem; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); border: 2px solid var(--teal-ink); box-sizing: border-box; }
.key-takeaways { list-style: none; padding: 0; margin: 0; }
.key-takeaways li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.key-takeaways li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--amber-dark); font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Marquee */
.marquee { overflow: hidden; padding: 16px 0; background: var(--amber); border-top: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); }
.marquee-track { display: flex; width: max-content; gap: 30px; animation: marquee-scroll 42s linear infinite; }
.marquee-item { color: var(--teal-ink); font-family: "Lexend", sans-serif; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.marquee-item::after { content: "\2726"; margin-left: 30px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Utilities */
.text-center { text-align: center; }
.small { font-size: 0.88rem; }
.muted { color: var(--text-mute); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid > *, .form-split > *, .split > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
h1, h2, h3, p, li, td, th { overflow-wrap: break-word; }

@media (max-width: 640px) {
  section { padding: 54px 0; }
  .hero { padding: 44px 0 40px; }
  h1 { font-size: clamp(1.95rem, 8.5vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 6.5vw, 1.8rem); }
  .container { padding: 0 16px; }
  .card, .plan-card, form.card { padding: 20px; }
  .hero-actions, .cta-banner-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-banner-actions .btn { width: 100%; }
  .cta-banner { padding: 40px 20px; box-shadow: 5px 5px 0 0 var(--teal-ink); }
  .hero-media svg { box-shadow: 5px 5px 0 0 var(--amber); }
  .breadcrumbs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
