/* ============================================================
   Clean Bite — Brand tokens (from the Brand Book)
   ============================================================ */
:root {
  --forest: #0D3B1C;     /* Deep Forest — main brand / headings */
  --green: #3F8F18;      /* Clean Green — buttons / highlights */
  --leaf: #72B82A;       /* Leaf Green — accents / nutrition cues */
  --cream: #F8F7F1;      /* Warm Off-White — main background */
  --ink: #092B18;        /* Ink Green — body text */

  --paper: #FFFFFF;
  --sand: #EFEDE3;
  --line: rgba(13, 59, 28, .12);
  --muted: rgba(9, 43, 24, .62);
  --shadow-sm: 0 2px 8px rgba(13, 59, 28, .06);
  --shadow: 0 18px 40px -18px rgba(13, 59, 28, .28);
  --plate-shadow: drop-shadow(0 22px 26px rgba(13, 59, 28, .22));

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --font: 'Tajawal', 'Poppins', system-ui, sans-serif;
  --font-latin: 'Poppins', 'Tajawal', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[lang="en"] { --font: 'Poppins', 'Tajawal', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--forest); font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.latin, .c-en, .eyebrow, .label, .signature { font-family: var(--font-latin); }

.label {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }
.fine.center { text-align: center; margin-top: 8px; }

/* low-contrast leaf/fork pattern (brand: 5–12% prominence) */
.pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("../assets/brand/mark.png");
  background-size: 110px; background-repeat: space;
  opacity: .035;
}
.pattern.light { background-image: url("../assets/brand/mark-light.png"); opacity: .03; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -10px rgba(63, 143, 24, .7); }
.btn-primary:hover { background: #377d15; }
.btn-primary:disabled { background: #9db58f; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-insta { background: var(--forest); color: var(--cream); }
.btn-insta:hover { background: var(--ink); }
.grow { flex: 1; justify-content: space-between; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 4px;
  font-weight: 700; font-size: 14px; color: var(--leaf);
}
.link-btn svg { width: 16px; height: 16px; }
.link-btn.muted { color: rgba(248, 247, 241, .6); }
.link-btn:hover { text-decoration: underline; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 247, 241, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 50px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-inline-start: auto; font-weight: 700; font-size: 15px; }
.main-nav a { position: relative; padding: 6px 0; color: var(--forest); }
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--leaf); transform: scaleX(0); transition: transform .25s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .cart-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--forest); transition: background .2s;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; }
.lang-btn span { font-family: var(--font-latin); font-weight: 700; font-size: 13px; }
html[lang="en"] .lang-btn span { font-family: 'Tajawal', sans-serif; font-size: 15px; }
.cart-btn { position: relative; background: var(--forest); color: var(--cream); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -3px; inset-inline-end: -3px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--leaf); color: var(--ink); font-size: 12px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--cream); font-family: var(--font-latin);
}
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--green); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 900; letter-spacing: -.01em; }
html[lang="en"] .hero h1 { letter-spacing: -.03em; }
.hero h1 span { color: var(--green); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 30em; margin-top: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: var(--font-latin); font-size: 28px; font-weight: 800; color: var(--forest); line-height: 1; display: flex; align-items: center; height: 32px; }
.hero-facts strong small { font-size: 15px; margin-inline-start: 2px; font-family: var(--font); }
.hero-facts strong svg { width: 30px; height: 30px; color: var(--green); }
.hero-facts span { font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
.orbit {
  position: absolute; inset: 2%; border-radius: 50%;
  border: 1.5px dashed rgba(63, 143, 24, .35);
  animation: spin 80s linear infinite;
}
.orbit::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0, #fff 40%, rgba(255, 255, 255, 0) 71%);
}
.orbit::after {
  content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--leaf);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-plate-wrap { position: absolute; inset: 11%; display: grid; place-items: center; }
.hero-plate {
  width: 100%; height: auto; filter: var(--plate-shadow);
  transition: transform .9s var(--ease), opacity .45s;
}
.hero-plate.swap-out { opacity: 0; transform: rotate(-35deg) scale(.86); }
.hero-plate.swap-in { animation: plateIn .9s var(--ease); }
@keyframes plateIn { from { opacity: 0; transform: rotate(40deg) scale(.86); } to { opacity: 1; transform: none; } }

.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--paper); border-radius: 999px; box-shadow: var(--shadow);
  font-weight: 700; font-size: 14px; color: var(--forest); animation: float 6s ease-in-out infinite;
}
.hero-chip svg { width: 18px; height: 18px; color: var(--green); }
.chip-a { top: 8%; inset-inline-end: 0; }
.chip-b { bottom: 14%; inset-inline-start: -2%; flex-direction: column; gap: 0; border-radius: 22px; padding: 12px 18px; animation-delay: -2s; background: var(--forest); color: var(--cream); }
.chip-b strong { font-family: var(--font-latin); font-size: 26px; line-height: 1; color: var(--leaf); }
.chip-b span { font-size: 12px; opacity: .8; }
.chip-c { bottom: 3%; inset-inline-end: 8%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-dots { position: absolute; top: 50%; inset-inline-start: -28px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(13, 59, 28, .2);
  transition: height .3s var(--ease), background .3s;
}
.hero-dots button[aria-selected="true"] { background: var(--green); height: 28px; border-radius: 6px; }

/* ============================================================
   How it works
   ============================================================ */
.how { padding: 8px 0 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  position: relative; background: var(--paper); border-radius: var(--r); padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.step > svg { width: 34px; height: 34px; color: var(--green); margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.step-n {
  position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--font-latin);
  font-weight: 800; font-size: 44px; line-height: 1; color: rgba(114, 184, 42, .22);
}

/* ============================================================
   Menu
   ============================================================ */
.menu { padding: 64px 0 80px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 8px; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 17px; }
.section-head.on-dark h2 { color: var(--cream); }
.section-head.on-dark .section-sub { color: rgba(248, 247, 241, .72); }
.section-head.on-dark .label { color: var(--leaf); }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  border: 0; background: var(--paper); color: var(--forest); font-weight: 700; font-size: 15px;
  padding: 10px 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: all .2s;
}
.filters button:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.filters button[aria-selected="true"] { background: var(--forest); color: var(--cream); box-shadow: none; }

.meal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 64px 22px; padding-top: 56px; }
.meal-card {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--r-lg); padding: 0 20px 20px; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.meal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.meal-card .plate {
  margin: -56px auto 6px; width: 86%; aspect-ratio: 1.45; display: grid; place-items: center;
  cursor: pointer; background: none; border: 0; padding: 0;
}
.meal-card .plate > img { width: 100%; height: 100%; object-fit: contain; filter: var(--plate-shadow); transition: transform .7s var(--ease); }
.meal-card .plate > * { transition: transform .7s var(--ease); }
.meal-card:hover .plate > * { transform: rotate(-8deg) scale(1.04); }
.meal-tag {
  position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px; background: #FCE9E2; color: #B23A12;
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.meal-card h3 { font-size: 21px; }
.meal-card .en { font-family: var(--font-latin); font-size: 13px; color: var(--green); font-weight: 600; margin-top: 2px; }
.meal-card .desc { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 2.9em; }
.macro-row { display: flex; gap: 6px; margin: 14px 0 16px; flex-wrap: wrap; }
.macro {
  display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 10px; border-radius: 8px;
  background: var(--cream); font-size: 12px; color: var(--muted);
}
.macro b { font-family: var(--font-latin); font-size: 14px; color: var(--forest); }
.macro.kcal { background: rgba(114, 184, 42, .16); }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.price { font-family: var(--font-latin); font-weight: 800; font-size: 22px; color: var(--forest); line-height: 1; margin-inline-end: auto; }
.price small { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); margin-inline-start: 3px; }
.btn-sm {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px;
  border: 0; font-weight: 700; font-size: 14px; transition: background .2s, transform .15s;
}
.btn-sm:active { transform: scale(.95); }
.btn-sm svg { width: 18px; height: 18px; }
.btn-soft { background: var(--cream); color: var(--forest); }
.btn-soft:hover { background: var(--sand); }
.btn-add { background: var(--green); color: #fff; width: 42px; padding: 0; justify-content: center; }
.btn-add:hover { background: #377d15; }

/* placeholder plate for meals without a photo */
.ph-plate {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 50%, #fff 0 52%, #F3F1E8 53% 56%, #fff 57% 100%);
  box-shadow: 0 22px 26px -10px rgba(13, 59, 28, .22), inset 0 0 0 1px rgba(13, 59, 28, .05);
  aspect-ratio: 1; max-height: 100%;
}
.ph-plate div { display: grid; justify-items: center; gap: 4px; }
.ph-plate div img { width: 38%; height: auto; opacity: .9; filter: none; }
.ph-plate span { font-size: 12px; font-weight: 700; color: var(--green); }
.meal-card .plate .ph-plate { width: auto; height: 100%; }

/* ============================================================
   Subscriptions
   ============================================================ */
.plans { position: relative; background: var(--forest); color: var(--cream); padding: 88px 0; overflow: hidden; }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.plan-card {
  position: relative; text-align: start; border: 0; border-radius: var(--r);
  background: rgba(248, 247, 241, .06); color: var(--cream); padding: 24px;
  box-shadow: inset 0 0 0 1.5px rgba(248, 247, 241, .14); transition: all .25s var(--ease);
}
.plan-card:hover { background: rgba(248, 247, 241, .1); }
.plan-card[aria-checked="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.plan-card .p-tag { font-size: 13px; font-weight: 700; color: var(--leaf); }
.plan-card[aria-checked="true"] .p-tag { color: var(--green); }
.plan-card h3 { color: inherit; font-size: 22px; margin: 4px 0 14px; }
.plan-card .p-prices { display: block; }
.plan-card .p-from { display: block; font-size: 13px; opacity: .7; }
.plan-card .p-price { font-family: var(--font-latin); font-weight: 800; font-size: 34px; line-height: 1.1; }
.plan-card .p-price small { font-family: var(--font); font-size: 14px; font-weight: 700; opacity: .7; margin-inline-start: 4px; }
.plan-card .p-save {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(114, 184, 42, .2); color: var(--leaf);
}
.plan-card[aria-checked="true"] .p-save { background: rgba(63, 143, 24, .12); color: var(--green); }
.plan-card .p-badge {
  position: absolute; top: -11px; inset-inline-end: 18px; background: var(--leaf); color: var(--ink);
  font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px;
}
.plan-card .p-check {
  position: absolute; top: 20px; inset-inline-end: 20px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(248, 247, 241, .3);
}
.plan-card[aria-checked="true"] .p-check { background: var(--green); color: #fff; box-shadow: none; }
.plan-card .p-check svg { width: 15px; height: 15px; opacity: 0; }
.plan-card[aria-checked="true"] .p-check svg { opacity: 1; }

.builder { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.builder-main { background: rgba(248, 247, 241, .05); border-radius: var(--r-lg); padding: 26px; box-shadow: inset 0 0 0 1px rgba(248, 247, 241, .1); }
.builder-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.builder-row + .builder-row { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(248, 247, 241, .1); }
.builder-row.col { flex-direction: column; align-items: stretch; }
.builder-h-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.builder-h { color: var(--cream); font-size: 19px; display: flex; align-items: center; gap: 10px; }
.builder-h .num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-latin);
  font-size: 14px; background: var(--leaf); color: var(--ink);
}
.builder-tools { display: flex; gap: 10px; }
.seg { display: inline-flex; background: rgba(0, 0, 0, .22); border-radius: 999px; padding: 4px; }
.seg button {
  border: 0; background: none; color: rgba(248, 247, 241, .8); font-weight: 700; padding: 8px 18px; border-radius: 999px;
  font-size: 15px; transition: all .2s;
}
.seg button[aria-checked="true"] { background: var(--cream); color: var(--forest); }

.sub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 16px; }
.sub-item {
  display: flex; align-items: center; gap: 12px; padding: 10px; padding-inline-end: 12px; border-radius: 16px;
  background: rgba(248, 247, 241, .06); transition: background .2s, box-shadow .2s;
}
.sub-item.on { background: rgba(114, 184, 42, .14); box-shadow: inset 0 0 0 1.5px rgba(114, 184, 42, .55); }
.sub-thumb { width: 54px; height: 54px; flex: none; display: grid; place-items: center; }
.sub-thumb > img { width: 100%; height: 100%; object-fit: contain; }
.sub-thumb .ph-plate { width: 54px; height: 54px; box-shadow: none; }
.sub-thumb .ph-plate span { display: none; }
.sub-info { min-width: 0; flex: 1; }
.sub-info b { display: block; font-size: 15px; line-height: 1.25; }
.sub-info small { font-size: 12px; color: rgba(248, 247, 241, .6); }
.sub-info .custom-link { background: none; border: 0; padding: 0; color: var(--leaf); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.sub-info .custom-link svg { width: 13px; height: 13px; }
.sub-info .custom-link.has { color: #F2D27A; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(248, 247, 241, .12); color: var(--cream); transition: background .2s;
}
.stepper button:hover:not(:disabled) { background: rgba(248, 247, 241, .22); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper button svg { width: 15px; height: 15px; }
.stepper .val { min-width: 26px; text-align: center; font-family: var(--font-latin); font-weight: 700; }

.builder-summary {
  position: sticky; top: 92px; background: var(--cream); color: var(--ink); border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.prog { display: flex; align-items: center; gap: 16px; }
.prog-ring { width: 76px; height: 76px; flex: none; position: relative; }
.prog-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.prog-ring .bg { stroke: var(--sand); }
.prog-ring .fg { stroke: var(--green); transition: stroke-dashoffset .5s var(--ease); }
.prog-ring.full .fg { stroke: var(--leaf); }
.prog-ring span {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-latin); font-weight: 800; font-size: 15px;
  color: var(--forest);
}
.prog h4 { margin: 0; font-size: 17px; color: var(--forest); }
.prog p { font-size: 13px; color: var(--muted); }
.sum-lines { margin: 18px 0; padding: 14px 0; border-block: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; max-height: 210px; overflow: auto; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; }
.sum-line span:last-child { font-family: var(--font-latin); font-weight: 600; white-space: nowrap; }
.sum-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 6px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total b { font-size: 16px; }
.sum-total strong { font-family: var(--font-latin); font-size: 30px; font-weight: 800; color: var(--forest); }
.sum-total strong small { font-family: var(--font); font-size: 14px; color: var(--muted); margin-inline-start: 4px; }
.save-pill {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 12px;
  background: rgba(114, 184, 42, .16); color: var(--green); font-weight: 700; font-size: 14px;
}
.save-pill svg { width: 16px; height: 16px; }
.builder-summary .btn { width: 100%; margin-top: 16px; }
.sum-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ============================================================
   Instagram
   ============================================================ */
.insta { padding: 72px 0; }
.insta-card {
  display: flex; align-items: center; gap: 28px; padding: 32px 36px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.insta-mark { width: 84px; height: auto; }
.insta-card h2 { font-size: 26px; }
.insta-card p { color: var(--muted); margin-top: 4px; }
.insta-card .btn { margin-inline-start: auto; direction: ltr; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(248, 247, 241, .8); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-logo { width: 170px; height: auto; }
.signature { font-size: 12px; letter-spacing: .24em; color: var(--leaf); margin-top: 12px; font-weight: 600; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { display: flex; align-items: center; gap: 10px; font-weight: 600; font-family: var(--font-latin); }
.footer-links a:hover { color: var(--leaf); }
.footer-links svg { width: 22px; height: 22px; color: var(--leaf); }
.copy { grid-column: 1 / -1; font-size: 13px; opacity: .6; border-top: 1px solid rgba(248, 247, 241, .1); padding-top: 20px; }

/* mobile bottom bar */
.mobile-bar {
  position: fixed; z-index: 45; inset-inline: 16px; bottom: max(14px, env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px; height: 58px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--forest); color: var(--cream); font-weight: 700; font-size: 16px; box-shadow: 0 18px 40px -12px rgba(9, 43, 24, .6);
  animation: rise .4s var(--ease);
}
@keyframes rise { from { transform: translateY(120%); } }
.mb-count {
  min-width: 28px; height: 28px; border-radius: 999px; background: var(--leaf); color: var(--ink);
  display: grid; place-items: center; font-family: var(--font-latin); font-size: 14px; padding: 0 6px;
}
.mobile-bar strong { margin-inline-start: auto; font-family: var(--font-latin); }

/* ============================================================
   Overlays: customizer, cart, forms
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(9, 43, 24, .45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px; animation: fade .25s;
}
@keyframes fade { from { opacity: 0; } }
body.locked { overflow: hidden; }
.sheet {
  position: relative; background: var(--cream); border-radius: var(--r-lg); width: min(980px, 100%);
  max-height: calc(100dvh - 40px); overflow: auto; animation: pop .35s var(--ease); overscroll-behavior: contain;
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--forest); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.sheet-close.static { position: static; }
.sheet-close svg { width: 20px; height: 20px; }

.custom-sheet { display: grid; grid-template-columns: 380px 1fr; }
.custom-visual {
  background: var(--paper); padding: 36px 28px 24px; border-start-start-radius: var(--r-lg); border-end-start-radius: var(--r-lg);
  position: sticky; top: 0; align-self: start;
}
.ring-wrap { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 1; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { transition: stroke-dasharray .5s var(--ease), stroke-dashoffset .5s var(--ease); }
.ring-plate { position: absolute; inset: 15%; display: grid; place-items: center; }
.ring-plate > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(13, 59, 28, .2)); }
.ring-plate .ph-plate { width: 100%; height: 100%; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 14px 0 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nutri div { background: var(--cream); border-radius: 14px; padding: 10px 4px; text-align: center; }
.nutri div:first-child { background: var(--forest); color: var(--cream); }
.nutri b { display: block; font-family: var(--font-latin); font-size: 20px; font-weight: 800; color: var(--forest); line-height: 1.2; }
.nutri div:first-child b { color: var(--leaf); }
.nutri small { font-size: 11px; opacity: .75; }

.custom-body { padding: 36px 32px 0; display: flex; flex-direction: column; }
.custom-body h2 { font-size: 30px; margin-top: 4px; }
.c-en { color: var(--green); font-weight: 600; font-size: 14px; }
.goals { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.goals button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--forest); transition: all .2s;
}
.goals button svg { width: 17px; height: 17px; color: var(--green); }
.goals button[aria-checked="true"] { background: var(--forest); color: var(--cream); box-shadow: none; }
.goals button[aria-checked="true"] svg { color: var(--leaf); }
.parts { display: grid; gap: 8px; margin-top: 14px; }
.part {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px;
  background: var(--paper); border-radius: 16px; border: 1px solid var(--line);
}
.part-name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.part-name i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.part-meta { grid-column: 1; font-size: 12px; color: var(--muted); padding-inline-start: 22px; }
.part-meta .plus { color: var(--green); font-weight: 700; }
.part .stepper { grid-row: 1 / span 2; grid-column: 2; }
.part .stepper button { background: var(--cream); color: var(--forest); }
.part .stepper button:hover:not(:disabled) { background: var(--sand); }
.part .stepper .val { min-width: 58px; font-size: 15px; color: var(--forest); }
.part .fixed { grid-row: 1 / span 2; grid-column: 2; font-size: 13px; color: var(--muted); font-weight: 600; }
.swap { display: inline-flex; margin-inline-start: 6px; background: var(--cream); border-radius: 999px; padding: 2px; }
.swap button { border: 0; background: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.swap button[aria-checked="true"] { background: var(--forest); color: var(--cream); }

.extras { margin-top: 18px; }
.extras h4 { margin: 0 0 8px; font-size: 15px; color: var(--forest); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s;
}
.chip small { font-family: var(--font-latin); color: var(--green); font-weight: 700; }
.chip[aria-pressed="true"] { background: rgba(114, 184, 42, .16); box-shadow: inset 0 0 0 1.5px var(--green); }
.chip svg { width: 15px; height: 15px; color: var(--green); }
.chip-qty { display: inline-flex; align-items: center; gap: 4px; }

.note-field { display: grid; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--forest); }
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%; border: 1px solid var(--line); background: var(--paper);
  border-radius: 14px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(114, 184, 42, .2); }
textarea { resize: vertical; min-height: 76px; }
.custom-foot {
  position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; margin: 22px -32px 0; padding: 16px 32px;
  background: linear-gradient(to top, var(--cream) 75%, rgba(248, 247, 241, 0));
}
.qty { display: flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); display: grid; place-items: center; color: var(--forest); }
.qty button svg { width: 16px; height: 16px; }
.qty span { min-width: 26px; text-align: center; font-family: var(--font-latin); font-weight: 700; }
#cPrice { font-family: var(--font-latin); }

/* Cart drawer */
#cart { place-items: stretch; justify-items: end; padding: 0; }
.drawer {
  width: min(440px, 100%); height: 100vh; height: 100dvh; max-height: 100dvh; background: var(--cream);
  display: flex; flex-direction: column; overflow: hidden; animation: slideIn .35s var(--ease);
}
html[dir="rtl"] .drawer { animation-name: slideInRtl; }
#cart { justify-items: end; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideInRtl { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-head { flex: none; }
.drawer-body {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom));
}
/* the WhatsApp send button stays pinned to the bottom of the cart while scrolling */
#orderForm .btn-wa {
  position: sticky; bottom: 0; z-index: 3; margin-top: 18px;
  box-shadow: 0 -14px 18px 4px var(--cream), 0 10px 22px -10px rgba(31, 157, 85, .7);
}
.cart-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.cart-empty img { width: 90px; margin: 0 auto 14px; opacity: .5; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 64px; height: 64px; display: grid; place-items: center; }
.cart-item .thumb > img { width: 100%; height: 100%; object-fit: contain; }
.cart-item .thumb .ph-plate { width: 60px; height: 60px; }
.cart-item .thumb .ph-plate span { display: none; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-top b { font-size: 16px; color: var(--forest); }
.ci-top strong { font-family: var(--font-latin); white-space: nowrap; }
.ci-spec { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.ci-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ci-actions .qty { padding: 2px; }
.ci-actions .qty button { width: 30px; height: 30px; }
.ci-actions .link { background: none; border: 0; font-size: 13px; font-weight: 700; color: var(--green); display: inline-flex; gap: 4px; align-items: center; padding: 4px; }
.ci-actions .link svg { width: 15px; height: 15px; }
.ci-actions .link.danger { color: #A33A1C; margin-inline-start: auto; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 4px; }
.cart-total b { font-size: 17px; }
.cart-total strong { font-family: var(--font-latin); font-size: 28px; color: var(--forest); }
.hint { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.hint svg { width: 16px; height: 16px; color: var(--green); }

/* forms */
.form-title { font-size: 18px; margin: 24px 0 10px; color: var(--forest); }
.form-grid { display: grid; gap: 12px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--forest); }
.field.err input, .field.err textarea { border-color: #C2451E; box-shadow: 0 0 0 3px rgba(194, 69, 30, .12); }
.field .msg { font-size: 12px; color: #C2451E; font-weight: 600; min-height: 0; }
.time-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.time-seg button {
  border: 0; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--forest);
}
.time-seg button[aria-checked="true"] { background: var(--forest); color: var(--cream); box-shadow: none; }
.btn-wa { background: #1F9D55; color: #fff; width: 100%; margin-top: 18px; }
.btn-wa:hover { background: #198a4a; }

.form-sheet { width: min(560px, 100%); padding: 32px 28px 28px; }
.form-sheet h2 { font-size: 28px; margin-top: 6px; }
.recap { margin-top: 16px; background: var(--paper); border-radius: 18px; padding: 16px; font-size: 14px; display: grid; gap: 6px; border: 1px solid var(--line); }
.recap .sum-line strong { font-family: var(--font-latin); }

/* toast */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 8px; transition: all .35s var(--ease); box-shadow: var(--shadow); white-space: nowrap;
}
.toast svg { width: 18px; height: 18px; color: var(--leaf); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .builder { grid-template-columns: 1fr; }
  .builder-summary { position: static; }
  .custom-sheet { grid-template-columns: 1fr; }
  .custom-visual { position: static; border-radius: var(--r-lg) var(--r-lg) 0 0; display: grid; grid-template-columns: 200px 1fr; gap: 0 20px; align-items: center; padding: 28px 24px 18px; padding-inline-end: 66px; }
  .custom-visual .ring-wrap { grid-row: 1 / span 3; }
  .custom-visual .legend { justify-content: flex-start; margin: 0 0 12px; }
  .custom-visual .fine.center { text-align: start; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .hero { padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { order: 2; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-ctas, .hero-facts { justify-content: center; }
  .hero-visual { order: 1; max-width: 420px; }
  .hero-dots { flex-direction: row; top: auto; bottom: -18px; inset-inline-start: 50%; transform: translateX(50%); }
  html[dir="ltr"] .hero-dots { transform: translateX(-50%); }
  .hero-dots button[aria-selected="true"] { height: 10px; width: 28px; }
  .steps { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
  .plan-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 12px; padding: 20px; }
  .plan-card h3 { margin-bottom: 0; }
  .plan-card .p-tag, .plan-card h3 { grid-column: 1; }
  .plan-card .p-prices { grid-column: 2; grid-row: 1 / span 2; text-align: end; }
  .plan-card .p-check { position: static; display: none; }
  .plan-card .p-price { font-size: 26px; }
  .plan-card .p-save { margin-top: 6px; }
  .insta-card { flex-direction: column; text-align: center; padding: 28px 20px; }
  .insta-card .btn { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto; }
  .footer-links { justify-items: center; }
  .mobile-bar:not([hidden]) { display: flex; }
  body.has-cart .site-footer { padding-bottom: 100px; }
}
@media (max-width: 640px) {
  .overlay { padding: 0; place-items: end stretch; }
  .sheet { border-radius: 26px 26px 0 0; max-height: 94dvh; width: 100%; animation-name: sheetUp; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .custom-visual { grid-template-columns: 120px 1fr; gap: 0 12px; padding: 22px 16px 14px; padding-inline-end: 62px; border-radius: 26px 26px 0 0; }
  .custom-visual .legend { display: none; }
  .nutri { grid-template-columns: repeat(2, 1fr); }
  .nutri b { font-size: 17px; }
  .custom-body { padding: 20px 16px 0; }
  .custom-body h2 { font-size: 24px; }
  .custom-foot { margin: 18px -16px 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .part { padding: 10px 12px; }
  .part .stepper .val { min-width: 48px; font-size: 14px; }
  .form-sheet { padding: 26px 16px 20px; }
  .form-grid .two { grid-template-columns: 1fr; }
  .meal-grid { grid-template-columns: 1fr; gap: 60px; }
  .builder-main { padding: 18px 14px; }
  .sub-list { grid-template-columns: 1fr; }
  .hero-chip { font-size: 12px; padding: 8px 12px; }
  .chip-b strong { font-size: 20px; }
  .brand img { height: 42px; }
  .hero-facts { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
