/* ==========================================================================
   Bessnetic funnel — /fit (scorecard + lead) and /thank-you
   ========================================================================== */
.funnel .nav { position: sticky; }
.funnel__back { margin-left: auto; }

/* ---------- Fit page ---------- */
.fit { position: relative; isolation: isolate; padding: 56px 0 100px; min-height: calc(100svh - 68px); }
.fit__sky {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(179,140,255,.14), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(255,140,70,.12), transparent 70%),
    linear-gradient(180deg, #0d1411, var(--bg));
}
.fit__sky::after {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 8%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 26%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 46%, rgba(255,255,255,.5) 50%, transparent 51%);
}
.fit__wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.fit__intro { position: sticky; top: 110px; }
.fit__intro h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 20px; }
.fit__card {
  border-radius: 22px; border: 1px solid var(--line-2);
  background: rgba(10, 15, 32, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
  padding: clamp(22px, 3.4vw, 40px);
}
@media (max-width: 920px) {
  .fit { padding-top: 32px; }
  .fit__wrap { grid-template-columns: 1fr; }
  .fit__intro { position: static; }
  .fit__intro .ticks { display: none; }
}

/* ---------- Quiz ---------- */
.quiz__progress { display: grid; gap: 10px; margin-bottom: 28px; font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.quiz__bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width .45s var(--ease); }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz fieldset.is-in { animation: qIn .45s var(--ease) both; }
@keyframes qIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.quiz legend { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.2; padding: 0; margin-bottom: 8px; }
.quiz__hint { color: var(--muted); font-size: 16px; margin-bottom: 4px; }
.quiz__opts { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.opt:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); transform: translateX(3px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__key { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 13.5px; color: var(--muted); border: 1px solid var(--line-2); transition: all .2s; }
.opt__text { font-size: 17px; font-weight: 500; line-height: 1.4; }
.opt:has(input:checked) { border-color: var(--ok); background: rgba(62,230,193,.08); }
.opt:has(input:checked) .opt__key { background: var(--ok); color: #06231b; border-color: var(--ok); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 28px; }
.quiz__nav .btn[disabled] { opacity: .4; pointer-events: none; }
.quiz__noscript { color: var(--muted); margin-top: 16px; }

/* ---------- Result ---------- */
.result { animation: qIn .5s var(--ease) both; }
.result__top { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__track { stroke: rgba(255,255,255,.08); }
.ring__fill { stroke: var(--ok); stroke-linecap: round; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; }
.result[data-verdict="good"] .ring__fill { stroke: var(--sun); }
.result[data-verdict="no"] .ring__fill { stroke: var(--crit); }
.result__label { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.result h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 4px 0 8px; color: var(--ok); }
.result[data-verdict="good"] h2 { color: var(--sun); }
.result[data-verdict="no"] h2 { color: #ff8f99; }
.result__text { color: var(--muted); font-size: 17px; }
@media (max-width: 560px) { .result__top { grid-template-columns: 1fr; justify-items: start; } .ring { width: 112px; height: 112px; } }

.insights { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 9px; }
.insight { position: relative; padding: 12px 14px 12px 44px; border-radius: 12px; font-size: 16px; line-height: 1.5; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line); animation: qIn .45s var(--ease) both; }
.insight::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 100%; }
.insight--ok::before { background-color: var(--ok-dim); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.6' fill='none' stroke='%233ee6c1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.insight--warn { border-color: rgba(255,181,71,.25); }
.insight--warn::before { background-color: rgba(255,181,71,.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5.5v5.5M10 14.2v.3' fill='none' stroke='%23ffb547' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.insight--no { border-color: rgba(255,93,108,.35); background: rgba(255,93,108,.06); }
.insight--no::before { background-color: rgba(255,93,108,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m7 7 6 6M13 7l-6 6' fill='none' stroke='%23ff5d6c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.plan-rec { margin-top: 24px; padding: 22px; border-radius: 16px; border: 1px solid rgba(61,255,160,.3); background: linear-gradient(160deg, rgba(61,255,160,.08), rgba(61,255,160,.02) 45%, rgba(255,255,255,.02)); }
.plan-rec__tag { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.plan-rec__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 8px; }
.plan-rec h3 { font-size: 24px; margin-bottom: 6px; }
.plan-rec p { color: var(--muted); font-size: 16px; }
.plan-rec .plan-rec__price { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--text); white-space: nowrap; }
.plan-rec__link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.plan-rec__link:hover { text-decoration: underline; }
.result[data-verdict="no"] .plan-rec { display: none; }
@media (max-width: 560px) { .plan-rec__row { flex-direction: column; gap: 4px; } }

/* ---------- Lead form ---------- */
.leadform { margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--line); }
.leadform h3 { font-size: 24px; }
.lead__sub { color: var(--muted); font-size: 16.5px; margin: 8px 0 22px; }
.lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead__full { grid-column: 1 / -1; }
.leadform label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.leadform label > span { color: var(--accent); margin-left: 2px; }
.leadform label:has(> span) { grid-template-columns: auto 1fr; }
.leadform label:has(> span) input { grid-column: 1 / -1; }
.leadform input:not([type=checkbox]), .leadform textarea {
  width: 100%; font: inherit; font-size: 16.5px; font-weight: 400; color: var(--text);
  padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.04);
  transition: border-color .2s, background .2s;
}
.leadform textarea { resize: vertical; min-height: 90px; }
.leadform input::placeholder, .leadform textarea::placeholder { color: var(--dim); }
.leadform input:focus, .leadform textarea:focus { outline: none; border-color: var(--ok); background: rgba(62,230,193,.05); }
.lead__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead__consent { display: flex !important; align-items: flex-start; gap: 12px; margin-top: 18px; font-weight: 400 !important; font-size: 15px !important; line-height: 1.5; cursor: pointer; }
.lead__consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ok); }
.lead__consent a { color: var(--text); }
.lead__error { margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,93,108,.4); background: rgba(255,93,108,.08); color: #ffc2c8; font-size: 15.5px; }
.lead__error a { color: #fff; }
.lead__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.lead__actions .btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 560px) { .lead__grid { grid-template-columns: 1fr; } .lead__actions .btn--primary { width: 100%; } }

/* ---------- Thank-you ---------- */
.thanks { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 80px 0 110px; min-height: calc(100svh - 68px); }
.thanks__sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 108%, rgba(255,150,80,.45), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0d1233 45%, #3a2558 78%, #8a4568 100%);
}
.thanks__sun {
  position: absolute; left: 50%; bottom: -90px; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%;
  background: radial-gradient(circle, #fff3c8 0%, #ffc86a 45%, #ff9a4a 70%, rgba(255,154,74,0) 72%);
  box-shadow: 0 0 140px 50px rgba(255,170,90,.35);
  animation: rise 2.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { transform: translateY(140px); opacity: .4; } to { transform: none; opacity: 1; } }
.thanks__inner { max-width: 820px; }
.thanks h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 18px; }
.thanks .lead { margin: 0 auto; }
.thanks__check { width: 76px; height: 76px; margin: 0 auto 26px; }
.thanks__check svg { width: 100%; height: 100%; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thanks__check circle { stroke-opacity: .35; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s .2s var(--ease) forwards; }
.thanks__check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks__chip { display: inline-block; margin-top: 22px; padding: 8px 16px; border-radius: 999px; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ok); background: var(--ok-dim); border: 1px solid rgba(62,230,193,.3); }
.thanks__chip[data-verdict="good"] { color: var(--sun); background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.3); }
.thanks__chip[data-verdict="no"] { color: #ffc2c8; background: rgba(255,93,108,.1); border-color: rgba(255,93,108,.3); }
.thanks__chip[hidden] { display: none; }
.next { list-style: none; margin: 44px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.next li { padding: 22px 20px; border-radius: 16px; background: rgba(6,9,20,.7); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 12px; align-content: start; }
.next__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--accent); border: 1.5px solid rgba(61,255,160,.5); }
.next h2 { font-size: 19px; margin-bottom: 6px; letter-spacing: -0.01em; }
.next p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.thanks__note { color: #d3e0d9; font-size: 15.5px; margin-bottom: 26px; }
.thanks__note a { color: #fff; }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .thanks__sun, .thanks__check *, .quiz fieldset.is-in, .result, .insight { animation: none !important; stroke-dashoffset: 0 !important; }
}
.lead__consent > span { color: var(--muted) !important; margin: 0 !important; }
