/* ===========================================================
   TEE — chef-cooked gym meals
   Design: sharp editorial, high-contrast white, "volt" accent.
   =========================================================== */

:root {
  --ink: #0b0b0c;
  --ink-soft: #4a4a4f;
  --line: #e7e7e9;
  --paper: #ffffff;
  --mist: #f5f5f3;
  --volt: #ccff00;          /* the accent — gym/fresh, not rustic */
  --volt-deep: #b6e600;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }

.section-tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.7rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 2px solid var(--ink);
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand-dot { color: var(--volt-deep); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--ink-soft); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 0.55rem 1.1rem; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.cart-count {
  background: var(--volt); color: var(--ink); border-radius: 999px;
  min-width: 1.4rem; height: 1.4rem; display: inline-grid; place-items: center;
  font-size: 0.8rem; font-weight: 800; padding: 0 0.3rem;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
  background: var(--volt); padding: 0.35rem 0.7rem; border-radius: 999px; margin: 0 0 1.2rem;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 900; }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, var(--volt) 62%);
  padding: 0 0.05em;
}
.lede { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 38ch; margin: 1.4rem 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-stats {
  list-style: none; display: flex; gap: 2rem; margin: 2.4rem 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 900; }
.hero-stats span { font-size: 0.82rem; color: var(--ink-soft); }

.hero-media { position: relative; }
.hero-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 70% 10%, #fff 0%, transparent 60%),
    linear-gradient(140deg, #1a1a1d 0%, #2c2c30 100%);
  display: grid; place-items: center; overflow: hidden;
}
.hero-photo::after { content: attr(data-emoji); font-size: clamp(4rem, 12vw, 8rem); filter: grayscale(0.1); }
.hero-badge {
  position: absolute; left: -0.6rem; bottom: 1.2rem;
  background: var(--volt); color: var(--ink); font-weight: 800;
  padding: 0.6rem 1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-size: 0.95rem;
}

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 0.75rem 0; }
.ticker-track {
  display: inline-flex; gap: 1.6rem; white-space: nowrap; align-items: center;
  font-weight: 800; letter-spacing: 0.06em; font-size: 0.95rem;
  animation: scroll-x 26s linear infinite; will-change: transform;
}
.ticker-track span:nth-child(even) { color: var(--volt); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- generic section ---------- */
.how, .menu, .meet, .plans {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem;
  background: var(--mist); transition: transform .15s ease;
}
.step:hover { transform: translateY(-4px); }
.step-num {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--ink); color: var(--volt); font-weight: 900; font-size: 1.2rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- menu ---------- */
.menu-head { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-end; justify-content: space-between; }
.menu-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 0.45rem 1rem; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  transition: background .12s, color .12s;
}
.chip.is-active, .chip:hover { background: var(--ink); color: #fff; }

.menu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.2rem;
}
.meal {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; background: #fff; transition: box-shadow .15s, transform .15s;
}
.meal:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.09); transform: translateY(-3px); }
.meal-photo {
  aspect-ratio: 3 / 2; display: grid; place-items: center; position: relative;
}
.meal-photo::after { content: attr(data-emoji); font-size: 3.4rem; }
.meal-tag {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.28rem 0.6rem; border-radius: 999px;
}
.meal-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.meal-name { font-size: 1.15rem; font-weight: 800; }
.meal-desc { color: var(--ink-soft); font-size: 0.9rem; margin: 0.35rem 0 0.9rem; }
.macros { display: flex; gap: 1rem; margin: 0 0 1.1rem; font-size: 0.8rem; color: var(--ink-soft); }
.macros b { color: var(--ink); }
.meal-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.meal-price { font-weight: 900; font-size: 1.25rem; }
.add-btn {
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 999px; padding: 0.55rem 1rem; font-weight: 800; cursor: pointer;
  transition: background .12s, color .12s;
}
.add-btn:hover { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.add-btn.added { background: var(--volt); color: var(--ink); border-color: var(--volt); }

/* ---------- meet tee ---------- */
.meet {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.meet-photo {
  aspect-ratio: 1 / 1; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(140deg, #16160f 0%, #2a2a18 100%);
  display: grid; place-items: center;
}
.meet-photo::after { content: attr(data-emoji); font-size: clamp(4rem, 11vw, 7rem); }
.meet-copy p { color: var(--ink-soft); margin: 1rem 0 0; }
.meet-copy h2 { margin-bottom: 0.4rem; }
.sig { font-weight: 800; color: var(--ink) !important; font-size: 1.3rem; margin-top: 1.4rem !important; }

/* ---------- plans ---------- */
.plans { text-align: center; }
.plans-lede { color: var(--ink-soft); max-width: 48ch; margin: 0.8rem auto 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; text-align: left; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; position: relative;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.plan-featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-featured .plan-price span { color: var(--volt); }
.plan-flag {
  position: absolute; top: -0.8rem; right: 1.5rem; background: var(--volt); color: var(--ink);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.plan h3 { font-size: 1.5rem; }
.plan-meals { font-weight: 600; opacity: 0.8; margin: 0; }
.plan-price { font-size: 1.1rem; margin: 0.2rem 0 1.2rem; }
.plan-price span { font-size: 2rem; font-weight: 900; }
.plan .btn { margin-top: auto; }
.plan-featured .btn-solid { background: var(--volt); color: var(--ink); border-color: var(--volt); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: #fff; text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; margin-top: 2rem;
}
.foot-brand { font-weight: 900; font-size: 2rem; }
.site-footer p { color: #b9b9bd; margin: 0.7rem 0 0; }
.foot-small { font-size: 0.85rem; color: #7d7d83 !important; }

/* ---------- cart drawer ---------- */
.cart-overlay, .modal-overlay {
  position: fixed; inset: 0; background: rgba(8,8,10,0.45); opacity: 0; visibility: hidden;
  transition: opacity .2s; z-index: 50;
}
.cart-overlay.open, .modal-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: #fff; z-index: 60; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-top { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-top h3 { font-size: 1.3rem; }
.cart-close, .modal-close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.5rem 1.4rem; }
.cart-row { display: grid; grid-template-columns: 3rem 1fr auto; gap: 0.8rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 3rem; height: 3rem; border-radius: 10px; display: grid; place-items: center; font-size: 1.4rem; border: 1px solid var(--line); }
.cart-row-name { font-weight: 700; font-size: 0.95rem; }
.cart-row-price { color: var(--ink-soft); font-size: 0.85rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 1.8rem; height: 1.8rem; border: 0; background: #fff; cursor: pointer; font-weight: 800; font-size: 1rem; }
.qty button:hover { background: var(--mist); }
.qty span { min-width: 1.6rem; text-align: center; font-weight: 700; font-size: 0.9rem; }
.cart-empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; color: var(--ink-soft); padding: 2rem; }
.cart-empty.show { display: flex; }
.cart-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem; }
.cart-foot.hide { display: none; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; font-size: 1rem; }
.cart-subtotal strong { font-size: 1.4rem; font-weight: 900; }
.cart-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin: 0.8rem 0 0; }

/* ---------- checkout modal ---------- */
.modal {
  position: fixed; z-index: 70; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(0.98);
  width: min(460px, 94vw); max-height: 92vh; overflow-y: auto; background: #fff;
  border-radius: 18px; padding: 1.8rem; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1.1rem; }
.modal h3 { font-size: 1.5rem; }
.modal-sub { color: var(--ink-soft); margin: 0.4rem 0 1.3rem; }
#orderForm { display: flex; flex-direction: column; gap: 0.8rem; }
#orderForm label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.85rem; }
#orderForm input, #orderForm textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; font: inherit; font-weight: 500;
}
#orderForm input:focus, #orderForm textarea:focus { outline: 2px solid var(--volt-deep); border-color: var(--volt-deep); }
.modal-total { display: flex; justify-content: space-between; align-items: baseline; padding: 0.8rem 0; font-weight: 700; }
.modal-total strong { font-size: 1.4rem; font-weight: 900; }
.modal-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin: 0.6rem 0 0; }
.checkout-done { display: none; text-align: center; padding: 1rem 0.5rem; }
.checkout-done.show { display: block; }
.done-tick { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--volt); color: var(--ink); font-size: 1.6rem; font-weight: 900; display: grid; place-items: center; margin: 0 auto 1rem; }
.checkout-done p { color: var(--ink-soft); margin: 0.6rem 0 1.4rem; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero, .meet { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 340px; }
  .steps, .menu-grid, .plan-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .steps, .menu-grid, .plan-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
}
