/* ==========================================================================
   UNIVERSAL TIER C DESIGN SYSTEM - LIGHT THEME GLASSMORPHISM
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-slate-ice: #f8fafc;
  --bg-radial-1: rgba(238, 242, 255, 0.75);
  --bg-radial-2: rgba(243, 232, 255, 0.55);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-border-focus: rgba(99, 102, 241, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

  --primary-indigo: #4f46e5;
  --primary-violet: #7c3aed;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-primary-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-glow: 0 8px 24px rgba(99, 102, 241, 0.4);

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.1);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.1);
  --rose: #ef4444;
  --rose-bg: rgba(239, 68, 68, 0.1);
  --cyan: #06b6d4;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;
}

/* Dark Ambient Glow Theme Variant */
body.theme-glow {
  --bg-slate-ice: #0f172a;
  --bg-radial-1: rgba(79, 70, 229, 0.25);
  --bg-radial-2: rgba(124, 58, 237, 0.2);
  --glass-bg: rgba(30, 41, 59, 0.85);
  --glass-bg-hover: rgba(30, 41, 59, 0.95);
  --glass-border: rgba(51, 65, 85, 0.8);
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-slate-ice);
  background-image: 
    radial-gradient(at 0% 0%, var(--bg-radial-1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--bg-radial-2) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   GLOBAL NAVIGATION HEADER
   ========================================================================== */

.app-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.header-container {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo (Left) */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: #6366f1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Center Pill Search Bar */
.nav-center-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 28rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.nav-center-search:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.search-glass-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.search-placeholder {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  flex: 1;
  margin: 0 0.75rem;
}

.kbd-badge {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

/* Right Nav Controls */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-btn-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-btn-dropdown:hover {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.08);
}

.btn-theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(238, 242, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.6rem;
  color: #6366f1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.nav-divider {
  width: 1px;
  height: 1.5rem;
  background: #e2e8f0;
  margin: 0 0.15rem;
}

.btn-signup-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.btn-signup-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

/* ==========================================================================
   MAIN CONTENT CONTAINER
   ========================================================================== */

.main-content {
  flex: 1;
  max-width: 84rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ==========================================================================
   CENTERED HERO HEADER & WORKSPACE CANVAS (MATCHES EXAMPLE IMAGE)
   ========================================================================== */

.breadcrumb-nav-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.breadcrumb-nav-centered a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav-centered a:hover {
  color: #6366f1;
}

.breadcrumb-separator {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: #0f172a;
  font-weight: 700;
}

/* Floating Tool Icon Badge */
.tool-icon-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto 1rem auto;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.hero-title-centered {
  font-size: 2.75rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-subtitle-centered {
  font-size: 1.05rem;
  color: #64748b;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Clean Workspace Canvas Card */
.workspace-card-clean {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-label-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.search-form-clean {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-grid-clean {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-wrapper-clean {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-clean {
  position: absolute;
  left: 1.1rem;
  color: #6366f1;
  pointer-events: none;
}

.input-pill-field {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.input-pill-field:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.form-actions-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.btn-pill-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

.btn-pill-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-pill-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #64748b;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.btn-pill-clear:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.error-banner {
  width: 100%;
  padding: 1rem;
  background: var(--rose-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 1rem;
  color: var(--rose);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

/* ==========================================================================
   RESULTS DASHBOARD (OUTPUT PANEL)
   ========================================================================== */

.results-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.score-banner-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
}

.score-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .score-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.gauge-circle-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 10;
}

.gauge-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease;
}

.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.score-max {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-badge {
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-badge.good {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.score-badge.needs-work {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.score-badge.poor {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.domain-heading-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.audit-target-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.audit-url-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-indigo);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.audit-url-link:hover {
  text-decoration: underline;
}

.keyword-pill {
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.text-emerald { color: var(--emerald) !important; }
.text-amber { color: var(--amber) !important; }
.text-rose { color: var(--rose) !important; }
.text-accent-blue { color: var(--primary-indigo) !important; }

/* Tech Tags Grid */
.tech-tags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding-top: 0.5rem;
}

@media (max-width: 640px) {
  .tech-tags-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech-tag-item {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tech-tag-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tech-tag-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Target Keyword Box */
.keyword-audit-box {
  background: var(--glass-bg);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.05);
}

.keyword-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.keyword-checks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .keyword-checks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kw-check-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

/* Data Table Card */
.table-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.table-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(241, 245, 249, 0.8);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.tab-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn.tab-error.active { color: var(--rose); }
.tab-btn.tab-warning.active { color: var(--amber); }
.tab-btn.tab-passed.active { color: var(--emerald); }

/* Category Cards */
.category-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}

.category-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.count-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.category-counts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.count-badge.passed { background: var(--emerald-bg); color: var(--emerald); }
.count-badge.warning { background: var(--amber-bg); color: var(--amber); }
.count-badge.error { background: var(--rose-bg); color: var(--rose); }

/* Test List Item */
.test-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.test-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.test-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.status-icon-wrapper {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon-wrapper.passed { background: var(--emerald-bg); color: var(--emerald); }
.status-icon-wrapper.warning { background: var(--amber-bg); color: var(--amber); }
.status-icon-wrapper.error { background: var(--rose-bg); color: var(--rose); }

.test-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.test-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.test-desc {
  font-size: 0.825rem;
  color: var(--text-body);
}

.btn-rec-toggle {
  background: transparent;
  border: none;
  color: var(--primary-indigo);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.btn-rec-toggle:hover {
  text-decoration: underline;
}

.rec-accordion-body {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-left: 3px solid var(--primary-indigo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.weight-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

/* ==========================================================================
   BLOCK 4: EDUCATIONAL CONTENT & SEO SECTION (BELOW THE FOLD)
   ========================================================================== */

.educational-section {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 1rem;
}

.section-h2-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-h2-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 38rem;
  margin: -0.25rem auto 1.75rem auto;
}

/* 3-Step Illustrated Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.step-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gradient-glow);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* 4 Feature Cards Grid */
.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .features-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid-4 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-accordion-container {
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(248, 250, 252, 0.8);
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--primary-indigo);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   BLOCK 5: RELATED TOOLS CAROUSEL & FOOTER
   ========================================================================== */

.related-tools-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.carousel-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
}

.carousel-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.5);
  border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: var(--primary-indigo);
  border-radius: 10px;
}

.related-tool-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-tool-card:hover {
  border-color: var(--primary-indigo);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.12);
}

.tool-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-indigo);
}

.tool-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.tool-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.app-footer {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  margin-top: 3rem;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 84rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-indigo);
}

.footer-bottom {
  max-width: 84rem;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Print Utilities */
@media print {
  .no-print, .app-header, .app-footer, .filter-bar, .breadcrumb-nav-centered {
    display: none !important;
  }
  .main-content {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  .score-banner-card, .category-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
