/* Variaveis CSS e Reset */
:root {
    --primary-color: #8b5cf6; /* Roxo */
    --primary-dark: #6d28d9;
    --secondary-color: #ec4899; /* Rosa */
    --bg-color: #f8fafc;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --error: #ef4444;
    --success: #10b981;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout Principal Mobile-First */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--white);
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* Header e Progresso */
header {
    padding: 20px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #f1f5f9;
}

.header-top {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary-color);
}

.progress-text {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 24px; /* balance the flex layout */
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 5%; /* Inicial */
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.progress-bar-container.large {
    height: 16px;
    border-radius: 8px;
}

/* Containers de Etapas */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.step {
    display: none;
    padding: 24px;
    flex-grow: 1;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out forwards;
}

.step.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Tipografia */
.headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.3;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.question-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    text-align: center;
}

.question-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 24px;
}

.highlight-pink {
    color: var(--secondary-color);
}

/* Imagens */
.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.splash-image-container {
    margin: 20px 0;
    text-align: center;
}

.placeholder-img {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: block;
    width: 100%;
    min-height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Botões */
.btn-primary {
    width: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.cta-large {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
}

/* Opções (Questionário) */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.option-btn {
    width: 100%;
    background: var(--white);
    border: 2px solid #e2e8f0;
    padding: 18px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.option-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.option-btn:hover, .option-btn:active {
    border-color: var(--primary-color);
    background-color: #f5f3ff;
}

/* Grid de Imagens (Corpo) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.option-card {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.option-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.option-card span {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.option-card:hover, .option-card:active {
    border-color: var(--primary-color);
    background-color: #f5f3ff;
}

/* Inputs */
.input-container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
}

.icon-wrapper {
    background-color: #f3e8ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.input-group {
    width: 100%;
    margin-top: 20px;
    position: relative;
}

.custom-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}

.custom-input:focus {
    border-color: var(--primary-color);
}

.unit-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.unit-input-wrapper .custom-input {
    padding-right: 50px;
}

.unit-label {
    position: absolute;
    right: 20px;
    color: var(--text-light);
    font-weight: 500;
}

.error-msg {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: left;
}

/* Checkboxes */
.multiple-select .checkbox-label {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.multiple-select input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.multiple-select input:checked + .custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.multiple-select input:checked + .custom-checkbox::after {
    content: "✓";
    color: white;
    font-size: 14px;
}

.checkbox-label:has(input:checked) {
    border-color: var(--primary-color);
    background-color: #f5f3ff;
}

/* Telas de Loading e Resultados */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

.loading-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
}

.loading-steps {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.loading-item {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.loading-item.active-loading {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 500;
}

/* Gráfico Circular IMC */
.bmi-circular-progress {
    width: 150px;
    height: 150px;
    position: relative;
    margin: 0 auto;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}

.circular-chart.purple .circle {
    stroke: var(--primary-color);
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Resultado */
.result-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.bmi-box {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--box-shadow);
}

.bmi-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin: 10px 0;
}

.bmi-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--error); /* Mudar dinamicamente via JS se for normal */
}

.bmi-explanation {
    text-align: left;
    font-size: 1rem;
    color: var(--text-main);
    background: #fff0f6;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.highlight {
    color: var(--primary-color);
}

/* Badges e Infos */
.badge {
    display: inline-block;
    background-color: #fdf2f8;
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.news-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
    display: inline-block;
}

.info-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 16px 0;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Histórias de Transformação */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.testimonial-card {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.testimonial-card img {
    border-radius: 8px;
    width: 100%;
    display: block;
}

/* Sales Page */
.alert-banner {
    background-color: #fee2e2;
    color: #b91c1c;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.sales-headline {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 24px;
}

.benefits-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.benefits-list svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.price-box {
    text-align: center;
    margin: 30px 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.1rem;
}

.new-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
}

.guarantee-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    background: #f1f5f9;
    padding: 16px;
    border-radius: 8px;
}

.guarantee-icon {
    width: 40px;
    height: 40px;
}

/* Utilitarios e Animações */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 24px; }
.text-center { text-align: center; }

.microcopy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

/* =========================================
   PLAYER VSL ULTRA
========================================= */

.player-wrapper{
  position:relative;
  width:100%;
  max-width:900px;
  margin:24px auto;
  border-radius:22px;
  overflow:hidden;
  background:#000;
  box-shadow:0 0 40px rgba(0,0,0,.5);
}

.player-wrapper video{
  width:100%;
  display:block;
  background:#000;
}

.player-wrapper .overlay{
  position:absolute;
  inset:0;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(3px);
  cursor:pointer;
}

.player-wrapper .overlay-box{
  width:85%;
  max-width:520px;
  background:var(--secondary-color);
  border-radius:20px;
  padding:30px;
  text-align:center;
  color:#ffffff;
  animation:pulse 1.6s infinite;
  box-shadow:
  0 0 30px rgba(0,0,0,.45),
  0 0 50px rgba(0,0,0,.2);
}

.player-wrapper .overlay-box h2{
  margin:0;
  font-size:42px;
  font-weight:800;
}

.player-wrapper .overlay-box p{
  margin-top:20px;
  font-size:34px;
  font-weight:700;
}

.player-wrapper .sound-icon{
  font-size:90px;
  margin-top:18px;
}

.player-wrapper .fake-loading{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:5px;
  background:rgba(255,255,255,.2);
  overflow:hidden;
}

.player-wrapper .fake-loading::before{
  content:"";
  position:absolute;
  left:-40%;
  width:40%;
  height:100%;
  background:#fff;
  animation:loading 1.2s infinite linear;
}

.player-wrapper .controls{
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  padding:10px;
  z-index:20;
  box-sizing:border-box;
}

.player-wrapper .progress{
  width:100%;
  height:7px;
  appearance:none;
  border-radius:20px;
  overflow:hidden;
  cursor:pointer;
  background: transparent;
}

.player-wrapper .progress::-webkit-slider-thumb{
  appearance:none;
  width:0;
}

.player-wrapper .progress::-webkit-slider-runnable-track{
  background:linear-gradient(
    to right,
    var(--secondary-color) var(--progress),
    rgba(255,255,255,.2) var(--progress)
  );
  height:7px;
  border-radius:20px;
}

@keyframes loading{
  from{ left:-40%; }
  to{ left:100%; }
}

@media(max-width:768px){
  .player-wrapper .overlay-box h2{ font-size:30px; }
  .player-wrapper .overlay-box p{ font-size:24px; }
  .player-wrapper .sound-icon{ font-size:70px; }
}
