:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #17372a;
  background: #f2eee5;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, #dce9df 0, transparent 35%),
    radial-gradient(circle at 85% 80%, #eadbc4 0, transparent 38%),
    #f7f4ed;
}

.preview {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 16vh, 180px) 0 80px;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #174f3640;
  border-radius: 999px;
  color: #174f36;
  background: #fff9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 40px 0 8px;
  color: #8a5f35;
  font-weight: 700;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(44px, 8vw, 82px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
}

.lead {
  max-width: 560px;
  margin: 28px 0 0;
  color: #41594d;
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.55;
}

.hint {
  margin-top: 22px;
  color: #64766d;
  font-size: 14px;
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  color: #fff;
  background: #174f36;
  box-shadow: 0 10px 30px #0003;
  cursor: pointer;
}

.chat {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #d8ddd9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px #0003;
  z-index: 10;
}

.chat header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: #fff;
  background: #174f36;
}

.chat header div { display: grid; gap: 2px; }
.chat header small { color: #d7e5dc; font-size: 12px; }

.chat-close {
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.messages {
  height: 300px;
  padding: 16px;
  overflow-y: auto;
  background: #f5f7f5;
}

.messages p {
  max-width: 85%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.messages .bot { background: #fff; }
.messages .user { margin-left: auto; color: #fff; background: #276849; }

.chat form { padding: 12px; }
.chat form label { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.chat form div { display: flex; gap: 8px; }
.chat input { min-width: 0; flex: 1; padding: 10px; border: 1px solid #c7cec9; border-radius: 10px; }
.chat form button { border: 0; border-radius: 10px; padding: 10px 14px; color: #fff; background: #174f36; }

button:focus-visible,
input:focus-visible {
  outline: 3px solid #d7a85b;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .chat-launcher { right: 16px; bottom: 16px; }
  .chat { right: 16px; bottom: 76px; }
  .messages { height: min(360px, 48vh); }
}
