:root {
  --brand: #080337;
  --brand-dark: #050222;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --grey: #9ca3af;
  --bg: #f7f8fa;
  --text: #1f2430;
  --card-bg: #ffffff;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 24px 20px 64px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-suffix {
  font-weight: 700; font-size: 1rem; color: var(--brand);
  border-left: 2px solid var(--border); padding-left: 10px; line-height: 1;
}
.nav a:not(.brand) { color: var(--brand); font-weight: 600; text-decoration: none; }
.nav a:not(.brand):hover { text-decoration: underline; }

.hero { text-align: center; padding: 32px 0 8px; }
.hero h1 { font-size: 2rem; margin-bottom: 8px; }
.hero p { color: #555; font-size: 1.05rem; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=url] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-weight: 400; font-size: 0.85rem; }

button.btn-primary {
  background: var(--brand); color: white; border: none; border-radius: 8px;
  padding: 14px 28px; font-size: 1.05rem; font-weight: 600; cursor: pointer; width: 100%;
}
button.btn-primary:hover { background: var(--brand-dark); }

.error-box { background: #fef2f2; border: 1px solid #fecaca; color: var(--bad); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }

/* --- Progress overlay --- */
#progress-overlay {
  display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.97);
  z-index: 999; align-items: center; justify-content: center; flex-direction: column;
}
#progress-overlay.active { display: flex; }
#progress-overlay .spinner {
  width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--brand);
  border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#progress-overlay .stage { font-size: 1.05rem; color: #444; }

/* --- Score badges --- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; color: white; }
.badge.ok { background: var(--ok); }
.badge.warn { background: var(--warn); }
.badge.bad { background: var(--bad); }
.badge.unavailable { background: var(--grey); }

.score-hero { text-align: center; padding: 24px 0; }
.score-hero .big-score { font-size: 4rem; font-weight: 800; }
.score-hero .domain { color: #666; }

.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.category-card h3 { margin: 0 0 6px; font-size: 1rem; }
.category-card .score-num { font-size: 2rem; font-weight: 700; }
.category-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.85rem; color: #555; }

table.checklist { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.checklist td, table.checklist th { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; }

.cta-footer {
  background: var(--brand); color: white; border-radius: 12px; padding: 28px; text-align: center; margin-top: 32px;
}
.cta-footer a.btn-cta {
  display: inline-block; margin-top: 12px; background: white; color: var(--brand-dark);
  padding: 12px 24px; border-radius: 8px; font-weight: 700; text-decoration: none;
}

.footer-note { text-align: center; color: #888; font-size: 0.8rem; margin-top: 24px; }
.footer-note a { color: #888; }

@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .card { border: 1px solid #ddd; }
}
