/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --page-plane:     #f9f9f7;
  --surface-1:      #fcfcfb;
  --surface-2:      #ffffff;
  --text-primary:   #0b0b0b;
  --text-secondary: #52514e;
  --text-muted:     #898781;
  --gridline:       #e1e0d9;
  --border:         rgba(11,11,11,0.10);
  --border-strong:  #c3c2b7;

  --series-seo:     #2a78d6; /* categorical slot 1 - blue */
  --series-aeo:     #1baf7a; /* categorical slot 3 - aqua */

  /* Each tool page overrides these two (see the inline <style> in its
     <head>) to match that tool's own PDF report gradient — same brand
     identity on screen and on paper. Falls back to the SEO+AEO blue/green
     for any page that doesn't set its own. */
  --accent-1: var(--series-seo);
  --accent-2: var(--series-aeo);

  --status-good:     #0ca30c;
  --status-warning:  #fab219;
  --status-serious:  #ec835a;
  --status-critical: #d03b3b;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(11,11,11,0.04), 0 8px 24px -12px rgba(11,11,11,0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page-plane:     #0d0d0d;
    --surface-1:      #1a1a19;
    --surface-2:      #212120;
    --text-primary:   #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted:     #898781;
    --gridline:       #2c2c2a;
    --border:         rgba(255,255,255,0.10);
    --border-strong:  #383835;

    --series-seo:     #3987e5;
    --series-aeo:     #199e70;
    --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-plane:     #0d0d0d;
  --surface-1:      #1a1a19;
  --surface-2:      #212120;
  --text-primary:   #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted:     #898781;
  --gridline:       #2c2c2a;
  --border:         rgba(255,255,255,0.10);
  --border-strong:  #383835;

  --series-seo:     #3987e5;
  --series-aeo:     #199e70;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

/* Several components set `display: flex/grid` at the same specificity as the
   UA's `[hidden]{display:none}` rule, which would otherwise lose the tie. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page-plane);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
}

@media (max-width: 560px) {
  .topbar { padding: 16px 0; }
  .tool-nav {
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tool-nav::-webkit-scrollbar { display: none; }
  .tool-nav a {
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
    padding: 7px 12px;
    font-size: 12px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name strong { color: var(--text-primary); font-weight: 700; }

.tool-nav {
  display: flex;
  gap: 4px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.tool-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.tool-nav a:hover:not(.active) { background: var(--gridline); color: var(--text-primary); }
.tool-nav a.active {
  background: var(--text-primary);
  color: var(--page-plane);
  font-weight: 600;
}
.opt-hint { font-weight: 400; color: var(--text-muted); }

@media print {
  .no-print { display: none !important; }
}

.ghost-btn {
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 15px;
}
.ghost-btn:hover { color: var(--text-primary); }

/* ---------- Hero / form ---------- */
.hero {
  position: relative;
  padding: 48px 0 8px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  width: 720px;
  max-width: 140vw;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-1) 16%, transparent), transparent 70%),
              radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
  background-position: 30% 0%, 70% 30%;
  background-size: 60% 100%, 60% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: color-mix(in srgb, var(--accent-1) 12%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.grad-text {
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 16px;
}

.audit-form {
  max-width: 640px;
  margin: 0 auto;
}

.url-row {
  display: flex;
  gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-card);
}

#url-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  min-width: 0;
}
#url-input::placeholder { color: var(--text-muted); }

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  background-size: 160% 100%;
  background-position: 0% 0%;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 0 22px;
  cursor: pointer;
  box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--accent-1) 45%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background-position 0.35s ease;
}
.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background-position: 100% 0%;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent-1) 65%, transparent);
}
.primary-btn:active:not(:disabled) { transform: scale(0.98) translateY(0); }
.primary-btn:disabled { opacity: 0.6; cursor: progress; }
.primary-btn.is-loading .btn-label { padding-left: 20px; position: relative; }
.primary-btn.is-loading .btn-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

/* ---------- Spinner (loading states) ---------- */
.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--gridline);
  border-top-color: var(--accent-1);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .card, .how-step, .problem-banner, .finding-card { animation: none; }
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

/* ---------- Category preview chips (health report hero) ---------- */
.category-preview {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
}
.category-preview li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px 7px 8px;
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  background: var(--gridline);
}

/* ---------- Scroll hint / "how it works" jump link ---------- */
.scroll-hint {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.scroll-hint:hover { color: var(--accent-1); }

/* ---------- How it works ---------- */
.how-it-works {
  padding: 12px 0 8px;
  text-align: center;
}
.how-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-step {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-1);
  border-radius: var(--radius-lg);
  padding: 26px 20px 22px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: fadeInUp 0.4s ease backwards;
}
.how-steps .how-step:nth-child(2) { animation-delay: 0.05s; }
.how-steps .how-step:nth-child(3) { animation-delay: 0.1s; }
.how-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.how-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 34px;
  font-weight: 800;
  color: var(--gridline);
  line-height: 1;
}
.how-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 19px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-1) 20%, transparent), color-mix(in srgb, var(--accent-2) 20%, transparent));
  margin-bottom: 14px;
}
.how-step h3 { font-size: 15px; margin: 0 0 8px; }
.how-step p { font-size: 13.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

@media (max-width: 780px) {
  .how-steps { grid-template-columns: 1fr; }
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
  padding: 10px 4px;
}
.link-btn:hover { color: var(--text-primary); }

.advanced-panel {
  margin-top: 8px;
  padding: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}

.advanced-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.advanced-panel input[type="number"],
.advanced-panel input[type="text"],
.advanced-panel select {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 14px;
  min-width: 0;
  width: 100%;
}

.checkbox-label {
  grid-column: 1 / -1;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
}
.checkbox-label input[type="checkbox"] { width: auto; flex-shrink: 0; }
.checkbox-label input[type="text"] { flex: 1; min-width: 0; }

.form-error {
  color: var(--status-critical);
  font-size: 14px;
  margin-top: 14px;
}

.env-warning {
  color: var(--status-warning);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  max-width: 640px;
  margin: 16px auto 0;
  text-align: left;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  animation: fadeInUp 0.35s ease backwards;
}

/* ---------- Progress ---------- */
.progress-section { margin-top: 36px; }

.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.progress-head h2 { font-size: 18px; margin: 0; }
#progress-url { color: var(--accent-1); }

.stepper {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 20px 0 8px;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gridline);
  display: inline-block;
  flex-shrink: 0;
}

.stepper li.active { color: var(--text-primary); font-weight: 600; }
.stepper li.active .step-dot { background: var(--accent-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-1) 20%, transparent); }
.stepper li.done { color: var(--text-secondary); }
.stepper li.done .step-dot { background: var(--status-good); }

.progress-current-line {
  color: var(--text-secondary);
  font-size: 13.5px;
  min-height: 20px;
  margin: 8px 0 0;
}

.log-details { margin-top: 14px; }
.log-details summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
}
.log-output {
  margin-top: 10px;
  background: var(--page-plane);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  max-height: 260px;
  overflow: auto;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Error ---------- */
.error-section { margin-top: 36px; }
.error-card h2 { margin-top: 0; color: var(--status-critical); }
#error-message { color: var(--text-secondary); white-space: pre-wrap; }

/* ---------- Report ---------- */
.report-section { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.problem-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  animation: fadeInUp 0.35s ease backwards;
}
.problem-banner.tone-critical { background: color-mix(in srgb, var(--status-critical) 12%, var(--surface-1)); border-color: color-mix(in srgb, var(--status-critical) 35%, var(--border)); }
.problem-banner.tone-serious { background: color-mix(in srgb, var(--status-serious) 12%, var(--surface-1)); border-color: color-mix(in srgb, var(--status-serious) 35%, var(--border)); }
.problem-banner.tone-good { background: color-mix(in srgb, var(--status-good) 12%, var(--surface-1)); border-color: color-mix(in srgb, var(--status-good) 35%, var(--border)); }
.problem-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.problem-headline { font-size: 15px; font-weight: 800; }
.problem-banner.tone-critical .problem-headline { color: var(--status-critical); }
.problem-banner.tone-serious .problem-headline { color: var(--status-serious); }
.problem-banner.tone-good .problem-headline { color: var(--status-good); }
.problem-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.problem-sub em { color: var(--text-muted); font-style: normal; }

.report-head h2 { margin: 0 0 4px; font-size: 20px; word-break: break-word; }
.report-meta { color: var(--text-secondary); font-size: 13.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.report-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pdf-error { color: var(--status-critical); font-size: 12.5px; max-width: 220px; }
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 13.5px;
  cursor: pointer;
}
.secondary-btn { transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.secondary-btn:hover {
  background: var(--gridline);
  border-color: color-mix(in srgb, var(--accent-1) 40%, var(--border-strong));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(11,11,11,0.18);
}
.secondary-btn:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* Score gauges */
.scores-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gauge-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gauge-svg { flex-shrink: 0; }
.gauge-track { fill: none; stroke: var(--gridline); }
.gauge-value-text { font-size: 22px; font-weight: 700; fill: var(--text-primary); font-variant-numeric: tabular-nums; }

.gauge-label { font-size: 13.5px; color: var(--text-secondary); font-weight: 600; margin-bottom: 4px; }
.gauge-sub { font-size: 12.5px; color: var(--text-muted); }

/* Severity summary strip */
.severity-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.severity-tile {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.severity-tile .count { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.severity-tile .label { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-critical { background: var(--status-critical); }
.dot-high { background: var(--status-serious); }
.dot-medium { background: var(--status-warning); }
.dot-low { background: var(--status-good); }
.dot-info { background: var(--text-muted); }

/* Filters */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}
.filter-chip.active {
  background: var(--text-primary);
  color: var(--page-plane);
  border-color: var(--text-primary);
}

/* Finding cards */
.findings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finding-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  animation: fadeInUp 0.3s ease backwards;
}
.finding-card:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }
.finding-card.sev-critical { border-left-color: var(--status-critical); }
.finding-card.sev-high { border-left-color: var(--status-serious); }
.finding-card.sev-medium { border-left-color: var(--status-warning); }
.finding-card.sev-low { border-left-color: var(--status-good); }
.finding-card.sev-info { border-left-color: var(--border-strong); }

.finding-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
}

.finding-id { font-family: ui-monospace, monospace; color: var(--text-secondary); }
.finding-why { margin: 8px 0 4px; font-size: 14.5px; }
.finding-rec { margin: 0 0 6px; font-size: 13.5px; color: var(--text-secondary); }
.finding-evidence { font-size: 12.5px; color: var(--text-muted); }

.finding-actions { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.finding-actions button {
  background: none;
  border: none;
  color: var(--accent-1);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}

.fix-block {
  margin-top: 10px;
  padding: 12px;
  background: var(--page-plane);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.fix-block pre {
  overflow: auto;
  background: var(--surface-1);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.affected-urls {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.affected-urls a { color: var(--accent-2); }

/* Schema matrix */
.table-scroll { overflow-x: auto; }
table.schema-matrix {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
table.schema-matrix th, table.schema-matrix td {
  border: 1px solid var(--gridline);
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}
table.schema-matrix th { color: var(--text-secondary); font-weight: 600; background: var(--surface-2); }
table.schema-matrix td:first-child, table.schema-matrix th:first-child { text-align: left; }
.yes { color: var(--status-good); font-weight: 700; }
.no { color: var(--text-muted); }

/* Screenshots */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.screen-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
}
.screen-item img { display: block; width: 100%; height: auto; }
.screen-caption { padding: 8px 10px; font-size: 12px; color: var(--text-secondary); }

h3.section-title {
  font-size: 15px;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: -8px 0 12px;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
}

@media (max-width: 640px) {
  .url-row { flex-direction: column; }
  .primary-btn { padding: 12px; }
  .advanced-panel { grid-template-columns: 1fr; }
  .severity-strip { grid-template-columns: repeat(2, 1fr); }
}
