:root {
  color-scheme: light;
  --ink: #1d1c1a;
  --muted: #68655f;
  --cream: #fffaf1;
  --paper: #ffffff;
  --coral: #f45d48;
  --coral-dark: #d94231;
  --green: #178043;
  --green-deep: #0d5d32;
  --lime: #98c93c;
  --gold: #e8ae35;
  --soil: #aa5d2b;
  --line: #e7e0d4;
  --shadow: 0 26px 80px rgba(53, 38, 17, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(4, 68, 43, 0.18), rgba(246, 250, 231, 0.52)),
    url("pasture-background.png") center 38% / cover fixed;
  background:
    linear-gradient(180deg, rgba(4, 68, 43, 0.18), rgba(246, 250, 231, 0.52)),
    image-set(url("/assets/survey-v1/pasture-background.6eb22717d51c.webp") type("image/webp"), url("pasture-background.png") type("image/png")) center 38% / cover fixed;
  transition: background-color 300ms ease;
}

body.welcome-active {
  background:
    linear-gradient(180deg, rgba(7, 75, 47, 0.12), rgba(255, 250, 241, 0.48)),
    url("pasture-background.png") center 38% / cover fixed;
  background:
    linear-gradient(180deg, rgba(7, 75, 47, 0.12), rgba(255, 250, 241, 0.48)),
    image-set(url("/assets/survey-v1/pasture-background.6eb22717d51c.webp") type("image/webp"), url("pasture-background.png") type("image/png")) center 38% / cover fixed;
}

button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 24px 20px 30px;
}

.brand-bar, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 18px;
}

.brand-bar .wordmark { grid-column: 2; }
.brand-bar .preview-pill { grid-column: 3; justify-self: end; }

.wordmark {
  display: block;
  width: 220px;
  height: 44px;
  text-decoration: none;
}

.wordmark img { display: block; width: 100%; height: 100%; object-fit: cover; }

.preview-pill {
  padding: 7px 11px;
  border: 1px solid rgba(29, 28, 26, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
}

.survey-card {
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(74, 55, 27, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

body.welcome-active .survey-card { background: rgba(255, 255, 255, 0.9); }

.survey-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 28px 13px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.back-button {
  width: max-content;
  padding: 6px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.back-button[hidden] { display: block; visibility: hidden; }
.step-label { text-align: center; }
.time-note { text-align: right; }

.progress-track { height: 5px; background: #eee8de; }
.progress-fill {
  width: 20%;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--coral), #ff9a5d);
  transition: width 300ms ease;
}
.selected-restaurant {
  width: fit-content;
  margin: 14px 32px 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #eaf8ed;
  font-size: 0.78rem;
  font-weight: 800;
}

form { padding: 0; }
.step {
  display: none;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 58px) clamp(24px, 6vw, 58px) 18px;
  animation: enter 280ms ease both;
}
.step.is-active { display: block; }

.welcome-landscape {
  position: relative;
  min-height: 190px;
  margin: -18px -20px 28px;
  overflow: hidden;
  border: 1px solid rgba(13, 93, 50, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, transparent 35%, rgba(8, 67, 39, 0.68) 100%),
    url("pasture-background.png") center 52% / cover no-repeat;
  background:
    linear-gradient(180deg, transparent 35%, rgba(8, 67, 39, 0.68) 100%),
    image-set(url("/assets/survey-v1/pasture-background.6eb22717d51c.webp") type("image/webp"), url("pasture-background.png") type("image/png")) center 52% / cover no-repeat;
  box-shadow: inset 0 -24px 50px rgba(8, 67, 39, 0.13);
}

.welcome-landscape span {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  color: #fff;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}

.welcome-landscape > span { padding-right: 122px; }

.welcome-cow {
  position: absolute;
  right: clamp(18px, 5vw, 42px);
  bottom: 44px;
  z-index: 1;
  width: clamp(76px, 16vw, 116px);
  height: auto;
  opacity: 0.84;
  filter: drop-shadow(0 7px 8px rgba(7, 52, 30, 0.24));
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 600px;
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.5;
}

.field-label, fieldset legend {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 9px;
  font-weight: 800;
  font-size: 0.92rem;
}
.field-label span { color: var(--muted); font-weight: 500; }

select, textarea, input[type="text"], input[type="email"], input[type="date"], input[type="time"] {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
select:focus, textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="date"]:focus, input[type="time"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 128, 67, 0.12);
}
textarea { resize: vertical; }

.choice-group, .contact-fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.daypart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.daypart-card { position: relative; display: block; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 14px; text-align: center; background: #fff; cursor: pointer; font-weight: 800; }
.daypart-card input { position: absolute; opacity: 0; pointer-events: none; }
.daypart-card small { display: block; margin-top: 5px; font-weight: 500; font-size: .78rem; color: var(--muted); }
.daypart-card:has(input:checked) { border-color: var(--green); background: #eef9ef; box-shadow: 0 0 0 3px rgba(23, 128, 67, .1); }
.daypart-card:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.experience-card { position: relative; }
.experience-card input { position: absolute; opacity: 0; pointer-events: none; }
.experience-card > span:last-child, .experience-icon { display: block; }
.experience-card {
  padding: 17px 14px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  text-align: center;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.experience-card:hover { transform: translateY(-2px); }
.experience-card:has(input:checked) {
  border-color: var(--green);
  background: #eef9ef;
  box-shadow: 0 0 0 3px rgba(23, 128, 67, 0.1);
}
.experience-icon { margin-bottom: 6px; font-size: 1.5rem; }
.automatic-note, .privacy-note, .prototype-note {
  color: var(--muted);
  font-size: 0.82rem;
}
.automatic-note { margin: 18px 0 0; }

.pasture {
  --score-position: 50%;
  position: relative;
  min-height: 330px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 24px 24px 14px 14px;
  border: 0;
  background: #fff;
  box-shadow: 0 14px 32px rgba(28, 63, 31, 0.08);
}
.pasture::before {
  content: "";
  position: absolute;
  inset: 0 0 70px;
  border-radius: 24px 24px 0 0;
  background: url("pasture-dry-to-green-no-cows.png") center 55% / cover no-repeat;
  background: image-set(url("/assets/survey-v1/pasture-dry-to-green-no-cows.62fb16d91b34.webp") type("image/webp"), url("pasture-dry-to-green-no-cows.png") type("image/png")) center 55% / cover no-repeat;
}
.pasture-tint {
  position: absolute;
  inset: 0 0 70px;
  background: linear-gradient(90deg, rgba(104, 55, 22, 0.12), transparent 55%);
}
.pasture-sheen { display: none; }
.grazing-cow {
  position: absolute;
  z-index: 3;
  bottom: 158px;
  left: 83%;
  width: clamp(48px, 8vw, 64px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 7px rgba(27, 38, 15, 0.2));
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}
.slider-cow {
  position: absolute;
  z-index: 3;
  bottom: 74px;
  left: var(--score-position);
  width: clamp(112px, 21vw, 154px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 8px rgba(27, 38, 15, 0.22));
  pointer-events: none;
  transition: left 520ms cubic-bezier(.2,.8,.2,1), bottom 520ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease, transform 520ms ease;
}
.pasture.is-awaiting-rating .slider-cow {
  left: 83%;
  bottom: 158px;
  opacity: 0;
  transform: translateX(-50%) scale(.38);
}
.pasture:not(.is-awaiting-rating) .grazing-cow {
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(.9);
}
.pasture[data-score="5"] .slider-cow { transform: translateX(-50%) translateY(-4px) rotate(-1deg); }
.cow-range {
  position: absolute;
  z-index: 5;
  inset: auto 6% 34px 6%;
  width: 88%;
  height: 42px;
  margin: 0;
  opacity: 0;
  cursor: grab;
}
.cow-range:active { cursor: grabbing; }
.rating-dots {
  position: absolute;
  z-index: 2;
  bottom: 6px;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
}
.rating-dots::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 14px;
  left: 14px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bd6723, #df8d2d 25%, #adb52d 50%, #45a947 75%, #08773c);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.95);
}
.rating-dots span {
  position: relative;
  display: flex;
  width: 34px;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: var(--ink);
  font-weight: 800;
  text-shadow: none;
}
.rating-dots span::before {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #bd6723;
  box-shadow: 0 2px 8px rgba(26,45,24,0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.rating-dots span:nth-child(2)::before { background: #df8d2d; }
.rating-dots span:nth-child(3)::before { background: #adb52d; }
.rating-dots span:nth-child(4)::before { background: #45a947; }
.rating-dots span:nth-child(5)::before { background: #08773c; }
.pasture[data-score="1"] .rating-dots span:nth-child(1)::before,
.pasture[data-score="2"] .rating-dots span:nth-child(2)::before,
.pasture[data-score="3"] .rating-dots span:nth-child(3)::before,
.pasture[data-score="4"] .rating-dots span:nth-child(4)::before,
.pasture[data-score="5"] .rating-dots span:nth-child(5)::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.5), 0 4px 12px rgba(26,45,24,0.2);
}
.step[data-step="1"] { padding-top: 40px; }
.step[data-step="1"] .eyebrow { display: none; }
.step[data-step="1"] h1 { max-width: 620px; margin-inline: auto; text-align: center; font-size: clamp(2rem, 5vw, 3.2rem); }
.step[data-step="1"] .lead { margin: 16px auto 20px; text-align: center; }
.rating-result {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 10px;
  text-align: center;
}
.rating-result strong {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #eef7dc;
  font-size: 1rem;
}
.rating-result span { color: var(--muted); font-size: 0.9rem; }
.primary-button:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
  transform: none;
}

.category-list { display: grid; gap: 12px; }
.category-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.category-name { font-weight: 800; line-height: 1.25; }
.rating-buttons { display: flex; gap: 7px; }
.rating-buttons button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 58px;
  padding: 2px 3px 3px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: #5c554c;
  background: #f2eee7;
  font-weight: 800;
  cursor: pointer;
  transition: transform 130ms ease, color 130ms ease, background 130ms ease;
}
.rating-buttons button img { width: 40px; height: 40px; object-fit: contain; }
.rating-buttons button span { margin-top: -4px; font-size: 0.67rem; line-height: 1; }
.rating-buttons button:hover { transform: translateY(-1px); }
.rating-buttons button.is-selected {
  color: var(--rating-color, var(--green));
  border-color: var(--rating-color, var(--green));
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 58, 30, 0.16);
  transform: translateY(-2px) scale(1.05);
}
.category-scale-hint {
  display: flex;
  grid-column: 2;
  justify-content: space-between;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.category-comments {
  margin-top: 18px;
  padding: 2px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
}
.category-comments .field-label { margin-top: 14px; }
.category-comments textarea { min-height: 108px; background: #fff; }
.followup-comments { margin-top: 0; margin-bottom: 22px; }
.followup-comments textarea { min-height: 92px; }

.frequency-fieldset { margin-top: 18px; }
.frequency-fieldset legend { margin-bottom: 11px; font-weight: 800; }
.frequency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.frequency-grid label { position: relative; cursor: pointer; }
.frequency-grid input { position: absolute; opacity: 0; pointer-events: none; }
.frequency-grid span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  text-align: center;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.frequency-grid label:hover span { transform: translateY(-1px); }
.frequency-grid input:focus-visible + span { outline: 3px solid rgba(23,128,67,0.2); outline-offset: 2px; }
.frequency-grid input:checked + span { border-color: var(--green); color: var(--green-deep); background: #eaf8ed; box-shadow: 0 5px 14px rgba(31,58,30,0.12); }

.recommend-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.loyalty-block {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
}
.loyalty-block h2 {
  max-width: 680px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.25;
}
.recommend-scale button {
  min-height: 142px;
  padding: 8px 7px 11px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.recommend-scale button:hover { transform: translateY(-2px); }
.recommend-scale button img { display: block; width: 64px; height: 64px; margin: 0 auto -3px; object-fit: contain; }
.recommend-scale button b { display: block; margin-bottom: 5px; color: var(--muted); font-size: 0.72rem; }
.recommend-scale button span { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.25; }
.recommend-scale button.is-selected {
  border-color: var(--rating-color, var(--green));
  background: #fff;
  background: color-mix(in srgb, var(--rating-color, var(--green)) 12%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rating-color, var(--green)) 20%, transparent);
}
.recommend-scale button.is-selected b { color: var(--rating-color, var(--green)); }

.tag-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.tag-button {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.tag-button.is-selected { border-color: var(--green); color: var(--green-deep); background: #eaf8ed; }
.contact-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-choice label {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
}
.contact-fields { margin-top: 16px; padding: 14px 16px 16px; border-radius: 16px; background: #f6f3ed; }
.contact-fields .field-label:first-child { margin-top: 0; }

.error-message { min-height: 1.2em; margin: 12px 0 0; color: #bb3024; font-size: 0.86rem; font-weight: 700; }
.form-actions { width: min(100%, 720px); margin: 0 auto; padding: 22px clamp(24px, 6vw, 58px) 44px; }
.primary-button, .secondary-button {
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}
.primary-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #ff7b4f);
  box-shadow: 0 12px 25px rgba(244,93,72,0.25);
}
.primary-button:hover { background: linear-gradient(135deg, var(--coral-dark), var(--coral)); }
.secondary-button { padding: 0 22px; color: var(--green-deep); background: #eaf8ed; }

.completion-step { text-align: center; }
.completion-step .eyebrow, .completion-step .lead { margin-left: auto; margin-right: auto; }
.completion-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(23,128,67,0.25);
}
.completion-summary { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.completion-summary span { padding: 8px 11px; border-radius: 999px; color: var(--green-deep); background: #eaf8ed; font-size: 0.82rem; font-weight: 700; }
.submission-status {
  width: fit-content;
  margin: 16px auto 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: #665a45;
  background: #fff5d8;
  font-weight: 800;
}
.submission-status.is-saved { color: var(--green-deep); background: #eaf8ed; }
.submission-status.is-error { color: #8e2e1f; background: #fff0ec; }
.retry-submission { margin: 12px auto 0; }

.delivery-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  align-items: center;
  gap: 22px;
  margin: 24px 0;
  padding: clamp(20px, 4vw, 30px);
  overflow: hidden;
  border: 2px solid rgba(216, 93, 35, 0.24);
  border-radius: 22px;
  text-align: left;
  background: linear-gradient(135deg, #fff8e8 0%, #fffdf6 58%, #e9f6df 100%);
  box-shadow: 0 14px 32px rgba(60, 53, 38, 0.12);
}
.delivery-offer[hidden] { display: none; }
.delivery-offer-kicker {
  margin-bottom: 7px;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.delivery-offer h2 {
  max-width: none;
  margin: 0;
  color: #d85d23;
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.delivery-offer p { margin: 13px 0 18px; color: #514a42; line-height: 1.45; }
.direct-order-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #ff7b4f);
  box-shadow: 0 9px 20px rgba(244,93,72,0.22);
  font-weight: 800;
  text-decoration: none;
}
.direct-order-link {
  display: block;
  width: fit-content;
  margin-top: 11px;
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 700;
}
.delivery-offer-qr { text-align: center; }
.delivery-offer-qr img {
  display: block;
  width: 156px;
  height: 156px;
  padding: 7px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31,58,30,0.13);
}
.delivery-offer-qr span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.75rem; font-weight: 700; }

.prototype-email-card {
  margin: 22px 0 18px;
  padding: 18px;
  border: 1px solid rgba(23,128,67,0.2);
  border-radius: 18px;
  text-align: left;
  background: rgba(255,255,255,0.9);
}
.prototype-email-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prototype-email-heading strong { color: var(--green-deep); }
.prototype-email-heading span { padding: 5px 9px; border-radius: 999px; color: var(--green-deep); background: #eaf8ed; font-size: 0.72rem; font-weight: 800; }
.prototype-email-card p { margin: 9px 0 12px; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.prototype-email-card pre {
  max-height: 250px;
  margin: 0 0 14px;
  padding: 13px;
  overflow: auto;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #37332f;
  background: #f6f3ed;
  font: 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.email-draft-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; text-decoration: none; }

footer { padding: 18px 4px 0; color: #625b51; }
footer span { font-weight: 800; }
footer small { text-align: right; }

@media (max-width: 650px) {
  .shell { padding: 14px 10px 22px; }
  .brand-bar { padding: 0 8px; grid-template-columns: 1fr auto; }
  .brand-bar .wordmark { grid-column: 1; justify-self: start; }
  .brand-bar .preview-pill { grid-column: 2; }
  .preview-pill { font-size: 0.68rem; }
  .survey-card { min-height: calc(100vh - 125px); border-radius: 24px; }
  .survey-topline { padding: 17px 20px 11px; }
  .time-note { font-size: 0.72rem; }
  .step { padding: 30px 20px 10px; }
  .welcome-landscape { min-height: 145px; margin: -14px 0 24px; }
  .wordmark { width: 175px; height: 36px; }
  .welcome-landscape > span { padding-right: 82px; font-size: 0.95rem; }
  .welcome-cow { right: 15px; bottom: 46px; width: 72px; }
  .form-actions { padding: 18px 20px 28px; }
  .experience-grid { gap: 8px; }
  .daypart-grid { grid-template-columns: 1fr; }
  .experience-card { padding: 14px 5px; font-size: 0.82rem; }
  .category-row { grid-template-columns: 1fr; gap: 9px; }
  .rating-buttons { justify-content: space-between; }
  .rating-buttons button { width: 48px; height: 54px; }
  .rating-buttons button img { width: 37px; height: 37px; }
  .category-scale-hint { grid-column: 1; padding: 0 3px; }
  .frequency-grid { grid-template-columns: 1fr; }
  .recommend-scale { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 5px; }
  .recommend-scale button { min-height: 110px; padding: 6px 2px 8px; border-radius: 13px; }
  .recommend-scale button img { width: 48px; height: 48px; }
  .recommend-scale button b { margin-bottom: 3px; font-size: 0.66rem; }
  .recommend-scale button span { font-size: 0.62rem; }
  .step[data-step="1"] { padding-top: 28px; }
  .step[data-step="1"] h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .pasture { min-height: 315px; margin-right: -6px; margin-left: -6px; }
  .slider-cow { bottom: 76px; width: clamp(100px, 31vw, 130px); }
  .grazing-cow { bottom: 154px; left: 82%; width: clamp(44px, 13vw, 58px); }
  .pasture.is-awaiting-rating .slider-cow { bottom: 154px; left: 82%; }
  .delivery-offer { grid-template-columns: 1fr; text-align: center; }
  .delivery-offer h2 { font-size: clamp(2rem, 11vw, 2.7rem); }
  .direct-order-button { display: flex; width: 100%; }
  .direct-order-link { margin-right: auto; margin-left: auto; }
  .delivery-offer-qr { display: grid; justify-items: center; }
  footer { display: grid; justify-content: center; text-align: center; }
  footer small { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* Preserve existing flex, positioning and image geometry with format fallbacks. */
picture.optimized-image { display: contents; }
