:root {
  --ink: #111816;
  --muted: #66736d;
  --line: #d9e1dc;
  --paper: #f6f8f5;
  --panel: #ffffff;
  --charcoal: #101714;
  --forest: #164f3f;
  --mint: #dff1e8;
  --gold: #b9904a;
  --sand: #f1e6d5;
  --blue: #263f8f;
  --shadow: 0 24px 70px rgba(16, 23, 20, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(223, 241, 232, 0.78), transparent 28%),
    linear-gradient(180deg, #f8faf7 0%, #eef3ee 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 79, 63, 0.9), rgba(16, 23, 20, 0.96)),
    #101714;
  color: #fff;
  padding: clamp(24px, 4vw, 52px);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.55;
}

.hero-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.hero-card strong {
  font-size: 1.05rem;
}

.hero-card small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero .eyebrow {
  color: #bfe7d3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  background: #f7faf8;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #67d6a0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: 20px;
  align-items: stretch;
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.chat-panel {
  min-height: 660px;
  display: flex;
  flex-direction: column;
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 430px;
  padding: 22px;
  overflow: auto;
  background:
    linear-gradient(rgba(16, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 23, 20, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.message {
  max-width: 84%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  color: #1d2722;
  line-height: 1.48;
}

.message span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.message.agent {
  background: var(--mint);
  border-color: #c7e4d7;
}

.message.lead {
  align-self: flex-end;
  background: #f6f7f8;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #fff;
}

.chat-form input,
.qualify-form input,
.qualify-form select,
.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.chat-form input:focus,
.qualify-form input:focus,
.qualify-form select:focus,
.booking-form input:focus,
.booking-form select:focus {
  outline: 3px solid rgba(22, 79, 63, 0.16);
  border-color: var(--forest);
}

.chat-form button,
.qualify-form button,
.booking-form button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
}

.chat-form button,
.qualify-form button {
  background: var(--charcoal);
}

.booking-form button {
  background: var(--forest);
}

.qualify-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 22px 14px;
}

.qualify-form label,
.booking-form label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.qualify-form input,
.qualify-form select,
.booking-form input,
.booking-form select {
  margin-top: 7px;
}

.wide {
  grid-column: 1 / -1;
}

.diagnostic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 22px 22px;
  border: 1px solid #dfca9b;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5ead6, #fff8ed);
  padding: 18px;
}

.diagnostic strong {
  display: block;
  margin: 3px 0;
  color: var(--charcoal);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.diagnostic small,
.metric-label {
  color: #755d2c;
  font-weight: 850;
}

.diagnostic p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: #473d2b;
  line-height: 1.48;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 22px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 18px;
}

.booking-copy {
  grid-column: 1 / -1;
}

.booking-copy h3 {
  margin-bottom: 0;
}

.booking-result {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.lead-tools {
  margin: 0 22px 22px;
  border: 1px dashed #aebbb4;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.lead-tools h3 {
  margin-bottom: 0;
}

.export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 14px 0;
  border: 1px solid var(--charcoal);
  border-radius: 6px;
  background: transparent;
  color: var(--charcoal);
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.sync-status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.lead-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf8;
  padding: 12px;
}

.lead-item strong {
  color: var(--charcoal);
}

.lead-item span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.pricing,
.protocol {
  padding-top: 30px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 14px 38px rgba(16, 23, 20, 0.08);
}

.price-card.featured {
  border-color: #b8d9ca;
  background: linear-gradient(180deg, #e8f5ef, #ffffff);
}

.price-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 1.45rem;
}

.price-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.step {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  padding: 18px;
}

.step span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 20px;
  border-bottom: 2px solid #87d8ad;
  color: #bfe7d3;
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.step.locked {
  background: #1b211e;
}

.step.locked span {
  border-color: var(--gold);
  color: #e3c07a;
}

.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: 1100px) {
  .hero,
  .workspace,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .shell {
    padding: 14px;
  }

  .hero,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .qualify-form,
  .diagnostic,
  .booking-form,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 100%;
  }
}
