:root {
  --bg: #0f0f14;
  --card: #2a2b32;
  --text: #e9e9ee;
  --muted: #999;
  --accent: #ff4b4b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  position: relative;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.logo-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d1e23;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark {
  width: 14px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-block;
}

/* Contador de passos */
.step-counter {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Barra de progresso */
.progress-container {
  width: 100%;
  height: 3px;
  background: #333;
  position: relative;
}

.progress-bar {
  height: 3px;
  background: #ff4b4b;
  width: 0%;
  transition: width 0.3s ease;
}

/* Steps container */
.container {
  max-width: 720px;
  margin: auto;
  padding: 10px 20px 120px;
}

.step {
  display: none;
  animation: fade .3s ease;
}
.step.is-active {
  display: block;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Titles */
.title {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 0 10px;
  text-align: center;
}
.subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Grid options (cards) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  width: 100%;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  background: #2A2930; /* cor do fundo escuro */
  cursor: pointer;
  padding: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.card.active {
  border-color: var(--accent);
}

/* Fundo com imagem */
.photo {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* imagem contida */
  object-position: center;
}

.card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent); /* cor da faixa vermelha */
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: 10px 0;
  font-size: 14px;
}

/* Options (checkboxes/radios) */
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.option:hover {
  background: #3a3b42;
  transform: translateY(-2px);
}
.option input {
  display: none;
}
.option span {
  flex: 1;
  font-size: 15px;
}

.option .icon {
  width: 28px;
  height: 28px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Para opções com imagem */
.option .photo {
  position: relative;   /* não mais absolute */
  width: 60px;          /* tamanho fixo para o ícone */
  height: 60px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Para cards de imagem inteira (como a página 2 e 5) */
.full-card {
  width: 100%;
  max-width: 420px;
  margin: 20px auto;
  border: none;          /* remove borda */
  border-radius: 0;      /* remove borda arredondada */
  overflow: hidden;
  cursor: pointer;
  background: transparent; /* sem fundo */
  display: flex;
  justify-content: center;
  align-items: center;
}

.full-card .full-image {
  width: 100%;
  height: auto;          /* altura automática */
  aspect-ratio: 16 / 9;  /* opcional: mantém proporção widescreen */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}


.option input:checked + span,
.option input:checked ~ span {
  color: #fff;
  font-weight: 500;
}
.option input:checked ~ span::before {
  content: "✔ ";
  color: var(--accent);
}

/* Caixinha dos ícones (Página 3 e similares) */
.icon-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Info screens */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  align-items: center;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  max-width: 360px;
}

.info-item .photo {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 12px;
}

.info-points {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.info-points li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}
.info-points li::before {
  content: "▶";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Small footnote text */
.small {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

/* Continue button */
.cta {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  text-align: center;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(90deg, #ff4b4b, #ff6a4b);
  color: #fff;
  transition: opacity .2s;
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================
   IMAGENS DO QUIZ
   ============================ */

/* Para cards normais */
.card .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  border-radius: 12px;
}

/* Para full-card (páginas 2, 5 etc) */
.full-card .full-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* mantém proporção */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}



/* Página 1 */
.ph-1 { background-image: url("img/pg1/pagina1-1.webp"); }
.ph-2 { background-image: url("img/pg1/pagina1-2.webp"); }
.ph-3 { background-image: url("img/pg1/pagina1-3.webp"); }
.ph-4 { background-image: url("img/pg1/pagina1-4.webp"); }

/* Página 2 (imagem única) */
.ph-info { background-image: url("img/pg2/pagina2.webp"); }


/* Página 3 */
.ph-3-1 { background-image: url("img/pg3/pagina3-1.webp"); }
.ph-3-2 { background-image: url("img/pg3/pagina3-2.webp"); }
.ph-3-3 { background-image: url("img/pg3/pagina3-3.webp"); }
.ph-3-4 { background-image: url("img/pg3/pagina3-4.png"); }

/* Página 4 */
.ph-4-1 { background-image: url("img/pg4/pagina4-1.png"); }
.ph-4-2 { background-image: url("img/pg4/pagina4-2.png"); }
.ph-4-3 { background-image: url("img/pg4/pagina4-3.png"); }
.ph-4-4 { background-image: url("img/pg4/pagina4-4.png"); }

/* Página 5 (imagem única) */
.ph-pelvic { background-image: url("img/pg5/pagina5.webp"); }

/* Página 6 */
.ph-6-1 { background-image: url("img/pg6/pagina6-1.png"); }
.ph-6-2 { background-image: url("img/pg6/pagina6-2.png"); }
.ph-6-3 { background-image: url("img/pg6/pagina6-3.png"); }
.ph-6-4 { background-image: url("img/pg6/pagina6-4.png"); }
.ph-6-5 { background-image: url("img/pg6/pagina6-5.png"); }

/* Página 7 */
.ph-7-1 { background-image: url("img/pg7/pagina7-1.png"); }
.ph-7-2 { background-image: url("img/pg7/pagina7-2.png"); }
.ph-7-3 { background-image: url("img/pg7/pagina7-3.png"); }
.ph-7-4 { background-image: url("img/pg7/pagina7-4.png"); }

/* Página 8 */
.ph-8-1 { background-image: url("img/pg8/pagina8-1.png"); }
.ph-8-2 { background-image: url("img/pg8/pagina8-2.png"); }
.ph-8-3 { background-image: url("img/pg8/pagina8-3.png"); }
.ph-8-4 { background-image: url("img/pg8/pagina8-4.png"); }

/* Página 9 */
.ph-9-1 { background-image: url("img/pg9/pagina9-1.png"); }
.ph-9-2 { background-image: url("img/pg9/pagina9-2.png"); }
.ph-9-3 { background-image: url("img/pg9/pagina9-3.png"); }
.ph-9-4 { background-image: url("img/pg9/pagina9-4.png"); }
.ph-9-4 { background-image: url("img/pg9/pagina9-5.png"); }

/* Página 11 */
.ph-11-1 { background-image: url("img/pg11/pagina11-1.png"); }
.ph-11-2 { background-image: url("img/pg11/pagina11-2.png"); }
.ph-11-3 { background-image: url("img/pg11/pagina11-3.png"); }
.ph-11-4 { background-image: url("img/pg11/pagina11-4.png"); }

/* Página 13 */
.ph-13-1 { background-image: url("img/pg13/pagina13-1.png"); }
.ph-13-2 { background-image: url("img/pg13/pagina13-2.png"); }
.ph-13-3 { background-image: url("img/pg13/pagina13-3.png"); }
.ph-13-4 { background-image: url("img/pg13/pagina13-4.png"); }

/* Página 14 */
.ph-14-1 { background-image: url("img/pg14/pagina14-1.webp"); }
.ph-14-2 { background-image: url("img/pg14/pagina14-2.webp"); }
.ph-14-3 { background-image: url("img/pg14/pagina14-3.webp"); }
.ph-14-4 { background-image: url("img/pg14/pagina14-4.webp"); }


/* Imagens da tela Info (páginas 2 e 5) */
.full-card {
  width: 100%;
  max-width: 420px;
  margin: 20px auto;
  border: none;          /* 🔥 remove a borda */
  border-radius: 0;      /* 🔥 remove cantos arredondados */
  background: none;      /* 🔥 remove fundo cinza */
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}



.full-image {
  width: 100%;
  height: 100%;
  min-height: 240px;   /* 🔥 garante altura */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* === GRID CARDS COM IMAGEM EM CIMA E TEXTO EMBAIXO === */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.option-grid label {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  text-align: center;
  transition: border 0.2s, transform 0.2s;
}

.option-grid label:hover {
  transform: translateY(-3px);
}

.option-grid input {
  display: none;
}

.option-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 10px;
}

.option-grid span {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.option-grid input:checked + img,
.option-grid input:checked ~ img {
  border: 2px solid var(--accent);
}

.option-grid input:checked + span,
.option-grid input:checked ~ span {
  color: var(--accent);
  font-weight: 600;
}


/* progresso final */

/* Progress circle */
.progress-circle {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 20px auto;
}

.progress-circle svg {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
  overflow: visible;   /* garante que o stroke não corte */
}


.progress-circle circle {
  fill: none;
  stroke: #222;
  stroke-width: 15;
  stroke-linecap: round;
}

.progress-circle #progress {
  stroke: #ff4b4b;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.3s linear;
}

.percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: bold;
}

.highlight {
  color: #ff4b4b;
  font-weight: bold;
  display: flex;
  justify-content: center;  /* centraliza horizontal */
  align-items: center;      /* centraliza vertical */
}

h2 {
  text-align: center; /* centraliza todo o conteúdo dentro do h2 */
}


/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hidden {
  display: none;
}

.modal-content {
  background: #1e1e26;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  max-width: 300px;
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

.buttons {
  display: flex;
  justify-content: space-between;
}

.btn {
  flex: 1;
  margin: 0 5px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn.no {
  background: #fff;
  color: #000;
}

.btn.yes {
  background: #ff4b4b;
  color: #fff;
}

/*tela de email*/

/* Email Capture */
.email-input {
  display: flex;
  align-items: center;
  border: 1px solid #666;
  border-radius: 8px;
  padding: 12px;
  margin: 20px auto;
  max-width: 320px;
  background: #0f0f14;
}

.email-input .icon {
  font-size: 18px;
  margin-right: 10px;
  color: #fff;
}

.email-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.privacy {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
  text-align: center;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Botão */
.btn-primary {
  background: #ff4b4b;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  margin-top: 40px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 90%;
  max-width: 350px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: #ff3333;
}
