:root {
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #fff;
  --red: #b91c1c;
  --amber: #b45309;
  --green: #047857;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--brand);
}

.audit-header,
.audit-footer {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.audit-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
}

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: none;
}

.brand small {
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding: 72px 0 48px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 58%, #e0f2fe 100%);
}

.hero-grid,
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: #0f172a;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 12px 0 18px;
}

h2 {
  font-size: 30px;
  margin: 0 0 16px;
}

h3 {
  font-size: 21px;
  margin: 22px 0 10px;
}

.lead {
  color: #334155;
  font-size: 20px;
  max-width: 760px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.secondary {
  color: var(--brand-dark);
  background: #dbeafe;
}

.panel,
.card,
.form-card,
.report-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.panel,
.form-card,
.report-card {
  padding: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 24px;
}

.section {
  padding: 56px 0;
}

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

.card {
  padding: 22px;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

label {
  font-weight: 800;
}

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

textarea {
  min-height: 108px;
}

.question {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.question-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.radio-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  line-height: 1.25;
}

.radio-chip input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0;
  border: 2px solid #64748b;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
}

.radio-chip input[type="radio"]:checked {
  border: 5px solid var(--brand);
}

.question-number {
  color: var(--brand);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
  margin-top: 6px;
}

.error-box {
  padding: 16px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 8px;
  margin-bottom: 20px;
}

.risk-pill {
  display: inline-flex;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

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

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

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

.disclaimer {
  padding: 16px;
  border-left: 4px solid var(--amber);
  background: #fffbeb;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f1f5f9;
}

@media (max-width: 820px) {
  .hero-grid,
  .grid-2,
  .cards,
  .stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

@media (max-width: 420px) {
  .question-options {
    grid-template-columns: 1fr;
  }
}
