/* Letstick try-on experience
   Palette taken from the brand's own bag, bottles and wordmark. */
:root {
  --butter: #F7E9A8;      /* the shopping bag */
  --butter-deep: #EED88A;
  --rope: #C8A257;        /* twisted gold handle */
  --amber: #E9B46C;       /* Premium Hair Care Mist bottle */
  --mist: #CFE2EE;        /* Hydrating Fixing Mist bottle */
  --mist-deep: #A9CBE0;
  --ink: #1F1A17;         /* wordmark */
  --paper: #FFFDF5;

  --display: "Amiri", "Times New Roman", serif;
  --text: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --bg: var(--butter);
}

body[data-tone="amber"] { --bg: #F4D9A6; }
body[data-tone="blue"]  { --bg: #DCEAF2; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--text);
  color: var(--ink);
  background: var(--bg);
  transition: background-color .9s var(--ease);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.app {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  height: 64px; padding: env(safe-area-inset-top) 16px 0;
}
.topbar__logo { height: 22px; width: auto; }
.mute {
  position: absolute; inset-inline-start: 12px; top: calc(env(safe-area-inset-top) + 10px);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 253, 245, .7); display: grid; place-items: center; cursor: pointer;
}
.mute svg { width: 22px; height: 22px; fill: var(--ink); }
.mute .mute__off { display: none; }
.mute[aria-pressed="true"] .mute__on { display: none; }
.mute[aria-pressed="true"] .mute__off { display: inline; }

/* ---------- screens ---------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  padding: 84px 22px calc(150px + env(safe-area-inset-bottom));
  text-align: center;
  opacity: 0; visibility: hidden; transform: scale(.985);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.screen.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s;
}
.screen__title {
  font-family: var(--display); font-weight: 700;
  font-size: 2rem; line-height: 1.25; margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-size: 1.06rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform .15s var(--ease), background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn--wide { width: 100%; }
.row { display: flex; gap: 12px; }

/* ---------- splash ---------- */
.screen--splash { gap: 14px; }
/* the one orchestrated moment: the bag lands, the two bottles rise out of it, then the words */
.splash__stage {
  position: relative; width: min(62vw, 250px); aspect-ratio: 1; margin-bottom: 4px;
  background: var(--bg); /* the tilt transform isolates blending, so give multiply the page colour to blend with */
  transform: perspective(700px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg));
}
.splash__bag { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; } /* bag photo has a white background */
.splash__peek { position: absolute; left: 24%; right: 24%; top: -18%; height: 46%; overflow: hidden; z-index: 1; }
.splash__bottle { position: absolute; bottom: 0; height: 120%; width: auto; filter: drop-shadow(0 6px 8px rgba(60, 40, 10, .25)); }
.splash__bottle--amber { right: 6%; }
.splash__bottle--blue { left: 8%; height: 104%; }
.screen--splash.is-active .splash__bag { animation: land .7s var(--ease) both; }
.screen--splash.is-active .splash__bottle { animation: peek .9s var(--ease) .55s both; }
.screen--splash.is-active .splash__bottle--blue { animation-delay: .72s; }
.screen--splash.is-active .splash__title { animation: fade .6s var(--ease) 1.05s both; }
.screen--splash.is-active .splash__sub { animation: fade .6s var(--ease) 1.2s both; }
.screen--splash.is-active #startBtn { animation: fade .6s var(--ease) 1.4s both; }
.screen--splash.is-active .splash__hint { animation: fade .6s var(--ease) 1.55s both; }
@keyframes land { from { opacity: 0; transform: translateY(-24px) scale(.94); } }
@keyframes peek { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.splash__title { font-family: var(--display); font-weight: 700; font-size: 2.5rem; line-height: 1.2; margin: 0; }
.splash__sub { margin: 0 0 10px; font-size: 1.02rem; max-width: 28ch; line-height: 1.7; }
.splash__hint { margin: 4px 0 0; font-size: .85rem; opacity: .7; }

/* ---------- welcome ---------- */
.duo-hero { position: relative; width: 260px; height: 340px; transform: perspective(700px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)); }
/* bottles on the shelf and on the offer lean with the phone */
.shelf .product img, .offer__bottles { transform: perspective(600px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)); }
.duo-hero__bottle { position: absolute; bottom: 0; height: 300px; width: auto; filter: drop-shadow(0 14px 18px rgba(60, 40, 10, .18)); }
.duo-hero__bottle--amber { right: 0; transform: rotate(5deg); }
.duo-hero__bottle--blue { left: 6px; height: 250px; transform: rotate(-5deg); }
.screen--welcome.is-active .duo-hero__bottle { animation: rise .9s var(--ease) both; }
.screen--welcome.is-active .duo-hero__bottle--blue { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } }

/* ---------- choose ---------- */
.choice { display: grid; gap: 14px; width: 100%; }
.choice__item {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto;
  column-gap: 14px; text-align: start; align-items: center;
  padding: 18px 18px; border-radius: 22px; cursor: pointer;
  background: var(--paper); border: 2px solid transparent;
  transition: border-color .2s, transform .15s var(--ease);
}
.choice__item:hover { border-color: var(--rope); }
.choice__item:active { transform: scale(.98); }
.choice__icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; }
.choice__icon svg { width: 30px; height: 30px; }
.choice__name { font-weight: 600; font-size: 1.1rem; }
.choice__note { font-size: .88rem; opacity: .72; line-height: 1.5; }

/* ---------- quick quiz ---------- */
.screen--quiz { gap: 22px; }
.quiz__dots { display: flex; gap: 8px; }
.quiz__dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--butter-deep); transition: background-color .3s, width .3s var(--ease); }
.quiz__dots i.is-on { background: var(--ink); width: 40px; }
.quiz__q { min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 360px; }
.quiz__opts.is-three { grid-template-columns: 1fr; }
.quiz__opt {
  min-height: 64px; padding: 10px 12px; border-radius: 20px; cursor: pointer;
  border: 2px solid transparent; background: var(--paper); font-weight: 600; font-size: 1.05rem;
  animation: chip .4s var(--ease) both;
  transition: border-color .2s, transform .15s var(--ease), background-color .2s;
}
.quiz__opt:hover { border-color: var(--rope); }
.quiz__opt:active { transform: scale(.97); }
.quiz__opt.is-picked { background: var(--ink); color: var(--paper); }
.quiz__skip { border: 0; background: none; text-decoration: underline; font-size: .9rem; opacity: .65; cursor: pointer; padding: 8px; }

/* ---------- model picker: "a hair like yours" ---------- */
.model-card { position: relative; }
.model-card.is-match { border-color: var(--ink); }
.model-card__badge {
  position: absolute; top: -9px; left: 50%; translate: -50% 0; z-index: 1; white-space: nowrap;
  padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--ink); color: var(--paper);
}
.screen--choose { justify-content: flex-start; overflow-y: auto; padding-top: 76px; gap: 14px; }
.screen--choose .screen__title { font-size: 1.7rem; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 380px; }
.model-card:last-child:nth-child(3n + 1) { grid-column: 2; }   /* a lone last card sits in the middle */
.model-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 5px 9px; border: 2px solid transparent; border-radius: 22px; cursor: pointer;
  background: var(--paper); transition: border-color .2s, transform .15s var(--ease);
}
.model-card:hover { border-color: var(--rope); }
.model-card:active { transform: scale(.97); }
.model-card__photo {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 50%; overflow: hidden;
  padding: 4px; background: repeating-linear-gradient(45deg, #E3C47F 0 5px, var(--rope) 5px 10px, #A9853F 10px 12px);
}
.model-card__photo img, .model-card__photo .model-card__ph {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #F1ECE0;
}
.model-card__ph { display: grid; place-items: center; font-size: .8rem; opacity: .6; }
.model-card__name { font-weight: 600; font-size: 1rem; }

/* ---------- stage: the vanity mirror ---------- */
.screen--stage { justify-content: flex-start; gap: 14px; padding-top: 72px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.mirror {
  position: relative; width: min(64vw, 268px); aspect-ratio: 3 / 4; flex: none;
  border-radius: 50%;
  padding: 9px;
  /* twisted rope frame, echoing the bag handle */
  background:
    repeating-linear-gradient(45deg, #E3C47F 0 6px, var(--rope) 6px 12px, #A9853F 12px 14px);
  box-shadow: 0 22px 40px rgba(90, 64, 16, .22);
}
.mirror__glass {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #FFFFFF, #F1ECE0);
  isolation: isolate;
}
.mirror__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: none; }
.mirror.is-camera .mirror__video { display: block; opacity: 0; } /* decoded but hidden; the canvas shows it */
.mirror.is-camera.no-seg .mirror__video { opacity: 1; }        /* segmentation failed: plain mirror */
.mirror.is-camera .mirror__model { display: none; }
.mirror__out { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.mirror.is-camera:not(.no-seg) .mirror__out { display: block; }
.mirror__loading {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; font-weight: 500;
  background: rgba(255, 253, 245, .82);
}
.countdown {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 6rem; color: var(--paper);
  text-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
.countdown span { animation: pop .9s var(--ease) both; }
@keyframes pop { from { transform: scale(1.6); opacity: 0; } 40% { opacity: 1; } }
.flash { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; }
.flash.is-on { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.shutter {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px 0 12px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1.05rem; cursor: pointer;
}
.shutter::before {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--paper);
}
.shutter:active { transform: scale(.97); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--butter-deep); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mirror__model, .mirror__model svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* camera-mode stand-in effects (hair-aware masks arrive in phase 3) */
.fx-shine {
  position: absolute; inset: -20% -40%; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 236, 190, .55) 50%, transparent 60%);
  mix-blend-mode: screen;
}
.mirror.is-camera.no-seg.is-smooth .fx-shine { animation: sweep 1.8s var(--ease) .3s both; }
.mirror.is-camera.no-seg.is-smooth .mirror__video { filter: saturate(1.08) brightness(1.04) contrast(1.03); transition: filter 1.2s; }
@keyframes sweep { 0% { opacity: 1; translate: 0 -45%; } 100% { opacity: 0; translate: 0 45%; } }

.fx-comb {
  position: absolute; top: 8%; left: 50%; width: 46%; translate: -50% 0;
  fill: var(--ink); opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}
.mirror.is-combing .fx-comb { animation: comb 1.7s var(--ease) both; }
@keyframes comb {
  0% { opacity: 0; transform: translateY(-20%) rotate(-8deg); }
  15% { opacity: .92; }
  85% { opacity: .92; }
  100% { opacity: 0; transform: translateY(520%) rotate(4deg); }
}

.fx-hold { position: absolute; inset: 6%; border-radius: 50%; pointer-events: none; opacity: 0; box-shadow: 0 0 0 0 rgba(169, 203, 224, .9) inset; }
.mirror.is-holding .fx-hold { animation: hold 1.4s var(--ease) both; }
@keyframes hold {
  0% { opacity: 0; box-shadow: 0 0 0 0 rgba(169, 203, 224, .0) inset; }
  40% { opacity: 1; box-shadow: 0 0 0 14px rgba(169, 203, 224, .7) inset; }
  100% { opacity: 0; box-shadow: 0 0 0 2px rgba(169, 203, 224, 0) inset; }
}

.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- ingredient card: slides in at the top of the mirror after a spray ---------- */
.ingr { position: absolute; top: -12px; left: 50%; translate: -50% 0; z-index: 4; width: 112%; display: flex; justify-content: center; pointer-events: none; }
.ingr__card {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 18px;
  background: var(--paper); box-shadow: 0 8px 22px rgba(60, 40, 10, .18); text-align: start;
  animation: ingrIn .5s var(--ease) both;
}
.ingr__card.is-out { animation: ingrOut .4s var(--ease) both; }
.ingr__dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.ingr__dot--amber { background: #F4D9A6; }
.ingr__dot--blue { background: var(--mist); }
.ingr__name { display: block; font-weight: 600; font-size: .92rem; }
.ingr__what { display: block; font-size: .8rem; opacity: .75; }
@keyframes ingrIn { from { opacity: 0; transform: translateY(-10px) scale(.95); } }
@keyframes ingrOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- benefit chips ---------- */
/* benefits float over the lower edge of the mirror */
.chips {
  position: absolute; z-index: 3; left: 50%; bottom: -10px; translate: -50% 0; width: 118%;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; pointer-events: none;
}
.chips li {
  padding: 5px 12px; border-radius: 999px; font-size: .86rem; font-weight: 500;
  background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 4px 10px rgba(60, 40, 10, .12);
  animation: chip .45s var(--ease) both;
}
.chips li::before { content: "✓ "; }
@keyframes chip { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* ---------- product shelf ---------- */
.shelf {
  display: flex; gap: 14px; justify-content: center; align-items: flex-end;
  width: 100%; padding: 0 6px 8px;
  border-bottom: 6px solid var(--rope);
}
.product {
  position: relative; flex: 1; max-width: 150px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 8px; border: 0; border-radius: 22px 22px 8px 8px; cursor: pointer;
  background: rgba(255, 253, 245, .55);
  transition: transform .2s var(--ease), opacity .3s, background-color .3s;
}
.product img { height: 128px; width: auto; filter: drop-shadow(0 8px 10px rgba(60, 40, 10, .2)); transition: transform .3s var(--ease); }
.product--blue img { height: 110px; }
.product__name { font-size: .92rem; font-weight: 600; }
.product__step {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: .85rem; display: grid; place-items: center;
}
.product:disabled { opacity: .45; cursor: not-allowed; }
.product.is-ready { background: var(--paper); box-shadow: 0 0 0 3px var(--ink); }
.product.is-ready img { animation: bob 2.2s ease-in-out infinite; }
.product.is-done { background: transparent; }
.product.is-done .product__step { background: var(--rope); }
.product.is-done .product__step::after { content: "✓"; }
.product.is-done .product__step { font-size: 0; }
.product.is-done .product__step::after { font-size: .85rem; }
.product.is-spraying img { animation: spray .5s var(--ease) 2; }
.product.is-nudge img { animation: wiggle .7s ease-in-out 2; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes spray { 50% { transform: translateY(4px) scale(.96); } }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

.stage__next { margin-top: 4px; }
.disclaimer { margin: 0; font-size: .78rem; opacity: .62; }

/* ---------- result ---------- */
.screen--result { gap: 16px; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
/* before / after: drag the line to compare */
.compare {
  --pos: 50%;
  /* never squash: keep 3:4 and shrink the whole frame to fit short screens */
  position: relative; flex: none; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden;
  width: min(76vw, 320px, calc((100dvh - 360px) * 0.75));
  background: var(--paper); box-shadow: 0 0 0 6px var(--rope), 0 22px 40px rgba(90, 64, 16, .22);
  touch-action: pan-y; user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }   /* before = right side (reads first in Arabic) */
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0;
  background: var(--paper); box-shadow: 0 0 10px rgba(0, 0, 0, .25); pointer-events: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%;
  background: var(--paper); box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.compare__handle span::before, .compare__handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; translate: 0 -50%;
  border: 6px solid transparent;
}
.compare__handle span::before { left: 8px; border-right-color: var(--ink); }
.compare__handle span::after { right: 8px; border-left-color: var(--ink); }
.compare__tag {
  position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 253, 245, .85); pointer-events: none;
}
.compare__tag--before { right: 12px; }
.compare__tag--after { left: 12px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + * , .compare:has(.compare__range:focus-visible) { outline: 3px solid var(--ink); outline-offset: 8px; }
.compare__hint { margin: -4px 0 0; font-size: .88rem; opacity: .7; }

/* ---------- reward ---------- */
.gift { position: relative; width: 190px; height: 190px; border: 0; background: none; cursor: pointer; }
.gift__box {
  position: absolute; inset: 70px 22px 18px; border-radius: 10px;
  background: linear-gradient(90deg, transparent 44%, var(--rope) 44% 56%, transparent 56%), var(--paper);
  box-shadow: 0 14px 24px rgba(90, 64, 16, .2);
}
.gift__lid {
  position: absolute; inset: 48px 12px auto; height: 32px; border-radius: 8px; z-index: 1;
  background: linear-gradient(90deg, transparent 44%, var(--rope) 44% 56%, transparent 56%), var(--ink);
  transition: transform .7s var(--ease);
}
.gift__lid::before, .gift__lid::after {
  content: ""; position: absolute; top: -26px; width: 40px; height: 30px;
  border: 6px solid var(--rope); border-radius: 50% 50% 0 50%;
}
.gift__lid::before { right: 50%; }
.gift__lid::after { left: 50%; transform: scaleX(-1); }
.gift__tap { position: absolute; bottom: -34px; left: 0; right: 0; font-size: .95rem; font-weight: 500; }
.gift:not(.is-open) .gift__lid { animation: shake 2.4s ease-in-out infinite; }
.gift.is-open .gift__lid { transform: translate(-26px, -30px) rotate(-16deg); }
.screen--reward { gap: 30px; }
.gift.is-open .gift__tap { visibility: hidden; }
@keyframes shake { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-4deg); } 90% { transform: rotate(4deg); } 95% { transform: rotate(-2deg); } }

.code { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: rise .6s var(--ease) both; }
.code__label { font-size: .95rem; }
.code__value {
  font-family: var(--text); font-weight: 600; font-size: 1.9rem; letter-spacing: .08em; direction: ltr;
  padding: 10px 26px; border: 2px dashed var(--ink); border-radius: 14px; background: var(--paper);
}

/* ---------- CTA ---------- */
.offer { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.offer__bottles { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 230px; }
.offer__bottles img { height: 220px; width: auto; filter: drop-shadow(0 12px 16px rgba(60, 40, 10, .2)); }
.offer__bottles img + img { height: 186px; }
/* personal routine (from the quiz answers) */
.routine { width: 100%; max-width: 360px; padding: 12px 16px; border-radius: 18px; background: var(--paper); text-align: start; }
.routine__title { margin: 0 0 6px; font-weight: 600; font-size: .95rem; color: #8A6A2C; }
.routine__steps { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 4px; font-size: .9rem; line-height: 1.6; }
.screen--cta .routine:not([hidden]) ~ .offer__desc { display: none; }
/* with a routine card the bottles step back so everything fits above the caption */
.screen--cta:has(.routine:not([hidden])) { padding-top: 70px; gap: 8px; }
.screen--cta:has(.routine:not([hidden])) .offer__bottles { height: 120px; }
.screen--cta:has(.routine:not([hidden])) .offer__bottles img { height: 116px; }
.screen--cta:has(.routine:not([hidden])) .offer__bottles img + img { height: 98px; }
.screen--cta:has(.routine:not([hidden])) .offer__name { font-size: 1.8rem; margin: 0; }
.offer__kicker { margin: 4px 0 -8px; font-weight: 600; font-size: 1rem; color: #8A6A2C; }
.offer__name { font-family: var(--display); font-weight: 700; font-size: 2.1rem; margin: 6px 0 0; direction: ltr; }
.offer__desc { margin: 0; line-height: 1.7; max-width: 30ch; }
.offer__price { margin: 4px 0 0; font-size: 1.15rem; }
.offer__now { font-weight: 600; font-size: 1.4rem; }
.offer__was { opacity: .55; margin-inline-start: 6px; }
.offer__code { margin: 0; font-size: .95rem; min-height: 1.4em; }
.offer__code b { direction: ltr; unicode-bidi: isolate; }
.offer__single { margin: 6px 0 0; font-size: .92rem; }
.offer__single a { color: var(--ink); font-weight: 600; }
.screen--cta { padding-bottom: calc(175px + env(safe-area-inset-bottom)); gap: 12px; }
.screen--cta .offer__bottles { height: 190px; }
.screen--cta .offer__bottles img { height: 180px; }
.screen--cta .offer__bottles img + img { height: 152px; }
.splash__title, .screen__title { text-wrap: balance; }

/* ---------- voice caption ---------- */
.caption {
  position: fixed; z-index: 30; left: 50%; translate: -50% 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 452px);
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 22px;
  background: var(--paper); box-shadow: 0 10px 30px rgba(60, 40, 10, .18);
  animation: rise .4s var(--ease) both;
}
.caption[hidden] { display: none; }
.caption__text { margin: 0; font-family: var(--display); font-size: 1.22rem; line-height: 1.6; text-align: start; }
.caption__wave { display: flex; gap: 3px; align-items: center; height: 22px; flex: none; }
.caption__wave i { width: 3px; height: 8px; border-radius: 2px; background: var(--rope); animation: wave 1s ease-in-out infinite; }
.caption__wave i:nth-child(2) { animation-delay: .15s; }
.caption__wave i:nth-child(3) { animation-delay: .3s; }
.caption.is-quiet .caption__wave i { animation: none; }
@keyframes wave { 50% { height: 22px; } }

/* on the stage the caption sits in the flow, between mirror and shelf */
.caption-slot { width: 100%; min-height: 86px; display: flex; align-items: center; }
.caption-slot .caption { position: static; translate: none; width: 100%; box-shadow: 0 6px 18px rgba(60, 40, 10, .12); }
.caption-slot .caption__text { font-size: 1.1rem; }
.shelf[hidden] { display: none; }

@media (max-height: 740px) {
  .mirror { width: min(56vw, 230px); }
  .product img { height: 96px; }
  .product--blue img { height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
