:root {
  --ink: #1c201b;
  --muted: #70746c;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --line: #e5e1d7;
  --green: #21543c;
  --green-dark: #173c2c;
  --lime: #bada55;
  --coral: #f26b4b;
  --shadow: 0 24px 70px rgba(48, 47, 40, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 30px 24px 24px;
  background: var(--green-dark); color: #eef4e9; display: flex; flex-direction: column; z-index: 20;
}
.brand { color: #fff; text-decoration: none; font: 800 23px/1 "Manrope"; display: flex; align-items: center; gap: 11px; }
.brand-dot { color: var(--lime); }
.brand-mark { width: 31px; height: 31px; display: flex; gap: 3px; align-items: end; padding: 7px; border-radius: 9px; background: var(--lime); }
.brand-mark span { display: block; width: 4px; border-radius: 5px; background: var(--green-dark); transform: rotate(22deg); }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 19px; }
.nav-list { display: grid; gap: 7px; margin-top: 52px; }
.nav-item { width: 100%; border: 0; color: #afbaae; background: transparent; text-decoration: none; text-align: left; border-radius: 11px; padding: 12px 14px; display: flex; gap: 13px; align-items: center; cursor: pointer; transition: .2s ease; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-icon { width: 20px; text-align: center; color: var(--lime); font-weight: 800; }
.sidebar-card { margin-top: auto; padding: 17px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 15px; }
.eyebrow { color: #8a8d85; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-card .eyebrow { color: var(--lime); }
.sidebar-card strong { display: block; margin-top: 8px; font: 700 14px/1.35 "Manrope"; }
.sidebar-card p { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: #aab4a8; }
.profile-row { margin-top: 18px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; font-size: 11px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--green-dark); background: var(--lime); font-weight: 800; }
.profile-row strong, .profile-row small { display: block; }
.profile-row small { color: #91a08f; margin-top: 2px; }
.profile-row button { border: 0; background: none; color: #91a08f; cursor: pointer; }

main { min-width: 0; }
.topbar { height: 72px; padding: 0 clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(246,243,236,.88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 15; }
.topbar > div, .topbar-actions { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #e9a93d; box-shadow: 0 0 0 4px rgba(233,169,61,.13); }
.status-text, .update-time { font-size: 12px; color: var(--muted); }
.icon-button, .menu-button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; width: 35px; height: 35px; cursor: pointer; }
.menu-button { display: none; }
.content-wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 64px) 56px; }
.hero { min-height: 508px; display: grid; grid-template-columns: 1fr minmax(380px, 520px); gap: clamp(40px, 7vw, 100px); align-items: center; position: relative; }
.hero::after { content: ""; position: absolute; right: 14%; top: 7%; width: 230px; height: 230px; background: radial-gradient(circle, rgba(186,218,85,.18), transparent 68%); pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #daddcf; border-radius: 99px; color: #4f5b4e; background: rgba(255,255,255,.48); font-size: 11px; font-weight: 600; }
.pill span { color: var(--green); }
h1 { margin: 20px 0 18px; font: 800 clamp(43px, 5vw, 72px)/.99 "Manrope"; letter-spacing: -.055em; }
h1 em { color: var(--green); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; height: 7px; left: 2px; right: 0; bottom: -4px; background: var(--lime); border-radius: 60% 35% 60% 45%; transform: rotate(-1.5deg); z-index: -1; }
.hero-copy p { margin: 0; max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.7; }

.chat-card { position: relative; z-index: 1; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); padding: 20px; box-shadow: var(--shadow); }
.chat-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #ece8df; font-size: 12px; font-weight: 700; }
.ai-orb { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; border-radius: 8px; color: #fff; background: var(--green); }
.demo-badge { padding: 4px 7px; border-radius: 5px; color: #8d6335; background: #f5e7cc; font-size: 9px; letter-spacing: .08em; }
.messages { min-height: 125px; max-height: 220px; overflow: auto; padding: 20px 2px 12px; display: grid; align-content: start; gap: 13px; }
.message { display: flex; gap: 10px; align-items: flex-start; }
.message-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: var(--green); font-size: 11px; font-weight: 800; }
.message p { margin: 0; font-size: 13px; line-height: 1.45; }
.message span { display: block; margin-top: 4px; color: #989b94; font-size: 10px; }
.user-message { justify-content: flex-end; }
.user-message > div { max-width: 80%; padding: 9px 12px; border-radius: 13px 13px 3px 13px; color: #fff; background: var(--green); }
.user-message p { color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 7px; border: 1px solid #dcd8ce; border-radius: 13px; background: #fff; transition: .2s ease; }
.chat-form:focus-within { border-color: #729879; box-shadow: 0 0 0 3px rgba(33,84,60,.08); }
.chat-form input { width: 100%; border: 0; outline: 0; padding: 5px 8px; color: var(--ink); background: transparent; font-size: 12px; }
.chat-form button { flex: 0 0 auto; border: 0; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--green); cursor: pointer; font-size: 17px; transition: .2s ease; }
.chat-form button:hover { background: #2b6b4d; transform: translateY(-1px); }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.quick-prompts button { border: 1px solid #e4e0d7; border-radius: 99px; padding: 6px 9px; background: transparent; color: #767971; font-size: 9px; cursor: pointer; }
.quick-prompts button:hover { color: var(--green); border-color: #9aae9b; }

.promotions-section { scroll-margin-top: 90px; padding-top: 42px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h2 { margin: 7px 0 0; font: 800 clamp(26px, 3vw, 37px)/1.1 "Manrope"; letter-spacing: -.035em; }
.filters { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.45); }
.filter { border: 0; padding: 7px 12px; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.filter.active { color: #fff; background: var(--green); }
.promo-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: .25s ease; }
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 17px 45px rgba(50,50,42,.09); }
.promo-card.hidden { display: none; }
.card-top { padding: 14px 14px 0; display: flex; justify-content: space-between; align-items: center; }
.store-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-size: 10px; font-weight: 800; }
.store-red { background: #d93636; }.store-blue { background: #2356a0; }.store-navy { background: #1d314b; }
.discount { color: #a8452f; background: #f9ded6; border-radius: 7px; padding: 5px 7px; font-size: 10px; font-weight: 700; }
.product-art { width: 94px; height: 96px; margin: -3px auto 3px; display: grid; place-items: center; position: relative; filter: drop-shadow(0 13px 10px rgba(46,43,36,.16)); }
.product-art span { font: 800 10px "Manrope"; letter-spacing: .08em; }
.coffee { width: 84px; height: 94px; color: #efdebd; background: linear-gradient(135deg,#302118,#694732); clip-path: polygon(10% 5%,92% 0,100% 94%,0 100%); }
.dairy { width: 75px; height: 84px; margin-top: 7px; color: #145a75; background: linear-gradient(#e9f7f8 0 25%,#8bd2dc 25%); border-radius: 5px 5px 15px 15px; }
.detergent { width: 68px; height: 90px; margin-top: 3px; color: #fff; background: linear-gradient(135deg,#8a4cbd,#4b226d); border-radius: 14px 14px 19px 19px; }
.product-copy { padding: 13px 17px 17px; border-top: 1px solid #efebe2; }
.store-name { color: #96988f; font-size: 9px; }
.product-copy h3 { margin: 5px 0 10px; font: 700 14px/1.3 "Manrope"; }
.price-line { display: flex; gap: 8px; align-items: baseline; }
.price-line strong { font: 800 18px "Manrope"; }
.price-line del { color: #a4a69f; font-size: 10px; }
.product-copy small { display: block; margin-top: 6px; color: #858880; font-size: 9px; }
.trust-strip { margin-top: 18px; padding: 16px 20px; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.42); }
.trust-strip div { display: flex; align-items: baseline; gap: 7px; }
.trust-strip strong { font: 800 18px "Manrope"; color: var(--green); }
.trust-strip span { color: var(--muted); font-size: 9px; }
.trust-strip button { border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.trust-strip button span { margin-left: 6px; color: var(--green); font-size: 15px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(380px, calc(100vw - 48px)); padding: 12px 16px; border-radius: 11px; color: #fff; background: var(--green-dark); box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; width: 246px; transform: translateX(-102%); transition: .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.15); }
  body.menu-open .sidebar { transform: translateX(0); }
  .menu-button { display: inline-grid; place-items: center; }
  .topbar > div:first-of-type { margin-right: auto; margin-left: 12px; }
  .hero { grid-template-columns: 1fr; padding: 64px 0; gap: 42px; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-card:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .topbar { padding-inline: 16px; }
  .update-time { display: none; }
  .content-wrap { padding-inline: 16px; }
  .hero { padding: 45px 0; }
  h1 { font-size: 43px; }
  .chat-card { padding: 15px; border-radius: 17px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card:last-child { grid-column: auto; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip button { grid-column: span 2; padding-top: 10px; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
