/* Camada de acabamento por cima do clone (referência capturada pelo CodeMirror; ver README).
   Não move bloco nem troca componente: só o que a casa exige a mais.
   1. hero cobre a tela inteira (100svh);
   2. FAQ em <details name> (abrir uma fecha a outra), 5 à vista e "Ver mais perguntas (+N)";
   3. foco visível, toque que responde, menos movimento;
   4. rodapé: texto legal do operador e assinatura da VisionX. */

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
img { max-width: 100%; }

/* 1. hero de ponta a ponta, a tela inteira em todo aparelho; o degradê reto sai do azul do topo
   (#013884) para o azul da referência, e o topo transparente assenta nele sem emenda */
.hero-tela { min-height: 100vh; min-height: 100svh; background-image: linear-gradient(180deg, #013884 0%, #0b4c9c 42%, #0b4c9c 100%); }

/* topo: estendido e transparente no alto; depois de rolar, vira cápsula mais estreita (pagina.js põe .rolou) */
.topo-vivo { background-color: transparent; transition: background-color .3s ease; }
.topo-vivo > div { border-radius: 9999px; transition: background-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.topo-vivo.rolou > div {
  max-width: min(calc(100% - 1.5rem), 64rem);
  /* opaca: com alfa < 1 o texto da página aparecia por baixo e entrava na medida de contraste */
  background-color: #013884;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transform: translateY(.625rem);
}

/* logo oficial: proporção do arquivo (234 x 55) */
.logo-safirion { aspect-ratio: 234 / 55; }

/* print real da plataforma no lugar do monitor da referência */
.print-plataforma { border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12); }

/* ícones em SVG no lugar dos emojis da referência, no mesmo quadrado de 56/48/40 px */
.ico { width: 1.75rem; height: 1.75rem; color: #fff; }
.ico-sm { width: 1.25rem; height: 1.25rem; color: #fff; }
.ico-mini { width: 1.875rem; height: 1.875rem; color: #1368c5; margin-bottom: .5rem; }

/* 2. FAQ: o mesmo cartão da referência, agora em <details> nativo */
.faq-item > summary { list-style: none; cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:focus-visible { outline: 3px solid #1368c5; outline-offset: -3px; border-radius: 1rem; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item .faq-answer { max-height: none; padding-bottom: 1.25rem; }
.faq-item[open] .faq-answer { animation: faq-abre .28s cubic-bezier(.22, 1, .36, 1); }
@keyframes faq-abre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-lista:not(.faq-todas) .faq-item:nth-child(n + 6) { display: none; }
/* sem gap: o texto e o número (+N) são nós irmãos do flex e o gap os separava, "(+ 5 )" */
.faq-mais { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 1.5rem auto 0; padding: .625rem 1.25rem; border-radius: 9999px; border: 2px solid #1368c5; background: #fff; color: #0f57a8; font-weight: 600; font-size: .9375rem; cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.faq-mais:hover { background: #dcecfb; }
.faq-mais:active { transform: scale(.98); }
.faq-lista.faq-todas + .faq-mais-box { display: none; }

/* citação curta da própria Safirion, no lugar do depoimento */
.fonte-chip { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: #0f57a8; background: #dcecfb; border-radius: 9999px; padding: .25rem .625rem; }

/* 3. foco e toque */
a:focus-visible, button:focus-visible { outline: 3px solid #96dafb; outline-offset: 3px; }
main a:focus-visible, main button:focus-visible { outline-color: #1368c5; }
a[class*="rounded-full"]:active, a[class*="rounded-xl"]:active { transform: scale(.98); }

/* 4. rodapé */
.texto-legal { color: rgba(255, 255, 255, .86); font-size: .8125rem; line-height: 1.6; }
.texto-legal strong { color: #fff; font-weight: 600; }
.rodape-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.assinatura-visionx { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .86); font-size: .875rem; text-decoration: none; min-height: 44px; }
.assinatura-visionx:hover { color: #fff; }
.assinatura-visionx svg { width: 1rem; height: 1rem; flex: none; }
/* links rápidos: 4 pares e o "Criar conta" na linha inteira, em toda largura (o base.css só compila sm:col-span-2) */
.cel-links > .col-span-2 { grid-column: 1 / -1; }

/* celular: os cartões curtos ficam lado a lado, como no computador (doutrina, seção 1) */
@media (max-width: 47.99rem) {
  .cel-duas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .cel-duas > * { padding: 1rem; }
  .cel-tres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .cel-tres > * { padding: .75rem .5rem; }
  .cel-tres h3 { font-size: .8125rem; }
  .cel-par { flex-direction: row; }
  .cel-par > a { flex: 1 1 0; padding-left: .75rem; padding-right: .75rem; text-align: center; }
  .cel-esconde { display: none; }
  .cel-lojas { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
  .cel-lojas > a { flex: 1 1 6.5rem; padding: .75rem .625rem; gap: .5rem; }
  .cel-lojas svg { width: 1.375rem; height: 1.375rem; }
  /* copy resumida só no celular: o parágrafo de apoio do cartão sai, ficam ícone, número e título */
  .cel-resumo p { display: none; }
  .cel-resumo h3 { margin-bottom: 0; }
  .cel-resumo > * > .w-12, .cel-resumo > * > .w-14 { width: 2.75rem; height: 2.75rem; border-radius: .875rem; margin-bottom: .625rem; }
  .cel-resumo .ico { width: 1.375rem; height: 1.375rem; }
  .cel-resumo h3.text-lg { font-size: .9375rem; line-height: 1.3; }
  .cel-resumo .text-2xl { font-size: 1.375rem; line-height: 1.75rem; }
  /* passos 1-2-3 em faixa de 3, número no topo e título curto */
  .cel-passos > li { padding: 1.25rem .5rem .75rem; text-align: center; }
  .cel-passos > li > div[aria-hidden] { top: -.75rem; left: 50%; transform: translateX(-50%); width: 2rem; height: 2rem; font-size: .875rem; border-width: 3px; }
  .cel-passos { row-gap: 1.5rem; }
  .cel-passos h3 { font-size: .8125rem; margin-top: .5rem; overflow-wrap: anywhere; hyphens: auto; }
  /* citações da Safirion em 2 colunas, letra de 13px */
  .cel-citacoes > figure { padding: .875rem; }
  .cel-citacoes blockquote { font-size: .8125rem; line-height: 1.5; }
  .cel-citacoes figcaption .text-xs { display: none; }
  /* app: 3 minicartões lado a lado */
  .cel-tres .ico-mini { width: 1.5rem; height: 1.5rem; }
  .cel-tres p { font-size: .8125rem; line-height: 1.35; }
  /* rodapé: links em 2 colunas */
  .cel-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topo-vivo, .topo-vivo > div { transition: background-color .16s ease; }
  .animate-pulse { animation: none; }
  .faq-item[open] .faq-answer { animation: faq-abre-leve .16s ease; }
  @keyframes faq-abre-leve { from { opacity: 0; } to { opacity: 1; } }
  [class*="hover:-translate-y"]:hover { transform: none; }
}
