:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #52627a;
  --line: #d5e0ee;
  --paper: #f3f6fb;
  --card: #ffffff;
  --blue: #2f62d0;
  --blue-dark: #1b3f93;
  --high: #9d2c2c;
  --medium: #8a5a12;
  --low: #1f5c45;
  --hero: #1f5c45;
  --sidekick: #1d4e89;
  --villain: #9d2c2c;
  --zombie: #5c6570;
  --shadow: 0 16px 40px rgba(20, 32, 51, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 280px at 100% -10%, rgba(47, 98, 208, 0.16), transparent 60%),
    var(--paper);
  min-height: 100vh;
}

a { color: var(--blue-dark); }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand strong { display: block; font-size: 1.05rem; }
.brand span, .muted { color: var(--muted); }

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav form, .inline-form { display: flex; gap: 8px; align-items: center; }

select, input, button, .button {
  font: inherit;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 8px 14px;
}

button, .button {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

button:disabled {
  background: #c5d0e0;
  border-color: #c5d0e0;
  color: #52627a;
  cursor: not-allowed;
}

button.secondary, .button.secondary {
  background: white;
  color: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 48px;
}

.card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-copy { padding: 8px 0 8px 8px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; margin: 0 0 12px; }
.lede { font-size: 1.15rem; max-width: 42rem; }

.points { margin: 18px 0 0; padding: 0; list-style: none; }
.points li { padding: 6px 0 6px 18px; position: relative; }
.points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e7efff;
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.notice {
  background: #fff7e8;
  border: 1px solid #efd7a4;
  border-radius: 12px;
  padding: 10px 12px;
}

.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, 1fr); }
.two { grid-template-columns: 1.2fr 0.8fr; }

.stat, .panel { padding: 16px 18px; }
.stat b { display: block; font-size: 1.4rem; }
.stat.hero b { color: var(--hero); }
.stat.sidekick b { color: var(--sidekick); }
.stat.villain b { color: var(--villain); }
.stat.zombie b { color: var(--zombie); }

.score {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) calc(var(--score) * 1%), #e6edf7 0);
  margin-inline-start: auto;
}
.score span {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 650; font-size: 0.85rem; }

.findings { list-style: none; padding: 0; margin: 0; }
.findings li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sev { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sev.high { color: var(--high); }
.sev.medium { color: var(--medium); }
.sev.low { color: var(--low); }

.examples { color: var(--muted); font-size: 0.92rem; }

.site-footer { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 800px) {
  .hero, .stats, .two { grid-template-columns: 1fr; }
  .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
  .score { margin-inline-start: 0; }
}
