/* ============================================================
   Compa IPTV — Design System
   Paleta: azul-marinho quase-preto + laranja vívido + amarelo
   (nova, distinta dos 11 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).
   Layout: navegação mobile como PAINEL DE BUSCA (tela cheia com
   campo de busca que filtra os itens do menu ao digitar — nenhum
   projeto anterior usou busca na navegação); hero em DUAS COLUNAS
   com PALAVRA GIRATÓRIA animada no título + moldura de TV
   decorativa em CSS; cards com SELO CIRCULAR SALTADO (badge que
   ultrapassa a borda superior do card); compatibilidade em LISTA
   COM CHAVE LIGA/DESLIGA decorativa por dispositivo; planos em
   LINHA DO TEMPO em ZIGUEZAGUE vertical; FAQ em GRADE DE CARTÕES
   que abrem um MODAL com a resposta completa; rodapé com colunas
   que viram ACORDEÃO no mobile.
   ============================================================ */

:root {
  --color-ink: #071127;
  --color-brand: #0F2049;
  --color-brand-2: #16305F;
  --color-brand-3: #1F4785;
  --color-cta: #FF7A1A;
  --color-cta-hover: #FF9548;
  --color-accent: #FFD23F;
  --color-dark-2: #0B1B3A;
  --color-dark-3: #112548;
  --color-text-light: #FFFFFF;
  --color-text-muted: #B9C6E0;
  --color-page-bg: #F7F9FC;
  --color-card-bg: #FFFFFF;
  --color-body-on-light: #48536B;
  --color-border-light: #E4E9F3;
  --color-border-dark: rgba(255,255,255,0.13);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 14px 34px rgba(7,17,39,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: #C4560A; 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(7, 17, 39, 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; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.08); border: none; color: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 900px) { .nav-desktop { display: none; } .menu-toggle { display: block; } }

/* ---------- Navegação mobile: painel de busca em tela cheia ---------- */
.nav-command-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(7,17,39,0.98); padding: 26px 22px;
}
.nav-command-overlay.open { display: block; }
.nav-command-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.nav-command-search { flex: 1; position: relative; }
.nav-command-search input {
  width: 100%; padding: 15px 20px 15px 46px; border-radius: 14px; border: none;
  background: rgba(255,255,255,0.08); color: #fff; font-size: 15px; font-family: var(--font);
}
.nav-command-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-command-search .nc-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); }
.nav-command-close { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.08); border: none; color: #fff; font-size: 20px; cursor: pointer; flex-shrink: 0; }
.nav-command-list { display: flex; flex-direction: column; gap: 8px; }
.nav-command-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.05); color: #fff; font-weight: 700; font-size: 15.5px;
}
.nav-command-item .nci-icon { font-size: 18px; }
.nav-command-item.active { background: var(--color-cta); }
.nav-command-item.nc-hidden { display: none; }
.nav-command-cta { margin-top: 18px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0 0; font-size: 13px; color: var(--color-body-on-light); }
.breadcrumbs a { color: #C4560A; 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: duas colunas + palavra giratória + moldura TV ---------- */
.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.1fr 0.9fr; gap: 40px; 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 .rot-word { color: var(--color-accent); display: inline-block; min-width: 1px; }
.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-tv { position: relative; }
.hero-tv-frame {
  background: linear-gradient(160deg, var(--color-brand-3), var(--color-brand-2));
  border-radius: 22px; padding: 18px; border: 3px solid rgba(255,255,255,0.14);
  box-shadow: 0 40px 70px rgba(0,0,0,0.35);
}
.hero-tv-screen {
  background: var(--color-ink); border-radius: 12px; aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.hero-tv-screen .htv-play { width: 70px; height: 70px; border-radius: 50%; background: var(--color-cta); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; }
.hero-tv-stand { width: 100px; height: 14px; background: rgba(255,255,255,0.14); margin: 14px auto 0; border-radius: 6px; }
.hero-tv-base { width: 160px; height: 8px; background: rgba(255,255,255,0.09); margin: 6px auto 0; border-radius: 6px; }
.hero-tv-badges { display: flex; justify-content: space-between; margin-top: 22px; gap: 10px; }
.hero-tv-badge { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--color-border-dark); border-radius: 12px; padding: 12px; text-align: center; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); }
@media (max-width: 980px) { .hero-tv { max-width: 380px; margin: 0 auto; } }

/* ---------- Cards: selo circular saltado (peek) ---------- */
.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-peek { position: relative; background: var(--color-card-bg); border-radius: 18px; padding: 38px 22px 26px; text-align: center; box-shadow: var(--shadow-soft); margin-top: 24px; }
.card-peek-badge {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(160deg, var(--color-cta), var(--color-accent));
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
  box-shadow: 0 10px 20px rgba(255,122,26,0.35);
}
.card-peek h3 { font-size: 16.5px; margin: 0 0 8px; }
.card-peek p { margin-bottom: 0; font-size: 14px; }
.section-dark .card-peek { background: var(--color-dark-3); box-shadow: none; }

/* ---------- Compatibilidade: lista com chave liga/desliga decorativa ---------- */
.compat-switch-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.compat-switch-row {
  display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: var(--shadow-soft);
}
.section-dark .compat-switch-row { background: var(--color-dark-3); box-shadow: none; }
.compat-switch-row .cs-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--color-page-bg); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.section-dark .compat-switch-row .cs-icon { background: var(--color-dark-2); }
.compat-switch-row .cs-text { flex: 1; }
.compat-switch-row .cs-text strong { display: block; font-size: 14.5px; color: var(--color-ink); margin-bottom: 2px; }
.section-dark .compat-switch-row .cs-text strong { color: #fff; }
.compat-switch-row .cs-text span { font-size: 13px; color: var(--color-body-on-light); }
.section-dark .compat-switch-row .cs-text span { color: var(--color-text-muted); }
.cs-toggle { width: 46px; height: 26px; border-radius: 999px; background: var(--color-cta); position: relative; flex-shrink: 0; }
.cs-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.compat-app-tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255,122,26,0.1); color: #C4560A; margin: 3px 6px 3px 0; }
.section-dark .compat-app-tag { color: var(--color-accent); }

/* ---------- Planos: linha do tempo em ziguezague ---------- */
.plans-timeline { position: relative; max-width: 820px; margin: 0 auto; }
.plans-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--color-border-light); transform: translateX(-1px); }
.section-dark .plans-timeline::before { background: var(--color-border-dark); }
.plan-node { position: relative; display: flex; margin-bottom: 40px; }
.plan-node:last-child { margin-bottom: 0; }
.plan-node-dot {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--color-cta); border: 4px solid var(--color-page-bg); z-index: 2;
}
.section-dark .plan-node-dot { border-color: var(--color-brand); }
.plan-node.featured .plan-node-dot { background: var(--color-accent); width: 22px; height: 22px; }
.plan-node-card {
  width: calc(50% - 34px); background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-soft);
}
.section-dark .plan-node-card { background: var(--color-dark-3); box-shadow: none; }
.plan-node:nth-child(odd) .plan-node-card { margin-right: auto; text-align: right; }
.plan-node:nth-child(even) .plan-node-card { margin-left: auto; }
.plan-node.featured .plan-node-card { border: 2px solid var(--color-accent); }
.plan-node-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #C4560A; background: rgba(255,122,26,0.1); padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.plan-node-card h3 { font-size: 17px; margin-bottom: 6px; }
.plan-node-price .value { font-size: 26px; font-weight: 900; color: var(--color-ink); }
.section-dark .plan-node-price .value { color: #fff; }
.plan-node-price .currency { font-size: 14px; font-weight: 800; vertical-align: super; }
.plan-node-price .period { display: block; font-size: 12px; color: var(--color-body-on-light); margin-top: 2px; }
.section-dark .plan-node-price .period { color: var(--color-text-muted); }
.plan-node-features { margin: 14px 0; font-size: 13.5px; }
.plan-node:nth-child(odd) .plan-node-features li { padding-right: 22px; }
.plan-node:nth-child(even) .plan-node-features li { padding-left: 22px; }
.plan-node-features li { padding: 4px 0; position: relative; }
.plan-node:nth-child(odd) .plan-node-features li::before { content: "✓"; position: absolute; right: 0; color: var(--color-cta); font-weight: 900; }
.plan-node:nth-child(even) .plan-node-features li::before { content: "✓"; position: absolute; left: 0; color: var(--color-cta); font-weight: 900; }
@media (max-width: 760px) {
  .plans-timeline::before { left: 20px; }
  .plan-node-dot { left: 20px; }
  .plan-node-card, .plan-node:nth-child(odd) .plan-node-card, .plan-node:nth-child(even) .plan-node-card { width: 100%; margin-left: 48px !important; margin-right: 0 !important; text-align: left !important; }
  .plan-node:nth-child(odd) .plan-node-features li, .plan-node:nth-child(even) .plan-node-features li { padding-left: 22px; padding-right: 0; }
  .plan-node:nth-child(odd) .plan-node-features li::before, .plan-node:nth-child(even) .plan-node-features li::before { left: 0; right: auto; }
}

/* ---------- 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: #C4560A; 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: #C4560A; }

/* ---------- 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: #C4560A; font-weight: 900; }
.article-share { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- FAQ: grade de cartões + modal ---------- */
.faq-tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
@media (max-width: 700px) { .faq-tile-grid { grid-template-columns: 1fr; } }
.faq-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--color-border-light); border-radius: 14px; padding: 18px 20px; cursor: pointer;
}
.faq-tile:hover { border-color: var(--color-cta); }
.faq-tile-text { font-weight: 700; font-size: 14.5px; color: var(--color-ink); }
.faq-tile-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--color-page-bg); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--color-cta); }

.faq-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 300; background: rgba(7,17,39,0.6);
  align-items: center; justify-content: center; padding: 24px;
}
.faq-modal-overlay.open { display: flex; }
.faq-modal { background: #fff; border-radius: 20px; max-width: 560px; width: 100%; padding: 34px 32px; position: relative; max-height: 80vh; overflow-y: auto; }
.faq-modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--color-page-bg); font-size: 17px; cursor: pointer; }
.faq-modal-item { display: none; }
.faq-modal-item.active { display: block; }
.faq-modal-item h3 { font-size: 19px; margin-bottom: 14px; padding-right: 30px; }
.faq-modal-item p { color: var(--color-body-on-light); margin-bottom: 0; }

/* ---------- Rodapé: colunas viram acordeão no mobile ---------- */
.site-footer { background: var(--color-ink); color: var(--color-text-muted); padding: 60px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.footer-brand p { font-size: 14.5px; max-width: 340px; }
.footer-col-header { display: flex; align-items: center; justify-content: space-between; cursor: default; }
.footer-col-header h4 { color: #fff; font-size: 14.5px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col-caret { display: none; color: #fff; font-size: 16px; transition: transform 0.2s ease; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--color-cta); }
.footer-bottom { border-top: 1px solid var(--color-border-dark); margin-top: 10px; padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 12px; max-width: 900px; }
@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { padding-bottom: 26px; }
  .footer-col { border-top: 1px solid var(--color-border-dark); padding: 16px 0; }
  .footer-col-header { cursor: pointer; }
  .footer-col-header h4 { margin-bottom: 0; }
  .footer-col-caret { display: block; }
  .footer-col ul { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .footer-col ul li { padding-top: 12px; }
  .footer-col.open ul { max-height: 400px; }
  .footer-col.open .footer-col-caret { transform: rotate(180deg); }
}

.whatsapp-fab { position: fixed; right: 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(255,210,63,0.4); }

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