/* ==========================================================================
   MyTV — Estilos Oficiais (Ultraleve, Mobile-First e Alta Conversão)
   ========================================================================== */

:root {
  --bg-dark: #0b1221;
  --bg-dark-soft: #131d33;
  --bg-light: #ffffff;
  --bg-muted: #f4f7fb;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-light: #f8fafc;
  --text-light-muted: #cbd5e1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #38bdf8;
  --wa-green: #16a34a;
  --wa-green-hover: #15803d;
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-wa: 0 8px 24px rgba(22, 163, 74, 0.35);
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   Header / Navegação
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 33, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.brand span.accent {
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: var(--bg-dark-soft);
  border-bottom: 1px solid var(--border-dark);
  padding: 16px 20px 20px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
  text-align: center;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn-wa {
  background-color: var(--wa-green);
  color: #ffffff;
  padding: 16px 26px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-wa);
}

.btn-wa:hover {
  background-color: var(--wa-green-hover);
  transform: translateY(-1px);
}

.btn-wa-sm {
  background-color: var(--wa-green);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn-wa-sm:hover {
  background-color: var(--wa-green-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 15px 24px;
  font-size: 1rem;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: radial-gradient(
      circle at 80% 10%,
      rgba(37, 99, 235, 0.28),
      transparent 50%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(56, 189, 248, 0.14),
      transparent 45%
    ),
    var(--bg-dark);
  color: var(--text-light);
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.hero h1 {
  font-size: clamp(1.95rem, 5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-light-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-card {
  background: rgba(19, 29, 51, 0.88);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: #e2e8f0;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-card-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

/* ==========================================================================
   Seções Padrão
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-muted {
  background-color: var(--bg-muted);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* ==========================================================================
   Cards de Compatibilidade e Diferenciais
   ========================================================================== */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Passo a Passo (3 Etapas)
   ========================================================================== */
.step-card {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ==========================================================================
   Banner CTA Intermediário
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #0b1221 0%, #172554 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta-banner p {
  color: var(--text-light-muted);
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 1rem;
}

.cta-subnote {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* ==========================================================================
   FAQ (Accordion)
   ========================================================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 0.92rem;
  max-width: 340px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   Botão Flutuante WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  background: var(--wa-green);
  color: #ffffff;
  height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-float:hover {
  background: var(--wa-green-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Páginas Institucionais (Política de Privacidade e Termos de Uso)
   ========================================================================== */
.legal-hero {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 44px 0;
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-hero p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
}

.legal-content {
  padding: 48px 0 64px;
  max-width: 820px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsividade (Tablet e Desktop)
   ========================================================================== */
@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding: 80px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
