:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080d18;
  color: #f7f9fc;
  --surface: #111a2b;
  --surface-strong: #172238;
  --border: #2a3852;
  --muted: #a9b4c8;
  --accent: #3f83f8;
  --accent-strong: #2563eb;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #080d18;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #1c2940;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: #ffffff;
}

.header-cta {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

main {
  padding-block: 76px 88px;
}

.checker-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #83b4ff;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.checker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 46px;
  align-items: start;
}

.checker-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 48px;
  border-radius: 7px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 14px;
  border: 1px solid #40506c;
  background: #0b1220;
  color: #ffffff;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(63, 131, 248, 0.42);
  outline-offset: 2px;
}

button {
  padding: 0 20px;
  border: 1px solid var(--accent);
  background: var(--accent-strong);
  color: #ffffff;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.field-help,
.coverage-notes,
.checker-result p,
footer {
  color: var(--muted);
}

.field-help {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.checker-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.checker-result[hidden] {
  display: none;
}

.result-status {
  margin-bottom: 8px;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.checker-result[data-tone="review"] .result-status {
  color: var(--warning);
}

.checker-result[data-tone="error"] .result-status {
  color: var(--danger);
}

.checker-result h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.checker-result p {
  line-height: 1.6;
}

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

.result-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #dce9ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.result-actions a:first-child {
  border-color: var(--accent);
  background: #142b50;
}

.coverage-notes {
  padding-top: 8px;
  line-height: 1.65;
}

.coverage-notes h2 {
  color: #ffffff;
  font-size: 26px;
}

.coverage-notes ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.coverage-notes li + li {
  margin-top: 12px;
}

footer {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid #1c2940;
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    padding-block: 16px;
  }

  nav {
    gap: 12px;
  }

  nav > a:first-child {
    display: none;
  }

  main {
    padding-block: 50px 64px;
  }

  .checker-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .checker-panel {
    padding: 20px;
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }
}
