:root {
  color-scheme: light;
  --paper: #f4f7f1;
  --ink: #18221c;
  --muted: #5f6c63;
  --card: #ffffff;
  --line: #d7dfd3;
  --green: #26765a;
  --teal: #1d6972;
  --amber: #a45f19;
  --red: #b64238;
  --blue: #275b9d;
  --dark: #111c19;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(38, 118, 90, 0.14), rgba(244, 247, 241, 0) 340px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 56px;
}

.hero,
.summary-grid article,
.flow-section,
.evidence-section,
.input-section,
.acceptance,
.fit-limits article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(17, 28, 25, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  padding: 48px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 3.55rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

p,
li,
.check-row span,
dd,
.metric-row small,
.evidence-list p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.lead {
  max-width: 680px;
  font-size: 1.15rem;
}

.proof-note {
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 118, 90, 0.25);
  border-radius: 8px;
  background: #edf6ee;
  color: #285f48;
  font-weight: 800;
}

.audit-board {
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.board-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.board-top span,
.board-top b,
.metric-row span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.board-top strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.16rem;
}

.path-strip {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 0;
}

.path-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.path-strip i {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 18px 0;
}

.metric-row article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.metric-row strong {
  display: block;
  margin: 8px 0 2px;
  color: #fff;
  font-size: 2rem;
}

.metric-row small {
  color: rgba(255, 255, 255, 0.72);
}

.evidence-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.evidence-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.evidence-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.severity,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.severity.high,
.tag.problem {
  background: #fbe7e4;
  color: #8d2c24;
}

.severity.medium,
.tag.pass {
  background: #fff0d8;
  color: #7b420b;
}

.severity.low,
.tag.proof {
  background: #e6f2ff;
  color: #244c83;
}

.summary-grid,
.flow-grid,
.issue-grid,
.fit-limits {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.summary-grid {
  grid-template-columns: repeat(3, 1fr);
}

.summary-grid article {
  padding: 22px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.flow-section,
.evidence-section,
.input-section,
.acceptance {
  margin-top: 18px;
  padding: 34px;
}

.flow-grid {
  grid-template-columns: repeat(3, 1fr);
}

.flow-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcf8;
}

.flow-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

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

.issue {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.issue.high {
  border-top: 5px solid var(--red);
}

.issue.medium {
  border-top: 5px solid var(--amber);
}

.issue.low {
  border-top: 5px solid var(--blue);
}

.issue-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.issue-head b {
  color: var(--ink);
}

dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.input-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.input-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf5;
}

.input-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.08rem;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.check-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1.4fr;
}

.check-row span {
  padding: 14px 16px;
  overflow-wrap: anywhere;
}

.check-row span + span {
  border-left: 1px solid var(--line);
}

.check-row + .check-row span {
  border-top: 1px solid var(--line);
}

.check-row.head {
  background: #edf3e9;
}

.check-row.head span {
  color: var(--ink);
  font-weight: 900;
}

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

.fit-limits article {
  padding: 28px;
}

@media (max-width: 920px) {
  .hero,
  .input-section {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .flow-grid,
  .issue-grid,
  .fit-limits {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero,
  .flow-section,
  .evidence-section,
  .input-section,
  .acceptance {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
  }

  main,
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  .path-strip {
    grid-template-columns: 1fr;
  }

  .path-strip i {
    height: 12px;
    width: 2px;
    margin-left: 18px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .evidence-list div,
  dl div,
  .check-row {
    grid-template-columns: 1fr;
  }

  .check-row span + span {
    border-left: 0;
  }
}
