:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #14202b;
  --muted: #3e4c59;
  --faint: #5c6b78;
  --line: #d5dbe2;
  --navy: #153246;
  --navy-hover: #0d2230;
  --open: #153246;
  --overdue: #6e2e24;
  --closed: #1c4a36;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --header: 4.25rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 246, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 0;
}

.wordmark {
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: 2px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.btn:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
}

.btn-small {
  min-height: 2.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.hero {
  padding: 4.5rem 0 4rem;
}

.kicker {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 4.15rem);
}

.lede {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.audience {
  margin-top: 1.25rem;
  color: var(--faint);
  font-size: 0.95rem;
}

section {
  scroll-margin-top: calc(var(--header) + 1rem);
}

section + section {
  border-top: 1px solid var(--line);
}

#problem,
#how-it-works,
#what-you-get,
#what-we-are-not,
#free-start,
#faq {
  padding: 4.25rem 0;
}

.idx {
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  max-width: 18ch;
}

#problem h2,
#how-it-works h2,
#what-we-are-not h2 {
  max-width: 20ch;
}

.split p,
.section-intro,
.steps p,
.features p,
.callout p,
.faq dd {
  color: var(--muted);
}

.split p {
  margin-top: 1rem;
  max-width: 38rem;
}

.points,
.bounds,
.features,
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points {
  margin-top: 1.75rem;
}

.points li,
.bounds li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.points li:last-child,
.bounds li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps {
  margin-top: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 0.35rem;
}

.steps li + li {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.steps h3,
.features h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.steps p,
.features p {
  margin-top: 0.4rem;
}

.section-intro {
  margin-top: 0.85rem;
  max-width: 36rem;
}

.scroll-hint {
  display: none;
  margin: 0.75rem 0 0;
  color: var(--faint);
  font-size: 0.88rem;
}

.sheet {
  margin: 1.75rem 0 0;
  background: var(--surface);
  border: 1px dashed #b7c0ca;
  border-radius: 2px;
}

.sheet-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

caption {
  caption-side: bottom;
  padding: 0.7rem 0.9rem 0.85rem;
  color: var(--faint);
  font-size: 0.85rem;
  text-align: left;
}

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

th {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.id,
td:nth-child(3),
td:nth-child(5),
td:nth-child(6),
td:nth-child(7) {
  white-space: nowrap;
}

.id {
  font-variant-numeric: tabular-nums;
}

.empty {
  color: var(--faint);
}

.status {
  white-space: nowrap;
  font-weight: 600;
}

.status::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border: 1.5px solid currentColor;
  transform: translateY(-0.05rem);
}

.status-open { color: var(--open); }
.status-overdue { color: var(--overdue); }
.status-closed { color: var(--closed); }

.status-closed::before,
.status-overdue::before {
  background: currentColor;
}

.features {
  margin-top: 1.5rem;
}

.features li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.bounds {
  margin-top: 1.25rem;
}

.callout {
  padding: 1.75rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
}

.callout h2 {
  max-width: 16ch;
}

.callout p {
  max-width: 40rem;
  margin: 0.9rem 0 1.35rem;
}

.faq {
  margin: 1.5rem 0 0;
}

.faq div + div {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.faq dt {
  font-weight: 600;
}

.faq dd {
  margin: 0.4rem 0 0;
  max-width: 42rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-domain,
.copyright {
  color: var(--faint);
  font-size: 0.92rem;
}

.footer-domain {
  margin-top: 0.2rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.email {
  color: var(--navy);
}

@media (min-width: 800px) {
  .hero {
    padding: 6rem 0 5rem;
  }

  h1 {
    max-width: 16em;
  }

  .h1-rest {
    display: block;
  }

  .split {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }

  .points {
    margin-top: 2.6rem;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .steps li + li {
    margin-top: 0;
    padding-top: 0.35rem;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.25rem;
  }

  .features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }

  .callout {
    padding: 2.25rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .copyright {
    grid-column: 1 / -1;
  }

  .footer-contact {
    align-items: flex-end;
  }
}

@media (max-width: 960px) {
  .scroll-hint {
    display: block;
  }

  .board-scroll {
    background-image: linear-gradient(to left, rgba(20, 32, 43, 0.12), rgba(20, 32, 43, 0));
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1.5rem 100%;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
  }

  .nav .btn {
    width: 100%;
  }

  .cta-row .btn,
  .callout .btn,
  .footer-contact .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.draft-banner {
  background: #6e2e24;
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.page-main {
  padding: 2.5rem 0 4rem;
}

.page-header {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.page-header .lede,
.muted {
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--faint);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--line);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

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

.data-table th {
  background: #eef2f5;
}

.code-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.code-article th,
.code-article td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
}

.code-article blockquote {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid #6e2e24;
  background: #faf3f1;
}

.code-article h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.code-article ul {
  padding-left: 1.25rem;
}

.tool-cta {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: #eef4f8;
  border-radius: 0.5rem;
}

.related-codes ul {
  padding-left: 1.25rem;
}

.legal-doc h1 {
  margin-bottom: 1rem;
}

.legal-doc p {
  margin-bottom: 1rem;
  max-width: 42rem;
}

.tool-page .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.tool-page label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tool-page textarea,
.tool-page select,
.tool-page input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  margin-bottom: 1rem;
}

.tool-page textarea {
  min-height: 10rem;
  resize: vertical;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: normal;
  margin-bottom: 1rem;
}

.checkbox-row input {
  margin-top: 0.25rem;
}

.findings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.findings-table th,
.findings-table td {
  border: 1px solid var(--line);
  padding: 0.45rem;
  vertical-align: top;
}

.findings-table textarea {
  min-height: 3rem;
  margin: 0;
}

.privacy-callout {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.footer-legal {
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.footer-legal a {
  text-decoration: underline;
}

.report-error {
  margin-top: 2rem;
  font-size: 0.9rem;
}

@media print {
  .site-header,
  .site-footer,
  .draft-banner,
  .tool-actions,
  .skip {
    display: none !important;
  }
}
