/* ============================================================
   MelaMix — melanin-forward, golden-hour editorial
   ============================================================ */

:root {
  --paper: #fff6ea;
  --paper-deep: #fceedd;
  --ink: #2e1b12;
  --cocoa: #5a3a28;
  --cocoa-soft: #8a6248;
  --caramel: #c97c3f;
  --gold: #e9a23b;
  --gold-soft: #f6d38f;
  --terracotta: #d26946;
  --blush: #f3c6a5;
  --deep-brown: #7a4a2b;
  --leaf: #4c6b4f;
  --card: #fffdf8;
  --ring: rgba(233, 162, 59, 0.55);
  --shadow: 0 18px 40px -18px rgba(70, 40, 18, 0.35);
  --radius: 22px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Avenir", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
}

/* ---------- atmosphere ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-1 {
  width: 44vw; height: 44vw;
  min-width: 340px; min-height: 340px;
  top: -14vw; right: -12vw;
  background: radial-gradient(circle at 35% 35%, rgba(233,162,59,0.45), rgba(210,105,70,0.28) 60%, transparent 75%);
}
.blob-2 {
  width: 36vw; height: 36vw;
  min-width: 280px; min-height: 280px;
  bottom: -12vw; left: -10vw;
  background: radial-gradient(circle at 60% 40%, rgba(122,74,43,0.30), rgba(243,198,165,0.35) 55%, transparent 78%);
  animation-delay: -12s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, 3vw) scale(1.12); }
}

/* ---------- header / footer ---------- */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.2rem, 5vw, 3.4rem) 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 6px;
  background:
    radial-gradient(circle at 32% 30%, #f6d38f 0 28%, transparent 30%),
    conic-gradient(from 200deg, #7a4a2b, #c97c3f, #e9a23b, #d26946, #7a4a2b);
  box-shadow: 0 4px 12px -4px rgba(70,40,18,.5);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.brand-name em {
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  color: var(--terracotta);
}
.brand-tag {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

/* ---------- cravings translator ---------- */

.cravings-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(255, 253, 248, 0.7);
  border: 1.5px solid rgba(210, 105, 70, 0.45);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.cravings-btn:hover { transform: translateY(-2px); background: #fffdf8; box-shadow: 0 8px 18px -10px rgba(210, 105, 70, 0.5); }
.cravings-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.cravings-btn[aria-expanded="true"] { background: var(--terracotta); color: #fff8ec; }

.cravings-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: clamp(1.2rem, 5vw, 3.4rem);
  width: min(400px, calc(100vw - 2rem));
  background: var(--card);
  border: 1.5px solid rgba(201, 124, 63, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1.3rem;
  z-index: 30;
  animation: panelPop 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
@keyframes panelPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cravings-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.cravings-row { display: flex; gap: 0.5rem; }
.cravings-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(90, 58, 40, 0.2);
  border-radius: 999px;
  padding: 0.6rem 1rem;
}
.cravings-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233, 162, 59, 0.25);
}
.cravings-go { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
.cravings-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.cravings-chip {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cocoa);
  background: var(--paper-deep);
  border: 1.5px solid rgba(90, 58, 40, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cravings-chip:hover { transform: translateY(-2px); border-color: var(--gold); }
.cravings-result { margin-top: 0.9rem; }
.cravings-result:empty { margin-top: 0; }
.swap-card {
  background: linear-gradient(120deg, rgba(76, 107, 79, 0.08), rgba(233, 162, 59, 0.1));
  border: 1.5px solid rgba(76, 107, 79, 0.28);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.swap-craving {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  margin-bottom: 0.3rem;
}
.swap-name { font-weight: 800; font-size: 1rem; color: var(--leaf); }
.swap-why { font-size: 0.86rem; color: var(--cocoa); margin-top: 0.25rem; }
.swap-miss { font-size: 0.9rem; color: var(--cocoa); }
.swap-badge {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-brown);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.site-footer {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding: 2.2rem clamp(1.2rem, 5vw, 3.4rem) 2.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cocoa-soft);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.footer-love {
  margin-top: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--caramel);
}

/* ---------- main shell ---------- */

main#app {
  position: relative;
  z-index: 5;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 1rem clamp(1.1rem, 4vw, 2.4rem) 2rem;
  flex: 1;
}

.step {
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.22s; }
.stagger > *:nth-child(5) { animation-delay: 0.28s; }
.stagger > *:nth-child(6) { animation-delay: 0.34s; }
.stagger > *:nth-child(7) { animation-delay: 0.40s; }
.stagger > *:nth-child(8) { animation-delay: 0.46s; }

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: clamp(2rem, 7vh, 4.5rem) 0 1rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1.5px solid rgba(210,105,70,0.45);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.6rem;
  background: rgba(255, 253, 248, 0.6);
}
.hero h1 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-weight: 560;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin: 0 auto;
}
.hero h1 .accent {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--caramel);
}
.hero-sub {
  max-width: 46ch;
  margin: 1.4rem auto 0;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--cocoa);
}
.hero-faces {
  display: flex;
  justify-content: center;
  gap: clamp(-1.2rem, -2vw, -0.6rem);
  margin: 2.4rem 0 2.2rem;
}
.hero-faces .face-chip {
  width: clamp(64px, 10vw, 96px);
  height: clamp(64px, 10vw, 96px);
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--card);
  margin-left: -14px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1.4);
}
.hero-faces .face-chip:first-child { margin-left: 0; }
.hero-faces .face-chip:hover { transform: translateY(-10px) rotate(-4deg); z-index: 2; }
.hero-faces .face-chip svg { width: 100%; height: 100%; display: block; }

/* ---------- buttons ---------- */

.btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 1rem 2.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: linear-gradient(115deg, var(--deep-brown), var(--caramel) 55%, var(--gold));
  color: #fff8ec;
  box-shadow: 0 14px 30px -12px rgba(122, 74, 43, 0.65);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 38px -12px rgba(122, 74, 43, 0.7); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-ghost {
  background: transparent;
  color: var(--cocoa);
  border: 1.5px solid rgba(90, 58, 40, 0.3);
}
.btn-ghost:hover { background: rgba(90, 58, 40, 0.07); }
.btn:focus-visible, .choice-card:focus-visible, .tone-card:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

.step-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

/* ---------- progress ---------- */

.progress {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.4rem 0 2rem;
}
.progress-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  white-space: nowrap;
}
.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(90, 58, 40, 0.14);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep-brown), var(--caramel), var(--gold));
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- question layout ---------- */

.q-head { text-align: center; margin-bottom: 2rem; }
.q-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.7rem;
}
.q-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50;
  font-weight: 600;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 24ch;
  margin: 0 auto;
}
.q-sub {
  color: var(--cocoa-soft);
  max-width: 52ch;
  margin: 0.8rem auto 0;
  font-size: 0.98rem;
}

/* ---------- concern cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.5rem 1.1rem 1.4rem;
  background: var(--card);
  border: 2px solid rgba(90, 58, 40, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
  box-shadow: 0 8px 22px -14px rgba(70, 40, 18, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.3), border-color 0.25s, box-shadow 0.3s;
}
.choice-card:hover { transform: translateY(-6px); border-color: rgba(201, 124, 63, 0.55); box-shadow: var(--shadow); }
.choice-card.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf8, #fdf3df);
  box-shadow: 0 0 0 4px rgba(233, 162, 59, 0.25), var(--shadow);
}
.choice-card.selected::after {
  content: "✓";
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #4a2c12;
  font-weight: 800;
  font-size: 0.9rem;
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.6) both;
}
@keyframes pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.choice-face {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.6rem;
  background: var(--paper-deep);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7);
}
.choice-face svg { width: 100%; height: 100%; display: block; }

.choice-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.choice-desc { font-size: 0.85rem; color: var(--cocoa-soft); }

/* pill-style options for text questions */
.option-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  max-width: 640px;
  margin: 0 auto;
}
.option-list.narrow { grid-template-columns: 1fr; max-width: 480px; }
.choice-card.pill {
  flex-direction: row;
  text-align: left;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.3rem;
}
.choice-card.pill .pill-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--paper-deep);
  border-radius: 14px;
}
.choice-card.pill .pill-text b { display: block; font-size: 1.02rem; }
.choice-card.pill .pill-text span { font-size: 0.82rem; color: var(--cocoa-soft); }

/* ---------- tone cards ---------- */

.tone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.tone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.2rem 0.8rem 1.1rem;
  background: var(--card);
  border: 2px solid rgba(90, 58, 40, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.3), border-color 0.25s, box-shadow 0.3s;
}
.tone-card:hover { transform: translateY(-5px); border-color: rgba(201, 124, 63, 0.55); box-shadow: var(--shadow); }
.tone-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 162, 59, 0.25), var(--shadow);
  background: linear-gradient(180deg, #fffdf8, #fdf3df);
}
.tone-swatch {
  width: 64px; height: 64px;
  border-radius: 50% 50% 50% 10px;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.14), 0 6px 14px -6px rgba(70,40,18,0.4);
}
.tone-name { font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.tone-poetic { font-size: 0.78rem; color: var(--cocoa-soft); font-style: italic; }

/* ---------- age input ---------- */

.age-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.age-input {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 600;
  width: 200px;
  text-align: center;
  color: var(--ink);
  background: var(--card);
  border: 2px solid rgba(90, 58, 40, 0.2);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.age-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 162, 59, 0.25);
}
.age-hint { font-size: 0.85rem; color: var(--cocoa-soft); }
.age-error { color: var(--terracotta); font-weight: 700; font-size: 0.9rem; min-height: 1.3em; }

/* ---------- results ---------- */

.results-hero {
  text-align: center;
  padding: 1.2rem 0 2rem;
}
.results-hero .face-chip {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--gold-soft);
  box-shadow: var(--shadow);
  background: var(--card);
}
.results-hero .face-chip svg { width: 100%; height: 100%; }
.blend-name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-style: italic;
  font-weight: 620;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--deep-brown);
  line-height: 1.08;
}
.blend-sub { color: var(--cocoa); max-width: 52ch; margin: 1rem auto 0; }

.melanin-note {
  max-width: 640px;
  margin: 1.6rem auto 0;
  background: linear-gradient(120deg, rgba(122,74,43,0.09), rgba(233,162,59,0.14));
  border: 1.5px solid rgba(201, 124, 63, 0.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--cocoa);
  text-align: left;
}
.melanin-note b { color: var(--deep-brown); }

.regimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
  align-items: start;
}

.regimen-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid rgba(90, 58, 40, 0.12);
  box-shadow: 0 10px 26px -16px rgba(70, 40, 18, 0.4);
  overflow: hidden;
}
.regimen-card header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.regimen-card.am header { background: linear-gradient(110deg, #fbe6bd, #f6d38f); color: #6a4415; }
.regimen-card.pm header { background: linear-gradient(110deg, #3b2417, #5a3a28); color: #f6d38f; }
.regimen-card.weekly header { background: linear-gradient(110deg, #e8d9c2, #d8c4a6); color: #4a3320; }
.regimen-card ol { list-style: none; padding: 0.6rem 1.3rem 1.2rem; counter-reset: rstep; }
.regimen-card ol li {
  counter-increment: rstep;
  display: flex;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(90, 58, 40, 0.15);
}
.regimen-card ol li:last-child { border-bottom: none; }
.regimen-card ol li::before {
  content: counter(rstep, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--caramel);
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.rstep-name { font-weight: 800; font-size: 0.98rem; }
.rstep-why { font-size: 0.85rem; color: var(--cocoa-soft); margin-top: 0.15rem; }

.section-title {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 3rem 0 0.4rem;
}
.section-sub {
  text-align: center;
  color: var(--cocoa-soft);
  font-size: 0.95rem;
  max-width: 56ch;
  margin: 0 auto 1.6rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--card);
  border: 1.5px solid rgba(90, 58, 40, 0.12);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 20px -14px rgba(70, 40, 18, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.3), box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-slot {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(210, 105, 70, 0.12);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.6rem;
}
.product-name { font-weight: 800; font-size: 1rem; }
.product-note { font-size: 0.84rem; color: var(--cocoa-soft); margin-top: 0.3rem; }
.product-badge {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-brown);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.diet-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}
.diet-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: linear-gradient(140deg, rgba(76, 107, 79, 0.08), rgba(233, 162, 59, 0.08));
  border: 1.5px solid rgba(76, 107, 79, 0.25);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}
.diet-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  background: rgba(255, 253, 248, 0.9);
  border-radius: 50% 50% 50% 12px;
  padding: 7px;
  box-shadow: inset 0 0 0 1.5px rgba(76, 107, 79, 0.18), 0 4px 10px -6px rgba(70, 40, 18, 0.3);
}
.diet-icon svg { width: 100%; height: 100%; display: block; }
.diet-card b { display: block; font-size: 0.98rem; color: var(--leaf); }
.diet-card > div > span { font-size: 0.86rem; color: var(--cocoa); }

.head-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: inline-block;
}
.head-icon svg { width: 100%; height: 100%; display: block; }

.title-icon {
  width: 34px; height: 34px;
  display: inline-block;
  vertical-align: -0.18em;
  margin-left: 0.45rem;
}
.title-icon svg { width: 100%; height: 100%; display: block; }

.disclaimer {
  max-width: 640px;
  margin: 2.6rem auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--cocoa-soft);
  background: rgba(90, 58, 40, 0.06);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
}

/* ---------- cravings teaser (homepage) ---------- */

.cravings-teaser {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 720px;
  margin: 2.6rem auto 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(120deg, rgba(210, 105, 70, 0.1), rgba(233, 162, 59, 0.14), rgba(76, 107, 79, 0.08));
  border: 1.5px solid rgba(210, 105, 70, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px -18px rgba(70, 40, 18, 0.4);
}
.teaser-emoji {
  font-size: 2.4rem;
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: rgba(255, 253, 248, 0.8);
  border-radius: 50% 50% 50% 12px;
  box-shadow: 0 6px 14px -8px rgba(210, 105, 70, 0.5);
}
.teaser-text { flex: 1; min-width: 0; }
.teaser-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.teaser-sub { font-size: 0.9rem; color: var(--cocoa); margin-top: 0.25rem; }
.teaser-demo {
  font-size: 0.78rem;
  color: var(--cocoa-soft);
  margin-top: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teaser-btn { flex-shrink: 0; padding: 0.8rem 1.5rem; font-size: 0.82rem; }

@media (max-width: 680px) {
  .cravings-teaser { flex-direction: column; text-align: center; }
  .teaser-text { width: 100%; }
  .teaser-btn { width: 100%; }
}

/* ---------- saved blends ---------- */

.saved-section {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1.5px dashed rgba(90, 58, 40, 0.2);
}
.saved-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  letter-spacing: -0.02em;
  text-align: center;
}
.saved-sub {
  text-align: center;
  color: var(--cocoa-soft);
  font-size: 0.9rem;
  margin: 0.4rem auto 1.4rem;
}
.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}
.saved-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--card);
  border: 1.5px solid rgba(90, 58, 40, 0.14);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 20px -14px rgba(70, 40, 18, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.3), box-shadow 0.3s;
}
.saved-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.saved-head { display: flex; align-items: center; gap: 0.8rem; }
.saved-face {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2.5px solid var(--gold-soft);
}
.saved-face svg { width: 100%; height: 100%; display: block; }
.saved-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 640;
  font-size: 1.05rem;
  color: var(--deep-brown);
  line-height: 1.2;
}
.saved-meta { font-size: 0.78rem; color: var(--cocoa-soft); margin-top: 0.15rem; }
.saved-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.saved-actions .mini-btn {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  border: 1.5px solid rgba(90, 58, 40, 0.25);
  background: transparent;
  color: var(--cocoa);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.saved-actions .mini-btn:hover { transform: translateY(-2px); }
.saved-actions .mini-btn.view { background: linear-gradient(115deg, var(--deep-brown), var(--caramel)); border-color: transparent; color: #fff8ec; }
.saved-actions .mini-btn.danger:hover, .saved-actions .mini-btn.confirm { border-color: var(--terracotta); color: var(--terracotta); background: rgba(210, 105, 70, 0.08); }
.saved-actions .mini-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ---------- founder story ---------- */

.story-section {
  max-width: 620px;
  margin: 3rem auto 0;
  padding-top: 2.4rem;
  border-top: 1.5px dashed rgba(90, 58, 40, 0.2);
  text-align: center;
}
.story-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.story-body {
  text-align: left;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--cocoa);
}
.story-body p + p { margin-top: 1.1rem; }
.story-body b { color: var(--ink); }
.story-body em { color: var(--deep-brown); }
.story-body .story-pull {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 90, "WONK" 1;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 1.65rem);
  line-height: 1.3;
  color: var(--caramel);
  text-align: center;
  padding: 0.6rem 0;
}
.story-sig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}
.story-face {
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2.5px solid var(--gold-soft);
  box-shadow: 0 6px 14px -8px rgba(70, 40, 18, 0.5);
}
.story-face svg { width: 100%; height: 100%; display: block; }
.story-sig > div { text-align: left; }
.sig-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 650;
  font-size: 1.3rem;
  color: var(--deep-brown);
}
.sig-role {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  margin-top: 0.15rem;
}

/* young-teen gentle banner */
.gentle-banner {
  max-width: 640px;
  margin: 1.4rem auto 0;
  background: rgba(76, 107, 79, 0.1);
  border: 1.5px solid rgba(76, 107, 79, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
  color: var(--leaf);
  text-align: left;
}

@media (max-width: 560px) {
  .brand-tag { display: none; }
  .hero-faces .face-chip { margin-left: -18px; }
  .step-actions { flex-direction: column-reverse; align-items: stretch; }
  .step-actions .btn { width: 100%; }
  .cravings-panel {
    position: fixed;
    top: 4.4rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
