/* ==========================================================================
   Povos e Línguas — IPTV | Folha de estilo principal
   Mobile-first, leve e sem dependências externas (Core Web Vitals)
   ========================================================================== */

:root {
  --bg: #0b1020;
  --bg-soft: #121a33;
  --bg-card: #161f3d;
  --line: #243056;
  --text: #e8ecf8;
  --muted: #aeb8d6;
  --brand: #6c5ce7;
  --brand-2: #00d1b2;
  --accent: #ffb020;
  --danger: #ff4d6d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 80% -10%, #1c2750 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 10%, #16224a 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1.1em; color: var(--text); }

.muted { color: var(--muted); }
.center { text-align: center; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(11, 16, 32, .82);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, #8a7bff 100%);
  color: #fff; font-weight: 700; padding: 13px 24px; border-radius: 999px;
  border: 0; cursor: pointer; font-size: 1rem; line-height: 1;
  box-shadow: 0 12px 28px rgba(108, 92, 231, .45); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 16px 36px rgba(108, 92, 231, .6); }
.btn-accent { background: linear-gradient(135deg, var(--brand-2) 0%, #2ee6c8 100%); color: #062420; box-shadow: 0 12px 28px rgba(0, 209, 178, .4); }
.btn-accent:hover { box-shadow: 0 16px 36px rgba(0, 209, 178, .55); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.btn-ghost:hover { border-color: var(--brand-2); box-shadow: none; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 209, 178, .12); color: var(--brand-2);
  border: 1px solid rgba(0, 209, 178, .3); padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 18px;
}
.hero h1 span { background: linear-gradient(120deg, var(--brand-2), #7afcff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-trust strong { color: var(--text); display: block; font-size: 1.25rem; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* TL;DR box */
.tldr {
  background: var(--bg-card); border: 1px solid var(--line); border-left: 4px solid var(--brand-2);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 26px 0;
}
.tldr strong { color: var(--brand-2); }

/* ---------- Sections / Cards ---------- */
.section { padding: 44px 0; }
.section-head { max-width: 64ch; margin-bottom: 26px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card .ico { width: 52px; height: 52px; margin-bottom: 14px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Feature with image */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2), var(--shadow); position: relative; }
.plan.featured::before {
  content: "Mais escolhido"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-2); color: #062420; font-weight: 800; font-size: .74rem; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.2rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 6px 0; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; color: var(--muted); border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 900; }

/* ---------- Steps (HowTo) ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 24px 22px 70px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 20px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #8a7bff); color: #fff; font-weight: 800;
}
.step h3 { margin: 0 0 .25em; }
.step p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; margin: 0; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #1a2347, #2a1f57);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 34px; text-align: center;
}
.cta-banner h2 { margin-top: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-2); }

/* ---------- Article content ---------- */
.prose { max-width: 72ch; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--text); }
.prose td { color: var(--muted); }
.byline { color: var(--muted); font-size: .9rem; margin-bottom: 18px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 44px 0 30px; background: rgba(0,0,0,.2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Layout de artigo (silo) ---------- */
.article { padding: 30px 0 10px; }
.article-grid { display: grid; grid-template-columns: 1fr 280px; gap: 44px; align-items: start; }
.toc { position: sticky; top: 90px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 9px; }
.toc a { color: var(--muted); font-size: .92rem; }
.toc a:hover { color: var(--brand-2); }

/* Caixa de fatos rápidos / key facts (front-load + featured snippet) */
.keyfacts { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 22px; margin: 22px 0; }
.keyfacts dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0; }
.keyfacts dt { color: var(--brand-2); font-weight: 700; }
.keyfacts dd { margin: 0; color: var(--muted); }

/* Caixa de autor (E-E-A-T) */
.author-box { display: flex; gap: 16px; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 36px 0; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; }
.author-box h4 { margin: 0 0 4px; font-size: 1rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Links relacionados (internal linking) */
.related { background: linear-gradient(135deg, #16224a, #1b2550); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 30px 0; }
.related h3 { margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.related li { padding-left: 20px; position: relative; }
.related li::before { content: "→"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }

/* Disclaimer legal */
.disclaimer { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: rgba(255,176,32,.06); border-radius: var(--radius-sm); padding: 16px 20px; margin: 28px 0; font-size: .9rem; color: var(--muted); }
.disclaimer strong { color: var(--accent); }

/* Tabela de definições (glossário) */
.glossary dt { font-weight: 800; color: var(--text); margin-top: 18px; font-size: 1.05rem; }
.glossary dd { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .related ul { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp flutuante (rodízio round-robin) ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center;
  background: #25d366; color: #fff; border-radius: 999px;
  padding: 15px; box-shadow: 0 12px 32px rgba(37, 211, 102, .45);
  transition: transform .15s ease; overflow: hidden;
}
.wa-float:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.wa-float svg { width: 30px; height: 30px; flex: 0 0 auto; display: block; }
.wa-float-label {
  max-width: 0; opacity: 0; margin-left: 0; white-space: nowrap;
  font-weight: 800; font-size: .95rem; letter-spacing: -.01em;
  transition: max-width .28s ease, opacity .2s ease, margin .28s ease;
}
.wa-float:hover .wa-float-label { max-width: 240px; opacity: 1; margin-left: 10px; margin-right: 6px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: waPulse 2.2s infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 540px) { .wa-float { right: 14px; bottom: 14px; padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-grid, .feature, .grid-3, .grid-4, .pricing, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-media { order: -1; }
  .feature.reverse { direction: ltr; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero { padding: 34px 0 10px; }
}
