/* [CONFIRMADO] Mobile first: sem fontes externas, alvos de 48px e temas por produto. */
:root {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #243c35;
  background: #f5f6ef;
  font-synthesis: none;
  --primary: #18584d;
  --primary-dark: #10463c;
  --soft: #eaf0df;
  --canvas: #f5f6ef;
  --ink: #243c35;
  --muted: #59665d;
  --border: #d8dfd3;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
body[data-product="sos_capilar"] { --primary: #853f31; --primary-dark: #623025; --soft: #f2e6df; --canvas: #faf6f3; --ink: #46362f; --muted: #6d615b; --border: #e4d9d2; }
button, input { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
[hidden] { display: none !important; }
p, h1, h2 { margin: 0; }
.quiz-wrapper { max-width: 620px; margin: auto; min-height: 100svh; padding: 0 22px; }
.brand-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); }
.brand-name { font-size: 19px; font-weight: 750; letter-spacing: -.7px; color: var(--primary); }
.brand-context { font-size: 10px; color: var(--muted); }
.welcome-intro { position: relative; padding: 26px 0 20px; display: grid; grid-template-columns: minmax(0,1fr) 124px; column-gap: 12px; }
.welcome-intro .welcome-eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
.welcome-intro .welcome-title { grid-column: 1; grid-row: 2; max-width: 100%; font-size: clamp(27px,7vw,34px); margin-top: 8px; }
.welcome-intro .welcome-description { grid-column: 1; grid-row: 3; max-width: 100%; font-size: 12px; }
.welcome-product { grid-column: 2; grid-row: 2 / 4; margin: 0; align-self: center; text-align: center; }
.welcome-product img { display: block; width: 100%; height: 158px; object-fit: contain; }
.welcome-product figcaption { font-size: 8px; color: var(--muted); margin-top: 4px; }
.product-preview { display: block; padding: 0; border: 0; background: transparent; color: var(--primary); min-width: 48px; min-height: 48px; flex-shrink: 0; }
.product-preview>span { display: block; font-size: 10px; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.product-dialog { border: 1px solid var(--border); border-radius: 20px; padding: 20px; background: var(--canvas); color: var(--ink); width: min(440px,calc(100% - 28px)); max-height: 90dvh; }
.product-dialog::backdrop { background: #18262199; backdrop-filter: blur(3px); }
.product-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.product-dialog-header h2 { font-size: 18px; letter-spacing: -.5px; }
.product-dialog-header button { width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--primary); font-size: 26px; }
.product-dialog>img { display: block; width: 100%; height: min(52dvh,380px); object-fit: contain; }
.product-dialog>p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 16px; }
.welcome-intro .journey-pills { grid-column: 1 / -1; }
.welcome-eyebrow, .question-eyebrow { display: block; font-size: 10px; line-height: 1.5; letter-spacing: 1.6px; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.welcome-title { font-family: Georgia, serif; font-size: clamp(29px,7vw,38px); font-weight: 400; line-height: 1.13; letter-spacing: -1.3px; margin: 12px 0; max-width: 88%; position: relative; }
.welcome-description { font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 88%; position: relative; }
.brand-art { position: absolute; width: 105px; height: 150px; right: -40px; top: 14px; opacity: .18; border: 1px solid var(--primary); border-radius: 100px; transform: rotate(24deg); }
.brand-art span { display: none; }
.brand-art i { position: absolute; inset: 10px; border: 1px solid var(--primary); border-radius: 100px; }
.brand-art i:last-child { inset: 22px; }
.journey-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 21px; }
.journey-pills span { border: 1px solid var(--border); border-radius: 30px; padding: 6px 8px; font-size: 9px; color: var(--muted); }
.journey-pills span:first-child { background: var(--soft); border-color: var(--soft); color: var(--primary); }
.step-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 20px 0 9px; }
progress { width: 100%; height: 4px; display: block; border: 0; appearance: none; border-radius: 6px; overflow: hidden; background: var(--border); }
progress::-webkit-progress-bar { background: var(--border); }
progress::-webkit-progress-value { background: var(--primary); transition: width 220ms ease; }
progress::-moz-progress-bar { background: var(--primary); }
.quiz-main { padding-top: 26px; }
.question-card { animation: arrive 220ms ease-out; }
.question-title, .offer-title { font-size: clamp(25px,6.5vw,32px); line-height: 1.18; font-weight: 650; letter-spacing: -.9px; margin: 10px 0 12px; }
.question-title:focus, .offer-title:focus { outline: none; }
.question-subtitle, .offer-description { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 26px; }
.form-group { margin-top: 22px; }
.form-label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.form-input { width: 100%; height: 58px; background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; font-size: 16px; transition: border-color .18s; }
.form-input:focus { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px; }
.form-input::placeholder { color: #737d75; }
.form-input[readonly] { background: var(--soft); }
.form-input[aria-invalid="true"] { border-color: #a82b37; }
.field-error-msg { display: block; color: #a82b37; font-size: 12px; margin-top: 8px; line-height: 1.5; }
.field-error-msg:empty { display: none; }
.consent-wrapper { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; margin-top: 20px; padding: 6px 0; cursor: pointer; }
.consent-checkbox { width: 21px; height: 21px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--primary); }
.consent-label { color: var(--muted); font-size: 11px; line-height: 1.65; }
.privacy-details { margin-top: 4px; color: var(--muted); font-size: 11px; }
summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 20px; font-weight: 400; }
details[open]>summary::after { content: '−'; }
details p { line-height: 1.7; padding: 0 0 16px; }
.field-note, .selection-hint { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 20px; }
.options-grid { display: grid; gap: 12px; }
.option-btn { width: 100%; border: 1px solid var(--border); background: white; color: var(--ink); display: flex; gap: 12px; align-items: center; text-align: left; min-height: 80px; padding: 16px 14px; border-radius: 14px; transition: background .18s, border-color .18s; }
.option-number { font-size: 10px; align-self: flex-start; color: var(--muted); padding-top: 4px; }
.option-label { flex: 1; font-size: 14px; line-height: 1.5; }
.option-indicator { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; color: transparent; font-size: 12px; }
.selected { background: var(--soft) !important; border-color: var(--primary) !important; box-shadow: inset 0 0 0 1px var(--primary); }
.selected .option-indicator { background: var(--primary); border-color: var(--primary); color: white; }
.action-dock { position: sticky; bottom: 0; z-index: 5; margin: 24px -22px 0; padding: 13px 22px max(16px,env(safe-area-inset-bottom)); background: var(--canvas); border-top: 1px solid var(--border); }
#action-context { color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.form-actions { display: flex; gap: 10px; }
.btn-primary { min-height: 56px; flex: 1; background: var(--primary); border: 1px solid var(--primary); color: white; border-radius: 12px; font-size: 14px; font-weight: 650; padding: 14px 16px; transition: background .18s, transform .18s; }
.btn-primary:active:not(:disabled) { transform: scale(.985); }
.btn-primary:disabled { background: #d9dfd7; color: #536150; border-color: #d9dfd7; }
.btn-back { min-height: 56px; color: var(--primary); background: transparent; border: 1px solid var(--border); border-radius: 12px; padding: 0 13px; font-size: 12px; }
.btn-back:disabled { opacity: .5; }
.journey-feedback { padding: 12px; margin-bottom: 12px; border-radius: 9px; background: #fff0ed; color: #942d29; font-size: 12px; line-height: 1.6; }
.quiz-footer { text-align: center; padding: 26px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.quiz-footer>span { font-weight: 650; color: var(--primary); }
body:not([data-stage="welcome"]) .welcome-intro { display: none; }
body:not([data-stage="welcome"]) .quiz-main { min-height: calc(100svh - 204px); display: flex; flex-direction: column; }
body:not([data-stage="welcome"]) .action-dock { margin-top: auto; padding-top: 16px; }
body:not([data-stage="welcome"]) #card-container { padding-bottom: 28px; }
.keyboard-open .action-dock { position: static; }
.offer-title { font-family: Georgia,serif; font-weight: 400; font-size: 37px; }
.kits-grid { display: grid; gap: 12px; }
.kit-card { display: flex; text-align: left; gap: 15px; align-items: center; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 18px 14px; color: var(--ink); width: 100%; }
.kit-quantity { width: 58px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; background: var(--soft); color: var(--primary); border-radius: 10px; font-family: Georgia,serif; font-size: 32px; }
.kit-quantity small { font-family: 'Segoe UI',sans-serif; font-size: 9px; }
.kit-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.kit-title { font-size: 14px; font-weight: 650; line-height: 1.4; }
.kit-unit-price { font-size: 11px; color: var(--muted); margin: 4px 0 12px; }
.kit-total-price { font-size: 22px; font-weight: 650; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.kit-price-caption { font-size: 10px; color: var(--muted); }
.catalog-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 18px 0 28px; }
.offer-faq { border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.offer-faq summary { font-weight: 600; color: var(--ink); min-height: 58px; }
.review-button, .retry-button { min-height: 48px; border: 1px solid var(--border); padding: 12px 18px; border-radius: 10px; color: var(--primary); background: transparent; font-size: 12px; margin-top: 18px; }
.offer-product { display: flex; align-items: center; gap: 20px; margin: 0 0 24px; padding: 16px; background: white; border: 1px solid var(--border); border-radius: 16px; }
.product-photo { display: block; width: 100px; height: 130px; object-fit: contain; flex-shrink: 0; border-radius: 10px; }
.offer-product figcaption p { font-size: 13px; line-height: 1.5; margin: 8px 0; }
.offer-product figcaption small { display: block; font-size: 10px; line-height: 1.6; color: var(--muted); }
.noscript-message { padding: 24px; }
@keyframes arrive { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media(min-width:700px) {
  .quiz-wrapper { margin: 32px auto; padding: 0 42px; border: 1px solid var(--border); border-radius: 24px; background: var(--canvas); }
  .brand-row { min-height: 86px; }.welcome-intro { padding-top: 36px; }
  .action-dock { margin-left: -42px; margin-right: -42px; padding-left: 42px; padding-right: 42px; }
  .question-title { font-size: 32px; }
  .welcome-intro { grid-template-columns: minmax(0,1fr) 168px; }
  .welcome-product img { height: 190px; }
}
@media(max-width:359px) { .quiz-wrapper { padding: 0 16px; }.action-dock { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }.brand-context { font-size: 9px; }.brand-name { font-size: 17px; }.kit-card { gap: 10px; }.kit-quantity { width: 46px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* [CONFIRMADO] Abertura compacta: produto e início na mesma tela, sem cortar conteúdo. */
body[data-stage="welcome"] .quiz-wrapper { min-height: 100svh; display: flex; flex-direction: column; }
body[data-stage="welcome"] .brand-row { min-height: 52px; }
body[data-stage="welcome"] .welcome-intro { padding: 16px 0 12px; }
body[data-stage="welcome"] .welcome-title { font-size: clamp(25px,6.5vw,30px); margin: 4px 0 8px; }
body[data-stage="welcome"] .welcome-product img { height: clamp(98px,18svh,142px); }
body[data-stage="welcome"] .welcome-product figcaption,
body[data-stage="welcome"] .journey-pills,
body[data-stage="welcome"] .quiz-footer,
body[data-stage="welcome"] #action-context,
body[data-stage="welcome"] .question-eyebrow,
body[data-stage="welcome"] .question-subtitle { display: none; }
body[data-stage="welcome"] .step-meta { margin: 8px 0; }
body[data-stage="welcome"] .quiz-main { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
body[data-stage="welcome"] .question-title { font-size: 22px; margin: 0 0 12px; }
body[data-stage="welcome"] .form-group { margin-top: 0; }
body[data-stage="welcome"] .form-input { height: 52px; }
body[data-stage="welcome"] .consent-wrapper { margin-top: 12px; }
body[data-stage="welcome"] .action-dock { position: static; margin-top: auto; padding-top: 12px; border-top: 0; }
body[data-stage="welcome"] .privacy-details { margin-top: 0; }
@media(min-width:700px) {
  body[data-stage="welcome"] .quiz-wrapper { min-height: calc(100svh - 32px); margin: 16px auto; }
}
@media(max-height:650px) {
  body[data-stage="welcome"] .brand-row { min-height: 44px; }
  body[data-stage="welcome"] .welcome-intro { padding: 10px 0; grid-template-columns: minmax(0,1fr) 96px; }
  body[data-stage="welcome"] .welcome-eyebrow { display: none; }
  body[data-stage="welcome"] .welcome-title { font-size: 24px; }
  body[data-stage="welcome"] .welcome-description { font-size: 11px; line-height: 1.4; }
  body[data-stage="welcome"] .welcome-product img { height: 98px; }
  body[data-stage="welcome"] .quiz-main { padding-top: 12px; }
  body[data-stage="welcome"] .consent-wrapper { margin-top: 8px; }
}
