/* =====================================================================
   Letstick — "Maison" art direction (replaces the light/glass look)
   Dark editorial beauty campaign: espresso scenes, ivory type, gold detail,
   the bag's butter yellow as the only bright accent. Every screen is a
   full-bleed scene; the try-on photo fills the screen. Loaded after style.css.
   ===================================================================== */
:root {
  --espresso: #120D0A;
  --cocoa: #22170F;
  --ivory: #F6EEE1;
  --ivory-dim: rgba(246, 238, 225, .72);
  --butter: #F2DC8E;
  --gold: #C9A45C;
  --amber-l: #E9B46C;
  --mist-l: #BFD8E8;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --dark-glass: rgba(22, 15, 11, .55);
  --hair: 1px solid rgba(246, 238, 225, .18);
}

html, body { background: var(--espresso); }
body, body[data-tone] { background: var(--espresso); color: var(--ivory); }
.aurora, .grain { display: none; }
.app { max-width: 520px; min-height: 100dvh; box-shadow: 0 0 120px rgba(0, 0, 0, .6); }
:focus-visible { outline-color: var(--butter); }

/* ---------- top bar: transparent, ivory wordmark ---------- */
.topbar { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; inset: 0 0 auto 0; height: 64px; padding-top: env(safe-area-inset-top); }
.topbar__logo { height: 18px; filter: brightness(0) invert(1); opacity: .95; }
.mute { background: rgba(246, 238, 225, .1); border: var(--hair); box-shadow: none; inset-inline-start: 14px; top: calc(env(safe-area-inset-top) + 12px); translate: none; width: 40px; height: 40px; }
.mute svg { fill: var(--ivory); }

/* ---------- screens are full-bleed scenes ---------- */
.screen { padding: calc(76px + env(safe-area-inset-top)) 24px calc(150px + env(safe-area-inset-bottom)); }
.screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--espresso); }
.screen__title { font-family: var(--display); font-weight: 700; font-size: 2.15rem; line-height: 1.2; color: var(--ivory); }

/* scene photography (generated campaign images) */
.screen--splash::before, .screen--welcome::before, .screen--cta::before {
  background:
    linear-gradient(180deg, rgba(18, 13, 10, .92) 0%, rgba(18, 13, 10, .35) 34%, rgba(18, 13, 10, 0) 55%, rgba(18, 13, 10, .55) 100%),
    url("scenes/stage.jpg") center 70% / cover no-repeat, var(--espresso);
}
.screen--quiz::before, .screen--choose::before {
  background:
    linear-gradient(180deg, rgba(18, 13, 10, .55) 0%, rgba(18, 13, 10, .88) 45%, var(--espresso) 75%),
    url("scenes/hair.jpg") center top / cover no-repeat, var(--espresso);
}
.screen--reward::before {
  background:
    linear-gradient(180deg, rgba(18, 13, 10, .25) 0%, rgba(18, 13, 10, .55) 60%, rgba(18, 13, 10, .9) 100%),
    url("scenes/silk.jpg") center / cover no-repeat, var(--espresso);
}

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 999px; min-height: 56px; font-weight: 600; letter-spacing: .01em; position: relative; overflow: hidden; }
.btn--ink { background: var(--ivory); color: var(--espresso); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.btn--ink::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(242, 220, 142, .7), transparent);
  transform: skewX(-18deg); animation: luxSheen 5s ease-in-out infinite 1.8s;
}
@keyframes luxSheen { 0%, 65% { left: -60%; } 100% { left: 130%; } }
.btn--ghost { background: rgba(246, 238, 225, .08); color: var(--ivory); border: 1px solid rgba(246, 238, 225, .35); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--small { min-height: 44px; }

/* ---------- splash + welcome + CTA: the real bottles standing on the stone pedestals ----------
   The scene box keeps the photo's 2:3 ratio at full height (same as background "cover" on a phone),
   so the bottles stay on the pedestals on every screen size. */
.screen--splash::before, .screen--welcome::before, .screen--cta::before { background: var(--espresso); }
.stage-scene { position: absolute; top: 0; bottom: 0; left: 50%; height: 100%; aspect-ratio: 2 / 3; translate: -50% 0; z-index: -1; pointer-events: none; }
.stage-scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-scene::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 13, 10, .94) 0%, rgba(18, 13, 10, .55) 30%, rgba(18, 13, 10, 0) 50%, rgba(18, 13, 10, 0) 78%, rgba(18, 13, 10, .7) 100%); }
.stage-scene__amber, .stage-scene__blue { position: absolute; z-index: 1; width: auto; translate: -50% 0; filter: drop-shadow(0 18px 14px rgba(40, 22, 8, .55)); }
.stage-scene__amber { left: 72.5%; bottom: 26.8%; height: 27%; }   /* right pedestal (lower) */
.stage-scene__blue  { left: 27%;   bottom: 31.6%; height: 21.5%; } /* left pedestal (higher) */
.screen--splash.is-active .stage-scene__amber, .screen--welcome.is-active .stage-scene__amber { animation: luxRise 1.1s cubic-bezier(.2, .8, .2, 1) .35s both; }
.screen--splash.is-active .stage-scene__blue, .screen--welcome.is-active .stage-scene__blue { animation: luxRise 1.1s cubic-bezier(.2, .8, .2, 1) .55s both; }
@keyframes luxRise { from { opacity: 0; translate: -50% 40px; } }

.screen--splash, .screen--welcome { justify-content: flex-start; gap: 12px; text-align: center; }
.splash__stage, .duo-hero { display: none; }
.splash__title { font-size: 3.1rem; line-height: 1.08; color: var(--ivory); margin: 18px 0 0; }
.splash__sub { color: var(--ivory-dim); font-size: 1.02rem; line-height: 1.75; max-width: 30ch; margin: 0 auto; }
#startBtn, .screen--welcome #welcomeNext { position: absolute; left: 24px; right: 24px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 2; }
.splash__hint { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 2; color: var(--ivory-dim); font-size: .85rem; }
.welcome__title { font-size: 3rem; margin-top: 18px; }
.screen--welcome .welcome__title { animation: fade .6s var(--ease) .9s both; }
/* while the welcome line plays the caption sits at the bottom; keep the button above it */
.screen--welcome #welcomeNext { bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ---------- quiz: editorial rows ---------- */
.screen--quiz { justify-content: flex-end; align-items: stretch; text-align: start; gap: 18px; padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.quiz__dots { position: absolute; top: calc(72px + env(safe-area-inset-top)); left: 24px; right: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quiz__dots i { width: auto; height: 3px; border-radius: 2px; background: rgba(246, 238, 225, .2); box-shadow: none; }
.quiz__dots i.is-on { width: auto; background: var(--butter); }
.quiz__q { justify-content: flex-start; text-align: start; font-size: 2.3rem; min-height: 0; margin: 0 0 6px; }
.quiz__opts, .quiz__opts.is-three { grid-template-columns: 1fr; gap: 0; max-width: none; border-top: var(--hair); }
.quiz__opt {
  display: flex; align-items: center; justify-content: space-between; text-align: start;
  min-height: 64px; padding: 0 4px; border-radius: 0; border: 0; border-bottom: var(--hair);
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  color: var(--ivory); font-family: var(--display); font-size: 1.45rem; font-weight: 400;
}
.quiz__opt::after { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(246, 238, 225, .5); transition: background-color .2s, border-color .2s, box-shadow .2s; }
.quiz__opt:hover { border-color: rgba(246, 238, 225, .18); background: rgba(246, 238, 225, .04); }
.quiz__opt.is-picked { background: none; color: var(--butter); }
.quiz__opt.is-picked::after { background: var(--butter); border-color: var(--butter); box-shadow: inset 0 0 0 4px var(--espresso); }
.quiz__skip { align-self: flex-start; background: none; border: 0; box-shadow: none; color: var(--ivory-dim); text-decoration: underline; padding: 6px 0; }

/* ---------- choose: swipe lookbook ---------- */
.screen--choose { justify-content: flex-start; align-items: stretch; padding: calc(76px + env(safe-area-inset-top)) 0 calc(150px + env(safe-area-inset-bottom)); overflow: hidden; gap: 16px; }
.screen--choose .screen__title { padding: 0 24px; text-align: start; font-size: 2.2rem; }
.models {
  display: flex; gap: 14px; max-width: none; width: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 6px 24px 10px; scrollbar-width: none; flex: 1; min-height: 0;
}
.models::-webkit-scrollbar { display: none; }
.model-card, .model-card:last-child:nth-child(3n + 1) {
  grid-column: auto; flex: 0 0 72%; scroll-snap-align: center; position: relative; overflow: hidden;
  padding: 0; border: 0; border-radius: 28px; background: var(--cocoa); box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: none; backdrop-filter: none; transform: none;
}
.model-card:hover { transform: none; }
.model-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; padding: 0; background: none; }
.model-card__photo img, .model-card__photo .model-card__ph { border-radius: 0; }
.model-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 13, 10, .85)); pointer-events: none; }
.model-card__name { position: absolute; z-index: 1; right: 20px; bottom: 18px; font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--ivory); }
.model-card__badge { top: 16px; left: auto; right: 16px; translate: none; background: var(--butter); color: var(--espresso); font-size: .8rem; padding: 4px 12px; }
.model-card.is-match { box-shadow: 0 0 0 2px var(--butter), 0 20px 40px rgba(0, 0, 0, .45); }

/* ---------- stage: the photo fills the screen ---------- */
.screen--stage { padding: 0; justify-content: flex-end; gap: 0; }
.screen--stage::before { background: var(--espresso); }
.mirror, .mirror.is-camera {
  position: absolute; inset: 0; width: 100%; aspect-ratio: auto; padding: 0; border-radius: 0; border: 0;
  background: var(--espresso); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.mirror::after { content: ""; position: absolute; inset: 0; border-radius: 0; box-shadow: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 13, 10, .7) 0%, transparent 22%, transparent 55%, rgba(18, 13, 10, .92) 100%); }
.mirror__glass { border-radius: 0; background: var(--cocoa); }
.fx-comb { width: 40%; top: 14%; fill: var(--ivory); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.chips { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(196px + env(safe-area-inset-bottom)); width: auto; translate: none; gap: 6px; padding: 0 20px; }
.chips li { background: rgba(246, 238, 225, .14); border: 1px solid rgba(246, 238, 225, .3); color: var(--ivory); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: none; font-weight: 500; }
.chips li::before { content: "✓ "; color: var(--butter); }
.ingr { position: absolute; top: calc(170px + env(safe-area-inset-top)); left: 0; right: 0; width: auto; translate: none; z-index: 6; }
.ingr__card { background: rgba(22, 15, 11, .62); border: 1px solid rgba(246, 238, 225, .22); color: var(--ivory); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.ingr__what { color: var(--ivory-dim); opacity: 1; }

/* caption = subtitles at the top of the photo */
.caption-slot { position: absolute; z-index: 6; top: calc(68px + env(safe-area-inset-top)); left: 16px; right: 16px; width: auto; min-height: 0; display: block; }
.caption-slot .caption, .caption {
  background: var(--dark-glass); border: 1px solid rgba(246, 238, 225, .16); color: var(--ivory);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35); border-radius: 22px;
}
.caption__text { color: var(--ivory); }
.caption__wave i { background: var(--butter); }

/* product dock floating over the photo */
.shelf {
  position: relative; z-index: 5; margin: 0 14px calc(40px + env(safe-area-inset-bottom)); padding: 10px; gap: 10px; width: auto;
  border: 1px solid rgba(246, 238, 225, .16); border-bottom: 1px solid rgba(246, 238, 225, .16); border-radius: 30px;
  background: rgba(22, 15, 11, .6); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}
.product {
  flex: 1; max-width: none; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 12px 8px 8px;
  border-radius: 22px; border: 1px solid transparent; background: rgba(246, 238, 225, .06); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ivory); text-align: start;
}
.product img, .product--blue img { height: 74px; }
.product__name { font-size: .95rem; color: var(--ivory); }
.product__step { position: static; order: -1; flex: none; background: rgba(246, 238, 225, .14); color: var(--ivory); box-shadow: none; }
.product.is-ready { background: rgba(242, 220, 142, .12); border-color: var(--butter); box-shadow: 0 0 24px rgba(242, 220, 142, .25); }
.product.is-ready .product__step { background: var(--butter); color: var(--espresso); }
.product.is-done { background: rgba(246, 238, 225, .04); opacity: .75; }
.product.is-done .product__step { background: var(--gold); }
.product:disabled { opacity: .4; }
.stage__next { position: relative; z-index: 5; margin: 0 24px calc(52px + env(safe-area-inset-bottom)); }
.disclaimer { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); color: var(--ivory-dim); opacity: 1; font-size: .74rem; }

/* ---------- result: full-screen before / after ---------- */
.screen--result { padding: 0; justify-content: flex-end; gap: 0; }
.compare, .compare { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; flex: none; }
.compare::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(18, 13, 10, .75) 0%, transparent 20%, transparent 60%, rgba(18, 13, 10, .92) 100%); }
.compare__tag { top: calc(130px + env(safe-area-inset-top)); z-index: 2; background: rgba(22, 15, 11, .55); color: var(--ivory); border: 1px solid rgba(246, 238, 225, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }
.compare__handle { z-index: 2; background: var(--ivory); }
.compare__handle span { background: var(--ivory); border: 0; }
.compare__range { z-index: 3; }
.screen--result .screen__title { position: absolute; z-index: 4; top: calc(70px + env(safe-area-inset-top)); left: 24px; right: 24px; text-align: start; font-size: 2.3rem; pointer-events: none; }
.compare__hint { position: relative; z-index: 4; color: var(--ivory-dim); margin: 0 0 12px; pointer-events: none; }
.screen--result .row { position: relative; z-index: 4; margin: 0 24px calc(150px + env(safe-area-inset-bottom)); width: calc(100% - 48px); }
.screen--result .row .btn { flex: 1; }

/* ---------- reward ---------- */
.screen--reward { gap: 26px; }
.gift__box { background: linear-gradient(90deg, transparent 44%, var(--gold) 44% 56%, transparent 56%), var(--ivory); border: 0; box-shadow: 0 24px 40px rgba(0, 0, 0, .45); -webkit-backdrop-filter: none; backdrop-filter: none; }
.gift__lid { background: linear-gradient(90deg, transparent 44%, var(--gold) 44% 56%, transparent 56%), var(--butter); }
.gift__lid::before, .gift__lid::after { border-color: var(--gold); }
.gift__tap { color: var(--ivory); }
.code__label { color: var(--ivory-dim); }
.code__value {
  font-family: var(--latin); font-weight: 600; font-size: 2.4rem; letter-spacing: .12em; color: var(--butter);
  background: rgba(22, 15, 11, .55); border: 1px solid rgba(242, 220, 142, .55); border-radius: 18px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: none;
}

/* ---------- CTA: the duo on stage + a dark sheet ---------- */
.screen--cta, .screen--cta:has(.routine:not([hidden])) { justify-content: flex-end; padding: 0 0 calc(150px + env(safe-area-inset-bottom)); gap: 0; }
.offer { gap: 8px; padding: 22px 22px 18px; margin: 0 14px; width: auto; border-radius: 30px; background: rgba(22, 15, 11, .7); border: 1px solid rgba(246, 238, 225, .16); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.offer__bottles, .screen--cta .offer__bottles, .screen--cta:has(.routine:not([hidden])) .offer__bottles { position: absolute; left: 0; right: 0; top: calc(-36vh); height: 34vh; filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .55)); }
.offer__bottles img, .screen--cta .offer__bottles img, .screen--cta:has(.routine:not([hidden])) .offer__bottles img { height: 100%; }
.offer__bottles img + img, .screen--cta .offer__bottles img + img, .screen--cta:has(.routine:not([hidden])) .offer__bottles img + img { height: 84%; }
.offer { position: relative; }
.offer__kicker { color: var(--butter); margin: 0; }
.offer__name, .screen--cta:has(.routine:not([hidden])) .offer__name { font-family: var(--latin); font-weight: 600; font-size: 2.6rem; letter-spacing: .01em; color: var(--ivory); margin: -4px 0 2px; }
.offer__desc { color: var(--ivory-dim); }
.routine { background: rgba(246, 238, 225, .06); border: 1px solid rgba(246, 238, 225, .14); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: none; }
.routine__title { color: var(--butter); }
.routine__steps { color: var(--ivory); }
.offer__price { color: var(--ivory); margin: 6px 0 0; }
.offer__now { font-family: var(--latin); font-weight: 600; font-size: 1.9rem; }
.offer__was { color: var(--ivory-dim); }
.offer__code { color: var(--ivory-dim); }
.offer__code b { color: var(--butter); }
.offer__single { color: var(--ivory-dim); }
.offer__single a { color: var(--ivory); }

/* caption on non-stage screens: bottom dark glass */
.caption { bottom: calc(16px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) { .btn--ink::after { animation: none; } }

/* CTA: scene lifted so the duo stands above the sheet */
.screen--cta .stage-scene { translate: -50% -24%; }
.screen--cta .stage-scene::after { background: linear-gradient(180deg, rgba(18, 13, 10, .85) 0%, rgba(18, 13, 10, 0) 40%, rgba(18, 13, 10, 0) 70%, rgba(18, 13, 10, .9) 88%); }
.offer__bottles { display: none !important; }

/* each screen is its own stacking context, so scene layers (z-index:-1) stay above the page background */
.screen { z-index: 0; }

/* welcome: the greeting reads as a subtitle under the title, the button stays clear at the bottom */
#s-welcome.is-active ~ .caption { top: calc(150px + env(safe-area-inset-top)); bottom: auto; }
.screen--welcome #welcomeNext { bottom: calc(64px + env(safe-area-inset-bottom)); }

/* stage + result: show the whole photo (3:4, full width) and fade it into the espresso below,
   instead of cropping the hair on tall phones */
.mirror, .mirror.is-camera { inset: 0 0 auto 0; height: auto; aspect-ratio: 3 / 4; max-height: 74dvh; }
.mirror::after { background: linear-gradient(180deg, rgba(18, 13, 10, .72) 0%, transparent 24%, transparent 72%, var(--espresso) 100%); }
.compare, .compare { inset: 0 0 auto 0; height: auto; aspect-ratio: 3 / 4; max-height: 76dvh; }
.compare::after { background: linear-gradient(180deg, rgba(18, 13, 10, .72) 0%, transparent 24%, transparent 74%, var(--espresso) 100%); }
.screen--result .row { margin-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* stage layout, bottom-up: product dock → caption → (photo fades in) chips + ingredient on the photo's lower edge.
   Nothing sits over the face. */
.screen--stage { justify-content: flex-end; }
.caption-slot { position: relative; top: auto; left: auto; right: auto; z-index: 6; margin: 0 14px 12px; }
.chips { position: absolute; bottom: 14px; top: auto; }
.ingr { top: auto; bottom: 58px; }
.shelf { margin-bottom: calc(36px + env(safe-area-inset-bottom)); }

.ingr { bottom: 112px; }

/* CTA: lift the duo higher so both bottles clear the sheet */
.screen--cta .stage-scene { translate: -50% -40%; }
.screen--cta .offer { padding-top: 18px; }
