/* System fonts only: nothing loaded from third parties. All text pairs meet WCAG 2.2 AA (4.5:1). */
:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --text: #1a1a1a;
  --muted: #4a4f57;
  --border: #c9ced6;
  --link: #0b57d0;
  --focus: #b45309;
  --ok-bg: #e6f4ea;
  --ok-text: #0d5a26;
  --warn-bg: #fef3c7;
  --warn-text: #7a4a00;
  --bad-bg: #fde8e8;
  --bad-text: #9b1c1c;
  --neutral-bg: #eceff3;
  --neutral-text: #3a3f47;
  --radius: 6px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1d2026;
    --text: #eceef1;
    --muted: #b5bcc6;
    --border: #3c424c;
    --link: #8ab4f8;
    --focus: #fbbf24;
    --ok-bg: #12321e;
    --ok-text: #a6e3b8;
    --warn-bg: #3a2c05;
    --warn-text: #fcd679;
    --bad-bg: #3d1414;
    --bad-text: #fbb4b4;
    --neutral-bg: #262a31;
    --neutral-text: #d3d8df;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.55 var(--font);
}
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}
a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 1rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.nav {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.nav a[aria-current='page'] {
  font-weight: 700;
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
}
h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.lead {
  font-size: 1.15rem;
  max-width: 42rem;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-head h1 {
  margin: 0;
}
.hero {
  padding: 1rem 0 1.5rem;
}
.steps li {
  margin-bottom: 0.5rem;
}
.empty {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.button {
  display: inline-block;
  background: var(--link);
  color: var(--bg);
  border: 2px solid var(--link);
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  .button {
    color: #0b1b33;
  }
}
.button-small {
  padding: 0.35rem 0.8rem;
}
.button-secondary {
  background: transparent;
  color: var(--link);
}
.button-danger {
  background: var(--bad-text);
  border-color: var(--bad-text);
  color: var(--bg);
}
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}
.secondary-link {
  margin-left: 1rem;
}
form.inline {
  display: inline;
}

.form {
  max-width: 34rem;
}
.field {
  margin: 0 0 1.5rem;
  border: 0;
  padding: 0;
}
fieldset.field legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
input[type='text'],
input[type='email'] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--muted);
  border-radius: var(--radius);
}
.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.6rem 0;
}
.checkbox input {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
  flex: none;
}
.checkbox label {
  font-weight: 400;
  margin: 0;
}
.has-error input[type='text'],
.has-error input[type='email'] {
  border-color: var(--bad-text);
}
.has-error {
  border-left: 4px solid var(--bad-text);
  padding-left: 0.9rem;
}
.error-message {
  color: var(--bad-text);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.error-summary {
  border: 3px solid var(--bad-text);
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.error-summary h2 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
}
.notice {
  border-radius: var(--radius);
  padding: 0.25rem 1rem;
  margin-bottom: 1.5rem;
}
.notice-ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}
.notice-error {
  background: var(--bad-bg);
  color: var(--bad-text);
}

/* The wrapper scrolls (and is focusable for keyboard users); the table itself never does. */
.table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table caption {
  text-align: left;
  font-weight: 600;
  padding: 0.25rem 0;
}
.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table thead th {
  font-size: 0.9rem;
  color: var(--muted);
}
.table tbody th {
  font-weight: 600;
}
.num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.status-ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}
.status-warning {
  background: var(--warn-bg);
  color: var(--warn-text);
}
.status-broken {
  background: var(--bad-bg);
  color: var(--bad-text);
}
.status-pending,
.status-unknown {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}

.record {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0.75rem 0;
}
.record dt {
  font-weight: 600;
}
.record dd {
  margin: 0;
  min-width: 0;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
}
code.copy {
  user-select: all;
  overflow-wrap: anywhere;
}

.findings {
  list-style: none;
  padding: 0;
  margin: 0;
}
.finding {
  border-left: 4px solid var(--border);
  padding: 0.25rem 0 0.25rem 1rem;
  margin-bottom: 1rem;
}
.finding-broken {
  border-color: var(--bad-text);
}
.finding-warning {
  border-color: var(--warn-text);
}
.finding-info {
  border-color: var(--link);
}
.finding-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.danger-zone {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

@media (max-width: 40rem) {
  .record {
    grid-template-columns: 1fr;
  }
  .record dt {
    margin-top: 0.4rem;
  }
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0.75rem 0;
}
.legal {
  max-width: 46rem;
}
.legal h2 {
  font-size: 1.15rem;
}
.plan {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.5rem 1.5rem 1.25rem;
  max-width: 40rem;
}
.price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.25rem 0 0.75rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.plans .plan {
  max-width: none;
}
.plans .plan h2 {
  margin-top: 0.75rem;
}
