/* ===========================================================
   lesscal — Onboarding funnel (quiz) · tema white, marca vermelha
   =========================================================== */
@import url('../assets/fonts/lesscal-fonts.css');

:root{
  --red:#EF4444; --red-deep:#B91C1C; --red-bright:#F87171;
  --ink:#0B0B0D; --ink-soft:#18181B; --slate:#71717A; --mute:#A1A1AA;
  --wash:#FEF2F2; --cloud:#F4F4F5; --line:#E7E7EA; --white:#FFFFFF;
  --green:#22C55E; --amber:#F59E0B; --indigo:#6366F1;
  --grad:linear-gradient(135deg,#F87171 0%,#EF4444 55%,#B91C1C 100%);
  --disp:'Poppins',-apple-system,BlinkMacSystemFont,sans-serif;
  --body:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --ease:cubic-bezier(.4,0,.2,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:var(--body);color:var(--ink);background:#ECECEE;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;justify-content:center}
button{font-family:inherit;cursor:pointer;border:none;background:none}

.app{width:100%;max-width:480px;min-height:100vh;background:var(--white);display:flex;flex-direction:column;position:relative}

/* ---- TOP BAR ---- */
.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  padding:16px 20px 10px;display:flex;align-items:center;gap:12px}
.back{width:38px;height:38px;border-radius:50%;border:1.5px solid var(--line);background:#fff;
  display:grid;place-items:center;flex-shrink:0;transition:.2s}
.back:hover{background:var(--cloud)}
.back svg{width:18px;height:18px;stroke:var(--ink);fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.back.hide{visibility:hidden}
.prog{flex:1;display:flex;flex-direction:column;gap:5px}
.prog-bg{height:5px;background:var(--line);border-radius:3px;overflow:hidden}
.prog-fill{height:100%;background:var(--grad);border-radius:3px;width:4%;transition:width .45s var(--ease)}
.counter{font-size:11px;color:var(--mute);text-align:right;font-weight:600}
.brandmark{display:flex;align-items:center;gap:7px}
.brandmark img{width:26px;height:26px}
.brandmark span{font-family:var(--disp);font-weight:800;font-size:17px;letter-spacing:-.03em}
.brandmark span i{color:var(--red);font-style:normal}

/* ---- SCREEN ---- */
.screen{flex:1;display:flex;flex-direction:column;padding:18px 22px 130px;animation:fade .35s var(--ease)}
@keyframes fade{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.hero-emoji{width:78px;height:78px;border-radius:22px;background:var(--wash);display:grid;place-items:center;
  font-size:38px;margin:6px auto 18px}
.q-title{font-family:var(--disp);font-weight:800;font-size:25px;letter-spacing:-.02em;line-height:1.22;margin-bottom:8px}
.q-title.c{text-align:center}
.q-sub{font-size:14px;color:var(--slate);line-height:1.55;margin-bottom:22px}
.q-sub.c{text-align:center}
.q-title .hl{color:var(--red)}

/* ---- CTA bar ---- */
.cta-bar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;
  padding:14px 22px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(to top,#fff 72%,rgba(255,255,255,0));z-index:25}
.btn-cta{width:100%;padding:17px;border-radius:50px;background:var(--grad);color:#fff;font-weight:700;font-size:16.5px;
  box-shadow:0 14px 34px rgba(239,68,68,.34);transition:.2s var(--ease);display:flex;align-items:center;justify-content:center;gap:8px}
.btn-cta:hover{transform:translateY(-2px)}
.btn-cta:disabled{background:var(--line);color:var(--mute);box-shadow:none;cursor:not-allowed;transform:none}
.btn-text{background:none;width:100%;text-align:center;color:var(--slate);font-weight:600;font-size:14px;padding:12px;margin-top:2px}
.btn-text:hover{color:var(--ink)}

/* ---- options ---- */
.opts{display:flex;flex-direction:column;gap:11px}
.opt{width:100%;padding:16px;border:1.6px solid var(--line);border-radius:16px;background:#fff;
  display:flex;align-items:center;gap:13px;text-align:left;transition:.18s var(--ease)}
.opt:hover{border-color:#D4D4D8;background:#FCFCFD}
.opt.sel{background:var(--ink);border-color:var(--ink);color:#fff}
.opt-emoji{font-size:23px;flex-shrink:0;width:26px;text-align:center}
.opt-flag{font-size:23px;flex-shrink:0}
.opt-main{flex:1}
.opt-label{font-size:15px;font-weight:600;line-height:1.2}
.opt-sub{font-size:12px;color:var(--mute);margin-top:2px}
.opt.sel .opt-sub{color:#A1A1AA}
.opt-check{width:24px;height:24px;border-radius:50%;border:2px solid var(--line);flex-shrink:0;
  display:grid;place-items:center}
.opt-check svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.opt.sel .opt-check{background:var(--red);border-color:var(--red)}
.opt.sel .opt-check svg{opacity:1}

/* ---- chips ---- */
.sec-label{font-size:11px;font-weight:700;color:var(--slate);text-transform:uppercase;letter-spacing:.06em;
  margin:22px 0 11px;display:flex;align-items:center;gap:6px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:9px 15px;border-radius:50px;border:1.6px solid var(--line);background:#fff;font-size:13.5px;
  font-weight:600;display:flex;align-items:center;gap:6px;transition:.18s}
.chip:hover{border-color:#C4C4C8}
.chip.sel{background:var(--ink);border-color:var(--ink);color:#fff}
.notes{width:100%;margin-top:14px;border:1.6px solid var(--line);border-radius:14px;padding:13px 15px;
  font-family:var(--body);font-size:14px;resize:none;outline:none;color:var(--ink)}
.notes:focus{border-color:var(--ink)}
.hint{font-size:12.5px;color:var(--mute);text-align:center;margin-top:16px}

/* ---- picker ---- */
.pickers{display:flex;gap:10px;justify-content:center;margin:14px 0 4px}
.pcol{flex:1;max-width:150px;height:198px;overflow-y:scroll;scroll-snap-type:y mandatory;position:relative;
  scrollbar-width:none;-ms-overflow-style:none}
.pcol::-webkit-scrollbar{display:none}
.pitem{height:46px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--mute);
  scroll-snap-align:center;user-select:none;font-weight:500;transition:color .15s,font-size .15s}
.pitem.on{color:var(--ink);font-weight:700;font-size:19px;font-family:var(--disp)}
.pframe{position:relative}
.phighlight{position:absolute;top:50%;left:0;right:0;height:46px;transform:translateY(-50%);
  border-top:1.6px solid var(--line);border-bottom:1.6px solid var(--line);background:var(--cloud);
  border-radius:10px;pointer-events:none;z-index:0}
.plabel{text-align:center;font-size:11px;color:var(--mute);font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
.unit-toggle{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 4px;font-size:14px;font-weight:600;color:var(--mute)}
.unit-toggle .on{color:var(--ink)}
.tg{width:46px;height:27px;border-radius:14px;background:var(--ink);position:relative;flex-shrink:0;transition:.25s}
.tg::after{content:"";position:absolute;top:3px;left:22px;width:21px;height:21px;border-radius:50%;background:#fff;transition:left .25s}
.tg.left::after{left:3px}

/* ---- slider ---- */
.sld{margin:20px 4px}
.sld-val{text-align:center;font-family:var(--disp);font-size:54px;font-weight:800;line-height:1;letter-spacing:-.02em}
.sld-val u{font-size:22px;font-weight:600;color:var(--mute);text-decoration:none}
.sld-cap{text-align:center;font-size:13px;color:var(--slate);margin:6px 0 20px;font-weight:600}
.sld-cap b{color:var(--red)}
input[type=range]{width:100%;-webkit-appearance:none;height:6px;border-radius:4px;
  background:linear-gradient(to right,var(--red) 50%,var(--line) 50%);outline:none}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border-radius:50%;
  background:#fff;border:3px solid var(--red);box-shadow:0 3px 10px rgba(239,68,68,.4);cursor:pointer}
.sld-ticks{display:flex;justify-content:space-between;margin-top:8px;font-size:11px;color:var(--mute);font-weight:600}
.speed-icons{display:flex;justify-content:space-between;margin-bottom:14px}
.speed-icons .si{text-align:center;font-size:11px;color:var(--mute);font-weight:700;flex:1}
.speed-icons .si .e{font-size:30px;display:block;margin-bottom:4px;filter:grayscale(1);opacity:.5;transition:.2s}
.speed-icons .si.on{color:var(--ink)}
.speed-icons .si.on .e{filter:none;opacity:1;transform:scale(1.12)}
.res-box{margin-top:18px;padding:16px;background:var(--cloud);border-radius:16px;font-size:14px;color:var(--slate);line-height:1.6}
.res-box b{color:var(--ink)}
.res-box .badge{display:inline-block;background:var(--grad);color:#fff;padding:3px 12px;border-radius:50px;font-size:13px;font-weight:700}

/* ---- cards / charts ---- */
.card{background:var(--cloud);border-radius:18px;padding:20px;margin-top:6px}
.card-h{font-size:13px;font-weight:700;color:var(--slate);margin-bottom:14px}
.chart{height:120px}
.chart svg{width:100%;height:100%;overflow:visible}
.legend{display:flex;gap:18px;justify-content:center;font-size:11px;color:var(--slate);margin-top:8px;font-weight:600}
.legend i{display:inline-block;width:18px;height:3px;border-radius:2px;vertical-align:middle;margin-right:5px}
.stat-line{font-size:13px;color:var(--slate);text-align:center;margin-top:16px;line-height:1.5}
.stat-line b{color:var(--ink)}
.axis{display:flex;justify-content:space-between;font-size:11px;color:var(--mute);margin-top:6px;font-weight:600}

/* bars (2x) */
.bars{display:flex;justify-content:center;align-items:flex-end;gap:46px;height:184px;margin:8px 0 6px}
.bcol{display:flex;flex-direction:column;align-items:center;gap:10px}
.bar{width:84px;border-radius:12px 12px 0 0;display:flex;align-items:flex-start;justify-content:center;padding-top:12px;
  font-family:var(--disp);font-weight:800;transition:height 1s cubic-bezier(.17,.67,.36,1.1)}
.bar.no{background:#E4E4E7;color:var(--slate);font-size:15px;height:64px}
.bar.yes{background:var(--grad);color:#fff;font-size:26px;height:160px;box-shadow:0 12px 30px rgba(239,68,68,.3)}
.blabel{font-size:11.5px;color:var(--slate);font-weight:700;text-align:center}

/* ---- privacy / trust ---- */
.privacy{background:var(--cloud);border-radius:18px;padding:22px;display:flex;gap:14px;align-items:flex-start;margin-top:8px}
.privacy .pic{width:46px;height:46px;border-radius:13px;background:var(--wash);display:grid;place-items:center;font-size:22px;flex-shrink:0}
.privacy p{font-size:14px;color:var(--slate);line-height:1.55}

/* ---- testimonials ---- */
.rating-badge{background:var(--cloud);border-radius:18px;padding:18px;text-align:center;margin-bottom:16px}
.rating-badge .num{font-family:var(--disp);font-size:32px;font-weight:800}
.rating-badge .stars{color:#FBBF24;font-size:19px;letter-spacing:2px;margin:2px 0}
.rating-badge .sub{font-size:12px;color:var(--slate)}
.tcards{display:flex;flex-direction:column;gap:11px}
.tcard{border:1.5px solid var(--line);border-radius:16px;padding:16px}
.tc-top{display:flex;align-items:center;gap:11px;margin-bottom:9px}
.tc-av{width:44px;height:44px;border-radius:50%;background:var(--cloud) center/cover no-repeat;flex-shrink:0}
.tc-name{font-weight:700;font-size:14px}
.tc-h{font-size:12px;color:var(--mute)}
.tc-stars{color:#FBBF24;font-size:12px;margin-left:auto}
.tcard p{font-size:13.5px;color:#3F3F46;line-height:1.5}

/* ---- install ---- */
.inst{display:flex;flex-direction:column;gap:14px;margin-top:6px}
.inst-item{display:flex;gap:14px;align-items:flex-start}
.inst-n{width:30px;height:30px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;
  font-weight:700;font-size:13px;flex-shrink:0}
.inst-t{font-size:14px;color:var(--slate);line-height:1.45;padding-top:4px}
.inst-t b{color:var(--ink)}
.why{margin-top:24px}
.why h4{font-size:12px;font-weight:700;color:var(--slate);text-transform:uppercase;letter-spacing:.06em;margin-bottom:11px}
.why-row{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--slate);margin-bottom:8px}
.why-row .ck{color:var(--green);font-weight:800}

/* ---- notification mock ---- */
.notif{background:var(--cloud);border-radius:20px;overflow:hidden;margin-top:16px;box-shadow:var(--sh-md)}
.notif-top{padding:18px;display:flex;gap:12px;align-items:flex-start}
.notif-ic{width:46px;height:46px;border-radius:12px;flex-shrink:0;overflow:hidden}
.notif-ic img{width:100%;height:100%}
.notif-tx h3{font-size:14px;font-weight:700}
.notif-tx p{font-size:13px;color:var(--slate);margin-top:2px;line-height:1.4}
.notif-acts{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}
.notif-acts button{padding:15px;font-size:15px;font-weight:600;color:var(--slate);transition:.15s}
.notif-acts button:first-child{border-right:1px solid var(--line)}
.notif-acts button.allow{color:var(--red);font-weight:700}
.notif-acts button:hover{background:#EAEAEC}

/* ---- referral ---- */
.ref-in{width:100%;padding:17px 20px;border:1.6px solid var(--line);border-radius:16px;font-size:15px;font-weight:700;
  letter-spacing:2px;text-transform:uppercase;text-align:center;outline:none;color:var(--ink);margin-bottom:12px}
.ref-in::placeholder{letter-spacing:1px;font-weight:500;text-transform:none;color:var(--mute)}
.ref-in:focus{border-color:var(--ink)}

/* ---- loading ---- */
.load-pct{font-family:var(--disp);font-size:74px;font-weight:900;text-align:center;line-height:1}
.load-pct u{font-size:30px;text-decoration:none;color:var(--mute)}
.load-h{text-align:center;font-size:16px;font-weight:600;margin:6px 0 18px}
.load-bg{height:8px;background:var(--line);border-radius:5px;overflow:hidden}
.load-fl{height:100%;width:0;background:var(--grad);border-radius:5px;transition:width .3s var(--ease)}
.load-st{font-size:12.5px;color:var(--slate);text-align:center;margin:10px 0 26px;min-height:16px}
.checklist{display:flex;flex-direction:column;gap:13px}
.citem{display:flex;align-items:center;gap:13px;font-size:15px;color:var(--mute);font-weight:600;transition:color .3s}
.citem.done{color:var(--ink)}
.ccircle{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);flex-shrink:0;display:grid;place-items:center}
.ccircle svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.citem.done .ccircle{background:var(--green);border-color:var(--green)}
.citem.done .ccircle svg{opacity:1}

/* ---- results ---- */
.congrats{width:74px;height:74px;border-radius:50%;background:var(--green);display:grid;place-items:center;font-size:38px;margin:4px auto 14px}
.goal-badge{display:flex;align-items:center;gap:7px;justify-content:center;padding:10px 18px;background:var(--wash);
  color:var(--red-deep);border-radius:50px;font-size:14px;font-weight:700;margin:0 auto 20px;width:fit-content}
.macros-card{background:var(--cloud);border-radius:18px;padding:18px;margin-bottom:14px}
.mc-h{font-size:15px;font-weight:700}.mc-sub{font-size:12px;color:var(--slate);margin:2px 0 16px}
.macros-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.macro{text-align:center}
.macro .nm{font-size:10.5px;color:var(--slate);font-weight:600}
.donut{position:relative;width:66px;height:66px;margin:4px auto 6px}
.donut svg{transform:rotate(-90deg)}
.donut .dring{transition:stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1)}
.donut .v{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:13px;text-align:center;line-height:1}
.donut .v u{font-size:9px;font-weight:500;color:var(--mute);text-decoration:none;display:block}
.health-card{background:var(--cloud);border-radius:18px;padding:18px;margin-bottom:14px}
.hc-top{display:flex;align-items:center;justify-content:space-between}
.hc-top b{font-size:14px}.hc-top .sc{font-family:var(--disp);font-weight:800;font-size:18px;color:var(--green)}
.hbar{height:9px;background:var(--line);border-radius:5px;overflow:hidden;margin-top:9px}
.hbar i{display:block;height:100%;width:0;background:var(--green);border-radius:5px;transition:width 1s var(--ease)}
.goals-list{display:flex;flex-direction:column;gap:9px;margin-bottom:18px}
.goals-list .g{display:flex;gap:12px;align-items:center;padding:14px;background:var(--cloud);border-radius:14px;font-size:14px;font-weight:600}
.goals-list .g .e{font-size:20px}
.sources{background:var(--cloud);border-radius:14px;padding:15px;font-size:12px;color:var(--slate);line-height:1.85;margin-bottom:16px}
.sources b{color:var(--ink);display:block;margin-bottom:5px;font-size:12px}

/* ---- paywall (final) ---- */
.pw{padding-top:6px}
.pw-plans{display:flex;flex-direction:column;gap:14px;margin:18px 0}
.plan{border:2px solid var(--line);border-radius:20px;padding:20px;position:relative;transition:.2s}
.plan.best{border-color:var(--red);box-shadow:0 18px 40px rgba(239,68,68,.18)}
.plan .ribbon{position:absolute;top:-12px;left:20px;background:var(--grad);color:#fff;font-weight:700;font-size:11.5px;
  padding:5px 13px;border-radius:50px;box-shadow:0 8px 18px rgba(239,68,68,.34)}
.plan-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.plan h3{font-family:var(--disp);font-weight:700;font-size:18px}
.plan .tag{font-size:12.5px;color:var(--slate);margin-top:2px}
.plan .pr{display:flex;align-items:baseline;gap:8px;margin-top:10px}
.plan .pr .amt{font-family:var(--disp);font-weight:800;font-size:34px;letter-spacing:-.02em}
.plan .pr .old{color:var(--mute);text-decoration:line-through;font-weight:600;font-size:16px}
.plan .per{font-size:12px;color:var(--mute);margin-top:2px}
.plan .radio{width:24px;height:24px;border-radius:50%;border:2px solid var(--line);flex-shrink:0;display:grid;place-items:center}
.plan.sel .radio{border-color:var(--red);background:var(--red)}
.plan.sel .radio::after{content:"";width:9px;height:9px;border-radius:50%;background:#fff}
.plan.sel{border-color:var(--red)}
.pw-guarantee{text-align:center;font-size:12.5px;color:var(--mute);margin-top:14px}
.pw-feats{display:flex;flex-direction:column;gap:7px;margin:6px 0 4px}
.pw-feats .f{display:flex;gap:9px;align-items:center;font-size:13.5px;color:#3F3F46}
.pw-feats .f svg{width:18px;height:18px;color:var(--red);stroke:currentColor;fill:none;stroke-width:2.6;flex-shrink:0}

@media(max-width:380px){ .bars{gap:34px} .bar{width:72px} .q-title{font-size:23px} }
