@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --cream:   #F5F0E8;
  --navy:    #1C2B3A;
  --yellow:  #FAB61A;
  --yellow-hover: #E8A510;
  --yellow-light: #FEF3D0;
  --green:   #3EBD76;
  --green-bg: #E8F7EE;
  --green-border: #A8DFC0;

  --bg:      #F5F0E8;
  --surface: #FFFFFF;
  --border:  #E0D9CE;
  --text:    #1C2B3A;
  --text-muted: #6B6255;
  --text-light: #A89F93;

  --mmmable:        #3EBD76;
  --mmmable-bg:     #E8F7EE;
  --mmmable-border: #A8DFC0;

  --mmbut:        #D4920A;
  --mmbut-bg:     #FEF3D0;
  --mmbut-border: #F5D57A;

  --mmmaybe:        #5A6A88;
  --mmmaybe-bg:     #EEF0F6;
  --mmmaybe-border: #BCC5D8;

  --nope:        #C0392B;
  --nope-bg:     #FDECEA;
  --nope-border: #EAB5B0;

  --radius:    14px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
}

/* NAV */
.nav {
  background: var(--navy);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo img {
  height: 36px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--yellow); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn-primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: #253647; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.375rem 1rem; font-size: 0.8125rem; }
.btn-full { width: 100%; }
.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover { color: var(--text); }

/* LANDING */
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cream);
}
.landing-inner {
  text-align: center;
  max-width: 480px;
}
.landing-logo {
  margin: 0 auto 1.5rem;
  width: 320px;
  max-width: 90%;
}
.landing-tagline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.landing-sub {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 280px;
  margin: 0 auto 2.5rem;
}
.landing-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.feature {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 700;
}
.feature-icon { display: block; font-size: 2rem; margin-bottom: 0.375rem; }

/* LANDING PAGE */
.lp-hero {
  background: var(--cream);
  text-align: center;
  padding: 4rem 1rem 3.5rem;
  border-bottom: 1.5px solid var(--border);
}
.lp-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.lp-logo {
  width: 340px;
  max-width: 85%;
  margin-bottom: 1.25rem;
}
.lp-hero-sub {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.lp-hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lp-section {
  padding: 4rem 1rem;
}
.lp-section:nth-child(even) {
  background: var(--surface);
}
.lp-section-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}
.lp-section-sub {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

/* HOW IT WORKS */
.lp-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.lp-step {
  text-align: center;
  max-width: 220px;
  flex: 1;
  min-width: 160px;
}
.lp-step-num {
  width: 48px;
  height: 48px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.lp-step h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.lp-step p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.6;
}
.lp-step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  padding: 0 0.5rem;
  margin-top: 1rem;
  align-self: flex-start;
  padding-top: 1.25rem;
}

/* FOUR ANSWERS */
.lp-answer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.lp-answer {
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-align: center;
}
.lp-answer-dot { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.lp-answer strong { display: block; font-size: 0.9375rem; font-weight: 900; margin-bottom: 0.375rem; }
.lp-answer p { font-size: 0.8375rem; font-weight: 600; line-height: 1.5; }
.lp-answer--mmmable { background: var(--mmmable-bg); border-color: var(--mmmable-border); color: var(--mmmable); }
.lp-answer--mmmable p { color: var(--mmmable); }
.lp-answer--mmbut   { background: var(--mmbut-bg);   border-color: var(--mmbut-border);   color: var(--mmbut); }
.lp-answer--mmbut p { color: var(--mmbut); }
.lp-answer--mmmaybe { background: var(--mmmaybe-bg); border-color: var(--mmmaybe-border); color: var(--mmmaybe); }
.lp-answer--mmmaybe p { color: var(--mmmaybe); }
.lp-answer--nope    { background: var(--nope-bg);    border-color: var(--nope-border);    color: var(--nope); }
.lp-answer--nope p { color: var(--nope); }

/* FEATURE ROWS */
.lp-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.lp-feature-row:last-child { margin-bottom: 0; }
.lp-feature-row--reverse { direction: rtl; }
.lp-feature-row--reverse > * { direction: ltr; }
.lp-feature-tag {
  display: inline-block;
  background: var(--yellow-light);
  color: var(--mmbut);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}
.lp-feature-text h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.lp-feature-text p {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.lp-feature-example {
  font-size: 1rem;
  color: var(--navy);
  background: var(--yellow-light);
  border-left: 3px solid var(--yellow);
  padding: 0.625rem 0.875rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* FEATURE VISUALS */
.lp-feature-visual {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.lpv-cuisine-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--navy);
}
.lpv-cuisine-row:last-child { margin-bottom: 0; }
.lpv-bar-wrap { height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; }
.lpv-bar { height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow)); border-radius: 99px; }
.lpv-cuisine-row span:last-child { text-align: right; font-size: 0.8125rem; }

.lpv-dish {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  margin-bottom: 0.625rem;
}
.lpv-dish:last-child { margin-bottom: 0; }
.lpv-pct { font-size: 1.1rem; font-weight: 900; min-width: 44px; }
.lpv-dish-name { font-size: 0.875rem; font-weight: 900; color: var(--navy); margin-bottom: 0.2rem; }
.lpv-dish-verdict { font-size: 0.8rem; font-weight: 600; }
.lpv-dish--high { background: var(--mmmable-bg); border-color: var(--mmmable-border); }
.lpv-dish--high .lpv-pct { color: var(--mmmable); }
.lpv-dish--high .lpv-dish-verdict { color: var(--mmmable); }
.lpv-dish--mid  { background: var(--mmbut-bg);   border-color: var(--mmbut-border); }
.lpv-dish--mid  .lpv-pct { color: var(--mmbut); }
.lpv-dish--mid  .lpv-dish-verdict { color: var(--mmbut); }
.lpv-dish--low  { background: var(--nope-bg);    border-color: var(--nope-border); }
.lpv-dish--low  .lpv-pct { color: var(--nope); }
.lpv-dish--low  .lpv-dish-verdict { color: var(--nope); }

/* CTA */
.lp-cta {
  background: var(--navy);
  text-align: center;
  padding: 4rem 1rem 3rem;
  color: #fff;
}
.lp-cta-monster {
  width: 180px;
  margin: 0 auto -16px;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}
.lp-cta h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.lp-cta p {
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.lp-footer {
  background: #111C26;
  padding: 1.25rem 1rem;
}
.lp-footer .lp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}
.lp-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.lp-footer a:hover { color: #fff; }

/* LANDING RESPONSIVE */
@media (max-width: 700px) {
  .lp-answer-grid { grid-template-columns: 1fr 1fr; }
  .lp-feature-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .lp-feature-row--reverse { direction: ltr; }
  .lp-steps { flex-direction: column; align-items: center; gap: 1rem; }
  .lp-step-arrow { display: none; }
  .lp-section-title { font-size: 1.5rem; }
  .lp-cta h2 { font-size: 1.5rem; }
}
@media (max-width: 420px) {
  .lp-answer-grid { grid-template-columns: 1fr; }
}

/* AUTH */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cream);
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 2.25rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(28,43,58,0.08);
}
.auth-logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 200px;
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.25rem;
  text-align: center;
}
.auth-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-switch {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.auth-switch a { color: var(--navy); font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* FIELDS */
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label { font-size: 0.875rem; font-weight: 800; color: var(--text); }
.field input, .field textarea {
  padding: 0.625rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: var(--surface);
}
.field small { color: var(--text-light); font-size: 0.8rem; font-weight: 600; }

/* ALERTS */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.alert-error {
  background: var(--nope-bg);
  border: 1.5px solid var(--nope-border);
  color: var(--nope);
}
.alert-success {
  background: #e6f9ee;
  border: 1.5px solid #a3e4be;
  color: #1a6e40;
}

/* EAT PAGE */
.eat-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}
.eat-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  border-radius: 99px;
  transition: width 0.4s ease;
}
.progress-text {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
}

.last-answer {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1.5px solid transparent;
}
.last-answer--mmmable { background: var(--mmmable-bg); border-color: var(--mmmable-border); color: var(--mmmable); }
.last-answer--mmbut   { background: var(--mmbut-bg);   border-color: var(--mmbut-border);   color: var(--mmbut); }
.last-answer--mmmaybe { background: var(--mmmaybe-bg); border-color: var(--mmmaybe-border); color: var(--mmmaybe); }
.last-answer--nope    { background: var(--nope-bg);    border-color: var(--nope-border);    color: var(--nope); }
.last-answer--skip    { background: var(--surface);    border-color: var(--border);         color: var(--text-muted); }

.eat-card-wrap {
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.eat-mascot {
  display: block;
  width: 220px;
  margin: 0 auto -42px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.eat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 16px rgba(28,43,58,0.06);
  position: relative;
  z-index: 1;
}
.item-category {
  display: inline-block;
  background: var(--yellow-light);
  color: var(--mmbut);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}
.item-name {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.answer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1.1rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 900;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: transform 0.1s, box-shadow 0.1s;
  min-height: 84px;
}
.answer-btn:active { transform: scale(0.96); }
.answer-icon { font-size: 1.5rem; }
.answer-label { font-size: 0.8125rem; }

.answer-btn--mmmable {
  background: var(--mmmable-bg);
  border-color: var(--mmmable-border);
  color: var(--mmmable);
}
.answer-btn--mmmable:hover { background: #d3f0e2; }
.answer-btn--mmbut {
  background: var(--mmbut-bg);
  border-color: var(--mmbut-border);
  color: var(--mmbut);
}
.answer-btn--mmbut:hover { background: #fde9a0; }
.answer-btn--mmmaybe {
  background: var(--mmmaybe-bg);
  border-color: var(--mmmaybe-border);
  color: var(--mmmaybe);
}
.answer-btn--mmmaybe:hover { background: #dde1ed; }
.answer-btn--nope {
  background: var(--nope-bg);
  border-color: var(--nope-border);
  color: var(--nope);
}
.answer-btn--nope:hover { background: #f8d8d5; }

.mmbut-notes {
  padding: 1rem;
  background: var(--mmbut-bg);
  border: 2px solid var(--mmbut-border);
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mmbut-notes label { font-size: 0.875rem; font-weight: 800; color: var(--mmbut); }
.mmbut-notes input {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--mmbut-border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #fff;
}

.eat-skip { text-align: center; padding-top: 0.5rem; }
.undo-form { text-align: center; margin-top: 0.25rem; }
.undo-btn { color: var(--text-light); font-size: 0.8125rem; }

/* BATCH PROGRESS DOTS */
.batch-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.batch-dots {
  display: flex;
  gap: 0.375rem;
}
.batch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.15s;
}
.batch-dot.dot-mmmable { background: var(--mmmable); }
.batch-dot.dot-mmbut   { background: #FAB61A; }
.batch-dot.dot-mmmaybe { background: #E07B2A; }
.batch-dot.dot-nope    { background: var(--nope); }
.batch-dot:last-child  { transform: scale(1.15); }
.batch-count { font-size: 0.8125rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* EAT DONE — in-quiz "all answered" state */
.eat-done {
  text-align: center;
  padding: 3rem 1rem;
}
.eat-done h2 { font-size: 1.75rem; font-weight: 900; color: var(--navy); margin-bottom: 0.5rem; }
.eat-done p { color: var(--text-muted); font-weight: 600; margin-bottom: 1.5rem; }
.eat-done-actions { display: flex; flex-direction: column; gap: 0.75rem; max-width: 280px; margin: 0 auto; }

/* BATCH DONE PAGE */
.done-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem 4rem;
}
.done-mascot-wrap { margin-bottom: -24px; }
.done-mascot { width: 90px; height: auto; }
.done-title { font-size: 2rem; font-weight: 900; color: var(--navy); margin-bottom: 0.25rem; }
.done-sub { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 1.5rem; }

.done-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.done-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.875rem;
  border-radius: 99px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.9375rem;
}
.done-pill--mmmable { background: var(--mmmable-bg); border-color: var(--mmmable-border); color: var(--mmmable); }
.done-pill--mmbut   { background: var(--mmbut-bg);   border-color: var(--mmbut-border);   color: var(--mmbut); }
.done-pill--mmmaybe { background: var(--mmmaybe-bg); border-color: var(--mmmaybe-border); color: var(--mmmaybe); }
.done-pill--nope    { background: var(--nope-bg);    border-color: var(--nope-border);    color: var(--nope); }
.pill-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 0.5rem; }
.pill-icon { flex-shrink: 0; font-size: 1rem; }

.done-unlock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  background: var(--mmmable-bg);
  border: 2px solid var(--mmmable-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}
.done-unlock .unlock-icon { font-size: 1.25rem; }
.done-unlock a { color: var(--mmmable); text-decoration: underline; }

.done-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 280px;
  margin: 0 auto;
}

/* PAGE CONTAINER */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.page-header { margin-bottom: 1.75rem; }
.page-header h1 { font-size: 1.875rem; font-weight: 900; color: var(--navy); }
.page-sub { color: var(--text-muted); font-weight: 600; margin-top: 0.25rem; }

/* PROFILE */
.profile-badge {
  background: var(--mmmable-bg);
  border: 1.5px solid var(--mmmable-border);
  color: var(--mmmable);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.profile-progress-msg {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.profile-progress-msg a { color: var(--navy); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-num { display: block; font-size: 1.875rem; font-weight: 900; }
.stat-label { display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; }
.stat-card--mmmable { border-color: var(--mmmable-border); background: var(--mmmable-bg); }
.stat-card--mmmable .stat-num { color: var(--mmmable); }
.stat-card--mmbut { border-color: var(--mmbut-border); background: var(--mmbut-bg); }
.stat-card--mmbut .stat-num { color: var(--mmbut); }
.stat-card--mmmaybe { border-color: var(--mmmaybe-border); background: var(--mmmaybe-bg); }
.stat-card--mmmaybe .stat-num { color: var(--mmmaybe); }
.stat-card--nope { border-color: var(--nope-border); background: var(--nope-bg); }
.stat-card--nope .stat-num { color: var(--nope); }

.section { margin-bottom: 2rem; }
.section h2 { font-size: 1.125rem; font-weight: 900; color: var(--navy); margin-bottom: 1rem; }

.cuisine-list { display: flex; flex-direction: column; gap: 0.625rem; }
.cuisine-row {
  display: grid;
  grid-template-columns: 140px 1fr 52px;
  align-items: center;
  gap: 0.75rem;
}
.cuisine-name { font-size: 0.875rem; font-weight: 800; }
.cuisine-bar-wrap { height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; }
.cuisine-bar { height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow)); border-radius: 99px; }
.cuisine-pct { font-size: 0.875rem; font-weight: 900; text-align: right; color: var(--navy); }
.cuisine-note { font-size: 0.8rem; font-weight: 600; color: var(--text-light); margin-top: 0.75rem; }

.recent-list { display: flex; flex-direction: column; gap: 0.375rem; }
.recent-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 0.875rem;
}
.recent-name { flex: 1; font-weight: 800; }
.recent-answer { font-size: 0.78rem; font-weight: 900; white-space: nowrap; }
.recent-notes { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; font-style: italic; }
.recent-row--mmmable .recent-answer { color: var(--mmmable); }
.recent-row--mmbut   .recent-answer { color: var(--mmbut); }
.recent-row--mmmaybe .recent-answer { color: var(--mmmaybe); }
.recent-row--nope    .recent-answer { color: var(--nope); }

/* RECIPES */
.recipe-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill {
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pill:hover { color: var(--navy); border-color: var(--navy); }
.pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.recipe-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.recipe-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(28,43,58,0.05);
}
.recipe-card-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1.5px solid var(--border);
}
.recipe-category {
  display: inline-block;
  background: var(--yellow-light);
  color: var(--mmbut);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}
.recipe-name { font-size: 1.25rem; font-weight: 900; color: var(--navy); margin-bottom: 0.375rem; }
.recipe-desc { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.recipe-why { font-size: 0.875rem; color: var(--mmmable); font-weight: 800; }

.recipe-body { padding: 1rem 1.25rem 1.25rem; }
.recipe-body h3 {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.ingredient-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.ingredient-list li {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
}
.method-details summary {
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0;
}
.method-steps { margin-top: 0.75rem; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.method-steps li { font-size: 0.9rem; font-weight: 600; }

/* SCAN */
.scan-area { max-width: 480px; }
.upload-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  padding: 2rem;
  margin-bottom: 1rem;
  position: relative;
  transition: border-color 0.15s;
}
.upload-zone:hover { border-color: var(--yellow); }
.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-label { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; cursor: pointer; }
.upload-zone.has-preview .upload-label { display: none; }
.upload-icon { font-size: 2.5rem; }
.upload-text { font-weight: 800; color: var(--navy); }
.upload-hint { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.preview-img { width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--radius-sm); }
#preview-wrap { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; position: relative; z-index: 1; }

.scan-loading { text-align: center; padding: 3rem 1rem; }
.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-loading p { color: var(--text-muted); font-weight: 700; }

.results-header { margin-bottom: 1rem; }
.results-header h2 { font-size: 1.375rem; font-weight: 900; color: var(--navy); }
.results-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.dish-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
}
.dish-score {
  font-size: 1.5rem;
  font-weight: 900;
  min-width: 60px;
  text-align: center;
  padding-top: 0.125rem;
  font-family: 'Nunito', sans-serif;
}
.dish-high .dish-score { color: var(--mmmable); }
.dish-mid  .dish-score { color: var(--mmbut); }
.dish-low  .dish-score { color: var(--nope); }
.dish-high { border-color: var(--mmmable-border); background: var(--mmmable-bg); }
.dish-mid  { border-color: var(--mmbut-border);   background: var(--mmbut-bg); }
.dish-low  { border-color: var(--nope-border);     background: var(--nope-bg); }
.dish-name { font-weight: 900; color: var(--navy); margin-bottom: 0.25rem; }
.dish-verdict { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag {
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
}
.tag-good { background: var(--mmmable-bg); color: var(--mmmable); }
.tag-bad  { background: var(--nope-bg);    color: var(--nope); }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
}
.empty-state p { margin-bottom: 1rem; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cuisine-row { grid-template-columns: 100px 1fr 44px; }
  .nav-links { gap: 0.875rem; }
  .nav-links a { font-size: 0.8125rem; }
  .item-name { font-size: 1.75rem; }
}
