/* Suenos Concepts – Signature Scent Quiz */
:root {
  --ground: #522F28;
  --cream: #F7EFE4;
  --soft: #E3D4C3;
  --muted: #C9B49F;
  --faint: #D2C0AD;
  --line: #7D5F4E;
  --track: #6A4A3E;
  --button: #F3E9DC;
  --button-ink: #2A1912;
  --error: #F2B8A6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100svh; display: flex; flex-direction: column; }
a { color: var(--soft); }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--soft); outline-offset: 2px; }

/* Top bar: solid, sticky, content never scrolls under it */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--ground); padding-top: env(safe-area-inset-top); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px 8px; max-width: 480px; margin: 0 auto; }
.topbar__spacer { width: 44px; }
.topbar__brand { font-size: 11px; letter-spacing: .38em; color: var(--cream); }
.topbar__lang { width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: flex-end; text-decoration: none; font-size: 14px; }
.progress { height: 2px; background: var(--track); margin: 0 24px; max-width: 432px; }
@media (min-width: 480px) { .progress { margin: 0 auto; } }
.progress__bar { height: 2px; width: 0; background: var(--soft); transition: width .4s ease; }
.progress.is-hidden { visibility: hidden; }

.app { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Question header */
.q-head { text-align: center; padding: 28px 24px 0; }
.eyebrow { font-size: 11px; letter-spacing: .3em; color: var(--muted); margin-bottom: 12px; }
.q-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.12; color: var(--cream); }
.q-sub { margin: 10px 0 0; font-size: 14px; font-weight: 300; color: var(--soft); }

/* Q1 hook */
.badge-row { display: flex; justify-content: center; padding-top: 16px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); font-size: 10px; letter-spacing: .22em; }
.q-head--hook { padding-top: 18px; }
.q-head--hook .q-title { font-size: 32px; }
.footnote { margin-top: auto; padding: 18px 24px 4px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 300; color: var(--faint); }

/* Image answers */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 24px 0; }
.tile { border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.tile__img { width: 100%; height: auto; aspect-ratio: 1 / 0.92; object-fit: cover; border-radius: 2px; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .2s, opacity .2s; }
.tile__label { font: 500 10px/1.5 var(--sans); letter-spacing: .16em; min-height: 30px; text-transform: uppercase; }
.tile.is-selected .tile__img { outline-color: var(--soft); }
.tiles.has-selection .tile:not(.is-selected) { opacity: .55; }

/* Text answers */
.options { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 0; }
.option { width: 100%; min-height: 60px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 2px; background: transparent; text-align: start; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: background .2s, color .2s, border-color .2s; }
.option__name { font: 400 21px/1.2 var(--serif); display: block; }
.option__note { display: block; margin-top: 3px; font: 300 13px/1.4 var(--sans); color: var(--muted); }
.option svg { flex: none; }
.option:hover { border-color: var(--soft); }
.option.is-selected { background: var(--button); color: var(--button-ink); border-color: var(--button); }
.option.is-selected .option__note { color: #6B5446; }

/* Multi-select */
.checks { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 0; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: background .2s, color .2s; }
.check__label { font: 400 20px/1.2 var(--serif); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--button-ink); flex: none; }
.check--none { border-color: var(--soft); }
.check.is-checked { background: var(--button); color: var(--button-ink); border-color: var(--button); }

/* Footer nav */
.nav { margin-top: auto; padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; letter-spacing: .1em; color: var(--soft); }
.btn { height: 54px; padding: 0 30px; border: 0; border-radius: 2px; background: var(--button); color: var(--button-ink); font: 500 12px var(--sans); letter-spacing: .26em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: #fff; color: var(--button-ink); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn--block { width: 100%; height: 56px; letter-spacing: .18em; padding: 0 16px; text-align: center; }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid var(--soft); height: 48px; padding: 0 22px; font-size: 11px; gap: 10px; }
.btn--ghost:hover { background: rgba(243,233,220,.08); color: #fff; }

/* Loading */
.loading { margin: auto 0; text-align: center; padding: 0 32px; }
.loading .q-title { font-size: 36px; margin-top: 18px; }
.loading__track { margin: 28px auto 0; width: 200px; height: 2px; background: var(--track); overflow: hidden; }
.loading__fill { height: 2px; width: 0; background: var(--soft); }
.loading__fill.is-running { width: 100%; transition: width var(--dur, 2.6s) ease-in-out; }

/* Form */
.form-head { text-align: center; padding: 22px 32px 0; }
.done { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.family-label { margin-top: 18px; font-size: 11px; letter-spacing: .26em; color: var(--muted); }
.family-chip { margin-top: 8px; display: inline-block; padding: 9px 16px; border: 1px solid var(--soft); font-size: 12px; font-weight: 500; letter-spacing: .26em; }
.form-head .q-title { font-size: 34px; margin-top: 18px; line-height: 1.1; }
.form { padding: 22px 32px 0; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 11px; letter-spacing: .24em; color: var(--muted); }
.field__label em { font-style: normal; letter-spacing: .1em; color: #B9A48F; }
.field__input, .phone input { background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--cream); font: 300 17px var(--sans); padding: 8px 0 10px; min-height: 44px; width: 100%; border-radius: 0; }
.field__input::placeholder, .phone input::placeholder { color: #B39E8A; }
.field__input:focus, .phone:focus-within { outline: none; border-bottom-color: var(--soft); }
.phone { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.phone__code { font-weight: 300; font-size: 17px; }
.phone input { border-bottom: 0; flex: 1; }
.field__help { font-size: 12px; font-weight: 300; color: var(--faint); }
.field__error { font-size: 12px; color: var(--error); min-height: 0; }
.field.has-error .field__input, .field.has-error .phone { border-bottom-color: var(--error); }
.consent { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 300; color: var(--soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--soft); }
.consent.has-error { color: var(--error); }
.trust { margin-top: -6px; text-align: center; font-size: 12px; font-weight: 300; color: var(--faint); }
.form-error { text-align: center; font-size: 13px; color: var(--error); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Result */
.result { padding: 14px 24px 0; display: flex; flex-direction: column; }
.next { padding: 18px 18px 20px; border: 1px solid var(--line); }
.next__ok { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.next__label { margin-top: 14px; font-size: 10px; letter-spacing: .28em; color: var(--muted); }
.next__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.next__item { display: flex; gap: 14px; align-items: flex-start; }
.next__num { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--soft); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.next__title { display: block; font-size: 14px; }
.next__desc { display: block; margin-top: 2px; font-size: 12px; font-weight: 300; color: var(--faint); }
.scent { text-align: center; margin-top: 26px; }
.scent__label, .section-label { font-size: 11px; letter-spacing: .3em; color: var(--muted); text-align: center; }
.scent__name { margin: 10px 0 0; font: 400 52px/1 var(--serif); }
.scent__family { margin-top: 10px; font-size: 11px; letter-spacing: .26em; color: var(--muted); }
.scent__img { margin-top: 22px; width: 100%; aspect-ratio: 342 / 300; object-fit: cover; border-radius: 2px; }
.section-label { margin-top: 24px; }
.persona { margin: 8px 0 0; font: 400 30px/1.15 var(--serif); text-align: center; }
.persona-text { margin: 10px 0 0; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--soft); text-align: center; }
.notes { margin-top: 22px; border-bottom: 1px solid var(--track); }
.notes__row { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--track); }
.notes__k { font-size: 11px; letter-spacing: .24em; color: var(--muted); padding-top: 4px; }
.notes__v { font: 400 19px/1.3 var(--serif); }
.cta { margin-top: 28px; }
.cta__note { margin: 10px 0 0; font-size: 12px; font-weight: 300; color: var(--faint); text-align: center; }
.trusted { margin-top: 34px; padding: 24px 20px; border: 1px solid var(--line); text-align: center; }
.trusted__text { margin: 10px 0 16px; font: 400 22px/1.25 var(--serif); }
.trusted__url { margin-top: 12px; font-size: 12px; font-weight: 300; color: var(--faint); }
.also { border-bottom: 1px solid var(--track); margin-top: 6px; }
.also__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--track); }
.also__name { font: 400 22px var(--serif); }
.also__fam { font-size: 10px; letter-spacing: .18em; color: var(--muted); text-align: end; }
.retake { margin: 22px auto 0; min-height: 44px; background: none; border: 0; cursor: pointer; font-size: 11px; letter-spacing: .28em; color: var(--muted); }

.noscript { padding: 40px 24px; text-align: center; }

/* RTL (Arabic) */
[dir="rtl"] .back svg, [dir="rtl"] .option svg, [dir="rtl"] .btn--ghost svg { transform: scaleX(-1); }
[dir="rtl"] .eyebrow, [dir="rtl"] .tile__label, [dir="rtl"] .topbar__brand, [dir="rtl"] .btn { letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .progress__bar, .loading__fill.is-running { transition: none; }
}

/* ── Free-sample offer (handoff update, 26 Nov) ── */
.sample-banner { margin: 14px 24px 0; padding: 12px 16px; background: #F3E9DC; color: #2A1912; border-radius: 2px; text-align: center; }
.sample-banner__title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; }
.sample-banner__sub { margin-top: 4px; font-size: 12px; font-weight: 300; color: #5A4438; }
.sample-card { margin: 18px auto 0; max-width: 420px; padding: 14px 16px; border: 1px solid #E3D4C3; display: flex; align-items: center; gap: 14px; text-align: left; }
.sample-card__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #F3E9DC; display: flex; align-items: center; justify-content: center; }
.sample-card__text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sample-card__label { font-size: 11px; letter-spacing: 0.24em; color: #C9B49F; }
.sample-card .sample-card__family { margin: 0; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: #F7EFE4; }
.sample-card__sub { font-size: 12px; font-weight: 300; color: #D2C0AD; }
.sample-card__free { flex: none; padding: 6px 10px; background: #F3E9DC; color: #2A1912; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; }
[dir="rtl"] .sample-card { text-align: right; }

/* ── Result: home type (optional, after submit) + follow us (Dec 2026) ── */
.hometype { margin-top: 34px; padding: 20px 18px; border: 1px solid #7D5F4E; text-align: center; }
.hometype__q { margin: 8px 0 14px; font-family: 'Cormorant Garamond', serif; font-size: 22px; color: #F7EFE4; }
.hometype__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hometype__opt { min-height: 48px; padding: 8px 10px; background: transparent; border: 1px solid #7D5F4E; color: #F7EFE4; font: 400 13px 'Jost', sans-serif; letter-spacing: .04em; cursor: pointer; transition: background .25s, color .25s; }
.hometype__opt.is-selected { background: #F3E9DC; color: #2A1912; border-color: #F3E9DC; }
.hometype__done { margin: 12px 0 0; font-size: 13px; font-weight: 300; color: #D2C0AD; }
.follow { margin-top: 34px; text-align: center; }
.follow__row { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.follow__btn { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #7D5F4E; color: #F7EFE4; text-decoration: none; font-size: 12px; letter-spacing: .06em; transition: background .25s; }
.follow__btn:hover { background: rgba(243, 233, 220, .08); }
