/* ============================================
   CreditCompareHQ - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-color: #059669;
  --secondary-dark: #047857;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  --border-dark: #d1d5db;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Disclosure Banner
   ============================================ */
.disclosure-banner {
  background-color: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #92400e;
  position: relative;
}

.disclosure-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.disclosure-banner p {
  margin: 0;
  color: #92400e;
}

.disclosure-banner a {
  color: #b45309;
  text-decoration: underline;
}

.disclosure-banner .close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #92400e;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.disclosure-banner .close-btn:hover {
  color: #78350f;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-main ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-main a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--primary-color);
}

.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.nav-cta {
  background-color: var(--primary-color);
  color: white !important;
  padding: 12px 24px !important;
  border-radius: var(--radius-md);
  font-weight: 700 !important;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  color: white !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hero-with-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(223, 237, 254, 0.85);
}

.hero-with-bg .container {
  position: relative;
  z-index: 1;
}

.hero-with-bg h1 {
  color: var(--text-primary);
}

.hero-with-bg .subtitle {
  color: var(--text-secondary);
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-success {
  background-color: var(--secondary-color);
  color: white;
}

.btn-success:hover {
  background-color: var(--secondary-dark);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-logo {
  width: 48px;
  height: 48px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.75rem;
}

.product-name {
  font-weight: 600;
  color: var(--text-primary);
}

.product-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.top-pick-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
}

.feature-list {
  font-size: 0.9375rem;
}

.feature-list li {
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--success-color);
  font-weight: 700;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
}

.score-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   Product Cards
   ============================================ */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.product-card.featured {
  border-color: var(--primary-color);
  border-width: 2px;
}

.product-card.featured::before {
  content: 'Top Pick';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.product-card-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.product-card-logo {
  width: 64px;
  height: 64px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.product-card h3 {
  margin-bottom: 0.5rem;
}

.product-card .best-for {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.product-card-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-card-features {
  margin-bottom: 1.5rem;
}

.product-card-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.product-card-features li::before {
  content: '✓';
  color: var(--success-color);
  font-weight: 700;
  flex-shrink: 0;
}

.product-card .btn {
  width: 100%;
}

/* ============================================
   Pros/Cons Cards
   ============================================ */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-card,
.cons-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.pros-card {
  border-left: 4px solid var(--success-color);
}

.cons-card {
  border-left: 4px solid var(--error-color);
}

.pros-card h4,
.cons-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.pros-card h4::before {
  content: '👍';
}

.cons-card h4::before {
  content: '👎';
}

.pros-card li,
.cons-card li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.pros-card li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 700;
}

.cons-card li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--error-color);
  font-weight: 700;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: var(--bg-secondary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

/* ============================================
   Stats & Features Section
   ============================================ */
.stats-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 500;
}

.stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

.stat-card.animated .stat-bar {
  transform: scaleX(1);
}

/* Feature Showcase */
.feature-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card:hover .feature-pulse {
  animation: pulse-ring 1.5s ease infinite;
}

.feature-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.feature-link {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}

.feature-link:hover {
  gap: 0.5rem;
}

/* Quick Action Banner */
.quick-action-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 2;
  flex-wrap: wrap;
}

.banner-text h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.banner-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 1rem;
}

.quick-action-banner .btn-primary {
  background-color: white;
  color: var(--primary-color);
  white-space: nowrap;
}

.quick-action-banner .btn-primary:hover {
  background-color: var(--bg-secondary);
}

.banner-decoration {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
  opacity: 0.15;
}

.floating-icon {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Stats */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .feature-showcase {
    grid-template-columns: 1fr;
  }
  
  .quick-action-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  
  .banner-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .banner-decoration {
    display: none;
  }
}

/* ============================================
   How We Evaluate
   ============================================ */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.criteria-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.criteria-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.criteria-item h4 {
  margin-bottom: 0.5rem;
}

.criteria-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   Review Page Styles
   ============================================ */
.review-header {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 3rem 0;
}

.review-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.review-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.quick-summary {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: -2rem 0 2rem;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.quick-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.summary-item h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.summary-item p {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}

/* Table of Contents */
.toc {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc ol {
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  padding: 0.375rem 0;
}

.toc a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc a::before {
  content: counter(toc) '.';
  color: var(--primary-color);
  font-weight: 600;
}

.toc a:hover {
  color: var(--primary-color);
}

/* Article/Guide Header Image */
.article-header-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

/* Review Header with Background Image */
.review-header-with-image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.review-header-with-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.85) 0%, rgba(30, 64, 175, 0.9) 100%);
}

.review-header-with-image .container {
  position: relative;
  z-index: 1;
}

.review-header-with-image h1,
.review-header-with-image .review-meta span {
  color: white;
}

/* Feature Card Image */
.feature-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

/* Section with Background Image */
.section-with-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.section-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(249, 250, 251, 0.95);
}

.section-with-bg .container {
  position: relative;
  z-index: 1;
}

/* Score Breakdown */
.score-breakdown {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.score-breakdown h3 {
  margin-bottom: 1.5rem;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.score-item:last-child {
  border-bottom: none;
}

.score-item-label {
  flex: 1;
  font-weight: 500;
}

.score-bar {
  flex: 2;
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.score-item-value {
  font-weight: 700;
  color: var(--primary-color);
  min-width: 40px;
  text-align: right;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  z-index: 90;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-cta-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sticky-cta-info h4 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.sticky-cta-info p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================
   Compare Page
   ============================================ */
.compare-matrix {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-width: 700px;
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.compare-table th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.compare-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.compare-table .check {
  color: var(--success-color);
  font-size: 1.25rem;
}

.compare-table .cross {
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* Decision Tree */
.decision-tree {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.decision-tree h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.decision-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.decision-option {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.decision-option h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.decision-option p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--text-primary);
  color: var(--bg-tertiary);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Mobile Comparison Cards (hidden on desktop)
   ============================================ */
.mobile-comparison-cards {
  display: none;
}

.mobile-compare-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.mobile-compare-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.mobile-compare-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-compare-header .product-logo {
  width: 48px;
  height: 48px;
  font-size: 1.125rem;
}

.mobile-compare-header h4 {
  margin: 0;
  font-size: 1.25rem;
}

.mobile-compare-header .best-for {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.mobile-compare-header .score-badge {
  margin-left: auto;
}

.mobile-compare-features {
  margin-bottom: 1.25rem;
}

.mobile-compare-features h5 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-compare-features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mobile-compare-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.mobile-compare-features li .check {
  color: var(--success-color);
  font-weight: bold;
}

.mobile-compare-features li .cross {
  color: var(--text-muted);
}

.mobile-compare-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* Hero mobile - stack columns */
  .hero {
    text-align: center;
  }
  
  .hero > .container > div[style*="grid-template-columns"] {
    display: block !important;
  }
  
  .hero > .container > div > div:last-child {
    margin-top: 2rem;
  }
  
  .hero .subtitle {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .hero-cta {
    justify-content: center !important;
  }

  /* Header mobile fixes */
  .header .container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.125rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .nav-main {
    gap: 0.75rem;
  }

  .nav-main ul {
    display: none;
  }

  .nav-cta {
    padding: 8px 12px !important;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-main.active ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 101;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  /* Hide desktop table on mobile, show mobile cards */
  .comparison-table-wrapper,
  .compare-matrix {
    display: none;
  }

  .mobile-comparison-cards {
    display: block;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .trust-signals {
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sticky-cta .container {
    flex-direction: column;
  }

  .sticky-cta .btn {
    width: 100%;
  }

  .quick-summary {
    margin: -1rem 1rem 2rem;
  }

  .review-header h1 {
    font-size: 1.75rem;
  }

  /* Review page layout - stack TOC above content on mobile */
  .section > .container > [style*="grid-template-columns"] {
    display: block !important;
  }

  .toc {
    position: static !important;
    margin-bottom: 1.5rem;
  }

  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .toc li {
    padding: 0.25rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .disclosure-banner .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Reading Progress Bar
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #60a5fa 100%);
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}
