:root {
  color-scheme: light;
  --ink: #18201b;
  --muted: #68736c;
  --paper: #f5f2ea;
  --card: #fffdf8;
  --line: #d9ddd6;
  --green: #1f5b43;
  --green-dark: #154431;
  --orange: #d5662b;
  --orange-soft: #fff0e7;
  --shadow: 0 22px 60px rgb(31 57 43 / 14%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgb(213 102 43 / 13%), transparent 26rem),
    linear-gradient(135deg, #f8f5ed 0%, #edf2ec 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

button { cursor: pointer; }

.page-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  padding: 56px 0;
}

.environment-badge {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgb(213 102 43 / 35%);
  border-radius: 999px;
  color: #9b421b;
  background: var(--orange-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 34px 0 10px;
  color: var(--green);
  font-weight: 750;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 5.7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro-copy {
  max-width: 540px;
  margin: 25px 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.quick-queries { display: flex; flex-wrap: wrap; gap: 10px; }

.quick-queries button {
  padding: 10px 14px;
  border: 1px solid #b9c7be;
  border-radius: 10px;
  color: var(--green-dark);
  background: rgb(255 255 255 / 58%);
  font-weight: 700;
}

.quick-queries button:hover,
.quick-queries button:focus-visible { background: white; border-color: var(--green); }

.instructions { margin-top: 22px; color: var(--muted); font-size: 0.84rem; line-height: 1.8; }
.instructions strong { display: block; color: var(--ink); }
.instructions code { display: inline-block; margin: 3px 5px 0 0; padding: 4px 7px; border-radius: 6px; background: rgb(31 91 67 / 8%); }

.profile-form { margin-top: 22px; padding: 14px; border: 1px solid rgb(31 91 67 / 16%); border-radius: 14px; background: rgb(255 255 255 / 55%); }
.profile-form > strong { display: block; margin-bottom: 9px; font-size: 0.86rem; }
.profile-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-form label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.7rem; }
.profile-form input { width: 100%; padding: 9px 10px; border: 1px solid #c9cec8; border-radius: 8px; background: white; }
.profile-form select { width: 100%; padding: 9px 10px; border: 1px solid #c9cec8; border-radius: 8px; background: white; }
.profile-form button { margin-top: 9px; padding: 8px 11px; border: 0; border-radius: 8px; color: white; background: var(--green); font-size: 0.76rem; font-weight: 750; }
.profile-form output { display: block; min-height: 1em; margin-top: 6px; color: var(--green); font-size: 0.72rem; }
.fulfillment-form > label { display: block; }
.fulfillment-form > label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.7rem; }
.delivery-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.delivery-fields label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.7rem; }

.chat-card {
  min-height: 640px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid rgb(31 91 67 / 16%);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.chat-header {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.assistant-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--green);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.chat-header h2 { margin: 0 0 3px; font-size: 1rem; }
.chat-header p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #3ba66b;
}

.messages {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background-image: linear-gradient(rgb(31 91 67 / 3%) 1px, transparent 1px);
  background-size: 100% 40px;
}

.message {
  max-width: 84%;
  padding: 13px 15px 9px;
  border-radius: 16px;
  line-height: 1.48;
  animation: enter 180ms ease-out both;
}

.message p { margin: 0; }
.message time { display: block; margin-top: 5px; font-size: 0.68rem; opacity: 0.63; }
.assistant-message { align-self: flex-start; border-bottom-left-radius: 5px; background: #e9eee9; }
.user-message { align-self: flex-end; border-bottom-right-radius: 5px; color: white; background: var(--green); }
.error-message { background: var(--orange-soft); color: #7d3415; }

.product-options { display: grid; gap: 8px; margin-top: 12px; }

.product-option {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bdc9c0;
  border-radius: 10px;
  text-align: left;
  color: var(--green-dark);
  background: white;
  font-weight: 700;
}

.product-option small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }

.chat-form { display: flex; gap: 10px; padding: 16px 18px 10px; border-top: 1px solid var(--line); }

.chat-form input {
  min-width: 0;
  flex: 1;
  padding: 13px 14px;
  border: 1px solid #c9cec8;
  border-radius: 12px;
  outline: none;
  background: white;
}

.chat-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(31 91 67 / 12%); }

.chat-form > button {
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--orange);
  font-weight: 800;
}

.chat-form > button:hover { background: #b9501d; }
.chat-form > button:disabled { cursor: wait; opacity: 0.65; }

.cart-summary {
  margin: 0 18px 10px;
  padding: 12px 14px;
  border: 1px solid rgb(31 91 67 / 20%);
  border-radius: 12px;
  color: var(--green-dark);
  background: #eef4ef;
  font-size: 0.82rem;
  line-height: 1.55;
}

.cart-summary strong { display: block; margin-bottom: 3px; }

.scope-note { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 0.72rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

@keyframes enter { from { opacity: 0; transform: translateY(5px); } }

@media (max-width: 850px) {
  .page-shell { grid-template-columns: 1fr; width: min(680px, calc(100% - 28px)); padding: 32px 0; }
  .chat-card { min-height: 600px; }
}

@media (max-width: 520px) {
  h1 { font-size: 2.65rem; }
  .chat-card { min-height: 70vh; border-radius: 20px; }
  .message { max-width: 92%; }
  .chat-form { align-items: stretch; }
  .chat-form > button { padding: 0 14px; }
  .profile-form > div { grid-template-columns: 1fr; }
  .delivery-fields { grid-template-columns: 1fr; }
}

