:root {
  --ink: #101322;
  --muted: #5b6275;
  --line: #e6e8f0;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --accent: #3b5bfd;
  --accent-2: #1e2a78;
  --good: #0e9f6e;
  --warn: #d98207;
  --bad: #dc2626;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site { border-bottom: 1px solid var(--line); background: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -0.2px; }
.logo span { color: var(--accent); }
nav.top a { margin-left: 18px; font-size: 14px; color: var(--muted); }
nav.top a:hover { color: var(--ink); }

.hero { padding: 52px 0 28px; text-align: center; }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.6px; }
.hero p.sub { color: var(--muted); max-width: 640px; margin: 0 auto 26px; font-size: 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; color: var(--accent-2); background: #eef1ff; border: 1px solid #dde3ff; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; }

.checker-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.check-form { display: flex; gap: 10px; }
.check-form input {
  flex: 1; padding: 13px 16px; font-size: 16px; border: 1.5px solid var(--line);
  border-radius: 10px; outline: none; background: #fff; color: var(--ink);
}
.check-form input:focus { border-color: var(--accent); }
.check-form button {
  padding: 13px 22px; font-size: 15px; font-weight: 700; color: #fff; background: var(--accent);
  border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.check-form button:hover { background: var(--accent-2); }
.check-form button[disabled] { opacity: 0.6; cursor: wait; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: left; }

#result { margin-top: 26px; text-align: left; }
.score-head { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; flex-wrap: wrap; }
.score-ring { width: 108px; height: 108px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; flex: none; }
.score-ring .num { font-size: 34px; font-weight: 800; line-height: 1; }
.score-ring .g { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.score-meta { flex: 1; min-width: 240px; }
.score-meta .verdict { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.score-meta .url { font-size: 13px; color: var(--muted); word-break: break-all; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pillar .p-name { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.pillar .p-score { font-size: 21px; font-weight: 800; margin: 2px 0 6px; }
.bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

.bots { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bots table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bots th, .bots td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.bots th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); background: var(--soft); }
.bots tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.tag.pass { color: #0b7a55; background: #e2f7ee; }
.tag.warn { color: #966100; background: #fdf2dd; }
.tag.fail { color: #b21c1c; background: #fde5e5; }
.tag.unknown { color: var(--muted); background: #eef0f5; }

.checks { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.checks details { border-bottom: 1px solid var(--line); }
.checks details:last-child { border-bottom: 0; }
.checks summary { cursor: pointer; padding: 11px 14px; font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.checks .d { color: var(--muted); font-size: 13px; padding: 0 14px 12px; }
.checks .pts { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.recs { margin-top: 18px; }
.recs h3 { margin: 0 0 10px; font-size: 17px; }
.rec { background: #fffaf0; border: 1px solid #f3e2bd; border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; }
.rec b { display: block; margin-bottom: 3px; }
.rec p { margin: 0; font-size: 14px; color: #4a4f3f; }

.err { margin-top: 18px; background: #fde5e5; color: #8f1717; border-radius: 10px; padding: 12px 16px; font-size: 14.5px; }

section { padding: 36px 0; }
section h2 { font-size: 24px; letter-spacing: -0.3px; margin: 0 0 14px; }
.prose p { color: #333a4d; }
.prose li { color: #333a4d; margin-bottom: 6px; }

.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; padding: 13px 0; cursor: pointer; }
.faq .a { padding: 0 0 14px; color: #333a4d; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tool-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.tool-card b { display: block; margin-bottom: 4px; }
.tool-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }

.affbox { background: #eef1ff; border: 1px solid #dde3ff; border-radius: 12px; padding: 16px 18px; margin-top: 18px; font-size: 14px; }
.affbox b { display: block; margin-bottom: 4px; }

footer.site { border-top: 1px solid var(--line); margin-top: 30px; padding: 22px 0 40px; color: var(--muted); font-size: 13.5px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav a { margin-right: 14px; }

.gen-form label { display: block; font-size: 13.5px; font-weight: 700; margin: 14px 0 5px; }
.gen-form input, .gen-form textarea {
  width: 100%; padding: 11px 13px; font-size: 15px; border: 1.5px solid var(--line);
  border-radius: 10px; outline: none; font-family: inherit; background: #fff;
}
.gen-form input:focus, .gen-form textarea:focus { border-color: var(--accent); }
.btn2 { margin-top: 16px; padding: 12px 20px; font-size: 15px; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 10px; cursor: pointer; }
.btn2:hover { background: var(--accent-2); }
textarea#output { margin-top: 20px; min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--soft); }

@media (max-width: 640px) {
  .check-form { flex-direction: column; }
  .hero h1 { font-size: 27px; }
  .score-head { flex-direction: column; text-align: center; }
}

/* footer link groups */
.foot-grid{display:flex;flex-wrap:wrap;gap:24px 40px;margin-top:16px}
.foot-col{min-width:130px;text-align:left}
.foot-col h4{margin:0 0 8px;font-size:12px;letter-spacing:.09em;text-transform:uppercase;opacity:.65}
.foot-col a{display:block;margin:5px 0}
