:root {
  color: #1c2925;
  background: #f4f0e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  --ink: #1c2925;
  --muted: #68736e;
  --paper: #fffdf8;
  --green: #23604d;
  --coral: #e77758;
  --line: #d9d6ca;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
.demo-page { min-height: 100vh; padding: 12vw 8vw; background: radial-gradient(circle at 85% 15%, #f6cfae 0 10%, transparent 30%), #f4f0e7; }
.demo-page h1 { max-width: 680px; margin: 0.15em 0; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 0.95; font-weight: 400; }
.demo-page p { max-width: 470px; color: var(--muted); font-size: 1.1rem; }
.eyebrow, .chat-kicker { margin: 0; color: var(--coral); font: 700 0.72rem/1.2 Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.chat-launcher { position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border: 0; border-radius: 50%; color: white; background: var(--green); box-shadow: 0 8px 24px #1c292533; cursor: pointer; font-size: 1.5rem; }
.chat-widget { position: fixed; right: 24px; bottom: 24px; display: grid; grid-template-rows: auto 1fr auto auto; width: min(380px, calc(100vw - 32px)); height: min(650px, calc(100vh - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 18px 50px #1c292533; }
.chat-header { display: flex; justify-content: space-between; align-items: start; padding: 20px; color: white; background: var(--green); }
.chat-header h2 { margin: 5px 0 0; font-size: 1.45rem; font-weight: 400; }
.icon-button { border: 0; color: white; background: transparent; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.chat-messages { padding: 18px; overflow-y: auto; }
.message { width: fit-content; max-width: 88%; margin: 0 0 12px; padding: 11px 13px; border-radius: 12px; white-space: pre-wrap; font: 0.94rem/1.45 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", Arial, sans-serif; }
.message--bot { border-bottom-left-radius: 3px; background: #edf1eb; }
.message--user { margin-left: auto; border-bottom-right-radius: 3px; color: white; background: var(--coral); }
.message a { display: inline-block; margin-top: 7px; color: var(--green); font-weight: 700; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); }
.quick-replies button { padding: 8px 11px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); background: transparent; cursor: pointer; font: 0.78rem Arial, sans-serif; }
.chat-form { display: flex; gap: 8px; padding: 14px 18px 18px; }
.chat-form input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; font: 0.9rem Arial, sans-serif; }
.chat-form button { padding: 0 14px; border: 0; border-radius: 4px; color: white; background: var(--green); cursor: pointer; font: 700 0.85rem Arial, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 520px) { .chat-widget { right: 16px; bottom: 16px; width: calc(100vw - 32px); height: calc(100vh - 32px); } .chat-launcher { right: 16px; bottom: 16px; } }
