:root {
  --bg: #fff8ef; --card: #ffffff; --ink: #1f2a24; --muted: #5d6a63; --line: #efe4d6;
  --c1: #ff8a5b; --c2: #ffd166; --c3: #5ec2b7; --c4: #7b8cff; --c5: #ff6fa5;
  --ok: #1faa59; --ok-dark: #12873f; --err: #d64545;
  --radius: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: "Nunito", system-ui, sans-serif; font-size: 17px; line-height: 1.45;
  min-height: 100dvh; display: flex; flex-direction: column;
}
.pencils { display: flex; height: 8px; }
.pencils span { flex: 1; }
.pencils span:nth-child(1) { background: var(--c1); } .pencils span:nth-child(2) { background: var(--c2); }
.pencils span:nth-child(3) { background: var(--c3); } .pencils span:nth-child(4) { background: var(--c4); }
.pencils span:nth-child(5) { background: var(--c5); }
.top { display: flex; justify-content: center; padding: 18px 16px 6px; }
.logo { height: 46px; }
main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px 28px; }
.foot p { margin: 4px 0; }

h1, h2 { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.1; margin: 10px 0 8px; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 14px; }
.eyebrow { color: var(--c1); font-family: "Baloo 2", sans-serif; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 15px; margin: 0; }

.step { display: flex; gap: 6px; justify-content: center; margin: 4px 0 14px; }
.step i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.step i.on { background: var(--c1); }

.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 28px rgba(60, 40, 10, .08); margin: 14px 0; }
.btn {
  appearance: none; border: 0; border-radius: 999px; font: 800 19px "Baloo 2", sans-serif; padding: 14px 22px; width: 100%;
  background: var(--ok); color: #fff; box-shadow: 0 5px 0 var(--ok-dark); cursor: pointer; margin-top: 14px;
}
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--ok-dark); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--line); font-size: 17px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: 10px 0; }

.options { display: grid; gap: 12px; }
.opt {
  appearance: none; text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 18px; padding: 16px 18px;
  font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 14px; position: relative;
}
.opt.sel { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(255, 138, 91, .18); }
.opt .big { font: 800 30px "Baloo 2", sans-serif; min-width: 54px; text-align: center; color: var(--c4); }
.opt strong { display: block; font-size: 18px; }
.opt .price { margin-left: auto; text-align: right; font-weight: 800; white-space: nowrap; }
.opt .price small { display: block; font-weight: 700; color: var(--muted); font-size: 13px; }
.tag { position: absolute; top: -10px; right: 14px; background: var(--c2); font: 800 12px "Nunito"; padding: 3px 10px; border-radius: 999px; }
.emoji { font-size: 34px; }

.examples { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.examples img { width: 72%; max-width: 300px; flex: 0 0 auto; border-radius: 16px; scroll-snap-align: center; box-shadow: 0 8px 22px rgba(60, 40, 10, .12); background: #fff; }
.how { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: flex-start; }
.how b { background: var(--c3); color: #fff; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; font-family: "Baloo 2"; }

label.field { display: block; margin: 12px 0; font-weight: 700; }
label.field input { display: block; width: 100%; margin-top: 6px; border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; font: 500 17px "Nunito"; background: #fff; color: var(--ink); }
label.field input:focus { outline: none; border-color: var(--c4); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 14px 0 4px; }
label.check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--ok); }
.error { color: var(--err); font-weight: 700; margin: 8px 0; }

.drop { display: block; border: 2px dashed var(--c4); border-radius: var(--radius); padding: 22px 16px; text-align: center; background: #fbfaff; cursor: pointer; }
.drop input { display: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eee; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .st { position: absolute; inset: auto 6px 6px auto; background: rgba(255,255,255,.92); border-radius: 999px; font-size: 13px; padding: 2px 8px; font-weight: 800; }
.thumb.fail { outline: 3px solid var(--err); }
.bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 10px 0; }
.bar > span { display: block; height: 100%; background: var(--ok); width: 0; transition: width .4s; }

.summary { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; }
.code { font: 800 22px "Baloo 2"; letter-spacing: .12em; color: var(--c4); }
.done-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.done-grid img { width: 100%; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(60, 40, 10, .08); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--c1); animation: spin 1s linear infinite; margin: 14px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { background: #fff4d6; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
a.btn { display: block; text-align: center; text-decoration: none; }

/* Botão flutuante do WhatsApp (abre a conversa com a mensagem do anúncio) */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .15s ease, background .15s ease;
}
.wa-float:hover { background: #1ebe5b; transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--c4); outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; }
/* Espaço no fim da página para o botão não cobrir o rodapé nem os botões */
body { padding-bottom: 84px; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

label.field .hint { display: block; font-weight: 500; margin-top: 6px; }
.qr { width: 230px; max-width: 70vw; margin: 10px auto; background: #fff; border-radius: 12px; padding: 6px; }
.qr svg { width: 100%; height: auto; display: block; }
.pixcode { width: 100%; margin-top: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 10px; font: 500 12px ui-monospace, monospace; resize: none; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c2); animation: pulse 1.2s infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .3; } }
h3 { font-family: "Baloo 2", sans-serif; font-size: 22px; margin: 4px 0; }
