@font-face{font-family:Inter;src:url('/fonts/Inter-upright-var.woff2') format('woff2');font-weight:100 900;font-display:swap}
*{box-sizing:border-box}
body{margin:0;background:#f5f0e6;color:#04291e;font-family:Inter,Arial,sans-serif;min-height:100svh;display:flex;align-items:center;justify-content:center;padding:16px 0;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button{cursor:pointer}
button,a,input,select{touch-action:manipulation}
button:disabled{opacity:.45;cursor:not-allowed}
a{color:inherit}
:focus-visible{outline:3px solid #919d4d;outline-offset:3px}
[hidden]{display:none!important}

.quiz-card{width:100%;max-width:390px;height:min(844px,calc(100svh - 32px));position:relative;background:white;border-radius:36px;box-shadow:0 25px 60px -10px rgba(4,41,30,0.25),0 0 0 1px rgba(4,41,30,0.08);overflow:hidden;display:flex;flex-direction:column;scrollbar-width:none;-ms-overflow-style:none}
.quiz-card::-webkit-scrollbar{display:none}

.header{position:absolute;inset:0 0 auto;height:52px;z-index:10;display:flex;align-items:center;gap:8px;padding:10px 16px;background:linear-gradient(rgba(4,41,30,0.85),transparent)}
.header img{width:88px;height:auto;filter:brightness(0) invert(1)}
.location{margin-left:auto;font-size:10px;letter-spacing:.04em;color:#fff}
.dot{display:none}
.preview-badge{font-size:8px;color:#fff;background:rgba(4,41,30,0.85);border-radius:4px;padding:3px 6px;position:absolute;right:16px;top:40px}

main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column}
.intro,.wizard{display:flex;flex-direction:column;flex:1;min-height:0}

/* Hero & Intro: calibrated to fit 100% in viewport without scroll */
.hero{position:relative;order:0;height:clamp(150px,22vh,190px);min-height:0;flex-shrink:0;overflow:hidden;background:#04291e}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.intro-loop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.hero:after{content:'';position:absolute;inset:0;z-index:2;background:linear-gradient(rgba(4,41,30,0.3),transparent 50%,rgba(4,41,30,0.2));pointer-events:none}
.play{position:absolute;z-index:3;bottom:10px;right:14px;border:0;background:rgba(4,41,30,0.7);color:white;padding:5px 9px;font-size:11px;border-radius:5px}

.intro-copy{order:1;padding:14px 16px 16px;display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.intro-copy::-webkit-scrollbar{display:none}
.eyebrow{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;color:#919d4d;margin:0 0 6px}
h1,h2,h3,p{margin-top:0}
h1{font-size:20px;font-weight:700;line-height:1.2;letter-spacing:0;margin:0 0 8px}
h1 br,h2 br{display:none}
h1 em,h2 em{font-style:normal;font-family:inherit;font-weight:inherit;color:inherit}
p{color:#55625a;line-height:1.45}
.lede{font-size:13.5px;line-height:1.4;margin:0 0 10px}
.intro-stats{order:3;display:grid;gap:6px;margin-bottom:14px}
.intro-stats span{font-size:12px;color:#55625a;line-height:1.35;padding-left:22px;position:relative}
.intro-stats span:before{content:'✓';position:absolute;left:0;color:#919d4d;font-size:14px}
.intro-stats strong{font-weight:600;color:#04291e;font-size:13px;margin-right:4px}
.intro .primary{order:4;margin-top:auto;width:100%;flex-shrink:0}
.micro{font-size:11px;text-align:center;margin:6px 0 0;color:#55625a}
.intro .micro{order:5}

/* Wizard Scene */
.scene{position:relative;width:100%;height:clamp(100px,15vh,135px);flex-shrink:0;overflow:hidden;background:#04291e}
.scene img{width:100%;height:100%;object-fit:cover;animation:kb 9s ease-out both}
.scene:after{content:'';position:absolute;inset:0;background:linear-gradient(rgba(4,41,30,0.35),transparent 45%,rgba(4,41,30,0.75))}
.scene-copy{position:absolute;bottom:8px;left:14px;right:14px;z-index:1;animation:sceneLabelIn .3s ease-out both}
.scene-copy .eyebrow{display:inline-block;padding:4px 9px;background:rgba(4,41,30,0.8);border-radius:16px;color:white;text-transform:none;letter-spacing:0;font-weight:500;font-size:11px;margin:0}
.scene-copy h3,.scene-copy p{display:none}

/* Form Panel */
.form-panel{flex:1;min-height:0;overflow-y:auto;padding:12px 16px 16px;display:flex;flex-direction:column;scrollbar-width:none;-ms-overflow-style:none}
.form-panel::-webkit-scrollbar{display:none}
.progress-head{display:flex;justify-content:space-between;font-size:10px;color:#55625a;margin-bottom:6px}
.progress-head span:first-child{font-size:10px;letter-spacing:.02em}
.progress{display:flex;gap:4px;margin-bottom:12px;flex-shrink:0}
.progress span{height:3px;flex:1;background:#e4e7e3;border-radius:3px}
.progress .done{background:#04291e}
.progress .done:last-of-type{animation:progressIn .3s ease-out both;transform-origin:left}
.form-panel h2{font-size:17px;line-height:1.3;letter-spacing:0;font-weight:600;margin-bottom:6px}
.form-panel .sub{font-size:12.5px;line-height:1.4;margin:0 0 12px}

/* Choices */
.choices{border:1px solid #e4e7e3;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;flex-shrink:0}
.choice{width:100%;display:flex;align-items:center;gap:10px;background:white;border:0;border-top:1px solid #e4e7e3;padding:10px 12px;text-align:left;color:#04291e;min-height:50px;position:relative;flex-shrink:0}
.choice:first-child{border-top:0}
.choice:hover,.choice.selected{background:#eef2e6}
.choice>span:not(.choice-check):not(.choice-icon){min-width:0;flex:1}
.choice strong{font-size:13.5px;line-height:1.35;font-weight:500;display:block}
.choice small{font-size:11.5px;line-height:1.3;color:#55625a;display:block;margin-top:2px}
.choice-icon{display:none}
.choice-check{order:-1;width:18px;height:18px;border:2px solid #b8c0ba;border-radius:50%;flex-shrink:0;position:relative;transition:border-color .15s ease-out}
.selected .choice-check{border-color:#04291e}
.selected .choice-check:after{content:'';position:absolute;inset:2px;background:#04291e;border-radius:50%;animation:dotIn .22s both}
.choice:focus-visible{outline-offset:-3px}

/* Buttons */
.primary,.secondary{border:0;border-radius:8px;padding:11px 14px;font-size:14.5px;font-weight:600;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;transition:transform .15s}
.primary{background:#04291e;color:white}
.primary:hover{background:#0c3a2a}
.primary:active{transform:scale(.98)}
.secondary{border:1px solid #d5dad6;color:#04291e;background:white;font-size:13px}
.arrow{font-size:16px;font-weight:400}
.actions{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:12px;padding-bottom:env(safe-area-inset-bottom);flex-shrink:0}
.actions .primary{flex:1}
.back{background:none;border:0;color:#55625a;font-size:12px;padding:10px 4px;min-height:42px}

/* Details & Fields */
.details{font-size:11.5px;line-height:1.45;color:#55625a;background:#f5f7ee;border-radius:10px;padding:10px 12px;margin-top:10px;flex-shrink:0}
.details p{color:inherit;margin:0}
.details .choices{margin-top:6px}
.field{display:block;font-size:12px;color:#55625a;font-weight:500;margin:0 0 10px}
.field input,.field select{width:100%;height:42px;margin-top:4px;border:1px solid #cbd2cd;border-radius:8px;padding:9px 12px;background:white;color:#04291e;font-size:15px}
.field select{font-size:13px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* Phone input with fixed +55 prefix */
.phone-wrap{display:flex;align-items:stretch;height:42px;margin-top:4px;border:1px solid #cbd2cd;border-radius:8px;background:white;overflow:hidden}
.phone-prefix{display:flex;align-items:center;justify-content:center;padding:0 11px;background:#f0f3eb;color:#04291e;font-weight:600;font-size:13.5px;border-right:1px solid #cbd2cd;user-select:none;flex-shrink:0}
.phone-wrap input{border:0;border-radius:0;margin-top:0;height:100%;flex:1;padding:9px 12px;font-size:15px;outline:none}
.phone-wrap:focus-within{border-color:#919d4d;box-shadow:0 0 0 2px rgba(145,157,77,0.35)}

.check{display:flex;align-items:flex-start;gap:8px;font-size:11.5px;line-height:1.35;color:#55625a;margin:10px 0}
.check input{width:16px;height:16px;accent-color:#04291e;flex-shrink:0;margin-top:1px}

/* Step 3 Pricing */
.price-card{border:1px solid #dbe2d3;background:#f5f7ee;border-radius:10px;padding:12px 14px;margin:2px 0 10px;flex-shrink:0}
.plan-label{font-size:11.5px;font-weight:600;color:#04291e;line-height:1.3}
.price{font-size:28px;line-height:1.2;letter-spacing:-.03em;font-weight:700;margin:5px 0}
.price small{font-size:13px;font-weight:500;letter-spacing:0}
.price-card p{font-size:11.5px;line-height:1.4;margin:4px 0}
.condition{font-size:10.5px;line-height:1.4;color:#55625a;border-top:1px solid #dbe2d3;margin-top:8px;padding-top:7px}
.benefit{font-size:11.5px;line-height:1.35;margin:10px 0 0}

/* Step 4 Layout */
body[data-step="4"] .scene{height:clamp(80px,12vh,110px)}
body[data-step="4"] .actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}
body[data-step="4"] .actions>.back,body[data-step="4"] .actions>.primary{min-width:0;min-height:44px;padding:10px 12px;border-radius:8px;font-size:13.5px;line-height:20px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
body[data-step="4"] .actions>.back{border:1px solid #cbd2cd;background:white;color:#04291e}

/* Error & Notes */
.error{margin-top:10px;padding:10px;border-radius:8px;background:#fff3e8;color:#9b482b;font-size:11.5px;line-height:1.4}
.validation-note{padding:8px 10px;background:#fff7e6;border-radius:8px;font-size:11px;color:#766848;line-height:1.35;margin-bottom:10px}

/* Success */
.success-icon{background:#04291e;color:white;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:18px;margin-bottom:12px}
.summary-list{padding:0;margin:0;list-style:none}
.summary-list li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e4e7e3;padding:8px 0;font-size:11.5px;line-height:1.35;color:#55625a}
.summary-list strong{font-weight:500;color:#04291e;text-align:right}
.handoff-link{width:100%;margin:10px 0 0}
.handoff-status{font-size:12.5px;color:#55625a;margin:0 0 6px;line-height:1.4}
.registration-summary{margin-top:16px;font-size:11.5px;color:#55625a}
.registration-summary summary{cursor:pointer}
.result-view .scene{height:140px}

.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
footer{display:none}

/* Mobile full-screen view */
@media(max-width:639px){
 body{padding:0;background:white}
 .quiz-card{width:100%;max-width:100%;height:100svh;height:100dvh;min-height:100svh;min-height:100dvh;border-radius:0;box-shadow:none;border:none}
 .hero{height:clamp(160px,26svh,210px)}
 .scene{height:clamp(90px,16svh,130px)}
 body[data-step="4"] .scene{height:clamp(70px,12svh,95px)}
 .header{height:48px}
 .header img{width:82px}
 .form-panel{padding:10px 16px 14px}
}

@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .intro-loop{display:none}
 .hero>img{z-index:1}
}

@keyframes kb{from{transform:scale(1.05)}to{transform:scale(1)}}
@keyframes dotIn{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes sceneLabelIn{from{transform:translateY(4px)}to{transform:translateY(0)}}
@keyframes progressIn{from{transform:scaleX(.4)}to{transform:scaleX(1)}}
