/* ════════════════════════════════════════════
   BASE RESET & VARIABLES
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #faf6f0;
  --cream2:   #fdf8f2;
  --warm:     #fff0d6;
  --border:   #e8ddd0;
  --shadow:   0 8px 36px rgba(0,0,0,0.09);
  --shadow-sm:0 4px 18px rgba(0,0,0,0.07);
  --radius:   26px;
  --radius-sm:14px;

  /* nutrient palette */
  --cal:   #f5a623;
  --fat:   #e87070;
  --carb:  #6b9fd4;
  --prot:  #6abf6a;
  --iron:  #9b8ec4;
  --vitc:  #f5d05e;

  /* category palette */
  --c-fruits:  #6abf6a;
  --c-veg:     #e8c040;
  --c-dairy:   #6b9fd4;
  --c-grains:  #9b8ec4;
  --c-protein: #e85d5d;
  --c-snacks:  #f5a623;
  --c-other:   #a08060;
  --c-drinks:  #40c0c0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', Arial, sans-serif;
  background: var(--cream);
  color: #2f2f2f;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════
   FLOATING FRUIT BACKGROUND
════════════════════════════════════════════ */
#fruit-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* All sections sit above the fruit layer but are transparent so fruits
   show through gaps and padding — cards/tiles keep their opaque backgrounds */
section {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

#fruit-bg span {
  position: absolute;
  left: var(--x);
  top: 110vh;
  font-size: calc(1.6rem * var(--s));
  opacity: 0;
  animation: fruitFloat var(--dur) linear var(--d) infinite;
  user-select: none;
}

@keyframes fruitFloat {
  0%   { transform: translateY(0) translateX(0) rotate(0deg);          opacity: 0; }
  5%   { opacity: 0.22; }
  50%  { transform: translateY(-110vh) translateX(28px) rotate(14deg); opacity: 0.22; }
  95%  { opacity: 0.22; }
  100% { transform: translateY(-230vh) translateX(-18px) rotate(-10deg); opacity: 0; }
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
}

/* ════════════════════════════════════════════
   SCROLL ANIMATIONS — entry states (hidden)
════════════════════════════════════════════ */
.slide-left, .slide-right, .slide-up, .pop-in, .fade-up {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-left  { transform: translateX(-70px); }
.slide-right { transform: translateX(70px); }
.slide-up    { transform: translateY(45px); }
.fade-up     { transform: translateY(20px); }
.pop-in      { transform: scale(0.78); }

/* Visible states */
.slide-left.visible, .slide-right.visible, .slide-up.visible,
.fade-up.visible { opacity: 1; transform: translate(0); }
.pop-in.visible  { opacity: 1; transform: scale(1);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34,1.56,0.64,1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }
.delay-4 { transition-delay: 0.46s; }
.delay-5 { transition-delay: 0.58s; }

/* ════════════════════════════════════════════
   SHARED LAYOUT
════════════════════════════════════════════ */
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 56px 6%; }

.section-head {
  margin-bottom: 38px;
  position: relative;
  padding-right: 185px;
}
.centered-head { text-align: center; padding-right: 0; padding-bottom: 44px; }

.section-title  { font-size: 2.5rem; line-height: 1.15; margin-bottom: 10px; }
.section-sub    { font-size: 1.1rem; color: #555; line-height: 1.65; margin-bottom: 8px; }
.section-sub-sm { font-size: 1rem; color: #555; line-height: 1.65; margin-bottom: 18px; }
.section-body-text { font-size: 1rem; color: #555; margin-bottom: 12px; }

.green-text { color: #3a9a4a; }
.red-text   { color: #d04040; }
.pink-text  { color: #c04070; }
.vs-word    { color: #bbb; font-size: 1.6rem; }

mark { background: #ffe080; padding: 1px 5px; border-radius: 4px; }

/* ════════════════════════════════════════════
   SHARED COMPONENTS
════════════════════════════════════════════ */
.tip-float {
  position: absolute;
  top: 0; right: 0;
  background: #fffbef;
  border: 2.5px dashed #e8d030;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip-float-inline { position: static; display: inline-flex; margin: 12px auto 0; }

.bulb { font-size: 1.3rem; }
.big-bulb { font-size: 2rem; display: block; margin-bottom: 6px; }
.star-icon { font-size: 1.4rem; }

.chart-box {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.chart-subtitle {
  display: inline-block;
  background: #eef8ee;
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2a6a3a;
  margin-bottom: 16px;
}

.callout-strip {
  background: #fdf4dc;
  border: 2px solid #e8cc80;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  margin-top: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.callout-strip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.callout-strip.yellow-strip { background: #fffbef; border-color: #f0d840; }

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 52px;
}
.side-card {
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  transition: transform 0.25s ease;
}
.side-card:hover { transform: translateY(-4px); }
.tip-card  { background: #fffbef; border: 2px solid #f0d840; }
.blue-card { background: #eef4ff; border: 2px solid #a8c8f0; }
.grey-card { background: #f5f0ec; border: 2px solid var(--border); }
.blue-card h4, .grey-card h4 { font-size: 0.9rem; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px dashed currentColor; opacity: 0.7; }

.scatter-insights-card { background: #fdfaf5; border: 2px solid #e8ddd0; }
.scatter-insights-card h4 { font-size: 0.9rem; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px dashed #d0c8b8; opacity: 0.8; }
.scatter-insight-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.scatter-insight-list li { font-size: 0.8rem; line-height: 1.4; color: #444; }
.scatter-insight-list li strong { display: block; font-size: 0.82rem; color: #222; margin-bottom: 2px; }
.insight-arrow { display: block; color: #888; font-size: 0.75rem; padding-left: 10px; border-left: 2px solid #ddd; margin-top: 2px; }
.how-item { margin: 5px 0; font-size: 0.82rem; }
.side-hint { font-size: 0.78rem; color: #aaa; margin-top: 6px; }

/* ════════════════════════════════════════════
   SECTION 1 · HERO
════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(140deg, rgba(255,248,239,0.92) 0%, rgba(255,240,214,0.92) 55%, rgba(253,228,184,0.92) 100%);
  padding: 64px 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* subtle background food pattern */
.hero-section::before {
  content: '🍎 🥑 🍟 🥗 🧁 🥤 🍊 🥦 🍫';
  position: absolute;
  top: -10px; left: 0; right: 0;
  font-size: 1.8rem;
  letter-spacing: 2.5rem;
  opacity: 0.07;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  animation: scrollEmoji 20s linear infinite;
}

@keyframes scrollEmoji { from { transform: translateX(0); } to { transform: translateX(-40%); } }

.hero-inner { display: flex; align-items: center; gap: 64px; margin-bottom: 44px; }
.hero-text { flex: 1; }
.hero-visual { flex-shrink: 0; }
.hero-img { width: clamp(480px, 48vw, 780px); max-width: 100%; border-radius: 24px; display: block; filter: drop-shadow(0 12px 32px rgba(0,0,0,0.15)); }

.hero-tag {
  display: inline-block;
  background: #45ab16;
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.hero-title    { font-family: 'Fredoka', cursive; font-size: 3.8rem; line-height: 1.15; margin-bottom: 18px; font-weight: 800; }
.hero-subtitle { font-size: 1.2rem; color: #666; font-style: italic; margin-bottom: 14px; line-height: 1.5; }
.hero-body     { font-size: 1.05rem; color: #555; line-height: 1.75; max-width: 520px; margin-bottom: 30px; }

.scroll-cue { display: flex; flex-direction: column; gap: 8px; color: #888; font-size: 1.15rem; font-weight: 700; }
.bounce-arrow { font-size: 2.4rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

.hero-legend-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: white;
  padding: 14px 26px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.legend-pill { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; }
.dot { width: 20px; height: 20px; border-radius: 5px; border: 2px solid rgba(0,0,0,0.08); }
.dot-cal  { background: repeating-linear-gradient(45deg, var(--cal) 0, var(--cal) 4px, #fdd08a 4px, #fdd08a 8px); }
.dot-fat  { background: repeating-linear-gradient(45deg, var(--fat) 0, var(--fat) 4px, #f5a8a8 4px, #f5a8a8 8px); }
.dot-carb { background: repeating-linear-gradient(45deg, var(--carb) 0, var(--carb) 4px, #a8c8e8 4px, #a8c8e8 8px); }
.legend-note { display:flex; align-items:center; gap:6px; font-size:0.8rem; color:#888; margin-left:auto; }

/* ════════════════════════════════════════════
   SECTION 2 · HOOK CARDS
════════════════════════════════════════════ */
.hook-section { background: #fdf8f0; }

.hook-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 24px; }

.hook-card {
  flex: 1;
  min-width: 240px;
  background: white;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border: 2.5px solid #f0e4d8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.hook-card:hover { transform: translateY(-14px) rotate(-1deg); box-shadow: 0 22px 52px rgba(0,0,0,0.16); }
.hook-card-red   { border-color: #f0d0d0; }
.hook-card-red:hover { transform: translateY(-14px) rotate(1deg); }

/* food illustration images */
.food-illo {
  width: 180px;
  height: 145px;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  transition: transform 0.35s ease;
}
.hook-card:hover .food-illo { transform: scale(1.08); }

.food-badge {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 999px;
  text-align: center;
  letter-spacing: 0.02em;
}
.green-badge { background: #e8f5e8; color: #2a7a3a; border: 2px solid #90d890; }
.red-badge   { background: #fde8e8; color: #b03030; border: 2px solid #f09090; }

.food-tag { font-size: 0.85rem; color: #666; }
.green-tag { color: #3a9a4a; }
.red-tag   { color: #b03030; }

/* nutrient bar rows */
.nutrient-list { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.n-row { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.n-icon { font-size: 1rem; flex-shrink: 0; }
.n-name { width: 52px; font-weight: 700; color: #555; flex-shrink: 0; font-size: 0.8rem; }
.n-track { flex: 1; height: 13px; background: #f0ece8; border-radius: 999px; overflow: hidden; }
.n-bar { height: 100%; border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(0.25,1,0.5,1); }

/* hatched bar fills */
.bar-cal  { background: repeating-linear-gradient(45deg, var(--cal)  0, var(--cal)  4px, #fdd08a 4px, #fdd08a 8px); }
.bar-fat  { background: repeating-linear-gradient(45deg, var(--fat)  0, var(--fat)  4px, #f5a8a8 4px, #f5a8a8 8px); }
.bar-carb { background: repeating-linear-gradient(45deg, var(--carb) 0, var(--carb) 4px, #a8c8e8 4px, #a8c8e8 8px); }
.bar-prot { background: repeating-linear-gradient(45deg, var(--prot) 0, var(--prot) 4px, #a8e0a8 4px, #a8e0a8 8px); }
.bar-iron { background: repeating-linear-gradient(45deg, var(--iron) 0, var(--iron) 4px, #c8b8e8 4px, #c8b8e8 8px); }
.bar-vitc { background: repeating-linear-gradient(45deg, var(--vitc) 0, var(--vitc) 4px, #fae898 4px, #fae898 8px); }

.n-val { font-weight: 800; font-size: 0.82rem; color: #333; min-width: 38px; text-align: right; }

.food-note {
  font-size: 0.82rem; color: #666;
  background: #f8f3ee; border: 1.5px solid #e8ddd0;
  border-radius: var(--radius-sm); padding: 9px 13px;
  text-align: center; line-height: 1.45; width: 100%;
}
.food-note-red { background: #fdf4f4; border-color: #f0c0c0; }

/* Hover reveal panel */
.hover-reveal {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s ease;
}
.hook-card:hover .hover-reveal { max-height: 110px; }
.hover-reveal-inner {
  padding: 12px 2px 4px;
  border-top: 2px dashed #f0e8dc;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.hover-reveal-red .hover-reveal-inner { border-top-color: #f0d0d0; }
.hover-reveal-inner span { font-size: 1.2rem; flex-shrink: 0; }

/* ════════════════════════════════════════════
   SECTION 3 · SCATTER
════════════════════════════════════════════ */
.scatter-section { background: white; }
.scatter-layout  { display: flex; gap: 28px; align-items: flex-start; }
.scatter-main    { flex: 1; min-width: 0; }

.cat-legend {
  display: flex; flex-wrap: wrap; gap: 12px;
  background: #f8f4f0; padding: 12px 18px;
  border-radius: 14px; margin-bottom: 16px;
  font-size: 0.84rem; font-weight: 700;
}
.cat-legend-label { color: #666; font-weight: 800; letter-spacing: 0.04em; }
.cl-item { display: flex; align-items: center; gap: 5px; }
.cl-dot  { width: 12px; height: 12px; border-radius: 50%; }

/* ════════════════════════════════════════════
   SECTION 4 · CATEGORIES
════════════════════════════════════════════ */
.categories-section { background: var(--cream2); }
.categories-layout  { display: flex; gap: 28px; align-items: flex-start; }
.categories-main    { flex: 1; min-width: 0; }

.big-badge {
  display: inline-block;
  background: #2a7a3a; color: white;
  border-radius: 10px; padding: 5px 14px;
  font-size: 0.82rem; font-weight: 800;
  letter-spacing: 0.04em; margin-bottom: 10px;
}
.choose-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; color: #666; margin-bottom: 8px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.n-btn {
  border: 2px solid var(--border);
  background: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.n-btn:hover { background: #f0e8dc; border-color: #c8b8a0; transform: translateY(-3px) scale(1.04); }
.active-n    { background: #e8f5e8 !important; border-color: #50aa60 !important; color: #2a6a3a !important; }

.insight-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.insight-list li { font-size: 0.84rem; line-height: 1.45; padding-left: 14px; position: relative; }
.insight-list li::before { content:"•"; position:absolute; left:0; }
.ins-orange { color:#c86010; font-weight:700; }
.ins-green  { color:#2a7a3a; font-weight:700; }
.ins-blue   { color:#205090; font-weight:700; }
.ins-purple { color:#503090; font-weight:700; }
.ins-teal   { color:#1a7a7a; font-weight:700; }

/* ════════════════════════════════════════════
   SECTION 5 · EXPLORE FOODS
════════════════════════════════════════════ */
.explore-section { background: white; }
.explore-layout  { display: flex; gap: 20px; align-items: flex-start; }
.col-label { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.06em; color: #666; margin-bottom: 12px; }

/* Category filter column */
.explore-cats { width: 180px; flex-shrink: 0; }
.cat-filter-list { display: flex; flex-direction: column; gap: 6px; }
.cf-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 13px;
  border: 2px solid var(--border); background: white;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  transition: all 0.2s; width: 100%; text-align: left;
}
.cf-btn:hover  { background: #f0e8dc; transform: translateX(4px); }
.cf-btn.active { background: #e8f5e8; border-color: #50aa60; color: #2a6a3a; }
.cf-count { background: #f0e8dc; border-radius: 999px; padding: 1px 7px; font-size: 0.72rem; font-weight: 800; }

/* Food list column */
.explore-foods-col { width: 220px; flex-shrink: 0; }
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: #f8f4f0; border: 2px solid var(--border);
  border-radius: 13px; padding: 7px 12px; margin-bottom: 10px;
}
.search-box input {
  border: none; background: transparent;
  font-family: 'Nunito', sans-serif; font-size: 0.85rem;
  outline: none; flex: 1; color: #333;
}
.food-list-panel {
  max-height: 420px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 5px; padding-right: 2px;
}
.food-list-panel::-webkit-scrollbar { width: 6px; }
.food-list-panel::-webkit-scrollbar-track { background: #f0ece8; border-radius: 3px; }
.food-list-panel::-webkit-scrollbar-thumb { background: #c8b8a0; border-radius: 3px; }
.fl-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 11px;
  border: 1.5px solid #e8e0d8; background: white;
  cursor: pointer; font-size: 0.82rem; font-weight: 600;
  transition: all 0.15s; gap: 6px;
  position: relative; overflow: visible;
}
.fl-item:hover   { background: #f8f4f0; transform: translateX(3px); }
.fl-item.selected{ background: #e8f5e8; border-color: #50aa60; color: #2a6a3a; }
.fl-kcal { font-size: 0.72rem; color: #999; white-space: nowrap; }

/* Hover peek card on food list items */
.fl-peek {
  display: none;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: white;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  border: 1.5px solid #e8e0d8;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  min-width: 155px;
  color: #444;
}
.fl-peek::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right-color: #e8e0d8;
}
.fl-peek::after {
  content: '';
  position: absolute;
  right: calc(100% - 1px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: white;
}
.fl-item:hover .fl-peek {
  display: block;
  animation: peekIn 0.2s ease forwards;
}
.fp-row { margin: 3px 0; color: #555; }
.fp-row strong { color: #2f2f2f; }
@keyframes peekIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-8px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Detail column */
.explore-detail { flex: 1; min-width: 0; }
.detail-card {
  background: white; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border: 2px solid #f0e4d8;
}
.detail-top {
  display: flex; gap: 18px; align-items: flex-start;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 2.5px dashed #f0e8dc;
}
.detail-emoji-box {
  width: 90px; height: 90px; background: #f8f4f0;
  border-radius: 18px; display: flex; align-items: center;
  justify-content: center; font-size: 2.8rem; flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.detail-emoji-box:hover { transform: scale(1.12) rotate(-5deg); }
.detail-name { font-family: 'Fredoka', sans-serif; font-size: 1.6rem; margin-bottom: 4px; line-height: 1; }
.detail-kcal { display:inline-block; background:#e8f5e8; color:#2a6a3a; border-radius:999px; padding:3px 12px; font-weight:800; font-size:0.95rem; }
.detail-unit { font-size:0.75rem; color:#aaa; margin: 3px 0 6px; }
.detail-desc { font-size:0.88rem; color:#666; line-height:1.5; }

.breakdown-section { margin-top: 4px; }
.breakdown-head { display:flex; justify-content:space-between; font-weight:900; font-size:0.8rem; letter-spacing:0.04em; color:#555; margin-bottom:14px; }
.dv-label { font-size:0.75rem; color:#aaa; }
.bd-row { display:flex; align-items:center; gap:9px; margin-bottom:9px; font-size:0.88rem; }
.bd-icon { font-size:1.1rem; flex-shrink:0; }
.bd-name { width:110px; font-weight:700; flex-shrink:0; }
.bd-track { flex:1; height:14px; background:#f0ece8; border-radius:999px; overflow:hidden; }
.bd-fill  { height:100%; border-radius:999px; width:0; transition: width 1s ease; }
.bd-val   { width:65px; font-weight:800; text-align:right; font-size:0.82rem; }
.bd-dv    { width:36px; text-align:right; font-size:0.8rem; color:#aaa; font-weight:700; }
.dv-note  { font-size:0.74rem; color:#aaa; margin-top:10px; }

.dyk-box {
  margin-top: 18px; background: #eef4ff; border: 1.5px solid #a8c8f0;
  border-radius: var(--radius-sm); padding: 14px 18px;
  display: flex; gap: 10px; align-items: flex-start;
}
.dyk-box strong { font-size:0.85rem; }
.dyk-box p { font-size:0.84rem; color:#555; line-height:1.5; margin-top:3px; }

/* ════════════════════════════════════════════
   SECTION 6 · EXPECTATION vs REALITY
════════════════════════════════════════════ */
.expectation-section { background: var(--cream2); }
.exp-title { font-family: 'Fredoka', cursive; font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }

.food-picker {
  text-align: center; margin-bottom: 28px;
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.food-picker select {
  font-family: 'Nunito', sans-serif; font-size: 0.95rem;
  padding: 7px 14px; border-radius: 12px;
  border: 2px solid var(--border); background: white;
  cursor: pointer; font-weight: 700; color: #333;
  transition: border-color 0.2s;
}
.food-picker select:focus { border-color: #50aa60; outline: none; }

.evr-layout {
  display: flex; gap: 30px; position: relative;
  align-items: flex-start; margin-bottom: 24px;
}
.evr-left, .evr-right {
  flex: 1; background: white; border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.evr-left  { border: 2.5px solid #90d890; }
.evr-right { border: 2.5px solid #f09090; }

.evr-header {
  font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-weight: 700;
  padding: 9px 22px; border-radius: 12px; width: 100%; text-align: center;
}
.green-evr-h { background: #d8f0d8; color: #2a6a3a; }
.red-evr-h   { background: #fde8e8; color: #b03030; }
.evr-sub { font-size: 0.95rem; color: #555; text-align: center; }

.evr-img { width: 200px; max-width: 100%; border-radius: 16px; display: block; margin: 0 auto; }

.bubbles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.bubble {
  background: #f8f4f0; border: 1.5px solid var(--border);
  border-radius: 50%; width: 115px; height: 115px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  font-size: 0.74rem; padding: 10px; margin: 0 auto; line-height: 1.35;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.bubble:hover { transform: scale(1.12); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.bubble small { font-size: 0.65rem; color: #999; font-weight: 800; letter-spacing: 0.04em; display: block; margin-top: 3px; }

.verdict {
  border-radius: var(--radius-sm); padding: 12px 18px;
  font-weight: 800; font-size: 0.92rem; text-align: center;
  letter-spacing: 0.02em; width: 100%;
}
.green-verdict { background: #e8f5e8; color: #2a6a3a; border: 2px solid #80c880; }
.red-verdict   { background: #fde8e8; color: #b03030; border: 2px solid #f09090; }

.vs-circle {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  background: white; border-radius: 50%;
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem;
  z-index: 10; box-shadow: var(--shadow-sm);
}

/* Reality bars */
.reality-bars { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rl-row { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; }
.rl-label { width: 82px; font-weight: 700; display: flex; align-items: center; gap: 5px; flex-shrink: 0; font-size: 0.8rem; }
.rl-track { flex: 1; height: 16px; background: #f0ece8; border-radius: 999px; overflow: hidden; }
.rl-fill  { height: 100%; border-radius: 999px; width: 0; transition: width 1.2s cubic-bezier(0.25,1,0.5,1); }
.rl-val   { width: 72px; font-weight: 800; text-align: right; font-size: 0.8rem; flex-shrink: 0; }
.rl-tag   { font-size: 0.7rem; padding: 2px 7px; border-radius: 999px; font-weight: 800; flex-shrink: 0; }
.tag-hi   { background: #fde8e8; color: #b03030; }
.tag-med  { background: #fff5d8; color: #905010; }
.tag-good { background: #e8f5e8; color: #2a6a3a; }
.tag-low  { background: #e8e8f8; color: #304080; }
.tag-ok   { background: #f0e8f8; color: #503080; }

/* ════════════════════════════════════════════
   SECTION 7 · BUILD YOUR OWN BOWL
════════════════════════════════════════════ */
.bowl-section { background: linear-gradient(160deg, #fff8ef 0%, #fdf4e4 100%); }

.bowl-type-row {
  display: flex; gap: 14px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap;
}
.bowl-type-btn {
  font-family: 'Fredoka', sans-serif; font-size: 1.05rem; font-weight: 700;
  padding: 12px 28px; border-radius: 999px;
  border: 2.5px solid #e8ddd0; background: white;
  cursor: pointer; transition: all 0.2s; color: #555;
}
.bowl-type-btn:hover { border-color: #f5a623; color: #c87010; transform: translateY(-2px); }
.bowl-type-btn.active { background: #f5a623; border-color: #f5a623; color: white; box-shadow: 0 4px 18px rgba(245,166,35,0.35); }

.bowl-layout {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: start;
}

/* Left: ingredients */
.bowl-ingredients { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.bowl-panel-title { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.bowl-panel-sub   { font-size: 0.78rem; color: #aaa; margin-bottom: 10px; }
.bowl-addon-note  { font-size: 0.78rem; background: #fff8e6; border: 1.5px solid #f5d88a; border-radius: 8px; padding: 6px 10px; margin-bottom: 14px; color: #7a5a10; }

.ingredient-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ing-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 10px 6px; border-radius: 14px; border: 2px solid #e8e0d8;
  background: #fafaf8; cursor: pointer; transition: all 0.18s; position: relative;
}
.ing-card:hover { border-color: #f5a623; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.ing-card.ing-selected { background: #e8f5e8; border-color: #50aa60; box-shadow: 0 0 0 3px rgba(80,170,96,0.18); }
.ing-card.ing-addon { border-style: dashed; }
.ing-card.ing-selected.ing-addon { background: #fff3e0; border-color: #f5a623; border-style: solid; box-shadow: 0 0 0 3px rgba(245,166,35,0.18); }
.ing-emoji  { font-size: 1.7rem; line-height: 1; margin-bottom: 4px; }
.ing-label  { font-size: 0.75rem; font-weight: 700; color: #333; line-height: 1.2; }
.ing-desc   { font-size: 0.65rem; color: #aaa; margin-top: 2px; }
.ing-cal    { font-size: 0.68rem; font-weight: 700; color: #f5a623; margin-top: 3px; }
.ing-addon-tag {
  position: absolute; top: -6px; right: -6px;
  background: #f5a623; color: white; font-size: 0.55rem; font-weight: 800;
  border-radius: 999px; padding: 2px 6px; letter-spacing: 0.04em;
}

/* Center: bowl visual */
.bowl-visual-panel {
  width: 220px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px;
}
.bowl-container {
  width: 180px; height: 180px; position: relative;
  background: white; border-radius: 50%; border: 3px solid #e8ddd0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.bowl-emojis {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px;
  max-width: 140px; padding-bottom: 10px;
}
.bowl-ing-emoji {
  font-size: 1.4rem; animation: popIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn { from { opacity:0; transform: scale(0.4); } to { opacity:1; transform: scale(1); } }
.bowl-dish { font-size: 2.8rem; position: absolute; bottom: -18px; }
.bowl-message {
  margin-top: 24px; text-align: center; font-size: 0.88rem; font-weight: 700;
  color: #555; background: white; border-radius: 12px; padding: 10px 16px;
  border: 1.5px solid #e8e0d8; box-shadow: var(--shadow-sm); min-width: 180px;
}
.bowl-reset-btn {
  font-family: 'Nunito', sans-serif; font-size: 0.8rem; font-weight: 700;
  padding: 7px 18px; border-radius: 999px; border: 2px solid #e8ddd0;
  background: white; cursor: pointer; color: #999; transition: all 0.18s;
}
.bowl-reset-btn:hover { border-color: #e87070; color: #c04040; transform: translateY(-1px); }

/* Right: nutrition */
.bowl-nutrition { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.bowl-stat-block { margin-bottom: 18px; }
.bowl-stat-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 0.88rem; font-weight: 700; }
.bowl-stat-spacer { flex: 1; }
.bowl-stat-icon  { font-size: 1rem; }
.bowl-stat-label { color: #555; }
.bowl-stat-val   { font-size: 1.2rem; font-family: 'Fredoka', sans-serif; color: #222; }
.bowl-stat-unit  { font-size: 0.72rem; color: #aaa; font-weight: 600; }
.bowl-bar-track  { height: 12px; background: #f0ece8; border-radius: 999px; overflow: hidden; }
.bowl-bar        { height: 100%; border-radius: 999px; transition: width 0.4s cubic-bezier(0.34,1.2,0.64,1); }
.bowl-bar-cal  { background: repeating-linear-gradient(45deg, var(--cal) 0, var(--cal) 4px, #fdd08a 4px, #fdd08a 8px); }
.bowl-bar-fat  { background: repeating-linear-gradient(45deg, var(--fat) 0, var(--fat) 4px, #f5b0b0 4px, #f5b0b0 8px); }
.bowl-bar-carb { background: repeating-linear-gradient(45deg, var(--carb) 0, var(--carb) 4px, #a8c8f0 4px, #a8c8f0 8px); }
.bowl-bar-prot { background: repeating-linear-gradient(45deg, var(--prot) 0, var(--prot) 4px, #a8e0a8 4px, #a8e0a8 8px); }
.bowl-insight {
  margin-top: 20px; padding: 12px 14px; border-radius: 14px;
  background: #fdf4dc; border: 1.5px solid #e8cc80;
  font-size: 0.82rem; line-height: 1.55; color: #5a4010; font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}
.bowl-insight.warning { background: #fff0f0; border-color: #e87070; color: #802020; }
.bowl-insight.good    { background: #f0faf0; border-color: #80c880; color: #2a5a2a; }

/* ════════════════════════════════════════════
   SECTION 6 · DRINKING FRUIT ≠ EATING FRUIT — Slider
════════════════════════════════════════════ */

/* Centered slider wrapper */
.df-slider-wrap {
  max-width: 660px;
  margin: 0 auto 32px;
}

/* The white card */
.df-slider-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* Coloured accent bar at the top of the card */
.df-accent-bar {
  height: 6px;
  background: #40c0c0;
  transition: background 0.4s ease;
}
.df-accent-1 { background: #40c0c0; }
.df-accent-2 { background: #f5a623; }
.df-accent-3 { background: #e87070; }
.df-accent-4 { background: #6abf6a; }

/* Slide panels — hidden by default, shown when active */
.df-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 36px 48px 40px;
  gap: 20px;
  flex: 1;
  text-align: center;
}
.df-slide.df-active { display: flex; animation: dfFadeIn 0.38s ease; }

@keyframes dfFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Step counter badge */
.df-step-badge {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  color: #bbb; text-transform: uppercase; margin-bottom: -8px;
}

/* Visual area — fixed height so card doesn't jump */
.df-visual {
  height: 190px;
  display: flex; align-items: center; justify-content: center;
}
.df-vis-img {
  height: 170px; object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.13));
  transition: transform 0.3s ease;
}
.df-vis-img:hover { transform: scale(1.05); }
.df-vis-icon { font-size: 5rem; line-height: 1; }

/* Slide 2 — nutrition truth table */
.df-truth-card {
  background: #fff8f0; border: 2px solid #f0d8a8;
  border-radius: 14px; padding: 16px 22px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; min-width: 260px;
}
.df-truth-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.88rem;
}
.df-truth-label { color: #666; font-weight: 600; }
.df-truth-val   { font-weight: 800; color: #333; }
.df-truth-val.bad  { color: #c04040; }
.df-truth-val.warn { color: #c07000; }

/* Slide 3 — time display */
.df-time-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.df-time-emoji { font-size: 4.5rem; line-height: 1; }
.df-time-pill {
  background: #e87070; color: white; border-radius: 999px;
  padding: 6px 20px; font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem; font-weight: 700;
}

/* Slide title & text */
.df-slide-title {
  font-family: 'Fredoka', sans-serif; font-size: 1.75rem; font-weight: 800;
  color: #222; line-height: 1.2; margin: 0;
}
.df-slide-text {
  font-size: 0.97rem; color: #555; line-height: 1.75;
  max-width: 520px; margin: 0;
}

/* Navigation row */
.df-nav {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.df-nav-btn {
  font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 10px 24px; border-radius: 999px; min-width: 96px;
  border: 2.5px solid #e8ddd0; background: white;
  cursor: pointer; color: #555; transition: all 0.2s;
}
.df-nav-btn:hover:not(:disabled) { border-color: #40c0c0; color: #207a7a; transform: translateY(-2px); }
.df-nav-btn:disabled { opacity: 0.28; cursor: default; }
.df-nav-next {
  background: #40c0c0; border-color: #40c0c0; color: white;
}
.df-nav-next:hover:not(:disabled) { background: #2aacac !important; border-color: #2aacac !important; color: white !important; }
.df-nav-next:disabled { background: #c8c8c8 !important; border-color: #c8c8c8 !important; }

/* Progress dots */
.df-dots { display: flex; gap: 8px; align-items: center; }
.df-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ddd; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.df-dot.df-dot-active { background: #40c0c0; transform: scale(1.35); }

/* ════════════════════════════════════════════
   SECTION 8 · TAKEAWAY (renumbered)
════════════════════════════════════════════ */
.takeaway-section {
  background: linear-gradient(140deg, #1e2030 0%, #2a1a3a 100%) !important;
  color: white; text-align: center;
}
.takeaway-inner { max-width: 960px; margin: 0 auto; padding: 72px 7% 26px; }
.takeaway-icon  { font-size: 4rem; margin-bottom: 18px; display: block; }
.takeaway-title { font-family: 'Fredoka', cursive; font-size: 2.8rem; color: #ffd080; margin-bottom: 16px; font-weight: 800; }
.takeaway-body  { font-size: 1.15rem; line-height: 1.75; color: #ddd; max-width: 660px; margin: 0 auto 48px; }

.takeaway-cards { display: flex; gap: 22px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }
.tc {
  flex: 1; min-width: 200px;
  background: rgba(255,255,255,0.07); border: 2px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.25s;
}
.tc:hover { transform: translateY(-8px); background: rgba(255,255,255,0.12); }
.tc-icon { font-size: 2.2rem; margin-bottom: 10px; }
.tc h4   { font-size: 1.1rem; color: #ffd080; margin-bottom: 8px; }
.tc p    { font-size: 0.86rem; color: #b0b0c8; line-height: 1.5; }

.takeaway-footer { font-size: 1.05rem; color: #9090a8; font-weight: 600; }

.takeaway-final-msg {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: #3eb83e;
  line-height: 1.4;
  margin: 0 auto 48px;
  max-width: 700px;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner       { flex-direction: column; gap: 32px; }
  .hero-title       { font-size: 2.8rem; }
  .hero-img         { width: 320px; }
  .scatter-layout, .categories-layout { flex-direction: column; }
  .sidebar          { width: 100%; flex-direction: row; flex-wrap: wrap; padding-top: 0; }
  .side-card        { flex: 1; min-width: 200px; }
  .explore-layout   { flex-direction: column; }
  .explore-cats, .explore-foods-col { width: 100%; }
  .df-slider-wrap   { max-width: 100%; }
  .df-slide         { padding: 28px 24px 32px; }
  .df-visual        { height: 150px; }
  .df-vis-img       { height: 130px; }
  .evr-layout       { flex-direction: column; }
  .tip-float        { position: static; margin-top: 16px; display: inline-flex; }
  .section-head     { padding-right: 0; }
}
@media (max-width: 600px) {
  .hook-cards  { flex-direction: column; }
  .hero-title  { font-size: 2.2rem; }
  .section-title { font-size: 1.9rem; }
  .takeaway-cards { flex-direction: column; }
  .bubbles-grid { grid-template-columns: 1fr 1fr; }
  .bubble { width: 100px; height: 100px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0ece8; }
::-webkit-scrollbar-thumb { background: #c8b8a0; border-radius: 4px; }
