:root {
  --ink: #101a2c;
  --ink-deep: #0b1220;
  --ink-soft: #233150;
  --paper: #f4f5f2;
  --paper-dim: #e9ebe6;
  --sheet: #ffffff;
  --brass: #c99a3b;
  --brass-light: #ddb666;
  --rule: #d5dae3;
  --muted: #56617a;
  --pass: #3d7559;
  --warn: #b0731a;
  --fail: #b3372b;
  --radius: 6px;
  --display: "Archivo", "Arial Black", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  font: 600 1rem/1 var(--sans);
  border: 0;
  border-radius: var(--radius);
  padding: 16px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-brass { background: var(--brass); color: var(--ink-deep); }
.btn-brass:hover { background: var(--brass-light); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Top bar */
.topbar { background: var(--ink-deep); color: var(--paper); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.01em; }
.wordmark svg { width: 28px; height: 28px; }
.topnav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.topnav a { text-decoration: none; color: #c4cad6; }
.topnav a:hover { color: var(--paper); }
.topnav .topnav-cta { color: var(--brass-light); }
@media (max-width: 720px) {
  .topnav a:not(.topnav-cta) { display: none; }
}

/* Hero */
.hero { background: var(--ink-deep); color: var(--paper); padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); max-width: 13ch; }
.lede { margin-top: 20px; font-size: 1.25rem; color: #c4cad6; max-width: 34em; }
.check-form { margin-top: 36px; max-width: 560px; }
.check-field {
  display: flex;
  background: var(--sheet);
  border-radius: calc(var(--radius) + 4px);
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.35);
}
.check-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 500 1.125rem var(--sans);
  color: var(--ink);
  padding: 12px 14px;
}
.check-field input:focus { outline: none; }
.check-field:focus-within { box-shadow: 0 0 0 3px var(--brass), 0 18px 40px rgba(0,0,0,.35); }
.form-error { margin-top: 12px; color: #f2a59c; font-weight: 500; }
.hero-note { margin-top: 18px; font-size: .95rem; color: #8f99ad; }

/* Sample report in hero */
.sample { margin: 0; justify-self: end; width: 100%; max-width: 380px; transform: rotate(2.5deg); }
.sheet {
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--radius);
}
.sample-sheet { padding: 24px 24px 20px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.sheet-head strong { display: block; font-size: 1.125rem; }
.sheet-head div span { color: var(--muted); font-size: .9rem; }
.sample-rows { list-style: none; margin: 0; padding: 0; }
.sample-rows li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.sample-foot { margin-top: 14px; font-size: .9rem; color: var(--muted); }

/* The stamp: the one loud thing on the page */
.stamp {
  --c: var(--fail);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  color: var(--c);
  border: 4px solid var(--c);
  outline: 2px solid var(--c);
  outline-offset: 3px;
  border-radius: 10px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  transform: rotate(-9deg);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0,0,0,.82) 70%, #000 85%);
          mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0,0,0,.82) 70%, #000 85%);
}
.sample .stamp { font-size: 2.6rem; width: 76px; height: 70px; flex: none; margin: 4px 6px 0 0; }
.stamp-a { --c: var(--pass); }
.stamp-b { --c: var(--pass); }
.stamp-c { --c: var(--warn); }
.stamp-d, .stamp-f { --c: var(--fail); }

.mini {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: .85rem;
  width: 30px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: var(--c, var(--fail));
  flex: none;
}
.g-a, .g-b { --c: var(--pass); }
.g-c { --c: var(--warn); }
.g-d, .g-f { --c: var(--fail); }

@media (max-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .sample { justify-self: center; transform: rotate(1.5deg); }
}
@media (max-width: 520px) {
  .check-field { flex-direction: column; gap: 6px; }
  .check-field .btn { width: 100%; }
}

/* Report */
.report-zone { padding: 56px 0 24px; scroll-margin-top: 16px; }
.report { padding: clamp(20px, 4vw, 48px); box-shadow: 0 1px 0 var(--rule), 0 20px 50px rgba(16,26,44,.08); }

.loading h2 { font-size: 1.5rem; }
.loading p { color: var(--muted); margin-top: 6px; }
.progress { list-style: none; margin: 28px 0 0; padding: 0; max-width: 460px; }
.progress li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); color: #9aa3b5; transition: color .3s; }
.progress li::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--rule);
}
.progress li.active { color: var(--ink); }
.progress li.active::before { border-color: var(--brass); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--pass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--pass); }
@keyframes spin { to { transform: rotate(360deg); } }

.report-head { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; padding-bottom: 28px; border-bottom: 3px solid var(--ink); }
.report-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); overflow-wrap: anywhere; }
.report-meta { margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }
.tally { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-weight: 500; }
.tally span { display: inline-flex; align-items: center; gap: 8px; }
.tally span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.t-err { --c: var(--fail); }
.t-warn { --c: var(--warn); }
.t-pass { --c: var(--pass); }
.overall { text-align: center; }
.overall .stamp { font-size: clamp(3.5rem, 8vw, 5.5rem); width: 1.7em; height: 1.45em; }
.overall .stamp.long { font-size: clamp(3rem, 7vw, 4.6rem); width: 2.1em; }
.overall-score { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.report.reveal .overall .stamp { animation: thump .5s cubic-bezier(.2,1.6,.4,1) both .15s; }
@keyframes thump {
  from { transform: rotate(-9deg) scale(2.2); opacity: 0; }
  to { transform: rotate(-9deg) scale(1); opacity: 1; }
}

.cats { list-style: none; margin: 0; padding: 0; }
.cat { display: grid; grid-template-columns: 64px minmax(0, 15rem) minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.cat .mini { width: 52px; height: 44px; font-size: 1.15rem; border-radius: 6px; }
.cat h3 { font-size: 1.125rem; }
.cat-about { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.issues { list-style: none; margin: 0; padding: 0; }
.issues li { position: relative; padding: 3px 0 3px 22px; }
.issues li + li { margin-top: 6px; }
.issues li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.issues .error { --c: var(--fail); }
.issues .warning { --c: var(--warn); }
.issues .clean { --c: var(--pass); color: var(--muted); }
@media (max-width: 720px) {
  .report-head { grid-template-columns: 1fr; }
  .overall { text-align: left; }
  .cat { grid-template-columns: 52px minmax(0, 1fr); }
  .issues { grid-column: 1 / -1; }
}

.cat-email { grid-template-columns: 84px minmax(0, 15rem) minmax(0, 1fr); align-items: center; }
.status-pill { font-weight: 600; font-size: .85rem; text-align: center; padding: 6px 0; border-radius: 4px; color: #fff; background: var(--c); }
.s-pass { --c: var(--pass); }
.s-warn { --c: var(--warn); }
.s-fail { --c: var(--fail); }
@media (max-width: 720px) {
  .cat-email { grid-template-columns: 76px minmax(0, 1fr); }
}

.hero-tight { padding: 64px 0 80px; }

.report-cta {
  margin-top: 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
  align-items: center;
}
.report-cta h3 { font-size: 1.4rem; }
.report-cta p { color: #c4cad6; margin-top: 8px; max-width: 46em; }
@media (max-width: 720px) { .report-cta { grid-template-columns: 1fr; } .report-cta .btn { width: 100%; } }
.report-notes { margin-top: 24px; font-size: .9rem; color: var(--muted); }
.report-notes p + p { margin-top: 4px; }
.report-error h2 { font-size: 1.5rem; }
.report-error p { margin-top: 8px; color: var(--muted); }

/* Sections */
.checks, .how { padding: 96px 0; }
.how { padding-top: 0; }
.checks h2, .how h2, .fix h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-lede { margin-top: 12px; color: var(--muted); font-size: 1.15rem; max-width: 40em; }
.check-list { margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.check-list-4 { grid-template-columns: repeat(4, 1fr); }
.check-list div { padding: 22px 0 28px; border-top: 2px solid var(--ink); }
.check-list dt { font-weight: 600; font-size: 1.1rem; }
.check-list dd { margin: 8px 0 0; color: var(--muted); font-size: .98rem; }
.check-list dd a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
@media (max-width: 960px) { .check-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .check-list { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  margin-bottom: 18px;
}
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Contact */
.fix { background: var(--ink); color: var(--paper); padding: 96px 0; scroll-margin-top: 0; }
.fix-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.fix-copy p { margin-top: 16px; color: #c4cad6; font-size: 1.125rem; max-width: 30em; }
.fix-copy .fix-small { font-size: .95rem; color: #8f99ad; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 500; font-size: .95rem; }
.opt { color: #8f99ad; font-weight: 400; }
.contact-form input, .contact-form textarea {
  font: 400 1rem var(--sans);
  color: var(--paper);
  background: var(--ink-deep);
  border: 1px solid #2c3a59;
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.ok { color: #8fd1ad; }
.form-status.bad { color: #f2a59c; }
@media (max-width: 880px) { .fix-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact-form .btn { width: 100%; } }

.footer { background: var(--ink-deep); color: #8f99ad; font-size: .9rem; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
