:root {
  --bg: #f4f6fa;
  --bg2: #ffffff;
  --bg3: #eef1f7;
  --border: #dde2ee;
  --accent: #3b7ef6;
  --accent2: #6c47f5;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --text: #111827;
  --text-soft: #6b7280;
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Site Nav ---- */
.site-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 56px;
}
.nav-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg3); color: var(--text); }
.nav-links a.active { background: var(--bg3); color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  padding: 5px 10px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-dropdown-toggle:hover { background: var(--bg3); color: var(--text); }
.nav-dropdown-toggle.active { background: var(--bg3); color: var(--accent); }
.nav-dropdown-chevron { font-size: 9px; transition: transform .2s; line-height:1; }
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; min-width: 210px;
  z-index: 200; box-shadow: 0 8px 28px rgba(0,0,0,.18);
  /* transparent top padding bridges the gap so hover isn't lost */
  margin-top: 0;
}
.nav-dropdown-menu::before {
  content: ''; position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 8px 12px; font-size: 13px; font-weight: 600;
  border-radius: 7px; color: var(--text-soft); text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-dropdown-menu a:hover { background: var(--bg3); color: var(--text); }
.nav-dropdown-menu a.active { background: var(--bg3); color: var(--accent); }
.nav-dropdown-menu .menu-divider {
  height: 1px; background: var(--border); margin: 5px 4px;
}

/* Schema hub cards */
.schema-hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; margin-top: 8px;
}
.schema-hub-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.schema-hub-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.12); text-decoration: none; }
.schema-hub-title { font-size: 15px; font-weight: 700; }
.schema-hub-desc { font-size: 13px; color: var(--text-soft); line-height: 1.55; }
.schema-hub-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; margin-top: 4px; }
.badge-critical { background: #fee2e2; color: #b91c1c; }
.badge-high { background: #dbeafe; color: #1d4ed8; }
.badge-medium { background: #fef3c7; color: #92400e; }

/* Delete buttons for dynamic rows */
.delete-row-btn {
  background: none; border: none; cursor: pointer; color: var(--text-soft);
  font-size: 15px; padding: 4px 6px; border-radius: 6px; line-height: 1;
  transition: background .12s, color .12s; flex-shrink: 0;
}
.delete-row-btn:hover { background: #fee2e2; color: #b91c1c; }

/* Layout */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ---- Content page prose styles ---- */
.prose h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text);
}
.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text);
}
.prose p {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 12px;
  line-height: 1.7;
}
.prose p strong { color: var(--text); }
.prose ul {
  margin: 8px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose ul li { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.prose ul li strong { color: var(--text); }
.prose-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

/* ---- Related tools grid ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.related-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(59,126,246,0.1);
  text-decoration: none;
}
.related-card .rc-title:hover { text-decoration: none; }
.related-card .rc-icon { font-size: 22px; margin-bottom: 8px; }
.related-card .rc-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.related-card .rc-desc  { font-size: 12px; color: var(--text-soft); line-height: 1.4; }

/* ---- Page hero (for tool sub-pages) ---- */
.page-hero {
  text-align: center;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.page-hero .badge {
  display: inline-block;
  background: var(--bg3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.page-hero p {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- FAQ section (shared across pages) ---- */
.faq-block { margin-top: 8px; }
.faq-entry {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-entry:last-child { border-bottom: none; }
.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-q .faq-chevron {
  font-size: 12px;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-entry.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  display: none;
  padding-top: 6px;
}
.faq-entry.open .faq-a { display: block; }

/* ---- Inline code ---- */
code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--accent2);
}

/* ---- Validation result inline ---- */
.val-pass { color: #15803d; font-weight: 600; }
.val-fail { color: #b91c1c; font-weight: 600; }
.val-warn { color: #92400e; font-weight: 600; }
.val-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg3);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.val-icon { flex-shrink: 0; margin-top: 1px; }

/* Header */
.site-header {
  text-align: center;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.site-header .badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.site-header h1 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  background: linear-gradient(135deg, #111827, #3b7ef6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.site-header p {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Score Dashboard */
.score-dashboard {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 640px) {
  .score-dashboard { grid-template-columns: 1fr; text-align: center; }
}
.score-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.4s;
}
.score-circle .score-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.score-circle .score-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-top: 2px;
}
.score-meta h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.score-meta p { font-size: 14px; color: var(--text-soft); }
.progress-wrap { margin-top: 12px; }
.progress-bar-bg {
  background: var(--bg3);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.4s ease;
  width: 0%;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 5px;
}
.score-actions { display: flex; flex-direction: column; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.btn-ghost {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Band Legend */
.band-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}
.band-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.band-card .band-range {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.band-card .band-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.band-card .band-desc { font-size: 12px; color: var(--text-soft); line-height: 1.4; }
.band-red   { border-left: 3px solid #dc2626; }
.band-amber { border-left: 3px solid #d97706; }
.band-blue  { border-left: 3px solid #3b7ef6; }
.band-green { border-left: 3px solid #16a34a; }
.band-red .band-range   { color: #b91c1c; }
.band-amber .band-range { color: #92400e; }
.band-blue .band-range  { color: #1d4ed8; }
.band-green .band-range { color: #15803d; }

/* Sections */
.section {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.section-header {
  background: var(--bg2);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.section-header:hover { background: var(--bg3); }
.section-header-left { display: flex; align-items: center; gap: 14px; }
.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.icon-foundation { background: #dbeafe; }
.icon-keyword    { background: #ede9fe; }
.icon-technical  { background: #dcfce7; }
.icon-content    { background: #fef3c7; }
.icon-bot        { background: #fee2e2; }
.icon-structure  { background: #e0f2fe; }
.icon-eeat       { background: #f3e8ff; }
.icon-topical    { background: #d1fae5; }
.icon-techgeo    { background: #e0e7ff; }
.section-title { font-size: 16px; font-weight: 700; }
.section-subtitle { font-size: 12px; color: var(--text-soft); margin-top: 1px; }
.section-header-right { display: flex; align-items: center; gap: 14px; }
.section-progress { font-size: 12px; color: var(--text-soft); white-space: nowrap; }
.section-progress span { color: var(--text); font-weight: 600; }
.chevron { color: var(--text-soft); transition: transform 0.25s; font-size: 14px; }
.section.open .chevron { transform: rotate(180deg); }
.section-body { display: none; padding: 0 24px 20px; background: var(--bg); }
.section.open .section-body { display: block; }

/* Category labels */
.cat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.cat-label:first-child { padding-top: 20px; }

/* Checklist items */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.check-item:last-child { border-bottom: none; }
.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-item label { cursor: pointer; flex: 1; }
.check-item label .item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  transition: color 0.2s;
}
.check-item label .item-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}
.check-item.checked label .item-title {
  color: var(--text-soft);
  text-decoration: line-through;
}
.priority-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 3px;
  text-transform: uppercase;
}
.p-critical { background: #fee2e2; color: #b91c1c; }
.p-high     { background: #fef3c7; color: #92400e; }
.p-medium   { background: #dbeafe; color: #1d4ed8; }
.p-low      { background: #dcfce7; color: #15803d; }

/* Tool cards */
.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.tool-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.tool-card .tool-desc { font-size: 13px; color: var(--text-soft); margin-bottom: 18px; }

.input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input-row input[type="text"],
.input-row input[type="url"] {
  flex: 1;
  min-width: 220px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.input-row input:focus { border-color: var(--accent); }

/* robots.txt results */
.robots-result { margin-top: 16px; display: none; }
.robots-result.visible { display: block; }
.bot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.bot-row:last-child { border-bottom: none; }
.bot-name { font-weight: 600; min-width: 160px; }
.bot-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-allowed { background: #dcfce7; color: #15803d; }
.status-blocked { background: #fee2e2; color: #b91c1c; }
.status-unknown { background: #f3f4f6; color: #6b7280; }

/* Signal list */
.validation-result { margin-top: 16px; display: none; }
.validation-result.visible { display: block; }
.signal-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.signal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 8px 12px;
  background: var(--bg3);
  border-radius: 8px;
}
.signal-icon  { font-size: 15px; flex-shrink: 0; }
.signal-label { flex: 1; }
.signal-value { font-weight: 600; font-size: 12px; }
.v-pass { color: #15803d; }
.v-fail { color: #b91c1c; }
.v-warn { color: #92400e; }
.v-info { color: #1d4ed8; }

/* Report preview */
#report-preview {
  display: none;
  margin-top: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
#report-preview h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
#report-content {
  font-size: 13px;
  color: var(--text-soft);
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  line-height: 1.7;
}

/* Form groups */
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }

/* Code output boxes */
.code-output {
  margin-top: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
  font-family: monospace;
  color: var(--text);
  white-space: pre-wrap;
  display: none;
}
pre.code-output { white-space: pre; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 0 16px;
  color: var(--text-soft);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 9px 14px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.tab-btn.active { background: var(--accent); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Utilities */
.mt8  { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.copy-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); }

@media print {
  body { background: #fff; color: #111827; }
  .tabs, .btn, .score-actions, .input-row button, .scan-hero { display: none !important; }
}

/* ============================================================
   URL SCAN HERO
   ============================================================ */
.scan-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.scan-hero-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.scan-input-row {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
  gap: 0;
}
.scan-input-row:focus-within { border-color: var(--accent); }
.scan-prefix {
  padding: 0 12px;
  font-size: 18px;
  color: var(--text-soft);
  flex-shrink: 0;
}
.scan-input-row input[type="url"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  padding: 13px 8px;
  outline: none;
  min-width: 0;
}
.scan-input-row input[type="url"]::placeholder { color: var(--text-soft); opacity: 0.6; }
.scan-btn { border-radius: 8px; margin: 5px 5px 5px 0; padding: 10px 22px; }
.scan-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 8px;
}

/* ============================================================
   SCAN CARD (idle / loading / error states)
   ============================================================ */
.scan-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
}
.scan-idle-icon { font-size: 48px; margin-bottom: 16px; }
.scan-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.scan-card p  { font-size: 14px; color: var(--text-soft); max-width: 520px; margin: 0 auto 16px; }

.scan-feature-list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 16px auto;
  font-size: 13px;
  color: var(--text-soft);
}
.scan-feature-list li { display: flex; gap: 8px; }
.scan-feature-list li::before { content: none; }

.scan-disclaimer {
  font-size: 11px;
  color: var(--text-soft);
  opacity: 0.6;
  margin-top: 20px;
}

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #dde2ee;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SCAN RESULTS
   ============================================================ */
.scan-result-header {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.scan-result-url {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}
.scan-result-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.https-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.https-ok   { background: #dcfce7; color: #15803d; }
.https-fail { background: #fee2e2; color: #b91c1c; }

/* Score row */
.scan-score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-bottom: 24px;
  align-items: start;
}
@media (max-width: 640px) {
  .scan-score-row { grid-template-columns: 1fr; }
}
.scan-score-main {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
}
@media (max-width: 500px) {
  .scan-score-main { flex-direction: column; }
}
.scan-score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.4s;
}
.scan-score-num { font-size: 28px; font-weight: 800; line-height: 1; }
.scan-score-sub { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.scan-score-info { flex: 1; }
.scan-band-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.scan-band-desc { font-size: 13px; color: var(--text-soft); margin-bottom: 10px; }
.scan-bar-wrap { margin-top: 6px; }

/* Category score pills */
.scan-category-scores {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.cat-score-pill {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cat-score-label { font-size: 12px; font-weight: 600; color: var(--text-soft); }
.cat-score-val   { font-size: 14px; font-weight: 800; }
.cat-score-bar {
  width: 100%;
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.cat-score-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.5s ease;
}

/* Scan section groups */
.scan-sections { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.scan-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.scan-section-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.scan-section-header:hover { background: var(--bg2); }
.scan-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}
.scan-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.scan-section-score {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.scan-section-body {
  display: none;
  padding: 4px 20px 16px;
  background: var(--bg);
}
.scan-section.open .scan-section-body { display: block; }
.scan-section.open .scan-section-header { background: var(--bg3); }

/* Individual scan signal rows */
.scan-signal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.scan-signal:last-child { border-bottom: none; }
.scan-signal-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.scan-signal-body { flex: 1; }
.scan-signal-title { font-weight: 600; margin-bottom: 2px; }
.scan-signal-detail { font-size: 12px; color: var(--text-soft); line-height: 1.4; }
.scan-signal-pts {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.pts-earned { background: #dcfce7; color: #15803d; }
.pts-missed { background: #fee2e2; color: #b91c1c; }
.pts-warn   { background: #fef3c7; color: #92400e; }
.pts-na     { background: #f3f4f6; color: #6b7280; }

/* Bot grid */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  padding: 12px 0;
}
.bot-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}
.bot-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: #16a34a; }
.dot-red   { background: #dc2626; }
.dot-grey  { background: #9ca3af; }
.bot-chip-name { flex: 1; font-weight: 600; }
.bot-chip-status { font-size: 11px; color: var(--text-soft); }

/* Action box */
.scan-action-box {
  background: linear-gradient(135deg, #eff5ff, #f0ebff);
  border: 1px solid #c7d9fd;
  border-radius: 12px;
  padding: 20px 24px;
}
.scan-action-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.action-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #d1ddfc;
}
.action-item:last-child { border-bottom: none; }
.action-num {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.action-text { flex: 1; }
.action-text strong { display: block; margin-bottom: 2px; }
.action-text span { font-size: 12px; color: var(--text-soft); }

/* ============================================================
   PROGRESSIVE SCAN - steps timeline
   ============================================================ */
.scan-progress-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.scan-steps-card { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }

.scan-step-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.scan-step-row.active, .scan-step-row.done, .scan-step-row.error { opacity: 1; }

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 2px;
  transition: background 0.3s, border-color 0.3s;
}
.scan-step-row.active .step-icon {
  background: #dbeafe;
  border-color: var(--accent);
}
.scan-step-row.done .step-icon {
  background: #dcfce7;
  border-color: var(--green);
  color: var(--green);
}
.scan-step-row.error .step-icon {
  background: #fee2e2;
  border-color: var(--red);
  color: var(--red);
}

.step-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #dde2ee;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.scan-step-row:not(.active) .step-spinner { display: none; }
.scan-step-row.active .step-icon-symbol { display: none; }

.step-connector {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin: 0 0 0 19px;
}
.step-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.step-detail { font-size: 13px; color: var(--text-soft); line-height: 1.5; }

/* Signal preview chips shown while fetching */
.scan-signals-preview {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.preview-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preview-chip {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--text-soft);
  white-space: nowrap;
}

/* Section-by-section animation */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scan-section { animation: fadeSlideIn 0.3s ease both; }

/* ============================================================
   SECTION DIVIDER (used between scanner and checklist)
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 32px;
}
.section-divider-line { flex: 1; height: 1px; background: var(--border); }
.section-divider-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   BLOG / ARTICLE PAGE STYLES
   ============================================================ */
.article-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.article-hero .badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 760px;
}
.article-hero .subtitle {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.author-info { line-height: 1.3; }
.author-name { font-size: 14px; font-weight: 700; color: var(--text); }
.author-title { font-size: 12px; color: var(--text-soft); }
.article-date { font-size: 12px; color: var(--text-soft); }
.article-read-time {
  font-size: 11px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--text-soft);
  font-weight: 600;
}

/* Article author bio box */
.author-bio-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 40px 0;
}
.author-bio-box .author-avatar { width: 52px; height: 52px; font-size: 18px; flex-shrink: 0; }
.author-bio-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.author-bio-text p { font-size: 13px; color: var(--text-soft); line-height: 1.55; margin: 0; }

/* Checklist article specific */
.checklist-category {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px 20px;
  margin-bottom: 24px;
}
.checklist-category h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.checklist-category .cat-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.55;
}
.checklist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.checklist-list li {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  column-gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.4;
}
.checklist-list li:first-child { padding-top: 0; }
.checklist-list li:last-child { border-bottom: none; padding-bottom: 0; }
.checklist-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  width: 20px;
  padding-top: 1px;
}
.checklist-list li strong {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.checklist-list li span:not([style]) {
  flex-basis: 100%;
  padding-left: 28px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 4px;
}
.checklist-list li span[style] {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 20px;
  background: #f0ebff;
  flex-shrink: 0;
  align-self: center;
  line-height: 1.6;
}

/* Highlight / callout box */
.callout-box {
  background: linear-gradient(135deg, #eff5ff, #f0ebff);
  border: 1px solid #c7d9fd;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.callout-box strong { color: var(--accent); }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

/* Nav — horizontal scroll on small screens */
@media (max-width: 820px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a, .nav-dropdown-toggle { font-size: 12px; padding: 5px 9px; white-space: nowrap; }
}

/* Dropdown on mobile — prevent off-screen clipping */
@media (max-width: 640px) {
  .nav-dropdown-menu {
    left: 0;
    right: auto;
    transform: none;
    min-width: 200px;
  }
}

/* Page layout */
@media (max-width: 640px) {
  .page-wrap { padding: 20px 14px 60px; }
  .page-hero { padding: 24px 0 18px; }
  .page-hero h1 { font-size: 20px; }
  .page-hero p { font-size: 14px; }
  .prose-section { padding: 16px 18px; }
  .tool-card { padding: 18px; }
  .schema-hub-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .band-legend { grid-template-columns: 1fr 1fr; }
  .scan-hero { padding: 16px 18px; }
  .scan-card { padding: 24px 16px; }
  .scan-progress-panel { padding: 16px 18px; }
  .scan-result-header { padding: 12px 14px; }
  .scan-section-header { padding: 12px 14px; }
  .scan-section-body { padding: 4px 14px 12px; }
  .scan-action-box { padding: 16px 18px; }
  .site-header { padding: 28px 0 24px; }
  .article-hero { padding: 28px 0 20px; }
  .author-bio-box { flex-direction: column; gap: 12px; }
  .score-dashboard { padding: 20px 18px; }
  .section-header { padding: 14px 16px; }
  .section-body { padding: 0 16px 16px; }
}

@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .bot-grid { grid-template-columns: 1fr 1fr; }
  .scan-score-row { grid-template-columns: 1fr; }
  .scan-category-scores { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cat-score-pill { flex: 1; min-width: 140px; }
  .article-meta { gap: 8px; }
  .site-footer { padding: 24px 16px 16px; font-size: 11px; }
}

/* Key stat row for articles */
.key-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.key-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.key-stat .stat-num { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.key-stat .stat-label { font-size: 12px; color: var(--text-soft); line-height: 1.4; }

/* Table of contents */
.toc-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}
.toc-box h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-soft); margin-bottom: 12px; }
.toc-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc-box ol li a { font-size: 14px; color: var(--accent); font-weight: 600; text-decoration: none; }
.toc-box ol li a:hover { text-decoration: underline; }

/* HowTo schema builder */
.howto-step-row {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
}
.howto-step-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.howto-delete-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.howto-delete-btn:hover { background: #fee2e2; color: var(--red); }

/* FAQ pair delete button */
.faq-pair-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 8px;
}
.faq-pair-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
}
.faq-delete-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-soft);
  padding: 3px 10px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.faq-delete-btn:hover { background: #fee2e2; color: var(--red); border-color: #fca5a5; }
