/* ================= QUIZ MeuMoun ================= */
:root {
  --q-bg: #f2f3f5;
  --q-ink: #0f172a;
  --q-sub: #475569;
  --q-muted: #94a3b8;
  --q-line: #e2e8f0;
  --q-green: #3f6e4f;
  --q-green-d: #2f5a3f;
  --q-sel: #eefaf1;
  --q-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.quiz-body { background: var(--q-bg); font-family: var(--q-font); color: var(--q-ink); }
.qz { max-width: 480px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }

/* topo: voltar + barra de progresso */
.qz-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 16px; background: var(--q-bg); }
.qz-back, .qz-close { flex: none; width: 32px; height: 32px; margin-left: -6px; display: grid; place-items: center; background: none; border: 0; color: var(--q-ink); border-radius: 10px; }
.qz-back:active, .qz-close:active { background: #e6e9ee; }
.qz-close { margin-left: auto; }
.qz-close[hidden] { display: none; }
.qz-prog { flex: 1; height: 4px; border-radius: 4px; background: var(--q-line); overflow: hidden; }
.qz-prog span { display: block; height: 100%; width: 0; background: var(--q-green); border-radius: 4px; transition: width .45s cubic-bezier(.3,.7,.2,1); }
.qz-top.no-prog .qz-prog { visibility: hidden; }
.qz-top.no-back .qz-back { visibility: hidden; }

/* palco com transição entre etapas */
.qz-stage { flex: 1; position: relative; padding: 12px 16px 120px; }
.qz-step { animation: stepIn .38s cubic-bezier(.3,.7,.2,1); }
.qz-step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.qz-step.center { min-height: calc(100dvh - 60px - 140px); display: flex; flex-direction: column; justify-content: center; }

.qz-title { margin: 0; font-size: 25px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.qz-sub { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: var(--q-sub); }
.qz-sub.light { color: var(--q-muted); }
.qz-note { margin: 18px 6px 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--q-muted); }

/* opções */
.qz-opts { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.opt {
  width: 100%; min-height: 52px;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid var(--q-line);
  border-radius: 14px;
  font: 600 16px var(--q-font); color: var(--q-ink); text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .12s;
}
.opt:active { transform: scale(.985); }
.opt .ic { flex: none; width: 22px; height: 22px; color: #475569; display: grid; place-items: center; }
.opt .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opt .lb { flex: 1; }
.opt .lb small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--q-sub); }
.opt .rd { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #dfe3ea; display: grid; place-items: center; transition: border-color .2s; }
.opt .ck { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #dfe3ea; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.opt.on { border-color: var(--q-green); background: var(--q-sel); color: var(--q-green-d); }
.opt.on .ic { color: var(--q-green); }
.opt.on .rd { border-color: var(--q-green); }
.opt.on .rd::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--q-green); }
.opt.on .ck { background: var(--q-green); border-color: var(--q-green); }
.opt.on .ck::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }

/* botão de baixo */
.qz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(242,243,245,0), var(--q-bg) 30%); }
.qz-btn {
  display: block; width: 100%; max-width: 448px; height: 54px; margin: 0 auto;
  border: 0; border-radius: 14px;
  background: var(--q-green); color: #fff;
  font: 600 17px var(--q-font);
  cursor: pointer;
  transition: background .2s, color .2s, transform .12s;
}
.qz-btn:active { transform: scale(.985); }
.qz-btn:disabled { background: #e2e8f0; color: var(--q-muted); cursor: default; transform: none; }

/* datas */
.qz-date { display: grid; grid-template-columns: 1fr 2.4fr 1.35fr; gap: 16px; margin-top: 26px; }
.qz-date label { display: block; text-align: center; font-size: 15px; color: var(--q-sub); }
.qz-date .sel { position: relative; margin-top: 8px; }
.qz-date select {
  width: 100%; height: 58px; padding: 0 26px 0 12px;
  appearance: none; -webkit-appearance: none;
  background: #fff; border: 1.5px solid var(--q-line); border-radius: 14px;
  font: 600 19px var(--q-font); color: var(--q-ink); text-align: center; text-align-last: center;
}
.qz-date select:focus { outline: none; border-color: var(--q-green); }
.qz-date .sel::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--q-muted); border-bottom: 1.5px solid var(--q-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* número grande "toque para editar" */
.qz-num { margin: 26px auto 0; width: fit-content; text-align: center; }
.qz-num .row { display: flex; align-items: baseline; justify-content: center; gap: 14px; padding: 0 22px 6px; border-bottom: 2px solid var(--q-line); }
.qz-num input {
  width: 3.2ch; padding: 0; border: 0; background: transparent;
  font: 800 66px/1 var(--q-font); letter-spacing: -0.03em; color: var(--q-ink); text-align: center;
  -moz-appearance: textfield;
}
.qz-num input::-webkit-outer-spin-button, .qz-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qz-num input:focus { outline: none; }
.qz-num .row:focus-within { border-color: var(--q-green); }
.qz-num .un { font-size: 26px; font-weight: 600; color: var(--q-sub); }
.qz-num small { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--q-muted); }

/* IMC */
.imc-card { margin-top: 28px; padding: 16px 20px 18px; background: #fff; border: 1.5px solid var(--q-line); border-radius: 16px; }
.imc-top { display: flex; align-items: center; gap: 10px; }
.imc-top i { font-style: normal; font-size: 14px; color: var(--q-muted); }
.imc-top b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.imc-tag { margin-left: auto; padding: 4px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.imc-scale { position: relative; margin-top: 12px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #f8d24f 0 12%, #22a249 12% 34%, #fbbf24 34% 50%, #fdba74 50% 67%, #fb923c 67% 84%, #f87171 84%); }
.imc-dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--q-ink); transform: translate(-50%, -50%); transition: left .35s ease; }

/* meta */
.goal-diff { margin-top: 24px; text-align: center; }
.goal-diff b { font-size: 50px; font-weight: 800; letter-spacing: -0.03em; color: #dc2626; }
.goal-diff b i { font-style: normal; font-size: 24px; margin-left: 4px; }
.goal-diff span { display: block; margin-top: 2px; font-size: 18px; color: var(--q-sub); }
.goal-diff.gain b { color: var(--q-green); }

/* ritmo */
.spd { margin-top: 22px; text-align: center; }
.spd-v b { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.spd-v span { font-size: 20px; font-weight: 600; color: var(--q-sub); margin-left: 2px; }
.spd-ic { width: 64px; height: 64px; margin: 18px auto 0; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.spd-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--q-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.spd-name { display: block; margin-top: 12px; font-size: 22px; font-weight: 700; }
.spd-range { position: relative; margin: 28px 8px 0; }
.spd-range input { width: 100%; height: 26px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
.spd-range input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--q-green) var(--p), #e2e8f0 var(--p)); }
.spd-range input::-moz-range-track { height: 4px; border-radius: 4px; background: #e2e8f0; }
.spd-range input::-moz-range-progress { height: 4px; background: var(--q-green); }
.spd-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--q-green); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.spd-range input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--q-green); border: 3px solid #fff; }
.spd-ticks { position: absolute; left: 0; right: 0; top: 9px; height: 8px; display: flex; justify-content: space-between; pointer-events: none; padding: 0 2px; }
.spd-ticks i { width: 1.5px; height: 8px; background: rgba(148,163,184,.55); }
.spd-ends { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 14px; color: var(--q-muted); }
.spd-msg { margin-top: 24px; padding: 18px; background: #fff; border-radius: 16px; font-size: 16px; line-height: 1.45; color: var(--q-sub); }

/* tela informativa da dose */
.dose-card { width: 230px; margin: 28px auto 0; padding: 18px 20px 22px; background: #fff; border-radius: 22px; }
.dose-card .h { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
.dose-card .h span { color: var(--q-green); font-weight: 600; }
.dose-ring { position: relative; width: 132px; height: 132px; margin: 18px auto 0; }
.dose-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dose-ring circle { fill: none; stroke-width: 9; }
.dose-ring .bg { stroke: #e2e8f0; }
.dose-ring .fg { stroke: var(--q-green); stroke-linecap: round; stroke-dasharray: 0 400; animation: ringFill 1s .25s ease forwards; }
@keyframes ringFill { to { stroke-dasharray: 64 400; } }
.dose-ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dose-ring b { font-size: 40px; font-weight: 800; }
.dose-ring small { font-size: 14px; color: var(--q-muted); }
.feat { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.feat > div { display: flex; gap: 14px; }
.feat .fi { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #e3ebe6; color: var(--q-green); display: grid; place-items: center; }
.feat .fi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feat b { display: block; font-size: 17px; font-weight: 600; }
.feat small { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--q-sub); }

/* "é totalmente possível" */
.poss { text-align: center; padding-top: 40px; }
.poss-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--q-green); display: grid; place-items: center; }
.poss-ic svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.poss h1 { margin: 22px 0 0; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.poss h1 em { font-style: normal; color: var(--q-green); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; padding: 20px 20px 18px; background: #fff; border-radius: 20px; }
.cmp small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--q-muted); white-space: nowrap; text-align: center; }
.cmp { gap: 16px; }
.cmp-col { height: 240px !important; }
.cmp small.g { color: var(--q-green); }
.cmp-col { position: relative; height: 270px; margin-top: 12px; border-radius: 16px; background: #eef2f7; overflow: hidden; }
.cmp-bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: height 1s cubic-bezier(.3,.7,.2,1); }
.cmp-bar.a { background: #cbd5e1; color: #475569; }
.cmp-bar.b { left: 0; right: 0; bottom: 0; background: var(--q-green); color: #fff; justify-content: flex-start; padding-top: 70px; }
.cmp-col.b { background: transparent; }
.cmp-bar b { font-size: 32px; font-weight: 800; }
.cmp-bar span { font-size: 15px; font-weight: 600; opacity: .9; }
.cmp-bar.a span { font-weight: 400; color: var(--q-muted); }
.poss .qz-note { margin-top: 22px; }

/* recursos */
.fl { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.fl > div { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--q-line); border-radius: 16px; opacity: 0; transform: translateY(10px); animation: flIn .4s ease forwards; }
@keyframes flIn { to { opacity: 1; transform: none; } }
.fl .fi { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.fl .fi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fl b { display: block; font-size: 17px; font-weight: 600; }
.fl small { display: block; margin-top: 2px; font-size: 15px; color: var(--q-sub); }

/* depoimentos */
.rv { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.rv-c { padding: 18px 20px; background: #fff; border: 1.5px solid var(--q-line); border-radius: 18px; }
.rv-h { display: flex; align-items: center; gap: 14px; }
.rv-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #e3ebe6; color: var(--q-green); font-weight: 700; font-size: 18px; }
.rv-h b { font-size: 18px; font-weight: 700; }
.rv-h b .vf { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; background: #1d8fe1; color: #fff; font-size: 11px; vertical-align: 2px; }
.rv-h small { display: block; font-size: 14px; color: var(--q-muted); }
.rv-st { margin-top: 10px; color: #f59e0b; letter-spacing: 2px; font-size: 18px; }
.rv-c p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; font-style: italic; color: #334155; }
.rv-tag { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 14px; background: #eefaf1; color: var(--q-green-d); font-size: 15px; font-weight: 700; }
.rv-foot { margin: 6px 4px 0; font-size: 13px; color: var(--q-muted); }

/* código */
.qz-code { width: 100%; height: 60px; margin-top: 26px; padding: 0 18px; border: 1.5px solid var(--q-green); border-radius: 16px; background: #fff; font: 500 18px var(--q-font); color: var(--q-ink); text-align: center; }
.qz-code::placeholder { color: var(--q-muted); }
.qz-code:focus { outline: none; box-shadow: 0 0 0 3px rgba(63,110,79,.15); }

/* criando o plano */
.ld { text-align: center; padding-top: 40px; }
.ld-ic { width: 58px; height: 58px; margin: 0 auto; border-radius: 14px; background: var(--q-green); display: grid; place-items: center; }
.ld-ic svg { width: 26px; height: 26px; fill: #fff; }
.ld h1 { margin: 22px 0 0; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.ld .qz-sub { color: var(--q-muted); }
.ld-list { margin-top: 26px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.ld-it { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 8px; opacity: .45; transition: opacity .3s; }
.ld-it::after { content: ""; position: absolute; left: 50px; right: 0; bottom: 0; height: 2px; background: var(--q-green); transform: scaleX(0); transform-origin: left; transition: transform .7s linear; }
.ld-it .li { flex: none; width: 36px; height: 36px; border-radius: 9px; background: #e9edf1; color: #64748b; display: grid; place-items: center; transition: background .25s, color .25s; }
.ld-it .li svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ld-it b { display: block; font-size: 15.5px; font-weight: 600; }
.ld-it small { display: block; font-size: 13px; color: var(--q-sub); }
.ld-it.cur { opacity: 1; }
.ld-it.cur::after { transform: scaleX(1); }
.ld-it.cur .li { background: #e3ebe6; color: var(--q-green); }
.ld-it.done { opacity: 1; }
.ld-it.done::after { transform: scaleX(1); }
.ld-it.done .li { background: var(--q-green); color: #fff; }

/* plano pronto */
.pl-title { margin: 0; text-align: center; font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.pl-title em { font-style: normal; color: var(--q-green); }
.pl-chips { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.pl-chips span { padding: 5px 10px; border-radius: 12px; background: #e8ebef; font-size: 12px; font-weight: 600; color: #334155; }
.pl-c { margin-top: 14px; padding: 18px 16px; background: #fff; border-radius: 18px; }
.pl-c h2 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.pl-c h2.c { justify-content: center; }
.pl-c h2 svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg > div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #f6f7f9; }
.mg .w { grid-column: 1 / -1; }
.mg .hl { background: #fdecee; border: 1.5px solid #f3b9c0; }
.mg i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 15px; }
.mg small { display: block; font-size: 12px; color: var(--q-sub); }
.mg b { font-size: 17px; font-weight: 700; }
.mg b span { font-size: 11px; font-weight: 400; color: var(--q-muted); margin-left: 2px; }
.tl-lab { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--q-muted); }
.tl-bar { position: relative; height: 18px; margin: 8px 6px 0; }
.tl-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #e2e8f0; transform: translateY(-50%); }
.tl-bar .fill { position: absolute; left: 0; top: 50%; height: 3px; background: var(--q-green); transform: translateY(-50%); }
.tl-bar i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--q-green); transform: translate(-50%, -50%); }
.tl-bar i.o { background: #fff; border: 1.5px solid #cbd5e1; }
.tl-val { display: flex; justify-content: space-between; margin-top: 6px; font-size: 17px; font-weight: 700; }
.tl-note { margin-top: 8px; text-align: center; font-size: 13px; color: var(--q-muted); }
.na { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #e3ebe6; font-size: 16px; font-weight: 500; color: #1e3a2b; }
.na-sub { margin-top: 10px; font-size: 14px; color: var(--q-sub); }
.bmi { display: flex; align-items: center; justify-content: space-between; }
.bmi small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--q-muted); }
.bmi b { display: block; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.bmi .r { text-align: right; }
.bmi .tg { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.src { display: flex; gap: 12px; padding: 10px 0; }
.src svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: #475569; stroke-width: 1.8; }
.src b { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.src small { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .04em; color: var(--q-muted); }

/* tela de assinatura */
.pw { text-align: center; }
.pw-phone { position: relative; width: 147px; height: 300px; margin: 0 auto; overflow: hidden; }
.pw-phone .phone-wrap { position: absolute; left: 0; top: 0; width: 262px; margin: 0; transform: scale(.56); transform-origin: top left; }
.pw-phone .phone-wrap::before { display: none; }
.pw h1 { margin: 16px 0 0; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.pw .qz-sub { margin-top: 10px; }
.pw-c { margin-top: 18px; padding: 18px 16px; background: #fff; border-radius: 18px; text-align: left; }
.pw-c h2 { margin: 0; font-size: 16px; font-weight: 600; }
.pw-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--q-sub); }
.pw-row b { flex: none; font-size: 15px; color: var(--q-ink); }
.pw-row.g { margin-top: 14px; padding: 14px; border-radius: 12px; background: #eefaf1; color: var(--q-green-d); font-weight: 600; }
.pw-row.g b { color: var(--q-green-d); }
.pw-small { margin-top: 6px; text-align: right; font-size: 11px; color: var(--q-muted); }
.pw-c p { margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--q-sub); }

@media (prefers-reduced-motion: reduce) {
  .qz-step, .fl > div { animation: none; opacity: 1; transform: none; }
}
