/* ==== 64-instrumenti.css ==== */
/* Инструменти (.tl-) · „Кино“ round (2026-09-27). Owner: instrumenti page agent.
   Sub-hero: the preview of the three tools (unchanged). Below it three scenes on the dark stage (04-stage.css), each ONE lit object:
   a white card (.tl-tool) with the controls on the left and a navy result screen (.tl-screen) inset on the right.
   Parts arrive with the stage sequence (.sq); results animate in (bars grow, number counts, road draws). No loops below the hero. */
.page-instrumenti{--tl-scr:linear-gradient(165deg,#1A2466 0%,#0E1640 46%,#0B1233 100%);--tl-sk:#B9C2FF;--tl-s2:#D3D9FA}

/* shared controls: the real radio sits invisibly on top of its label */
.tl-imp-opts label,.tl-yn label,.tl-goal-opts label,.tl-type{position:relative;cursor:pointer}
.tl-imp-opts input,.tl-yn input,.tl-goal-opts input,.tl-type input{position:absolute;inset:0;z-index:2;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
:where(.page-instrumenti) fieldset{border:0;margin:0;padding:0;min-width:0}
.tl-fine{font-size:15px;line-height:1.45;color:var(--muted)}
.tl-defs{position:absolute;width:0;height:0;overflow:hidden}

/* phone/tablet: sticky summary that keeps the result in sight while you type (hidden where the result sits beside the form) */
.tl-peek{display:none}

/* ---------- sub-hero: preview of the three tools ---------- */
.tl-safe{display:inline-flex;align-items:center;gap:10px;margin-top:26px;padding:10px 16px 10px 12px;border-radius:999px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);font-size:15px;line-height:1.3;color:rgba(255,255,255,.9)}
.tl-safe .ic{width:18px;height:18px;color:#B9C2FF}
.tl-pv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.tl-pv-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:18px 20px 22px;border-radius:24px;background:#fff;color:var(--ink);box-shadow:inset 0 1px 0 #fff,0 30px 60px -26px rgba(3,6,60,.6);transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.tl-pv-card:hover{transform:translateY(-4px);box-shadow:inset 0 1px 0 #fff,0 40px 70px -26px rgba(3,6,60,.7)}
.tl-pv-calc{grid-column:1/-1}
.tl-pv-calc .tl-pv-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:end}
.tl-pv-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tl-pv-n{padding:6px 9px;border-radius:999px;background:var(--cobalt-tint);color:var(--cobalt);font:600 13px/1 var(--f);letter-spacing:.04em}
.tl-pv-go{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--mist);color:var(--ink);transition:background-color .3s,color .3s}
.tl-pv-go .ic{width:17px;height:17px;stroke-width:2.1;transform:rotate(90deg)}
.tl-pv-card:hover .tl-pv-go,.tl-pv-card:focus-visible .tl-pv-go{background:var(--cobalt);color:#fff}
.tl-pv-t{margin-top:14px;font-size:18px;font-weight:600;line-height:1.25;letter-spacing:-.015em}
.tl-pv-body{display:flex;flex-direction:column;flex:1}
.tl-pv-out{margin-top:auto}
.tl-pv-f{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:18px;font-size:14px;line-height:1.2}
.tl-pv-f em{font-style:normal;color:var(--muted)}
.tl-pv-f>b{white-space:nowrap;padding:4px 8px;border-radius:8px;background:var(--mist);font-size:15px;font-weight:600}
.tl-pv-x{display:inline-grid;justify-items:end}
.tl-pv-x>span{grid-area:1/1}
.tl-pv-b{opacity:0}
.tl-pv-slide{position:relative;display:block;height:6px;margin:12px 11px 0;border-radius:6px;background:var(--mist-2)}
.tl-pv-slide b{position:absolute;inset:0;border-radius:inherit;background:var(--cobalt);transform:scaleX(var(--p));transform-origin:0 50%}
.tl-pv-slide i{position:absolute;inset:0;transform:translateX(calc(var(--p)*100%))}
.tl-pv-slide i::after{content:'';position:absolute;left:0;top:50%;width:22px;height:22px;translate:-50% -50%;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 6px var(--cobalt),0 4px 12px rgba(35,53,255,.35)}
.tl-pv-big{display:grid;justify-items:start;padding-top:14px;font-size:clamp(34px,3.4vw,48px);font-weight:600;line-height:1;letter-spacing:-.045em;white-space:nowrap}
.tl-pv-sub{display:block;margin-top:6px;font-size:14px;color:var(--muted)}
.tl-pv-bars{display:grid;gap:8px;margin-top:16px}
.tl-pv-bars i{display:block;height:12px;border-radius:6px;background:var(--line-2);transform:scaleX(var(--v));transform-origin:0 50%}
.tl-pv-bars i+i{background:linear-gradient(90deg,var(--cobalt),#7D8BFF)}
.tl-pv-ring{position:relative;align-self:center;width:min(118px,100%);margin-top:14px}
.tl-pv-ring svg{display:block;width:100%;height:auto}
.tl-pv-ring path{fill:none;stroke-width:17}
.tl-pv-ring .bg path{stroke:var(--mist-2)}
.tl-pv-ring .on path{stroke:var(--cobalt)}
.tl-pv-ring b{position:absolute;inset:0;display:grid;place-content:center;grid-auto-flow:column;align-items:baseline;font-size:34px;font-weight:600;letter-spacing:-.04em}
.tl-pv-ring small{font-size:15px;color:var(--muted);letter-spacing:0}
.tl-pv-road{display:block;width:100%;height:auto;margin-top:auto;padding-top:16px;overflow:visible}
.tl-pv-road .bg{fill:none;stroke:var(--mist-2);stroke-width:12;stroke-linecap:round}
.tl-pv-road .fg{fill:none;stroke:var(--cobalt);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:7 6}
.tl-pv-road circle{fill:#fff;stroke:var(--cobalt);stroke-width:3.5}
.tl-pv-road .pin{fill:var(--yellow);stroke:var(--ink);stroke-width:1.6;transform-box:fill-box;transform-origin:50% 100%}

/* the card is solid almost at once (opaque in the first 40%), only its parts play in sequence */
html.js .play .tl-tool.sq.tl-card-in{animation:tlCardIn .6s var(--ease) both;animation-delay:var(--d0,0s)}
@keyframes tlCardIn{0%{opacity:0;transform:translateY(22px)}40%{opacity:1}100%{opacity:1;transform:none}}
/* tool scenes: a tighter head, so the card (the thing to use) is in the first screen */
.scene.tl-calc,.scene.tl-check,.scene.tl-route{padding-top:clamp(72px,7vw,120px);padding-bottom:clamp(72px,8vw,128px)}
.tl-calc .scn-head,.tl-check .scn-head,.tl-route .scn-head{margin-bottom:clamp(32px,3.5vw,52px)}
.tl-calc .scn-title,.tl-check .scn-title,.tl-route .scn-title{font-size:clamp(38px,4.4vw,64px)}

/* ---------- the lit object: one white card per tool, a navy screen inset on its right (concentric radii 28 / 20) ---------- */
.tl-tool.card{position:relative;display:grid;align-items:stretch;padding:8px;border:0;border-radius:28px;color:var(--ink);
  box-shadow:0 2px 6px rgba(0,0,0,.1),0 60px 120px -50px rgba(2,4,40,.95),0 0 110px -30px rgba(150,168,255,.42)}
.tl-tool>form{padding:clamp(24px,3.2vw,48px) clamp(20px,3.2vw,48px)}
.tl-screen{position:relative;isolation:isolate;overflow:clip;display:flex;flex-direction:column;border-radius:20px;color:#fff;background:var(--tl-scr)}
.tl-screen::before{content:'';position:absolute;z-index:-1;right:-25%;top:-35%;width:85%;aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(46,69,255,.5),rgba(46,69,255,.12) 60%,transparent)}
.tl-screen::after{content:'';position:absolute;z-index:-1;left:-20%;bottom:-40%;width:70%;aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(143,160,255,.14),transparent)}
.tl-screen .tl-fine{margin-top:12px;text-align:center;color:var(--tl-sk)}
.tl-act{margin-top:auto;padding-top:30px}
.tl-cta{white-space:normal;text-align:center;line-height:1.2}

/* ---------- 1 · calculator ---------- */
.tl-calc-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.04fr)}
.tl-form{display:grid;gap:34px;align-content:start}
/* the four numbers are the funnel: numbered stops on a dashed cobalt line */
.tl-fields{display:grid;gap:30px;counter-reset:tlf}
.tl-field{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;padding-left:48px;counter-increment:tlf}
.tl-field::before{content:counter(tlf);position:absolute;left:0;top:0;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2px var(--cobalt);color:var(--cobalt);font:600 14px/1 var(--f)}
.tl-field:not(:last-child)::after{content:'';position:absolute;left:14px;top:35px;bottom:-26px;width:2px;background:repeating-linear-gradient(to bottom,rgba(35,53,255,.35) 0 5px,transparent 5px 10px)}
/* title + hint on the left, the number box beside them, the slider across (phones re-flow below) */
.tl-field-top{display:contents}
.tl-field-top>label:not(.tl-num){grid-column:1;grid-row:1;padding-top:3px;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--ink)}
.tl-hint{grid-column:1;grid-row:2;margin-top:3px;font-size:15px;line-height:1.35;color:var(--muted)}
.tl-field .tl-range{grid-column:1/-1;grid-row:3;margin-top:6px}
/* the whole grey pill is a second label of the field: a tap anywhere on it (the unit too) puts the cursor in the number */
.tl-num{grid-column:2;grid-row:1/3;align-self:start;flex:none;display:inline-flex;align-items:center;gap:6px;min-height:50px;padding:0 14px;border-radius:14px;background:var(--mist);cursor:text;transition:box-shadow .25s}
.tl-num:focus-within{box-shadow:inset 0 0 0 2px var(--cobalt)}
.tl-num input{align-self:stretch;width:5.4ch;min-height:50px;padding:0;border:0;background:transparent;color:var(--ink);font-size:24px;font-weight:600;line-height:1.2;letter-spacing:-.02em;text-align:right;-moz-appearance:textfield;appearance:textfield}
.tl-num input:focus{outline:0}
.tl-num input::-webkit-outer-spin-button,.tl-num input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tl-num span{font-size:15px;font-weight:500;color:var(--muted)}
/* 44px tall hit area, 8px visible track */
.tl-range{--p:50%;display:block;width:100%;height:44px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer;touch-action:pan-y}
.tl-range::-webkit-slider-runnable-track{height:8px;border-radius:8px;background:linear-gradient(90deg,var(--cobalt) var(--p),var(--mist-2) var(--p))}
.tl-range::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-10px;border:0;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 7px var(--cobalt),0 4px 14px rgba(35,53,255,.38);transition:transform .2s var(--ease)}
.tl-range:active::-webkit-slider-thumb{transform:scale(1.12)}
.tl-range::-moz-range-track{height:8px;border-radius:8px;background:var(--mist-2)}
.tl-range::-moz-range-progress{height:8px;border-radius:8px;background:var(--cobalt)}
.tl-range::-moz-range-thumb{width:28px;height:28px;border:0;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 7px var(--cobalt),0 4px 14px rgba(35,53,255,.38)}
.tl-range:focus{outline:0}
.tl-range:focus-visible::-webkit-slider-thumb{box-shadow:inset 0 0 0 7px var(--cobalt),0 0 0 4px rgba(35,53,255,.25)}
.tl-imp{padding-top:28px;border-top:1px solid var(--line)}
.tl-imp legend{float:left;width:100%;padding:0;margin-bottom:14px;font-size:18px;font-weight:600;line-height:1.3;color:var(--ink)}
.tl-imp-opts{clear:both;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tl-imp-opts span{display:grid;place-items:center;min-height:52px;padding:0 8px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--ink);font-size:17px;font-weight:600;white-space:nowrap;transition:background-color .25s,color .25s,box-shadow .25s}
.tl-imp-opts label:hover span{box-shadow:inset 0 0 0 1.5px var(--ink)}
.tl-imp-opts input:checked+span{background:var(--ink);color:#fff;box-shadow:none}
.tl-imp-opts input:focus-visible+span,.tl-yn input:focus-visible+span,.tl-goal-opts input:focus-visible+span{outline:3px solid var(--cobalt);outline-offset:3px}

/* result screen */
.tl-res{container-type:inline-size;padding:clamp(28px,3.4vw,52px)}
.tl-res-k,.tl-score-k{font:600 14px/1 var(--f);letter-spacing:.12em;text-transform:uppercase;color:var(--tl-sk)}
/* sized to its own length (--len = characters of the number, set by 64-instrumenti.js), so 7+ digit years still fit the screen */
.tl-big{display:flex;align-items:baseline;gap:12px;margin-top:18px;font-size:min(clamp(68px,8.4vw,132px),calc(100cqi / (.56 * var(--len,5) + .62)));font-weight:600;line-height:.92;letter-spacing:-.055em;white-space:nowrap;font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,#fff 30%,#C9D2FF);-webkit-background-clip:text;background-clip:text;color:transparent}
.tl-big small{font-size:.4em;letter-spacing:-.02em;color:var(--tl-sk);-webkit-text-fill-color:var(--tl-sk)}
.tl-per{margin-top:14px;font-size:18px;line-height:1.45;color:var(--tl-s2)}
.tl-per span{font-weight:600;color:#C9D2FF;font-variant-numeric:tabular-nums}
.tl-note{margin-top:12px;font-size:16px;line-height:1.45;color:var(--tl-sk)}
/* the ONE chart: now vs with more visibility (why the money is lost) */
.tl-bars{display:grid;gap:20px;margin-top:34px;padding-top:28px;border-top:1px solid rgba(255,255,255,.1)}
.tl-bar p{display:flex;justify-content:space-between;align-items:baseline;gap:6px 12px;flex-wrap:wrap;margin-bottom:9px;font-size:16px}
.tl-bar p span{color:var(--tl-sk)}
.tl-bar p b{font-weight:600;font-variant-numeric:tabular-nums}
.tl-track{height:14px;border-radius:8px;background:rgba(255,255,255,.08);overflow:hidden}
.tl-track i{display:block;width:calc(var(--v,0)*100%);height:100%;border-radius:inherit;transition:width .7s var(--ease)}
.tl-bar-now i{background:#5A6399}
.tl-bar-new i{background:linear-gradient(90deg,#2E45FF,#9AA8FF)}

/* ---------- 2 · site check ---------- */
.tl-check-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.tl-tool>.tl-qs{padding-block:clamp(14px,2vw,26px) clamp(10px,1.4vw,18px)}
.tl-q fieldset{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 18px;padding:15px 0}
.tl-q+.tl-q fieldset{border-top:1px solid var(--line)}
.tl-q legend{float:left;display:flex;align-items:center;gap:14px;padding:0;font-size:17px;font-weight:500;line-height:1.35;color:var(--ink-2)}
.tl-q-n{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--mist);color:var(--muted);font:600 14px/1 var(--f);transition:background-color .3s,color .3s}
.tl-q:has(input[value="1"]:checked) .tl-q-n{background:var(--cobalt);color:#fff}
.tl-q:has(input[value="0"]:checked) .tl-q-n{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.tl-yn{display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--mist)}
.tl-yn span{display:grid;place-items:center;min-width:62px;min-height:44px;padding:0 14px;border-radius:999px;font-size:16px;font-weight:600;color:var(--muted);transition:background-color .25s,color .25s,box-shadow .25s}
.tl-yn label:hover span{color:var(--ink)}
.tl-yn input[value="1"]:checked+span{background:var(--cobalt);color:#fff;box-shadow:0 6px 14px -6px rgba(35,53,255,.6)}
.tl-yn input[value="0"]:checked+span{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.tl-nojs{padding:14px 0 18px;font-size:15px;color:var(--muted)}
html.js .tl-nojs{display:none}

/* the score screen stretches beside the questions; its content stays in sight while you answer */
.tl-score-col{padding:clamp(28px,3vw,44px)}
.tl-score{position:sticky;top:calc(var(--hdr) + 32px);text-align:center}
.tl-score-k{margin-bottom:24px}
.tl-ring{position:relative;width:min(260px,78%);margin-inline:auto}
.tl-ring svg{display:block;width:100%;height:auto;overflow:visible}
.tl-seg{fill:none;stroke:rgba(255,255,255,.1);stroke-width:16;transition:stroke .45s var(--ease) calc(var(--k)*35ms)}
/* the grade is shown by how many segments light up, #8FA0FF at the start of the ring to white at the end, never by hue */
.tl-seg.on{stroke:color-mix(in srgb,#fff calc(var(--k)*11%),#8FA0FF)}
.tl-seg.hint{stroke:rgba(201,210,255,.55);transition-delay:0s}
.tl-score-v{position:absolute;left:0;right:0;top:50%;translate:0 -50%;line-height:1}
.tl-score-v b{font-size:clamp(68px,6.2vw,92px);font-weight:600;letter-spacing:-.05em;color:#fff;font-variant-numeric:tabular-nums}
.tl-score-v span{font-size:24px;font-weight:600;color:var(--tl-sk)}
.tl-grade{margin-top:24px;font-size:clamp(22px,1.9vw,27px);font-weight:600;line-height:1.2;letter-spacing:-.02em;color:#fff;text-wrap:balance;transition:color .3s}
.tl-count{margin-top:8px;font-size:16px;color:var(--tl-sk)}
.tl-count a{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-block:-8px;font-size:16px;font-weight:600;color:#fff;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.tl-count a .ic{width:16px;height:16px;stroke-width:2.2;transform:rotate(90deg)}
.tl-score .tl-act{padding-top:30px}
/* no answers yet: the button block is hidden (64-instrumenti.js), a small link under the line leads to question 1 */
.tl-count a[data-tl-first] .ic{transform:rotate(-90deg)}
.tl-reset{margin-top:8px;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:transparent;font-size:15px;font-weight:500;color:var(--tl-sk);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.tl-reset:hover{color:#fff}

/* fix list: phones/tablets inside the score screen (dark), laptops under both columns inside the white card (light) */
.tl-fixes{margin-top:26px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12);text-align:left}
.tl-fixes-h{margin-bottom:12px;font-size:18px;font-weight:600;letter-spacing:-.01em;color:#fff}
.tl-fix-list{display:grid;gap:8px}
.tl-fix{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:13px 15px;border-radius:16px;background:rgba(255,255,255,.07);animation:tlIn .45s var(--ease) both}
.tl-fix b{display:block;font-size:16px;font-weight:600;line-height:1.3}
.tl-fix p{margin-top:2px;font-size:15px;line-height:1.4;color:var(--tl-s2)}
/* plan tags: one quiet style everywhere, plain small text (the plan line / the plan card carries the message once) */
.tl-fix-p,.tl-step-p{flex:none;font:500 14px/1.3 var(--f);white-space:nowrap;color:var(--tl-sk)}
.tl-fix-plan{margin-top:12px;font-size:15px;color:var(--tl-sk)}
.tl-fix-plan b{color:#fff}
.tl-fix-plan a,.tl-gp-act a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.tl-fix-plan a{color:#fff;font-weight:600}
.tl-fixes-wide{grid-column:1/-1}
.tl-fixes-wide .tl-fixes{margin:0;padding:clamp(26px,3vw,44px) clamp(20px,3.2vw,48px) clamp(20px,2.6vw,36px);border-top:1px solid var(--line)}
.tl-fixes-wide .tl-fixes-h{margin-bottom:18px;font-size:clamp(22px,1.9vw,27px);letter-spacing:-.02em;color:var(--ink)}
.tl-fixes-wide .tl-fix-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tl-fixes-wide .tl-fix{padding:16px 18px;background:var(--mist)}
.tl-fixes-wide .tl-fix p{color:var(--muted)}
.tl-fixes-wide .tl-fix-p{color:var(--muted)}
.tl-fixes-wide .tl-fix-plan{margin-top:14px;font-size:16px;color:var(--muted)}
.tl-fixes-wide .tl-fix-plan b{color:var(--ink)}
.tl-fixes-wide .tl-fix-plan a{color:var(--cobalt)}
@keyframes tlIn{from{opacity:0;transform:translateY(8px)}}

/* ---------- 3 · first steps (channel route) ---------- */
.tl-route-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.tl-leg{float:left;display:flex;align-items:center;gap:12px;width:100%;padding:0;margin-bottom:16px;font-size:18px;font-weight:600;line-height:1.3;color:var(--ink)}
.tl-leg span{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2px var(--cobalt);color:var(--cobalt);font:600 14px/1 var(--f)}
.tl-type-grid{clear:both;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tl-type{display:flex;flex-direction:column;border-radius:20px;overflow:hidden;isolation:isolate;background:#fff;box-shadow:var(--sh-1);transition:box-shadow .3s var(--ease),translate .3s var(--ease)}
.tl-type::after{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit;box-shadow:inset 0 0 0 1.5px var(--line);pointer-events:none;transition:box-shadow .3s var(--ease)}
.tl-type:hover{translate:0 -3px}
.tl-type-art{display:block;padding:14px 12px 0;background:linear-gradient(180deg,#F6F7FF,var(--cobalt-tint));transition:background-color .3s}
.tl-type-art svg{display:block;width:100%;height:auto;aspect-ratio:4/3}
.tl-type-t{display:block;padding:11px 6px 13px;font-size:16px;font-weight:600;line-height:1.2;text-align:center;color:var(--ink);transition:background-color .25s,color .25s}
.tl-type:has(input:checked){box-shadow:0 16px 32px -16px rgba(35,53,255,.6)}
.tl-type:has(input:checked)::after{box-shadow:inset 0 0 0 3px var(--cobalt)}
.tl-type:has(input:checked) .tl-type-art{background:linear-gradient(180deg,#E6E9FF,#D5DBFF)}
.tl-type:has(input:checked) .tl-type-t{background:var(--cobalt);color:#fff}
.tl-type:has(input:checked)::before{content:'';position:absolute;right:10px;top:10px;z-index:1;width:26px;height:26px;border-radius:50%;background:var(--cobalt) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat}
.tl-type:has(input:focus-visible){outline:3px solid var(--cobalt);outline-offset:4px}
.tl-goals{margin-top:32px}
.tl-goal-opts{clear:both;display:grid;gap:8px}
.tl-goal-opts span{display:flex;align-items:center;gap:14px;min-height:56px;padding:10px 18px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink);font-size:17px;font-weight:600;line-height:1.3;transition:background-color .25s,box-shadow .25s}
.tl-goal-opts span::before{content:'';flex:none;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line-2);transition:box-shadow .25s}
.tl-goal-opts label:hover span{box-shadow:inset 0 0 0 1.5px var(--ink)}
.tl-goal-opts input:checked+span{background:var(--cobalt-tint);box-shadow:inset 0 0 0 2px var(--cobalt)}
.tl-goal-opts input:checked+span::before{box-shadow:inset 0 0 0 6px var(--cobalt)}

/* the road screen: start (your shop) → 3 numbered stops → the plan card at the pin */
.tl-map-col{padding:clamp(24px,3vw,44px) clamp(18px,3vw,44px)}
.tl-map{position:relative;isolation:isolate}
.tl-road{position:absolute;inset:0;z-index:-1;width:100%;height:100%;overflow:visible;pointer-events:none}
.tl-road-band{fill:none;stroke:rgba(255,255,255,.06);stroke-width:26;stroke-linecap:round;stroke-linejoin:round}
.tl-road-track{fill:none;stroke:rgba(255,255,255,.2);stroke-width:2;stroke-dasharray:6 9}
.tl-road-line{fill:none;stroke:#C9D2FF;stroke-width:3;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;transition:stroke-dashoffset 1.8s var(--ease);filter:drop-shadow(0 0 6px rgba(143,160,255,.7))}
.tl-start{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:600;line-height:1.3;color:var(--tl-s2)}
.tl-start i{flex:none;width:20px;height:20px;margin-left:8px;border-radius:50%;background:#0B1233;box-shadow:inset 0 0 0 5px #C9D2FF,0 0 0 7px rgba(201,210,255,.12)}
.tl-start-sh{flex:none;width:64px;height:48px;margin-left:10px;padding:5px 5px 0;border-radius:12px;background:#fff;box-shadow:0 10px 24px -10px rgba(0,0,0,.6)}
.tl-steps{display:grid;gap:14px;margin-top:22px}
.tl-step{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;width:min(100% - 66px,440px);margin-left:66px;padding:16px 18px;border-radius:20px;
  background:linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.04));box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.tl-step:nth-child(2){margin-left:auto}
.tl-step-n{position:absolute;left:-52px;top:50%;translate:0 -50%;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#2335FF;color:#fff;font:600 16px/1 var(--f);box-shadow:0 0 0 6px rgba(46,69,255,.22),0 10px 26px -6px rgba(46,69,255,.9)}
.tl-step-ic{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:rgba(143,160,255,.16);color:#C9D2FF}
.tl-step-ic .ic{width:24px;height:24px}
.tl-step-p{padding:5px 11px;border-radius:999px;background:rgba(201,210,255,.13);box-shadow:inset 0 0 0 1px rgba(201,210,255,.22);font-weight:600;color:#DDE2FF}
.tl-step-t{font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:#fff}
.tl-steps.go .tl-step{animation:tlStep .6s var(--ease) both;animation-delay:calc(var(--i,0)*.2s + .2s)}
.tl-steps.go+.tl-goalpin{animation:tlLand .75s cubic-bezier(.3,1.35,.5,1) .95s both}
@keyframes tlStep{from{opacity:0;transform:translateY(14px)}}
@keyframes tlLand{from{opacity:0;transform:translateY(16px) scale(.94)}}
/* the result lands: a white plan card at the end of the road; the road comes straight down the left and ends at the pin on the card's left edge */
.tl-goalpin{position:relative;width:min(100% - 66px,380px);margin:18px 0 0 66px;padding:18px 22px 20px;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 30px 60px -24px rgba(0,0,0,.7),0 0 60px -20px rgba(160,176,255,.5)}
.tl-pin{position:absolute;left:-50px;top:26px;width:32px;height:32px;border-radius:50% 50% 50% 0;background:var(--cobalt);box-shadow:inset 0 0 0 2px var(--ink);rotate:-45deg} /* 2026-10-01 QA: was yellow, a 2nd yellow next to the CTA */
.tl-pin::after{content:'';position:absolute;inset:10px;border-radius:50%;background:#fff}
.tl-gp-k{font-size:14px;color:var(--muted)}
.tl-gp-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;margin-top:4px;font-size:28px;font-weight:600;line-height:1.1;letter-spacing:-.03em}
.tl-gp-name b{font-weight:600;color:var(--cobalt);white-space:nowrap}
.tl-gp-name small{font-size:15px;font-weight:500;color:var(--muted);letter-spacing:0}
.tl-gp-all{margin-top:8px;font-size:15px;line-height:1.4;color:var(--muted)}
.tl-gp-act{margin-top:2px;margin-bottom:-10px;font-size:14px;color:var(--muted)}
.tl-gp-act a{display:flex;width:fit-content;color:var(--ink);font-weight:600;white-space:nowrap}
.tl-route-acts{padding-top:26px}

/* ---------- motion ---------- */
/* sub-hero preview: the two values never overlap, the old one slides up and out, then the new one comes up from below */
@keyframes tlPvA{0%,30%{opacity:1;transform:none}35%{opacity:0;transform:translateY(-40%)}35.1%,83%{opacity:0;transform:translateY(40%)}88%,100%{opacity:1;transform:none}}
@keyframes tlPvB{0%,35%{opacity:0;transform:translateY(40%)}40%,78%{opacity:1;transform:none}83%{opacity:0;transform:translateY(-40%)}83.1%,100%{opacity:0;transform:translateY(40%)}}
@keyframes tlPvFill{0%,24%,90%,100%{transform:scaleX(var(--p))}42%,74%{transform:scaleX(var(--p2))}}
@keyframes tlPvThumb{0%,24%,90%,100%{transform:translateX(calc(var(--p)*100%))}42%,74%{transform:translateX(calc(var(--p2)*100%))}}
@keyframes tlPvBar{0%,28%,90%,100%{transform:scaleX(var(--v))}46%,76%{transform:scaleX(var(--v2))}}
@keyframes tlDash{to{stroke-dashoffset:-13}}
@keyframes tlBob{50%{transform:translateY(-4px)}}
@keyframes tlSegIn{from{opacity:0}}
@media (prefers-reduced-motion:no-preference){
  /* sub-hero preview loops (paused while the hero is off screen) */
  .tl-pv-x .tl-pv-a{animation:tlPvA 8s ease-in-out infinite}
  .tl-pv-x .tl-pv-b{animation:tlPvB 8s ease-in-out infinite}
  .tl-pv-slide b.tl-loop{animation:tlPvFill 8s cubic-bezier(.45,0,.2,1) infinite}
  .tl-pv-slide i.tl-loop{animation:tlPvThumb 8s cubic-bezier(.45,0,.2,1) infinite}
  .tl-pv-bars i.tl-loop{animation:tlPvBar 8s cubic-bezier(.45,0,.2,1) infinite}
  .tl-pv-road .fg{animation:tlDash 2.6s linear infinite}
  .tl-pv-road .pin{animation:tlBob 3.2s ease-in-out infinite}
  .tl-pv-ring .on path{animation:tlSegIn .5s var(--ease) both;animation-delay:calc(.7s + var(--k)*90ms)}
  html.js [data-tl-live]:not(.tl-live) .tl-loop{animation-play-state:paused}
  /* calculator scene: the two bars fill once the big number has counted up */
  /* route scene: the stops and the plan card wait for the road (64-instrumenti.js adds .go) */
  html.js .tl-steps:not(.go) .tl-step,html.js .tl-steps:not(.go)+.tl-goalpin{opacity:0}
  html.js .tl-calc:not(.play) .tl-track i{width:0}
  html.js .tl-calc.play .tl-track i{transition:width 1.1s var(--ease) 1.7s}
  html.js .tl-calc.play .tl-bar-new .tl-track i{transition-delay:1.95s}
  html.js .tl-calc.play.tl-in .tl-track i{transition:width .7s var(--ease)}
}
@media (prefers-reduced-motion:reduce){
  .tl-fix,.tl-steps.go .tl-step,.tl-steps.go+.tl-goalpin,.tl-loop,.tl-pv-ring .on path{animation:none!important}
  .tl-track i,.tl-seg,.tl-road-line,.tl-pv-card,.tl-peek{transition:none}
}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .tl-calc-grid,.tl-check-grid,.tl-route-grid{grid-template-columns:minmax(0,1fr)}
  .tl-score{position:static}
  /* one slim line; it fades away while the result screen is in view (64-instrumenti.js adds .tl-peek-off) */
  .tl-peek{position:sticky;top:calc(var(--hdr) + 8px);z-index:5;display:flex;align-items:center;gap:12px;min-height:52px;padding:4px 4px 4px 16px;border-radius:16px;background:var(--ink);color:#fff;box-shadow:0 18px 36px -16px rgba(11,18,51,.6);
    transition:opacity .3s var(--ease),transform .3s var(--ease),visibility 0s}
  .tl-peek.tl-peek-off{opacity:0;transform:translateY(-8px);pointer-events:none;visibility:hidden;transition:opacity .3s var(--ease),transform .3s var(--ease),visibility 0s .3s}
  /* a focused field never sits under the header + the peek */
  .tl-field,.tl-imp,.tl-q{scroll-margin-top:calc(var(--hdr) + 76px)}
  .tl-peek:focus-visible{outline-offset:3px}
  .tl-pk-txt{flex:1;min-width:0;display:flex;align-items:baseline;gap:10px;line-height:1.15;white-space:nowrap;overflow:hidden}
  .tl-pk-k{font-size:14px;color:#B9C0DE;overflow:hidden;text-overflow:ellipsis}
  .tl-pk-txt b{flex:none;font-size:19px;font-weight:600;letter-spacing:-.02em;white-space:nowrap}
  .tl-pk-go{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:12px;background:rgba(255,255,255,.12);font-size:15px;font-weight:600}
  .tl-pk-go .ic{width:17px;height:17px;stroke-width:2.2;transform:rotate(90deg)}
  .tl-qs .tl-peek{margin-top:4px}
  .tl-form{gap:30px}
}
@media (max-width:600px){
  .tl-tool.card{padding:6px;border-radius:26px}
  .tl-screen{border-radius:20px}
  .tl-tool>form{padding:22px 14px 26px}
  .tl-tool>.tl-qs{padding:12px 14px 6px}
  .tl-res,.tl-score-col,.tl-map-col{padding:28px 18px 22px}
  /* phones: title and number on one row, the hint and the slider get the full width */
  .tl-field{column-gap:12px;padding-left:38px}
  .tl-field-top>label:not(.tl-num){align-self:center;padding-top:0;font-size:17px}
  .tl-num{grid-row:1;padding:0 12px}
  .tl-hint{grid-column:1/-1;margin-top:6px}
  .tl-field::before{top:11px;width:26px;height:26px;font-size:13px}
  .tl-field:not(:last-child)::after{left:12px;top:42px}
  .tl-num input{font-size:22px;width:5.3ch}
  .tl-cta{padding-inline:18px}
  .tl-imp-opts{grid-template-columns:repeat(2,1fr)}
  .tl-per{font-size:17px}
  /* phones: each fix gets the full tile width, the plan chip goes under the text */
  .tl-fix{grid-template-columns:minmax(0,1fr);gap:8px}
  .tl-fix-p{justify-self:start;grid-row:2}
  .tl-q fieldset{gap:10px 12px}
  .tl-q legend{gap:10px;font-size:16px}
  .tl-q-n{width:28px;height:28px;font-size:13px}
  .tl-yn span{min-width:52px;padding:0 10px;font-size:16px}
  .tl-type-grid{gap:8px}
  .tl-type{border-radius:16px}
  .tl-type-art{padding:10px 8px 0}
  .tl-type-t{padding:9px 4px 10px;font-size:14px}
  .tl-type:has(input:checked)::before{right:6px;top:6px;width:22px;height:22px;background-size:14px}
  .tl-step{grid-template-columns:auto minmax(0,1fr);width:calc(100% - 48px);margin-left:48px;padding:14px;gap:4px 12px}
  .tl-step:nth-child(2){width:calc(100% - 62px);margin-left:62px}
  .tl-step-n{left:-44px;width:32px;height:32px;font-size:15px}
  .tl-step-ic{grid-row:span 2;align-self:start;width:40px;height:40px;border-radius:12px}
  .tl-step-p{grid-column:2;justify-self:start;margin-top:6px}
  .tl-start i{margin-left:6px}
  .tl-start-sh{width:52px;height:39px;margin-left:4px}
  .tl-goalpin{width:calc(100% - 48px);margin-left:48px}
  .tl-pin{left:-42px;top:22px}
}
@media (max-width:420px){
  .tl-pk-go{width:44px;padding:0;justify-content:center}
  .tl-pk-go span{display:none}
  .tl-peek{gap:10px;padding-left:14px}
  /* narrow phones: a slimmer yes/no switch (still 48 x 44 per answer) leaves the question more width */
  .tl-q fieldset{column-gap:10px}
  .tl-yn span{min-width:48px;padding:0 8px}
}

/* sub-hero on phones */
@media (max-width:760px){
  /* hero on phones: the three tools as compact rows (small live demo, number, title, one line, arrow),
     so all three titles sit in the first screen above the phone action bar */
  .tl-pv{grid-template-columns:minmax(0,1fr);gap:10px}
  .tl-pv-card{display:grid;grid-template-columns:56px minmax(0,1fr) 32px;grid-template-rows:auto auto auto;align-content:center;column-gap:14px;min-height:78px;padding:10px 12px 10px 10px;border-radius:20px}
  .tl-pv-calc{grid-column:auto}
  .tl-pv-head{display:contents}
  .tl-pv-n{grid-column:2;grid-row:1;justify-self:start;padding:0;background:none;font-size:13px;line-height:1.25}
  .tl-pv-go{grid-column:3;grid-row:1/4;align-self:center;width:32px;height:32px}
  .tl-pv-t{grid-column:2;grid-row:2;margin-top:1px;font-size:16px;line-height:1.25}
  .tl-pv-calc .tl-pv-body,.tl-pv-ring,.tl-pv-road{grid-column:1;grid-row:1/4;align-self:center;box-sizing:border-box;width:56px;height:56px;margin:0;border-radius:14px;background:var(--cobalt-tint)}
  .tl-pv-calc .tl-pv-body{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;gap:0;padding:0 10px}
  .tl-pv-in,.tl-pv-big,.tl-pv-sub{display:none}
  .tl-pv-out{width:100%;margin:0}
  .tl-pv-bars{margin:0;gap:6px}
  .tl-pv-bars i{height:9px;border-radius:5px}
  .tl-pv-ring{display:grid;place-items:center}
  .tl-pv-ring svg{width:46px}
  .tl-pv-ring b{font-size:18px}
  .tl-pv-ring small{display:none}
  .tl-pv-road{padding:20px 6px 22px}
}
