:root {
  --black: #050505;
  --ink: #121212;
  --muted: #666666;
  --line: #e4e4de;
  --lime: #C3F82B;
  --white: #ffffff;
  --surface: #f5f5ef;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  min-height: 100vh;
}

.landing-panel {
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(24px, 5vw, 58px);
}

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

.brand-mark {
  display: block;
  flex: 0 0 auto;
  height: 44px;
  width: 44px;
}

.brand-mark svg {
  display: block;
  height: 100%;
  width: 100%;
}

.brand-word {
  color: var(--lime);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.intro {
  margin: clamp(42px, 8vw, 88px) 0 0;
  max-width: 620px;
}

.eyebrow {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.9rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 12px;
}

.intro p:not(.eyebrow),
.result-topline p:not(.eyebrow),
.form-note,
.calc-note,
.result-metric small,
.chart-row span {
  color: var(--muted);
}

.intro p:not(.eyebrow) {
  color: #dddddd;
  font-size: 1.1rem;
  line-height: 1.5;
}

.quick-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(24px, 4vw, 44px);
}

.quick-metrics div {
  border: 1px solid rgba(195, 248, 43, 0.3);
  border-radius: var(--radius);
  padding: 14px;
}

.quick-metrics strong,
.quick-metrics span {
  display: block;
}

.quick-metrics strong {
  color: var(--lime);
  font-size: 1rem;
  margin-bottom: 4px;
}

.quick-metrics span {
  color: #d6d6d6;
  font-size: 0.82rem;
  line-height: 1.25;
}

.diagnostic-layout {
  align-content: start;
  background: var(--surface);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  padding: clamp(18px, 4vw, 52px);
}

.lead-form,
.results-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-form {
  padding: clamp(18px, 3vw, 28px);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 18px;
}

label {
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 7px;
  margin-bottom: 13px;
}

.field-help {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

input,
select {
  background: #f4f4ee;
  border: 1px solid #d8d8d0;
  border-radius: var(--radius);
  min-height: 46px;
  padding: 12px 13px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--black);
  outline: 3px solid rgba(195, 248, 43, 0.8);
}

.field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.button {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 50px;
  padding: 16px 20px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.primary {
  background: var(--lime);
  color: var(--black);
}

.secondary {
  background: var(--black);
  color: var(--white);
}

.full {
  width: 100%;
}

.form-note {
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 12px 0 0;
}

.calc-note {
  border-left: 4px solid var(--lime);
  font-size: 0.76rem;
  line-height: 1.38;
  margin: 10px 0 0;
  padding-left: 10px;
}

.results-card {
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
}

.result-topline {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.result-topline p:not(.eyebrow) {
  line-height: 1.42;
  margin-bottom: 0;
}

.result-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
}

.result-metric {
  background: var(--black);
  border-radius: var(--radius);
  color: var(--white);
  min-height: 108px;
  overflow: hidden;
  padding: 14px;
}

.result-metric.money {
  background: var(--lime);
  color: var(--black);
}

.result-metric span {
  display: block;
  font-size: 2.55rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  white-space: nowrap;
}

.result-metric.money span {
  font-size: 2.8rem;
  line-height: 1;
  white-space: nowrap;
}

.result-metric small {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 10px;
}

.chart-panel {
  background: #f4f4ee;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 14px;
  padding: 16px;
}

.chart-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(110px, 145px) 1fr;
  margin: 12px 0;
}

.chart-row strong,
.chart-row span {
  display: block;
  font-size: 0.88rem;
}

.bar-track {
  align-self: center;
  background: #deded5;
  border-radius: 999px;
  height: 17px;
  overflow: hidden;
}

.bar-track span {
  background: var(--black);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 4%;
  transition: width 240ms ease;
  width: 4%;
}

.bar-track.lime span {
  background: var(--lime);
}

.insights {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.insights p {
  background: #f4f4ee;
  border-left: 6px solid var(--lime);
  border-radius: var(--radius);
  line-height: 1.4;
  margin: 0;
  padding: 12px 14px;
}

.result-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

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

  .intro {
    margin: 44px 0 28px;
  }

  .diagnostic-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .landing-panel,
  .diagnostic-layout {
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.4rem);
  }

  .quick-metrics,
  .field-grid,
  .result-metrics,
  .chart-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
