:root {
  --cream: #f7f2e7;
  --cream-deep: #efe6d2;
  --ink: #2c3620;
  --green-deep: #33421f;
  --green: #4a5f2e;
  --green-soft: #7a8f5a;
  --gold: #b8975a;
  --gold-soft: #d8c299;
  --white: #fffdf8;
  --shadow: 0 10px 30px rgba(44, 54, 32, 0.12);
  --radius: 18px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  font-weight: 600;
}

.brand-text .title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--green-deep);
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--green-deep); }

.nav-cta {
  background: var(--green-deep);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/basil-leaf-banner.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.16;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  color: var(--green-deep);
  margin: 0 0 18px;
  line-height: 1.1;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p.lead {
  font-size: 1.08rem;
  color: #4a5340;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--green-deep);
}

.hero-stats .stat span {
  font-size: 0.78rem;
  color: var(--green-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .mascot-wrap {
  background: var(--white);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-soft);
  text-align: center;
  max-width: 320px;
}

.hero-visual img.mascot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid var(--gold-soft);
}

.hero-visual .mascot-quote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-deep);
  font-size: 1.02rem;
}

/* Section shared */
section { padding: 64px 0; }

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-heading .hero-eyebrow { justify-content: center; }
.section-heading .hero-eyebrow::before { display: none; }

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--green-deep);
  margin: 6px 0 12px;
}

.section-heading p { color: #5a6350; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
}

.step-card .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: var(--serif);
  color: var(--green-deep);
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.step-card p { color: #5a6350; font-size: 0.94rem; margin: 0; }

/* Chat */
.chat-section {
  background: var(--green-deep);
  color: var(--cream);
  border-radius: 32px;
  margin: 0 24px;
  padding: 56px 0;
}

.chat-section .section-heading p { color: var(--gold-soft); }
.chat-section .section-heading h2 { color: var(--white); }
.chat-section .hero-eyebrow { color: var(--gold-soft); }
.chat-section .hero-eyebrow::before { background: var(--gold-soft); }

.chat-widget {
  max-width: 680px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: hidden;
}

.chat-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gold-soft);
}

.chat-widget-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.chat-widget-header .who b {
  display: block;
  color: var(--green-deep);
  font-family: var(--serif);
}

.chat-widget-header .who span {
  font-size: 0.78rem;
  color: var(--green-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fae5f;
  margin-left: auto;
  box-shadow: 0 0 0 3px rgba(95,174,95,0.25);
}

#chat-messages {
  height: 340px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(var(--cream), var(--cream));
}

.msg {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.msg.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.msg.user {
  align-self: flex-end;
  background: var(--green-deep);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.msg.error {
  align-self: center;
  background: #f6dede;
  color: #7a2b2b;
  font-size: 0.85rem;
}

.msg.typing {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gold-soft);
  color: var(--green-soft);
  font-style: italic;
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid var(--gold-soft);
}

#chat-input {
  flex: 1;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  resize: none;
  background: var(--cream);
  color: var(--ink);
}

#chat-input:focus {
  outline: none;
  border-color: var(--green);
}

.icon-btn {
  border: 1px solid var(--gold-soft);
  background: var(--cream);
  color: var(--green-deep);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s ease;
}

.icon-btn:hover { background: var(--gold-soft); }
.icon-btn.active { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }

.send-btn {
  background: var(--green-deep);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.send-btn:hover { opacity: 0.88; }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gold-soft);
  margin-top: 18px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card .icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-family: var(--serif);
  color: var(--green-deep);
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #5a6350;
}

/* About / banner strip */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about h2 {
  font-family: var(--serif);
  color: var(--green-deep);
  font-size: 1.9rem;
  margin: 0 0 16px;
}

.about p { color: #4a5340; margin-bottom: 14px; }

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: var(--gold-soft);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.85rem;
}

.site-footer a:hover { color: var(--white); }

.footer-links { display: flex; gap: 20px; }

.footer-brand {
  font-family: var(--serif);
  color: var(--white);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .chat-section { margin: 0 12px; border-radius: 22px; }
}

/* Simple page (privacy policy) */
.simple-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.simple-page h1 {
  font-family: var(--serif);
  color: var(--green-deep);
}

.simple-page h2 {
  font-family: var(--serif);
  color: var(--green-deep);
  margin-top: 32px;
}

.simple-page p, .simple-page li { color: #4a5340; }
