/* ==========================================================================
   UniTV — Assinatura (SITE 1) — estilos próprios
   Tema: fundo escuro + gradiente da logo UniTV (laranja → vermelho → roxo → azul)
   ========================================================================== */

:root {
  --bg-950: #0b0814;
  --bg-900: #120d1f;
  --bg-800: #1a1330;
  --bg-700: #241a42;
  --orange: #ff8a00;
  --red: #ff2a3d;
  --purple: #9b2fae;
  --blue: #3d4fd6;
  --accent: #ff9b4a;
  --ink-100: #f6f3ff;
  --ink-300: #cfc7e6;
  --ink-500: #9a90b8;
  --brand-gradient: linear-gradient(100deg, var(--orange) 0%, var(--red) 45%, var(--purple) 75%, var(--blue) 100%);
  --cta-gradient: linear-gradient(135deg, var(--orange), var(--red));
  --glow: 0 0 0 1px rgba(255, 90, 60, 0.35), 0 22px 48px -22px rgba(255, 60, 60, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-950);
  color: var(--ink-100);
  -webkit-font-smoothing: antialiased;
}

/* ---------- fundo decorativo ---------- */
.bg-aurora {
  background-color: var(--bg-950);
  background-image:
    radial-gradient(55% 40% at 85% -5%, rgba(255, 42, 61, 0.18), transparent 60%),
    radial-gradient(45% 35% at 5% 5%, rgba(255, 138, 0, 0.14), transparent 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(61, 79, 214, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-950) 0%, var(--bg-900) 100%);
}

.section-alt {
  background: rgba(26, 19, 48, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- cards soft ---------- */
.card-soft {
  background: linear-gradient(160deg, rgba(36, 26, 66, 0.75), rgba(18, 13, 31, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-soft:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 0, 0.35);
}

/* ---------- cards de plano ---------- */
.card-plan {
  background: linear-gradient(170deg, rgba(36, 26, 66, 0.95), rgba(18, 13, 31, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 0, 0.45);
}

.card-plan--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(170deg, #2a1c48, #150f25) padding-box,
    var(--brand-gradient) border-box;
  box-shadow: var(--glow);
}

@media (min-width: 1024px) {
  .card-plan--featured {
    transform: scale(1.04);
  }
  .card-plan--featured:hover {
    transform: scale(1.04) translateY(-4px);
  }
}

.plan-ribbon {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--cta-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(255, 42, 61, 0.8);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-days {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: var(--cta-gradient);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px -10px rgba(255, 42, 61, 0.8);
}

.plan-tag {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #22c55e;
}

.plan-price {
  margin-top: 1rem;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.plan-cents {
  font-size: 0.5em;
  vertical-align: 0.75em;
  margin-left: 0.05em;
}

.plan-sub {
  white-space: nowrap;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.plan-features {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.7rem;
  align-content: start;
  font-size: 0.95rem;
  color: var(--ink-100);
}

.plan-features li {
  display: flex;
  gap: 0.6rem;
  line-height: 1.35;
}

.plan-ic {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  font-weight: 800;
}

.plan-ic--check {
  color: #22c55e;
}

.plan-ic--star {
  color: #fbbf24;
}

/* ---------- botões ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--cta-gradient);
  color: #fff;
  font-weight: 800;
  padding: 0.9rem 1.6rem;
  border-radius: 0.85rem;
  box-shadow: 0 14px 30px -12px rgba(255, 42, 61, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 36px -14px rgba(255, 42, 61, 0.75);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-100);
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 138, 0, 0.55);
}

.btn-block {
  width: 100%;
}

/* ---------- textos ---------- */
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

/* ---------- numeração de passos ---------- */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--cta-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
details.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(26, 19, 48, 0.6);
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.faq-item .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-300);
  line-height: 1.6;
}

details.faq-item {
  transition: border-color 0.2s ease, background 0.2s ease;
}

details.faq-item summary:hover {
  color: var(--accent);
}

details.faq-item[open] {
  border-color: rgba(255, 138, 0, 0.45);
  background: rgba(36, 26, 66, 0.75);
}

details.faq-item .faq-body strong {
  color: var(--ink-100);
}

.faq-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  display: grid;
  gap: 0.4rem;
}

.faq-list li {
  padding-left: 1.1rem;
  position: relative;
}

.faq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--cta-gradient);
}

.faq-chip {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-300);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-chip:hover {
  border-color: rgba(255, 138, 0, 0.55);
  color: var(--ink-100);
}

.faq-chip.is-active {
  background: var(--cta-gradient);
  border-color: transparent;
  color: #fff;
}

.faq-help {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 2px solid transparent;
  background:
    linear-gradient(170deg, #2a1c48, #150f25) padding-box,
    var(--brand-gradient) border-box;
}

@media (min-width: 640px) {
  .faq-help {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- badges ---------- */
.badge-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 138, 0, 0.1);
  border: 1px solid rgba(255, 138, 0, 0.35);
  color: #ffc28f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.badge-example {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(154, 144, 184, 0.12);
  border: 1px solid rgba(154, 144, 184, 0.35);
  color: var(--ink-500);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ---------- divisores ---------- */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 60, 0.5), rgba(61, 79, 214, 0.5), transparent);
}

/* ---------- utilitário: strike de preço ---------- */
.price-strike {
  text-decoration: line-through;
  color: var(--ink-500);
  font-weight: 500;
}

/* ---------- foco acessível ---------- */
a:focus-visible,
button:focus-visible,
.faq-chip:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-plan .btn-primary {
  white-space: nowrap;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ---------- modal de compra ---------- */
html:has(dialog[open]) {
  overflow: hidden;
}

.modal-compra {
  width: calc(100% - 2rem);
  max-width: 28rem;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: #16131f;
  color: var(--ink-100);
  overflow: hidden auto;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 90, 60, 0.08);
}

.modal-compra::backdrop {
  background: rgba(5, 3, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal-compra[open] {
  animation: modal-entrar 0.25s ease-out;
}

@keyframes modal-entrar {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* no celular o modal vira uma gaveta presa embaixo da tela */
@media (max-width: 639px) {
  .modal-compra {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 1.5rem 1.5rem 0 0;
    border-bottom: none;
  }

  .modal-compra[open] {
    animation: gaveta-subir 0.28s ease-out;
  }

  .modal-box {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

@keyframes gaveta-subir {
  from { transform: translateY(100%); }
  to { transform: none; }
}

.modal-barra {
  height: 4px;
  background: var(--brand-gradient);
}

.modal-box {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .modal-box {
    padding: 1.75rem 2rem 2rem;
  }
}

.modal-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-rotulo {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.6rem;
}

.modal-plano {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-300);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-plano strong {
  color: var(--ink-100);
  font-weight: 800;
}

.modal-plano-sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.modal-fechar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.25rem -0.25rem 0 0;
  border-radius: 999px;
  color: var(--ink-300);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.modal-fechar svg {
  width: 1.1rem;
  height: 1.1rem;
  pointer-events: none;
}

.modal-fechar:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.modal-titulo {
  margin-top: 1.4rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.modal-sub {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-300);
}

.modal-opcoes {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compra-opcao {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1.1rem;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.compra-opcao:hover {
  transform: translateY(-2px);
}

/* opção principal: superfície neutra com detalhe na cor da marca */
.compra-opcao--online {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 138, 0, 0.45);
  color: var(--ink-100);
}

.compra-opcao--online:hover {
  background: rgba(255, 138, 0, 0.08);
  border-color: rgba(255, 138, 0, 0.8);
}

.compra-opcao--whats {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink-100);
}

.compra-opcao--whats:hover {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.55);
}

.co-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
}

.co-icone svg {
  width: 1.35rem;
  height: 1.35rem;
}

.co-icone--online {
  color: #fff;
  background: var(--cta-gradient);
}

.co-icone--whats {
  color: #25d366;
  background: rgba(37, 211, 102, 0.14);
}

.co-texto {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.co-texto strong {
  font-size: 1rem;
  font-weight: 800;
}

.co-texto small {
  font-size: 0.8rem;
  line-height: 1.4;
}

.compra-opcao--online .co-texto small {
  color: var(--ink-300);
}

.compra-opcao--whats .co-texto small {
  color: var(--ink-500);
}

.co-seta {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.8;
}

.modal-nota {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* ---------- rodapé: área de toque confortável no celular ---------- */
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- download por aparelho ---------- */
.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-download:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 138, 0, 0.55);
}

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.dl-ic {
  font-size: 1.75rem;
  line-height: 1;
}

.dl-titulo {
  margin-top: 0.9rem;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.dl-via {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.dl-passos {
  margin-top: 1rem;
  flex: 1;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  counter-reset: passo;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-300);
}

.dl-passos li {
  position: relative;
  padding-left: 1.75rem;
  counter-increment: passo;
}

.dl-passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.1);
}

.dl-passos strong {
  color: var(--ink-100);
}

.dl-acao {
  margin-top: 1.25rem;
}

.dl-codigo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.dl-codigo:hover {
  border-color: rgba(255, 138, 0, 0.7);
}

.dl-codigo-num {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.dl-codigo-txt {
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dl-codigo.is-copiado {
  border-color: #22c55e;
}

.dl-codigo.is-copiado .dl-codigo-txt {
  background: #16a34a;
}

.dl-alt {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* ---------- página de download ---------- */
.dl-faixa {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: 1.1rem;
  color: var(--ink-300);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 138, 0, 0.4);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dl-faixa strong {
  color: var(--ink-100);
}

.dl-faixa:hover {
  background: rgba(255, 138, 0, 0.08);
  border-color: rgba(255, 138, 0, 0.8);
}

.dl-faixa-acao {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--accent);
}

@media (min-width: 640px) {
  .dl-faixa {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dl-card .btn-primary,
.dl-card .btn-secondary {
  white-space: nowrap;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.9rem;
}
