:root {
  --ink: #0b1220;
  --ink-2: #16203a;
  --body: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --good: #15803d;
  --good-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --crit: #b91c1c;
  --crit-bg: #fee2e2;
  --gray-bg: #f1f5f9;
  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- header ---------- */
header.site {
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
header.site .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 19px; color: #fff; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo span { color: #60a5fa; }
header.site nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
header.site nav a { color: #cbd5e1; font-size: 15px; }
header.site nav a:hover { color: #fff; text-decoration: none; }
header.site nav a.cta {
  background: var(--accent); color: #fff; padding: 7px 14px; border-radius: 8px; font-weight: 600;
}
header.site nav a.cta:hover { background: var(--accent-dark); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero h1 {
  font-size: 42px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.03em; max-width: 15em;
}
.hero p.lede { font-size: 19px; color: #b6c2d6; margin: 0 0 28px; max-width: 42em; }
.hero .note { color: #7f8ea8; font-size: 14px; margin-top: 14px; }

.checkform { display: flex; gap: 10px; max-width: 620px; flex-wrap: wrap; }
.checkform input[type=text], .checkform input[type=email] {
  flex: 1 1 300px; padding: 14px 16px; font-size: 16px; border-radius: 8px;
  border: 1px solid transparent; background: #fff; color: var(--body); min-width: 0;
}
.checkform button {
  padding: 14px 24px; font-size: 16px; font-weight: 600; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; cursor: pointer;
}
.checkform button:hover { background: var(--accent-dark); }

/* ---------- sections ---------- */
section { padding: 52px 0; }
section.tight { padding: 34px 0; }
h2 { font-size: 27px; letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
h3 { font-size: 19px; margin: 0 0 6px; color: var(--ink); }
.sub { color: var(--muted); margin: 0 0 26px; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- score ---------- */
.scorebox { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.grade {
  width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 44px; font-weight: 700; color: #fff; flex: 0 0 auto;
}
.grade-A { background: #15803d; }
.grade-B { background: #4d7c0f; }
.grade-C { background: #ca8a04; }
.grade-D { background: #ea580c; }
.grade-F { background: #b91c1c; }
.grade-none { background: var(--muted); font-size: 20px; }

/* ---------- findings ---------- */
.finding {
  border: 1px solid var(--line); border-left: 4px solid var(--muted);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; background: #fff;
}
.finding.crit { border-left-color: var(--crit); }
.finding.warn { border-left-color: #d97706; }
.finding.good { border-left-color: var(--good); }
.finding.info { border-left-color: var(--accent); }
.finding.unmeasured { border-left-color: var(--muted); background: var(--gray-bg); }
.finding h4 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.finding p { margin: 0 0 6px; font-size: 15px; color: var(--body); }
.finding .fix { font-size: 14px; color: var(--body); background: var(--gray-bg); padding: 9px 11px; border-radius: 6px; }
.finding .fix b { color: var(--ink); }

.pill {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-right: 8px;
  vertical-align: 2px;
}
.pill.crit { background: var(--crit-bg); color: var(--crit); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.info { background: #dbeafe; color: #1d4ed8; }
.pill.unmeasured { background: #e2e8f0; color: #475569; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--gray-bg); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.wrap-cell { white-space: normal; }

code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
code { background: var(--gray-bg); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
pre.rec {
  background: var(--ink); color: #e2e8f0; padding: 14px 16px; border-radius: 8px;
  overflow-x: auto; font-size: 13.5px; margin: 0 0 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; font-size: 15px;
  font-family: inherit;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--body); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--gray-bg); }
.btn.danger { background: #fff; color: var(--crit); border: 1px solid var(--line); padding: 6px 12px; font-size: 13px; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- forms ---------- */
input[type=text], input[type=email], input[type=file] {
  padding: 11px 13px; font-size: 15px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font-family: inherit; color: var(--body);
}
label { font-weight: 600; font-size: 14px; color: var(--ink); display: block; margin-bottom: 6px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input[type=text] { flex: 1 1 260px; min-width: 0; }

/* ---------- alerts ---------- */
.alert { padding: 13px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 15px; }
.alert.err { background: var(--crit-bg); color: #7f1d1d; }
.alert.ok { background: var(--good-bg); color: #14532d; }
.alert.info { background: #dbeafe; color: #1e3a8a; }
.alert.warn { background: var(--warn-bg); color: #78350f; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .n { font-size: 27px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat .l { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- pricing ---------- */
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan.featured::after {
  content: "Most popular"; position: absolute; top: -12px; left: 26px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.price { font-size: 38px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0; }
.plan li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

/* ---------- bar ---------- */
.bar { height: 8px; background: var(--crit-bg); border-radius: 999px; overflow: hidden; min-width: 90px; }
.bar > i { display: block; height: 100%; background: var(--good); }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink); color: #94a3b8; padding: 34px 0; margin-top: 60px; font-size: 14px;
}
footer.site a { color: #cbd5e1; }
footer.site .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.right { text-align: right; }
.mt { margin-top: 22px; }
.mb { margin-bottom: 22px; }
.nowrap { white-space: nowrap; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 31px; }
  .hero p.lede { font-size: 17px; }
  section { padding: 38px 0; }
  h2 { font-size: 23px; }
  .grade { width: 72px; height: 72px; font-size: 34px; }
}
