:root {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b1633;
  background: #f4f7fb;
  --accent: #155eef;
  --border: #c8d2e5;
  --surface: #ffffff;
  --muted: #526079;
  --good: #087443;
  --bad: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; padding: .75rem; background: var(--surface); }
.site-header, main, footer { max-width: 1120px; margin: 0 auto; padding: 1.5rem; }
.site-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.eyebrow { margin: 0 0 .35rem; color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
.status { padding: .6rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.status.good { color: var(--good); border-color: #78c7a3; }
.status.bad { color: var(--bad); border-color: #f3a5a0; }
.hero, .operator, .check-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: 1.25rem; }
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding: clamp(1.25rem, 5vw, 3.5rem); }
.hero h2 { margin: .25rem 0 1rem; }
.hero p { max-width: 62ch; color: var(--muted); line-height: 1.6; }
.facts { margin: 0; }
.facts div { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: .25rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
.section-heading { margin-top: 4rem; }
.section-heading h2 { margin-bottom: .25rem; }
.section-heading p { color: var(--muted); }
.check-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: .8rem; }
.check-grid li { padding: 1rem; overflow-wrap: anywhere; }
.operator { margin-top: 4rem; padding: clamp(1.25rem, 5vw, 3rem); }
.operator .section-heading { margin-top: 0; }
form { display: grid; gap: .7rem; }
label { margin-top: .75rem; font-weight: 750; }
input, textarea, button { font: inherit; border-radius: .65rem; padding: .8rem; }
input, textarea { border: 1px solid var(--border); background: var(--surface); color: inherit; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
button { margin-top: .5rem; border: 0; background: var(--accent); color: white; font-weight: 800; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.result { margin-top: 1rem; padding: 1rem; border-radius: .65rem; background: #eaf0fb; white-space: pre-wrap; overflow-wrap: anywhere; }
footer { color: var(--muted); }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  button { transition: transform 120ms ease; }
  button:hover { transform: translateY(-1px); }
}

@media (prefers-color-scheme: dark) {
  :root { color: #edf3ff; background: #081020; --surface: #101b31; --border: #33425f; --muted: #b9c4d8; --accent: #83a9ff; }
  button { background: #2f6fed; }
  .result { background: #172743; }
}
