@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #13231c;
  --ink-soft: #30453b;
  --forest: #163c2d;
  --forest-deep: #0e2b20;
  --lime: #c9fa72;
  --lime-soft: #e9ffc5;
  --mint: #d9f3e6;
  --cream: #f6f7ef;
  --white: #ffffff;
  --coral: #ff8d70;
  --line: #dfe6dc;
  --muted: #6c7c73;
  --shadow: 0 24px 70px rgba(24, 57, 43, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.preview {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 18px;
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.preview span:last-child {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 250, 114, 0.12);
}

header {
  position: relative;
  z-index: 10;
  max-width: 1340px;
  min-height: 94px;
  margin: 0 auto;
  padding: 18px clamp(22px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand,
.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark,
.mini-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  line-height: 1;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav button,
.text-button,
.back {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

nav button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
}

nav button:hover {
  background: rgba(22, 60, 45, 0.07);
}

nav .nav-cta {
  padding-inline: 20px;
  background: var(--forest);
  color: var(--white);
}

nav .nav-cta:hover {
  background: var(--forest-deep);
}

nav .nav-cta span {
  margin-left: 12px;
  color: var(--lime);
}

main {
  min-height: calc(100vh - 260px);
}

.hero {
  position: relative;
  max-width: 1260px;
  min-height: 680px;
  margin: 0 auto;
  padding: 46px clamp(22px, 4vw, 56px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.hero::before {
  content: '';
  position: absolute;
  top: 4%;
  left: -16%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(217, 243, 230, 0.62);
  filter: blur(2px);
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 20px;
  height: 2px;
  display: inline-block;
  background: var(--coral);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin: 22px 0 24px;
  font-size: clamp(60px, 6.9vw, 96px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.91;
}

h1 em,
.quiz-aside h2 em {
  color: var(--forest);
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.meal-match-title {
  font-size: clamp(56px, 6.1vw, 84px);
  margin-bottom: 10px;
}

.meal-match-title small {
  margin-top: 13px;
  display: block;
  color: var(--forest);
  font-size: 0.14em;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-promise {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(27px, 2.4vw, 36px);
  line-height: 1.08;
}

.hero-promise em {
  color: var(--forest);
}

.intro {
  max-width: 540px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
}

.portion-promise {
  max-width: 555px;
  margin: -4px 0 24px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(22, 60, 45, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.portion-promise > span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portion-promise p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary {
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(14, 43, 32, 0.16);
}

.primary span {
  color: var(--lime);
  font-size: 18px;
}

.primary:hover {
  transform: translateY(-2px);
  background: var(--forest-deep);
  box-shadow: 0 16px 32px rgba(14, 43, 32, 0.22);
}

.primary:disabled {
  cursor: default;
  opacity: 0.42;
}

.primary:disabled:hover {
  transform: none;
}

.text-button {
  min-height: 50px;
  padding: 12px 16px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(48, 69, 59, 0.25);
  text-underline-offset: 5px;
}

.hero-proof {
  display: flex;
  gap: 32px;
  margin-top: 34px;
}

.hero-proof > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero-proof strong {
  font-size: 24px;
  letter-spacing: -0.06em;
}

.hero-proof span {
  max-width: 68px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 26px 26px;
  background: var(--mint);
  overflow: visible;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(22, 60, 45, 0.12);
  border-radius: inherit;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(22, 60, 45, 0.16);
  border-radius: 50%;
}

.orbit-one {
  width: 380px;
  height: 380px;
}

.orbit-two {
  width: 460px;
  height: 460px;
}

.match-card {
  position: relative;
  z-index: 2;
  width: min(340px, 76%);
  padding: 18px 20px 20px;
  border: 1px solid rgba(22, 60, 45, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: rotate(-2deg);
}

.match-topline,
.match-metrics,
.tile-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-topline {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.match-score {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest-deep);
}

.plate {
  width: 220px;
  height: 220px;
  margin: 22px auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8faf5;
  box-shadow: inset 0 0 0 12px #f1f4ed, inset 0 0 0 14px #fff, 0 14px 35px rgba(22, 60, 45, 0.12);
}

.plate img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.plate.cover-photo {
  width: 100%;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: #e2ddcf;
  box-shadow: 0 14px 35px rgba(22, 60, 45, 0.14);
}

.plate.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}

.match-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

.match-metrics {
  gap: 7px;
}

.match-metrics span {
  flex: 1;
  padding: 10px 5px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
}

.match-metrics b {
  display: block;
  margin-bottom: 2px;
  color: var(--forest);
  font-size: 13px;
}

.float-card {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 12px 15px;
  border: 1px solid rgba(22, 60, 45, 0.12);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(22, 60, 45, 0.1);
}

.float-card span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.float-card b {
  font-size: 11px;
}

.energy {
  top: 84px;
  right: -38px;
  transform: rotate(5deg);
}

.craving {
  bottom: 73px;
  left: -42px;
  transform: rotate(-5deg);
}

.spark {
  position: absolute;
  top: 74px;
  left: 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-size: 26px;
  transform: rotate(-10deg);
}

.strip {
  max-width: 1150px;
  margin: 0 auto 30px;
  padding: 0 clamp(22px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.strip > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 25px 22px;
  border-top: 1px solid var(--line);
}

.strip > div + div {
  border-left: 1px solid var(--line);
}

.strip b {
  color: var(--coral);
  font-size: 11px;
}

.strip span,
.strip strong {
  display: block;
}

.strip strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
}

.strip span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

footer {
  max-width: 1260px;
  min-height: 110px;
  margin: 38px auto 0;
  padding: 24px clamp(22px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.footer-brand {
  font-size: 15px;
}

.footer-brand span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quiz-shell {
  max-width: 1160px;
  min-height: 680px;
  margin: 26px auto 74px;
  padding: 0 clamp(18px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 0;
}

.quiz-aside {
  position: relative;
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px 0 0 28px;
  background: var(--forest);
  color: var(--white);
  overflow: hidden;
}

.quiz-aside::before,
.quiz-aside::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(201, 250, 114, 0.2);
  border-radius: 50%;
}

.quiz-aside::before {
  width: 380px;
  height: 380px;
  right: -220px;
  bottom: -100px;
}

.quiz-aside::after {
  width: 260px;
  height: 260px;
  right: -140px;
  bottom: -40px;
}

.mini-brand {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 14px;
}

.mini-brand-mark {
  width: 31px;
  height: 31px;
  background: var(--lime);
  color: var(--forest);
  font-size: 20px;
}

.quiz-aside-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.quiz-aside .eyebrow {
  color: var(--lime);
  font-size: 8px;
}

.quiz-aside h2 {
  margin: 18px 0;
  font-size: clamp(42px, 4.4vw, 61px);
  letter-spacing: -0.06em;
  line-height: 0.97;
}

.quiz-aside h2 em {
  color: var(--lime);
}

.quiz-aside p {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.75;
}

.aside-quote {
  position: relative;
  z-index: 1;
  max-width: 230px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.quiz {
  padding: clamp(38px, 5vw, 68px);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 28px 28px 0;
  background: rgba(255, 255, 255, 0.78);
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.step-count {
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
}

.step-count i {
  color: #a6b1aa;
  font-style: normal;
  font-weight: 500;
}

.progress {
  height: 4px;
  margin: 16px 0 38px;
  border-radius: 999px;
  background: #e7ece6;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), #6b9b55);
  transition: width 260ms ease;
}

.quiz > h2,
.results h2,
.empty-state h2 {
  margin: 0 0 12px;
  font-size: clamp(38px, 4.5vw, 58px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.options {
  margin: 30px 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.option {
  position: relative;
  min-height: 106px;
  padding: 18px 44px 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.option:hover {
  transform: translateY(-2px);
  border-color: #94b27b;
  background: #fafff4;
  box-shadow: 0 10px 24px rgba(22, 60, 45, 0.08);
}

.option-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
}

.option-copy {
  min-width: 0;
}

.option-copy b,
.option-copy small {
  display: block;
}

.option-copy b {
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.25;
}

.option-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.option-key {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #97a49c;
  font-size: 8px;
  font-weight: 700;
}

.preference-box {
  margin: 22px 0 18px;
  padding: 16px;
  display: grid;
  gap: 14px;
  border-radius: 14px;
  background: #eff5ed;
}

.preference-box strong,
.preference-box span {
  display: block;
}

.preference-box strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.preference-box span,
.preference-box p {
  color: var(--muted);
  font-size: 8px;
}

.preference-box p {
  margin: 0;
  line-height: 1.5;
}

.preference-box p strong {
  display: inline;
  color: var(--forest);
  font-size: inherit;
}

.preference-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(22, 60, 45, 0.1);
}

.preference-group {
  display: grid;
  gap: 8px;
}

.preference-group > b {
  color: var(--forest);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preferences {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.pill {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #ccd9cc;
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-size: 9px;
  font-weight: 700;
}

.pill[aria-pressed='true'] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--lime);
}

.back {
  padding: 8px 0;
  color: var(--muted);
}

.results {
  max-width: 1120px;
  margin: 34px auto 80px;
  padding: 0 clamp(18px, 3vw, 42px);
}

.result-head {
  position: relative;
  max-width: 730px;
  margin: 0 auto 34px;
  text-align: center;
}

.result-head h2 {
  margin-top: 18px;
}

.result-count {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meal {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 55px rgba(22, 60, 45, 0.08);
  overflow: hidden;
}

.meal-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 48px;
  background: var(--mint);
}

.meal-visual::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(22, 60, 45, 0.12);
  border-radius: 50%;
}

.meal-label {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photos {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.photos img {
  min-width: 0;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.photos img + img,
.photos:has(img + img) img {
  width: 46%;
}

.meal-score {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest-deep);
  text-align: center;
  transform: rotate(6deg);
}

.meal-score strong,
.meal-score span {
  display: block;
}

.meal-score strong {
  font-size: 18px;
}

.meal-score span {
  font-size: 8px;
  text-transform: uppercase;
}

.meal-content {
  padding: clamp(34px, 5vw, 62px);
}

.meal-content h3 {
  margin: 17px 0 20px;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.key-tags span {
  border-color: transparent;
  background: #eff5ed;
  color: var(--forest);
}

.filter-summary {
  margin: -5px 0 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-summary strong {
  margin-right: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-summary span {
  padding: 5px 8px;
  border: 1px solid rgba(22, 60, 45, 0.18);
  border-radius: 999px;
  color: var(--forest);
  font-size: 8px;
  font-weight: 700;
}

.portion-callout {
  margin: 4px 0 18px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: #fff5ec;
}

.portion-callout strong {
  color: var(--forest);
  font-size: 10px;
  white-space: nowrap;
}

.portion-callout span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.meal-detail {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.meal-detail > span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 700;
}

.meal-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.meal-detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
}

.tiny,
.source-link {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.meal-note {
  margin-bottom: 8px;
}

.source-link {
  text-decoration-color: rgba(108, 124, 115, 0.35);
  text-underline-offset: 3px;
}

.actions {
  justify-content: center;
  margin: 26px 0 18px;
}

.reroll-note {
  margin: 20px 0 -14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.secondary {
  border: 1px solid #cdd7ce;
  background: transparent;
  color: var(--forest);
}

.secondary:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.notice {
  padding: 13px 18px;
  border-radius: 12px;
  background: #ebefe7;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.notice .back {
  margin-left: 5px;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.library-head {
  margin-bottom: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.library-head h2 {
  margin-top: 18px;
}

.library-head > p {
  max-width: 370px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.tile {
  position: relative;
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tile:nth-child(4),
.tile:nth-child(5) {
  grid-column: span 3;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(22, 60, 45, 0.1);
}

.tile-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
}

.tile-art {
  height: 220px;
  padding: 30px;
  background: var(--mint);
}

.tile-art img {
  width: auto;
  height: 160px;
}

.tile-content {
  padding: 22px;
}

.tile-meta {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile h3 {
  margin: 14px 0 9px;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.tile p {
  min-height: 34px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.library-cta {
  margin-top: 24px;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: var(--radius-md);
  background: var(--forest);
  color: var(--white);
}

.library-cta .eyebrow {
  color: var(--lime);
}

.library-cta h3 {
  margin: 7px 0 0;
  font-size: 27px;
  letter-spacing: -0.05em;
}

.library-cta .primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--forest-deep);
  box-shadow: none;
}

.library-cta .primary span {
  color: var(--forest-deep);
}

.empty-state {
  max-width: 650px;
  margin: 75px auto 110px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-size: 28px;
}

.empty-state h2 {
  margin-top: 18px;
}

dialog {
  width: min(480px, calc(100% - 30px));
  padding: 42px;
  border: 1px solid rgba(22, 60, 45, 0.15);
  border-radius: 28px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 35px 90px rgba(14, 43, 32, 0.35);
}

dialog::backdrop {
  background: rgba(9, 29, 21, 0.72);
  backdrop-filter: blur(8px);
}

dialog h2 {
  margin: 16px 0;
  font-size: 48px;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

dialog p,
dialog li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

dialog ul {
  padding-left: 18px;
}

.close {
  position: absolute;
  top: 15px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
}

.price {
  margin: 24px 0;
  display: flex;
  align-items: end;
  gap: 9px;
}

.price span {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.price small {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

dialog .primary {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 45px;
  }

  h1 {
    font-size: clamp(56px, 7.5vw, 78px);
  }

  .hero-visual {
    min-height: 490px;
  }

  .match-card {
    width: 300px;
  }

  .plate {
    width: 190px;
    height: 190px;
  }

  .orbit-one {
    width: 320px;
    height: 320px;
  }

  .orbit-two {
    width: 400px;
    height: 400px;
  }

  .energy {
    right: -12px;
  }

  .craving {
    left: -12px;
  }

  .quiz-shell {
    grid-template-columns: 0.64fr 1.36fr;
  }

  .quiz-aside {
    padding: 32px 26px;
  }

  .quiz {
    padding: 42px 34px;
  }
}

@media (max-width: 760px) {
  .preview {
    display: block;
    font-size: 8px;
    line-height: 1.4;
  }

  .preview-dot {
    display: none;
  }

  .preview span:last-child {
    display: block;
    margin-top: 2px;
  }

  header {
    min-height: 80px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  nav > button:first-child {
    display: none;
  }

  nav .nav-cta {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 10px;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .hero::before {
    width: 330px;
    height: 330px;
  }

  h1 {
    font-size: clamp(54px, 15vw, 78px);
  }

  .hero-visual {
    width: min(100%, 500px);
    min-height: 500px;
    margin: 0 auto;
  }

  .hero-proof {
    gap: 20px;
  }

  .strip {
    grid-template-columns: 1fr;
  }

  .strip > div + div {
    border-left: 0;
  }

  .quiz-shell {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .quiz-aside {
    min-height: 250px;
    border-radius: 24px 24px 0 0;
  }

  .quiz-aside-copy {
    margin: 45px 0 0;
  }

  .quiz-aside h2 {
    margin: 12px 0 0;
    font-size: 43px;
  }

  .quiz-aside p,
  .aside-quote {
    display: none;
  }

  .quiz {
    border-top: 0;
    border-left: 1px solid var(--line);
    border-radius: 0 0 24px 24px;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .option {
    min-height: 88px;
  }

  .meal {
    grid-template-columns: 1fr;
  }

  .meal-visual {
    min-height: 380px;
  }

  .meal-content {
    padding: 34px 28px;
  }

  .library-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .library-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tile,
  .tile:nth-child(4),
  .tile:nth-child(5) {
    grid-column: span 1;
  }

  .library-cta {
    align-items: start;
    flex-direction: column;
  }

  footer > p {
    display: none;
  }
}

@media (max-width: 520px) {
  header {
    padding-inline: 16px;
  }

  .brand-copy {
    font-size: 16px;
  }

  .hero {
    padding-inline: 20px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary,
  .hero-actions .text-button {
    width: 100%;
  }

  .hero-proof {
    justify-content: space-between;
    gap: 8px;
  }

  .hero-proof > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 430px;
  }

  .match-card {
    width: 270px;
  }

  .plate {
    width: 165px;
    height: 165px;
  }

  .plate.cover-photo {
    width: 100%;
    height: 155px;
  }

  .orbit-one {
    width: 280px;
    height: 280px;
  }

  .orbit-two {
    width: 340px;
    height: 340px;
  }

  .float-card {
    min-width: 125px;
    padding: 10px 12px;
  }

  .energy {
    top: 55px;
    right: -4px;
  }

  .craving {
    bottom: 48px;
    left: -4px;
  }

  .spark {
    top: 54px;
    left: 28px;
  }

  .quiz-shell {
    padding-inline: 12px;
  }

  .quiz-aside {
    min-height: 220px;
    padding: 26px 22px;
  }

  .quiz {
    padding: 32px 20px;
  }

  .quiz > h2,
  .results h2,
  .empty-state h2 {
    font-size: 40px;
  }

  .preference-box {
    padding: 14px;
  }

  .portion-promise,
  .portion-callout {
    grid-template-columns: 1fr;
  }

  .portion-promise > span,
  .portion-callout strong {
    width: fit-content;
  }

  .result-count {
    position: static;
    display: block;
    margin-top: 9px;
  }

  .meal-visual {
    min-height: 310px;
    padding: 32px;
  }

  .meal-visual::before {
    width: 250px;
    height: 250px;
  }

  .meal-photos img {
    max-height: 210px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .primary,
  .actions .secondary {
    width: 100%;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .tile-art {
    height: 235px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer > div {
    width: 100%;
    justify-content: space-between;
  }

  dialog {
    padding: 38px 24px 28px;
  }
}

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

/* Product landing page expansion */

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2,
.savings-copy h2,
.wellness-head h2,
.membership-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(46px, 5.6vw, 74px);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.section-heading h2 em,
.wellness-head h2 em {
  color: var(--forest);
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.section-heading > p,
.savings-copy > p,
.wellness-head > p,
.membership-copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.value-section,
.wellness-section,
.membership-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 110px clamp(22px, 4vw, 56px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-card {
  min-height: 300px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.category-card:nth-child(2) {
  background: var(--mint);
}

.category-card:nth-child(3) {
  background: var(--lime-soft);
}

.category-card:nth-child(4) {
  background: #fee8df;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(22, 60, 45, 0.09);
}

.category-number,
.category-count {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-number {
  color: var(--coral);
}

.category-count {
  margin: 52px 0 13px;
  color: var(--muted);
}

.category-card strong {
  max-width: 190px;
  font-size: 25px;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.category-card small {
  margin: 13px 0 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.category-arrow {
  margin-top: auto;
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
}

.savings-section {
  max-width: 1240px;
  margin: 30px auto;
  padding: 80px clamp(28px, 6vw, 78px);
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  border-radius: 38px;
  background: var(--forest-deep);
  color: var(--white);
  overflow: hidden;
}

.savings-copy {
  position: relative;
  z-index: 1;
}

.savings-copy .eyebrow,
.membership-section .eyebrow {
  color: var(--lime);
}

.savings-copy h2,
.membership-copy h2 {
  color: var(--white);
}

.savings-copy > p,
.membership-copy > p {
  color: rgba(255, 255, 255, 0.64);
}

.savings-note {
  margin-top: 26px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.6;
}

.savings-note strong {
  color: var(--white);
}

.calculator {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.calculator::before {
  content: '';
  position: absolute;
  top: -34px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--coral);
  z-index: -1;
}

.calculator-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.calculator-top span:last-child {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.calculator-result {
  margin: 34px 0 28px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 3px;
}

.calculator-result > span {
  align-self: start;
  margin-top: 12px;
  font-size: 25px;
  font-weight: 700;
}

.calculator-result strong {
  font-size: clamp(68px, 9vw, 112px);
  letter-spacing: -0.09em;
  line-height: 0.76;
}

.calculator-result small {
  max-width: 110px;
  padding: 0 0 3px 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
}

.calculator-fields {
  display: grid;
  gap: 18px;
}

.calculator-fields label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.calculator-fields label > span {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}

.calculator-fields input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--forest);
}

.calculator-formula {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.wellness-section {
  padding-top: 130px;
  padding-bottom: 70px;
}

.wellness-head {
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.46fr);
  align-items: end;
  gap: 60px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.guidance-grid article {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.guidance-grid article:nth-child(2) {
  background: var(--mint);
}

.guidance-grid article:nth-child(3) {
  background: var(--forest);
  color: var(--white);
}

.guidance-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest-deep);
  font-size: 9px;
  font-weight: 700;
}

.guidance-grid h3 {
  margin: 60px 0 16px;
  font-size: 27px;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.guidance-grid p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.guidance-grid article:nth-child(3) p {
  color: rgba(255, 255, 255, 0.64);
}

.guidance-grid a {
  margin-top: auto;
  font-size: 9px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.goal-bar {
  margin-top: 14px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.goal-bar strong,
.goal-bar span {
  display: block;
}

.goal-bar strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.goal-bar span,
.goal-bar a {
  color: var(--muted);
  font-size: 9px;
}

.goal-bar a {
  flex: 0 0 auto;
  color: var(--forest);
  font-weight: 700;
}

.membership-section {
  max-width: 1160px;
  margin-bottom: 80px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: center;
  gap: 80px;
  border-radius: 38px;
  background: var(--forest);
}

.pricing-card {
  padding: 32px;
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.18);
}

.pricing-card > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.pricing-price {
  margin: 18px 0 20px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.pricing-price strong {
  font-size: 70px;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.pricing-price small {
  padding-bottom: 6px;
  color: var(--muted);
}

.pricing-card ul {
  margin: 22px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding: 7px 0 7px 24px;
  color: var(--ink-soft);
  font-size: 10px;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 700;
}

.pricing-card .primary {
  width: 100%;
}

.pricing-card > small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.meal-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 9px;
  text-align: center;
}

.meal-fallback > span {
  display: block;
  font-size: clamp(68px, 9vw, 118px);
  filter: drop-shadow(0 16px 18px rgba(22, 60, 45, 0.12));
}

.meal-fallback > small {
  color: var(--forest);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Meal database controls */

.library-controls {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.search-control {
  display: block;
  margin-bottom: 16px;
}

.search-control > span,
.select-filters label {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-control input {
  width: 100%;
  margin-top: 7px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
}

.category-filters,
.library-diet {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.category-filters {
  margin-bottom: 16px;
}

.category-filters button,
.library-diet button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.category-filters button[aria-pressed='true'],
.library-diet button[aria-pressed='true'] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--lime);
}

.select-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.select-filters select {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 9px;
}

.library-summary {
  margin: 20px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.library-summary strong {
  font-size: 30px;
  letter-spacing: -0.06em;
}

.library-summary span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.library-summary button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.library-grid .database-tile,
.library-grid .database-tile:nth-child(4),
.library-grid .database-tile:nth-child(5) {
  grid-column: span 2;
}

.database-tile .tile-art.meal-fallback {
  height: 220px;
  background: var(--mint);
}

.database-tile:nth-child(4n + 2) .tile-art {
  background: var(--lime-soft);
}

.database-tile:nth-child(4n + 3) .tile-art {
  background: #fee8df;
}

.database-tile .meal-fallback > span {
  font-size: 76px;
}

.database-tile .tile-content > p {
  min-height: 0;
}

.database-tile details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.database-tile summary {
  display: flex;
  justify-content: space-between;
  color: var(--forest);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  list-style: none;
}

.database-tile details[open] summary span {
  transform: rotate(45deg);
}

.database-tile details p {
  min-height: 0;
  margin: 12px 0 0;
}

.database-tile details small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.library-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  text-align: center;
}

.library-empty > span {
  font-size: 32px;
}

.library-more {
  min-height: 78px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.library-more .secondary {
  min-width: 250px;
  justify-content: center;
}

.library-more .secondary span {
  margin-left: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.library-empty h3 {
  margin: 18px 0 8px;
}

.library-empty p {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1000px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-card {
    min-height: 250px;
  }

  .select-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .library-diet {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  nav button:not(.nav-cta) {
    display: none;
  }

  .value-section,
  .wellness-section,
  .membership-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .savings-section {
    margin-inline: 14px;
    grid-template-columns: 1fr;
  }

  .wellness-head,
  .membership-section {
    grid-template-columns: 1fr;
  }

  .guidance-grid {
    grid-template-columns: 1fr;
  }

  .guidance-grid article {
    min-height: 310px;
  }

  .membership-section {
    margin-inline: 14px;
    padding-inline: 32px;
    gap: 40px;
  }

  .goal-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-grid .database-tile,
  .library-grid .database-tile:nth-child(4),
  .library-grid .database-tile:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 230px;
  }

  .savings-section {
    padding-inline: 22px;
    border-radius: 26px;
  }

  .calculator {
    padding-inline: 22px;
  }

  .calculator-result {
    grid-template-columns: auto auto;
  }

  .calculator-result small {
    grid-column: 1 / -1;
    padding: 14px 0 0;
  }

  .wellness-head {
    gap: 20px;
  }

  .select-filters {
    grid-template-columns: 1fr;
  }

  .library-diet {
    grid-column: auto;
  }

  .database-tile .tile-art.meal-fallback {
    height: 235px;
  }
}
