:root {
  --bg: #f3f8f3;
  --bg-soft: #e7f2e6;
  --ink: #13221a;
  --muted: #516557;
  --accent: #3d7a4b;
  --accent-dark: #285334;
  --card: #ffffff;
  --line: #cfe0d2;
  --shadow: 0 16px 42px rgba(17, 34, 25, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0%, #f9fff7, #eef6ee 55%, #e8f1e6);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(240, 249, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand-title {
  margin: 0;
  font-family: "Prata", serif;
  font-size: 1.1rem;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 10px 0 14px;
  font-family: "Prata", serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-accent {
  color: #fff;
  background: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.phone-preview {
  background: #d7ebd2;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.bubble {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.status {
  padding: 8px 0 44px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

.chat-section {
  padding: 0 0 60px;
}

.chat-note {
  margin-top: 0;
  color: var(--muted);
}

.chat-window {
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  background: #f6fbf5;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.chat-msg {
  display: inline-block;
  max-width: 80%;
  border-radius: 14px;
  padding: 9px 12px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.chat-msg.user {
  margin-left: auto;
  display: block;
  background: #dff0da;
}

.chat-msg.assistant {
  background: #fff;
  border: 1px solid var(--line);
}

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

.chat-form input {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
}

.modal[hidden],
.toast[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 30;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 12, 0.55);
}

.modal-card {
  position: relative;
  width: min(560px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-counter {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-question {
  display: block;
  margin: 10px 0;
  font-weight: 600;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

.modal-body textarea {
  min-height: 120px;
  resize: vertical;
}

.option-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.option-line input {
  width: auto;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.toast {
  padding: 0 0 60px;
}

@media (max-width: 740px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-form {
    flex-direction: column;
  }
}
