/* === Homepage: living candle hero + Scent Finder === */
:root {
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --flame-hot: #fffbe6;
  --flame-mid: #ffd166;
  --flame-edge: #ff8a3d;
  --candle-dusk-a: #2a0a3d;
  --candle-dusk-b: #4c1d95;
  --candle-warm: rgba(255, 176, 74, 0.55);
}

.btn-note {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft-tint);
}
.btn-outline:hover .btn-note { background: rgba(255, 255, 255, 0.2); opacity: 1; }
[data-theme="dark"] .hero .btn-outline { color: var(--pink-200); border-color: var(--pink-400); }
[data-theme="dark"] .hero .btn-outline:hover { background: var(--pink-500); border-color: var(--pink-500); color: #fff; }

@media (max-width: 860px) {
  .hero-art.candle-stage { width: 100%; }
}

/* Warm wash over the whole hero once the candle is lit */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px 520px at 72% 52%, rgba(255, 170, 60, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 1.4s var(--ease-out-strong);
}
.hero.is-lit::after { opacity: 1; }
.hero > .container { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- Candle */
.candle-stage {
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 115%, rgba(236, 72, 153, 0.38), transparent 60%),
    linear-gradient(160deg, var(--candle-dusk-b), var(--candle-dusk-a));
  isolation: isolate;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out-strong);
}
.candle-stage:active { transform: scale(0.985); }
.candle-stage:focus-visible { outline: 3px solid var(--pink-400); outline-offset: 4px; }
.candle-stage::before { background: rgba(255, 255, 255, 0.08); }
.candle-stage::after  { background: rgba(236, 72, 153, 0.25); }

.candle-glow {
  position: absolute;
  left: var(--wick-x, 50%);
  top: calc(var(--wick-y, 40%) - 4%);
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.6);
  background: radial-gradient(circle, var(--candle-warm) 0%, rgba(255, 140, 60, 0.18) 30%, transparent 62%);
  opacity: 0;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.9s var(--ease-out-strong), transform 1.2s var(--ease-out-strong);
}
.candle-stage.is-lit .candle-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: glow-breathe 3.2s ease-in-out 1.2s infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.8; }
  70% { opacity: 0.94; }
}

/* The 3D jar fills the stage; the flame, smoke and glow follow its wick tip
   (--wick-x / --wick-y, set by home.js as the jar turns). */
.candle-3d { position: absolute; inset: 0; z-index: 0; }
.candle-fire {
  position: absolute;
  left: var(--wick-x, 50%);
  top: var(--wick-y, 40%);
  width: 0;
  height: 0;
  z-index: 2;
  transition: opacity 0.4s ease;
}
.candle-stage:not(.has-jar) .candle-fire { opacity: 0; }
.flame-wrap {
  position: absolute;
  left: -17px;
  bottom: -4px;
  width: 34px;
  height: 64px;
  transform-origin: 50% 100%;
  z-index: 2;
}
.flame {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 46% 46% / 72% 72% 28% 28%;
  background: radial-gradient(ellipse 60% 75% at 50% 78%, var(--flame-hot) 0%, var(--flame-mid) 38%, var(--flame-edge) 70%, rgba(255, 90, 40, 0) 100%);
  box-shadow: 0 0 22px 6px rgba(255, 190, 90, 0.55), 0 0 60px 20px rgba(255, 150, 60, 0.25);
  transform-origin: 50% 100%;
  opacity: 0;
  transform: scale(0.3, 0.15);
  transition: opacity 260ms var(--ease-out-strong), transform 520ms var(--ease-out-strong);
}
.flame-core {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 36%;
  height: 32%;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, rgba(90, 120, 255, 0.8), rgba(120, 140, 255, 0) 75%);
  mix-blend-mode: screen;
}
.candle-stage.is-lit .flame {
  opacity: 1;
  transform: none;
  animation: flicker 2.6s ease-in-out 0.6s infinite;
}
@keyframes flicker {
  0%   { transform: scale(1, 1) skewX(0deg); }
  12%  { transform: scale(0.96, 1.04) skewX(1.5deg); }
  27%  { transform: scale(1.03, 0.97) skewX(-1deg); }
  41%  { transform: scale(0.98, 1.06) skewX(2deg); }
  55%  { transform: scale(1.02, 0.95) skewX(-2deg); }
  71%  { transform: scale(0.97, 1.03) skewX(1deg); }
  86%  { transform: scale(1.01, 0.99) skewX(-0.5deg); }
  100% { transform: scale(1, 1) skewX(0deg); }
}

.smoke {
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 40px;
  height: 90px;
  transform: translateX(-50%);
  pointer-events: none;
}
.smoke span {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: rgba(230, 220, 240, 0.55);
  filter: blur(5px);
  opacity: 0;
}
.candle-stage.is-out:not(.is-unlit-initial) .smoke span { animation: smoke-rise 1.8s var(--ease-out-strong) forwards; }
.candle-stage.is-out .smoke span:nth-child(2) { animation-delay: 0.12s; }
.candle-stage.is-out .smoke span:nth-child(3) { animation-delay: 0.26s; }
@keyframes smoke-rise {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15%  { opacity: 0.8; }
  60%  { opacity: 0.35; transform: translate(-8px, -50px) scale(1.6); }
  100% { opacity: 0; transform: translate(6px, -90px) scale(2.4); }
}

.candle-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 240, 250, 0.88);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* ---------------------------------------------------------- Scent Finder */
.scent-section { padding-top: 16px; }
.scent-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  padding: 40px;
  border-radius: 28px;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(236, 72, 153, 0.10), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(139, 92, 246, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 90px;
}
#scent-finder { scroll-margin-top: 70px; }
.scent-intro .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pink-500);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.scent-progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.scent-progress li {
  height: 6px;
  width: 28px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.3s ease, width 0.3s var(--ease-out-strong);
}
.scent-progress li.done { background: var(--pink-400); }
.scent-progress li.current { background: linear-gradient(90deg, var(--pink-500), var(--purple-700)); width: 48px; }

.scent-stage {
  min-height: 340px;
  transition: opacity 170ms ease, transform 170ms var(--ease-out-strong);
}
.scent-stage.is-leaving { opacity: 0; transform: translateX(-14px); }
.scent-stage.is-leaving[data-dir="back"] { transform: translateX(14px); }
.scent-stage.is-entering { opacity: 0; transform: translateX(14px); transition: none; }
.scent-stage.is-entering[data-dir="back"] { transform: translateX(-14px); }

.scent-step-head { display: flex; justify-content: space-between; align-items: center; min-height: 32px; margin-bottom: 4px; }
.scent-count { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.scent-back {
  background: none; border: none; cursor: pointer; font: inherit; font-weight: 700;
  color: var(--purple-700); padding: 6px 10px; border-radius: 999px;
}
[data-theme="dark"] .scent-back { color: var(--pink-300); }
.scent-back:hover { background: var(--soft-tint); }
.scent-step h3 { font-size: 1.5rem; margin: 4px 0 18px; }

.scent-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scent-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.scent-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 18px 16px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 140ms var(--ease-out-strong), box-shadow 0.15s ease;
}
.scent-option svg {
  width: 30px; height: 30px; margin-bottom: 6px;
  fill: none; stroke: var(--pink-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.scent-option-label { font-weight: 700; font-size: 1.02rem; color: var(--heading); }
.scent-option-sub { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.35; }
.scent-option:active { transform: scale(0.97); }
.scent-option.selected { border-color: var(--pink-500); background: var(--soft-tint); }
.scent-option:focus-visible { outline: 3px solid var(--pink-400); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .scent-option:hover { border-color: var(--pink-300); box-shadow: var(--shadow); transform: translateY(-2px); }
}

.scent-result { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.scent-result-art {
  aspect-ratio: 0.8;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--glow) 45%, transparent), transparent 65%),
    linear-gradient(160deg, var(--candle-dusk-b), var(--candle-dusk-a));
  overflow: hidden;
}
.scent-result-name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 4px 0 6px;
  background: linear-gradient(135deg, var(--glow), var(--purple-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .scent-result-name { background-image: linear-gradient(135deg, var(--glow), var(--pink-200)); }
.scent-result-tag { font-size: 1.02rem; margin-bottom: 14px; }
.scent-notes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 16px; }
.scent-notes li {
  padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  background: color-mix(in srgb, var(--glow) 14%, transparent);
  color: var(--heading);
  border: 1px solid color-mix(in srgb, var(--glow) 35%, transparent);
}
.scent-tip { font-size: 0.92rem; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line); }
.scent-matches:empty { display: none; }
.scent-matches { margin-bottom: 14px; }
.scent-match-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.scent-match {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
  font-weight: 700; font-size: 0.88rem; color: var(--heading);
}
.scent-match img, .scent-match-ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--pdp-art-bg); }
.scent-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.scent-claim { box-shadow: 0 10px 30px -8px rgba(236, 72, 153, 0.6); }
.scent-fine { font-size: 0.8rem; margin: 10px 0 0; }

/* ------------------------------------------------------- Empty-stock card */
.empty-drop {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.empty-drop h3 { margin-bottom: 6px; }
.empty-drop p { margin: 0; }
.empty-drop-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; margin-left: auto; }
[data-theme="dark"] .empty-drop .btn-outline { color: var(--pink-200); border-color: var(--pink-400); }
.empty-drop-flame {
  flex-shrink: 0;
  width: 28px; height: 46px;
  border-radius: 50% 50% 46% 46% / 72% 72% 28% 28%;
  background: radial-gradient(ellipse 60% 75% at 50% 78%, var(--flame-hot), var(--flame-mid) 40%, var(--flame-edge) 75%, transparent);
  box-shadow: 0 0 22px 8px rgba(255, 190, 90, 0.4);
  transform-origin: 50% 100%;
  animation: flicker 2.4s ease-in-out infinite;
}

@media (max-width: 860px) {
  .scent-card { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .scent-stage { min-height: 0; }
  .scent-result { grid-template-columns: 1fr; }
  .scent-result-art { max-width: 104px; }
  .empty-drop { flex-direction: column; text-align: center; }
  .empty-drop-actions { margin-left: 0; justify-content: center; }
}
@media (max-width: 520px) {
  .scent-options.cols-3 { grid-template-columns: 1fr; }
  .scent-option { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .smoke { display: none; }
  .candle-stage.is-lit .flame, .candle-stage.is-lit .candle-glow,
  .empty-drop-flame { animation: none !important; }
}

/* ------------------------------------------------- Pour story (dusk band) */
.story {
  --story-ink: #fdf2f8;
  --story-ink-soft: rgba(243, 222, 245, 0.78);
  --story-line: rgba(255, 255, 255, 0.14);
  --story-amber: #ffc56b;
  position: relative;
  margin: 48px 0;
  padding: 88px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(236, 72, 153, 0.28), transparent 65%),
    radial-gradient(800px 520px at 0% 100%, rgba(139, 92, 246, 0.30), transparent 65%),
    linear-gradient(170deg, #2a0a3d 0%, #1a0630 55%, #2e0f4f 100%);
}
.story-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1100px;
  max-width: 160%;
  aspect-ratio: 2.2;
  transform: translate(-50%, -55%);
  background: radial-gradient(ellipse, rgba(255, 176, 74, 0.30), transparent 65%);
  pointer-events: none;
}
.story > .container { position: relative; }
.story-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.story-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--story-amber);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.story-head h2 { color: var(--story-ink); font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.08; }
.story-head h2 span {
  background: linear-gradient(120deg, #ffd166, #ff8fc7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story-head p { color: var(--story-ink-soft); font-size: 1.08rem; margin: 0; }

.story-steps {
  --rail-x: 50%;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 940px;
  display: grid;
  gap: 28px;
}
.story-rail {
  position: absolute;
  left: var(--rail-x);
  top: 28px;
  bottom: 28px;
  width: 4px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--story-line);
  overflow: hidden;
}
.story-rail i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffd166, #ff8a3d 50%, #ec4899);
  transform: scaleY(0);
  transform-origin: 50% 0;
  will-change: transform;
}
.story-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 28px;
  align-items: center;
}
.story-node {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a0f47;
  border: 2px solid var(--story-line);
  color: rgba(243, 222, 245, 0.55);
  transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.6s ease, transform 0.5s var(--ease-out-strong);
}
.story-node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.story-card {
  grid-column: 3;
  grid-row: 1;
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--story-line);
  backdrop-filter: blur(6px);
  opacity: 0.35;
  transform: translateX(22px);
  transition: opacity 0.6s var(--ease-out-strong), transform 0.7s var(--ease-out-strong), border-color 0.5s ease;
}
.story-step:nth-child(odd) .story-card { grid-column: 1; text-align: right; transform: translateX(-22px); }
.story-num { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--story-amber); }
.story-card h3 { color: var(--story-ink); font-size: 1.6rem; margin: 6px 0 8px; }
.story-card p { color: var(--story-ink-soft); margin: 0; }

.story-step.is-on .story-node {
  background: linear-gradient(135deg, #ffd166, #ff8a3d);
  border-color: #ffe2a8;
  color: #3b0764;
  box-shadow: 0 0 0 8px rgba(255, 176, 74, 0.14), 0 0 36px 6px rgba(255, 160, 70, 0.45);
  transform: scale(1.06);
}
.story-step.is-on .story-card,
.story-step.is-on:nth-child(odd) .story-card { opacity: 1; transform: none; border-color: rgba(255, 210, 150, 0.32); }

/* ------------------------------------------------------ Review spotlight */
.spotlight {
  position: relative;
  max-width: 860px;
  margin: 72px auto 0;
  padding: 44px 48px 40px;
  border-radius: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--story-line);
  backdrop-filter: blur(8px);
}
.spotlight::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: rgba(255, 197, 107, 0.28);
  pointer-events: none;
}
.spotlight-meta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.spotlight-stars { color: #ffc56b; font-size: 1.25rem; letter-spacing: 0.14em; }
.spotlight-avg { color: var(--story-ink-soft); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.spotlight-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.42;
  color: var(--story-ink);
  transition: opacity 260ms ease, filter 260ms ease, transform 320ms var(--ease-out-strong);
}
.spotlight-by { margin-top: 18px; color: var(--story-amber); font-weight: 700; transition: opacity 260ms ease; }
.spotlight.is-swapping .spotlight-quote { opacity: 0; filter: blur(4px); transform: translateY(6px); }
.spotlight.is-swapping .spotlight-by { opacity: 0; }
.spotlight-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.spotlight-dots:empty { display: none; }
.spotlight-dots button {
  width: 44px; height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.spotlight-dots button::before {
  content: '';
  width: 22px; height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, width 0.3s var(--ease-out-strong);
}
.spotlight-dots button[aria-current="true"]::before { background: var(--story-amber); width: 36px; }
.spotlight-dots button:focus-visible { outline: 2px solid var(--story-amber); outline-offset: 2px; border-radius: 8px; }
.spotlight-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.spotlight .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.spotlight .btn-outline:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

@media (max-width: 760px) {
  .story { padding: 64px 0 56px; margin: 32px 0; }
  .story-head { margin-bottom: 40px; }
  .story-steps { --rail-x: 24px; gap: 18px; }
  .story-step { grid-template-columns: 48px 1fr; gap: 16px; }
  .story-node { grid-column: 1; width: 48px; height: 48px; }
  .story-node svg { width: 22px; height: 22px; }
  .story-card,
  .story-step:nth-child(odd) .story-card { grid-column: 2; text-align: left; transform: translateX(16px); padding: 18px 20px; }
  .story-card h3 { font-size: 1.3rem; }
  .spotlight { padding: 40px 22px 28px; margin-top: 48px; border-radius: 24px; }
  .spotlight::before { left: 14px; font-size: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .story-card, .story-step:nth-child(odd) .story-card { opacity: 1; transform: none; transition: none; }
  .story-node, .spotlight-quote { transition: none; }
}

/* ------------------------------------------------ Member rewards (perks) */
.perks {
  --tier-a: #f59e0b;
  --tier-b: #b45309;
  --tier-ink: #fff7e6;
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  border-radius: 32px;
  background:
    radial-gradient(560px 320px at 100% 0%, color-mix(in srgb, var(--tier-a) 20%, transparent), transparent 70%),
    radial-gradient(480px 300px at 0% 100%, rgba(236, 72, 153, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.perks[data-tier="silver"] { --tier-a: #c7b8f5; --tier-b: #6d5bb8; --tier-ink: #fbf8ff; }
.perks[data-tier="gold"]   { --tier-a: #fcd34d; --tier-b: #d97706; --tier-ink: #fffaf0; }

.perks-copy h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; margin: 14px 0 10px; }
.perks-copy h2 > span {
  background: linear-gradient(135deg, var(--pink-500), var(--purple-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
[data-theme="dark"] .perks-copy h2 > span { background-image: linear-gradient(135deg, var(--pink-300), var(--purple-300)); }
.perks-copy > p { max-width: 520px; margin-bottom: 22px; }

.perks-sim label { display: block; margin-bottom: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft-tint-text); }
.perks-range-row { display: flex; align-items: center; gap: 16px; }
.perks-range-row output {
  flex-shrink: 0;
  min-width: 3.4em;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
#perks-range {
  --p: 20%;
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
#perks-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-500), var(--tier-a) var(--p), var(--line) var(--p));
}
#perks-range::-moz-range-track { height: 10px; border-radius: 999px; background: var(--line); }
#perks-range::-moz-range-progress { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--pink-500), var(--tier-a)); }
#perks-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  margin-top: -9px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-700));
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.45);
  transition: transform 140ms var(--ease-out-strong);
}
#perks-range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-700));
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.45);
}
#perks-range:active::-webkit-slider-thumb { transform: scale(1.12); }
#perks-range:focus-visible { outline: 3px solid var(--pink-400); outline-offset: 4px; border-radius: 999px; }

.perks-tiers { list-style: none; display: grid; gap: 8px; padding: 0; margin: 18px 0 24px; }
.perks-tiers li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  opacity: 0.5;
  transition: opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.perks-tiers i {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink-soft);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.perks-tiers b { display: block; color: var(--heading); font-size: 0.98rem; }
.perks-tiers small { margin-left: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.perks-tiers span { font-size: 0.88rem; color: var(--ink-soft); }
.perks-tiers li.is-on { opacity: 1; border-color: color-mix(in srgb, var(--pink-500) 45%, var(--line)); background: var(--soft-tint); }
.perks-tiers li.is-on i { background: var(--pink-500); border-color: var(--pink-500); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.2); }
.perks-tiers li.is-current { border-color: var(--pink-500); box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.16); }

.perks-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.perks-cta .btn { min-height: 50px; padding: 0 26px; }
.perks-fine { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* The card: tilts toward the cursor and changes metal as the tier climbs */
.perks-art { display: grid; place-items: center; perspective: 900px; }
.member-card {
  --rx: 6deg;
  --ry: -14deg;
  --shine-x: 30%;
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1.586;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  border-radius: 22px;
  color: var(--tier-ink);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tier-a) 88%, #fff), transparent 60%),
    linear-gradient(135deg, var(--tier-b), #7c2d92 62%, #3b0764);
  box-shadow:
    0 30px 60px -24px rgba(43, 11, 62, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 500ms var(--ease-out-strong);
  overflow: hidden;
  will-change: transform;
}
.member-card.is-tracking { transition: transform 90ms linear; }
.mc-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.34) 48%, transparent 62%);
  transform: translateX(calc(var(--shine-x) - 50%));
  transition: transform 500ms var(--ease-out-strong);
  pointer-events: none;
}
.member-card.is-tracking .mc-shine { transition: none; }
.mc-top { position: relative; display: flex; align-items: center; gap: 10px; }
.mc-top img { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); padding: 3px; }
.mc-top span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.mc-top small { display: block; font-family: var(--font); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.mc-top em {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2a0a3d;
  background: color-mix(in srgb, var(--tier-a) 70%, #fff);
}
.mc-points { position: relative; display: flex; align-items: baseline; gap: 8px; }
.mc-points strong { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(43, 11, 62, 0.35); }
.mc-points span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.mc-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mc-bottom > span:first-child { opacity: 0.8; }
.mc-coupon { padding: 5px 10px; border-radius: 8px; border: 1.5px dashed rgba(255, 255, 255, 0.7); letter-spacing: 0.06em; white-space: nowrap; }

@media (max-width: 860px) {
  .perks { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; border-radius: 24px; }
  .perks-art { order: -1; }
  .member-card { --rx: 4deg; --ry: -8deg; width: min(100%, 330px); padding: 18px 20px; }
}
@media (max-width: 400px) {
  .mc-bottom { font-size: 0.68rem; letter-spacing: 0.06em; }
  .perks-tiers small { display: block; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .member-card, .mc-shine, .perks-tiers li { transition: none; }
  .member-card { --rx: 0deg; --ry: 0deg; }
}

/* Quiz result: recommended scents link to the product page */
.scent-notes li a { color: inherit; text-decoration: none; }
.scent-notes li a:hover { text-decoration: underline; }
