/* ============================================
   aitooltable.com — Dark Theme Stylesheet
   ============================================ */

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --bg-primary: #0f1117;
  --bg-secondary: #161921;
  --bg-card: #1c1f2e;
  --bg-card-hover: #232740;
  --bg-table-row: #191d2b;
  --bg-table-row-alt: #1e2235;
  --bg-glass: rgba(28, 31, 46, 0.7);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-strong: rgba(255, 255, 255, 0.12);

  --text-primary: #e8eaed;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-heading: #f1f3f5;

  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-light: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.25);
  --cyan: #06b6d4;
  --cyan-light: rgba(6, 182, 212, 0.12);

  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.12);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 900px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Header/Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-heading);
  text-decoration: none;
}

.nav-logo svg { flex-shrink: 0; }

.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: var(--space-lg);
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-light) 0%, transparent 70%);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* Search */
.search-wrapper {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.search-wrapper input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrapper input::placeholder { color: var(--text-muted); }

.search-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.search-results.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.search-result-item:hover { background: var(--bg-card-hover); }

.search-result-item .tool-logo-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.search-result-item .result-info { flex: 1; min-width: 0; }
.search-result-item .result-name { font-weight: 600; }
.search-result-item .result-cat { font-size: 12px; color: var(--text-muted); }

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0;
  margin: var(--space-xl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* --- Section Headings --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-heading);
}

.section-header a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.section { padding: var(--space-3xl) 0; }

/* --- Category Cards Grid --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 22px;
}

.cat-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.cat-card .cat-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.cat-card .cat-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.cat-card .cat-tools .tool-tag {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* --- Comparison Cards --- */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.comp-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
  color: inherit;
}

.comp-card .tool-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.comp-vs {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.comp-card .comp-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Tool Logo Colors --- */
.logo-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.logo-green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.logo-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.logo-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.logo-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.logo-cyan { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.logo-pink { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.logo-indigo { background: rgba(99, 102, 241, 0.2); color: #818cf8; }

/* --- Comparison Table (Category Page) --- */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 700px;
}

.comparison-table thead {
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 5;
}

.comparison-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color-strong);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.comparison-table th:hover { color: var(--text-primary); }

.comparison-table th .sort-icon { margin-left: 4px; font-size: 10px; opacity: 0.5; }
.comparison-table th.sorted .sort-icon { opacity: 1; color: var(--accent); }

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.comparison-table tbody tr { transition: background 0.15s; }
.comparison-table tbody tr:hover { background: var(--bg-card-hover); }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-table-row-alt); }
.comparison-table tbody tr:nth-child(even):hover { background: var(--bg-card-hover); }

.table-tool-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
}

.table-tool-name .tool-logo-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.badge-free { background: var(--green-bg); color: var(--green); }
.badge-freemium { background: var(--accent-light); color: var(--accent); }
.badge-paid { background: rgba(107, 114, 128, 0.15); color: var(--text-muted); }
.badge-trial { background: var(--amber-bg); color: var(--amber); }

/* --- Star Rating --- */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--amber);
  font-size: 14px;
}

.stars .star-empty { color: var(--text-muted); opacity: 0.3; }

.rating-number {
  font-weight: 700;
  margin-left: 6px;
  color: var(--text-primary);
  font-size: 14px;
}

/* --- Feature Checks --- */
.feature-yes { color: var(--green); font-weight: 700; }
.feature-no { color: var(--text-muted); opacity: 0.4; }

/* --- Tool Cards (Below Table) --- */
.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.2s, border-color 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.tool-card-header .tool-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.tool-card-header h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
}

.tool-card-header .tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.tool-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.tool-card .tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* --- Tool Detail Page --- */
.tool-hero {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-color);
}

.tool-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
}

.tool-hero .tool-logo-lg {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 30px;
  flex-shrink: 0;
}

.tool-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
}

.tool-hero .tool-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.tool-hero .tool-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.tool-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}

@media (max-width: 900px) {
  .tool-detail-layout {
    grid-template-columns: 1fr;
  }
}

.tool-content section { margin-bottom: var(--space-2xl); }

.tool-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

/* Sidebar */
.tool-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-fact {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.sidebar-fact:last-child { border-bottom: none; }
.sidebar-fact .fact-label { color: var(--text-muted); }
.sidebar-fact .fact-value { color: var(--text-primary); font-weight: 600; }

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.plan-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 14px;
}

/* Pros/Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

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

.pros-list, .cons-list { list-style: none; }

.pros-list li, .cons-list li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pros-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.cons-list li::before {
  content: '✗';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Head-to-Head Comparison Page --- */
.h2h-hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-color);
}

.h2h-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.h2h-logos .tool-logo-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
}

.h2h-vs {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-muted);
}

.h2h-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text-heading);
}

.h2h-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.h2h-table th,
.h2h-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.h2h-table thead th {
  background: var(--bg-secondary);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-heading);
  text-align: center;
}

.h2h-table thead th:first-child {
  text-align: left;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.h2h-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  width: 160px;
}

.h2h-table tbody td {
  text-align: center;
  color: var(--text-primary);
}

.h2h-table tbody tr:hover { background: var(--bg-card-hover); }

.winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.verdict-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.verdict-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-md);
}

.verdict-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

.verdict-ctas {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* --- Newsletter CTA --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan-light));
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-3xl) 0;
}

.newsletter-section h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.newsletter-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form input:focus { border-color: var(--accent); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

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

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }

/* --- Page Titles --- */
.page-title-section {
  padding: var(--space-2xl) 0 var(--space-lg);
}

.page-title-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
}

.page-title-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 700px;
  line-height: 1.6;
}

/* --- Submit Page --- */
.submit-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.submit-tier {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: border-color 0.2s;
}

.submit-tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.submit-tier.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--radius-full);
}

.submit-tier h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.submit-tier .price {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
}

.submit-tier .price-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.submit-tier ul {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-lg);
}

.submit-tier ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.submit-tier ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* --- Profession Page --- */
.profession-tool-row {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

.profession-tool-row:last-child { border-bottom: none; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: var(--space-2xl) 0; }
  .stats-bar { gap: var(--space-lg); flex-wrap: wrap; }
  .stat-number { font-size: 24px; }
  .comp-grid { grid-template-columns: 1fr; }
  .tool-hero-inner { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .h2h-logos { gap: var(--space-md); }
  .h2h-vs { font-size: 18px; }
  .section { padding: var(--space-2xl) 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .stats-bar { gap: var(--space-md); }
  .cat-grid { grid-template-columns: 1fr; }
}

/* --- Ad Slots --- */
.ad-slot {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color-strong);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  margin: var(--space-xl) 0;
  min-height: 90px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-ready {
  opacity: 0;
  transform: translateY(16px);
}

.animate-ready.fade-in-up {
  animation: fadeInUp 0.45s ease forwards;
}

.animate-ready.fade-in-up:nth-child(2) { animation-delay: 0.05s; }
.animate-ready.fade-in-up:nth-child(3) { animation-delay: 0.1s; }
.animate-ready.fade-in-up:nth-child(4) { animation-delay: 0.15s; }
.animate-ready.fade-in-up:nth-child(5) { animation-delay: 0.2s; }
.animate-ready.fade-in-up:nth-child(6) { animation-delay: 0.25s; }
