.lead-intake-page {
  background:
    linear-gradient(180deg, rgba(255, 247, 231, 0.76), rgba(247, 244, 238, 0.96)),
    var(--paper);
  overflow-x: hidden;
}

.lead-intake-shell {
  padding-top: 86px;
  overflow-x: hidden;
}

.lead-intake-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  padding: clamp(72px, 10vw, 118px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(32, 61, 52, 0.96), rgba(185, 99, 71, 0.74)),
    var(--forest);
  color: #fff;
  min-width: 0;
}

.lead-intake-hero h1 {
  max-width: 1000px;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: none;
}

.lead-intake-hero p:not(.section-kicker) {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.62;
}

.demo-jump-button {
  min-width: 160px;
  color: #1e1707;
  box-shadow: 0 18px 42px rgba(214, 168, 79, 0.26);
}

.lead-intake-workspace {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 5vw, 72px);
  min-width: 0;
  overflow-x: hidden;
}

.lead-intake-form,
.lead-results article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.05);
}

.lead-intake-form {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.lead-form-toolbar,
.signal-grid,
.lead-outcome-row,
.lead-score-row,
.lead-result-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.lead-form-toolbar {
  grid-template-columns: minmax(240px, 0.36fr);
}

.signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-intake-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.lead-sample-field {
  max-width: 920px;
}

.lead-intake-form input,
.lead-intake-form select,
.lead-intake-form textarea,
.lead-sample-signal {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.lead-sample-signal {
  display: block;
  min-height: 128px;
  color: var(--forest);
  background: rgba(255, 252, 245, 0.68);
  cursor: default;
  line-height: 1.52;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  user-select: none;
}

.lead-intake-form textarea {
  line-height: 1.52;
  resize: vertical;
}

.lead-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lead-form-actions .button {
  font-size: 1.02rem;
}

.load-example-button {
  color: var(--forest);
  border-color: rgba(32, 61, 52, 0.28);
  background: rgba(32, 61, 52, 0.08);
}

.lead-results {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.lead-results.is-hidden {
  display: none;
}

.lead-outcome-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-outcome-row article {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
}

.lead-outcome-row article:first-child {
  background: #fff7e7;
  color: var(--forest);
}

.lead-outcome-row span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-outcome-row article:first-child span {
  color: var(--clay);
}

.lead-outcome-row p {
  margin: 0;
  color: inherit;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  font-weight: 850;
  line-height: 1.45;
}

.lead-score-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lead-score-row article,
.lead-result-grid article {
  min-width: 0;
  padding: 22px;
}

.lead-score-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-score-row strong {
  display: block;
  color: var(--forest);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
}

.score-pill {
  display: inline-flex;
  width: fit-content;
  min-width: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
}

.score-pill[data-level="high"] {
  color: #8f2f1e;
  background: #fff0e8;
}

.score-pill[data-level="medium"] {
  color: #755113;
  background: #fff7dc;
}

.score-pill[data-level="low"] {
  color: var(--forest);
  background: rgba(111, 137, 119, 0.16);
}

.lead-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-summary-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(111, 137, 119, 0.12), rgba(214, 168, 79, 0.12)),
    var(--panel);
}

.lead-result-grid h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead-result-grid h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead-result-grid p {
  margin: 0;
  color: var(--forest);
  font-weight: 500;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.lead-summary-card p {
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 500;
}

.lead-reply-preview {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .lead-intake-hero,
  .lead-form-toolbar,
  .signal-grid,
  .lead-outcome-row,
  .lead-result-grid {
    grid-template-columns: 1fr;
  }

  .lead-score-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .lead-score-row article {
    display: grid;
    align-content: center;
    min-height: 78px;
    padding: 12px 8px;
    text-align: center;
  }

  .lead-score-row span {
    margin-bottom: 6px;
    font-size: clamp(0.62rem, 2.2vw, 0.74rem);
    letter-spacing: 0;
  }

  .lead-score-row strong {
    font-size: clamp(0.74rem, 2.55vw, 0.98rem);
  }

  .lead-score-row .score-pill {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
  }

  .lead-intake-hero {
    padding-top: 64px;
  }

  .demo-jump-button {
    width: fit-content;
  }
}

@media (max-width: 660px) {
  .lead-intake-shell {
    padding-top: 68px;
  }

  .lead-intake-workspace {
    padding: 24px 14px;
  }

  .lead-score-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-intake-form,
  .lead-outcome-row article,
  .lead-result-grid article {
    padding: 18px;
  }

  .lead-score-row article {
    padding: 12px 6px;
  }

  .lead-score-row strong {
    font-size: 0.84rem;
  }

  .lead-form-actions {
    display: grid;
  }

  .demo-jump-button,
  .load-example-button {
    width: 100%;
  }

}
