:root {
  color-scheme: light;
  --ink: #162d28;
  --muted: #5f716c;
  --line: #d9e3df;
  --surface: #f7faf8;
  --accent: #26745e;
  --accent-2: #2f5f93;
  --soft: #e8f3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
}

.hero {
  min-height: 48vh;
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(16, 43, 35, 0.88), rgba(16, 43, 35, 0.48)),
    url("https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: white;
}

.hero__inner,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero__inner {
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.9;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: 20px;
}

main {
  padding: 36px 0 64px;
}

section {
  padding: 28px 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: 0;
}

h3,
h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

p {
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

article,
.assistant-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

article {
  padding: 18px;
}

article p,
.assistant-heading p,
.answer-note {
  color: var(--muted);
}

.assistant-panel {
  padding: 20px;
}

.assistant-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.chat-log {
  height: min(560px, 58vh);
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.message {
  max-width: 900px;
  padding: 14px 16px;
  border-radius: 8px;
  white-space: normal;
}

.message.user {
  justify-self: end;
  background: var(--accent-2);
  color: white;
}

.message.bot {
  justify-self: start;
  background: var(--soft);
  border: 1px solid var(--line);
}

.message h4 {
  margin-top: 10px;
}

.message h4:first-child {
  margin-top: 0;
}

.message p + h4 {
  margin-top: 14px;
}

.answer-note {
  margin-top: 12px;
  font-size: 14px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 14px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 0 20px;
  cursor: pointer;
}

button:hover {
  background: #1e604d;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-questions button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-weight: 600;
}

.quick-questions button:hover {
  background: var(--soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .features,
  .chat-form {
    grid-template-columns: 1fr;
  }

  button {
    min-height: 46px;
  }

  .hero {
    min-height: 56vh;
  }

  .lead {
    font-size: 18px;
  }
}
