/* ============================================================
   Companhia IPTV — Design System
   Paleta: quase-preto neutro quente + azul vívido + areia dourada
   (nova, distinta dos 12 projetos anteriores: vermelho/preto,
   amarelo/navy/vermelho, violeta/dourado, verde/laranja,
   navy/ciano, grafite/magenta, verde-petróleo/âmbar,
   índigo/verde-limão, terracota/dourado, roxo/rosa-neon/ciano,
   navy/laranja/amarelo — nenhum projeto anterior usou AZUL como
   cor de destaque/CTA principal).
   Layout: navegação mobile como TRILHO VERTICAL DE ÍCONES sempre
   visível (expande em largura para revelar rótulos — não é
   dropdown, tela cheia, gaveta, bottom-sheet, sanfona, tab-bar,
   mega-menu, fab-leque, dock horizontal ou busca); hero com um
   LEQUE DE CARTÕES estático (sem rotação de palavra, sem ticker,
   sem marquee); cards com ABA INFERIOR (ícone projetado para fora
   da borda de BAIXO do card, ao invés do topo); compatibilidade em
   GRADE DE CARTÕES QUE VIRAM (flip 3D ao clicar, revelando o texto
   no verso); planos em BARRAS DE COMPARAÇÃO horizontais
   proporcionais ao valor médio mensal, com clique para expandir
   detalhes; FAQ em ACORDEÃO HORIZONTAL de colunas por categoria
   (rótulo vertical quando recolhida); rodapé de UMA COLUNA SÓ, sem
   grade, com todos os links em uma única linha central.
   ============================================================ */

:root {
  --color-ink: #121012;
  --color-brand: #201C1F;
  --color-brand-2: #2E282C;
  --color-brand-3: #423A40;
  --color-cta: #3D6BFF;
  --color-cta-hover: #5C82FF;
  --color-accent: #F2C879;
  --color-dark-2: #1B171A;
  --color-dark-3: #262024;
  --color-text-light: #FFFFFF;
  --color-text-muted: #C7BFC2;
  --color-page-bg: #FAF8F6;
  --color-card-bg: #FFFFFF;
  --color-body-on-light: #55494F;
  --color-border-light: #EAE3E6;
  --color-border-dark: rgba(255,255,255,0.13);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 14px 34px rgba(18,16,18,0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--color-page-bg); color: var(--color-body-on-light); line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.24; font-weight: 800; margin: 0 0 12px; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Seções ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--color-brand); color: var(--color-text-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head-center { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #274EDB; margin-bottom: 12px; }
.section-dark .eyebrow { color: var(--color-accent); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: all 0.18s ease; white-space: nowrap; }
.btn-primary { background: var(--color-cta); color: #fff; }
.btn-primary:hover { background: var(--color-cta-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--color-border-light); color: var(--color-ink); }
.btn-outline:hover { border-color: var(--color-cta); color: var(--color-cta); }
.section-dark .btn-outline, .hero .btn-outline, .cta-panel .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.section-dark .btn-outline:hover, .hero .btn-outline:hover, .cta-panel .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

/* ---------- Header (desktop) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(18, 16, 18, 0.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; color: #fff; }
.logo .brand-tv { color: var(--color-cta); }
.nav-desktop { display: flex; align-items: center; gap: 22px; }
.nav-desktop a { font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,0.72); padding: 4px 0; transition: color 0.15s ease; }
.nav-desktop a:hover { color: #fff; }
.nav-desktop a.active { color: var(--color-cta); }
.header-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) { .nav-desktop { display: none; } }

/* ---------- Navegação mobile: trilho vertical de ícones (sempre visível) ---------- */
.side-rail {
  display: none; position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 110;
  background: rgba(18,16,18,0.97); border-radius: 16px 0 0 16px; padding: 10px 0;
  box-shadow: -6px 0 24px rgba(0,0,0,0.2);
}
@media (max-width: 900px) { .side-rail { display: block; } body { padding-right: 0; } }
.side-rail.expanded { padding-right: 4px; }
.rail-toggle {
  width: 44px; height: 44px; border: none; background: transparent; color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.rail-items { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px 8px; }
.rail-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; color: rgba(255,255,255,0.75);
  overflow: hidden; white-space: nowrap;
}
.rail-item.active { background: rgba(61,107,255,0.18); color: var(--color-cta); }
.rail-item .ri-icon { width: 24px; text-align: center; flex-shrink: 0; font-size: 16px; }
.rail-item .ri-label { max-width: 0; opacity: 0; transition: max-width 0.25s ease, opacity 0.2s ease; font-size: 13.5px; font-weight: 700; }
.side-rail.expanded .rail-item .ri-label { max-width: 160px; opacity: 1; }
.rail-cta { display: block; text-align: center; padding: 10px 8px; margin: 4px 8px 6px; border-radius: 10px; background: var(--color-cta); color: #fff; font-size: 12px; font-weight: 800; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0 0; font-size: 13px; color: var(--color-body-on-light); }
.breadcrumbs a { color: #274EDB; font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumbs .current { color: var(--color-ink); font-weight: 700; }

/* ---------- Hero: leque de cartões estático ---------- */
.hero { position: relative; overflow: hidden; padding: 78px 0; background: var(--color-ink); color: rgba(255,255,255,0.82); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border: 1px solid var(--color-border-dark); font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; color: #fff; }
.badge.badge-brand { background: var(--color-cta); border-color: var(--color-cta); color: #fff; }
.hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.hero h1 span { color: var(--color-cta); }
.hero-lead { font-size: 17px; color: rgba(255,255,255,0.78); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-fan { position: relative; height: 300px; }
.hero-fan-card {
  position: absolute; top: 10px; left: 50%; width: 220px; height: 260px;
  border-radius: 20px; padding: 22px; box-shadow: 0 30px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-fan-card .hf-icon { font-size: 30px; margin-bottom: 10px; }
.hero-fan-card .hf-label { font-weight: 800; color: #fff; font-size: 15px; }
.hero-fan-card.f1 { background: linear-gradient(160deg, var(--color-brand-3), var(--color-brand-2)); transform: translateX(-130%) rotate(-10deg); z-index: 1; }
.hero-fan-card.f2 { background: linear-gradient(160deg, var(--color-cta), #274EDB); transform: translateX(-50%) rotate(0deg); z-index: 2; }
.hero-fan-card.f3 { background: linear-gradient(160deg, var(--color-brand-3), var(--color-brand-2)); transform: translateX(30%) rotate(10deg); z-index: 1; }
@media (max-width: 980px) { .hero-fan { max-width: 320px; margin: 40px auto 0; } }
@media (max-width: 500px) { .hero-fan-card { width: 170px; height: 210px; padding: 16px; } .hero-fan-card.f1 { transform: translateX(-115%) rotate(-10deg); } .hero-fan-card.f3 { transform: translateX(15%) rotate(10deg); } }

/* ---------- Cards com aba inferior ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card-tab-bottom { position: relative; background: var(--color-card-bg); border-radius: 18px; padding: 26px 22px 40px; text-align: center; box-shadow: var(--shadow-soft); margin-bottom: 26px; }
.section-dark .card-tab-bottom { background: var(--color-dark-3); box-shadow: none; }
.card-tab-bottom h3 { font-size: 16.5px; margin: 0 0 8px; }
.card-tab-bottom p { margin-bottom: 0; font-size: 14px; }
.card-tab-bottom-icon {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 40px; border-radius: 12px;
  background: linear-gradient(160deg, var(--color-cta), #274EDB);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  box-shadow: 0 10px 18px rgba(61,107,255,0.35);
}

/* ---------- Compatibilidade: grade de cartões que viram (flip 3D) ---------- */
.compat-flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .compat-flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .compat-flip-grid { grid-template-columns: 1fr; } }
.flip-tile { perspective: 1200px; height: 150px; cursor: pointer; }
.flip-tile-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-tile.flipped .flip-tile-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; text-align: center; }
.flip-front { background: #fff; box-shadow: var(--shadow-soft); }
.section-dark .flip-front { background: var(--color-dark-3); box-shadow: none; }
.flip-front .ff-icon { font-size: 26px; margin-bottom: 8px; }
.flip-front strong { font-size: 14px; color: var(--color-ink); }
.section-dark .flip-front strong { color: #fff; }
.flip-front .ff-hint { font-size: 11px; color: var(--color-body-on-light); margin-top: 6px; }
.section-dark .flip-front .ff-hint { color: var(--color-text-muted); }
.flip-back { background: linear-gradient(160deg, var(--color-cta), #274EDB); color: #fff; transform: rotateY(180deg); font-size: 12.5px; }
.compat-app-tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(61,107,255,0.1); color: #274EDB; margin: 3px 6px 3px 0; }
.section-dark .compat-app-tag { color: var(--color-accent); }

/* ---------- Planos: barras de comparação ---------- */
.plan-bars { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.plan-bar-row { background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; cursor: pointer; }
.section-dark .plan-bar-row { background: var(--color-dark-3); box-shadow: none; }
.plan-bar-track { position: relative; padding: 18px 22px; }
.plan-bar-fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(61,107,255,0.14), rgba(61,107,255,0.03)); border-radius: 16px 0 0 16px; }
.plan-bar-row.featured .plan-bar-fill { background: linear-gradient(90deg, rgba(242,200,121,0.28), rgba(242,200,121,0.05)); }
.plan-bar-content { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.plan-bar-name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; color: var(--color-ink); }
.section-dark .plan-bar-name { color: #fff; }
.plan-bar-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; background: rgba(61,107,255,0.12); color: #274EDB; padding: 3px 9px; border-radius: 999px; }
.plan-bar-row.featured .plan-bar-tag { background: var(--color-accent); color: var(--color-ink); }
.plan-bar-price { font-weight: 900; font-size: 18px; color: var(--color-ink); }
.section-dark .plan-bar-price { color: #fff; }
.plan-bar-price small { font-weight: 600; font-size: 11.5px; color: var(--color-body-on-light); }
.section-dark .plan-bar-price small { color: var(--color-text-muted); }
.plan-bar-caret { font-size: 13px; color: var(--color-body-on-light); transition: transform 0.2s ease; }
.section-dark .plan-bar-caret { color: var(--color-text-muted); }
.plan-bar-row.open .plan-bar-caret { transform: rotate(180deg); }
.plan-bar-details { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.plan-bar-row.open .plan-bar-details { max-height: 300px; }
.plan-bar-details-inner { padding: 4px 22px 22px; position: relative; }
.plan-bar-details ul { margin-bottom: 14px; }
.plan-bar-details li { padding: 4px 0 4px 22px; position: relative; font-size: 13.5px; }
.plan-bar-details li::before { content: "✓"; position: absolute; left: 0; color: var(--color-cta); font-weight: 900; }

/* ---------- CTA panel ---------- */
.cta-panel { background: linear-gradient(120deg, var(--color-brand-2), var(--color-ink)); border-radius: var(--radius-lg); padding: 52px 44px; text-align: center; color: #fff; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255,255,255,0.78); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.blog-thumb { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 40px; background: linear-gradient(135deg, var(--color-ink), var(--color-brand-3)); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-meta { font-size: 12px; font-weight: 800; color: #274EDB; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card-body h3 { font-size: 17px; margin-bottom: 0; }
.blog-card-body p { font-size: 14px; margin-bottom: 0; flex: 1; }
.blog-read { font-size: 13.5px; font-weight: 800; color: #274EDB; }

/* ---------- Artigo ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-hero { margin-bottom: 30px; }
.article-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.article-body h2 { font-size: 22px; margin-top: 34px; }
.article-body p, .article-body li { font-size: 16px; color: var(--color-body-on-light); }
.article-body ul { margin: 14px 0; padding-left: 4px; }
.article-body li { display: flex; gap: 10px; padding: 6px 0; }
.article-body li::before { content: "▸"; color: #274EDB; font-weight: 900; }
.article-share { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- FAQ: acordeão horizontal de colunas ---------- */
.faq-h-accordion { display: flex; gap: 10px; max-width: 980px; margin: 0 auto; min-height: 420px; }
.faq-h-col {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden;
  flex: 0 0 64px; transition: flex-basis 0.35s ease; cursor: pointer; position: relative;
}
.faq-h-col.open { flex: 1 1 auto; cursor: default; }
.faq-h-col-label {
  writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; padding: 20px 0; font-weight: 800;
  font-size: 13px; color: var(--color-ink); height: 100%; display: flex; align-items: center; justify-content: center; letter-spacing: 0.03em;
}
.faq-h-col.open .faq-h-col-label { display: none; }
.faq-h-col-content { display: none; padding: 22px 22px 10px; overflow-y: auto; max-height: 480px; }
.faq-h-col.open .faq-h-col-content { display: block; }
.faq-h-col-content h3 { font-size: 16px; margin-bottom: 16px; }
.faq-h-item { border-bottom: 1px solid var(--color-border-light); padding: 12px 0; }
.faq-h-item:last-child { border-bottom: none; }
.faq-h-q { font-weight: 700; font-size: 14px; color: var(--color-ink); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.faq-h-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; font-size: 13.5px; }
.faq-h-item.open .faq-h-a { max-height: 300px; padding-top: 8px; }
@media (max-width: 760px) { .faq-h-accordion { flex-direction: column; min-height: 0; } .faq-h-col { flex-basis: 54px !important; } .faq-h-col.open { flex-basis: auto !important; } .faq-h-col-label { writing-mode: horizontal-tb; transform: none; padding: 16px 20px; justify-content: flex-start; } }

/* ---------- Rodapé: uma coluna só, sem grade ---------- */
.site-footer { position: relative; background: var(--color-ink); color: var(--color-text-muted); padding: 64px 0 0; overflow: hidden; text-align: center; }
.footer-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(61,107,255,0.16), transparent 65%); pointer-events: none; }
.footer-single { position: relative; max-width: 640px; margin: 0 auto; }
.footer-single .logo { justify-content: center; color: #fff; margin-bottom: 16px; }
.footer-single p { font-size: 14.5px; margin-bottom: 26px; }
.footer-links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-bottom: 30px; font-size: 13.5px; }
.footer-links-row a:hover { color: var(--color-cta); }
.footer-links-row .dot { opacity: 0.35; }
.footer-bottom { position: relative; border-top: 1px solid var(--color-border-dark); margin-top: 10px; padding: 22px 0; font-size: 13px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 12px; max-width: 780px; margin-left: auto; margin-right: auto; }

.whatsapp-fab { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: var(--color-accent); color: var(--color-ink); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 12px 26px rgba(242,200,121,0.4); }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
@media (max-width: 760px) { .section { padding: 60px 0; } }
