/* Step funnels (quiz + qualify templates; markup from scripts/lp/funnel.mjs).
   Full-screen, app-like steps: header with Back / logo / Skip, a progress bar,
   one step at a time. Tokens from base.css; each template adds its skin
   (quiz.css = Zeely, qualify.css = King Kong). */

html:not(.ad02-flow) body[data-lp-template="quiz"],
html:not(.ad02-flow) body[data-lp-template="qualify"]{min-height:100svh}
.lp-quiz,.lp-qualify{display:block}

.fx{position:relative;display:flex;flex-direction:column;min-height:100svh;max-width:500px;margin:0 auto;padding:0 20px env(safe-area-inset-bottom,0px)}
.lp-draft~.lp .fx{min-height:calc(100svh - 40px)}

/* ---------- header: Back · logo · Skip ---------- */
.fx-head{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;height:56px;margin:0 -20px;padding:0 12px}
.fx-back{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:12px;background:none;color:var(--ink);cursor:pointer}
.fx-back svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.fx-back[hidden],.fx-skip[hidden]{display:block;visibility:hidden}
.fx-logo{grid-column:2;justify-self:center;width:auto;height:22px}
.fx-skip{justify-self:end;padding:10px 4px;border:0;background:none;font-size:15px;font-weight:500;color:var(--ink-2);cursor:pointer}

/* ---------- steps ---------- */
.fx-steps{position:relative;display:flex;flex:1;flex-direction:column}
.fx-step{display:flex;flex:1;flex-direction:column;padding:26px 0 22px}
.fx-step[hidden]{display:none}
.fx-step-in{display:flex;flex:1;flex-direction:column}
.fx-step[data-align="bottom"] .fx-step-in{justify-content:flex-end}
.fx-q{margin-top:auto;padding-top:30px}
.fx-step.from-right{opacity:0;transform:translateX(18px)}
.fx-step.from-left{opacity:0;transform:translateX(-18px)}
.fx-step.is-in{opacity:1;transform:none;transition:opacity .28s var(--ease),transform .32s var(--ease)}

.fx-title{margin:0;font-size:26px;line-height:1.18;font-weight:700;letter-spacing:-.022em;color:var(--ink);text-wrap:balance}
.fx-title:focus{outline:none}
.fx-soft{color:var(--soft)}
.fx-sub{margin:9px 0 0;font-size:15.5px;line-height:1.45;color:var(--muted)}
.fx-hint{margin:8px 0 0;font-size:14px;color:var(--soft)}
.fx-why{margin:14px 2px 0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.fx-why b{font-weight:600;color:var(--ink-2)}

/* ---------- options ---------- */
.fx-options{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.fx-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:11px 16px;border:1px solid #e3e3e8;border-radius:14px;background:#fff;
  font-size:16px;line-height:1.3;font-weight:500;letter-spacing:-.01em;text-align:left;color:var(--ink);cursor:pointer;
  box-shadow:0 1px 2px rgba(0,0,0,.035);-webkit-tap-highlight-color:transparent;transition:border-color .15s,background-color .15s,box-shadow .15s,transform .12s}
@media (hover:hover){.fx-opt:hover{border-color:#c7c7cc}}
.fx-opt:active{transform:scale(.985)}
.fx-ico{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f5f5f7;font-size:19px;line-height:1}
/* real brand logos (Shopify, Facebook...): on white with a hairline, two side by side for "Amazon or Etsy" */
.fx-ico--logo{background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07)}
.fx-ico--logo img{width:20px;height:20px}
/* line icons (option icon 'ico:<name>'): Mako blue on the soft tile */
.fx-ico--svg{background:#eef5ff}
.fx-ico--svg .ico{width:20px;height:20px;stroke:#0a84ff;stroke-width:1.8}
.fx-ico--pair{display:flex;align-items:center;justify-content:center;gap:2px}
.fx-ico--pair img{width:14px;height:14px}
.fx-opt-t{flex:1}
.fx-tick{flex:none;width:22px;height:22px;border:1.5px solid #d2d2d7;border-radius:50%}
.fx-opt[role="radio"] .fx-tick{visibility:hidden}
.fx-opt[role="checkbox"] .fx-tick{border-radius:7px}
.fx-opt[aria-checked="true"]{border-color:#0a84ff;background:#f1f7ff;box-shadow:inset 0 0 0 1px #0a84ff}
.fx-opt[aria-checked="true"] .fx-tick{visibility:visible;border-color:#0a84ff;
  background:#0a84ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat}

/* ---------- Continue ---------- */
.fx-next{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:56px;margin:22px 0 0;padding:0 22px;border:0;border-radius:980px;
  background:var(--mako-grad);font-size:17px;font-weight:600;letter-spacing:-.01em;color:#fff;text-decoration:none;cursor:pointer;
  box-shadow:0 14px 28px -14px var(--mako-glow),inset 0 1px 0 rgba(255,255,255,.25);-webkit-tap-highlight-color:transparent;transition:transform .12s,filter .15s}
.fx-next:active{transform:scale(.985)}
@media (hover:hover){.fx-next:not(:disabled):hover{filter:brightness(1.06)}}
.fx-next:disabled{background:#ececf0;color:#a1a1a6;box-shadow:none;cursor:default}
.fx-noscript{margin:0 0 24px}

/* ---------- inputs ---------- */
.fx-input{width:100%;height:56px;margin:22px 0 0;padding:0 16px;border:1px solid #d9d9de;border-radius:14px;background:#fff;
  font:inherit;font-size:17px;color:var(--ink);-webkit-appearance:none;appearance:none}
.fx-input::placeholder{color:#a1a1a6}
.fx-input:focus{outline:none;border-color:#0a84ff;box-shadow:0 0 0 4px rgba(10,132,255,.14)}
.fx-input[aria-invalid="true"]{border-color:var(--bad)}
.fx-site{position:relative;display:block}
.fx-site .ico{position:absolute;left:15px;top:50%;width:20px;height:20px;margin-top:11px;transform:translateY(-50%);fill:none;stroke:var(--soft);stroke-width:1.7}
.fx-site .fx-input{padding-left:44px}
.fx-err{margin:10px 2px 0;font-size:14px;color:var(--bad)}

/* ---------- slider ---------- */
.fx-slider{margin-top:26px;text-align:center}
.fx-slider-out{display:block;font-size:40px;line-height:1.1;font-weight:800;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.fx-slider input[type="range"]{--fill:10%;width:100%;height:36px;margin:16px 0 0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
.fx-slider input[type="range"]::-webkit-slider-runnable-track{height:8px;border-radius:8px;background:linear-gradient(90deg,#0a84ff var(--fill),#e3e3e8 var(--fill))}
.fx-slider input[type="range"]::-moz-range-track{height:8px;border-radius:8px;background:linear-gradient(90deg,#0a84ff var(--fill),#e3e3e8 var(--fill))}
.fx-slider input[type="range"]::-webkit-slider-thumb{width:30px;height:30px;margin-top:-11px;border:3px solid #0a84ff;border-radius:50%;background:#fff;box-shadow:0 4px 12px rgba(0,60,140,.25);-webkit-appearance:none;appearance:none}
.fx-slider input[type="range"]::-moz-range-thumb{width:24px;height:24px;border:3px solid #0a84ff;border-radius:50%;background:#fff;box-shadow:0 4px 12px rgba(0,60,140,.25)}
.fx-slider-ends{display:flex;justify-content:space-between;margin:4px 2px 0;font-size:13px;color:var(--soft)}

/* ---------- 1 to 10 ---------- */
.fx-scale{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:24px}
.fx-num{justify-content:center;min-height:54px;padding:0;font-size:19px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
.fx-scale-ends{display:flex;justify-content:space-between;margin:10px 2px 0;font-size:13px;color:var(--soft)}

/* ---------- cards: proof + review ---------- */
.fx-card{margin:20px 0 0;padding:16px 16px 14px;border:1px solid #ececf0;border-radius:18px;background:#fff;box-shadow:0 8px 24px -18px rgba(0,30,80,.35)}
.fx-proof-who{display:flex;align-items:center;gap:10px}
.fx-proof-who>span:not(.tp-stars){display:flex;flex:1;flex-direction:column;font-size:13px;line-height:1.3;color:var(--muted)}
.fx-proof-who b{font-size:15px;font-weight:600;color:var(--ink)}
.fx-av{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--a),var(--b));font-size:16px;font-style:normal;font-weight:700;color:#fff}
.fx-card blockquote{margin:12px 0 0;font-size:15px;line-height:1.48;color:var(--ink)}
.fx-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 0;padding:12px 0 0;border-top:1px solid #f0f0f3}
.fx-metrics span{display:flex;flex-direction:column;gap:1px}
.fx-metrics small{font-size:11.5px;line-height:1.25;color:var(--soft)}
.fx-metrics b{font-size:21px;line-height:1.2;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.fx-metrics em{font-size:11.5px;font-style:normal;color:#1a9a4b}
.fx-claims{grid-template-columns:repeat(2,1fr);gap:12px}
.fx-claims small{font-size:12px;line-height:1.3}
.fx-vary{margin:6px 0 0;font-size:12px;color:var(--soft)}
.fx-chart{display:block;width:100%;height:auto;margin:10px 0 0}
.fx-chart-l{font-size:12px;font-weight:700;fill:var(--ink)}
.fx-chart-x{font-size:10.5px;fill:var(--soft)}
.fx-chart-line{stroke-dasharray:400;stroke-dashoffset:0}
.fx-step.is-in .fx-chart-line{animation:fx-draw 1.1s var(--ease) both}
@keyframes fx-draw{from{stroke-dashoffset:400}to{stroke-dashoffset:0}}
.fx-src{margin:10px 0 0;font-size:12px;color:var(--soft)}
.fx-review{margin-top:auto}

/* ---------- loader ---------- */
.fx-load{margin-top:26px}
.fx-load-row{display:flex;justify-content:space-between;gap:12px;margin:0 0 9px;font-size:14px;color:var(--ink-2)}
.fx-load-row b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.fx-load-bar{display:block;height:5px;overflow:hidden;border-radius:5px;background:#ececf0}
.fx-load-bar i{display:block;width:0;height:100%;border-radius:5px;background:var(--mako-grad)}
.fx-load-list{display:flex;flex-direction:column;gap:12px;margin:24px 0 0;padding:0;list-style:none}
.fx-load-list li{position:relative;padding-left:32px;font-size:15px;color:var(--soft);transition:color .2s}
.fx-load-list li::before{content:"";position:absolute;left:0;top:50%;width:20px;height:20px;margin-top:-10px;border:1.5px solid #d2d2d7;border-radius:50%;box-sizing:border-box}
.fx-load-list li.now{color:var(--ink)}
.fx-load-list li.now::before{border-color:#0a84ff;border-right-color:transparent;animation:fx-spin .8s linear infinite}
.fx-load-list li.done{color:var(--ink)}
.fx-load-list li.done::before{border-color:#0a84ff;background:#0a84ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat}
@keyframes fx-spin{to{transform:rotate(360deg)}}
.fx-step--loader .fx-step-in{min-height:100%}

/* ---------- small print + footer ---------- */
.fx-note{margin:12px 0 0;font-size:13px;line-height:1.45;text-align:center;color:var(--soft)}
.fx-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;padding:14px 20px calc(16px + env(safe-area-inset-bottom,0px));font-size:12px;color:var(--soft)}
.fx-foot a{color:inherit;text-decoration:none}
.fx-foot a:hover{text-decoration:underline}

@media (prefers-reduced-motion:reduce){
  .fx-step.is-in{transition:none}
  .fx-step.is-in .fx-chart-line{animation:none}
  .fx-load-list li.now::before{animation:none}
}
@media (max-width:360px){
  .fx{padding:0 16px}
  .fx-head{margin:0 -16px}
  .fx-title{font-size:23px}
  .fx-opt{min-height:52px;font-size:15px}
}
@media (min-width:700px){
  .fx-step{padding-top:40px}
  .fx-title{font-size:30px}
}

/* one big real number (info steps) */
.fx-stat{text-align:center;padding:22px 16px 16px}
.fx-stat-n{margin:0;font-size:64px;line-height:1;font-weight:800;letter-spacing:-.04em;background:var(--mako-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.fx-stat-l{margin:8px 0 0;font-size:17px;font-weight:600;color:var(--ink)}
.fx-stat+.fx-review{margin-top:12px}
/* base.css makes every img display:block, which beats the browser's [hidden] */
.fx img[hidden]{display:none}
/* A/B test (funnel.mjs LAB): one arm's question and icons show, the other's are hidden; the
   arm's wrapper adds no box, so the question lays out exactly as before */
.fx [data-fx-arm][hidden]{display:none!important}
.fx-arm:not([hidden]){display:contents}
/* an answer's second line ("Gym, salon, clinic, coach, trades") */
.fx-opt-hint{display:block;margin-top:2px;font-size:13px;line-height:1.3;font-weight:400;letter-spacing:0;color:var(--muted)}
.fx-opt[aria-checked="true"] .fx-opt-hint{color:#3a6db5}
/* desktop: no thumb zone, so the question follows the hook instead of
   sitting at the bottom of a tall window */
@media (min-width:700px){
  .fx-step{padding-top:7vh}
  .fx-step[data-align="bottom"] .fx-step-in{justify-content:flex-start}
  .fx-q{margin-top:0;padding-top:40px}
}
