:root {
  --ink: #284226;
  --green: #284226;
  --green-2: #4B7A28;
  --lime: #7AB549;
  --muted: #3F5A3C;
  --muted-on-dark: #D9E6CF;
  --line: #E3DDC4;
  --line-2: #D6CFB2;
  --sage: #EDE8D2;
  --sage-2: #DDE7C9;
  --white: #FFFFFF;
  --danger: #A3281B;
  --cream: #F5F1E2;
  --card: #FFFCF4;
  --green-brand: #568C2E;
  --radius: 24px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.bg-sage { background: var(--sage); }
.bg-green { background: var(--green); color: var(--white); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.bg-green .eyebrow { color: var(--lime); }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.4vw, 76px); line-height: 0.98; letter-spacing: -2px; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -1.5px; }
.lead { font-size: 20px; color: var(--muted); }
.bg-green .lead, .bg-green .muted { color: var(--muted-on-dark); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 999px; font: 700 18px/1.2 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { color: var(--ink); background: #8FC45F; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(245,241,226,.96); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.logo b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.logo span { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 16px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 88px; }
.hero > div { flex: 1 1 440px; min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .h1 em { font-style: normal; color: var(--green); }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 16px; font-weight: 500; }
.tick { display: flex; gap: 8px; align-items: center; }
.tick svg { flex: none; }
.hero-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-photos img { width: 100%; object-fit: cover; border-radius: 28px; }
.hero-photos .big { grid-column: span 2; height: 340px; }
.hero-photos .sm { height: 220px; }
@media (max-width: 560px) { .hero-photos .big { height: 240px; } .hero-photos .sm { height: 160px; } }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card-outline { border: 1.5px solid var(--line-2); }
.card-dark { background: var(--green-2); color: var(--white); }
.card-dark p { color: var(--muted-on-dark); }
.card h3 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--green); line-height: 1; }
.icon-badge { width: 52px; height: 52px; border-radius: 16px; background: var(--green); display: grid; place-items: center; }
.card-dark .icon-badge { background: var(--lime); }

/* Plans */
.plan { border: 1.5px solid var(--line-2); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.plan.featured { background: var(--green); color: var(--white); border-color: var(--green); }
.plan.featured .muted, .plan.featured p { color: var(--muted-on-dark); }
.plan.featured .eyebrow { color: var(--lime); }
.plan h3 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.5px; line-height: 1.1; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; }
.plan .btn { margin-top: auto; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row strong { font-size: 22px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 5px 11px; border-radius: 999px; background: var(--lime); color: var(--ink); text-transform: uppercase; }
.pill-dark { background: #3f6b21; color: #fff; }
.pill-ink { background: var(--ink); color: var(--lime); }
.pill-soft { background: var(--line); color: var(--ink); }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist div { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; }
.strike { text-decoration: line-through; }

/* Dishes */
.dish { background: var(--white); border-radius: 22px; padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid transparent; }
.dish h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.dish p { font-size: 16px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Split section */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split img { width: 100%; height: 480px; object-fit: cover; border-radius: 28px; }
@media (max-width: 560px) { .split img { height: 300px; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { font-size: 21px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--green); }
details[open] summary::after { content: '-'; }
details p { margin-top: 12px; color: var(--muted); }

/* Postcode checker */
.pc-form { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-form input { flex: 1 1 200px; }
.input, select, textarea { font: 500 18px/1.4 var(--body); color: var(--ink); background: var(--white); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; min-height: 52px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(122,181,73,.55); }
label.lbl { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.note { border-radius: 16px; padding: 16px 18px; background: var(--sage); font-size: 16px; }
.note.ok { background: #E3EFD2; }
.note.err { background: #FBE7E4; color: var(--danger); }
.bg-green .note { color: var(--ink); }

/* Footer */
.site-footer { background: var(--sage); }
.site-footer .wrap { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 44px; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-2); padding-top: 24px; font-size: 15px; color: var(--muted); }
.foot-meta a { color: var(--muted); }

/* ---------- Order page ---------- */
.order-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 48px; padding-bottom: 140px; }
.order-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.order-side { flex: 1 1 320px; min-width: 0; position: sticky; top: 96px; }
@media (max-width: 920px) { .order-side { position: static; } }
.panel { border: 1.5px solid var(--line-2); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.panel h2 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.5px; display: flex; gap: 12px; align-items: center; }
.panel h2 .n { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-size: 18px; flex: none; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1.5px solid var(--line-2); border-radius: 18px; cursor: pointer; min-height: 52px; height: 100%; }
.choice label strong { font-size: 18px; }
.choice label span { font-size: 15px; color: var(--muted); }
.choice input:checked + label { border-color: var(--green); background: #EAF2DC; box-shadow: inset 0 0 0 1px var(--green); }
.choice input:focus-visible + label { outline: 3px solid var(--lime); outline-offset: 2px; }
.choice input:disabled + label { opacity: .45; cursor: not-allowed; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); font: 600 15px/1 var(--body); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.meal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.meal { border: 1.5px solid var(--line-2); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.meal.on { border-color: var(--green); background: #F1F6E6; }
.meal-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #F5F1E2; border-radius: 12px; }
.meal-ph { width: 100%; height: 160px; border-radius: 12px; background: var(--sage-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #3F5A3C; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.macros { display: flex; flex-wrap: wrap; gap: 6px; }
.macro { font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: var(--sage); color: var(--ink); }
.macro.p { background: #E3EFD2; }
.meal h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.meal p { font-size: 15px; color: var(--muted); }
.meal .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--green); background: var(--white); color: var(--green); font: 700 22px/1 var(--body); cursor: pointer; }
.qty button.plus { background: var(--green); color: var(--white); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }
.counter { font-weight: 700; }
.counter.done { color: var(--green); }
.summary { background: var(--sage); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.summary h2 { font-family: var(--display); font-weight: 800; font-size: 26px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.sum-total { display: flex; justify-content: space-between; gap: 12px; font-size: 22px; font-weight: 700; border-top: 1px solid var(--line-2); padding-top: 14px; }
.sum-meals { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.mobile-bar { display: none; }
@media (max-width: 920px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line-2); padding: 12px 16px; gap: 12px; align-items: center; justify-content: space-between; }
  .mobile-bar .t { font-weight: 700; font-size: 18px; }
  .mobile-bar .btn { min-height: 48px; padding: 10px 20px; font-size: 16px; }
}
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fields .full { grid-column: 1 / -1; }
.hidden { display: none !important; }

/* ---------- Welcome popup ---------- */
.pop-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(40,66,38,.62); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.pop { position: relative; width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: 28px; padding: 36px; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.pop-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sage); color: var(--ink); font: 700 26px/1 var(--body); cursor: pointer; }
.pop-h { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 36px); line-height: 1.08; letter-spacing: -1px; padding-right: 36px; text-wrap: balance; }
.pop-codes { display: flex; flex-direction: column; gap: 10px; }
.pop-codes div { background: var(--lime); border-radius: 18px; padding: 14px 20px; display: flex; flex-direction: column; gap: 2px; }
.pop-codes b { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 2px; line-height: 1.1; }
.pop-codes span { font-size: 16px; font-weight: 500; }
.pop-no { background: none; border: 0; font: 600 16px/1 var(--body); color: var(--muted); cursor: pointer; padding: 12px; text-decoration: underline; }
.pop-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.pop-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--green); }
.pop .choices { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pop-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .pop { padding: 28px 22px; } }

/* Avocado brand pass: cream page, #FFFCF4 cards, one green accent */
.card, .plan, .dish, .meal, .pop, .input, select, textarea { background-color: var(--card); }
.card-dark { background-color: #35543A; }
.plan.featured { background-color: var(--green); }
.btn-lime { color: var(--ink); }
.eyebrow { color: var(--green-2); }
.bg-green .eyebrow { color: var(--lime); }
.meal .swap { margin: 4px 0 2px; }
.swap-select { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--green); background: var(--white); color: var(--ink, #284226); font: 600 15px/1 var(--body); padding: 0 12px; }
.week-split { background: var(--card, #FFFCF4); border: 1.5px solid var(--green); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.week-split-head { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.week-split-head input { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.week-split-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.week-split-row .swap-select { width: auto; min-width: 170px; }
.swap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swap-group { display: flex; gap: 6px; flex-wrap: wrap; }
.swap-btn { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--green); background: var(--white); color: var(--ink, #284226); font: 600 15px/1 var(--body); cursor: pointer; }
.swap-btn[aria-pressed="true"] { background: var(--green); color: var(--white); }

.chef-box{background:#FFFCF4;border:1px solid #7AB549;border-radius:16px;padding:16px;margin:0 0 16px;display:grid;gap:10px}
.chef-head{display:grid;gap:4px}
.chef-row{display:flex;flex-wrap:wrap;gap:10px}
.chef-row .btn{min-height:44px}
.stack label{display:grid;gap:6px;font-weight:700}
.ptable{width:100%;border-collapse:collapse;background:#FFFCF4;border-radius:14px;overflow:hidden}
.ptable th,.ptable td{text-align:left;padding:12px 14px;border-bottom:1px solid #e5dfc9}
.ptable th{font-weight:700}
.hidden{display:none!important}

/* calculator */
.prog{height:8px;background:#e6e0c8;border-radius:99px;overflow:hidden}
.prog i{display:block;height:100%;width:20%;background:#7AB549;border-radius:99px;transition:width .3s}
.seg{display:flex;gap:6px}
.seg button{flex:1;min-height:44px;border:1px solid #cfc9b0;border-radius:12px;background:#FFFCF4;color:#284226;font:inherit;cursor:pointer}
.seg button[aria-pressed="true"]{background:#568C2E;color:#fff;border-color:#568C2E}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mpills{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mpill{background:#FFFCF4;border:1px solid #dcd6bc;border-radius:20px;padding:14px 8px;text-align:center;display:flex;flex-direction:column;gap:2px}
.mpill-l{font-size:.85rem;color:#568C2E;font-weight:600}
.mpill-g{font-size:1.6rem;line-height:1.1}
.mpill-k{font-size:.8rem;color:#5b6b55}
.big{font-size:1.5rem;font-weight:700;margin:0}
.plan-list{padding-left:18px;margin:8px 0}
.plan-list li{margin:4px 0}
.workings p{margin:4px 0}
@media print{.site-header,.site-footer,form,.btn{display:none!important}}

.hero-photos .big{height:420px;grid-column:1/-1}
.annc{background:#284226;color:#fff;text-align:center;padding:10px 12px;font-size:15px;display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap}
.annc b{color:#cfe8b5;font-variant-numeric:tabular-nums}.annc a{background:#7AB549;color:#fff;padding:6px 14px;border-radius:99px;text-decoration:none;font-weight:700}
.wa-fab{position:fixed;right:14px;bottom:84px;z-index:50;background:#25D366;color:#fff;border-radius:99px;padding:12px 16px;font-weight:700;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.25)}

.meals-done{background:#eef6e6;border:2px solid #7AB549;border-radius:18px;padding:16px;margin-top:8px}
.md-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.md-head strong{color:#284226;font-size:17px}.md-edit{min-height:44px}
.md-list{margin:10px 0 0;padding-left:18px;color:#284226;font-size:15px;line-height:1.6}




.ticker{background:#7AB549;color:#fff;overflow:hidden;white-space:nowrap;font-weight:700;font-size:15px;letter-spacing:.02em}
.ticker-track{display:flex;width:max-content;animation:tick 32s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker-run{display:flex;align-items:center;gap:22px;padding:10px 11px}
.ticker-run span{text-transform:uppercase}.ticker-run i{font-style:normal;color:#284226;opacity:.6}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker-track{animation:none;flex-wrap:wrap;width:auto}.ticker-run+.ticker-run{display:none}.ticker-run{white-space:normal;flex-wrap:wrap;justify-content:center}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.site-header .annc,.site-header .ticker{margin:0}
html{scroll-padding-top:170px}
@media (max-width:560px){.annc{padding:6px 10px;font-size:14px;gap:10px}.annc a{padding:4px 12px}.ticker{font-size:13px}.ticker-run{padding:6px 10px}}

s.was{color:#8a9486;font-weight:400}b.now{color:#3f6b21;font-weight:800}
.code-box{background:#eef6e6;border-radius:16px;padding:12px 14px}

.photo-cap{position:relative;margin:0;border-radius:24px;overflow:hidden;line-height:0}
.photo-cap img{width:100%;height:auto;display:block;border-radius:0!important;object-fit:cover}
.photo-cap figcaption{position:absolute;left:12px;right:12px;bottom:12px;line-height:1.3;background:rgba(40,66,38,.88);color:#fff;font-weight:700;font-size:15px;padding:10px 14px;border-radius:14px;text-align:center}
.hero-photos .photo-cap.big{grid-column:1/-1;height:auto;max-width:440px;justify-self:center;width:100%}
.photo-cap.fav-photo{max-width:520px;margin:0 auto;width:100%}
.photo-cap.side-photo img{max-height:560px}
.pill-new{background:#c2410c;color:#fff}
