/* ==========================================================================
   Clone do funil de quiz (ref: minhareceita.online)
   Tokens e estilos MEDIDOS no original (computed styles), nao chutados.
   Zero tracking: nao ha pixel, GTM, analytics nem beacon aqui.
   ========================================================================== */

:root {
  --theme: #16a34a;
  --theme-alt: #2dac5c;      /* o original alterna entre esses dois verdes */
  --theme-dark: #15803d;
  --theme-soft: rgba(22, 163, 74, .1);
  --theme-soft-2: #dcfce7;
  --theme-border: #86efac;
  --title: #030712;
  --content: #6b7280;
  --bg: #ffffff;
  --danger: #dc2626;
  --radius: 1rem;
  --el-size: 56px;
  --container: 430px;        /* medido: 414px de viewport, largura cheia */
  --title-size: 1.5rem;
  --content-size: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--title);
  font-family: var(--font); font-size: var(--content-size); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: .75rem .75rem 3rem;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.topbar { display: flex; align-items: center; min-height: 34px; }
.back-btn { background: none; border: 0; padding: .25rem; cursor: pointer; color: var(--title); display: none; line-height: 0; border-radius: 8px; }
.back-btn.is-visible { display: inline-flex; }
.back-btn:focus-visible { outline: 2px solid var(--theme); outline-offset: 2px; }

.logo { display: block; margin: 0 auto; max-height: 96px; max-width: 55%; height: auto; }

/* ---------- progresso ---------- */
.progress { width: 100%; height: 11px; background: var(--theme-soft-2); border-radius: 999px; overflow: hidden; margin: .875rem 0 1.25rem; }
.progress__fill { height: 100%; width: 0; background: var(--theme); border-radius: 999px; transition: width .35s ease; }

/* ---------- tipografia ---------- */
.step-title {
  font-size: var(--title-size); line-height: 1.22; font-weight: 800;
  text-align: center; color: var(--title); margin: 0 0 .625rem; letter-spacing: -.01em;
  text-wrap: balance;
}
.step-title.is-small { font-size: 1.25rem; }
.step-body { text-align: center; color: var(--content); margin: 0 0 .875rem; white-space: pre-line; }

/* destaques usados nas headlines do original */
.hl-green { color: var(--theme); }
.hl-red { color: var(--danger); }
.hl-orange { color: #ea580c; }
.hl-black-box { background: #030712; color: #fff; padding: 0 .25rem; }
.hl-mark { background: var(--theme); color: #fff; padding: 0 .25rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-u { text-decoration: underline; }
.hl-b { font-weight: 800; }

/* ---------- opcoes: 3 variantes medidas no original ---------- */
.options { display: flex; flex-direction: column; gap: .625rem; margin: 1rem 0; }

.option {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; min-height: var(--el-size); padding: .875rem 1rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; cursor: pointer;
  transition: filter .15s ease, border-color .15s ease, background .15s ease, transform .08s ease;
  white-space: pre-line; text-align: left;
}
.option:active { transform: scale(.99); }
.option:focus-visible { outline: 2px solid var(--theme-dark); outline-offset: 2px; }

/* variante 1: verde solido, texto branco, centralizado */
.option--solid {
  background: var(--theme); color: #fff; font-weight: 600;
  justify-content: center; text-align: center;
  border-bottom: 4px solid var(--theme-dark);
}
.option--solid:hover { filter: brightness(1.06); }
.option--solid:active { transform: translateY(2px); border-bottom-width: 2px; }
.option--solid.is-selected { background: var(--theme-dark); }

/* variante 2: verde claro com seta a direita */
.option--light { background: var(--theme-soft); color: var(--title); justify-content: space-between; }
.option--light:hover { border-color: var(--theme-border); }
.option--light.is-selected { border-color: var(--theme); background: var(--theme-soft-2); }
.option__arrow { flex: 0 0 auto; width: 26px; height: 26px; border: 1.5px solid var(--theme); border-radius: 50%; display: grid; place-items: center; color: var(--theme); }

/* variante 3: multi com checkbox */
.option--check { background: var(--theme-soft); color: var(--title); justify-content: space-between; }
.option--check:hover { border-color: var(--theme-border); }
.option--check.is-selected { border-color: var(--theme); background: var(--theme-soft-2); }
.option__check { flex: 0 0 auto; width: 26px; height: 26px; border: 2px solid var(--theme); border-radius: 7px; background: #fff; display: grid; place-items: center; }
.option__check svg { opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.option.is-selected .option__check { background: var(--theme); }
.option.is-selected .option__check svg { opacity: 1; transform: scale(1); }

/* variante 4: card com foto (tela de genero) */
.options--cards { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.option--card {
  flex-direction: column; align-items: stretch; gap: 0; padding: .5rem;
  background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.option--card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: .625rem; display: block; }
.option--card .option__foot { display: flex; align-items: center; gap: .5rem; padding: .625rem .25rem .125rem; }
.option--card.is-selected { border-color: var(--theme); }

.option__emoji { font-size: 1.375rem; line-height: 1; }

/* ---------- CTA ---------- */
.cta {
  display: block; width: 100%; min-height: var(--el-size); margin-top: 1.25rem;
  padding: 1rem 1.25rem; background: var(--theme); color: #fff; border: 0;
  border-bottom: 4px solid var(--theme-dark); border-radius: var(--radius);
  font-family: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer;
  transition: filter .15s ease, transform .08s ease;
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: translateY(2px); border-bottom-width: 2px; }
.cta:disabled { opacity: .5; cursor: not-allowed; }
.cta:focus-visible { outline: 2px solid var(--theme-dark); outline-offset: 2px; }

@keyframes bounceBtn {
  0% { opacity: 1; transform: scaleY(.95); }
  50%, 100% { opacity: 0; transform: scaleY(1.3) scaleX(1.04); }
}
.cta-wrap { position: relative; }
.cta-wrap.is-pulsing::after {
  content: ''; position: absolute; inset: 1.25rem 0 0; border-radius: var(--radius);
  background: var(--theme); animation: bounceBtn 1s infinite; pointer-events: none; z-index: -1;
}

/* ---------- imagens de tela ---------- */
.step-img { width: 100%; height: auto; border-radius: var(--radius); display: block; margin: 1rem 0; }
.step-img--plain { border-radius: 0; }

/* ---------- faixa de alerta ---------- */
.banner { background: var(--theme); color: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-weight: 600; white-space: pre-line; }

/* ---------- player estilo WhatsApp ---------- */
.wa-wrap { background: #ece5dd center/300px auto repeat; border-radius: var(--radius); padding: 1.75rem 1rem; margin: 1rem 0 1.25rem; }
.wa-bubble { display: flex; align-items: center; gap: .625rem; background: #fff; border-radius: 14px; padding: .625rem .75rem; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.wa-play { flex: 0 0 auto; width: 34px; height: 34px; border: 0; background: none; color: #7f7f7f; cursor: pointer; display: grid; place-items: center; padding: 0; }
.wa-play:focus-visible { outline: 2px solid var(--theme); outline-offset: 2px; border-radius: 50%; }
.wa-mid { flex: 1 1 auto; min-width: 0; }
.wa-wave { position: relative; display: flex; align-items: center; gap: 2px; height: 30px; cursor: default; }
.wa-wave.is-seekable { cursor: pointer; }
.wa-bar { flex: 1 1 auto; min-width: 2px; background: #c8c8c8; border-radius: 2px; transition: background .12s linear; }
.wa-bar.is-played { background: #34b7f1; }
.wa-dot { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: #34b7f1; transform: translateY(-50%); transition: left .1s linear; pointer-events: none; }
.wa-time { font-size: .8125rem; color: #8a8a8a; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.wa-avatar-wrap { position: relative; flex: 0 0 auto; width: 46px; height: 46px; }
.wa-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; }
.wa-mic { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; color: #34b7f1; }

/* ---------- YouTube embed (inline, sem sair da pagina) ---------- */
.yt { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 1rem 0; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.yt__btn { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: #f00; border-radius: 12px; display: grid; place-items: center; border: 0; cursor: pointer; }
.yt__btn svg { color: #fff; }

/* ---------- depoimento ---------- */
.testimonial { border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.testimonial__head { display: flex; align-items: center; gap: .625rem; margin-bottom: .5rem; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial__name { font-weight: 700; color: var(--title); }
.testimonial__loc { font-size: .8125rem; color: var(--content); }
.testimonial__text { color: var(--content); margin: 0; }

/* ---------- carrossel de prints (tela de compromisso) ---------- */
.carousel { margin: 1rem 0; }
.carousel__track { display: flex; gap: .625rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track img { flex: 0 0 100%; scroll-snap-align: center; width: 100%; border-radius: var(--radius); border: 1px solid #e5e7eb; display: block; }
.carousel__dots { display: flex; justify-content: center; gap: .375rem; margin-top: .625rem; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; border: 0; padding: 0; cursor: pointer; }
.carousel__dot.is-active { background: var(--theme); }

/* ---------- loader ---------- */
.loader { padding-top: 1rem; }
.loader__row { margin-bottom: 1.75rem; }
.loader__pct { text-align: right; font-weight: 800; font-size: 1.375rem; color: var(--title); margin-bottom: .375rem; font-variant-numeric: tabular-nums; }
.loader__track { height: 22px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.loader__fill { height: 100%; width: 0; background: var(--theme); border-radius: 999px; transition: width .05s linear; }
.loader__label { text-align: center; color: var(--content); margin-top: .5rem; }

/* ---------- resultado: barras com knob, vermelhas x verdes ---------- */
.diag { margin: 1.25rem 0; }
.diag__row { margin-bottom: .875rem; }
.diag__top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: .9375rem; margin-bottom: .375rem; }
.diag__track { position: relative; height: 10px; background: #e5e7eb; border-radius: 999px; }
.diag__fill { height: 100%; width: 0; border-radius: 999px; transition: width .9s cubic-bezier(.22,1,.36,1); background: var(--danger); }
.diag__row.is-good .diag__fill { background: var(--theme); }
.diag__knob { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #d1d5db; transform: translate(-50%, -50%); transition: left .9s cubic-bezier(.22,1,.36,1); left: 0; }

.agent { text-align: center; margin: 1.25rem 0; }
.agent__label { color: var(--theme); font-weight: 700; margin-bottom: .25rem; }
.agent__value { font-style: italic; text-decoration: underline; color: var(--title); font-size: 1.0625rem; }

/* caixa de atencao (card branco com sombra) */
.attention { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem; margin: 1.25rem 0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.attention__title { font-weight: 800; margin-bottom: .5rem; }
.attention p { margin: 0; font-size: .9375rem; font-weight: 600; }

/* ---------- oferta ---------- */
.badge { background: var(--theme); color: #fff; border-radius: 999px; padding: .5rem 1rem; text-align: center; font-weight: 700; margin: 0 auto 1rem; display: table; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin: 1rem 0; }
.ba-grid figure { margin: 0; text-align: center; }
.ba-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: .625rem; display: block; }
.ba-grid figcaption { font-weight: 700; margin-bottom: .375rem; }
.ba-cap { display: block; color: var(--title); font-size: .8125rem; margin-top: .375rem; font-weight: 700; }
/* barrinha decorativa embaixo de cada foto do antes/depois */
.ba-meter { position: relative; height: 8px; background: #e5e7eb; border-radius: 999px; margin-top: .75rem; }
.ba-meter__fill { height: 100%; background: var(--theme); border-radius: 999px; }
.ba-meter__knob { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #d1d5db; transform: translate(-50%, -50%); }

/* card "TESTE 180 DIAS sem compromisso" com o preco parcelado ao lado */
.trial {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 2px solid var(--theme); border-radius: var(--radius);
  padding: 1rem 1.125rem; margin: 1.5rem 0;
}
.trial__label { font-weight: 800; font-size: 1.0625rem; line-height: 1.5; }
.trial__label small { display: block; font-weight: 700; font-size: 1.0625rem; }
.trial__price { background: #f3f4f6; border-radius: .625rem; padding: .5rem .75rem; text-align: center; flex: 0 0 auto; }
.trial__price span { display: block; font-size: .6875rem; color: var(--content); }
.trial__price strong { font-size: 1.5rem; font-weight: 800; color: var(--title); }
.trial__price strong em { font-style: normal; font-size: .8125rem; font-weight: 700; }

.sec { margin: 1.5rem 0; }
.sec__title { font-size: 1.25rem; font-weight: 800; text-align: center; margin: 0 0 .625rem; line-height: 1.25; text-wrap: balance; }
.sec__badge { background: var(--danger); color: #fff; font-weight: 700; text-align: center; border-radius: .375rem; padding: .25rem .75rem; margin: 0 auto .75rem; display: table; font-size: .8125rem; }
.sec__text { color: var(--content); white-space: pre-line; margin: 0 0 .75rem; }
.sec__list { list-style: none; padding: 0; margin: .75rem 0; }
.sec__list li { position: relative; padding-left: 1.75rem; margin-bottom: .625rem; color: var(--content); }
.sec__list li::before { content: '✅'; position: absolute; left: 0; top: 0; font-size: .875rem; }
.sec__img { width: 100%; border-radius: var(--radius); display: block; margin-top: .75rem; }

.offer-logo { display: block; margin: 1.5rem auto .75rem; max-width: 58%; height: auto; }

.stack { list-style: none; padding: 0; margin: 1rem 0; }
.stack li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem 1rem; margin-bottom: .5rem; border: 1px solid #e5e7eb; border-radius: .625rem; font-size: .9375rem; }
.stack li span:last-child { color: var(--content); white-space: nowrap; }

.price { text-align: center; margin: 1.25rem 0; }
.price__from { color: var(--danger); text-decoration: line-through; font-weight: 700; }
.price__label { color: var(--theme); font-weight: 700; }
.price__now { font-size: 2.25rem; font-weight: 800; color: var(--theme); display: block; line-height: 1.1; }
.price__inst { color: var(--content); margin-top: .25rem; }

.perk { text-align: center; margin: .75rem 0; }
.perk strong { display: block; color: var(--theme); }
.perk span { color: var(--content); font-size: .875rem; }

.guarantee { border: 2px dashed var(--theme-border); border-radius: var(--radius); padding: 1rem; text-align: center; margin: 1.5rem 0; }
.guarantee__img { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto .625rem; border-radius: .5rem; }

.risk { background: #e5e7eb; border-radius: var(--radius); padding: 1.5rem 1.25rem; text-align: center; margin: 1.5rem 0; }
.risk__seal { width: 62px; height: 62px; margin: 0 auto .5rem; display: block; color: #111827; }
.risk__title { font-weight: 800; margin: .5rem 0 .75rem; font-size: 1.0625rem; }
.risk p { font-size: .9375rem; font-weight: 600; margin: 0; text-transform: uppercase; line-height: 1.55; }
.risk p strong { font-weight: 800; }

.faq { margin: 1.5rem 0; }
.faq details { border-bottom: 1px solid #e5e7eb; padding: .75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--content); }

/* ---------- transicao ---------- */
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step { animation: stepIn .28s ease both; flex: 1 1 auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
