:root{
  --bg:#12241a;
  --bg-deep:#0d1a13;
  --surface:#1a3225;
  --surface-2:#20402f;
  --text:#f3efe3;
  --muted:#b3bfab;
  --line:rgba(226,214,182,.18);
  --brand:#c9a96a;
  --brand-hover:#dcc189;
  --brand-ink:#14241a;
  --sage:#9dbb88;
  --online:#4bd27d;
  --danger:#ffad9f;
  --shadow:0 28px 80px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{min-height:100%;margin:0}
html.is-welcome-screen,html.is-welcome-screen body{height:100%;overflow:hidden}
body{
  min-width:320px;
  overflow-x:hidden;
  background:
    radial-gradient(900px 500px at 85% 0,rgba(157,187,136,.13),transparent 65%),
    linear-gradient(145deg,var(--bg),var(--bg-deep));
  color:var(--text);
  font:16px/1.55 'Inter',system-ui,sans-serif;
}
button,input{font:inherit}
button,a{touch-action:manipulation}
a{color:inherit}
.quiz-app{width:100%;min-height:100vh;min-height:100dvh}
.screen{display:none;width:100%;min-height:100vh;min-height:100dvh;animation:screen-in .35s ease}
.screen.is-active{display:grid}
@keyframes screen-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.welcome-screen{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.welcome-photo{position:relative;min-height:100vh;overflow:hidden}
.welcome-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 68%,rgba(18,36,26,.52))}
.welcome-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.welcome-copy{position:relative;display:flex;flex-direction:column;justify-content:center;padding:58px clamp(32px,7vw,108px);border-top:4px solid var(--brand)}
.brand-row{display:flex;align-items:center;width:max-content;gap:9px;margin-bottom:42px}
.brand-row img{width:31px;height:auto}
.brand-wordmark{display:flex;flex-direction:column;line-height:1}
.brand-wordmark b{font:italic 600 22px/1 'Playfair Display',serif;color:var(--brand-hover)}
.brand-wordmark small{text-transform:uppercase;letter-spacing:.25em;font-size:9px;color:var(--muted);margin-top:5px}
.brand-row--compact{margin-bottom:34px}
.eyebrow{margin:0 0 17px;color:var(--brand);font-size:12px;font-weight:700;letter-spacing:.2em;text-transform:uppercase}
h1,h2{margin:0;font-family:'Playfair Display',Georgia,serif;font-weight:600;line-height:1.08}
h1{font-size:clamp(38px,4.6vw,68px);max-width:760px}
h2{font-size:clamp(31px,4vw,52px);max-width:820px}
.accent-rule{width:74px;height:3px;margin:27px 0;background:var(--brand);border-radius:2px}
.lead{max-width:680px;margin:0 0 30px;color:var(--muted);font-size:18px}
.button{min-height:52px;padding:0 25px;border:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;cursor:pointer;text-decoration:none;transition:.22s ease}
.button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.button-primary{width:max-content;background:var(--brand);color:var(--brand-ink);box-shadow:0 12px 28px rgba(201,169,106,.22)}
.button-primary:hover{background:var(--brand-hover);transform:translateY(-2px)}
.button-ghost{background:transparent;color:var(--text);border:1px solid var(--line)}
.button-ghost:hover{border-color:var(--brand);color:var(--brand-hover)}
.gift-card{display:flex;align-items:center;gap:13px;margin-top:22px;padding:15px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.035)}
.gift-card--welcome{max-width:430px}
.gift-icon{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:rgba(201,169,106,.13);color:var(--brand-hover);font-size:22px}
.gift-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gift-card span:last-child{display:flex;flex-direction:column}
.gift-card b{font-size:14px}
.gift-card small{color:var(--muted);font-size:12px;margin-top:2px}
.welcome-footer{display:flex;flex-wrap:wrap;gap:12px 26px;margin-top:38px;color:var(--muted);font-size:13px}
.welcome-footer a{color:var(--brand-hover);text-decoration:none}
.question-screen{grid-template-columns:minmax(0,1fr) 330px;grid-template-rows:1fr auto;gap:26px;padding:clamp(25px,5vw,68px);max-width:1440px;margin:auto}
.question-main{align-self:start;min-width:0}
.multi-label{display:inline-flex;margin-top:15px;padding:6px 11px;border-radius:999px;background:rgba(157,187,136,.1);color:var(--sage);font-size:12px;font-weight:700}
.answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:31px;max-width:880px}
.answer-option{position:relative;min-height:64px;padding:16px 18px 16px 58px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);text-align:left;cursor:pointer;transition:.2s ease}
.answer-option:hover{border-color:rgba(201,169,106,.7);transform:translateY(-1px)}
.answer-option:before{content:"";position:absolute;left:18px;top:50%;width:22px;height:22px;border:2px solid rgba(243,239,227,.35);border-radius:50%;transform:translateY(-50%)}
.answer-option:after{content:"✓";position:absolute;left:18px;top:50%;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:var(--brand-ink);font-weight:800;opacity:0;transform:translateY(-50%) scale(.7);transition:.18s ease}
.answer-option.is-selected{border-color:var(--brand);box-shadow:inset 0 -3px 0 var(--brand)}
.answer-option.is-selected:after{opacity:1;transform:translateY(-50%) scale(1)}
.answer-option--image{min-height:230px;padding:0 0 46px;overflow:hidden;background:var(--surface)}
.answer-option--image img{display:block;width:100%;height:170px;object-fit:cover}
.answer-option--image span{display:block;padding:13px 18px;text-align:center;font-weight:700}
.answer-option--image:before,.answer-option--image:after{left:50%;top:auto;bottom:11px;transform:translateX(-50%)}
.answer-option--image.is-selected:after{transform:translateX(-50%) scale(1)}
.other-field{grid-column:1/-1;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);outline:none}
.other-field:focus{border-color:var(--brand)}
.photo-upload{grid-column:1/-1;min-height:96px;padding:17px 20px;border:2px dashed rgba(201,169,106,.5);border-radius:17px;background:rgba(201,169,106,.06);display:flex;align-items:center;gap:15px;text-align:left}
.photo-upload__icon{flex:0 0 auto;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:var(--brand-ink);font-size:27px;font-weight:700}
.photo-upload__copy{display:flex;min-width:0;flex-direction:column;gap:5px}
.photo-upload b{font-size:17px}
.photo-upload small{color:var(--muted)}
.photo-slots{grid-column:1/-1;display:grid;gap:8px}
.photo-slot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:58px;padding:5px 7px 5px 5px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.photo-slot.is-filled{border-color:rgba(157,187,136,.5)}
.photo-slot__label{min-width:0;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:5px 7px;cursor:pointer}
.photo-slot__label input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.photo-slot__number{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(201,169,106,.14);color:var(--brand-hover);font-weight:800}
.photo-slot.is-filled .photo-slot__number{background:rgba(157,187,136,.18);color:var(--sage)}
.photo-slot__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-slot__action{color:var(--brand-hover);font-size:13px;font-weight:700}
.photo-slot__remove{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}
.photo-slot__remove:hover{border-color:var(--danger);color:var(--danger)}
.photo-no-option{grid-column:1/-1}
.validation{min-height:24px;margin:10px 0 0;color:var(--danger);font-size:14px}
.expert-panel{align-self:start;padding:22px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(155deg,var(--surface-2),var(--surface));box-shadow:var(--shadow)}
.expert-head{display:flex;align-items:center;gap:13px}
.expert-head img{width:62px;height:62px;border-radius:50%;object-fit:cover;border:2px solid var(--brand)}
.expert-head div{display:flex;flex-direction:column}
.expert-head b{font-size:16px}
.expert-head span{color:var(--muted);font-size:12px}
.expert-head i{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:var(--online);box-shadow:0 0 0 4px rgba(75,210,125,.12)}
.expert-role{margin:13px 0;color:var(--muted);font-size:13px}
.expert-tip{position:relative;padding:14px 15px;border-radius:14px;background:var(--bg-deep);color:var(--text);font-size:14px}
.expert-panel .gift-card{margin-top:16px}
.question-screen.is-image-step{padding-top:30px;padding-bottom:22px;gap:16px}
.is-image-step .brand-row--compact{margin-bottom:16px}
.is-image-step h2{font-size:clamp(30px,3.2vw,44px)}
.is-image-step .answer-grid{gap:10px;margin-top:17px}
.is-image-step .answer-option--image{min-height:220px;padding-bottom:32px}
.is-image-step .answer-option--image img{height:160px;object-position:center}
.is-image-step .answer-option--image span{padding:6px 12px;font-size:15px}
.is-image-step .step-footer{padding-top:13px}
.step-footer{grid-column:1/-1;display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:24px;padding-top:22px;border-top:1px solid var(--line)}
.progress-block{display:flex;align-items:center;gap:13px;color:var(--muted);font-size:13px}
#stepCounter{white-space:nowrap}
.progress-track{width:min(320px,30vw);height:8px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08)}
.progress-track div{width:0;height:100%;border-radius:inherit;background:repeating-linear-gradient(135deg,var(--brand),var(--brand) 8px,var(--brand-hover) 8px,var(--brand-hover) 16px);transition:width .3s ease}
.enter-hint{color:var(--muted);font-size:12px}
.step-actions{display:flex;gap:10px}
.step-actions .button{min-width:120px}
.contact-screen{grid-template-columns:minmax(0,1fr) minmax(360px,520px);gap:clamp(40px,8vw,120px);align-items:center;max-width:1280px;margin:auto;padding:clamp(30px,7vw,90px)}
.contact-copy>p:not(.eyebrow){max-width:650px;color:var(--muted);font-size:18px}
.contact-progress{display:flex;align-items:center;gap:12px;margin-bottom:18px;color:var(--brand-hover);font-weight:800}
.contact-progress>div{width:180px;height:8px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08)}
.contact-progress i{display:block;width:95%;height:100%;background:var(--brand)}
.gift-reveal{display:flex;align-items:center;gap:14px;margin-top:26px;padding:18px;border:1px solid rgba(201,169,106,.45);border-radius:18px;background:rgba(201,169,106,.08)}
.gift-reveal div{display:flex;flex-direction:column}
.gift-reveal span{color:var(--muted);font-size:13px;margin-top:3px}
.contact-card{padding:26px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(160deg,var(--surface-2),var(--surface));box-shadow:var(--shadow)}
.discount-note{display:flex;align-items:center;gap:13px;margin:-5px 0 22px;padding:12px 14px;border-radius:14px;background:rgba(201,169,106,.12);color:var(--brand-hover)}
.discount-note b{font-size:20px;white-space:nowrap}
.discount-note span{font-size:12px;color:var(--muted)}
form label:not(.consent-check){display:block;margin:13px 0 7px;color:var(--muted);font-size:13px;font-weight:600}
form input[type=text],form input[type=tel]{width:100%;min-height:52px;padding:0 16px;border:1px solid var(--line);border-radius:13px;background:var(--bg-deep);color:var(--text);outline:none}
form input:focus{border-color:var(--brand)}
.consent-check{display:flex;align-items:flex-start;gap:10px;margin:17px 0 8px;color:var(--muted);font-size:12px;line-height:1.45}
.consent-check input{flex:0 0 18px;width:18px;height:18px;margin-top:1px;accent-color:var(--brand)}
.consent-check a{text-decoration:underline}
.button-wide{width:100%}
.messenger-choice{display:flex;flex-direction:column;align-items:center;margin-top:18px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.1em}
.messenger-choice button{min-height:45px;margin-top:10px;padding:0 16px;border:1px solid rgba(52,170,224,.45);border-radius:999px;background:rgba(52,170,224,.1);color:#69c5ef;font-weight:700;cursor:pointer}
.messenger-choice svg{width:18px;height:18px;vertical-align:middle;margin-right:7px;fill:currentColor}
.back-to-standard{margin-top:12px;padding:0;border:0;background:none;color:var(--brand-hover);text-decoration:underline;cursor:pointer}
.thanks-screen{place-items:center;padding:30px}
.thanks-card{width:min(720px,100%);padding:clamp(30px,7vw,70px);border:1px solid var(--line);border-radius:28px;background:linear-gradient(160deg,var(--surface-2),var(--surface));text-align:center;box-shadow:var(--shadow)}
.thanks-mark{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 22px;border-radius:50%;background:var(--brand);color:var(--brand-ink);font-size:34px;font-weight:800}
.thanks-card h2{margin:auto}
.thanks-card>p:not(.eyebrow):not(.success-note){color:var(--muted);font-size:18px}
.thanks-card .gift-reveal{text-align:left}
.download-gift{margin:20px auto 0}
.success-note{margin:12px 0 20px;color:var(--muted);font-size:13px}
@media(min-width:901px) and (max-height:850px){
  .welcome-screen{height:100vh;height:100dvh;min-height:0;overflow:hidden}
  .welcome-photo{height:100%;min-height:0}
  .welcome-copy{min-height:0;padding:28px clamp(32px,6vw,68px)}
  .welcome-copy .brand-row{margin-bottom:20px}
  .welcome-copy h1{font-size:clamp(38px,4.1vw,46px)}
  .welcome-copy .accent-rule{margin:16px 0}
  .welcome-copy .lead{margin-bottom:18px;font-size:16px}
  .welcome-copy>.button{min-height:48px}
  .welcome-copy .gift-card{margin-top:14px;padding:12px}
  .welcome-copy .welcome-footer{margin-top:18px}
}
@media(max-width:900px){
  .welcome-screen{grid-template-columns:1fr}
  .welcome-photo{min-height:38vh;max-height:430px}
  .welcome-photo:after{background:linear-gradient(0deg,rgba(18,36,26,.65),transparent 55%)}
  .welcome-copy{min-height:62vh;padding:34px 28px 40px}
  .brand-row{margin-bottom:24px}
  .question-screen{grid-template-columns:1fr;padding:28px}
  .expert-panel{grid-row:1;padding:15px;display:grid;grid-template-columns:auto 1fr;gap:0 14px}
  .expert-head{grid-row:1/3}
  .expert-head img{width:52px;height:52px}
  .expert-head div{display:none}
  .expert-role{margin:0;align-self:end}
  .expert-tip{padding:8px 11px;align-self:start;background:transparent}
  .expert-panel .gift-card{grid-column:1/-1;margin-top:10px;padding:10px}
  .question-main{grid-row:2}
  .step-footer{grid-row:3;grid-template-columns:1fr auto}
  .enter-hint{display:none}
  .contact-screen{grid-template-columns:1fr;padding:36px 28px}
}
@media(max-width:580px){
  body{font-size:16px}
  h1{font-size:36px}
  h2{font-size:32px}
  .welcome-photo{min-height:31vh}
  .welcome-copy{padding:24px 20px 28px}
  .lead{font-size:16px;margin-bottom:22px}
  .welcome-copy>.button{width:100%}
  .gift-card--welcome{max-width:none}
  .welcome-footer{margin-top:24px}
  .question-screen{padding:20px 16px 18px;gap:15px}
  .brand-row--compact{margin-bottom:20px}
  .answer-grid{grid-template-columns:1fr;margin-top:22px}
  .answer-option{min-height:58px}
  .answer-option--image{min-height:210px}
  .answer-option--image img{height:150px}
  .photo-upload{min-height:82px;padding:13px 14px}
  .photo-upload__icon{width:40px;height:40px;font-size:24px}
  .photo-slot__label{grid-template-columns:34px minmax(0,1fr)}
  .photo-slot__action{grid-column:2;font-size:12px}
  .step-footer{position:sticky;bottom:0;margin:0 -16px -18px;padding:13px 16px;background:rgba(13,26,19,.96);backdrop-filter:blur(10px)}
  .progress-block{grid-column:1/-1}
  .progress-track{width:100%}
  .step-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
  .step-actions .button{width:100%;min-width:0;padding:0 12px}
  .contact-screen{padding:24px 16px}
  .contact-card{padding:19px}
  .discount-note{align-items:flex-start}
  .thanks-screen{padding:16px}
  .thanks-card{padding:30px 20px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
