/* =========================================================================
   ZELAR · LINK NA BIO · ESTILOS
   Mobile first. Largura máxima de 480px, centralizada no desktop.
   As cores da marca ficam todas no bloco :root abaixo.
   ========================================================================= */

:root {
  /* Cores da marca */
  --azul: #0251c3;          /* azul principal */
  --azul-claro: #5b93ff;    /* variação clara, usada no brilho do fundo */
  --azul-navy: #021c47;     /* variação escura, usada no degradê do fundo */
  --azul-fundo: #2358d4;    /* topo do degradê */
  --amarelo: #ffd23f;       /* destaque, selo "Novo" e foco */
  --branco: #ffffff;
  --off-white: #fafafa;

  /* Texto dentro dos cards brancos */
  --tinta: #0b1b33;
  --tinta-suave: #5a6b85;

  /* Sombra sólida deslocada dos cards */
  --sombra-solida: #01255c;
  --sombra-altura: 5px;

  --raio: 20px;
  --largura: 480px;
  --fonte: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--fonte);
  color: var(--branco);
  background-color: var(--azul);
  background-image: linear-gradient(
    180deg,
    var(--azul-fundo) 0%,
    #1a55d2 26%,
    var(--azul) 58%,
    #073a9e 100%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Telhados da marca, desenhados no fundo.
   O de trás é mais alto, o da frente vem logo abaixo. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background: rgba(255, 255, 255, 0.055);
  clip-path: polygon(72% 9%, 100% 19%, 100% 100%, 0 100%, 0 30%);
}
body::after {
  background: rgba(255, 255, 255, 0.045);
  clip-path: polygon(62% 22%, 100% 33%, 100% 100%, 0 100%, 0 45%);
}

/* Brilho difuso no canto superior direito */
.brilho {
  position: fixed;
  top: -26vh;
  right: -30vw;
  width: 100vw;
  height: 100vw;
  max-width: 720px;
  max-height: 720px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at center,
    rgba(123, 166, 255, 0.4) 0%,
    rgba(123, 166, 255, 0.16) 44%,
    rgba(123, 166, 255, 0) 70%
  );
}

/* Textura granulada, bem leve, por cima de tudo que é fundo */
.textura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}

.pagina {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 36px 20px calc(28px + env(safe-area-inset-bottom));
}

/* Link de pular para o conteúdo (acessibilidade) */
.pular {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--branco);
  color: var(--azul);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}
.pular:focus { left: 0; }


/* =========================================================================
   TOPO
   ========================================================================= */

.topo { text-align: center; }

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 16px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(1, 20, 54, 0.35);
  background: var(--azul);
  object-fit: cover;
}

.nome {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Selo de verificado, igual ao do Instagram: roseta no azul #3897f0 com a
   marca de certo em branco. O tamanho é em "em", então acompanha o nome:
   mude a fonte do nome e o selo cresce junto, na mesma proporção. */
.verificado {
  width: 0.78em;
  height: 0.78em;
  flex: none;
  display: block;
  transform: translateY(-0.04em);
}
.verificado svg {
  display: block;
  width: 100%;
  height: 100%;
}
.verificado .selo-fundo { fill: #3897f0; }
.verificado .selo-marca { fill: var(--branco); }

.bio {
  margin: 8px auto 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Linha de redes sociais */
.redes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.rede {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--branco);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: background 0.18s ease, transform 0.18s ease;
}
.rede svg { width: 21px; height: 21px; }
.rede:hover { background: rgba(255, 255, 255, 0.26); }
.rede:active { transform: scale(0.93); }


/* =========================================================================
   SEÇÕES E TÍTULOS
   ========================================================================= */

.secao { margin-top: 34px; }

/* Seção sem título fica colada na de cima, como se fosse o mesmo grupo */
.secao--sem-titulo { margin-top: 14px; }

.secao-titulo {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* =========================================================================
   CARD BASE (sombra sólida deslocada, estilo neo-brutalista leve)
   ========================================================================= */

.card {
  position: relative;
  display: block;
  width: 100%;
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: 0 var(--sombra-altura) 0 var(--sombra-solida);
  text-decoration: none;
  color: var(--tinta);
  border: none;
  font-family: inherit;
  text-align: left;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

/* Efeito de afundar no toque */
.card:active {
  transform: translateY(calc(var(--sombra-altura) - 1px));
  box-shadow: 0 1px 0 var(--sombra-solida);
}

.card:focus-visible,
.rede:focus-visible,
.pular:focus-visible,
.rodape a:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 3px;
}


/* Card de botão: ícone à esquerda, texto centralizado */
.botao {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px 12px;
}

.botao-icone {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(2, 81, 195, 0.09);
  color: var(--azul);
}
.botao-icone svg { width: 21px; height: 21px; }

.botao-texto {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.botao-titulo {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--tinta);
}

.botao-subtitulo {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--tinta-suave);
}

/* Espaço à direita do mesmo tamanho do ícone, para o texto ficar centralizado */
.botao-espaco { width: 42px; flex: none; }

/* Selo amarelo */
.selo {
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amarelo);
  color: #3d2c00;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(1, 37, 92, 0.35);
}


/* =========================================================================
   SEÇÃO DO APP: banner + botões das lojas
   ========================================================================= */

.banner {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(150deg, #0a3fa0 0%, #022f74 48%, var(--azul-navy) 100%);
  color: var(--branco);
  margin-bottom: 14px;
}

/* Motivo do telhado da marca, em azul mais claro */
.banner::before,
.banner::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.banner::before {
  width: 78%;
  height: 165%;
  right: -4%;
  bottom: -46%;
  background: rgba(91, 147, 255, 0.17);
  clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%);
}
.banner::after {
  width: 78%;
  height: 165%;
  right: -32%;
  bottom: -62%;
  background: rgba(91, 147, 255, 0.12);
  clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%);
}

.banner-conteudo {
  position: relative;
  z-index: 1;
  max-width: 76%;
}

.banner-titulo {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.banner-subtitulo {
  margin: 7px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.82);
}

.banner-icone {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 22px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(1, 20, 54, 0.4);
}

.banner .selo {
  top: 24px;
  right: 22px;
}

/* Banner por imagem (quando config.banner.imagem está preenchido) */
.banner-imagem {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--raio);
}
.card--imagem { padding: 0; overflow: hidden; line-height: 0; }

/* Botões das lojas */
.lojas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.lojas--unica { grid-template-columns: 1fr; }

.loja {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tinta);
}
.loja svg { width: 22px; height: 22px; flex: none; }

/* Loja destacada conforme o aparelho do visitante.
   Só muda a cor de fundo: a sombra continua sendo a mesma dos outros cards. */
.loja--destaque {
  background: var(--azul);
  color: var(--branco);
}


/* =========================================================================
   CARD DE TEXTO "O QUE É A ZELAR?"
   ========================================================================= */

.texto-card { padding: 0; }

.texto-cabecalho {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 14px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: var(--tinta);
  border-radius: var(--raio);
}

.texto-cabecalho .botao-titulo { text-align: center; }

.chevron {
  width: 42px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--tinta-suave);
  transition: transform 0.22s ease;
}
.chevron svg { width: 20px; height: 20px; }
.texto-cabecalho[aria-expanded='true'] .chevron { transform: rotate(180deg); }

.texto-corpo {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.texto-corpo > div { overflow: hidden; }
.texto-card.aberto .texto-corpo { grid-template-rows: 1fr; }

.texto-corpo p {
  margin: 0 0 12px;
  padding: 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--tinta-suave);
}
.texto-corpo p:first-child { padding-top: 2px; }
.texto-corpo p:last-child {
  margin-bottom: 20px;
  color: var(--azul);
  font-weight: 700;
}

/* Quando o card não é expansível, o texto fica sempre visível */
.texto-card--fixo .texto-corpo { grid-template-rows: 1fr; }
.texto-card--fixo:active,
.texto-card--fixo:hover {
  transform: none;
  box-shadow: 0 var(--sombra-altura) 0 var(--sombra-solida);
}


/* =========================================================================
   RODAPÉ
   ========================================================================= */

.rodape {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.rodape a {
  color: inherit;
  text-decoration: none;
}
.rodape a:hover { color: rgba(255, 255, 255, 0.9); }


/* =========================================================================
   ANIMAÇÃO DE ENTRADA
   ========================================================================= */

@keyframes surgir {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

body.animacao-concluida .animar { opacity: 1; }

.animar {
  opacity: 0;
  animation: surgir 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(min(var(--i, 0), 10) * 45ms);
}


/* =========================================================================
   DESKTOP
   ========================================================================= */

@media (min-width: 600px) {
  .pagina { padding-top: 56px; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sombra-solida); }
  .card:active { transform: translateY(calc(var(--sombra-altura) - 1px)); box-shadow: 0 1px 0 var(--sombra-solida); }
}


/* =========================================================================
   MENOS MOVIMENTO (prefers-reduced-motion)
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  .animar { opacity: 1; animation: none; }
  .card,
  .rede,
  .chevron,
  .texto-corpo {
    transition: none;
  }
  .card:hover { transform: none; }
}


/* =========================================================================
   PÁGINA SEM JAVASCRIPT
   ========================================================================= */

.sem-script { text-align: center; }
.sem-script ul { list-style: none; padding: 0; }
.sem-script li { margin: 12px 0; }
.sem-script a {
  display: block;
  padding: 16px;
  background: var(--branco);
  color: var(--azul);
  border-radius: var(--raio);
  font-weight: 700;
  text-decoration: none;
}
