/* FoodSearch: warm cream, tomato red, basil green and mustard; Young Serif and Nunito */
:root {
  --bg: #fffaf2;
  --bg-2: #fff3e3;
  --surface: #ffffff;
  --surface-2: #fdf0dd;
  --text: #2b2118;
  --muted: #6b5b4b;
  --line: rgba(43, 33, 24, .12);
  --accent: #2f7d4f;
  --accent-2: #e5483b;
  --on-accent: #ffffff;
  --ok: #2f7d4f;
  --bad: #c2362b;
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "Nunito", system-ui, sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(43, 33, 24, .06), 0 22px 46px -26px rgba(120, 70, 20, .35);
}
h1, h2, h3 { font-weight: 400; letter-spacing: -.015em; }
h1 em, h2 em { font-style: normal; color: var(--accent-2); }
.card h3 { font-size: 21px; }
.brand { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: -.01em; }
.brand b { color: var(--accent); font-weight: 400; }
.eyebrow { font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.btn { font-weight: 800; }
.card, .faq details { background: #fff; box-shadow: var(--shadow); }
.pill, .input, .chip span { background: #fff; }
.pill b { background: var(--accent-2); }
.nav.scrolled { background: rgba(255, 250, 242, .88); }
.icon-tile { background: #e9f4ec; border-color: #cfe6d6; color: var(--accent); }

/* Hero */
.fs-hero { min-height: auto; padding-top: calc(var(--nav-h) + 52px); }
.fs-blobs { opacity: .9; }
.fs-hero-in { position: relative; z-index: 1; display: grid; gap: clamp(26px, 4vw, 40px); }
.fs-h1 { font-size: clamp(46px, 7.6vw, 104px); line-height: 1; }
.fs-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.fs-pick, .fs-results { padding: clamp(16px, 2.4vw, 26px); border-radius: 26px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.fs-pick { display: grid; gap: 14px; }
.fs-pick-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fs-find { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.fs-find .i { width: 18px; height: 18px; color: var(--muted); }
.fs-find input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; }
.fs-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 125, 79, .15); }
.fs-have { font-size: 14px; color: var(--muted); }
.fs-have b { color: var(--accent); font-size: 18px; }
.fs-clear { color: var(--accent-2); font-weight: 700; font-size: 14px; min-height: 36px; }
.fs-group { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.fs-group[hidden], .chip[hidden] { display: none; }
.fs-group legend { font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fs-group .chips { gap: 6px; }
.fs-group .chip span { min-height: 38px; padding: 0 13px; font-size: 14px; font-weight: 600; }
.fs-group .chip input:checked + span { background: var(--accent); }
.fs-results { position: sticky; top: calc(var(--nav-h) + 14px); display: grid; gap: 12px; max-height: calc(100vh - var(--nav-h) - 30px); overflow: auto; overscroll-behavior: contain; }
.fs-res-head { font-size: 16px; }
.fs-res-head b { font: 400 30px/1 var(--font-display); color: var(--accent); margin-right: 4px; }
.fs-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fs-card details { border-radius: 16px; border: 1px solid var(--line); background: #fff; animation: lp-pop .4s var(--ease-spring) both; animation-delay: calc(var(--k) * 40ms); }
.fs-card.ready details { border-color: rgba(47, 125, 79, .45); background: #f4fbf6; }
.fs-card summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; gap: 8px; }
.fs-card summary::-webkit-details-marker { display: none; }
.fs-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fs-card-top b { font: 400 19px/1.2 var(--font-display); }
.fs-min { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.fs-meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.fs-meter i { display: block; height: 100%; background: linear-gradient(90deg, #f2b134, var(--accent)); transform-origin: 0 50%; transform: scaleX(var(--w)); }
.fs-state { font-size: 13.5px; color: var(--muted); }
.fs-card.ready .fs-state { color: var(--accent); font-weight: 700; }
.fs-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.fs-tags span { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.fs-tags .y { background: #e3f2e8; color: var(--accent); }
.fs-tags .n { background: #fde4e1; color: #b3372d; }
.fs-tags .o { background: var(--surface-2); color: var(--muted); }
.fs-steps { margin: 12px 0 0; padding: 0 16px 16px 36px; display: grid; gap: 6px; color: var(--text); font-size: 15px; }
.fs-jump { display: none; }
.fs-empty { padding: 20px; text-align: center; color: var(--muted); }

/* Food help */
.fs-help { padding-block: 20px; }
.fs-help-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: #2f7d4f; color: #fff; }
.fs-help-card > div { flex: 1 1 320px; display: grid; gap: 4px; }
.fs-help-card p { color: #dff0e4; }
.fs-help-card .icon-tile { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.fs-help-card .btn { background: #f2b134; color: #2b2118; }

/* Tips */
.fs-tips .card p { color: var(--muted); }

/* Join */
.fs-cta { background: #fff3e3; border-color: #f2d9b6; }
.fs-cta-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.fs-cta-grid > div { display: grid; gap: 18px; }
.fs-cta .btn { background: var(--accent-2); }
.fs-fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }

@media (max-width: 900px) {
  .fs-tool, .fs-cta-grid { grid-template-columns: 1fr; }
  .fs-results { position: static; max-height: none; scroll-margin-top: calc(var(--nav-h) + 12px); }
  .fs-jump { display: inline-flex; position: sticky; bottom: 14px; justify-self: center; box-shadow: 0 14px 30px -10px rgba(47, 125, 79, .6); z-index: 2; }
}
