/*
 * Página "Bolsa Movimento" (/bolsa-movimento/): só o que é próprio dela (prefixo bm-): as opções que dançam ao
 * serem escolhidas e o ingresso da aplicação. O resto vem do jornada.css, na mesma ordem de seções das páginas de
 * venda: abertura em duotone, "Talvez você", o que é (coreografia que se solta e pegadas que acendem), cartas soltas,
 * depoimentos, ingresso com o menu de pagamento (vendas.css) e dúvidas com os pés que se encontram.
 * Cada .ci-shape (onda no topo da seção) tem a cor da seção anterior: ao reordenar, ajuste aqui.
 */

/* ---------- 2. talvez você (ci-mover) ---------- */

.bm-mover .ci-shape {
  fill: var(--amarelo);
}

/* ---------- 3. o que é a bolsa e como funciona (ci-experiencia) ---------- */

.bm-oque .ci-eyebrow {
  color: var(--laranja-forte);
}

.bm-como {
  margin-top: clamp(80px, 20vw, 136px);
}

.bm-como .ci-display {
  margin-top: 0.5rem !important;
}

/* ---------- 4. com cuidado (cartas do ci-principios) ---------- */

.bm-cuidado .ci-fx-valetudo {
  color: #fff;
}

/* ---------- 5. quem já viveu ---------- */

.bm-depo .ci-shape {
  fill: var(--laranja);
}

/* ---------- 6. escolha e pagamento ---------- */

.bm-escolha .ci-shape {
  fill: var(--pessego);
}

.bm-escolha .ci-narrow .ci-eyebrow {
  color: var(--laranja-forte);
}

.bm-opcoes {
  display: grid;
  gap: 16px;
  max-width: calc(760px + var(--gutter) * 2);
  margin-top: clamp(40px, 10vw, 56px);
  border: 0;
  min-width: 0;
}

.bm-opcao {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "nome nome"
    "meta meta";
  align-items: baseline;
  gap: 4px 12px;
  padding: 22px 24px 22px 64px;
  border-radius: var(--radius-card);
  background: var(--off-white);
  color: var(--texto);
  cursor: pointer;
  box-shadow: 0 22px 40px -30px rgba(90, 6, 49, 0.7);
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    transform 0.6s var(--bounce);
}

/* chegam um pouco tortas, como passos soltos, e se alinham ao entrar na tela */
.js .bm-opcao.ci-reveal {
  transform: translateY(24px) rotate(var(--r, 0deg));
}

.js .bm-opcao.ci-reveal.is-in {
  transform: none;
}

.bm-opcao:hover {
  box-shadow: 0 26px 44px -26px rgba(90, 6, 49, 0.8);
}

.bm-opcao input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bm-opcao:has(input:focus-visible) {
  outline: 3px solid var(--vinho);
  outline-offset: 4px;
}

/* a marca da escolha: uma pegada num círculo que se enche */
.bm-opcao__pe {
  position: absolute;
  top: 38px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px; /* centro na altura do nome */
  border: 2px solid var(--vinho);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease);
}

.bm-opcao__pe svg {
  width: 12px;
  height: 18px;
  fill: var(--amarelo);
  opacity: 0;
  transform: scale(0.4) rotate(-30deg);
  transition:
    opacity 0.3s,
    transform 0.5s var(--bounce);
}

.bm-opcao__nome {
  grid-area: nome;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--vinho-profundo);
}

.bm-opcao__nome em {
  font-style: normal;
  color: var(--laranja-forte);
}

.bm-opcao__meta {
  grid-area: meta;
  font-size: 0.9375rem;
  line-height: 1.35;
}

/* escolhida: vira vinho, a pegada pisa e o cartão dá um passo de dança */
.bm-opcao.is-escolhida {
  background: var(--vinho);
  color: var(--rosa-texto);
  box-shadow: 0 30px 50px -28px rgba(90, 6, 49, 0.9);
}

.bm-opcao.is-escolhida .bm-opcao__nome {
  color: var(--rosa-claro);
}

.bm-opcao.is-escolhida .bm-opcao__nome em,

.bm-opcao.is-escolhida .bm-opcao__pe {
  border-color: var(--amarelo);
  background: var(--laranja);
}

.bm-opcao.is-escolhida .bm-opcao__pe svg {
  opacity: 1;
  transform: none;
}

.js .bm-opcao.is-escolhida {
  animation: bm-passo 0.7s var(--bounce);
}

@keyframes bm-passo {
  0% {
    transform: none;
  }
  35% {
    transform: translateX(-6px) rotate(-1.5deg) scale(1.02);
  }
  70% {
    transform: translateX(4px) rotate(1deg) scale(1.01);
  }
  100% {
    transform: none;
  }
}

/* sem escolha, o botão chama as opções: elas balançam uma depois da outra */
.js .bm-opcoes.is-chamando .bm-opcao:not(.is-escolhida) {
  animation: bm-chama 0.7s var(--ease);
}

.js .bm-opcoes.is-chamando .bm-opcao:nth-of-type(2) {
  animation-delay: 0.08s;
}

.js .bm-opcoes.is-chamando .bm-opcao:nth-of-type(3) {
  animation-delay: 0.16s;
}

.js .bm-opcoes.is-chamando .bm-opcao:nth-of-type(4) {
  animation-delay: 0.24s;
}

@keyframes bm-chama {
  30% {
    transform: rotate(-1.5deg) translateY(-4px);
  }
  60% {
    transform: rotate(1deg);
  }
}

/* ingresso da aplicação */
.bm-ticket {
  margin-top: clamp(56px, 14vw, 80px);
}

.bm-ticket .ci-ticket__titulo {
  min-height: 1.05em;
}

/* candidatura: investimento regular, perguntas e pedido de apoio, dentro do ingresso (fundo vinho) */
.bm-cand {
  display: grid;
  gap: 14px;
  padding: 26px clamp(24px, 6vw, 44px) 0;
  color: var(--rosa-claro);
}

.bm-cand__txt {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--rosa-texto);
}

.bm-cand__regular {
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--rosa-claro);
}

.bm-cand__regular strong {
  font-weight: 500;
  color: var(--amarelo);
}

.bm-perg {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.bm-perg legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--amarelo);
}

.bm-perg__op {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 246, 250, 0.28);
  border-radius: 12px;
  font-size: 0.9875rem;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.bm-perg__op:hover {
  border-color: rgba(255, 246, 250, 0.6);
}

.bm-perg__op input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--amarelo);
}

.bm-perg__op:has(input:checked) {
  border-color: var(--amarelo);
  background: rgba(252, 220, 117, 0.12);
}

.bm-perg__op:has(input:focus-visible) {
  outline: 3px solid var(--amarelo);
  outline-offset: 2px;
}

.bm-perg__op span {
  display: grid;
  gap: 3px;
}

.bm-perg__op strong {
  font-weight: 500;
  color: var(--rosa-claro);
}

.bm-perg__op small {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--rosa-texto);
}

.bm-perg__rotulo {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--amarelo);
}

.bm-perg__reais {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 0 14px;
  border: 1px solid rgba(255, 246, 250, 0.28);
  border-radius: 12px;
  font-size: 1.125rem;
  color: var(--amarelo);
}

.bm-perg__reais:focus-within {
  border-color: var(--amarelo);
  outline: 3px solid var(--amarelo);
  outline-offset: 2px;
}

.bm-perg__reais input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--rosa-claro);
  outline: none;
}

/* o foco aparece na caixa inteira (:focus-within, acima), não num segundo anel dentro dela */
.bm-perg__reais input:focus-visible {
  outline: none;
  box-shadow: none;
}

.bm-perg__reais input::placeholder {
  color: rgba(244, 215, 229, 0.5);
}

.bm-perg__rotulo u {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.bm-perg__parcela {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--rosa-claro);
}

.bm-perg__parcela strong {
  font-weight: 500;
  color: var(--amarelo);
}

.bm-perg__nota,
.bm-perg__dica {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--rosa-texto);
}

.bm-perg__dica a {
  color: var(--amarelo) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bm-cand[hidden],
.bm-perg[hidden],
.bm-perg__dica[hidden] {
  display: none;
}

/* a pergunta sem resposta chama a atenção quando a pessoa tenta seguir sem ela */
.js .bm-perg.is-chamando legend,
.js .bm-perg.is-chamando .bm-perg__rotulo {
  animation: bm-chama 0.9s var(--bounce) 2;
}

.bm-ticket .ci-btn[data-sem-escolha] {
  opacity: 0.7;
}

.bm-duvida {
  margin-top: 28px;
  text-align: center;
}

.bm-ticket__selo strong {
  font-size: 1.25rem;
}

.js .bm-ticket.is-carimbado .ci-ticket__selo {
  animation: ci-carimba 0.8s var(--bounce) both;
}

.js .bm-ticket.is-carimbado .ci-ticket__vista {
  animation: ci-sobe 0.6s var(--ease) both;
}

/* ---------- 7. dúvidas e fim ---------- */

.bm-faq .ci-shape {
  fill: var(--amarelo);
}

.bm-fim {
  text-align: center;
}

.bm-fim .ci-viva {
  margin-top: clamp(1.5rem, 6vw, 2.5rem) !important;
}

.bm-fim .ci-lead {
  margin-top: 0.4rem;
  color: var(--vinho-profundo);
}

/* ---------- tablet e desktop ---------- */

@media (min-width: 768px) {
  .bm-opcoes {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .bm-opcao {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nome"
      "meta";
    align-content: start;
    gap: 6px;
    padding: 26px 28px 28px 70px;
  }

}

/* ---------- movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .bm-opcao.ci-reveal,
  .js .bm-opcao.is-escolhida,
  .js .bm-opcoes.is-chamando .bm-opcao {
    transform: none;
    animation: none;
  }
}
