/* Protocolo Mel — quiz (mobile first)
   Texto no tamanho do funil original: 16px no corpo, 22,5px nos títulos, 18px nos botões. */

:root {
  color-scheme: light;
  --bg: #fdf8ef;
  --paper: #fffdf8;
  --cream: #fbe6bd;
  --cream-2: #fdf1dc;
  --ink: #2b1a0b;
  --ink-2: #5d4630;
  --line: #ecd9b6;
  --gold: #e3a137;
  --gold-2: #f2bd5c;
  --gold-text: #b8741a;
  --brown: #3b2308;
  --btn: #a16207;
  --btn-dark: #7f4c05;
  --green: #10b981;
  --green-dark: #0b9466;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 10px 28px rgba(60, 35, 10, .09);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
p { margin: 0 0 .9em; }
.hl { color: var(--btn); }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--btn); outline-offset: 3px; border-radius: 8px; }

/* ---------- Topo ---------- */

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(253, 248, 239, .96); }
.topbar-inner { max-width: 520px; margin: 0 auto; height: 58px; padding: 0 8px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.back { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.back svg { width: 24px; height: 24px; }
.back:active { background: var(--cream-2); }
.back[hidden] { display: grid; visibility: hidden; }
.logo { justify-self: center; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.logo svg { width: 20px; height: 26px; }
.logo span { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.logo b { font-weight: 700; color: var(--btn); }
.progress { max-width: 488px; margin: 0 auto; height: 6px; background: #f1e3c8; border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--btn); border-radius: 6px; transition: width .35s ease; }
.topbar.no-progress .progress { visibility: hidden; }

/* ---------- Telas ---------- */

main { max-width: 520px; margin: 0 auto; }
.screen { display: none; padding: 18px var(--gutter) 32px; }
.screen.is-active { display: block; animation: enter .25s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen > * + * { margin-top: 18px; }

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.35; text-wrap: balance; }
h2 { font-size: 22.5px; font-weight: 700; }
h3 { font-size: 20.25px; font-weight: 600; }
.lead { font-size: 18px; }
.photo { width: 100%; border-radius: var(--radius); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 3px 0; }

/* ---------- Abertura (tela 1) ---------- */

.hero-head { text-align: center; }
.eyebrow { margin: 0 0 4px; font-weight: 700; font-size: 15px; letter-spacing: .14em; color: var(--ink-2); }
.brand-title {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; white-space: nowrap;
  font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 9.4vw, 46px); line-height: 1.1; letter-spacing: -.01em;
  color: var(--gold-text); text-transform: uppercase;
}
.brand-title svg { width: .55em; height: .75em; flex: none; }
.pill {
  display: inline-block; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--brown); color: #fff7e6;
  font-weight: 700; font-size: clamp(12px, 3.5vw, 14.5px); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 3.7; object-fit: cover; object-position: 50% 18%; border-radius: var(--radius); }
.hero-quote {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 251, 243, .95); box-shadow: 0 6px 20px rgba(40, 20, 0, .25);
  font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--ink);
}
.hero-quote strong { display: block; font-size: 21px; margin-bottom: 2px; }
.hero-quote em { display: block; font-style: normal; font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); margin-bottom: 4px; }
.see-below { margin: 0; text-align: center; font-weight: 700; letter-spacing: .1em; font-size: 14px; color: var(--ink-2); }

/* ---------- Botões ---------- */

.btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 56px; padding: 12px 24px; border: 0; border-radius: 16px;
  background: var(--btn); color: #fff; font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.3;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn:active { background: var(--btn-dark); }
.btn[disabled] { background: #d2c1a3; cursor: not-allowed; }
.btn-big { padding: 24px; font-size: 19px; }
.pulse { animation: pulse 1.5s ease-out infinite; will-change: transform, box-shadow; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(161, 98, 7, .5); transform: scale(.96); }
  70% { box-shadow: 0 0 0 36px rgba(161, 98, 7, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(161, 98, 7, 0); transform: scale(.96); }
}
.btn-wrap { padding: 6px 0; }

/* ---------- Carrossel (passa sozinho) ---------- */

.carousel { position: relative; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-track img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: #e2cfa9; transition: background-color .2s, width .2s; }
.carousel-dots span.on { width: 18px; border-radius: 4px; background: var(--btn); }
.carousel-hint { margin: 6px 0 0; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }

/* ---------- Opções ---------- */

.options { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 16px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06); text-align: left; cursor: pointer; color: #3d281a;
  transition: border-color .15s, background-color .15s;
}
.opt-emoji { flex: none; width: 48px; font-size: 34px; line-height: 1; text-align: center; }
.opt-label { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.4; }
.opt-mark { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: #b49a72; }
.opt-mark::before { content: "›"; font-size: 26px; line-height: 1; }
.options[data-type="multi"] .opt-mark { border: 2px solid #c9b48e; border-radius: 6px; background: #fff; }
.options[data-type="multi"] .opt-mark::before { content: ""; }
.opt[aria-checked="true"] { border-color: var(--btn); background: #fff3d9; }
.options[data-type="multi"] .opt[aria-checked="true"] .opt-mark {
  border-color: var(--btn);
  background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.options[data-type="single"] .opt[aria-checked="true"] .opt-mark { color: var(--btn); }

/* ---------- Carregamento ---------- */

.loading { min-height: 60svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.jar { width: 120px; height: 144px; margin-bottom: 18px; }
.loading-bar { width: 100%; max-width: 360px; height: 18px; border-radius: 999px; background: #fdecc8; overflow: hidden; margin: 6px auto 10px; }
.loading-bar span { display: block; height: 100%; width: 0; background: #f59e0b; border-radius: 999px; }
.loading-text { font-weight: 600; color: var(--ink-2); }
.loading-kicker { margin: 0 0 6px; font-weight: 800; letter-spacing: .12em; color: var(--btn); }
.congrats { margin-top: 10px; max-width: 30ch; font-family: var(--serif); font-size: 18px; line-height: 1.4; }

/* ---------- Página de oferta ---------- */

.art { width: 100%; height: auto; border-radius: var(--radius); }
.dark-box { background: var(--btn); color: #fff; border-radius: 16px; padding: 12px 14px; text-align: center; font-size: 15px; font-weight: 700; }

.eyebrow-gold { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.section-title { font-family: var(--serif); font-size: 26px; line-height: 1.25; font-weight: 700; }

.arg { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
.arg h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.arg p { font-size: 17px; }
.arg ul { margin: 0 0 .9em; padding-left: 20px; }
.arg .note { font-size: 12px; font-style: italic; color: var(--ink-2); margin: 0; }

.video-wrap { max-width: 420px; margin-left: auto; margin-right: auto; }
.video-sound { display: block; width: 100%; margin-bottom: 12px; background: var(--btn); color: #fff; border: 0; border-radius: 40px; padding: 14px 20px; font-size: 17px; font-weight: 700; cursor: pointer; }
.video-wrap .frame { border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(90, 58, 30, .25); }
.video-wrap video { width: 100%; display: block; aspect-ratio: 9 / 16; background: #fdf6e7; }

.countdown {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #fff4f2, #fef2f2); border: 1px solid #fcd9d2; border-radius: 16px; padding: 14px 16px;
}
.countdown-text { border-left: 4px solid #f59e0b; padding-left: 12px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.countdown-time {
  flex: none; min-width: 112px; text-align: center; padding: 8px 10px; border-radius: 12px; background: #fff;
  box-shadow: inset 0 0 0 1px #fde3b3, 0 2px 6px rgba(245, 158, 11, .18);
  font-size: 24px; font-weight: 800; color: #f59e0b; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

/* Card de preço: mesma estrutura do funil original (faixa verde, título + preço riscado à esquerda, preço à direita) */
.pcard {
  position: relative; display: block; background: #fff; border: 2px solid var(--btn); border-radius: 16px;
  padding: 56px 18px 24px; color: inherit; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 28px rgba(60, 35, 10, .12);
}
.pcard-badge {
  position: absolute; top: 0; left: 0; right: 0; display: block; background: var(--green); color: #fff;
  padding: 6px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; text-align: center;
  border-radius: 14px 14px 0 0;
}
.pcard-main { display: flex; align-items: center; gap: 16px; }
.pcard-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pcard-title { font-size: 17px; font-weight: 600; color: #1f2937; line-height: 1.3; }
.pcard-old { font-size: 17px; font-weight: 600; color: #dc2626; text-decoration: line-through; text-decoration-color: #dc2626; text-decoration-thickness: 2px; }
.pcard-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pcard-price { display: flex; flex-direction: column; align-items: flex-end; font-size: clamp(24px, 7vw, 30px); font-weight: 700; color: #1f2937; line-height: 1.1; white-space: nowrap; }
.pcard-price small { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #6b7280; line-height: 1.4; }
.pcard-desc { font-size: 12px; color: #9ca3af; }

/* Bônus: mesmo desenho do funil original (faixa dourada + cartão creme com vistos), com a foto de cada bônus */
.bonus { background: #1d1e26; border-radius: 22px; padding: 18px 14px 18px; }
.bonus-head {
  position: relative; overflow: hidden; border-radius: 16px; padding: 18px 10px 16px; text-align: center;
  background: linear-gradient(135deg, #f1b64a 0%, #e0a033 45%, #f3c063 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.bonus-head::before {
  content: ""; position: absolute; inset: 0; opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='36' viewBox='0 0 56 48'%3E%3Cpath d='M14 1l13 7.5v15L14 31 1 23.5v-15zM42 17l13 7.5v15L42 47l-13-7.5v-15z' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.bonus-head > * { position: relative; }
.b-sub { color: #fff8e6; font-size: 16px; letter-spacing: .02em; }
.bonus-head h2 {
  font-family: "Oswald", var(--sans); font-weight: 700; color: #fff; font-size: 34px; line-height: 1.1; margin: 4px 0 8px;
  -webkit-text-stroke: 1px var(--brown-2); text-shadow: 0 2px 0 #b27414, 0 4px 10px rgba(110, 60, 0, .3);
}
.b-pill { display: inline-block; background: #fff6e2; color: var(--brown); border: 2px solid #7a4a10; border-radius: 999px; padding: 1px 12px; font-size: 13px; font-weight: 700; }
.bonus-card { margin-top: 14px; background: var(--cream); border-radius: 18px; padding: 8px; }
.bonus-list { list-style: none; margin: 0; padding: 0 14px; border: 2px solid var(--brown); border-radius: 12px; }
.bonus-item { display: grid; grid-template-columns: 38px 1fr 62px; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1.5px solid #e6c88f; }
.bonus-item:last-child { border-bottom: 0; }
.b-check { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.b-check svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.b-text { min-width: 0; }
.b-name { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; color: #2a1806; }
.b-price { display: block; margin-top: 3px; font-size: 15.5px; color: #2a1806; }
.b-price s { text-decoration-thickness: 1.5px; }
.b-price b { color: #e28a12; font-weight: 800; }
.b-img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; background: var(--cream-2); box-shadow: 0 1px 4px rgba(60, 35, 8, .25); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px 14px 14px; box-shadow: var(--shadow); }
.timeline-item { text-align: center; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.timeline-item strong { display: block; color: var(--ink); font-size: 14px; }
.timeline-bar { height: 140px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; }
.timeline-bar span { width: 34px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-2), var(--btn)); box-shadow: 0 6px 14px rgba(161, 98, 7, .22); }
.timeline-item:first-child .timeline-bar span { background: #d9c7a6; box-shadow: none; }

/* Texto corrido, igual ao funil original: sem cartão, sem linhas */
.plain h2 { font-size: 22.5px; font-weight: 700; line-height: 1.35; margin: 0 0 .5em; }
.plain h2.big { font-size: 24px; }
.plain p { margin: 0 0 .65em; min-height: 1.2em; }
.plain .closing { font-size: 18px; margin-top: .4em; }
.plain-cta { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; text-wrap: balance; }

.testimonial { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; margin: 0; }
.testimonial img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.testimonial .who { font-weight: 700; }
.stars { color: #e0a419; font-size: 20px; letter-spacing: 2px; }
.testimonial blockquote { margin: 8px 0 0; font-style: italic; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; color: var(--btn); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 14px; margin: 0; color: var(--ink-2); }

.footer-space { height: 90px; }

/* Aparecer devagar ao rolar (leve, e desligado para quem pede menos movimento) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Barra de compra presa no rodapé */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(60, 35, 10, .1); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s ease; }
.buybar.show { transform: none; }
.buybar-inner { max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.buybar-price { flex: none; line-height: 1.15; font-size: 13px; color: var(--ink-2); }
.buybar-price b { display: block; font-size: 22px; color: var(--green-dark); }
.buybar .btn { min-height: 52px; font-size: 17px; }

/* Botão fixo de continuar nas telas de pergunta */
.dock { position: sticky; bottom: 0; z-index: 5; margin: 24px calc(-1 * var(--gutter)) -32px; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(253, 248, 239, 0), var(--bg) 28%); }

@media (prefers-reduced-motion: reduce) {
  .screen.is-active { animation: none; }
  .carousel-track { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
