@font-face{font-family:Rubik;src:url(./rubik-cyr.woff2) format("woff2");font-weight:400 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Rubik;src:url(./rubik-latin.woff2) format("woff2");font-weight:400 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{color-scheme:light;--paper:#f6f5f2;--ink:#251c33;--sub:#655f68;--purple:#6042a7;--rule:#e1dce3;--option:#faf9fa;font-family:Rubik,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}[hidden]{display:none!important}button:focus-visible,dialog:focus-visible{outline:3px solid #7259bc;outline-offset:3px}
.shell{max-width:1240px;margin:auto;padding:0 clamp(22px,5.5vw,78px)}
header{min-height:92px;border-bottom:1px solid var(--rule);display:flex;align-items:center;justify-content:space-between}
.brand{display:inline-flex;align-items:center;gap:12px;font-size:1.52rem;font-weight:700;letter-spacing:-.065em;line-height:1}
.brand-mark{position:relative;display:inline-block;width:34px;height:31px}.brand-mark i,.brand-mark b{position:absolute;display:block;border-radius:8px 8px 8px 2px;width:24px;height:20px}
.brand-mark i{background:#a78ae3;left:10px;top:2px;transform:rotate(6deg)}.brand-mark b{background:#372648;left:0;top:8px;transform:rotate(-7deg)}.brand-mark b::after{content:"";position:absolute;left:3px;bottom:-4px;border:4px solid transparent;border-left-color:#372648}
.about-link{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:#4b4650;font-size:.9rem;padding:10px 0 10px 10px}
.info-icon{display:inline-grid;place-items:center;width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%;font-size:12px;font-family:Georgia,serif;font-weight:bold}
main{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);align-items:stretch;gap:clamp(18px,2vw,30px);margin:clamp(24px,4.5vh,48px) 0 0}
.poster,.sheet{border-radius:22px;overflow:hidden}.poster{position:relative;isolation:isolate;min-height:540px;background:#d5bfdc}
.poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center bottom;z-index:-2}
.poster::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#e6d1e56e,transparent 56%);z-index:-1}
.poster-copy{padding:clamp(24px,3vw,46px)}.poster-topic{display:inline-flex;border:1px solid #58476180;border-radius:30px;color:#3c3047;padding:7px 12px;margin:0 0 25px;font-size:.84rem;font-weight:500}
.poster h1{margin:0;font-size:clamp(2.45rem,3.5vw,3.5rem);line-height:1.035;letter-spacing:-.066em;font-weight:600;color:#291d35}
.poster h1 strong{display:table;margin-top:12px;font-size:clamp(4.7rem,7.15vw,7.25rem);font-weight:650;line-height:.97;letter-spacing:-.085em}
.sheet{border:1px solid var(--rule);background:#fff;min-width:0;padding:clamp(26px,3vw,46px)}
form{display:flex;min-height:100%;flex-direction:column}.tracker-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.89rem}
#step{font-weight:650;color:var(--purple)}#topic{color:var(--sub);text-align:right}
.segments{display:flex;gap:5px;margin-top:11px}.segments span{height:5px;border-radius:3px;background:#eae6ee;flex:1}.segments span.on{background:#7653b9}
fieldset{border:0;min-width:0;padding:0;margin:clamp(26px,3.5vh,39px) 0 0}legend{padding:0;font-weight:600;max-width:23ch;font-size:clamp(1.68rem,2.3vw,2.2rem);letter-spacing:-.052em;line-height:1.12}
legend:focus,#thanks-title:focus{outline:0}.hint{color:var(--sub);margin:11px 0 17px;font-size:.97rem}.options{display:grid;gap:7px}
.choice{display:flex;align-items:center;gap:12px;padding:11px 15px;min-height:47px;font-size:1rem;line-height:1.23;text-align:left;color:var(--ink);touch-action:manipulation;background:var(--option);border:1px solid #dfdbe2;border-radius:11px;transition:border-color .13s,background .13s}
.choice:hover{border-color:#a592bd}.choice[aria-pressed=true]{border-color:var(--purple);background:#f3edfc;color:#3c275f}
.choice::before{content:"";box-sizing:border-box;flex:0 0 19px;width:19px;height:19px;border:1.5px solid #a49da8;border-radius:50%;background:white}
.choice[aria-pressed=true]::before{border-color:var(--purple);background:var(--purple);box-shadow:inset 0 0 0 4px white}
.actions{display:flex;gap:12px;margin-top:auto}.actions button,dialog button{border-radius:11px;min-height:49px;font-weight:600;border:0;padding:12px 21px}.actions button{margin-top:21px}
#retry,dialog button{background:var(--purple);color:white}#retry{flex:1}#retry:hover,dialog button:hover{background:#4f348c}#back{background:#f1eef3;color:var(--ink)}
footer{display:flex;align-items:center;gap:8px;color:#655f68;font-size:.85rem;padding:21px 1px 32px}.privacy-mark{width:12px;height:10px;position:relative;border:1.35px solid currentColor;border-radius:3px;display:inline-block;margin-top:3px}.privacy-mark::before{content:"";position:absolute;top:-6px;left:2px;width:5px;height:5px;border:1.35px solid currentColor;border-bottom:0;border-radius:6px 6px 0 0}
.error{margin:12px 0 0;color:#8c2433;font-size:.96rem}.done main{display:block;max-width:680px;margin:clamp(32px,10vh,105px) auto}.done .poster,.done footer,.done .about-link{display:none}.done .sheet{padding:clamp(32px,6vw,80px) clamp(22px,4vw,54px);text-align:center}
.check-circle{border-radius:50%;background:#e9e1f6;color:var(--purple);font-size:2rem;display:inline-grid;place-items:center;width:66px;height:66px}#thanks-title,dialog h2{font-size:clamp(1.8rem,4vw,2.45rem);letter-spacing:-.05em;font-weight:600}
#thanks-title{margin:22px auto 0;max-width:18ch}dialog{border:1px solid var(--rule);border-radius:20px;max-width:min(430px,calc(100% - 32px));padding:28px;color:var(--ink);background:white}dialog::backdrop{background:#211a2c80}dialog h2{margin:0}dialog p{font-size:1rem;line-height:1.5;color:var(--sub)}dialog button{width:100%;margin-top:5px}
@media(max-width:760px){
  .shell{max-width:590px;padding:0 16px}header{min-height:61px}.brand{font-size:1.28rem}.brand-mark{transform:scale(.87);transform-origin:left center;margin-right:-3px}main{grid-template-columns:1fr;gap:12px;margin-top:15px}
  .poster,.sheet{border-radius:16px}.poster{min-height:0;display:flex;align-items:center}.poster img{object-position:75% 68%}.poster::before{background:linear-gradient(90deg,#dbc9e6 0%,#e4d0e1f7 43%,#e4d0e17a 70%,transparent 100%)}
  .poster-copy{padding:14px 19px 16px}.poster-topic{font-size:.8rem;margin:0 0 6px;padding:0;border:0}.poster h1{font-size:clamp(1.4rem,5.1vw,1.75rem);letter-spacing:-.048em;max-width:22ch}.poster h1 strong{display:inline;margin:0;font-size:inherit;letter-spacing:inherit;font-weight:750;white-space:nowrap}
  .sheet{padding:20px 18px}.tracker-line{font-size:.86rem}.segments{margin-top:8px}fieldset{margin-top:20px}legend{font-size:clamp(1.5rem,5.6vw,1.8rem)}.hint{margin:8px 0 13px;font-size:.93rem}
  .options{gap:6px}.choice{padding:10px 12px;min-height:44px}.actions button{margin-top:16px;min-height:46px}footer{padding:16px 2px 24px}
}
@media (max-width:350px){.shell{padding:0 10px}.sheet{padding:16px 13px}.tracker-line{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){*,*::after{transition:none!important;scroll-behavior:auto!important}}

/* --- MAX auth step ------------------------------------------------------- */
#thanks-title{margin:22px auto 0}
.done #thanks+.stacked{}
#claim{text-align:left;margin-top:26px;padding-top:22px;border-top:1px solid var(--rule)}
#claim h2{font-size:clamp(1.55rem,2.3vw,1.95rem);letter-spacing:-.05em;font-weight:600;margin:0 0 6px;line-height:1.15}
#claim h2 span{white-space:nowrap}
#claim:focus{outline:0}
#claim-title:focus{outline:0}
.lead{color:var(--sub);margin:0 0 18px;font-size:.97rem;line-height:1.4}
.auth-step{margin-top:4px}
.bridge{margin:0 0 14px;padding:11px 14px;border-radius:11px;background:#f3edfc;color:#3c275f;font-size:.92rem;line-height:1.35}
.bridge b{font-weight:700}
.field{display:block;margin:0 0 12px}
.field-label{display:block;font-size:.85rem;font-weight:600;color:var(--sub);margin-bottom:6px}
.field input{width:100%;min-height:50px;padding:12px 15px;border:1px solid #dfdbe2;border-radius:11px;background:var(--option);color:var(--ink);font-size:1.05rem;letter-spacing:.03em}
.field input:focus{outline:3px solid #7259bc;outline-offset:1px;border-color:var(--purple)}
.field input::placeholder{color:#a9a3ad;letter-spacing:.06em}
#code{font-size:1.3rem;letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums}
.auth-actions{display:flex;gap:10px}
.auth-actions button{flex:1;border-radius:11px;min-height:49px;font-weight:600;border:0;padding:12px 21px;background:var(--purple);color:#fff}
.auth-actions button:hover:not(:disabled){background:#4f348c}
.auth-actions button:disabled{background:#c9c0d8;color:#fff}
.sent-to{font-size:.92rem;color:var(--sub);margin:0 0 12px}
.sent-to b{color:var(--ink);white-space:nowrap}
.link-button{border:0;background:transparent;color:var(--purple);font-weight:600;padding:0 2px;font-size:inherit;text-decoration:underline}
.resend{margin:14px 0 0;font-size:.9rem;color:var(--sub)}
.timer{color:#8a8490;margin-left:4px;font-variant-numeric:tabular-nums}
.thanks-note{margin:14px auto 0;max-width:34ch;color:var(--sub);font-size:.95rem}
.done main{display:block;max-width:680px;margin:clamp(32px,10vh,105px) auto}
.done .sheet{text-align:left}
#thanks{text-align:center}
#done-step .lead{margin-bottom:0}
@media(max-width:760px){
  .auth-actions button{min-height:46px}
  .field input{min-height:46px;font-size:1rem}
}

/* --- conversion funnel --- */
.stack-only{text-align:center}
.start{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;min-height:58px;margin:26px 0 0;
  border:0;border-radius:14px;background:var(--purple);color:#fff;font-weight:700;font-size:1.12rem;
  box-shadow:0 8px 20px #4f348c33;transition:transform .12s,background .12s}
.start span{font-size:.8rem;font-weight:500;opacity:.82}
.start:hover{background:#4f348c}
.start:active{transform:translateY(1px)}
.start-note{margin:10px 0 0;font-size:.84rem;color:#584761cc}
.counter{margin:18px 0 0;font-size:.9rem;color:#3c3047cc}
.counter b{font-variant-numeric:tabular-nums}
.checking-line{margin:0 0 14px;font-size:1rem;color:var(--sub)}
.checking-bar{height:6px;border-radius:4px;background:#eae6ee;overflow:hidden}
.checking-bar i{display:block;height:100%;width:0;border-radius:4px;background:#7653b9;animation:fill 2.1s ease-out forwards}
@keyframes fill{from{width:0}to{width:100%}}
.approved{display:none;align-items:center;gap:9px;margin:0 0 12px;padding:10px 13px;border-radius:11px;
  background:#eaf5ec;color:#1f5132;font-size:.9rem;line-height:1.3}
.approved-mark{display:inline-grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border-radius:50%;
  background:#2f7d4f;color:#fff;font-size:.75rem;font-weight:700}
.under-button{margin:10px 0 0;font-size:.85rem;line-height:1.35;color:var(--sub)}
@media(max-width:760px){.start{min-height:54px;font-size:1.05rem;margin-top:20px}}

/* before the start the sheet is empty: hide it and let the poster fill the screen */
body:not(.stacked):not(.done) .sheet{display:none}
body:not(.stacked):not(.done) main{grid-template-columns:1fr}
body:not(.stacked):not(.done) .poster{min-height:min(72vh,620px)}
@media(max-width:760px){body:not(.stacked):not(.done) .poster{min-height:0}}

.approved.show{display:flex}
.checking-bar i.done{animation:none;width:100%;background:#2f7d4f}

/* once started the poster has done its job: give the questions the whole screen */
body.stacked:not(.done) .poster{display:none}
body.stacked:not(.done) main{grid-template-columns:1fr;margin-top:14px}
body.stacked:not(.done) .sheet{border-radius:16px}
#claim h2 span{white-space:nowrap}
