/* =========================================================================
   TELAS — estilos das telas ricas: ilustrações animadas, teste de áudio,
   depoimento com foto, loading multi-barras, gráficos e paywall.
   Carrega depois de style.css (que define os tokens).
   ========================================================================= */

/* ----------------------------------------- animações das ilustrações SVG */
.il { width: 100%; height: auto; display: block; }
.il-mini { width: 54px; height: 54px; }
.ilustra { display: grid; place-items: center; margin: 2px auto 16px; max-width: 190px; }
.ilustra.grande { max-width: 250px; }

@keyframes flutua      { 0%,100% { transform: translateY(0) }  50% { transform: translateY(-7px) } }
@keyframes brilha      { 0%,100% { opacity: .22; transform: scale(.7) } 50% { opacity: 1; transform: scale(1.15) } }
@keyframes traceja     { from { stroke-dashoffset: 320 } to { stroke-dashoffset: 0 } }
@keyframes abreFlor    { from { transform: scale(.4) rotate(-14deg); opacity: 0 } to { transform: scale(1) rotate(0); opacity: 1 } }
@keyframes surgeFolha  { from { transform: scale(0); opacity: 0 } to { transform: scale(1); opacity: 1 } }
@keyframes cai         { 0% { transform: translateY(-6px); opacity: 0 } 25% { opacity: 1 } 100% { transform: translateY(16px); opacity: 0 } }
@keyframes giraLento   { to { transform: rotate(360deg) } }

.fx-flutua      { animation: flutua 4s ease-in-out infinite; }
.fx-brilha      { animation: brilha 2.4s ease-in-out infinite; transform-origin: center; }
.fx-brilha-g    { animation: brilha 3s ease-in-out infinite; transform-origin: center; }
.fx-cresce      { stroke-dasharray: 320; animation: traceja 1.1s ease-out both; }
.fx-cresce.d1   { animation-delay: .18s }
.fx-cresce.d2   { animation-delay: .34s }
.fx-cresce-lento{ stroke-dasharray: 420; animation: traceja 1.8s ease-out both; }
.fx-folha > *   { animation: surgeFolha .5s cubic-bezier(.3,1.4,.5,1) both; transform-origin: center; }
.fx-folha > *:nth-child(2) { animation-delay: .5s }
.fx-folha > *:nth-child(3) { animation-delay: .65s }
.fx-folha > *:nth-child(4) { animation-delay: .8s }
.fx-flor > *    { animation: abreFlor .55s cubic-bezier(.3,1.5,.5,1) both; animation-delay: .9s; transform-origin: center; }
.fx-abre        { animation: abreFlor .8s cubic-bezier(.3,1.4,.5,1) both; animation-delay: .45s; }
.fx-gota > *    { animation: cai 1.6s ease-in infinite; }
.fx-gota > .d1  { animation-delay: .5s }
.fx-gota > .d2  { animation-delay: 1s }
.fx-chuva > path{ animation: cai 1.1s linear infinite; }
.fx-gira        { animation: giraLento 22s linear infinite; }

/* fundo em gradiente para telas emocionais */
.fundo-gradiente { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .7s; }
.fundo-gradiente.on { opacity: 1; }
.fundo-roxo  { background: radial-gradient(125% 70% at 50% 0%, #241a4d 0%, #0b0f1a 62%); }
.fundo-noite { background: radial-gradient(130% 80% at 50% 8%, #1d1b48 0%, #2b1032 52%, #0b0f1a 100%); }

/* ------------------------------------ cartão de pergunta com ilustração */
.card-pergunta {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border-radius: var(--r); padding: 15px 15px 15px 18px; margin-bottom: 16px;
}
.card-pergunta .txt-bloco { flex: 1; }
.card-pergunta h1 { font-size: 19px; text-align: left; line-height: 1.3; }
.card-pergunta .subtitulo { text-align: left; margin: 5px 0 0; font-size: 13px; color: var(--menta); font-weight: 600; }
.card-pergunta .mini-il { width: 66px; flex: none; }

/* ------------------------------------------------------- teste de áudio */
.audio-tela { text-align: center; }
.audio-aviso { background: var(--surface); border-radius: var(--r); padding: 14px 16px; font-size: 13.5px; color: var(--txt-2); margin-bottom: 28px; }
.play-wrap { position: relative; display: grid; place-items: center; margin: 0 auto 18px; width: 108px; height: 108px; }
.play-wrap::before, .play-wrap::after {
  content: ''; position: absolute; inset: 14px; border-radius: 50%;
  border: 2px solid var(--indigo); opacity: 0; animation: pulsoAudio 2.4s ease-out infinite;
}
.play-wrap::after { animation-delay: 1.2s; }
@keyframes pulsoAudio { 0% { transform: scale(.75); opacity: .6 } 100% { transform: scale(1.5); opacity: 0 } }
.btn-play {
  position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: var(--indigo); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(95,112,218,.45); transition: transform .14s;
}
.btn-play:active { transform: scale(.95); }
.btn-play svg { width: 28px; height: 28px; }
.onda { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 40px; margin-bottom: 20px; }
.onda i { width: 3px; border-radius: 99px; background: var(--txt-3); height: 18%; transition: background .25s; }
.onda.ativa i { background: #aab4f2; animation: pulsaBarra .85s ease-in-out infinite; }
@keyframes pulsaBarra { 0%,100% { height: 16% } 50% { height: 90% } }
.audio-tela .replay { background: none; border: 0; color: var(--txt-3); font-size: 13px; text-decoration: underline; margin-bottom: 16px; }
.audio-tela .trava { font-size: 12.5px; color: var(--txt-3); margin-bottom: 14px; }

/* ------------------------------------------------------ "Você sabia?" */
.info-card { text-align: left; padding-top: 12px; }
.info-card .ilustra { margin-bottom: 28px; }
.info-card h1 { font-size: 25px; color: #8f9dff; text-align: left; margin-bottom: 14px; }
.info-card p { font-size: 15.5px; color: var(--txt-2); }
.info-card p strong { color: var(--txt); }

/* ------------------------------------------------- depoimento com foto */
.depo-tela { text-align: center; padding-top: 12px; }
.depo-tela h1 { font-size: 23px; margin-bottom: 18px; }
.depo-foto { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; }
.depo-foto img { width: 100%; aspect-ratio: 3/4; max-height: 380px; object-fit: cover; object-position: center 22%; display: block; }
.depo-foto .sem-foto {
  width: 100%; aspect-ratio: 4/3; background: linear-gradient(160deg,#242b47,#161a2b);
  display: grid; place-items: center; gap: 8px; color: var(--txt-3); font-size: 12.5px; text-align: center; padding: 24px;
}
.depo-foto .sem-foto svg { width: 44px; height: 44px; opacity: .5; }
.depo-caixa {
  position: absolute; left: 11px; right: 11px; bottom: 11px; background: rgba(13,17,29,.94);
  backdrop-filter: blur(8px); border-radius: var(--r); padding: 13px 14px; text-align: left;
}
.depo-caixa .topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.depo-caixa .topo b { font-size: 15px; }
.depo-caixa .topo .nota { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.depo-caixa q { font-size: 13.5px; color: var(--txt-2); line-height: 1.45; display: block; }
.rodape-depo { font-size: 13.5px; color: var(--txt-3); }

/* --------------------------------------------------- escala com clima */
.citacao-card { background: var(--surface); border-radius: var(--r); padding: 15px 16px; margin-bottom: 16px; text-align: left; }
.citacao-card b { display: block; font-size: 16px; margin-bottom: 6px; }
.citacao-card q { color: var(--menta); font-size: 15.5px; font-weight: 600; line-height: 1.4; display: block; }
.escala-clima { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.clima-card {
  background: var(--surface); border: 0; border-radius: var(--r-lg);
  padding: 20px 12px 15px; display: grid; place-items: center; gap: 10px; transition: all .16s;
}
.clima-card:active { transform: scale(.98); }
.clima-card span { font-size: 14px; font-weight: 500; text-align: center; }
.clima-card.on { background: var(--option-on-bg); }
.clima-card.on span { color: var(--option-on-text); font-weight: 600; }

/* ---------------------------------------------- loading em multi-barras */
.load-tela { padding-top: 24px; }
.load-tela h1 { font-size: 24px; text-align: center; margin-bottom: 26px; }
.load-item { margin-bottom: 15px; }
.load-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--txt-2); margin-bottom: 7px; }
.load-topo .ok { width: 19px; height: 19px; border-radius: 50%; background: var(--menta); display: grid; place-items: center; color: var(--bg); flex: none; }
.load-topo .ok svg { width: 12px; height: 12px; }
.load-topo .pc { font-size: 12.5px; font-weight: 700; color: var(--txt); flex: none; }
.load-trilho { height: 9px; border-radius: 99px; background: var(--secondary); overflow: hidden; }
.load-trilho i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .28s linear; }
.load-nota { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; margin: 26px 0 4px; }
.load-sub { text-align: center; font-size: 13px; color: var(--txt-2); margin-bottom: 20px; }
.load-depo { background: var(--surface); border-radius: var(--r); padding: 18px; text-align: center; min-height: 138px; }
.load-depo q { display: block; font-size: 14.5px; margin: 9px 0 10px; line-height: 1.45; }
.load-depo cite { font-style: normal; font-size: 12.5px; color: var(--txt-3); }
.pontos { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.pontos i { width: 6px; height: 6px; border-radius: 50%; background: var(--check-off); transition: background .3s; }
.pontos i.on { background: var(--indigo); }

/* ------------------------------------------------ e-mail / resultados */
.email-tela { text-align: center; padding-top: 40px; }
.email-tela h1 { font-size: 25px; margin-bottom: 20px; }
.caixa-privacidade { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: var(--r); padding: 13px 15px; font-size: 12.5px; color: var(--txt-2); text-align: left; margin-top: 12px; }
.caixa-privacidade svg { width: 17px; height: 17px; color: var(--menta); flex: none; margin-top: 1px; }
.linha-avatares { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 4px; font-size: 13.5px; color: var(--txt-2); }
.pilha { display: flex; }
.pilha span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -9px; background: linear-gradient(140deg,#5f70da,#8b7bf0); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.pilha span:first-child { margin-left: 0; }

/* --------------------------------------------------------- antes/depois */
.antes-depois { padding-top: 8px; }
.antes-depois h1 { font-size: 24px; text-align: center; margin-bottom: 2px; }
.antes-depois .destaque-menta { color: var(--menta); }
.ad-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 20px; position: relative; }
.ad-card { border-radius: var(--r-lg); padding: 14px 12px; }
.ad-card.antes { background: var(--surface); }
.ad-card.depois { background: #f4f5fb; color: #1b1f2e; position: relative; padding-top: 30px; }
.ad-card .selo-topo { position: absolute; top: 0; left: 0; right: 0; background: var(--indigo); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 5px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ad-card .ilustra { max-width: 84px; margin: 0 auto 6px; }
.ad-card h3 { font-size: 16px; text-align: center; margin-bottom: 10px; }
.ad-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ad-card li { display: flex; gap: 7px; font-size: 12.5px; line-height: 1.35; }
.ad-card li svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.ad-card.antes li { color: var(--txt-2); }
.ad-card.antes li svg { color: var(--txt-3); }
.ad-card.depois li svg { color: #17a37f; }
.ad-seta { position: absolute; left: 50%; top: 84px; transform: translate(-50%,-50%); z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); display: grid; place-items: center; color: #fff; }
.ad-seta svg { width: 15px; height: 15px; transform: rotate(180deg); }
.ad-stat { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ad-stat .louro { width: 20px; color: var(--menta); flex: none; }
.ad-stat b { display: block; font-size: 17px; text-align: center; }
.ad-stat span { font-size: 12.5px; color: var(--txt-2); }

/* ------------------------------------------------ gráficos do resultado */
.radar-card { background: var(--surface); border-radius: var(--r-lg); padding: 18px; margin-bottom: 20px; }
.radar-card svg { width: 100%; height: auto; }
.radar-legenda { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 14px; }
.radar-legenda div { display: flex; gap: 7px; align-items: center; font-size: 11.5px; color: var(--txt-2); }
.radar-legenda i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.curvas-card { margin: 22px 0; }
.curvas-card svg { width: 100%; height: auto; }
.blocos-ajuda { display: grid; gap: 11px; }
.bloco-ajuda { background: var(--surface); border-radius: var(--r-lg); padding: 20px 18px; text-align: center; }
.bloco-ajuda .ic-topo { width: 36px; margin: 0 auto 10px; }
.bloco-ajuda h3 { font-size: 16.5px; margin-bottom: 12px; }
.bloco-ajuda ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; text-align: left; }
.bloco-ajuda li { display: flex; gap: 9px; font-size: 13.5px; color: var(--txt-2); line-height: 1.4; }
.bloco-ajuda li::before { content: '\2726'; color: var(--menta); flex: none; }
.beneficios { display: grid; gap: 11px; }
.beneficio { background: var(--surface); border-radius: var(--r-lg); padding: 20px 18px; text-align: center; }
.beneficio .ilustra { max-width: 90px; margin-bottom: 10px; }
.beneficio h3 { font-size: 16px; margin-bottom: 8px; }
.beneficio p { font-size: 13.5px; color: var(--txt-2); margin: 0; }

/* ---------------------------------------- paywall: escolha da contribuição */
.contrib-lista { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.contrib-lista li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.contrib-lista li svg { width: 18px; height: 18px; color: var(--menta); flex: none; margin-top: 2px; }
.contrib-titulo { font-size: 14.5px; font-weight: 600; color: var(--menta); margin-bottom: 14px; }
.contrib-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 18px; }
.contrib-card {
  position: relative; background: var(--surface); border: 2px solid transparent;
  border-radius: var(--r-lg); padding: 22px 12px 16px; text-align: center; transition: all .18s;
}
.contrib-card.on { background: var(--option-on-bg); color: var(--option-on-text); border-color: var(--menta); }
.contrib-card.on .c-sub { color: #5b6379; }
.contrib-card.on .c-extra { color: #0d7a5f; }
.contrib-card .c-valor { font-size: 26px; font-weight: 700; line-height: 1.05; }
.contrib-card .c-valor small { font-size: 14px; font-weight: 600; }
.contrib-card .c-sub { font-size: 10.5px; color: var(--txt-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.contrib-card .c-extra { font-size: 11.5px; color: var(--menta); margin-top: 10px; line-height: 1.35; font-weight: 600; }
.contrib-card .c-selo {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--menta); color: var(--bg); font-size: 9.5px; font-weight: 800;
  letter-spacing: .07em; padding: 4px 10px; border-radius: 99px;
}
.contrib-bonus { border: 1.5px solid var(--indigo); border-radius: var(--r); padding: 14px 15px; margin-bottom: 18px; }
.contrib-bonus b { display: block; font-size: 13.5px; color: #8f9dff; margin-bottom: 8px; }
.contrib-bonus ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.contrib-bonus li { display: flex; gap: 8px; font-size: 13px; color: var(--txt-2); }
.contrib-bonus li svg { width: 15px; height: 15px; color: var(--menta); flex: none; margin-top: 2px; }
.contrib-nota { background: var(--surface); border-radius: var(--r); padding: 14px 15px; font-size: 12.5px; color: var(--txt-2); text-align: center; margin-bottom: 18px; }
.contrib-nota .cor { color: #f472b6; font-size: 15px; }

/* =========================================================================
   CORREÇÕES
   ========================================================================= */

/* [print 01] A faixa da ação fixa usava --bg opaco e desenhava um retângulo
   preto por cima do fundo em gradiente. Nas telas com gradiente ela some. */
body[data-tipo="emocional"] .acoes,
body[data-tipo="info"] .acoes { background: none; }

/* [print 04] Em janela alta o modal colado embaixo fica solto do conteúdo.
   Em telas altas ele vira caixa centralizada; no celular segue bottom-sheet. */
@media (min-height: 720px) {
  .modal { place-items: center; padding: 20px; }
  .modal .cx { border-radius: 22px; max-width: 380px; transform: translateY(10px) scale(.98); }
  .modal.abre .cx { transform: none; }
}

/* [print 08] A barra fixa tinha borda + fundo translúcido deixando a
   ilustração do botão vazar. Agora é opaca e o botão fica contido. */
.sticky-cta { background: #0d111c; border-top: 1px solid #1b1f2e; }
.sticky-cta .btn { overflow: hidden; isolation: isolate; }
.sticky-cta .btn .folhas { opacity: .38; }
.sticky-cta .s-info { min-width: 84px; }

/* bandeiras de pagamento com marca */
.pagamentos { gap: 7px; align-items: center; }
.marca-pg { height: 26px; width: auto; display: block; border-radius: 4px; }

/* [print 05] Resultado parcialmente velado: cria a tensão do desbloqueio. */
.velado { position: relative; }
.velado .conteudo-velado { filter: blur(7px); pointer-events: none; user-select: none; }
.selo-cadeado {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(13,17,29,.9); border: 1px solid #2a2f45; border-radius: 14px;
  padding: 14px 18px; text-align: center; white-space: nowrap;
}
.selo-cadeado svg { width: 22px; height: 22px; color: var(--menta); }
.selo-cadeado b { font-size: 13px; }
.selo-cadeado span { font-size: 11.5px; color: var(--txt-3); }

/* [print 03] Gráfico da jornada com eixo, marcações e rótulos. */
.jornada-graf { background: var(--surface); border-radius: var(--r-lg); padding: 16px 14px 12px; margin: 18px 0 20px; }
.jornada-graf svg { width: 100%; height: auto; }
.jg-eixo { fill: #6c7086; font-size: 9.5px; }
.jg-marco { fill: #fff; font-size: 10px; font-weight: 700; }
.jg-legenda { display: flex; justify-content: space-between; font-size: 11px; color: var(--txt-3); margin-top: 8px; padding: 0 2px; }

/* ---------------------------------------- [print 02] planta que cresce
   pathLength=1 deixa o traco normalizado: a mesma animacao serve para
   qualquer curva, sem calcular comprimento. --atraso encadeia os passos. */
@keyframes desenha   { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
@keyframes brotar    { 0% { transform: scale(0) rotate(-18deg); opacity: 0 }
                       70% { transform: scale(1.12) rotate(3deg); opacity: 1 }
                       100% { transform: scale(1) rotate(0); opacity: 1 } }
@keyframes desabrochar { 0% { transform: scale(0) rotate(-28deg); opacity: 0 }
                       65% { transform: scale(1.18) rotate(6deg) }
                       100% { transform: scale(1) rotate(0); opacity: 1 } }
@keyframes subirPart { 0% { transform: translateY(6px) scale(.4); opacity: 0 }
                       35% { opacity: 1 }
                       100% { transform: translateY(-16px) scale(1); opacity: 0 } }
@keyframes balanco   { 0%,100% { transform: rotate(-1.2deg) } 50% { transform: rotate(1.2deg) } }

.il .tracado {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: desenha .5s cubic-bezier(.4,0,.25,1) both;
  animation-delay: var(--atraso, 0s);
}
.il .brota, .il .desabrocha {
  transform-origin: var(--ox, center) var(--oy, center);
  animation-fill-mode: both; animation-delay: var(--atraso, 0s);
}
.il .brota      { animation-name: brotar; animation-duration: .5s; animation-timing-function: cubic-bezier(.3,1.5,.5,1); }
.il .desabrocha { animation-name: desabrochar; animation-duration: .7s; animation-timing-function: cubic-bezier(.3,1.5,.5,1); }
.il .particulas circle { animation: subirPart 3.2s ease-out infinite; animation-delay: var(--atraso, 0s); }

/* depois de crescer, a planta inteira balanca de leve */
.ilustra .il { animation: balanco 6s ease-in-out 1.4s infinite; transform-origin: 50% 92%; }

/* a caixa do depoimento nao pode cobrir o rosto: desce um pouco e ganha
   um degrade por tras para o texto ficar legivel sobre a foto */
.depo-foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, rgba(11,15,26,0), rgba(11,15,26,.82) 55%, rgba(11,15,26,.95)); pointer-events: none; }
.depo-caixa { background: rgba(13,17,29,.86); z-index: 1; }

/* ------------------------------------- fotos reais nos avatares e depoimentos */
.pilha span { overflow: hidden; background: #232a45; }
.pilha span img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }

.depo-card figcaption.com-foto { display: flex; align-items: center; gap: 10px; }
.depo-card .mini-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  object-position: center 22%; flex: none; border: 2px solid #2a3050; }
.depo-card .quem { display: flex; flex-direction: column; line-height: 1.3; }
.depo-card .quem small { font-weight: 400; color: var(--txt-3); font-size: 12px; }

/* cartao claro atras do avatar de genero, como no material de referencia */

.tile .fig svg, .tile .fig img { width: 100%; height: 100%; object-fit: cover; }

/* Os arquivos dos testes trazem cantos BRANCOS embutidos (medido: rgba(255,255,254)
   no canto, arte escura 2px adentro). Como o container tem overflow:hidden,
   um leve zoom joga esses cantos para fora e o "mal acabado" some. */
.teste-img { background: transparent; }
.teste-img img { transform: scale(1.05); transform-origin: center; }

/* cartao de genero: fundo escuro com brilho suave atras do personagem */
.tile { background: #161b2b; }
.tile .fig {
  background: radial-gradient(60% 55% at 50% 42%, #232a45 0%, #161b2b 72%);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 0;
}
.tile .lbl { background: #1e2438; }
.tile.on { background: var(--option-on-bg); }
.tile.on .fig { background: radial-gradient(60% 55% at 50% 42%, #e9ecf7 0%, #f6f7fb 72%); }
.tile.on .lbl { background: #fff; }
