:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5d6975;
  --line: #dce2e8;
  --panel: #f7f9fb;
  --panel-strong: #edf3f7;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --risk: #b42318;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

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

.topbar {
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.brand {
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
}

.button-secondary {
  background: var(--white);
  color: var(--accent-strong);
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hero {
  max-width: 1180px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
}

.lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 58ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.actions.center {
  justify-content: center;
}

.audit-preview,
.report-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.preview-header {
  min-height: 56px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.metrics div {
  padding: 16px;
  background: var(--white);
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 13px;
}

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

th {
  background: var(--panel-strong);
  color: #344250;
  font-size: 12px;
}

.band,
.split,
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px;
}

.band {
  border-top: 1px solid var(--line);
}

.compact {
  text-align: center;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.compact .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.tile {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tile p,
.page-heading p,
.policy-list p,
.form-note {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
}

.check-list {
  margin: 0;
  padding-left: 20px;
}

.check-list li {
  margin-bottom: 10px;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 24px 32px;
  color: var(--muted);
  font-size: 13px;
}

footer p {
  max-width: 1180px;
  margin: 0 auto;
}

.page {
  min-height: calc(100vh - 64px);
}

.narrow {
  max-width: 860px;
}

.page-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.page-heading h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.report-frame {
  padding-bottom: 20px;
}

.report-frame .metrics {
  grid-template-columns: repeat(4, 1fr);
}

.wide-table {
  font-size: 13px;
}

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

.policy-list {
  display: grid;
  gap: 16px;
}

.policy-list article,
.intake-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.intake-form {
  display: grid;
  gap: 18px;
}

label,
legend {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #bac4ce;
  border-radius: 6px;
  font: inherit;
  background: var(--white);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 400;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

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

.form-result.success {
  border-color: #8bbeb6;
  background: #f1faf8;
}

.form-result.error {
  border-color: #efb1aa;
  background: #fff4f2;
  color: var(--risk);
}

.form-result p {
  margin: 8px 0 14px;
}

.form-result pre {
  margin: 14px 0 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 13px/1.5 Consolas, Monaco, monospace;
  white-space: pre-wrap;
}

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

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .three {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px;
  }

  .band,
  .split,
  .page {
    padding: 48px 20px;
  }

  .audit-preview {
    min-width: 0;
  }

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

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 38px;
  }

  .button {
    width: 100%;
  }

  .metrics,
  .report-frame .metrics {
    grid-template-columns: 1fr;
  }
}
