/* ==========================================================================
   Cellive Skin — estilos gerais
   Medidas tiradas do layout de referência (celular de 412px de largura).
   ========================================================================== */

/* Fontes: Acumin Pro e Acumin Pro Condensed, carregadas pelo kit da
   Adobe Fonts no <head> de cada página. */
:root {
  --font: "acumin-pro", "Acumin Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-condensed: "acumin-pro-condensed", "Acumin Pro Condensed", "Arial Narrow", sans-serif;

  --white: #ffffff;
  --black: #000000;
  --ink: #1a1a1a;          /* logo */
  --gray-text: #7e7d80;    /* subtítulo */
  --gray-soft: #a4a4a4;    /* itens "10 perguntas", "2 minutos"... */
  --gray-dark: #505050;    /* "Fórmula com tecnologia..." */
  --gray-legal: #535353;   /* texto da política */
  --blue: #b1c6dd;         /* botão e marca-texto */
  --blue-glow: rgba(177, 198, 221, 0.55);
  --verified: #46adfe;     /* selo de verificado */

  --page-max: 480px;
  --gutter: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ==========================================================================
   Espaço para imagem
   Cada foto da página fica dentro de um .slot. Enquanto o arquivo não existe,
   aparece um quadro tracejado com o nome do espaço (ex.: FOTO 1). Quando o
   arquivo é colocado em assets/img com o nome indicado, a foto aparece sozinha.
   ========================================================================== */
.slot {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: #f1f4f8;
  border: 1px dashed #9fb3cb;
  color: #6f86a3;
  font-family: var(--font);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
}

.slot::before {
  content: attr(data-label);
  padding: 2px;
}

.slot > img[hidden] {
  display: none;
}

.slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Com a foto carregada, o quadro tracejado some. */
.slot:has(> img:not([hidden])) {
  border-color: transparent;
  background: transparent;
}

/* ==========================================================================
   Página inicial (capa do quiz)
   ========================================================================== */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--page-max);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 47px var(--gutter) max(20px, calc(env(safe-area-inset-bottom) + 12px));
  text-align: center;
}

/* Logo */
.brand {
  display: block;
  width: 157px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

/* Os espaçadores dividem o espaço livre: o título fica centralizado entre a
   logo e o bloco de baixo, que fica sempre perto da borda inferior da tela. */
.spacer-top {
  flex: 1 1 0;
  min-height: 36px;
}

.spacer-bottom {
  flex: 1.15 1 0;
  min-height: 32px;
}

/* Botão + informações: ancorados na parte de baixo da tela */
.landing-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Título */
.hero-title {
  max-width: 350px;
  margin: 0 auto;
  font-family: var(--font);
  font-size: clamp(27px, 8.35vw, 34.4px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--black);
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
  font-family: var(--font-condensed);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Marca-texto azul atrás de "NOVA FASE" */
.highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0.2em;
  right: -0.1em;
  top: 0.5em;
  bottom: -0.03em;
  background: var(--blue);
}

/* Subtítulo */
.hero-subtitle {
  max-width: 360px;
  margin: 23px auto 0;
  font-size: clamp(15.5px, 4.5vw, 18.6px);
  font-weight: 300;
  line-height: 1.17;
  color: var(--gray-text);
}

/* ==========================================================================
   Botão principal
   Animação discreta: o botão "respira" (pulsa devagar) e afunda de leve
   ao ser tocado.
   ========================================================================== */
.cta-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 330px;
  min-height: 50px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(18px, 5.6vw, 22.5px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 14px var(--blue-glow);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: cta-breathe 2.6s ease-in-out infinite;
}

.cta:hover {
  filter: brightness(1.03);
  box-shadow: 0 4px 22px var(--blue-glow);
}

/* Afunda de leve ao tocar/clicar */
.cta:active {
  animation: none;
  transform: scale(0.96);
  box-shadow: 0 1px 6px var(--blue-glow);
}

.cta:focus-visible {
  outline: 3px solid #7f9cc0;
  outline-offset: 3px;
}

@keyframes cta-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    animation: none;
  }
}

/* ==========================================================================
   10 perguntas · 2 minutos · Entrega Grátis
   ========================================================================== */
.facts {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(8px, 3.4vw, 15px);
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  color: var(--gray-soft);
  font-size: clamp(10.5px, 3.15vw, 13px);
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1.6vw, 7px);
}

.facts svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: var(--gray-soft);
}

.facts .icon-truck {
  width: 27px;
}

/* ==========================================================================
   Prova social: fotos + "Evelyn Veras e +1.000 mulheres usam!"
   ========================================================================== */
.proof {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}

.avatars {
  display: flex;
  flex-shrink: 0;
}

.avatars .slot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border-width: 1px;
  box-shadow: 0 0 0 1.5px var(--white);
}

.avatars .slot + .slot {
  margin-left: -9px;
}

/* A 1ª linha fica no meio das fotos (32px → centro em 16px); o "USAM!" desce */
.proof-text {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: calc(16px - 0.65em) 0 0;
  font-size: 9.5px;
  line-height: 1.3;
  text-align: left;
  color: var(--black);
}

.proof-name {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.verified {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.proof-count strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Fórmula com tecnologia coreana
   ========================================================================== */
/* Área discreta: bandeira pequena e texto claro, para não tirar o foco */
.origin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.origin .flag {
  flex-shrink: 0;
  width: 22px;
  height: 17px;
  opacity: 0.8;
}

.origin p {
  margin: 0;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
  color: #9a9ea4;
}

/* ==========================================================================
   Aviso de privacidade (rodapé da capa)
   ========================================================================== */
.legal-note {
  margin: auto 0 0;
  padding-top: 48px;
  font-size: 10.3px;
  line-height: 1.4;
  color: var(--gray-legal);
}

.landing-bottom .legal-note {
  margin-top: 18px;
  padding-top: 0;
}

.legal-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* ==========================================================================
   Quiz
   Medidas tiradas do layout de referência (celular de 412px de largura).
   ========================================================================== */
.quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--page-max);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 47px 16px max(32px, calc(env(safe-area-inset-bottom) + 20px));
  text-align: center;
}

/* Logo centralizada com o botão de voltar à esquerda */
.quiz-top {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.quiz-back {
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7c7e80;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.quiz-back svg {
  width: 22px;
  height: 22px;
}

.quiz-back:hover {
  background: #f2f4f7;
}

.quiz-back:active {
  transform: scale(0.92);
}

.quiz-back:focus-visible {
  outline: 3px solid #7f9cc0;
  outline-offset: 2px;
}

/* Progresso 1 · 2 · 3 */
.stepper {
  display: flex;
  gap: 13px;
  margin: 28px 0 0;
  padding: 4px 8px;
  list-style: none;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.07);
}

.step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-bottom: 2px;
  border-radius: 50%;
  color: #7c7e80;
  font-family: var(--font-condensed);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.step.is-done {
  background: #dfe1e5;
  color: var(--white);
}

.step.is-current {
  background: var(--blue);
  color: var(--white);
  animation: step-pop 0.4s ease;
}

@keyframes step-pop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Pergunta */
.quiz-screen {
  width: 100%;
}

.quiz-title {
  max-width: 320px;
  margin: 30px auto 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--black);
}

.quiz-note {
  margin: 14px auto 0;
  max-width: 320px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--gray-text);
}

/* Opções de resposta */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 21px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 53px;
  padding: 11px 20px 11px 22px;
  border: 1.5px solid transparent;
  border-radius: 27px;
  background: var(--white);
  box-shadow: 0 2px 11px rgba(0, 0, 0, 0.07);
  color: var(--gray-dark);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
  animation: option-in 0.38s ease both;
  animation-delay: calc(var(--i, 0) * 60ms + 90ms);
}

.quiz-option:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.quiz-option:active {
  transform: scale(0.98);
}

.quiz-option:focus-visible {
  outline: 3px solid #7f9cc0;
  outline-offset: 2px;
}

.quiz-radio {
  position: relative;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  transition: border-color 0.2s ease;
}

.quiz-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform 0.2s ease;
}

/* Opção escolhida */
.quiz-option.is-selected {
  border-color: var(--blue);
  color: var(--black);
  box-shadow: 0 2px 14px var(--blue-glow);
}

.quiz-option.is-selected .quiz-radio {
  border-color: var(--blue);
}

.quiz-option.is-selected .quiz-radio::after {
  transform: scale(1);
}

/* ==========================================================================
   Etapa da fórmula
   ========================================================================== */

/* Barra de progresso (preta sobre cinza) */
.quiz-bar {
  position: relative;
  width: calc(100% - 28px);
  height: 13px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0e0e0;
}

.quiz-bar-fill {
  display: block;
  min-width: 13px;
  height: 100%;
  border-radius: 999px;
  background: var(--black);
  transition: width 0.6s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.quiz-bar:not([hidden]) + .quiz-screen .quiz-title {
  margin-top: clamp(16px, 3.4svh, 30px);
}

.quiz-subtitle {
  max-width: 300px;
  margin: 13px auto 0;
  color: #a3a3a3;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.13;
}

/* Pergunta tipo B: cartões com foto em grade 2 × 2 */
.quiz-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
  margin-top: 20px;
  padding: 0 2px;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 12px 0;
  border: 1.5px solid transparent;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: var(--gray-dark);
  font-family: var(--font);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
  animation: option-in 0.38s ease both;
  animation-delay: calc(var(--i, 0) * 60ms + 90ms);
}

.quiz-card-foto {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  font-size: 9px;
}

.quiz-card-text {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 4px 0;
  font-size: 15.5px;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.1;
}

.quiz-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.11);
}

.quiz-card:active {
  transform: scale(0.98);
}

.quiz-card:focus-visible {
  outline: 3px solid #7f9cc0;
  outline-offset: 2px;
}

.quiz-card.is-selected {
  border-color: var(--blue);
  color: var(--black);
  box-shadow: 0 2px 16px var(--blue-glow);
}

/* Pergunta tipo C: imagem de exemplo em 3:2, ocupando a largura toda.
   Se faltar altura, ela diminui inteira (sem cortar), centralizada. */
.quiz-figura {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 16px auto 0;
  border-radius: 16px;
  font-size: 9px;
  animation: option-in 0.4s ease 0.05s both;
}

.quiz-figura + .quiz-options {
  gap: 12px;
  margin-top: 16px;
}

.quiz-bar:not([hidden]) + .quiz-screen .quiz-option {
  min-height: 50px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 16.5px;
}

/* Fotos quadradas (1:1), ex.: idade. Cartões largos; a grade estreita um
   pouco, mantendo a proporção, se faltar altura. */
.quiz-cards-quadrado {
  gap: 12px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-cards-quadrado .quiz-card {
  padding: 8px 8px 0;
  border-radius: 18px;
}

.quiz-cards-quadrado .quiz-card-foto {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

/* Rótulo em duas linhas: "ENTRE" pequeno + faixa de idade em negrito */
.quiz-cards-quadrado .quiz-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 46px;
  font-size: 15.5px;
  line-height: 1.05;
}

.quiz-cards-quadrado .quiz-card-text small {
  color: #9a9ea4;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Muitos cartões (ex.: 6 sinais): grade de 3 colunas com foto grande */
.quiz-cards-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.quiz-cards-3 .quiz-card {
  padding: 6px 6px 0;
  border-radius: 16px;
}

.quiz-cards-3 .quiz-card-foto {
  border-radius: 11px;
}

.quiz-cards-3 .quiz-card-text {
  min-height: 36px;
  font-size: 13.5px;
  white-space: normal;
  line-height: 1.1;
}

.quiz-cards-3 .quiz-card.is-selected {
  background: #f5f8fb;
}

/* Botão "Continuar" (seleção múltipla) */
.quiz-continuar {
  display: block;
  width: 100%;
  max-width: 330px;
  min-height: 48px;
  margin: 18px auto 0;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 2px 14px var(--blue-glow);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease, transform 0.15s ease;
  animation: option-in 0.38s ease 0.45s both;
}

.quiz-continuar:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.quiz-continuar:not(:disabled):active {
  transform: scale(0.97);
}

.quiz-continuar:focus-visible {
  outline: 3px solid #7f9cc0;
  outline-offset: 3px;
}

/* Telas mais baixas: menos espaço entre os elementos */
@media (max-height: 720px) {
  .quiz-cards {
    gap: 12px 14px;
    margin-top: 14px;
  }

  .quiz-card {
    padding: 9px 11px 0;
  }

  .quiz-card-text {
    min-height: 38px;
  }

  .quiz-subtitle {
    margin-top: 8px;
  }

  .quiz-cards-3 {
    gap: 8px;
    margin-top: 12px;
  }

  .quiz-cards-3 .quiz-card {
    padding: 5px 5px 0;
  }

  .quiz-cards-3 .quiz-card-text {
    min-height: 32px;
    font-size: 13px;
  }

  .quiz-bar:not([hidden]) + .quiz-screen .quiz-options {
    gap: 10px;
  }

  .quiz-bar:not([hidden]) + .quiz-screen .quiz-option {
    min-height: 46px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .quiz-figura,
  .quiz-figura + .quiz-options {
    margin-top: 12px;
  }

  .quiz-continuar {
    min-height: 44px;
    margin-top: 12px;
  }
}

/* Espaço para o painel fixo embaixo */
.quiz.com-formula {
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* Painel "Combinação ideal para sua pele" (fixo embaixo) */
.formula {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: 100%;
  max-width: var(--page-max);
  padding: 8px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: var(--white);
  transform: translateX(-50%);
}

.formula::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7px;
  right: 7px;
  height: 1px;
  background: #e6e5e9;
}

.formula[hidden] {
  display: none;
}

.formula.is-entering {
  animation: formula-in 0.45s cubic-bezier(0.3, 0.7, 0.3, 1);
}

@keyframes formula-in {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}

.formula-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.formula-title,
.formula-count {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-style: normal;
  line-height: 1.2;
}

.formula-title {
  color: #a3a3a3;
  font-weight: 600;
}

.formula-count {
  color: var(--black);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.formula-count.is-pop {
  animation: count-pop 0.4s ease;
}

@keyframes count-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.3); }
}

.formula-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  margin-top: 6px;
}

.formula-pote {
  flex-shrink: 0;
  width: 12.3px;
  height: 40px;
}

.formula-pote-vazio {
  fill: #d9dbe0;
}

.formula-pote {
  transform-origin: 50% 100%;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.formula-pote-cheio {
  fill: #1b1b1b;
  transform: translateY(157px);
  transition: transform 1s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.formula-pote-cheio.sem-transicao {
  transition: none;
}

.formula-empty {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  color: #d5d7db;
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  pointer-events: none;
}

.formula-empty[hidden] {
  display: none;
}

/* Lista de ativos: o último fica aberto com o nome; os anteriores viram
   bolinhas que vão se juntando (uma por cima da outra) ao lado do pote. */
.formula-list {
  --sobrepor: 0px;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  height: 44px;
  margin: 0;
  padding: 0 2px;
  overflow: hidden;
  list-style: none;
}

/* Selo do último ativo: branco, borda fina, tipografia de rótulo técnico */
.ativo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 290px;
  height: 40px;
  padding: 3px 14px 3px 3px;
  overflow: hidden;
  border: 1px solid #d3d8df;
  border-radius: 999px;
  background: var(--white);
  transition:
    max-width 0.55s cubic-bezier(0.3, 0.7, 0.3, 1),
    height 0.4s ease,
    padding 0.4s ease,
    margin 0.4s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.25s ease;
}

.ativo + .ativo {
  margin-left: 8px;
}

.ativo-textos {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 10px;
  white-space: nowrap;
  transition: opacity 0.35s ease 0.18s;
}

.ativo-rotulo {
  color: #8b929b;
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.ativo-nome {
  color: var(--black);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Ativos anteriores: bolinhas com borda branca, empilhadas */
.ativo.is-collapsed {
  max-width: 28px;
  height: 28px;
  padding: 0;
  border-color: var(--white);
  border-width: 2px;
  box-shadow: 0 0 0 1px #d3d8df;
}

.ativo.is-collapsed + .ativo {
  margin-left: calc(-1 * var(--sobrepor));
}

.ativo.is-collapsed + .ativo:not(.is-collapsed) {
  margin-left: 8px;
}

.ativo.is-collapsed .ativo-icone {
  width: 24px;
  height: 24px;
}

.ativo.is-collapsed .ativo-textos {
  opacity: 0;
  transition-delay: 0s;
}

/* Enquanto a bolinha está voando, o selo novo fica invisível e fechado */
.ativo.is-arriving {
  max-width: 40px;
  opacity: 0;
  transition: none;
}

.ativo.is-arriving .ativo-textos {
  opacity: 0;
}

/* Final: as bolinhas entram no pote, que vai para o meio do painel */
.formula-list {
  transition: opacity 0.3s ease;
}

.formula-list.is-emptying,
.formula.is-concluded .formula-list {
  opacity: 0;
}

.formula.is-concluded .formula-pote {
  transform: translateX(var(--centro, 0px)) scale(1.12);
}

.formula-title {
  transition: color 0.3s ease;
}

.formula.is-concluded .formula-title {
  color: var(--black);
  font-weight: 700;
  animation: titulo-troca 0.5s ease;
}

@keyframes titulo-troca {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Bolinha do ativo (a imagem entra aqui; sem imagem, mostra bolhas cinza) */
.ativo-icone {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  transition: width 0.35s ease, height 0.35s ease;
  border: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.9'%3E%3Ccircle cx='13' cy='14' r='6'/%3E%3Ccircle cx='23.5' cy='21' r='4.5'/%3E%3Ccircle cx='21' cy='9.5' r='2.5'/%3E%3Ccircle cx='12' cy='25' r='2'/%3E%3C/g%3E%3C/svg%3E") center / cover,
    radial-gradient(circle at 35% 30%, #f4f5f7, #cfd3d9);
}

.ativo-icone > img {
  border-radius: 50%;
}

.ativo-voando {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-card,
  .formula.is-entering,
  .formula-count.is-pop {
    animation: none;
  }
  .ativo,
  .formula-pote-cheio,
  .quiz-bar-fill {
    transition: none;
  }
  .quiz-figura,
  .quiz-continuar,
  .formula.is-concluded .formula-title {
    animation: none;
  }
  .formula-pote {
    transition: none;
  }
}

/* ==========================================================================
   Análise (carregamento depois da fórmula)
   Rosto em traço fino sendo "escaneado" dentro de um cartão azul suave.
   ========================================================================== */
.quiz[data-tela="analise"] .quiz-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 28px;
}

.analise {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Título no estilo do site: parte fina condensada + parte em negrito */
.analise-titulo {
  margin: 22px 0 0;
  color: #3d3d3d;
  font-size: 23px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.analise-titulo-leve {
  font-family: var(--font-condensed);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.analise-titulo-forte {
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
}

.analise-sub {
  max-width: 300px;
  margin-top: 8px;
}

/* Cartão do rosto */
.analise-cartao {
  position: relative;
  width: 100%;
  height: clamp(210px, 34svh, 270px);
  margin-top: 20px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  animation: option-in 0.4s ease both;
}

.analise-rosto {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 96%;
  aspect-ratio: 200 / 240;
  transform: translate(-50%, -46%);
}

.analise-rosto-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.analise-cabelo {
  fill: #eceded;
}

.analise-face {
  fill: var(--white);
  stroke: #c4c7cb;
  stroke-width: 1.6;
}

/* Linha de escaneamento que sobe e desce */
.analise-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 34px;
  background: linear-gradient(180deg, rgba(177, 198, 221, 0) 0%, rgba(177, 198, 221, 0.38) 100%);
  border-bottom: 2px solid #7f9cc0;
  box-shadow: 0 6px 14px -6px rgba(127, 156, 192, 0.8);
  animation: analise-scan 1.35s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes analise-scan {
  from { transform: translateY(-40px); }
  to { transform: translateY(calc(clamp(210px, 34svh, 270px) - 10px)); }
}

/* Pontos que acendem no rosto, com etiqueta */
.analise-ponto {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #7f9cc0;
  box-shadow: 0 1px 4px rgba(97, 111, 124, 0.35);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.analise-ponto.is-visivel {
  opacity: 1;
  transform: scale(1);
}

.analise-ponto.is-ativo::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #7f9cc0;
  animation: analise-pulso 0.9s ease-out infinite;
}

@keyframes analise-pulso {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(3.2); opacity: 0; }
}

/* Barra de progresso lisa */
.analise-progresso {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 18px;
}

.analise-barra {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceded;
}

.analise-barra-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #8eabcf;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.analise-pct {
  min-width: 40px;
  color: #616f7c;
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Uma etapa por vez: entra por baixo, ganha o check e sai por cima */
.analise-palco {
  position: relative;
  width: 100%;
  height: 46px;
  margin-top: 14px;
}

.analise-passo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--black);
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.analise-passo.is-ativa {
  opacity: 1;
  transform: none;
}

.analise-passo.is-saindo,
.analise-passo.is-saiu {
  opacity: 0;
  transform: translateY(-16px);
}

.analise-icone {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #7f9cc0;
}

.analise-icone svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analise-status {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #e3e8ef;
  border-top-color: #7f9cc0;
  border-radius: 50%;
  animation: analise-gira 0.7s linear infinite;
}

.analise-passo.is-feita .analise-status {
  border-color: var(--blue);
  background: var(--blue);
  animation: analise-check-pop 0.3s ease;
}

.analise-passo.is-feita .analise-status::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

@keyframes analise-gira {
  to { transform: rotate(360deg); }
}

@keyframes analise-check-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Três pontinhos: em qual etapa está */
.analise-pontinhos {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.analise-pontinhos span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e3e5e8;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.analise-pontinhos span.is-atual {
  width: 18px;
  background: #7f9cc0;
}

.analise-pontinhos span.is-feito {
  background: var(--blue);
}

/* No fim, a linha de escaneamento some */
.analise.is-completa .analise-scan {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (max-height: 700px) {
  .analise-titulo {
    margin-top: 14px;
    font-size: 21px;
  }

  .analise-cartao {
    margin-top: 14px;
  }

  .analise-palco {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analise-cartao,
  .analise-scan,
  .analise-ponto.is-ativo::before,
  .analise-status,
  .analise-passo.is-feita .analise-status {
    animation: none;
  }

}

/* ==========================================================================
   Montagem da fórmula
   ========================================================================== */
.quiz[data-tela="montagem"] .quiz-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 28px;
}

.montagem {
  --palco: min(330px, 86vw, 46svh);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Títulos "parte fina + PARTE EM NEGRITO" (mesmo estilo da análise) */
.titulo-leve {
  font-family: var(--font-condensed);
  font-weight: 400;
}

.titulo-forte {
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
}

.montagem .analise-titulo {
  font-size: 26px;
}

.montagem .analise-titulo .titulo-leve {
  letter-spacing: -0.005em;
}

.montagem-palco {
  position: relative;
  width: var(--palco);
  height: var(--palco);
  margin-top: 26px;
}

/* Luz azul suave atrás do pote; cresce no final */
.montagem-luz {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 198, 221, 0.55) 0%, rgba(177, 198, 221, 0.22) 38%, rgba(177, 198, 221, 0) 68%);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0.8;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 1.1s ease;
}

/* Anel tracejado com os ativos, girando devagar */
.montagem-anel {
  position: absolute;
  inset: 0;
  border: 2px dashed #dfe1e4;
  border-radius: 50%;
  animation: montagem-gira 18s linear infinite;
}

@keyframes montagem-gira {
  to { transform: rotate(360deg); }
}

.montagem-bolha {
  --r: calc(var(--palco) / 2);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(97, 111, 124, 0.18);
  opacity: 0;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a))) scale(0.2);
  transition:
    transform 0.55s cubic-bezier(0.3, 1.3, 0.5, 1),
    opacity 0.35s ease;
}

.montagem-bolha.is-visivel {
  opacity: 1;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a))) scale(1);
}

/* Entrando no pote: vai para o centro e encolhe */
.montagem-bolha.is-entrando {
  opacity: 0;
  transform: rotate(var(--a)) translateY(-8%) rotate(calc(-1 * var(--a))) scale(0.25);
  transition:
    transform 0.45s cubic-bezier(0.55, 0, 0.3, 1),
    opacity 0.45s ease-in;
}

/* Pote grande no centro */
.montagem-pote {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 72%;
  aspect-ratio: 50 / 163;
  transform: translate(-50%, -50%);
}

.montagem-pote svg {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}

/* Leve "gole" a cada ativo que entra */
.montagem-pote svg.is-gole {
  animation: montagem-gole 0.32s ease-out;
}

@keyframes montagem-gole {
  0% { transform: scale(1, 1); }
  40% { transform: scale(1.045, 0.975); }
  75% { transform: scale(0.99, 1.012); }
  100% { transform: scale(1, 1); }
}

.montagem-liquido {
  fill: #1b1b1b;
  transform: translateY(157px);
  transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.3, 1);
}

/* Textos de baixo: andamento → concluída */
.montagem-status {
  position: relative;
  width: 100%;
  height: 92px;
  margin-top: 26px;
  text-align: center;
}

.montagem-andamento,
.montagem-pronto {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.montagem-legenda {
  margin: 0;
  color: #3d3d3d;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.montagem-ativo {
  min-height: 24px;
  margin: 10px 0 0;
  color: #8a8e94;
  font-family: var(--font-condensed);
  font-size: 19px;
  font-weight: 400;
  text-transform: uppercase;
}

.montagem-ativo.is-troca {
  animation: montagem-troca 0.3s ease;
}

@keyframes montagem-troca {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.montagem-pronto {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.montagem-check {
  position: relative;
  width: 44px;
  height: 44px;
  margin-top: 14px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.2s;
}

.montagem-check::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 17px;
  height: 9px;
  border-left: 3.5px solid var(--white);
  border-bottom: 3.5px solid var(--white);
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* Fórmula concluída */
.montagem.is-concluida .montagem-andamento {
  opacity: 0;
  transform: translateY(-10px);
}

.montagem.is-concluida .montagem-pronto {
  opacity: 1;
  transform: none;
}

.montagem.is-concluida .montagem-check {
  transform: scale(1);
}

.montagem.is-concluida .montagem-luz {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.35);
}

.montagem.is-concluida .montagem-pote {
  animation: montagem-pronto 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
}

@keyframes montagem-pronto {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.06); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@media (max-height: 700px) {
  .montagem-palco {
    margin-top: 16px;
  }

  .montagem-status {
    margin-top: 16px;
  }

  .montagem-legenda {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .montagem-anel,
  .montagem-pote svg.is-gole,
  .montagem-ativo.is-troca,
  .montagem.is-concluida .montagem-pote {
    animation: none;
  }
}

/* Elementos escondidos em algumas telas (ex.: carregamento) */
.quiz-back[hidden],
.stepper[hidden] {
  display: none;
}

/* ==========================================================================
   Tela de carregamento (0% → 100%)
   ========================================================================== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-ring {
  position: relative;
  width: 154px;
  height: 154px;
  margin-top: 59px;
}

.loading-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* começa no topo e gira no sentido horário */
}

.loading-track,
.loading-bar {
  fill: none;
  stroke-width: 14.3;
}

.loading-track {
  stroke: #e0e0e0;
}

.loading-bar {
  stroke: var(--blue);
  stroke-linecap: round;
  opacity: 0;
}

.loading-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  color: #616f7c;
  font-family: var(--font-condensed);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.loading-ring.is-complete {
  animation: ring-done 0.35s ease;
}

@keyframes ring-done {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.loading-text {
  max-width: 250px;
  margin: 70px auto 0;
  color: #616f7c;
  font-family: var(--font-condensed);
  font-size: 23.6px;
  font-weight: 600;
  line-height: 1.19;
  animation: option-in 0.45s ease 0.15s both;
}

.loading-line {
  display: block;
}

.loading-line + .loading-line {
  margin-top: 5px;
}

.loading-text em {
  color: var(--black);
  font-family: var(--font);
  font-size: 1.04em;
  font-style: italic;
  font-weight: 700;
}

.loading-photo {
  display: grid;
  width: min(315px, 100%);
  aspect-ratio: 702 / 440;
  margin: 13px auto 0;
  border-radius: 18px;
  font-size: 9px;
  animation: option-in 0.5s ease 0.3s both;
}

/* Troca de pergunta: sai para um lado e entra pelo outro */
.quiz-screen.is-leaving {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.17s ease, transform 0.17s ease;
}

.quiz-screen.is-leaving-back {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.17s ease, transform 0.17s ease;
}

.quiz-screen.enter-forward .quiz-title {
  animation: quiz-in-forward 0.32s ease both;
}

.quiz-screen.enter-back .quiz-title {
  animation: quiz-in-back 0.32s ease both;
}

@keyframes quiz-in-forward {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes quiz-in-back {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: none; }
}

@keyframes option-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .step.is-current,
  .loading-ring.is-complete,
  .loading-text,
  .loading-photo,
  .quiz-option,
  .quiz-screen.enter-forward .quiz-title,
  .quiz-screen.enter-back .quiz-title {
    animation: none;
  }

  .quiz-screen.is-leaving,
  .quiz-screen.is-leaving-back {
    transform: none;
  }
}

/* ==========================================================================
   Páginas de texto (Política de Privacidade)
   ========================================================================== */
.doc {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px var(--gutter) 64px;
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.6;
}

.doc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
  text-align: center;
}

.doc-header .brand {
  width: 140px;
}

.doc h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
}

.doc-updated {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--gray-text);
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}

.doc h3 {
  margin: 22px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.doc p,
.doc ul {
  margin: 0 0 12px;
}

.doc ul {
  padding-left: 20px;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  color: #3d6a9e;
}

.doc-summary {
  margin: 0 0 8px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f1f5fa;
}

.doc-summary p:last-child,
.doc-summary ul:last-child {
  margin-bottom: 0;
}

.doc-toc {
  columns: 2 220px;
  column-gap: 24px;
  font-size: 14px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  font-weight: 600;
  text-decoration: none;
}
