/* =====================================================
   PLAY TVI — Seções novas da home (agosto/2026)
   Complementa play/css/style.css (usa os mesmos tokens).
   Não altera nenhuma regra existente.
   ===================================================== */

/* ---------- Utilitários locais ---------- */
.sec2026 { padding: 6rem 0; position: relative; }
.sec2026--alt { background: var(--bg-darker); }
.sec2026 .section-header { margin-bottom: 3.5rem; }

/* =====================================================
   1. COMO FUNCIONA — 3 passos
   ===================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
}

/* linha conectora entre os passos (desktop) */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 3.25rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(147,51,234,.55), rgba(99,102,241,.55), transparent);
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(147,51,234,.45);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 8px rgba(147,51,234,.12);
  margin-bottom: 1.5rem;
}

.step-card h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.step-card p { font-size: .975rem; margin-bottom: 1.25rem; }

.step-meta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  padding: .35rem .75rem;
  border-radius: 999px;
}
.step-meta svg { width: 14px; height: 14px; }

/* =====================================================
   2. PARA QUEM É — segmentos
   ===================================================== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.25rem;
}

.segment-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
}
.segment-card::after {
  content: '';
  position: absolute;
  inset: auto auto -60% -20%;
  width: 160px; height: 160px;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}
.segment-card:hover {
  transform: translateY(-5px);
  border-color: rgba(147,51,234,.45);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}
.segment-card:hover::after { opacity: 1; }

.segment-icon {
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(147,51,234,.35));
}
.segment-card h4 {
  font-size: 1.08rem;
  color: var(--text-primary);
  margin: 0;
}
.segment-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.segment-link {
  margin-top: auto;
  padding-top: .85rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.segment-card:hover .segment-link { gap: .6rem; }
.segment-link svg { width: 14px; height: 14px; transition: transform var(--transition-fast); }

/* card sem link (segmento sem página dedicada) */
.segment-card.is-static { cursor: default; }
.segment-card.is-static:hover { transform: none; }

/* =====================================================
   3. TABELA COMPARATIVA
   ===================================================== */
.compare-wrap {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-md);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .95rem;
}

.compare-table thead th {
  padding: 1.4rem 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,.09);
  white-space: nowrap;
}
.compare-table thead th:first-child {
  text-align: left;
  color: var(--text-primary);
  min-width: 260px;
}

.compare-table thead th.col-playtvi {
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(147,51,234,.20) 0%, rgba(147,51,234,.06) 100%);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  position: relative;
}
.compare-table td.col-playtvi {
  background: rgba(147,51,234,.055);
}

.compare-badge {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-top: .3rem;
}

.compare-table tbody td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text-secondary);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
}
.compare-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare-table tbody tr:hover td.col-playtvi { background: rgba(147,51,234,.09); }

.ci { display: inline-flex; width: 22px; height: 22px; }
.ci svg { width: 100%; height: 100%; }
.ci-yes { color: var(--success); }
.ci-no  { color: #52525b; }
.ci-partial { color: var(--accent); }

.compare-note {
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

/* dica de rolagem no mobile */
.compare-scroll-hint {
  display: none;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: .75rem;
}

/* =====================================================
   4. CATÁLOGO DE APPS / CONTEÚDOS
   ===================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.app-cat {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}
.app-cat:hover {
  border-color: rgba(147,51,234,.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.app-cat-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.app-cat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 1.3rem;
  background: rgba(147,51,234,.13);
  border: 1px solid rgba(147,51,234,.22);
}
.app-cat-head h4 { font-size: 1.1rem; margin: 0; }
.app-cat-count {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(147,51,234,.12);
  padding: .25rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.app-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.app-tag {
  font-size: .8rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  padding: .3rem .65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.app-tag.more {
  color: var(--primary-light);
  border-color: rgba(147,51,234,.3);
  background: rgba(147,51,234,.1);
}

.apps-footer {
  margin-top: 2.5rem;
  text-align: center;
}
.apps-footer p { margin-bottom: 1.25rem; }

/* =====================================================
   5. FAQ
   ===================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-normal), background var(--transition-normal);
}
.faq-item.open {
  border-color: rgba(147,51,234,.4);
  background: var(--bg-card-hover);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}
.faq-q:hover { color: var(--primary-light); }

.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(147,51,234,.15);
  color: var(--primary-light);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform var(--transition-normal), background var(--transition-normal);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}
.faq-a-inner {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-a-inner a { color: var(--primary-light); }

/* =====================================================
   6. FAIXA DE DIFERENCIAIS (após o hero)
   ===================================================== */
.trustbar {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.015);
  padding: 2.25rem 0;
}
.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
}
.trustbar-item {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.trustbar-item svg {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--primary-light);
}
.trustbar-item strong {
  display: block;
  font-size: .96rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.trustbar-item span {
  font-size: .82rem;
  color: var(--text-muted);
}

/* =====================================================
   Menu — folga para caber mais itens sem quebrar linha
   ===================================================== */
@media (min-width: 992px) {
  .nav-menu { gap: 1.9rem; }
  .nav-menu > li > a { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1350px) {
  .nav-menu { gap: 1.25rem; }
  .nav-menu > li > a { font-size: .92rem; }
  .nav-buttons { gap: .6rem; }
  .btn-app-download-header { padding: .45rem .7rem; }
}
@media (min-width: 992px) and (max-width: 1150px) {
  .nav-menu { gap: .95rem; }
  .nav-menu > li > a { font-size: .87rem; }
  /* o ícone de tela do botão Download sai para liberar espaço */
  .btn-app-download-header > svg:first-of-type { display: none; }
}

/* =====================================================
   Menu — dropdown "Soluções"
   ===================================================== */
.nav-menu li.has-dropdown { position: relative; }

.nav-menu .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.nav-menu .dropdown-toggle svg {
  width: 12px; height: 12px;
  transition: transform var(--transition-fast);
}
.nav-menu li.has-dropdown:hover .dropdown-toggle svg,
.nav-menu li.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown-menu-pt {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem;
  padding: .75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 200;
}
.nav-menu li.has-dropdown:hover .dropdown-menu-pt,
.nav-menu li.has-dropdown:focus-within .dropdown-menu-pt {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* ponte invisível para o mouse não "cair" ao descer */
.nav-menu li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: .85rem;
}

.dropdown-menu-pt a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.dropdown-menu-pt a:hover {
  background: rgba(147,51,234,.12);
  color: var(--text-primary);
}
.dropdown-menu-pt .dd-emoji { font-size: 1.05rem; line-height: 1; }

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
}

@media (max-width: 991px) {
  /* dentro do menu mobile o dropdown vira lista aberta */
  .dropdown-menu-pt {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: .25rem 0 .25rem .75rem;
    display: none;
  }
  .nav-menu li.has-dropdown.open .dropdown-menu-pt { display: grid; }
  .nav-menu li.has-dropdown::after { display: none; }
  .nav-menu .dropdown-toggle { justify-content: space-between; width: 100%; }
}

@media (max-width: 768px) {
  .sec2026 { padding: 4rem 0; }
  .sec2026 .section-header { margin-bottom: 2.5rem; }
  .segments-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .85rem; }
  .segment-card { padding: 1.25rem 1rem; }
  .segment-card p { display: none; }
  .compare-scroll-hint { display: block; }
  .compare-table { font-size: .87rem; min-width: 620px; }
  .compare-table thead th,
  .compare-table tbody td { padding: .8rem .7rem; }
  .compare-table thead th:first-child { min-width: 180px; }
  .app-cat { padding: 1.35rem; }
  .faq-q { padding: 1rem 1.15rem; font-size: .95rem; }
  .faq-a-inner { padding: 0 1.15rem 1.15rem; }
  .step-card { padding: 1.75rem 1.35rem; }
}

@media (max-width: 480px) {
  .segments-grid { grid-template-columns: 1fr 1fr; }
  .trustbar-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* acessibilidade: respeita quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  .step-card, .segment-card, .app-cat, .faq-icon, .faq-a { transition: none; }
}

/* =====================================================
   CAPTURAS DO PAINEL — moldura de janela de navegador
   (index.html, funcionalidades.html e as landings)
   ===================================================== */
.screenshot-image {
  padding: 30px 10px 10px;
  background: linear-gradient(180deg, #20203a 0%, #16162a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
}

/* barra da janela: 3 bolinhas + endereço real do painel */
.screenshot-image::before {
  content: 'connect.playtvi.com.br';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #82829a;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle 4px at 16px 15px, #ef4444 97%, transparent 100%),
    radial-gradient(circle 4px at 34px 15px, #f59e0b 97%, transparent 100%),
    radial-gradient(circle 4px at 52px 15px, #10b981 97%, transparent 100%),
    linear-gradient(180deg, #272747 0%, #1e1e38 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.screenshot-image img {
  display: block;
  border-radius: 6px;
}

/* o brilho roxo existente fica só sobre a tela, não sobre a barra */
.screenshot-image::after {
  inset: 30px 10px 10px;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .screenshot-image { padding: 24px 6px 6px; }
  .screenshot-image::before { height: 24px; font-size: 0.62rem; background-position: 0 -3px, 0 -3px, 0 -3px, 0 0; }
  .screenshot-image::after { inset: 24px 6px 6px; }
}

/* =====================================================
   REVELAÇÃO NO SCROLL — no mobile o deslocamento passa a
   ser vertical. Com translateX(±50px) a página ganhava
   ~26px de scroll horizontal enquanto os blocos ainda não
   tinham entrado na viewport.
   ===================================================== */
@media (max-width: 991px) {
  .slide-in-left,
  .slide-in-right { transform: translateY(26px); }

  .slide-in-left.visible,
  .slide-in-right.visible { transform: none; }
}
