:root {
  --ink: #101c2e;
  --ink-soft: #3d4c63;
  --muted: #68788f;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --accent: #1d5fd1;
  --accent-dark: #14489f;
  --good: #178a4c;
  --warn: #b97b0f;
  --bad: #c93a3a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  position: sticky; top: 0; z-index: 10;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav a.btn-small { text-decoration: none; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: wait; }
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; }
.hero p.sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 660px; margin: 0 auto 28px; }
section.block { padding: 52px 0; }
section.block.alt { background: var(--bg-soft); }
h2.sec { font-size: 1.7rem; letter-spacing: -.01em; margin: 0 0 8px; text-align: center; }
p.sec-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: #fff;
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.pricing .card { display: flex; flex-direction: column; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.card ul { margin: 14px 0 20px; padding-left: 20px; color: var(--ink-soft); font-size: .95rem; }
.card ul li { margin-bottom: 7px; }
.card .btn { margin-top: auto; text-align: center; }
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px; background: #fff;
}
details.faq summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; }
details.faq p { margin: 10px 0 2px; color: var(--ink-soft); }
footer.site { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; justify-content: space-between; }
/* audit page */
.audit-box { max-width: 640px; margin: 0 auto; }
.url-row { display: flex; gap: 10px; margin-top: 26px; }
.url-row input {
  flex: 1; padding: 13px 16px; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.url-row input:focus { outline: none; border-color: var(--accent); }
.progress { display: none; margin-top: 26px; text-align: center; color: var(--muted); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.results { display: none; margin-top: 34px; }
.score-hero { text-align: center; margin-bottom: 30px; }
.score-num { font-size: 4.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.score-num.good { color: var(--good); } .score-num.warn { color: var(--warn); } .score-num.bad { color: var(--bad); }
.score-label { color: var(--muted); margin-top: 6px; }
.pillar { margin-bottom: 18px; }
.pillar-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.bar { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar > div { height: 100%; border-radius: 6px; background: var(--accent); transition: width .6s ease; }
.pillar p { margin: 8px 0 0; color: var(--ink-soft); font-size: .93rem; }
.locked {
  margin-top: 34px; border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; background: var(--bg-soft);
}
.locked h3 { margin: 0 0 8px; font-size: 1.3rem; }
.locked p { color: var(--ink-soft); margin: 0 0 18px; }
.locked .fine { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.error { display: none; margin-top: 20px; color: var(--bad); font-weight: 600; text-align: center; }
@media (max-width: 760px) {
  .grid3 { grid-template-columns: 1fr; }
  .url-row { flex-direction: column; }
  .hero { padding: 48px 0 40px; }
  section.block { padding: 38px 0; }
}
