:root {
  --ink: #17392d;
  --muted: #67766f;
  --cream: #f8f5ed;
  --paper: #fffdf8;
  --green: #1f7a57;
  --green-dark: #14533c;
  --green-soft: #dcebdd;
  --orange: #ff7b42;
  --yellow: #f6c851;
  --line: #dde3dd;
  --danger: #b63f35;
  --shadow: 0 20px 60px rgba(28, 68, 51, 0.11);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  width: min(1240px, calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}
.site-header nav { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
.site-header nav a:hover { color: var(--green); }
.header-cta { justify-self: end; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 700; }

.hero {
  width: min(1380px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  background: #edf0db;
  border-radius: 38px;
  overflow: hidden;
}
.hero-copy { padding: clamp(48px, 7vw, 104px); align-self: center; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, h4, h5, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(58px, 7vw, 106px); line-height: 0.91; letter-spacing: -0.07em; }
.hero-lead { max-width: 520px; margin-bottom: 34px; color: #42584f; font-size: 19px; line-height: 1.65; }
.primary-button, .secondary-button, .text-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 26px;
  color: white;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(31, 122, 87, 0.25);
}
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.secondary-button { padding: 13px 18px; background: var(--green-soft); }
.text-button { padding: 12px; background: transparent; color: var(--green); }
.hero-points { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points span { padding: 9px 13px; background: rgba(255, 255, 255, 0.65); border-radius: 999px; font-size: 12px; font-weight: 700; }
.hero-media { position: relative; min-height: 600px; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.animation-slot {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 180px;
  height: 80px;
  display: none;
  place-items: center;
  padding: 15px;
  border: 1px dashed rgba(23, 57, 45, 0.35);
  border-radius: 20px;
  background: rgba(255,255,255,.65);
  font-size: 11px;
  text-align: center;
}

.how-section, .builder-shell { width: min(1180px, calc(100% - 40px)); margin: 120px auto; }
.how-section h2, .builder-heading h2 { max-width: 780px; margin-bottom: 52px; font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: -0.05em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { min-height: 240px; padding: 32px; background: var(--paper); border-radius: var(--radius-md); box-shadow: 0 1px 0 var(--line); }
.steps strong { color: var(--orange); font-size: 13px; }
.steps h3 { margin: 70px 0 10px; font-size: 22px; }
.steps p { color: var(--muted); line-height: 1.6; }

.builder-heading { text-align: center; }
.builder-heading h2 { margin-left: auto; margin-right: auto; margin-bottom: 18px; }
.builder-heading > p:last-child { color: var(--muted); }
.progress {
  max-width: 670px;
  margin: 42px auto 46px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.progress li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #93a199;
  font-size: 12px;
  font-weight: 700;
}
.progress li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 58%; width: 84%; height: 2px; background: var(--line); }
.progress span { z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e6e9e4; }
.progress .active, .progress .done { color: var(--green); }
.progress .active span, .progress .done span { color: white; background: var(--green); }
.progress .done::after { background: var(--green) !important; }
.loading-state { padding: 80px; text-align: center; color: var(--muted); }
.panel { padding: clamp(24px, 4vw, 54px); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel-copy { max-width: 620px; }
.panel-copy h3, .menu-toolbar h3, .checkout-layout h3 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.04em; }
.panel-copy p { color: var(--muted); line-height: 1.65; }
.step-kicker { display: block; margin-bottom: 9px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.date-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.date-card {
  min-height: 112px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  cursor: pointer;
}
.date-card span, .date-card small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.date-card strong { margin: 4px 0; font-size: 28px; }
.date-card:hover, .date-card.selected { border-color: var(--green); background: var(--green-soft); }
.duration-picker { margin-top: 34px; padding: 24px; display: flex; justify-content: space-between; gap: 24px; align-items: center; background: #f3f4ec; border-radius: 20px; }
.duration-picker > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.duration-picker span { color: var(--muted); font-size: 12px; }
.duration-options { display: flex; gap: 8px; }
.duration-options button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: white; cursor: pointer; font-weight: 800; }
.duration-options button.selected { color: white; background: var(--green); }
.panel-actions { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.panel-actions > span { color: var(--muted); font-size: 14px; }

.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.day-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-tabs button { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); cursor: pointer; text-align: left; }
.day-tabs button.active { border-color: var(--green); background: var(--green); color: white; }
.day-tabs span, .day-tabs small { font-size: 10px; }
.day-tabs small { opacity: .72; }
.menu-toolbar { grid-column: 1 / 2; margin: 26px 0 4px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.menu-toolbar h3 { margin-bottom: 0; text-transform: capitalize; }
.meal-sections { grid-column: 1 / 2; display: grid; gap: 18px; }
.meal-section { padding: 26px; background: var(--paper); border-radius: var(--radius-md); box-shadow: 0 1px 0 var(--line); }
.meal-section-heading { margin-bottom: 20px; display: flex; gap: 14px; align-items: center; }
.meal-section-heading > span { color: var(--orange); font-size: 12px; font-weight: 800; }
.meal-section-heading h4 { margin-bottom: 3px; font-size: 24px; }
.meal-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dish-card { padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 18px; background: #f7f7f1; cursor: pointer; text-align: left; }
.dish-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(30, 60, 48, .1); }
.dish-card.selected { border-color: var(--green); background: #edf5ed; }
.dish-image { position: relative; height: 150px; overflow: hidden; }
.dish-image img { width: 100%; height: 100%; object-fit: cover; }
.dish-image span { position: absolute; right: 10px; bottom: 10px; padding: 7px 10px; color: white; background: rgba(20, 83, 60, .88); border-radius: 999px; font-size: 10px; font-weight: 800; }
.dish-copy { padding: 16px; }
.dish-copy h5 { margin-bottom: 6px; font-size: 15px; }
.dish-copy p { min-height: 48px; margin-bottom: 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.macros { display: flex; flex-wrap: wrap; gap: 6px; font-size: 10px; color: var(--muted); }
.macros strong { color: var(--green); }
.dish-price { margin-top: 13px; font-size: 17px; font-weight: 800; }
.summary-card { position: sticky; top: 18px; margin-top: 26px; padding: 24px; background: var(--ink); color: white; border-radius: var(--radius-md); box-shadow: var(--shadow); }
.summary-heading, .summary-current, .summary-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary-heading { margin-bottom: 18px; }
.summary-current { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); font-size: 12px; }
.summary-macros { margin: 8px 0 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.summary-macros div { padding: 10px; display: flex; flex-direction: column; border-radius: 12px; background: rgba(255,255,255,.08); }
.summary-macros span { margin-top: 2px; color: rgba(255,255,255,.6); font-size: 9px; }
.summary-total { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 18px; }
.summary-total strong { font-size: 23px; }
.summary-card .primary-button { width: 100%; margin-top: 8px; background: var(--orange); box-shadow: none; }
.summary-card .text-button { width: 100%; color: white; opacity: .72; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 24px; align-items: start; }
.checkout-form { display: grid; gap: 18px; }
.checkout-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; outline: 0; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,87,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-form .consent { display: flex; grid-template-columns: auto 1fr; align-items: center; font-weight: 500; }
.consent input { width: 18px; height: 18px; accent-color: var(--green); }
.form-status { padding: 10px 12px; color: var(--green); background: var(--green-soft); border-radius: 10px; font-size: 12px; }
.form-status:empty { display: none; }
.form-status.error { color: var(--danger); background: #f9dfdc; }
.order-review { position: sticky; top: 18px; padding: 28px; background: var(--ink); color: white; border-radius: var(--radius-md); }
.order-review details { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.order-review summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.order-review ul { margin: 12px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.order-review li { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.72); font-size: 10px; }
.success-card, .error-card { max-width: 680px; margin: 0 auto; padding: 70px 40px; text-align: center; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.success-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 30px; }
.success-card h3 { margin-bottom: 12px; font-size: 38px; }
.success-card p:not(.eyebrow) { max-width: 480px; margin: 0 auto 26px; color: var(--muted); line-height: 1.6; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto 40px; padding: 34px 0; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 50px; }
  .hero-media { min-height: 500px; }
  .date-grid { grid-template-columns: repeat(5, 1fr); }
  .menu-layout { grid-template-columns: 1fr; }
  .day-tabs { overflow-x: auto; grid-template-columns: repeat(7, minmax(125px, 1fr)); padding-bottom: 5px; }
  .menu-toolbar, .meal-sections { grid-column: 1; }
  .summary-card { position: static; grid-row: auto; margin-top: 0; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-review { position: static; }
}

@media (max-width: 700px) {
  .site-header { width: calc(100% - 28px); height: 68px; }
  .header-cta { padding: 10px 14px; font-size: 11px; }
  .hero { width: calc(100% - 16px); min-height: 0; border-radius: 26px; }
  .hero-copy { padding: 46px 24px 38px; }
  h1 { font-size: 58px; }
  .hero-lead { font-size: 16px; }
  .hero-media { min-height: 360px; }
  .how-section, .builder-shell { width: calc(100% - 24px); margin: 82px auto; }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: 170px; }
  .steps h3 { margin-top: 35px; }
  .progress { margin-bottom: 28px; }
  .panel { padding: 24px 17px; border-radius: 24px; }
  .date-grid { display: flex; overflow-x: auto; padding-bottom: 8px; }
  .date-card { min-width: 76px; }
  .duration-picker { align-items: stretch; flex-direction: column; }
  .duration-options { display: grid; grid-template-columns: repeat(7, 1fr); }
  .duration-options button { width: 100%; aspect-ratio: 1; height: auto; }
  .panel-actions { align-items: stretch; flex-direction: column; }
  .panel-actions .primary-button { width: 100%; }
  .menu-toolbar { align-items: stretch; flex-direction: column; }
  .dish-grid { grid-template-columns: 1fr; }
  .dish-card { display: grid; grid-template-columns: 120px 1fr; }
  .dish-image { height: 100%; min-height: 170px; }
  .dish-copy p { min-height: 0; }
  .meal-section { padding: 18px 14px; }
  .form-row { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 15px; }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-button, .dish-card, .date-card { transition: .2s ease; }
  .hero-media > img { animation: hero-in 1s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
