:root {
  color-scheme: light;
  --ink: #16201f;
  --muted: #5f6f6c;
  --line: #d9e4df;
  --surface: #ffffff;
  --surface-soft: #f5f8f2;
  --accent: #087f5b;
  --accent-strong: #075e49;
  --signal: #b4421d;
  --focus: #1c7ed6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--accent);
  border-radius: 8px;
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.scanner-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 68px);
  padding: clamp(28px, 6vw, 78px) clamp(18px, 4vw, 56px);
}

.scanner-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
}

.lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.scanner-panel {
  min-height: 540px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(29, 54, 47, 0.12);
}

.scan-form,
.lead-form {
  display: grid;
  gap: 10px;
}

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.scan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfdf9;
  border: 1px solid var(--line);
}

button {
  padding: 0 18px;
  color: white;
  background: var(--accent);
  border: 0;
  font-weight: 760;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

input:focus,
button:focus {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 2px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.score-card,
.summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.score-card strong,
.summary-card strong {
  font-size: 38px;
}

.score-label,
.summary-card span:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

#score-context,
#severity-summary {
  color: var(--muted);
  font-size: 13px;
}

.findings {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.findings li {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--signal);
  border-radius: 8px;
}

.findings strong {
  display: block;
  margin-bottom: 4px;
}

.findings p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lead-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.evidence-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(46px, 7vw, 88px) clamp(18px, 4vw, 56px);
  background: #eef6f1;
}

.evidence-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.evidence-band p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.evidence-band img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(29, 54, 47, 0.15);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: clamp(46px, 7vw, 88px) clamp(18px, 4vw, 56px);
}

.pricing article {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pricing h2 {
  margin: 0 0 12px;
}

.price {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 800;
}

footer {
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .scanner-shell,
  .evidence-band,
  .pricing {
    grid-template-columns: 1fr;
  }

  .scanner-shell {
    min-height: auto;
  }

  h1 {
    max-width: none;
    font-size: 44px;
  }
}

@media (max-width: 560px) {
  .nav {
    flex-wrap: wrap;
  }

  .scan-row,
  .result-grid {
    grid-template-columns: 1fr;
  }
}
