/* Base styling */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
  font-family: 'Poppins', system-ui, -apple-system, sans-serif; 
  background: #fafafa; 
  color: #1a1a1a; 
  min-height: 100vh; 
  -webkit-font-smoothing: antialiased; 
  display: flex;
  flex-direction: column;
}

/* Header */
.hdr { 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 1rem; 
  background: #fff; 
  border-bottom: 1px solid #eee; 
}
.back-btn { 
  position: absolute; 
  left: 1rem; 
  color: #1a1a1a; 
  display: flex; 
  align-items: center; 
  text-decoration: none; 
}
.back-btn svg { width: 24px; height: 24px; }
.logo-container { display: flex; align-items: center; }
.hdr-logo { font-family: 'Anton', system-ui, sans-serif; color: #c2426b; font-size: 1.875rem; font-weight: 400; letter-spacing: .05em; }
.hdr-badge { font-size: .75rem; background: #f5f5f5; padding: .125rem .5rem; border-radius: .25rem; color: #666; margin-left: .5rem; }

/* Progress Bar */
.progress-container { width: 100%; height: 3px; background: #eee; }
.progress-bar { height: 100%; background: #c2426b; transition: width 0.3s ease; }

/* Shared Button */
.btn-pink { 
  background: #c2426b; 
  color: #fff; 
  border: none; 
  border-radius: 8px; 
  padding: 1rem 2rem; 
  font-size: 1rem; 
  font-weight: 600; 
  width: 100%; 
  max-width: 400px; 
  cursor: pointer; 
  text-decoration: none; 
  display: inline-flex; 
  justify-content: center; 
  align-items: center; 
  transition: background 0.2s; 
  text-transform: uppercase;
}
.btn-pink:hover { background: #bf4069; }

/* Step 2 */
.step2-container { display: flex; flex-direction: column; align-items: center; padding: 3rem 1rem; max-width: 600px; margin: 0 auto; text-align: center; }
.step2-img { width: 100%; max-width: 400px; border-radius: 16px; object-fit: cover; aspect-ratio: 16/10; margin-bottom: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.step2-title { font-size: 1.6rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1rem; line-height: 1.3; }
.step2-subtitle { font-size: 1rem; color: #666; margin-bottom: 2.5rem; line-height: 1.5; padding: 0 1rem; }

/* Step 3 */
.step3-container { display: flex; flex-direction: column; align-items: center; padding: 3rem 1rem; max-width: 800px; margin: 0 auto; }
.step3-title { font-size: 1.6rem; font-weight: 700; color: #1a1a1a; margin-bottom: 3rem; text-align: center; }
.step3-content { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4rem; width: 100%; }
.options { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 300px; }
.option-btn { background: #fff; border: 1px solid #eee; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border-radius: 12px; padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 600; color: #1a1a1a; text-align: left; cursor: pointer; transition: all 0.2s; text-decoration: none; display: block; }
/* dedo nao passa o mouse: em celular o :hover fica grudado depois do toque (21/08/2026) */
@media (hover: hover) { .option-btn:hover { border-color: #c2426b; box-shadow: 0 4px 10px rgba(194, 66, 107, 0.1); } }
.step3-img { max-width: 250px; object-fit: contain; }

@media(max-width: 768px) {
  .step3-content { flex-direction: column-reverse; gap: 2rem; }
  .step3-title { margin-bottom: 2rem; }
}

/* Step 4 (Sim / Nao) */
.split-layout { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 4rem 2rem; max-width: 1000px; margin: 0 auto; gap: 4rem; flex: 1; }
.text-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: 500px; }
.split-title { font-size: 2rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1.5rem; line-height: 1.2; }
.split-text { font-size: 1.1rem; color: #666; line-height: 1.6; }
.split-text strong { color: #1a1a1a; font-weight: 700; }
.image-content { flex: 1; display: flex; justify-content: center; align-items: center; }
.rounded-image { width: 100%; max-width: 450px; border-radius: 24px; object-fit: cover; aspect-ratio: 4/3; background: #f5f5f5; }
.bottom-action { display: flex; justify-content: center; padding: 2rem 1rem 4rem; }

@media(max-width: 768px) {
  .split-layout { flex-direction: column; padding: 2rem 1rem; gap: 2rem; text-align: center; }
  .text-content { align-items: center; }
  .split-title { font-size: 1.6rem; }
}

/* Step 5 (Objetivo) */
.step5-container { display: flex; flex-direction: column; align-items: center; padding: 4rem 1rem; max-width: 600px; margin: 0 auto; width: 100%; }
.step5-title { font-size: 1.6rem; font-weight: 700; color: #1a1a1a; margin-bottom: 2.5rem; text-align: center; }
.step5-title span { color: #c2426b; }
.options-list { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 500px; }
.option-list-item { display: flex; align-items: center; background: #fff; border: 1px solid #eee; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border-radius: 12px; padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 600; color: #1a1a1a; text-decoration: none; cursor: pointer; transition: all 0.2s; }
@media (hover: hover) { .option-list-item:hover { border-color: #c2426b; box-shadow: 0 4px 10px rgba(194, 66, 107, 0.1); } }
.option-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #fdf2f5; border-radius: 8px; color: #c2426b; margin-right: 1.5rem; }
.option-icon svg { width: 20px; height: 20px; }

/* Multi-select Options */
.option-multi { display: flex; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 0.75rem 1.25rem; margin-bottom: 0.5rem; cursor: pointer; transition: all 0.2s; text-decoration: none; color: #1a1a1a; width: 100%; }
@media (hover: hover) { .option-multi:hover { border-color: #c2426b; box-shadow: 0 4px 10px rgba(194, 66, 107, 0.1); } }
.option-multi.selected { border-color: #c2426b; background: #fdf2f5; }
.option-multi-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; margin-right: 1.25rem; background: #f5f5f5; }
.option-multi-icon { width: 32px; height: 32px; background: #fdf2f5; color: #c2426b; border-radius: 8px; display: flex; justify-content: center; align-items: center; margin-right: 1.25rem; flex-shrink: 0; }
.option-multi-icon svg { width: 18px; height: 18px; }
.option-multi-text { flex: 1; font-weight: 600; font-size: 0.95rem; text-align: left; }
.option-multi-circle { width: 24px; height: 24px; border: 2px solid #ccc; border-radius: 3px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; margin-left: auto; }
.option-multi.selected .option-multi-circle { border-color: #c2426b; background: #c2426b; }
.option-multi.selected .option-multi-circle::after { content: ''; width: 6px; height: 11px; border: solid #fff;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px,-1px); }

/* Toggle */
.toggle-container { display: flex; align-items: center; margin-bottom: 1.5rem; cursor: pointer; align-self: flex-start; }
.toggle-switch { width: 36px; height: 20px; background: #eee; border-radius: 12px; position: relative; transition: background 0.3s; margin-right: 0.75rem; }
.toggle-switch::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.toggle-container.active .toggle-switch { background: #c2426b; }
.toggle-container.active .toggle-switch::after { transform: translateX(16px); }
.toggle-text { font-size: 0.9rem; color: #666; font-weight: 600; }

/* Grid Cards (Step 10) */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; width: 100%; max-width: 800px; }
.card-item { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 1rem; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #1a1a1a; }
@media (hover: hover) { .card-item:hover { border-color: #c2426b; box-shadow: 0 4px 10px rgba(194, 66, 107, 0.1); } }
.card-item.selected { border-color: #c2426b; background: #fdf2f5; }
.card-img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; margin-bottom: 1rem; background: #fdfdfd; }
.card-text { font-weight: 600; font-size: 0.95rem; }
@media(max-width: 768px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Step 9 Content */
.step9-container { display: flex; flex-direction: column; align-items: center; padding: 2rem 1rem; max-width: 600px; margin: 0 auto; text-align: center; }
.step9-img { width: 100%; max-width: 400px; border-radius: 16px; object-fit: cover; object-position: 50% 18%; aspect-ratio: 4/3; margin-bottom: 2rem; background: #f5f5f5; }
.step9-title { font-size: 1.4rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1.5rem; line-height: 1.4; }
.step9-title span { color: #c2426b; }
.step9-text { font-size: 0.95rem; color: #666; line-height: 1.6; margin-bottom: 2rem; }

/* Inactive button */
.btn-pink.disabled { opacity: 0.75; cursor: not-allowed; }
.btn-pink.disabled:hover { background: #c2426b; }

/* Single Card Horizontal (Step 11) */
.option-single-card { display: flex; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 0.5rem 1.5rem; margin-bottom: 1rem; cursor: pointer; transition: all 0.2s; text-decoration: none; color: #1a1a1a; width: 100%; max-width: 500px; }
@media (hover: hover) { .option-single-card:hover { border-color: #c2426b; box-shadow: 0 4px 10px rgba(194, 66, 107, 0.1); } }
.option-single-card.selected { border-color: #c2426b; background: #fdf2f5; }
.option-single-card-img { width: 64px; height: 64px; object-fit: contain; margin-right: 1.5rem; border-radius: 8px; }
.option-single-card-text { font-weight: 600; font-size: 1rem; }

/* Emoji Options (Step 14) */
.option-emoji { display: flex; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; cursor: pointer; transition: all 0.2s; text-decoration: none; color: #1a1a1a; width: 100%; max-width: 500px; justify-content: flex-start; gap: 1rem; }
@media (hover: hover) { .option-emoji:hover { border-color: #c2426b; box-shadow: 0 4px 10px rgba(194, 66, 107, 0.1); } }
.option-emoji span.emoji { font-size: 1.5rem; }
/* rostos em contorno no lugar do emoji (21/08/2026) — mesmo quadradinho rosa dos demais icones */
.option-emoji span.icone { width: 40px; height: 40px; flex-shrink: 0; background: #fdf2f5; color: #c2426b;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.option-emoji span.icone svg { width: 24px; height: 24px; }
.option-emoji span.text { font-weight: 600; font-size: 1rem; }

/* Step 15 Content */
.step15-container { display: flex; flex-direction: column; align-items: center; padding: 4rem 1rem; max-width: 600px; margin: 0 auto; text-align: center; }
.step15-img { width: 100%; max-width: 450px; border-radius: 24px; object-fit: cover; margin-bottom: 2rem; background: #f5f5f5; }
.step15-title { font-size: 1.6rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1rem; }
.step15-text { font-size: 1rem; color: #666; line-height: 1.6; margin-bottom: 2.5rem; padding: 0 1rem; }

/* No Image Multi Option */
.option-multi.no-img { padding: 1.25rem 1.5rem; }

/* Scrollable Ruler Components (Step 16-18) */
.ruler-container { width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.unit-toggle { display: flex; background: #f5f5f5; border-radius: 20px; padding: 4px; margin-bottom: 2rem; }
.unit-btn { background: transparent; font-family: inherit; border: none; padding: 0.5rem 1.5rem; border-radius: 16px; font-weight: 600; color: #666; cursor: pointer; transition: 0.2s; }
.unit-btn.active { background: #c2426b; color: #fff; }
.ruler-value { font-size: 3.5rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1rem; line-height: 1; display: flex; align-items: baseline; justify-content: center; width: 100%; }
.ruler-unit { font-size: 1rem; font-weight: 600; color: #999; margin-left: 0.25rem; }

.scroll-ruler-wrapper { position: relative; width: 100%; max-width: 400px; height: 80px; margin: 0 auto 1rem; overflow: hidden; }
.scroll-ruler-pointer { position: absolute; top: 0; left: 50%; width: 2px; height: 45px; background-color: #c2426b; transform: translateX(-50%); z-index: 10; pointer-events: none; }
.scroll-ruler-pointer::after { content: ''; position: absolute; bottom: -5px; left: -4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #c2426b; }
.scroll-ruler-area { width: 100%; height: 100px; overflow-x: auto; overscroll-behavior-x: contain; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.scroll-ruler-area::-webkit-scrollbar { display: none; }
.scroll-ruler-area:active { cursor: grabbing; }
.scroll-ruler-track { display: flex; height: 80px; align-items: flex-start; padding: 0 calc(50% - 1px); border-top: 1px solid #ccc; margin-top: 0; }
.ruler-tick { position: relative; flex-shrink: 0; width: 10px; height: 15px; border-left: 1px solid #ccc; }
.ruler-tick.major { height: 30px; }
.ruler-tick.major::after { content: attr(data-val); position: absolute; top: 35px; left: -15px; width: 30px; text-align: center; font-size: 11px; font-weight: 600; color: #b0b0b0; }

.ruler-hint { color: #666; font-size: 0.85rem; margin-bottom: 1rem; text-align: center; width: 100%; }

/* Info box IMC/Age */
.info-box { background: #f9f9f9; border-radius: 12px; padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 2rem; width: 100%; text-align: left; }
.info-icon { width: 20px; height: 20px; background: #fdf2f5; color: #c2426b; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.75rem; font-weight: bold; flex-shrink: 0; margin-top: 2px; }
.info-text { font-size: 0.85rem; color: #666; line-height: 1.5; }
.info-text strong { color: #f28b4c; font-weight: 700; } /* Matches IMC color from print */

/* Input Age */
.age-input { width: 100%; border: 1px solid #eee; border-radius: 12px; padding: 1.25rem; font-size: 1rem; font-family: 'Poppins', sans-serif; text-align: left; color: #1a1a1a; outline: none; transition: border-color 0.2s; margin-bottom: 1rem; }
.age-input:focus { border-color: #c2426b; }

/* Vertical Cards (Step 20) */
.card-vertical { display: flex; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; cursor: pointer; transition: all 0.2s; text-decoration: none; color: #1a1a1a; width: 100%; max-width: 500px; }
@media (hover: hover) { .card-vertical:hover { border-color: #c2426b; box-shadow: 0 4px 10px rgba(194, 66, 107, 0.1); } }
.card-vertical.selected { border-color: #c2426b; background: #fdf2f5; }
.card-vertical-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; margin-right: 1.5rem; background: #f5f5f5; }
.card-vertical-content { flex: 1; text-align: left; }
.card-vertical-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.card-vertical-subtitle { font-size: 0.85rem; color: #666; line-height: 1.3; }


/* ── Ajustes de mobile (21/08/2026) ─────────────────────────────── */
@media (max-width: 768px) {
  /* menos respiro entre a barra de progresso e o titulo */
  .step5-container { padding-top: 1.5rem !important; }
  .step5-title { margin-bottom: 1.5rem; }

  /* botao de opcao mais alto — alvo de toque confortavel */
  .option-multi { min-height: 72px; padding: 0.9rem 1.25rem; }
  .option-single-card, .option-btn { min-height: 72px; display: flex; align-items: center; }

  /* Continuar fixo no rodape, aparece so quando ha selecao */
  .btn-continuar-sticky {
    position: fixed; left: 50%; transform: translateX(-50%) translateY(120%);
    bottom: 16px; width: calc(100% - 2rem); max-width: 420px; z-index: 50;
    opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  }
  .btn-continuar-sticky.visivel {
    transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto;
  }
  /* respiro pro botao fixo nao cobrir a ultima opcao */
  .tem-sticky { padding-bottom: 96px; }
}

/* emoji dentro do mesmo quadradinho rosa dos icones (21/08/2026) */
.option-multi-icon.emoji { font-size: 18px; line-height: 1; }

/* telas de confirmacao: sem barra de progresso (21/08/2026) */
.progress-container.oculta { display: none; }

/* titulo maior: ajusta o tamanho no celular (21/08/2026) */
@media (max-width: 768px) {
  .hdr-logo { font-size: 1.35rem; letter-spacing: .03em; white-space: nowrap; }
}


/* ── step4-sim / step4-nao: caber sem rolar no celular (21/08/2026) ─── */
@media (max-width: 768px) {
  .split-layout { padding: 1.25rem 1rem !important; gap: 1rem !important; }
  .split-text { font-size: 1rem !important; line-height: 1.45 !important; }
  .split-layout h1 { margin-bottom: 1rem !important; }
  .split-image img, .split-layout img { max-height: 260px !important; width: auto !important; }
  /* menos respiro embaixo do botao, pra sobrar altura pra imagem */
  .split-layout + .bottom-action { padding: 1.25rem 1rem 2rem !important; }
  /* toggle "melhorar o corpo inteiro" mais perto da primeira opcao */
  .toggle-container { margin-bottom: 0.75rem !important; }
}


/* ── step12: foto como fundo, botoes por cima (igual step1) — 21/08/2026 ─── */
/* desktop: mantem o layout lado a lado que ja existia */
.hero-bg-layout .split-title { font-size: 1.8rem; margin-bottom: 2rem; text-align: center; width: 100%; }
.hero-bg-layout .options { width: 100%; max-width: 400px; margin: 0 auto; }
.hero-bg-layout .option-btn { text-align: center; margin-bottom: 1rem; }
.hero-bg-layout .rounded-image { background: none; border-radius: 0; }

@media (max-width: 768px) {
  .hero-bg-layout { position: relative; overflow: hidden; flex-direction: column; align-items: stretch;
                    padding: 1.5rem 1rem 2rem !important; gap: 0 !important; }
  .hero-bg-layout .text-content { position: relative; z-index: 2; width: 100%; max-width: none; align-items: flex-start; }
  .hero-bg-layout .split-title { font-size: 1.6rem; margin-bottom: 1.5rem !important; }
  /* botoes estreitos e encostados na esquerda, como no step1 */
  .hero-bg-layout .options { width: 66%; max-width: 252px; margin: 0 0 0 .25rem; gap: .5rem; }
  .hero-bg-layout .option-btn { margin-bottom: 0; min-height: 66px; display: flex; align-items: center;
                                justify-content: center; padding: .9rem 1rem; }
  /* a foto sai do fluxo e vira o fundo do bloco */
  .hero-bg-layout .image-content { position: absolute; right: -12px; top: 188px; width: 240px; height: 372px;
                                   z-index: 0; pointer-events: none; display: block; overflow: hidden; }
  .hero-bg-layout .image-content img { max-height: none !important; width: 100% !important; height: 430px;
                                       object-fit: cover; object-position: 58% 50%; border-radius: 0; background: none;
                                       aspect-ratio: auto; }
}

/* Titulos no celular: distribui as palavras entre as linhas,
   evitando 1 palavra sozinha na ultima linha */
@media (max-width: 768px) {
  h1 { text-wrap: balance; }
}


/* ── escolha unica: bolinha que vira check antes de passar de step (21/08/2026) ─ */
.tem-radio { display: flex; align-items: center; gap: .75rem; }
.option-btn.tem-radio { text-align: left; }
.option-radio { width: 22px; height: 22px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0;
                margin-left: auto; position: relative; transition: border-color .15s, background .15s; }
.tem-radio.selected { border-color: #c2426b; background: #fdf2f5; }
.tem-radio.selected .option-radio { border-color: #c2426b; background: #c2426b; }
.tem-radio.selected .option-radio::after { content: ''; position: absolute; left: 6px; top: 2.5px;
                                           width: 5px; height: 10px; border: solid #fff;
                                           border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* step12: botoes estreitos sobre a foto — texto na esquerda, bolinha na direita */
.hero-bg-layout .option-btn.tem-radio { justify-content: space-between; text-align: left; gap: .4rem;
                                        padding: .9rem .75rem .9rem .9rem; font-size: .92rem; }
.hero-bg-layout .option-btn.tem-radio .option-radio { width: 19px; height: 19px; }
.hero-bg-layout .tem-radio.selected .option-radio::after { left: 4.5px; top: 2px; width: 4px; height: 9px; }
