/* MealCave site — standard meal prep storefront, EatFit layout pattern */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; margin: 0; padding: 0; overflow-x: clip; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime-600); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--bleed); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--lime { background: var(--lime-50); }
.muted { color: var(--ink-2); }

/* Type */
h1, h2, h3 { font-family: var(--font); margin: 0; letter-spacing: -.02em; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; font-weight: 600; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 600; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-700); margin-bottom: var(--s-3); }
.lead { font-size: 19px; color: var(--ink-2); margin: var(--s-4) 0 0; max-width: 52ch; }
.hl { color: var(--lime-700); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--s-7); }
.section-head .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.btn--primary { background: var(--lime-500); color: var(--ink); }
.btn--primary:hover { background: var(--lime-600); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2622; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--ink-3); pointer-events: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Announcement + header */
.announce { background: var(--lime-500); color: var(--ink); font-size: 14px; font-weight: 500; text-align: center; padding: 8px var(--bleed); }
.announce b { font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 72px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink-2); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: var(--s-3); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 15px; }
.cart-btn:hover { border-color: var(--ink); }
.cart-btn__n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--lime-500); font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.is-open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--bleed) 16px; }
  .nav__links.is-open a { display: block; padding: 12px 0; font-size: 18px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav .btn--primary { display: none; }
}

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--section); background: linear-gradient(180deg, var(--lime-50), #fff 70%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__price { margin-top: var(--s-5); font-size: 16px; color: var(--ink-2); }
.hero__price b { color: var(--ink); }
.ticks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; margin: var(--s-5) 0 0; font-weight: 500; font-size: 15px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .icon { width: 18px; height: 18px; color: var(--lime-700); }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.float-card { position: absolute; left: -28px; bottom: 32px; background: #fff; border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; gap: 18px; align-items: center; text-decoration: none; }
.float-card div { display: grid; line-height: 1.2; }
.float-card b { font-size: 20px; }
.float-card span { font-size: 13px; color: var(--ink-2); }
.float-card .price { color: var(--lime-700); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media img { aspect-ratio: 4 / 3; }
  .float-card { left: 12px; bottom: 12px; }
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); padding: var(--s-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { text-align: center; }
.stats b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.02em; }
.stats span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Tabs + filters */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--s-6); }
.tab, .chip { min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: 15px; transition: all var(--t) var(--ease); }
.tab:hover, .chip:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--lime-100); border-color: var(--lime-600); color: var(--ink); }
.toolbar { position: sticky; top: 72px; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: var(--s-6); }
.toolbar .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.toolbar .tabs { margin: 0; justify-content: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Product card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-5); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.badge--lime { background: var(--lime-500); }
.badge--spicy { color: var(--ember); }
.badge--out { background: var(--ink); color: #fff; }
.card__body { padding: var(--s-4); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.card__name { font-size: 18px; font-weight: 600; line-height: 1.25; margin: 0; }
.card__name button { all: unset; cursor: pointer; }
.card__name button:hover { color: var(--lime-700); }
.macros { display: flex; gap: 14px; font-size: 14px; color: var(--ink-2); }
.macros b { color: var(--ink); font-weight: 600; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font-size: 18px; font-weight: 600; }
.price small { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.card.is-out { opacity: .6; }
.add-btn { min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 0; background: var(--lime-500); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.add-btn:hover { background: var(--lime-600); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--lime-600); border-radius: var(--r-pill); background: var(--lime-50); }
.stepper button { width: 44px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 20px; font-weight: 500; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; }
.variant { min-height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; background: #fff; font-size: 14px; }
.empty { text-align: center; color: var(--ink-2); padding: var(--s-7) 0; display: none; }
.center { text-align: center; margin-top: var(--s-6); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.step img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.step__body { padding: var(--s-5); }
.step__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime-500); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.step p { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Box savings tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.tier { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); display: flex; flex-direction: column; gap: 6px; }
.tier.is-popular { border-color: var(--lime-500); box-shadow: 0 0 0 4px var(--lime-100); }
.tier__tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.tier.is-popular .tier__tag { color: var(--lime-700); }
.tier__n { font-size: 22px; font-weight: 600; }
.tier__off { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.tier__per { color: var(--ink-2); font-size: 15px; }
.tier .btn { margin-top: var(--s-3); }
@media (max-width: 960px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.list-check { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check .icon { color: var(--lime-700); margin-top: 3px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); display: flex; flex-direction: column; gap: 12px; }
.stars { color: var(--lime-600); letter-spacing: 2px; font-size: 16px; }
.review p { margin: 0; font-size: 17px; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.review footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sample { color: var(--ember); font-weight: 600; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: var(--s-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* Delivery check */
.zip { display: flex; gap: 8px; max-width: 440px; margin-top: var(--s-5); }
.zip input { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: 16px; }
.zip input:focus { outline: none; border-color: var(--lime-600); }
.zip-result { margin: 10px 0 0; min-height: 24px; font-size: 15px; color: var(--ink-2); }
.zip-result.is-yes { color: var(--lime-700); font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--lime-700); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* Newsletter */
.signup { background: var(--lime-500); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-6); align-items: center; }
.signup form { display: flex; gap: 8px; }
.signup input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: var(--r-pill); border: 0; font-size: 16px; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; } .signup form { flex-direction: column; } }

/* Footer */
.footer { background: var(--bg-soft); color: var(--ink); padding: var(--s-8) 0 var(--s-5); margin-top: var(--section); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-6); }
.footer h4 { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--lime-700); }
.footer__base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* Cart drawer ("Your box") + product modal */
.overlay { position: fixed; inset: 0; z-index: 80; display: none; }
.overlay.is-open { display: block; }
.overlay__scrim { position: absolute; inset: 0; background: rgba(20, 18, 16, .45); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-md); animation: slidein 300ms var(--ease); }
@keyframes slidein { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.box-steps { display: flex; gap: 8px; padding: 12px 20px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.box-steps span { display: inline-flex; align-items: center; gap: 6px; }
.box-steps i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--lime-500); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); }
.progress { padding: 16px 20px; background: var(--lime-50); }
.progress p { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.bar { height: 8px; border-radius: 4px; background: #fff; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--lime-500); transition: width 400ms var(--ease); }
.tier-marks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; }
.line__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.line__meta { font-size: 13px; color: var(--ink-2); }
.line .stepper button { width: 36px; height: 34px; font-size: 18px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sum { display: flex; justify-content: space-between; font-size: 15px; }
.sum--save { color: var(--lime-700); font-weight: 600; }
.sum--total { font-size: 18px; font-weight: 700; }
.bag-choice { display: flex; gap: 8px; font-size: 14px; }
.bag-choice label { flex: 1; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.bag-choice label:has(input:checked) { border-color: var(--lime-600); background: var(--lime-50); }
.bag-choice input { accent-color: var(--lime-600); }
.cart-empty { text-align: center; padding: 48px 12px; color: var(--ink-2); }

.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); display: grid; grid-template-columns: 1fr 1fr; }
.modal__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.modal__body { padding: var(--s-6); display: grid; gap: 14px; align-content: start; }
.modal .drawer__close { position: absolute; top: 12px; right: 12px; }
.nutrition { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.nutrition div { text-align: center; padding: 10px 4px; border-right: 1px solid var(--line); }
.nutrition div:last-child { border-right: 0; }
.nutrition b { display: block; font-size: 20px; }
.nutrition span { font-size: 12px; color: var(--ink-2); }
.modal h3 { font-size: 15px; margin-top: 4px; }
.modal p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .modal { grid-template-columns: 1fr; } .modal__media img { min-height: 220px; max-height: 260px; } }

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
  .mobile-cta .btn { width: 100%; box-shadow: var(--shadow-md); }
  body { padding-bottom: 76px; }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; opacity: 0; transition: opacity 300ms; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.is-on { opacity: 1; }

/* Page header (inner pages) */
.page-head { padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--s-5); }
.countdown { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-pill); background: var(--lime-50); border: 1px solid var(--lime-100); }
.countdown b { font-variant-numeric: tabular-nums; }
.countdown .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s-7); align-items: start; padding-bottom: var(--section); }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--s-6); }
.fieldset legend { font-size: 22px; font-weight: 600; margin-bottom: var(--s-4); }
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input { min-height: 50px; border-radius: var(--r-sm); border: 1.5px solid var(--line); padding: 0 14px; font-size: 16px; }
.field input:focus { outline: none; border-color: var(--lime-600); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.radio-card { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--lime-600); background: var(--lime-50); }
.radio-card input { accent-color: var(--lime-600); width: 18px; height: 18px; }
.summary { position: sticky; top: 96px; background: var(--bg-soft); border-radius: var(--r-md); padding: var(--s-5); display: grid; gap: 10px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } .field-row { grid-template-columns: 1fr; } }
