:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18221d;
  background: #f7faf8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { background: radial-gradient(circle at 8% 82%, rgba(30, 180, 95, .14), transparent 27%), radial-gradient(circle at 88% 11%, rgba(244, 191, 217, .26), transparent 30%), #f9fcfa; margin: 0; min-width: 320px; overflow-x: hidden; }
body::before { background-image: linear-gradient(rgba(21, 140, 76, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 140, 76, .035) 1px, transparent 1px); background-size: 42px 42px; content: ''; inset: 0; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 70%); pointer-events: none; position: fixed; z-index: -1; }
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .95fr) minmax(430px, 1.05fr); gap: clamp(44px, 8vw, 128px); align-items: center; max-width: 1280px; padding: 48px clamp(24px, 6vw, 96px); margin: auto; }
.intro { max-width: 510px; }
.brand-lockup { align-items: center; display: inline-flex; gap: 10px; text-decoration: none; }
.landing-back { background: rgba(255,255,255,.78); border: 1px solid #d7e6dc; border-radius: 999px; color: #315c40; display: inline-flex; font-size: .78rem; font-weight: 700; left: 24px; padding: 10px 14px; position: fixed; text-decoration: none; top: 22px; z-index: 5; }
.landing-back:hover { background: #fff; border-color: #83c89b; color: #158c4c; }
.logo-image { height: 52px; overflow: hidden; position: relative; width: 70px; }
.logo-image img { height: auto; left: -32px; max-width: none; position: absolute; top: -49px; width: 130px; }
.logo-name { color: #14231a; font-size: 1.25rem; font-weight: 600; letter-spacing: -.04em; }
.intro-copy { margin-top: 86px; }
.eyebrow { color: #159553; font-size: .74rem; font-weight: 750; letter-spacing: .13em; margin: 0 0 18px; }
h1 { font-size: clamp(2.25rem, 4.4vw, 4.25rem); letter-spacing: -.055em; line-height: 1.04; margin: 0; }
.intro-copy > p:last-child { color: #637066; font-size: 1.05rem; line-height: 1.7; margin: 28px 0 0; max-width: 470px; }
.feature-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 42px; }
.feature-list span { border: 1px solid #d7e6dc; border-radius: 100px; color: #4a5a4f; font-size: .78rem; font-weight: 600; padding: 9px 13px; }

.chat-card { background: #fff; border: 1px solid #dce8e0; border-radius: 20px; box-shadow: 0 18px 54px rgba(25, 63, 40, .11); display: grid; grid-template-rows: auto 1fr auto auto; height: min(720px, calc(100vh - 64px)); max-height: 720px; min-height: 560px; overflow: hidden; }
.chat-header { align-items: center; border-bottom: 1px solid #edf2ee; display: flex; gap: 12px; padding: 18px 20px; }
.avatar { align-items: center; background: #158c4c; border-radius: 11px; color: white; display: flex; font-size: 1.05rem; font-weight: 800; height: 40px; justify-content: center; width: 40px; }
.chat-header strong, .chat-header span { display: block; }
.chat-header strong { font-size: .93rem; }
.chat-header span { color: #7b897f; font-size: .74rem; margin-top: 3px; }
.chat-header i { background: #2fba69; border-radius: 50%; display: inline-block; height: 7px; margin-right: 4px; width: 7px; }
.restart-button { background: transparent; border: 0; border-radius: 8px; color: #627067; font-size: 1.45rem; line-height: 1; margin-left: auto; padding: 7px 9px; }
.restart-button:hover { background: #eff7f1; color: #158c4c; }
.chat-messages { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 26px 20px 18px; scrollbar-color: #d4e3d8 transparent; }
.message { animation: appear .22s ease-out both; display: flex; max-width: 90%; }
.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; justify-content: flex-end; }
.bubble { border-radius: 14px; font-size: .9rem; line-height: 1.5; padding: 11px 13px; white-space: pre-line; }
.bot .bubble { background: #f1f6f3; border-bottom-left-radius: 4px; color: #25342a; }
.user .bubble { background: #158c4c; border-bottom-right-radius: 4px; color: #fff; }
.quick-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.quick-actions button { background: #fff; border: 1px solid #b8d9c3; border-radius: 9px; color: #167a43; font-size: .81rem; font-weight: 650; padding: 9px 11px; text-align: left; transition: background .15s, border-color .15s; }
.quick-actions button:hover { background: #eef8f1; border-color: #159553; }
.quick-actions button:disabled { cursor: default; opacity: .48; }
.typing { align-items: center; display: flex; gap: 4px; min-height: 38px; }
.typing span { animation: pulse 1s infinite alternate; background: #91a69a; border-radius: 50%; height: 5px; width: 5px; }
.typing span:nth-child(2) { animation-delay: .15s; }.typing span:nth-child(3) { animation-delay: .3s; }
.chat-input { border-top: 1px solid #edf2ee; display: flex; gap: 10px; padding: 14px 16px; }
.chat-input input { background: #f7faf8; border: 1px solid transparent; border-radius: 10px; color: #1b2a20; flex: 1; font-size: .88rem; outline: none; padding: 11px 13px; }
.chat-input input:focus { background: #fff; border-color: #79be91; }
.chat-input button { align-items: center; background: #158c4c; border: 0; border-radius: 10px; display: grid; height: 40px; place-items: center; width: 42px; }
.chat-input button:disabled { background: #b6c5bb; cursor: default; }
.chat-input svg { fill: #fff; height: 19px; width: 19px; }
.privacy-note { color: #8a978e; font-size: .68rem; margin: 0; padding: 0 18px 16px; text-align: center; }
.privacy-note a { color: #397a51; font-weight: 700; }
.privacy-modal { align-items: center; animation: privacyFade .25s ease-out both; background: rgba(8, 18, 12, .52); backdrop-filter: blur(13px) saturate(.8); display: flex; inset: 0; justify-content: center; padding: 22px; position: fixed; z-index: 20; }
.privacy-dialog { animation: privacyRise .32s cubic-bezier(.22,.8,.24,1) both; background: linear-gradient(145deg, #ffffff, #f5fbf7); border: 1px solid rgba(116, 196, 143, .48); border-radius: 20px; box-shadow: 0 28px 78px rgba(0,0,0,.35), 0 0 0 7px rgba(170,249,193,.1); max-width: 490px; padding: 32px; position: relative; width: 100%; }
.privacy-dialog:before { background: radial-gradient(circle, rgba(87,224,135,.18), transparent 68%); content: ""; height: 210px; pointer-events: none; position: absolute; right: -80px; top: -110px; width: 210px; }
.privacy-kicker { color: #158c4c; font-size: .68rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 11px; position: relative; }
.privacy-dialog h2 { font-size: 1.7rem; letter-spacing: -.045em; margin: 0 0 13px; position: relative; }
.privacy-dialog > p:not(.privacy-kicker) { color: #52665a; font-size: .9rem; line-height: 1.65; margin: 0; position: relative; }
.privacy-check { align-items: flex-start; background: rgba(225,245,232,.62); border: 1px solid #cce4d4; border-radius: 11px; color: #30483a; cursor: pointer; display: flex; font-size: .82rem; gap: 9px; line-height: 1.48; margin: 23px 0; padding: 12px; position: relative; }
.privacy-check input { accent-color: #158c4c; margin-top: 3px; }
.privacy-actions { align-items: center; display: flex; gap: 12px; justify-content: space-between; position: relative; }
.privacy-actions button { background: #158c4c; border: 0; border-radius: 9px; box-shadow: 0 10px 20px rgba(21,140,76,.18); color: #fff; font-size: .82rem; font-weight: 750; padding: 12px 14px; }
.privacy-actions button:disabled { background: #b7c8bc; cursor: not-allowed; }
.privacy-back { color: #567061; font-size: .8rem; font-weight: 700; text-decoration: none; }
.privacy-link { color: #397a51; display: inline-block; font-size: .76rem; font-weight: 700; margin-top: 20px; position: relative; }
@keyframes privacyFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes privacyRise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sr-only { height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; clip: rect(0,0,0,0); }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { to { opacity: .28; } }
@media (max-width: 820px) { .page-shell { grid-template-columns: 1fr; gap: 32px; padding: 28px 18px; }.intro { max-width: 620px; }.intro-copy { margin-top: 40px; }.intro-copy > p:last-child, .feature-list { display: none; }.chat-card { height: min(680px, 72vh); min-height: 510px; }.chat-messages { padding-top: 20px; } }
@media (max-width: 430px) { .page-shell { padding: 20px 12px; }.chat-card { border-radius: 15px; height: calc(100vh - 110px); min-height: 480px; }.logo-image { height: 44px; transform: scale(.86); transform-origin: left top; }.logo-name { font-size: 1.2rem; }h1 { font-size: 2rem; }.intro-copy { margin-top: 23px; }.quick-actions button { font-size: .76rem; } }
