﻿.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo .logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.logo:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav a {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.nav a.active {
  color: var(--accent-dim);                 /* WCAG AA: --accent (#4f46e5) on --accent-bg (#EEF2FF) is ~3.8:1; --accent-dim (#4F46E5) is 4.7:1 */
  background: var(--accent-bg);
  text-decoration: none;
}

/* ── Nav category dropdown ───────────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown.open .nav-dropdown-btn {
  color: var(--text);
  background: var(--surface-2);
}

.nav-dropdown-btn.active {
  color: var(--accent-dim);
  background: var(--accent-bg);
}

.nav-dropdown-arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.18s;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.04);
  padding: 6px 0.4rem 0.4rem;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  display: block;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.nav-dropdown-menu a.active {
  color: var(--accent);
  background: var(--accent-bg);
  font-weight: 600;
}

/* ── MCP server badge in nav ── */
.nav-mcp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.07);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.nav-mcp-link:hover {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.4);
  text-decoration: none;
  color: #7C3AED;
}
.nav-mcp-link.active {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.4);
  color: #5B21B6;                            /* darker purple for AA contrast on the tinted bg */
}

/* also keep nav-desktop as alias so any older markup still gets layout */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.header-cta {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 1px 3px rgba(99,102,241,0.3);
}

.header-cta:hover {
  background: var(--accent-dim);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(99,102,241,0.35);
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--text-2);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li + li { margin-top: 0.45rem; }

.footer-col ul li a {
  color: var(--text-2);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

.affiliate-disclosure {
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ── Page layout ── */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "›";
  color: var(--text-3);
  margin-right: 0.5rem;
  /* purely decorative — keeps the separator out of the <ol> as a direct child
     (WCAG: lists must only directly contain <li>) */
}
.breadcrumb a {
  color: var(--text-2);                   /* was --text-3 (4.0:1) → bump for WCAG AA contrast */
  text-decoration: underline;             /* WCAG: links must be distinguishable without color alone */
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb span { color: var(--text-3); }

.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;                          /* was 500 — slight bump pairs with darker color for AA */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);                  /* WCAG AA: was --accent (#4f46e5) on white ~4.4:1; --accent-dim (#4F46E5) is 5.3:1 */
  margin-bottom: 1rem;
}

/* ── Hamburger toggle (mobile only) ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text-2);
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  line-height: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--border-2); background: var(--surface-2); color: var(--text); }
.nav-toggle[aria-expanded="true"] .bar-middle { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-top    { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-bottom { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle line { transition: transform 0.2s, opacity 0.2s; transform-origin: center; }

/* ── Mobile nav drawer ── */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); text-decoration: none; }
.nav-mobile .nav-mobile-cta {
  margin-top: 1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.nav-mobile .nav-mobile-cta:hover { background: var(--accent-dim); color: #fff; }

.nav-mobile-section {
  display: block;
  padding: 1.25rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: none !important;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand p { max-width: 100%; }
  .site-footer { padding: 2rem 0 1.5rem; margin-top: 4rem; }
  .section { padding: 3rem 0; }
}

/* ── Mode selector (above scan form) ── */
.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mode-btn {
  display: grid;
  grid-template-areas: "icon label" "icon desc";
  grid-template-columns: 2rem 1fr;
  column-gap: 0.6rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font-body);
}

.mode-btn:hover { border-color: var(--accent); background: var(--accent-bg, rgba(99,102,241,0.06)); }

.mode-btn.active {
  border-color: var(--accent);
  background: var(--accent-bg, rgba(99,102,241,0.08));
}

.mode-icon { grid-area: icon; font-size: 1.35rem; line-height: 1; }
.mode-label { grid-area: label; font-weight: 700; font-size: 0.92rem; color: var(--text); }
.mode-desc  { grid-area: desc;  font-size: 0.78rem; color: var(--text-2); margin-top: 0.1rem; }

@media (max-width: 540px) {
  .mode-selector { grid-template-columns: 1fr; }
}

/* ── View-mode tabs (e.g. SEO Checks / Lighthouse) ── */
.view-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

.view-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.view-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.view-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-bg, rgba(99,102,241,0.06));
}

.lh-badge {
  font-size: 0.85em;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .container { padding: 0 1rem; }
  /* Minimum 12px readable text on phones */
  .breadcrumb { font-size: 0.75rem; }
  .section-label { font-size: 0.7rem; }
}
