/* ===== Design Tokens ===== */
:root {
  --background: 0 0% 98%;
  --foreground: 215 25% 15%;
  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 15%;
  --primary: 215 50% 23%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 20% 96%;
  --secondary-foreground: 215 25% 15%;
  --muted: 210 20% 96%;
  --muted-foreground: 215 20% 28%;
  --accent: 152 60% 42%;
  --accent-foreground: 0 0% 100%;
  --rating: 45 93% 47%;
  --rating-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 210 20% 90%;
  --input: 210 20% 90%;
  --ring: 215 50% 23%;
  --radius: 0.5rem;
  --hero-gradient: linear-gradient(135deg, hsl(215 50% 23%) 0%, hsl(215 40% 30%) 100%);
  --card-shadow: 0 2px 8px -2px hsl(215 25% 15% / 0.08), 0 4px 16px -4px hsl(215 25% 15% / 0.12);
  --card-shadow-hover: 0 8px 24px -4px hsl(215 25% 15% / 0.15), 0 12px 32px -8px hsl(215 25% 15% / 0.2);
  --badge-shadow: 0 2px 4px hsl(215 25% 15% / 0.15);
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

/* ===== Utility Classes ===== */
.heading-display { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.025em; }
.hero-section { background: var(--hero-gradient); }
.card-elevated { box-shadow: var(--card-shadow); transition: box-shadow 0.3s; }
.card-elevated:hover { box-shadow: var(--card-shadow-hover); }
.rank-badge { box-shadow: var(--badge-shadow); }
.rating-star { color: hsl(var(--rating)); }

.btn-cta {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}
.btn-cta:hover { opacity: 0.9; transform: scale(1.02); }

.btn-outline-cta {
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.875rem;
  height: 2.5rem;
  cursor: pointer;
}
.btn-outline-cta:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-destructive:hover { background-color: hsl(0 84% 55%); transform: scale(1.02); }

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: hsl(var(--accent));
  font-weight: 500;
  font-size: 0.875rem;
}

/* ===== Sticky Header CTA ===== */
.sticky-header-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--primary) / 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  transform: translateY(-100%);
}
.sticky-header-cta.visible { transform: translateY(0); }

/* ===== Comparison Table ===== */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th,
.comparison-table td { padding: 0.75rem 1rem; text-align: center; border-bottom: 1px solid hsl(var(--border)); }
.comparison-table th { 
  font-family: var(--font-heading); 
  font-weight: 700; 
  color: hsl(var(--foreground)); 
  background-color: hsl(var(--muted) / 0.5); 
}
.comparison-table td:first-child,
.comparison-table th:first-child { text-align: left; min-width: 180px; }
.comparison-table .highlight-row { background-color: hsl(var(--accent) / 0.05); }

/* ===== Disclaimer Toggle ===== */
.disclaimer-content {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  padding: 1rem;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 50;
  width: 20rem;
  font-size: 0.875rem;
  display: none;
}
.disclaimer-content.open { display: block; }
.disclaimer-content.mobile {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Privacy/Legal Table ===== */
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.legal-table th, .legal-table td { border: 1px solid hsl(var(--border)); padding: 0.75rem; text-align: left; }
.legal-table thead tr { background-color: hsl(var(--muted)); }
.legal-table th { font-weight: 600; }

/* Prose-like styling for legal pages */
.prose-content p { margin-bottom: 1.25rem; line-height: 1.75; }
.prose-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-content li { margin-bottom: 0.5rem; line-height: 1.75; }
.prose-content a { color: hsl(var(--accent)); }
.prose-content a:hover { text-decoration: underline; }
