@font-face{font-family:Poppins;src:url('./fonts/poppins.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Lato;src:url('./fonts/lato.ttf') format('truetype');font-weight:400;font-display:swap}
:root{--bg:#fdf7ee;--accent:#c42064;--text:#312331;--heading:Poppins,system-ui,sans-serif;--body:Lato,system-ui,sans-serif;--muted:#6d5967;--line:color-mix(in srgb,var(--text) 14%,transparent)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:18px;-webkit-font-smoothing:antialiased}.app-shell{min-height:100svh;display:flex;flex-direction:column;overflow-x:clip}.brand-header{padding:32px 5vw;display:flex;align-items:center;gap:18px;justify-content:space-between}.brand-signature{font-family:var(--heading);font-size:21px;font-weight:600;letter-spacing:.025em;color:var(--accent)}.header-note{font-size:14px;color:var(--muted)}.preview-badge{font-size:12px;border:1px solid var(--line);padding:7px 10px;border-radius:30px;margin-left:auto}.main{width:100%;max-width:940px;margin:auto;flex:1;display:flex;align-items:center;padding:45px 64px 60px}.screen{width:100%;animation:arrive .18s ease-out}.eyebrow{font-size:13px;letter-spacing:.15em;text-transform:uppercase;color:var(--accent);margin-bottom:24px}.question-index{color:var(--accent);font-size:14px;margin-bottom:18px;display:flex;gap:12px;align-items:center}.question-index:after{content:"";width:40px;height:1px;background:var(--accent);opacity:.6}h1,h2{font-family:var(--heading);font-weight:600;line-height:1.2;letter-spacing:-.035em;margin:0 0 22px;overflow-wrap:anywhere}h1{font-size:clamp(36px,5.2vw,62px);max-width:720px}h2{font-size:clamp(27px,3.5vw,42px)}p{line-height:1.6;max-width:640px;margin:0 0 24px;white-space:pre-wrap;overflow-wrap:anywhere}.description{color:var(--muted);font-size:19px}.welcome-description{font-size:21px;margin-top:28px;margin-bottom:38px}.privacy{font-size:12px;line-height:1.5;color:var(--muted);margin-top:30px;max-width:550px}.primary-button{background:var(--accent);color:white;border:0;border-radius:6px;min-height:52px;padding:15px 25px;font-family:var(--body);font-size:17px;font-weight:600;cursor:pointer;display:inline-flex;gap:22px;align-items:center}.primary-button:hover{filter:brightness(.94)}.primary-button:disabled{opacity:.55;cursor:wait}.keyboard-hint{font-size:12px;color:var(--muted);margin:0 0 0 16px;display:inline-block}.keyboard-hint b{font-weight:600}.text-field{width:100%;background:transparent;border:0;border-bottom:1px solid var(--accent);border-radius:0;color:var(--accent);padding:18px 0 14px;font-family:var(--body);font-size:clamp(23px,3vw,32px);outline:none;margin:10px 0 20px;min-height:58px;box-shadow:none}.text-field::placeholder{color:color-mix(in srgb,var(--accent) 35%,transparent)}textarea.text-field{font-size:24px;resize:vertical;min-height:145px;line-height:1.5}.choice-list{display:grid;gap:10px;margin:22px 0 25px;max-width:650px}.choice{min-height:54px;display:flex;align-items:center;gap:15px;border:1px solid color-mix(in srgb,var(--accent) 36%,transparent);background:color-mix(in srgb,var(--accent) 3%,transparent);padding:12px 16px;text-align:left;border-radius:5px;color:var(--text);font:inherit;cursor:pointer}.choice[aria-checked=true]{border:2px solid var(--accent);padding:11px 15px;background:color-mix(in srgb,var(--accent) 8%,transparent)}.choice-key{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--accent);border-radius:3px;font-size:12px;width:24px;height:24px;color:var(--accent)}.choice-label{flex:1;overflow-wrap:anywhere}.choice-tick{color:var(--accent);font-size:18px;opacity:0}.choice[aria-checked=true] .choice-tick{opacity:1}.consent{display:flex;gap:14px;align-items:center;padding:18px 0;min-height:60px;margin-bottom:22px;cursor:pointer}.consent input{width:24px;height:24px;accent-color:var(--accent);flex-shrink:0}.photo-box{border:1px dashed color-mix(in srgb,var(--accent) 55%,transparent);border-radius:8px;margin:24px 0;padding:26px;max-width:650px;display:flex;flex-direction:column;align-items:flex-start;gap:15px;background:color-mix(in srgb,white 28%,transparent)}.photo-box .primary-button{background:transparent;color:var(--accent);border:1px solid var(--accent)}.photo-box input{max-width:100%;font:inherit;font-size:14px}.photo-box img{max-width:100%;max-height:220px;border-radius:5px;object-fit:contain}.file-note{font-size:13px;color:var(--muted);margin:0}.field-error{min-height:24px;font-size:15px;color:#a31437;margin-bottom:16px}.field-error:empty{display:none}.flow-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 5vw}.progress-meta{width:230px}.progress-meta>span{display:block;color:var(--muted);font-size:12px;margin-bottom:9px}.progress-track{height:3px;background:var(--line);border-radius:3px;overflow:hidden}#progress-fill{height:100%;width:0;background:var(--accent);transition:width .18s ease}.nav-controls{display:flex;gap:8px}.nav-button{background:transparent;border:1px solid var(--line);color:var(--text);border-radius:5px;min-width:46px;min-height:44px;font-size:23px;cursor:pointer}.nav-button:disabled{opacity:.3;cursor:default}.quiet-footer{font-size:11px;color:var(--muted);padding:12px 5vw 22px}.loading{color:var(--muted);font-size:18px}.success-symbol{height:54px;width:54px;border:1px solid var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:26px;margin-bottom:28px}.error-screen{color:#a31437}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.brand-header{padding:23px 25px;flex-wrap:wrap;gap:10px}.brand-signature{font-size:19px}.header-note{font-size:12px}.preview-badge{font-size:10px;order:3;margin-left:0}.main{padding:38px 25px 34px;align-items:center}.eyebrow{font-size:11px;margin-bottom:20px}h1{font-size:37px}h2{font-size:28px}.welcome-description{font-size:18px;margin-top:22px;margin-bottom:28px}.description{font-size:17px}.text-field{font-size:25px}.keyboard-hint{display:none}.primary-button{font-size:16px;min-height:52px}.choice{font-size:17px}.privacy{font-size:11px}.flow-footer{padding:15px 25px}.progress-meta{width:190px}.quiet-footer{padding:10px 25px 20px}.photo-box{padding:18px}.choice-list{gap:9px}.screen{padding-top:6px}}@media(prefers-reduced-motion:reduce){.screen{animation:none}#progress-fill{transition:none}}
.brand-logo{display:block;width:64px;height:64px;object-fit:contain}@media(max-width:600px){.brand-logo{width:54px;height:54px}}
@font-face{font-family:Lato;src:url('./fonts/lato-light.ttf') format('truetype');font-weight:300;font-display:swap}body{font-weight:300}.file-note,.privacy,.header-note,.progress-meta,.quiet-footer{font-weight:400}

/* Opt-in compact presentation: other forms keep their existing layout. */
.layout-compact .brand-header{padding-top:18px;padding-bottom:12px}.layout-compact .main{flex:0 0 auto;align-items:flex-start;margin:0 auto;padding-top:18px;padding-bottom:32px}.layout-compact .flow-footer{margin-top:auto}.layout-compact .eyebrow{margin-bottom:16px}.layout-compact .welcome-description{margin-top:18px;margin-bottom:26px}
@media(max-width:600px){.layout-compact .brand-header{padding-top:16px;padding-bottom:8px}.layout-compact .main{padding-top:14px;padding-bottom:24px}.layout-compact .screen{padding-top:0}}

/* Shared frame: only the question area scrolls; header and navigation stay visible. */
body{height:100dvh;overflow:hidden}
.app-shell{height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.app-shell>.brand-header{background:var(--bg);position:relative;z-index:2;flex-wrap:nowrap;padding:18px 5vw}
.app-shell>.main,.layout-compact .app-shell>.main{width:100%;height:100%;min-height:0;max-width:940px;margin:0 auto;display:flex;flex-direction:column;align-items:stretch;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex:none;padding:32px 64px}
.main>.screen{flex:0 0 auto;margin-block:auto}
.app-shell>.flow-footer{background:var(--bg);margin-top:0;padding:14px 5vw}
.app-shell>.quiet-footer{background:var(--bg);padding:8px 5vw 12px}
.brand-logo{transition:width .2s ease,height .2s ease}
.is-welcome .app-shell>.brand-header{justify-content:center;padding:32px 5vw 16px}
.is-welcome .brand-logo{width:168px;height:168px}
.is-welcome .preview-badge{position:absolute;top:22px;right:5vw;margin:0}
.is-welcome .main>.screen{margin-block:auto;text-align:center}
.is-welcome .screen h1,.is-welcome .screen p{margin-left:auto;margin-right:auto}
.is-welcome .keyboard-hint{display:block;margin:14px 0 0}
.is-welcome .privacy{margin-top:24px}
@media(max-width:600px){
 .app-shell>.brand-header{padding:12px 20px}
 .app-shell>.main,.layout-compact .app-shell>.main{padding:24px 20px}
 .app-shell>.flow-footer{padding:12px 20px}
 .app-shell>.quiet-footer{padding:6px 20px calc(10px + env(safe-area-inset-bottom))}
 .is-welcome .app-shell>.brand-header{padding:48px 20px 12px}
 .is-welcome .brand-logo{width:128px;height:128px}
 .is-welcome .preview-badge{top:12px;right:20px;order:initial}
 .is-welcome .keyboard-hint{display:none}
 .is-welcome .screen h1{font-size:32px}
 .progress-meta{max-width:calc(100% - 110px);width:190px}
}
@media(prefers-reduced-motion:reduce){.brand-logo{transition:none}}

/* Scored results keep the source copy with a clear dosage and compact sections. */
.main>.result-screen{padding:12px 0 24px}
.result-title{text-align:center;max-width:none;margin:0 0 14px;letter-spacing:0}
.result-intro{display:block;font-family:var(--body);font-size:18px;line-height:1.5;font-weight:400;color:var(--muted);margin-bottom:10px}
.result-amount{display:block;font-size:clamp(44px,7vw,64px);line-height:1.08;color:var(--accent);letter-spacing:-.035em}
.result-unit{display:block;font-size:20px;font-family:var(--body);font-weight:400;line-height:1.5;margin-top:8px}
.result-profile{max-width:none;text-align:center;font-size:17px;color:var(--muted);margin:0 0 28px;line-height:1.5}
.result-profile strong{font-weight:400}.result-profile em{font-style:normal}
.result-cards{display:grid;grid-template-columns:1fr 1.25fr;gap:20px;align-items:start}
.result-card{background:color-mix(in srgb,white 65%,transparent);border:1px solid var(--line);border-radius:12px;padding:24px}
.result-card h2{font-size:21px;letter-spacing:-.02em;line-height:1.35;margin:0 0 18px}
.result-card ul{margin:0;padding-left:18px}
.result-card li{font-size:16px;line-height:1.65;margin-bottom:12px;padding-left:4px;overflow-wrap:anywhere}
.result-card li:last-child{margin-bottom:0}.result-card li::marker{color:var(--accent)}
.result-preview-note{max-width:none;font-size:11px;text-align:center;margin:20px 0 0}
@media(max-width:650px){.result-cards{grid-template-columns:1fr;gap:16px}.result-card{padding:20px}.result-amount{font-size:52px}.result-profile{font-size:16px;margin-bottom:22px}.result-title{margin-bottom:12px}.result-card h2{font-size:20px}.main>.result-screen{padding-top:4px}}

/* Mobile action stays in the fixed frame; desktop retains its navigation. */
.mobile-action{display:none}
@media(max-width:600px){
 .app-shell>.flow-footer{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:12px 20px calc(12px + env(safe-area-inset-bottom))}
 .flow-footer .progress-meta,.flow-footer #next{display:none}
 .flow-footer .nav-controls{grid-column:1;grid-row:1}
 .flow-footer #back{min-width:44px;min-height:52px}
 .flow-footer #back:disabled{visibility:hidden}
 .mobile-action{display:flex;grid-column:2;grid-row:1;justify-content:center;min-width:0}
 .mobile-action .primary-button{justify-content:center;max-width:100%;gap:12px;padding:15px 18px}
 .mobile-action .primary-button span:first-child{overflow-wrap:anywhere}
}

/* Shared photo picker: identifiable touch target across all forms. */
.photo-box input[type=file]{display:block;width:100%;font:inherit;max-width:100%;margin:14px 0;}
.photo-box input[type=file]::file-selector-button{font:inherit;font-weight:600;font-size:17px;min-height:56px;padding:15px 22px;border:2px solid var(--accent);border-radius:8px;background:var(--accent);color:#fff;cursor:pointer;margin-right:12px;}
.photo-box input[type=file]:focus-visible{outline:3px solid var(--accent);outline-offset:4px;}
.inline-other-label{display:block;margin:20px 0 10px;font-weight:600;}

/* Keep the programmatic question heading focus without browser decoration. */
#question-title:focus{outline:none}

.result-product-photo{display:block;width:min(100%,320px);height:220px;object-fit:contain;margin:12px auto 22px;border-radius:12px;}
@media(max-width:600px){.result-product-photo{height:180px;margin:8px auto 16px;}}

/* Reusable page of fields; keeps flat answer identities and the shared brand. */
.field-page{max-width:720px;margin-inline:auto}.field-page #question-title{text-align:center;font-size:clamp(25px,3vw,34px);margin-bottom:32px}.field-page .question-index{justify-content:center}.field-page-fields{display:grid;gap:16px}.field-page-field{min-width:0}.field-page-label{display:block;font-size:17px;line-height:1.5;text-align:center;margin:0 0 6px}.field-page .text-field{font-size:22px;min-height:46px;padding:10px 0;margin:0 0 4px}.field-page-description{font-size:14px;color:var(--muted);margin:4px 0;line-height:1.5}.field-page .field-error{font-size:14px;margin:0 0 4px}.field-page>.primary-button{margin-top:24px}.main{scroll-padding:18px}body{touch-action:pan-y}.text-field,select{touch-action:pan-y}
@media(max-width:800px){body.keyboard-open{position:fixed;left:0;right:0;top:var(--app-top,0);height:var(--app-height,100dvh)}body.keyboard-open .app-shell{height:var(--app-height,100dvh)}.keyboard-open .app-shell>.brand-header{padding-block:6px}.keyboard-open .brand-logo{width:30px;height:30px}.keyboard-open .app-shell>.main{padding-top:12px;padding-bottom:16px}.keyboard-open .main>.screen{margin-block:0}.keyboard-open .app-shell>.flow-footer{padding-block:6px}.keyboard-open .field-page #question-title{margin-bottom:18px}}
@media(max-width:600px){.field-page #question-title{font-size:26px;margin-bottom:24px}.field-page-fields{gap:14px}.field-page-label{font-size:16px}.field-page .text-field{font-size:18px;min-height:44px}.field-page .question-index{justify-content:flex-start}.field-page #question-title{text-align:left}.field-page-label{text-align:left}.field-page textarea.text-field{min-height:100px}.field-page .screen{padding-top:0}}

.phone-field{display:flex;align-items:center;gap:12px}.phone-field .text-field{min-width:0;flex:1}.phone-country{max-width:42%;font:inherit;font-size:16px;background:transparent;color:var(--accent);border:0;border-bottom:1px solid var(--accent);border-radius:0;padding:12px 2px;min-height:44px}.phone-country:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* Routine product ending: editorial photo/copy composition, scoped to product results. */
.main>.result-product-screen{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);column-gap:40px;row-gap:20px;align-items:start;padding:20px 0 28px;}
.result-product-screen .result-product-photo{grid-column:1;grid-row:1 / span 4;display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;margin:0;border-radius:18px;}
.result-product-screen .result-title{grid-column:2;text-align:left;font-size:clamp(28px,3.3vw,40px);line-height:1.2;letter-spacing:-.035em;margin:0;}
.result-product-screen .result-profile{grid-column:2;text-align:left;font-size:18px;line-height:1.65;color:var(--text);margin:0;max-width:38ch;}
.result-product-screen .result-cards{grid-column:2;display:block;margin-top:6px;}
.result-product-screen .result-card{border:0;background:transparent;padding:0;border-radius:0;}
.result-product-screen .result-card h2{margin:0;font:inherit;}
.result-product-screen .result-card ul:empty{display:none;}
.result-product-screen .result-card a{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:54px;padding:16px 22px;border-radius:8px;background:var(--accent);color:#fff;text-decoration:none;font-family:var(--body);font-size:16px;font-weight:600;line-height:1.35;}
.result-product-screen .result-card a::after{content:"→";font-size:20px;font-weight:400;}
.result-product-screen .result-card a:hover{filter:brightness(.94);}
.result-product-screen .result-card a:focus-visible{outline:3px solid var(--text);outline-offset:4px;}
.result-product-screen .result-preview-note{grid-column:1 / -1;margin:8px 0 0;}
@media(max-width:650px){
 .main>.result-product-screen{grid-template-columns:minmax(0,1fr);gap:20px;max-width:440px;margin-inline:auto;padding:8px 0 20px;}
 .result-product-screen .result-title{grid-column:1;grid-row:1;text-align:center;font-size:30px;}
 .result-product-screen .result-product-photo{grid-column:1;grid-row:2;max-width:260px;justify-self:center;border-radius:14px;}
 .result-product-screen .result-profile{grid-column:1;text-align:left;font-size:17px;line-height:1.6;max-width:none;}
 .result-product-screen .result-cards{grid-column:1;margin-top:2px;}
 .result-product-screen .result-card a{width:100%;min-height:56px;}
}

.result-product-screen .result-whatsapp{display:inline-flex;align-items:center;justify-content:center;min-height:54px;margin-top:14px;padding:14px 20px;border:1px solid var(--accent);border-radius:8px;color:var(--accent);background:transparent;text-decoration:none;font-size:16px;line-height:1.45;font-weight:400;}
.result-product-screen .result-whatsapp:hover{background:color-mix(in srgb,var(--accent) 6%,transparent);}
.result-product-screen .result-whatsapp:focus-visible{outline:3px solid var(--accent);outline-offset:4px;}
@media(max-width:650px){.result-product-screen .result-whatsapp{width:100%;min-height:56px;}}

/* Shared scroll hint sits outside the question, above navigation, without covering fields. */
.app-shell{grid-template-rows:auto minmax(0,1fr) auto auto}
.app-shell>.brand-header{grid-row:1}.app-shell>.main{grid-row:2}.app-shell>.flow-footer,.app-shell>.quiet-footer{grid-row:4}
.scroll-cue-bar{grid-row:3;position:relative;display:flex;justify-content:center;align-items:center;padding:4px 20px 8px;background:var(--bg);z-index:1}
.scroll-cue-bar[hidden]{display:none!important}
.scroll-cue-bar::before{content:"";position:absolute;inset:-16px 0 auto;height:16px;background:linear-gradient(to bottom,transparent,var(--bg));pointer-events:none}
.scroll-cue{display:inline-flex;align-items:center;gap:8px;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:999px;background:var(--bg);color:var(--accent);font-family:var(--body);font-size:14px;font-weight:400;min-height:44px;padding:5px 15px;cursor:pointer}
.scroll-cue:hover{border-color:var(--accent)}.scroll-cue:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.scroll-cue-arrow{font-size:19px;line-height:1}
.shopify-embedded.is-welcome .brand-header #brand,.shopify-embedded.is-welcome .brand-header .brand-logo{display:none}
.shopify-embedded.is-welcome .app-shell>.brand-header{padding-block:12px}

/* Shared footer sizing: desktop mouse controls, mobile touch controls. */
:root{--form-footer-control-height:40px;--form-footer-text-size:15px;--form-footer-padding-y:8px;--form-footer-button-padding-y:9px;--form-footer-button-padding-x:18px}
.app-shell>.flow-footer{padding-block:var(--form-footer-padding-y)}
.app-shell>.flow-footer .nav-button,.app-shell>.flow-footer #back{min-width:var(--form-footer-control-height);min-height:var(--form-footer-control-height);font-size:21px}
.app-shell>.flow-footer .primary-button{min-height:var(--form-footer-control-height);font-size:var(--form-footer-text-size);line-height:1.35;font-weight:400;gap:10px;padding:var(--form-footer-button-padding-y) var(--form-footer-button-padding-x)}
.app-shell>.flow-footer button:focus-visible,.app-shell>.flow-footer a:focus-visible{outline-width:2px;outline-offset:2px}
.scroll-cue-bar{padding-block:2px 4px}
@media(max-width:600px){
 :root{--form-footer-control-height:44px;--form-footer-padding-y:6px;--form-footer-button-padding-y:10px;--form-footer-button-padding-x:14px}
 .app-shell>.flow-footer{padding-bottom:calc(var(--form-footer-padding-y) + env(safe-area-inset-bottom))}
 .app-shell>.flow-footer .nav-button,.app-shell>.flow-footer #back{width:44px;padding:0}
}
