:root {
  --ink: #151716;
  --muted: #5f6865;
  --line: #dfe5e2;
  --soft: #f5f7f6;
  --white: #ffffff;
  --green: #0f766e;
  --green-dark: #0b514b;
  --blue: #1d4ed8;
  --red: #b42318;
  --amber: #b7791f;
  --radius: 6px;
  --shadow: 0 18px 45px rgba(12, 23, 20, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  padding: 8px 0;
}

.button,
button {
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
}

.button:hover,
button:hover {
  background: #000000;
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  background: #f0f3f1;
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.25);
  outline-offset: 2px;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 740;
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

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

h1 {
  max-width: 800px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h3 {
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 11px;
}

.report-visual {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-top {
  min-height: 48px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.report-title {
  font-weight: 780;
}

.report-pill {
  color: var(--red);
  background: #fff1ef;
  border: 1px solid #ffd5d0;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 780;
  white-space: nowrap;
}

.report-body {
  padding: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fbfcfc;
}

.metric b {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 6px;
}

.finding-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.finding-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.signal {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
}

.signal.red {
  background: var(--red);
}

.signal.amber {
  background: var(--amber);
}

.signal.green {
  background: var(--green);
}

.finding-list strong {
  display: block;
}

.finding-list small {
  color: var(--muted);
}

.finding-list em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 780;
  white-space: nowrap;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.card {
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
}

.card p,
.step p {
  color: var(--muted);
  margin-bottom: 0;
}

.marker {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #eef8f6;
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 14px;
}

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

.step {
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}

.contrast-band {
  background: var(--ink);
  color: var(--white);
  margin-top: 20px;
}

.contrast-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contrast-inner p {
  color: #c6cfca;
  margin-bottom: 0;
}

.contrast-inner .button {
  background: var(--white);
  color: var(--ink);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 70px;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.form-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.form-panel {
  padding: 22px;
}

.side-panel {
  padding: 18px;
  position: sticky;
  top: 86px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.field legend {
  font-weight: 730;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5d1;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.check-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
}

.check-option input {
  width: 16px;
  min-height: 16px;
}

.file-box {
  border: 1px dashed #9aa8a2;
  border-radius: var(--radius);
  background: #fbfcfc;
  padding: 16px;
}

.file-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.form-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status {
  color: var(--muted);
  font-size: 0.92rem;
}

.status.error {
  color: var(--red);
  font-weight: 720;
}

.side-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.side-list li + li {
  margin-top: 9px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0f3f1;
  font-size: 0.84rem;
  color: #34403c;
}

td {
  color: var(--muted);
}

td strong {
  color: var(--ink);
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 780;
}

.tag.red {
  color: var(--red);
  background: #fff1ef;
}

.tag.amber {
  color: #7c4a03;
  background: #fff7df;
}

.tag.blue {
  color: var(--blue);
  background: #edf4ff;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

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

@media (max-width: 640px) {
  .nav {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 44px;
  }

  .metric-grid,
  .grid,
  .steps,
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .contrast-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .finding-list li {
    grid-template-columns: auto 1fr;
  }

  .finding-list em {
    grid-column: 2;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 4rem);
  }
}
