/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:root {
  --green: #1f7a3a;
  --green-d: #14582a;
  --green-l: #e9f6ed;
  --accent: #f59e0b;
  --accent-d: #b86500;
  --bg: #f6f4ee;
  --card: #ffffff;
  --text: #1d2939;
  --muted: #667085;
  --border: #e4e7ec;
  --radius: 16px;
}

html, body {
  background: var(--bg);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { min-height: 100vh; min-height: 100dvh; }

.app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
}

/* ============ TOPO ============ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 244, 238, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 10px 16px 10px;
  padding-top: calc(10px + env(safe-area-inset-top));
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.back, .back-spacer { width: 38px; height: 38px; flex-shrink: 0; }
.back {
  border: none; background: #fff; color: var(--text); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: opacity .25s, transform .15s;
}
.back:active { transform: scale(.9); }
.back.hidden { opacity: 0; pointer-events: none; }
.brand { font-weight: 700; font-size: 17px; color: var(--green-d); display: flex; align-items: center; gap: 6px; letter-spacing: -.2px; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-icon { font-size: 18px; }

.progress {
  height: 7px; background: #e2ded2; border-radius: 99px; overflow: hidden;
  margin-top: 10px; transition: opacity .3s, height .3s, margin .3s;
}
.progress.hidden { opacity: 0; height: 0; margin-top: 0; }
.progress-bar {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--green), #3fbf62);
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
  position: relative; overflow: hidden;
}
.progress-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: barShine 1.8s infinite;
}
@keyframes barShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ============ ETAPAS / ANIMAÇÕES ============ */
main { padding: 10px 18px calc(36px + env(safe-area-inset-bottom)); }
.step { display: none; }
.step.active { display: block; }
.step.active > * { animation: fadeUp .55s cubic-bezier(.22, 1, .36, 1) both; }
.step.active > *:nth-child(2) { animation-delay: .07s; }
.step.active > *:nth-child(3) { animation-delay: .14s; }
.step.active > *:nth-child(4) { animation-delay: .21s; }
.step.active > *:nth-child(5) { animation-delay: .28s; }
.step.active > *:nth-child(6) { animation-delay: .35s; }
.step.active > *:nth-child(n+7) { animation-delay: .42s; }

.step.active .options .option { animation: fadeUp .5s cubic-bezier(.22, 1, .36, 1) both; }
.step.active .options .option:nth-child(1) { animation-delay: .25s; }
.step.active .options .option:nth-child(2) { animation-delay: .32s; }
.step.active .options .option:nth-child(3) { animation-delay: .39s; }
.step.active .options .option:nth-child(4) { animation-delay: .46s; }
.step.active .options .option:nth-child(5) { animation-delay: .53s; }
.step.active .options .option:nth-child(6) { animation-delay: .60s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: rotate(45deg) scale(0); } 70% { transform: rotate(45deg) scale(1.25); } 100% { transform: rotate(45deg) scale(1); } }
@keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============ TIPOGRAFIA ============ */
.title { font-size: 24px; line-height: 1.25; font-weight: 800; text-align: center; letter-spacing: -.4px; margin-top: 6px; }
.title-md { font-size: 21px; line-height: 1.3; font-weight: 700; text-align: center; letter-spacing: -.3px; }
.subtitle { font-size: 15px; line-height: 1.55; color: var(--muted); text-align: center; margin-top: 12px; }
.lead { font-size: 17px; line-height: 1.45; text-align: center; font-weight: 500; margin-top: 4px; }
.question { font-size: 20px; line-height: 1.3; font-weight: 700; text-align: center; margin-top: 6px; letter-spacing: -.2px; }
.note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.text { font-size: 15.5px; line-height: 1.6; text-align: center; margin-top: 14px; color: #344054; }
.hl { color: var(--green); }
b.hl { background: linear-gradient(transparent 60%, #ffe08a 60%); color: var(--text); }
.center { text-align: center; }

/* ============ ESPAÇOS DE IMAGEM (.webp) ============ */
.slot { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.slot img { display: block; width: 100%; height: auto; }
.slot.empty {
  min-height: 170px;
  border: 2px dashed #cbc4b1;
  background: repeating-linear-gradient(45deg, #fbfaf6, #fbfaf6 10px, #f2efe5 10px, #f2efe5 20px);
  display: grid; place-items: center;
}
.slot.empty::after {
  content: "📷  " attr(data-label);
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: #fff; padding: 8px 12px; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.slot-hero.empty { min-height: 230px; }
.slot-depo.empty { min-height: 240px; }

/* mini (avatares e bônus) – sem imagem mostra emoji/inicial */
.slot.mini { margin: 0; flex-shrink: 0; }
.slot.mini img { width: 100%; height: 100%; object-fit: cover; }
.slot.mini.empty { min-height: 0; border: none; background: var(--c, var(--green-l)); }
.slot.mini.empty::after { content: attr(data-fallback); background: none; box-shadow: none; padding: 0; color: #fff; font-size: 17px; font-weight: 700; }

/* ============ ETAPA 0 ============ */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature {
  background: #fff; border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; line-height: 1.3; box-shadow: 0 2px 10px rgba(16,24,40,.05);
}
.feature b { color: var(--green); }
.f-ic { font-size: 22px; width: 40px; height: 40px; border-radius: 10px; background: var(--green-l); display: grid; place-items: center; flex-shrink: 0; }

.proof-card {
  background: #fff; border-radius: 20px; padding: 20px 18px; margin-top: 16px; text-align: center;
  box-shadow: 0 6px 24px rgba(16,24,40,.07);
}
.avatars { display: flex; justify-content: center; margin-bottom: 10px; }
.avatar { width: 48px; height: 48px; border-radius: 50% !important; border: 3px solid #fff; margin-left: -12px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.avatar:first-child { margin-left: 0; }
.proof-title { font-size: 21px; font-weight: 800; color: var(--green-d); }
.proof-sub { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.stars { margin-top: 10px; font-size: 24px; color: #fbbf24; letter-spacing: 2px; }
.stars span { display: inline-block; animation: fadeUp .4s both; }
.stars span:nth-child(1) { animation-delay: .6s; } .stars span:nth-child(2) { animation-delay: .7s; }
.stars span:nth-child(3) { animation-delay: .8s; } .stars span:nth-child(4) { animation-delay: .9s; }
.stars span:nth-child(5) { animation-delay: 1s; }

/* ============ OPÇÕES ============ */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 12px 14px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer;
  box-shadow: 0 2px 0 rgba(16,24,40,.04);
  transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
}
@media (hover: hover) { .option:hover { border-color: #9fd3ad; } }
.option:active { transform: scale(.98); }
.option.selected { border-color: var(--green); background: var(--green-l); box-shadow: 0 0 0 4px rgba(31,122,58,.12); }
.opt-emoji { font-size: 22px; width: 42px; height: 42px; border-radius: 11px; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s; }
.option.selected .opt-emoji { transform: scale(1.1) rotate(-6deg); background: #fff; }
.opt-text { flex: 1; line-height: 1.35; }
.opt-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfd4dc; flex-shrink: 0; position: relative; transition: background .2s, border-color .2s; }
.multi .opt-check { border-radius: 7px; }
.option.selected .opt-check { background: var(--green); border-color: var(--green); }
.option.selected .opt-check::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); animation: pop .3s;
}

/* ============ BOTÕES ============ */
.btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 22px; padding: 17px 20px;
  border: none; border-radius: 14px; cursor: pointer; text-decoration: none; text-align: center;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff;
  background: linear-gradient(180deg, #28994c, var(--green));
  box-shadow: 0 5px 0 var(--green-d), 0 10px 22px rgba(31,122,58,.28);
  transition: transform .1s, box-shadow .1s, opacity .25s, filter .25s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--green-d), 0 4px 10px rgba(31,122,58,.2); }
.btn:disabled { opacity: .45; filter: grayscale(.4); cursor: not-allowed; }
.btn .arrow { transition: transform .2s; }
.btn:active .arrow { transform: translateX(4px); }
.btn-cta {
  background: linear-gradient(180deg, #ffb52e, #f08c00);
  box-shadow: 0 5px 0 var(--accent-d), 0 10px 24px rgba(240,140,0,.35);
  text-transform: uppercase; font-size: 16px; letter-spacing: .2px; padding: 19px 18px;
}
.btn-cta:active { box-shadow: 0 1px 0 var(--accent-d), 0 4px 10px rgba(240,140,0,.25); }
.step.active > .pulse { animation: fadeUp .55s cubic-bezier(.22,1,.36,1) both, pulse 1.8s ease-in-out 1.2s infinite; }
.shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: shine 3s ease-in-out infinite;
}
.btn:disabled::after { display: none; }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }

.sticky-btn { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; }

/* ============ FEEDBACK (1.1 / 2.1) ============ */
.feedback { text-align: center; padding-top: 10px; }
.bubble-icon {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; font-size: 42px;
  box-shadow: 0 8px 24px rgba(16,24,40,.08); animation: float 3s ease-in-out infinite;
}
.info-box {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  background: var(--green-l); border: 1px solid #c6e6cf; border-radius: 14px; padding: 14px; margin-top: 16px;
  font-size: 14.5px; line-height: 1.55;
}
.info-ic { font-size: 22px; line-height: 1.2; }

/* ============ CARREGAMENTO ============ */
.loader { text-align: center; padding-top: 30px; }
.ring { width: 150px; height: 150px; margin: 26px auto 10px; position: relative; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring-bg { fill: none; stroke: #e2ded2; stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 402.12; stroke-dashoffset: 402.12; }
.pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: var(--green-d); }
.checklist { list-style: none; text-align: left; max-width: 330px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: #98a2b3; transition: color .3s; }
.checklist .ck { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid #d0d5dd; flex-shrink: 0; position: relative; transition: background .25s, border-color .25s; }
.checklist li.doing { color: var(--text); }
.checklist li.doing .ck { border-color: var(--green); border-top-color: transparent; animation: spin .8s linear infinite; }
.checklist li.done { color: var(--text); font-weight: 500; }
.checklist li.done .ck { background: var(--green); border-color: var(--green); }
.checklist li.done .ck::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); animation: pop .3s;
}

/* ============ BENEFÍCIOS ============ */
.benefits { display: flex; flex-direction: column; gap: 12px; }
.benefit {
  display: flex; gap: 14px; background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 4px 16px rgba(16,24,40,.06); border-left: 4px solid var(--green);
}
.b-ic { font-size: 24px; width: 46px; height: 46px; border-radius: 12px; background: var(--green-l); display: grid; place-items: center; flex-shrink: 0; }
.benefit h4 { font-size: 16px; font-weight: 700; color: var(--green-d); margin-bottom: 4px; }
.benefit p { font-size: 14px; line-height: 1.55; color: #475467; }

/* ============ CARROSSEL INFINITO ============ */
.marquee {
  margin: 16px -18px;               /* ocupa a largura toda da tela */
  overflow: hidden;
  pointer-events: none;             /* sem arrastar / sem clique */
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
.m-item {
  flex: 0 0 auto;
  width: 160px;
  height: 210px;
  margin: 0 12px 0 0 !important;    /* margem (não gap) para o loop fechar exato */
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(16,24,40,.08);
}
.m-item img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.m-item.empty { min-height: 0; }
.m-item.empty::after { font-size: 10.5px; padding: 6px 8px; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 120s; } }

/* ============ CUSTO ============ */
.yes-badge {
  margin: 14px auto 0; width: fit-content; padding: 10px 22px; border-radius: 99px;
  background: var(--green); color: #fff; font-size: 18px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(31,122,58,.3);
}

/* ============ DEPOIMENTOS ============ */
.testimonial { background: #fff; border-radius: 18px; padding: 8px; margin-top: 14px; box-shadow: 0 4px 18px rgba(16,24,40,.07); }
.testimonial .slot { margin: 0; border-radius: 12px; }

/* ============ OFERTA ============ */
.congrats { text-align: center; padding-top: 6px; }
.congrats-ic { font-size: 46px; animation: float 3s ease-in-out infinite; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.chip { font-size: 12px; font-weight: 600; background: var(--green-l); color: var(--green-d); padding: 5px 11px; border-radius: 99px; }

.card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 4px 18px rgba(16,24,40,.07); }
.card-title, .section-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.section-title { text-align: center; margin: 26px 0 12px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.45; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center;
}

.bonus-list { display: flex; flex-direction: column; gap: 10px; }
.bonus {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 12px;
  border: 2px dashed #f5c26b; box-shadow: 0 2px 10px rgba(16,24,40,.04);
}
.thumb { width: 60px; height: 60px; border-radius: 12px !important; --c: #fff4dd; }
.thumb.empty::after { font-size: 28px; }
.bonus-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 6px; }
.bonus p { font-size: 14.5px; font-weight: 500; line-height: 1.4; margin-top: 4px; }

.delivery {
  display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 14px;
  background: #fff; border-radius: 14px; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 10px rgba(16,24,40,.05);
}
.d-ic { font-size: 28px; }

.price-box {
  margin-top: 22px; text-align: center; background: #fff; border-radius: 18px; padding: 18px;
  border: 2px solid var(--green); display: flex; flex-direction: column; gap: 2px;
}
.price-from { font-size: 14px; color: var(--muted); }
.price-from s { color: #d92d20; }
.price-now { font-size: 40px; font-weight: 800; color: var(--green-d); letter-spacing: -1px; }
.price-note { font-size: 12.5px; color: var(--muted); }

.secure { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.guarantee {
  display: flex; gap: 14px; align-items: center; margin-top: 26px; padding: 16px;
  background: #fff; border-radius: 18px; box-shadow: 0 4px 18px rgba(16,24,40,.07);
}
.guarantee-img { width: 104px; height: 104px; flex-shrink: 0; }
.guarantee h4 { font-size: 17px; font-weight: 700; color: var(--green-d); }
.guarantee p { font-size: 13.5px; line-height: 1.5; color: #475467; margin-top: 4px; }

.author { margin-top: 26px; background: #fff; border-radius: 18px; padding: 22px 18px; text-align: center; box-shadow: 0 4px 18px rgba(16,24,40,.07); }
.author-photo { width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid var(--green-l); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-photo.empty { min-height: 0; }
.author-photo.empty::after { font-size: 10px; padding: 4px 6px; }
.author-name { font-size: 19px; font-weight: 700; }
.author-role { display: block; font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 10px; }
.author p { font-size: 14.5px; line-height: 1.65; color: #475467; text-align: left; }

/* ============ CONFETE ============ */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* telas bem pequenas */
@media (max-width: 360px) {
  .title { font-size: 21px; }
  .question { font-size: 18px; }
  .features { grid-template-columns: 1fr; }
  .option { font-size: 14px; }
}

