:root {
  --bg: #f7f2eb;
  --paper: #fffdf9;
  --ink: #251914;
  --muted: #7b6355;
  --line: #eadfce;
  --accent: #3f2a20;
  --accent-soft: #efe3d4;
  --shadow: 0 24px 60px rgba(34, 23, 17, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, #fff8ee 0, #f7f2eb 35%, #f3ede5 100%);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 18px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(247, 242, 235, 0.78);
  border-bottom: 1px solid rgba(234, 223, 206, 0.8);
  z-index: 30;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4a3125, #271912);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.top-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 42px 0 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.product-card,
.info-panel,
.faq-strip {
  background: rgba(255, 253, 249, 0.75);
  border: 1px solid rgba(234, 223, 206, 0.95);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 34px;
  padding: 42px;
}

.hero-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-text {
  font-size: 17px;
  line-height: 1.7;
  max-width: 60ch;
  color: #5f4b40;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #5b4537;
  border: 1px solid #e5d7c7;
  font-size: 14px;
}

.hero-card {
  border-radius: 34px;
  overflow: hidden;
}

.hero-card-image {
  min-height: 280px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), transparent 26%),
    radial-gradient(circle at 65% 55%, rgba(106,66,41,0.20), transparent 24%),
    linear-gradient(135deg, #7f533a 0%, #c69465 45%, #f1d6b0 100%);
}

.hero-card-body {
  padding: 28px;
}

.hero-card-body h3 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.hero-card-body p {
  color: #634f42;
  line-height: 1.7;
}

.section {
  padding: 22px 0 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.story-grid h2,
.faq-strip h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  border-radius: 26px;
  overflow: hidden;
}

.product-visual {
  height: 220px;
}

.visual-1 {
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.75), transparent 22%),
    linear-gradient(145deg, #9b6a49, #f0cb9d);
}

.visual-2 {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.65), transparent 20%),
    linear-gradient(145deg, #884242, #f1b4b4);
}

.visual-3 {
  background:
    radial-gradient(circle at 40% 20%, rgba(255,255,255,0.6), transparent 20%),
    linear-gradient(145deg, #788352, #e1d8a6);
}

.product-body {
  padding: 22px;
}

.product-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f3e8d8;
  color: #7c614d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-body h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.product-body p {
  margin: 0 0 18px;
  color: #665246;
  line-height: 1.7;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7d6657;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.story-grid > div:first-child {
  padding: 30px 8px 0 0;
}

.story-grid p {
  color: #614d40;
  line-height: 1.8;
  font-size: 16px;
}

.info-panel {
  border-radius: 26px;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.info-panel > div {
  border: 1px solid #efe4d5;
  border-radius: 20px;
  padding: 22px;
  background: rgba(255,255,255,0.7);
}

.info-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-strip {
  border-radius: 26px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 80px;
}

.faq-strip p {
  color: #665246;
  line-height: 1.8;
}

.chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #4b3226, #241610);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 24px 50px rgba(36, 22, 16, 0.28);
  z-index: 50;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 98px;
  width: min(380px, calc(100vw - 28px));
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid #ebdfcf;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(26, 18, 13, 0.18);
  overflow: hidden;
  z-index: 49;
}

.chat-widget.is-hidden {
  display: none;
}

.chat-header {
  padding: 20px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid #efe4d6;
  background: linear-gradient(180deg, rgba(247, 239, 228, 0.9), rgba(255, 253, 249, 0.9));
}

.chat-overline {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #866b59;
}

.chat-header h3 {
  margin: 0;
  font-size: 20px;
}

.chat-close {
  border: 0;
  background: transparent;
  color: #6e5648;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.chat-messages {
  max-height: 310px;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #fffdf9;
}

.message-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.55;
  border: 1px solid #ecdfcf;
}

.message-bubble.assistant {
  background: #f4ebde;
  justify-self: start;
}

.message-bubble.visitor {
  background: #2b1b15;
  color: #fff;
  justify-self: end;
  border-color: #2b1b15;
}

.message-role {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.72;
}

.message-content {
  line-height: 1.55;
  word-break: break-word;
}

.message-content p {
  margin: 0;
}

.message-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.chat-status {
  padding: 0 16px 12px;
  color: #7a6254;
  font-size: 13px;
}

.chat-actions-top {
  padding: 0 16px 12px;
}

.chat-form {
  padding: 0 16px 16px;
}

.chat-form textarea {
  width: 100%;
  resize: none;
  border: 1px solid #e7dccc;
  border-radius: 16px;
  padding: 14px;
  font: inherit;
  min-height: 94px;
  background: #fffdfa;
  color: var(--ink);
}

.chat-form textarea:focus {
  outline: 2px solid rgba(99, 67, 47, 0.18);
  border-color: #d7c6b2;
}

.chat-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}

.primary-btn {
  background: #2c1c15;
  color: #fff;
  flex: 1;
}

.secondary-btn {
  background: #f0e4d5;
  color: #5b4639;
  width: 100%;
}

.ghost-btn {
  background: transparent;
  border: 1px solid #e3d3c1;
  color: #624d40;
  flex: 1.2;
}

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

@media (max-width: 900px) {
  .hero,
  .product-grid,
  .story-grid,
  .faq-strip {
    grid-template-columns: 1fr;
  }

  .top-nav {
    display: none;
  }

  .hero-copy {
    padding: 28px;
  }

  .faq-strip {
    margin-bottom: 96px;
  }
}

/* --- Bot health status indicator --- */
.chat-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-health-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted, #888);
  white-space: nowrap;
}

.bot-health-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.bot-health-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.bot-health-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

#botHealthLabel.online {
  color: #22c55e;
}

#botHealthLabel.offline {
  color: #ef4444;
}
