/* Calistenia Espartana — estilos compartilhados (quiz + página de vendas) */
:root{
  --bg:#09090a; --bg2:#101012; --card:#141417; --card2:#1a1a1e; --line:#27272c;
  --red:#e5222d; --red-d:#b3121b; --red-glow:rgba(229,34,45,.35);
  --gold:#d9b25f; --text:#f5f5f6; --mute:#a3a3ad;
  --r:18px; --r-sm:12px;
  --f-head:"Barlow Condensed","Arial Narrow",Impact,sans-serif;
  --f-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{background:#000;color:var(--text);font-family:var(--f-body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
.app{max-width:480px;margin:0 auto;min-height:100dvh;background:var(--bg);position:relative;overflow-x:hidden;
  background-image:radial-gradient(120% 50% at 50% 0%,rgba(229,34,45,.10),transparent 60%)}
@media(min-width:520px){.app{box-shadow:0 0 0 1px var(--line),0 0 80px rgba(229,34,45,.08)}}

/* tipografia */
.h1,.h2{font-family:var(--f-head);font-weight:800;text-transform:uppercase;line-height:1.04;letter-spacing:.01em;text-wrap:balance}
.h1{font-size:clamp(30px,9vw,40px)}
.h2{font-size:clamp(25px,7.4vw,31px)}
.sub{color:var(--mute);font-size:15.5px;text-wrap:balance}
.center{text-align:center}
.hl{background:var(--red);color:#fff;padding:.02em .22em;border-radius:5px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.red{color:var(--red)} .gold{color:var(--gold)}

/* botão principal */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;padding:14px 20px;border-radius:14px;
  background:linear-gradient(180deg,#f0303b,var(--red-d));color:#fff;font-weight:800;font-size:16px;letter-spacing:.01em;text-align:center;
  box-shadow:0 8px 28px var(--red-glow),inset 0 1px 0 rgba(255,255,255,.22);transition:transform .15s,filter .15s;text-decoration:none}
.btn:active{transform:scale(.98)}
.btn:hover{filter:brightness(1.08)}
.btn[disabled]{opacity:.4;pointer-events:none}
.btn svg{width:20px;height:20px;flex:none}
.btn.pulse{animation:pulse 2.4s infinite}
@keyframes pulse{0%,100%{box-shadow:0 8px 28px var(--red-glow),inset 0 1px 0 rgba(255,255,255,.22)}50%{box-shadow:0 8px 40px rgba(229,34,45,.6),inset 0 1px 0 rgba(255,255,255,.22)}}

/* ===== QUIZ ===== */
.q-top{position:sticky;top:0;z-index:20;padding:14px 20px 12px;background:linear-gradient(var(--bg) 70%,transparent)}
.q-bar{display:flex;align-items:center;gap:12px}
.q-back{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);flex:none;transition:opacity .2s}
.q-back[hidden]{visibility:hidden;display:grid}
.q-back svg{width:18px;height:18px}
.q-logo{height:46px;width:auto;margin:0 auto;filter:drop-shadow(0 2px 10px rgba(0,0,0,.6))}
.q-spacer{width:38px;flex:none}
.progress{height:6px;border-radius:99px;background:#222226;margin-top:12px;overflow:hidden}
.progress i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--red-d),#ff4a54);transition:width .5s cubic-bezier(.4,.1,.2,1)}
.q-step{display:none;padding:14px 20px 120px;animation:in .45s cubic-bezier(.2,.7,.2,1)}
.q-step.on{display:block}
@keyframes in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.q-step .h1,.q-step .h2{margin:14px 0 10px;text-align:center}
.q-step .sub{text-align:center;margin-bottom:18px}
.q-foot{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:480px;padding:16px 20px calc(16px + env(safe-area-inset-bottom));
  background:linear-gradient(transparent,var(--bg) 38%);z-index:15}
.q-foot[hidden]{display:none}

.proof{margin-top:6px;border-radius:var(--r);overflow:hidden;border:1px solid var(--line);background:#fff;box-shadow:0 14px 40px rgba(0,0,0,.55)}
.proof img{width:100%;height:auto}
.proof-cap{font-size:12px;color:var(--mute);text-align:center;margin-top:10px}

.cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.age{position:relative;border-radius:var(--r);overflow:hidden;background:var(--card);border:1.5px solid var(--line);text-align:left;transition:transform .18s,border-color .18s,box-shadow .18s}
.age img{width:100%;aspect-ratio:1/1.08;object-fit:cover;object-position:50% 14%}
.age span{display:block;padding:12px 8px 14px;text-align:center;font-family:var(--f-head);font-weight:800;font-size:21px;text-transform:uppercase;letter-spacing:.02em}
.age:active{transform:scale(.97)}
.age.sel,.goal.sel{border-color:var(--red);box-shadow:0 0 0 3px var(--red-glow)}
.age.sel::after,.goal.sel::after{content:"";position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:50%;
  background:var(--red) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat}

.goals{display:flex;flex-direction:column;gap:12px}
.goal{position:relative;display:flex;align-items:stretch;gap:14px;text-align:left;border-radius:var(--r);overflow:hidden;background:var(--card);border:1.5px solid var(--line);transition:transform .18s,border-color .18s,box-shadow .18s}
.goal:active{transform:scale(.98)}
.goal img{width:96px;flex:none;object-fit:cover;object-position:50% 12%;background:#0c0c0d}
.goal div{padding:14px 40px 14px 0;align-self:center;font-size:14.5px;color:#d4d4da;line-height:1.4}
.goal b{display:block;font-family:var(--f-head);font-size:20px;text-transform:uppercase;color:var(--gold);letter-spacing:.02em;margin-bottom:3px}

/* seletor de unidade + régua */
.seg{display:inline-flex;padding:4px;border-radius:99px;background:var(--card);border:1px solid var(--line);margin:4px auto 20px}
.seg button{padding:8px 26px;border-radius:99px;font-weight:700;color:var(--mute);transition:.2s}
.seg button.on{background:var(--red);color:#fff}
.val{font-family:var(--f-head);font-weight:800;font-size:84px;line-height:1;text-align:center}
.val small{font-size:30px;margin-left:4px;color:var(--mute);font-weight:700}
.ruler-wrap{position:relative;margin:14px -20px 0;height:120px}
.ruler{height:100%;overflow-x:scroll;scrollbar-width:none;-webkit-overflow-scrolling:touch;cursor:grab;touch-action:pan-x;
  mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent)}
.ruler::-webkit-scrollbar{display:none}
.ruler-in{position:relative;height:100%}
.tick{position:absolute;top:18px;width:2px;margin-left:-1px;background:#4a4a52;border-radius:2px;height:20px}
.tick.m{height:30px;background:#6b6b75}
.tick.M{height:42px;background:#a3a3ad}
.tick-l{position:absolute;top:84px;transform:translateX(-50%);font-weight:700;color:var(--mute);font-size:16px}
.needle{position:absolute;left:50%;top:0;transform:translateX(-50%);pointer-events:none;display:flex;flex-direction:column;align-items:center}
.needle i{display:block;width:4px;height:58px;background:var(--red);border-radius:3px;box-shadow:0 0 14px var(--red-glow)}
.needle::after{content:"";margin-top:-1px;border:11px solid transparent;border-bottom:14px solid var(--red);border-top:0}
.hint{text-align:center;font-size:13px;color:var(--mute);margin-top:4px}
.lock{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-style:italic;color:#c9c9d1;font-size:14px;margin-top:26px}
.lock svg{width:16px;height:16px;flex:none;color:var(--gold)}

/* carregamento */
.load{padding:30px 20px 40px}
.load-row{display:flex;justify-content:space-between;font-weight:700;font-size:14px;margin-bottom:8px}
.load-bar{height:14px;border-radius:99px;background:#222226;overflow:hidden}
.load-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--red-d),#ff4a54);transition:width .3s linear}
.load-msg{text-align:center;color:var(--mute);margin:14px 0 30px;min-height:24px}
.load .h2{font-size:25px;margin-bottom:16px}

/* carrossel genérico */
.car{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 20px 6px;margin:0 -20px}
.car::-webkit-scrollbar{display:none}
.car>*{flex:0 0 86%;scroll-snap-align:center}
.car>:only-child{flex-basis:100%}
.dots{display:flex;justify-content:center;gap:7px;margin-top:12px}
.dots i{width:7px;height:7px;border-radius:50%;background:#34343a;transition:.25s}
.dots i.on{background:var(--red);width:22px;border-radius:9px}
.testi{padding:18px;border-radius:var(--r);background:var(--card);border:1px solid var(--line)}
.testi-h{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#3a3a42,#1d1d22);display:grid;place-items:center;font-weight:800;color:var(--gold);flex:none;object-fit:cover}
.stars{color:#f5b301;letter-spacing:2px;font-size:14px}
.testi b{display:block;font-size:16px}
.testi small{color:var(--mute)}
.testi p{color:#dcdce2;font-size:15px;line-height:1.5}

/* ===== QUIZ COMPACTO (tudo cabe em 1 tela, mobile) ===== */
.qz{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
.qz .q-top{position:static;flex:none;padding:10px 16px 6px;background:none;display:flex;flex-direction:column;align-items:center;gap:8px}
.qz .q-logo{height:70px;margin:0}
.qz.s-q .q-logo{height:52px}
.story{display:flex;gap:5px;width:100%}
.story i{flex:1;height:4px;border-radius:4px;background:#2a2a30;position:relative;overflow:hidden}
.story i::after{content:"";position:absolute;inset:0;background:#fff;transform:scaleX(0);transform-origin:left}
.story i.done::after{transform:scaleX(1)}
.story i.now::after{transform:scaleX(1);animation:fill .6s ease-out}
@keyframes fill{from{transform:scaleX(0)}}
.qz .q-step{flex:1;min-height:0;padding:6px 18px 10px;flex-direction:column;overflow:hidden}
.qz .q-step.on{display:flex}
.qz .q-step .h1,.qz .q-step .h2{margin:4px 0 6px;font-size:clamp(21px,6.3vw,26px);line-height:1.06}
.qz .q-step .h1{font-size:clamp(23px,7vw,29px)}
.qz .q-step .sub{font-size:14px;margin-bottom:10px;line-height:1.35}
.qz .q-foot{position:static;transform:none;max-width:none;flex:none;padding:8px 18px calc(14px + env(safe-area-inset-bottom));background:none}
.qz .btn{min-height:50px;font-size:15.5px}
.qz .proof{flex:1;min-height:0;margin-top:2px}
.qz .proof img{width:100%;height:100%;object-fit:cover;object-position:top}
.qz .cards{flex:1;min-height:0;grid-template-rows:1fr 1fr;gap:10px}
.qz .age{display:flex;flex-direction:column;min-height:0}
.qz .age img{flex:1;min-height:0;width:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 12%}
.qz .age span{padding:8px 4px 9px;font-size:17px}
.qz .step-r{justify-content:space-evenly}
.qz .step-r .q{font-weight:700;font-size:14px;text-align:center;margin:0}
.qz .seg{margin:0 auto}
.qz .step-r>div:has(.seg){text-align:center}
.qz .seg button{padding:6px 24px;font-size:14px}
.qz .val{font-size:64px}
.qz .val small{font-size:22px}
.qz .ruler-wrap{height:92px;margin:0 -18px}
.qz .tick{top:10px}
.qz .tick-l{top:62px;font-size:14px}
.qz .needle i{height:44px}
.qz .hint{margin:0;font-size:12.5px}
.qz .lock{margin:0;font-size:13px}
.qz .goals{flex:1;min-height:0;display:grid;grid-template-rows:repeat(4,1fr);gap:8px}
.qz .goal{min-height:0;gap:12px}
.qz .goal img{width:68px;height:100%}
.qz .goal div{padding:6px 36px 6px 0;font-size:12.5px;line-height:1.3}
.qz .goal b{font-size:16.5px;margin-bottom:1px}
.qz .age.sel::after,.qz .goal.sel::after{width:22px;height:22px;top:8px;right:8px;background-size:14px}
@media (max-height:700px){.qz .q-logo{height:54px}.qz.s-q .q-logo{height:44px}.qz .val{font-size:54px}.qz .q-step .sub{font-size:13px}.qz .goal div{font-size:11.5px}}

/* ===== AJUSTES v3 ===== */
.qz .q-logo{height:86px}
.qz.s-q .q-logo{height:66px}
.story{width:70%;gap:4px}
.story i{height:3px}
.qz .q-top{gap:6px;padding:8px 16px 4px}
/* 1. foto em tamanho real, proporção preservada e um pouco menor */
.qz .proof{flex:1;min-height:0;display:flex;align-items:flex-start;justify-content:center;background:none;border:0;box-shadow:none;border-radius:0;overflow:visible}
.qz .proof img{width:auto;height:auto;max-width:88%;max-height:100%;object-fit:contain;border-radius:14px;border:1px solid var(--line);background:#fff;box-shadow:0 12px 34px rgba(0,0,0,.55)}
/* 2. subtítulo em uma linha */
.qz .sub.oneline{white-space:nowrap;font-size:clamp(11px,3.35vw,13.5px)}
.qz .sub b{color:#fff;font-weight:800}
/* 3 e 4. régua: título maior, pergunta acima e maior */
.qz .step-r{justify-content:flex-start;gap:14px;padding-top:10px}
.qz .step-r .h2{font-size:clamp(24px,7.4vw,30px);line-height:1.05;margin-bottom:8px}
.qz .step-r .sub{margin-bottom:0}
.qz .step-r .q{font-size:20px;font-weight:800;letter-spacing:.01em;margin-top:6px}
.qz .step-r .ruler-wrap{margin-top:6px}
.qz .step-r .hint{margin-top:-2px}
.qz .step-r .lock{white-space:nowrap;font-size:clamp(10.5px,3.15vw,13px);margin-top:auto;padding-bottom:4px}
/* 5. objetivo */
.qz .step-g .h2{font-size:clamp(22px,6.6vw,27px);margin:6px 0 14px;max-width:320px;align-self:center}
.qz .step-g .goals{flex:none;display:flex;flex-direction:column;gap:9px;margin:0}
.qz .step-g .goal{height:92px;flex:none}
.qz .step-g .goal img{width:62px}
.qz .step-g .goal div{font-size:13.5px;line-height:1.35;color:#e6e6ea;padding:6px 34px 6px 0}
.qz .step-g .goal b{font-size:17px;margin-bottom:2px}
/* 6. carregamento */
.load-bar{height:8px}
.load-row{font-size:13px}
.qz .load{max-width:340px;margin:0 auto;width:100%}
@media (max-height:700px){.qz .q-logo{height:68px}.qz.s-q .q-logo{height:54px}.qz .step-g .goal{height:84px}.qz .step-g .goal div{font-size:12.5px}}
.qz .step-r .lock.wrap{white-space:normal;text-align:center;font-size:clamp(11.5px,3.4vw,13.5px)}
.qz .sub.oneline{font-size:clamp(10px,2.95vw,12.5px);letter-spacing:-.01em;margin-left:-6px;margin-right:-6px}

/* ===== AJUSTES v4: logo maior + voltar só na altura ===== */
.qz .q-top{position:relative}
.qz .q-logo{height:100px}
.qz.s-q .q-logo{height:84px}
.q-back2{position:absolute;left:12px;top:12px;width:34px;height:34px;display:grid;place-items:center;color:#fff;z-index:2}
.q-back2[hidden]{display:none}
.q-back2 svg{width:22px;height:22px}
@media (max-height:760px){.qz .q-logo{height:80px}.qz.s-q .q-logo{height:66px}}
@media (max-height:640px){.qz .q-logo{height:64px}.qz.s-q .q-logo{height:54px}}

/* v5: logo um pouco maior */
.qz .q-logo{height:116px}
.qz.s-q .q-logo{height:98px}
@media (max-height:760px){.qz .q-logo{height:92px}.qz.s-q .q-logo{height:76px}}
@media (max-height:640px){.qz .q-logo{height:72px}.qz.s-q .q-logo{height:60px}}
