/* palette pulled from the logo: deep chip navy, circuit blue, steel grey */
:root {
  --ink: #0f1f33;
  --ink-soft: #3b4a5c;
  --steel: #8593a3;
  --line: #d8dee5;
  --paper: #f3f6f9;
  --white: #ffffff;
  --circuit: #1f7fd1;
  --circuit-deep: #165f9e;
  --pass: #237a4b;
  --warn: #9a5b0f;
  --fail: #b3261e;
  --sans: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --measure: 34rem;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--circuit-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav .nav-links { display: flex; gap: 1.5rem; }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--circuit-deep); color: var(--white); }
.site-nav .button { color: var(--white); }
.site-nav .button:hover { text-decoration: none; }

/* hero */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 5rem;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.hero .lede {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 2rem;
}
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.hero .actions .quiet { color: var(--ink-soft); font-size: 0.9375rem; }

/* the email-header panel: the one loud element on the page */
.headers {
  margin: 0;
  background: var(--ink);
  color: #dbe5ef;
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 1px 0 #0a1626, 0 18px 40px -18px rgba(15, 31, 51, 0.55);
}
.headers figcaption {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--steel);
  margin-bottom: 1rem;
}
.headers dl {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
}
.headers dt { color: var(--steel); }
.headers dd { margin: 0; overflow-wrap: break-word; min-width: 0; }
.headers .rule { border: 0; border-top: 1px solid #24364d; margin: 0.9rem 0; }
.result { font-weight: 600; }
.result.fail { color: #ff8a80; }
.result.warn { color: #ffc46b; }
.result .why { font-weight: 400; color: #9fb0c2; }
.headers .verdict {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid #24364d;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--white);
}

/* sections */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.section .intro { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 2.5rem; }

/* what gets checked: four areas, ruled, not carded */
.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  border-top: 2px solid var(--ink);
  padding: 1.25rem 0 2rem;
}
.checks h3 { font-size: 1.1875rem; margin: 0 0 0.4rem; font-weight: 600; }
.checks p { margin: 0; color: var(--ink-soft); max-width: 30rem; }
.checks .tech { display: block; margin-top: 0.6rem; font-size: 0.875rem; color: var(--steel); }

/* deliverable vs. out of scope */
.scope {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
}
.scope h3 { font-size: 1.1875rem; margin: 0 0 1rem; font-weight: 600; }
.scope ul { margin: 0; padding-left: 1.2rem; }
.scope li { margin-bottom: 0.6rem; }
.scope li::marker { color: var(--circuit); }
.scope .not {
  background: var(--paper);
  border-left: 3px solid var(--steel);
  padding: 1.5rem 1.5rem 1rem;
}
.scope .not li::marker { color: var(--steel); }
.scope .not p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.9375rem; }

/* process: a real sequence, so it is numbered */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--circuit);
  color: var(--circuit-deep);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.0625rem; margin: 0 0 0.35rem; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

/* about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}
.about p { max-width: var(--measure); }
.about .facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.about .facts li { border-bottom: 1px solid var(--line); padding: 0.75rem 0; color: var(--ink-soft); font-size: 0.9375rem; }
.about .facts strong { display: block; color: var(--ink); font-weight: 600; }

/* contact */
.contact { background: var(--paper); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; }
.contact .aside p { color: var(--ink-soft); max-width: 26rem; }
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9c3ce;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(31, 127, 209, 0.35);
  outline-offset: 0;
  border-color: var(--circuit);
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .fine { font-size: 0.8125rem; color: var(--steel); margin: 0; }

/* footer */
.site-foot { background: var(--ink); color: #b8c5d3; padding: 2.5rem 0; font-size: 0.875rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-foot a { color: #dbe5ef; }
.site-foot p { margin: 0 0 0.35rem; }
.site-foot .legal a { margin-right: 1rem; }

/* plain pages: thank-you, privacy, terms, 404 */
.page { padding: 4rem 0 5rem; }
.page .wrap { max-width: 44rem; }
.page h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem; font-weight: 600; }
.page h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; font-weight: 600; }
.page p, .page li { color: var(--ink-soft); }
.page .updated { color: var(--steel); font-size: 0.875rem; }

@media (max-width: 900px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero .wrap, .scope, .about, .contact .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav .nav-links { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 3.25rem 0; }
  .checks, .steps, .form .row { grid-template-columns: 1fr; }
  .headers { font-size: 0.8125rem; padding: 1.25rem; }
  .headers dl { grid-template-columns: 3.75rem 1fr; }
  .brand span { display: none; }
}
