:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --border: #dde1e8;
  --text: #14171c;
  --muted: #5c6370;
  --accent: #0d7a6a;
  --accent-hover: #0a6357;
  --call: #e85d04;
  --call-hover: #cf5203;
  --radius: 12px;
  --font: 'Satoshi', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent); }
.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;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 0.95rem;
}
.logo img { height: 40px; width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn--call { background: var(--call); color: #fff; }
.btn--call:hover { background: var(--call-hover); }
.btn--primary { background: var(--accent); color: #fff; width: 100%; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--block { margin-top: 0.5rem; }

.streamline {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 520px);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  align-items: start;
}
.streamline__side { padding-top: 0.5rem; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.streamline__side h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}
.lede { color: var(--muted); max-width: 36ch; margin-bottom: 1.25rem; }
.perks {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.fine { font-size: 0.78rem; color: var(--muted); }

.streamline__chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 12px 40px rgba(20, 23, 28, 0.08);
  padding: 1.25rem;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.steps__item {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
}
.steps__item.is-active { background: #e6f4f1; color: var(--accent); }
.steps__item.is-done { color: var(--accent); }

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  min-height: 200px;
  max-height: 340px;
  margin-bottom: 0.75rem;
}
.msg {
  max-width: 92%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.45;
}
.msg--bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg--alert {
  align-self: stretch;
  background: #fff4ed;
  border: 1px solid #f5c4a0;
  color: #7a3208;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.chips button {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.chips button:hover { border-color: var(--accent); color: var(--accent); }

.chat-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.chat-input input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}
.chat-input button {
  width: 44px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.estimate-card {
  background: #f0faf8;
  border: 1px solid #b8e0d8;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.estimate-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.estimate-card__range {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.estimate-card__note { font-size: 0.85rem; color: var(--muted); }

.book-form h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.field { margin-bottom: 0.75rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.book-success {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .streamline { grid-template-columns: 1fr; }
  .streamline__side { text-align: center; }
  .lede, .perks { margin-inline: auto; }
  .field-row { grid-template-columns: 1fr; }
}
