/* ============================================================
   Sous Chef Fresh — Competitor Comparison Pages (Shared CSS)
   Design tokens inherited from souscheffresh.com index.html
   ============================================================ */

/* ====== VARIABLES ====== */
:root {
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --blue-light: #42A5F5;
  --gold: #D4A017;
  --gold-light: #F5D060;
  --bg: #0A0E1A;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --text: #F5F5F5;
  --text-dim: #94A3B8;
  --accent: #FF6B35;
  --surface: #1E293B;
  --green: #4CAF50;
  --red: #EF5350;
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ====== ANIMATED BACKGROUND ====== */
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(21, 101, 192, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 101, 192, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

/* ====== NAV ====== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(21, 101, 192, 0.15);
  z-index: 100;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-brand span { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.nav-brand .fresh { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }

/* ====== BUTTONS (shared with main site) ====== */
.btn {
  padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.4);
}
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}

/* ====== COMPARE HERO ====== */
.compare-hero {
  padding: 140px 32px 64px;
  text-align: center;
  position: relative;
}
.compare-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(21, 101, 192, 0.1), transparent 70%);
  pointer-events: none;
}
.compare-hero .breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.compare-hero .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.compare-hero .breadcrumb a:hover { color: var(--gold-light); }
.compare-hero .breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.compare-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.compare-hero h1 .gold { color: var(--gold); }
.compare-hero h1 .blue { color: var(--blue-light); }
.compare-hero .subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.compare-hero .updated {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.6;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ====== COMPARE GRID (side-by-side layout) ====== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 64px;
}
.compare-grid .product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 28px;
  transition: border-color 0.3s;
}
.compare-grid .product-card:hover {
  border-color: rgba(21, 101, 192, 0.25);
}
.compare-grid .product-card.ours {
  border-color: rgba(212, 160, 23, 0.3);
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.06);
}
.compare-grid .product-card .product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.compare-grid .product-card .product-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.compare-grid .product-card .product-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.compare-grid .product-card .product-tagline {
  font-size: 13px;
  color: var(--text-dim);
}
.compare-grid .product-card .product-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ====== FEATURE TABLE ====== */
.feature-table {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.feature-table h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 40px;
}
.feature-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.feature-table thead th {
  background: var(--surface);
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-table thead th:first-child {
  width: 45%;
}
.feature-table thead th:not(:first-child) {
  text-align: center;
  width: 27.5%;
}
.feature-table thead th.ours {
  color: var(--gold);
}
.feature-table tbody tr {
  background: var(--bg-card);
  transition: background 0.2s;
}
.feature-table tbody tr:nth-child(even) {
  background: rgba(17, 24, 39, 0.6);
}
.feature-table tbody tr:hover {
  background: var(--bg-card-hover);
}
.feature-table tbody td {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  line-height: 1.5;
}
.feature-table tbody td:not(:first-child) {
  text-align: center;
}
.feature-table tbody td .feature-name {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.feature-table tbody td .feature-detail {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.7;
}
/* Category header rows */
.feature-table tbody tr.category-row td {
  background: rgba(21, 101, 192, 0.08);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-light);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(21, 101, 192, 0.15);
}
/* Check and X marks */
.feature-table .check {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}
.feature-table .x-mark {
  color: var(--red);
  font-size: 18px;
  opacity: 0.6;
}
.feature-table .partial {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

/* ====== PRICING COMPARE ====== */
.pricing-compare {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.pricing-compare h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
}
.pricing-compare .section-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 40px;
}
.pricing-compare .pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pricing-compare .price-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
}
.pricing-compare .price-card.ours {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.1);
}
.pricing-compare .price-card.ours::before {
  content: 'Better Value';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  padding: 4px 16px; border-radius: 12px; letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-compare .price-card h3 {
  font-size: 22px; font-weight: 800; margin-bottom: 8px;
}
.pricing-compare .price-card .price {
  font-size: 40px; font-weight: 900; letter-spacing: -0.02em;
}
.pricing-compare .price-card .price span {
  font-size: 16px; font-weight: 500; color: var(--text-dim);
}
.pricing-compare .price-card .price-note {
  font-size: 13px; color: var(--text-dim); margin-bottom: 24px;
}
.pricing-compare .price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pricing-compare .price-card li {
  font-size: 14px; color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-compare .price-card li .check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-compare .price-card li .x-mark { color: var(--red); font-weight: 700; flex-shrink: 0; opacity: 0.6; }

/* ====== VERDICT CARDS ====== */
.verdict {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.verdict h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 40px;
}
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.verdict-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.verdict-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.verdict-card.ours::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.verdict-card.theirs::before {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}
.verdict-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.verdict-card h3 .icon {
  font-size: 22px;
}
.verdict-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.verdict-card li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.verdict-card li:last-child { border-bottom: none; }
.verdict-card li .bullet {
  flex-shrink: 0;
  font-weight: 700;
}
.verdict-card.ours li .bullet { color: var(--gold); }
.verdict-card.theirs li .bullet { color: var(--blue-light); }

/* ====== BADGES ====== */
.badge-win {
  display: inline-block;
  background: rgba(76, 175, 80, 0.15);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.25);
}
.badge-lose {
  display: inline-block;
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

/* ====== COMPARE NAV (links to other comparison pages) ====== */
.compare-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.compare-nav h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 24px;
}
.compare-nav-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}
.compare-nav-links a {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.3s, color 0.2s, box-shadow 0.3s;
}
.compare-nav-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 101, 192, 0.3);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.compare-nav-links a.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 160, 23, 0.06);
}

/* ====== DISCLOSURE ====== */
.disclosure {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 64px;
  text-align: center;
}
.disclosure p {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.6;
  line-height: 1.7;
}
.disclosure a {
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: rgba(66, 165, 245, 0.3);
  transition: text-decoration-color 0.2s;
}
.disclosure a:hover {
  text-decoration-color: var(--blue-light);
}

/* ====== CTA SECTION (bottom call-to-action) ====== */
.cta-section {
  padding: 100px 32px;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.cta-section p {
  color: var(--text-dim);
  margin-bottom: 12px;
  font-size: 17px;
}
.cta-section .cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ====== FOOTER ====== */
footer {
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 13px;
}
footer a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 12px;
}
footer a:hover { color: var(--gold); }

/* ====== SECTION DIVIDERS ====== */
.section-divider {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  margin-bottom: 80px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .pricing-compare .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .verdict-grid {
    grid-template-columns: 1fr;
  }
  .feature-table table {
    font-size: 13px;
  }
  .feature-table thead th,
  .feature-table tbody td {
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }

  .compare-hero { padding: 120px 20px 48px; }
  .compare-hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .compare-hero .subtitle { font-size: 16px; }

  .compare-grid { padding: 0 20px 48px; gap: 16px; }
  .compare-grid .product-card { padding: 28px 20px; }

  .feature-table { padding: 0 12px 64px; overflow-x: auto; }
  .feature-table table { min-width: 560px; }
  .feature-table h2 { padding: 0 20px; }

  .pricing-compare { padding: 0 20px 64px; }
  .pricing-compare .pricing-cards { max-width: 100%; }

  .verdict { padding: 0 20px 64px; }
  .verdict-card { padding: 24px 20px; }

  .compare-nav { padding: 0 20px 64px; }
  .compare-nav-links { gap: 10px; }
  .compare-nav-links a { padding: 10px 18px; font-size: 13px; }

  .disclosure { padding: 0 20px 48px; }

  .cta-section { padding: 64px 20px; }

  footer { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .compare-hero h1 { font-size: 26px; }
  .compare-hero .subtitle { font-size: 15px; }

  .compare-grid .product-card .product-name { font-size: 18px; }

  .feature-table table { min-width: 480px; }
  .feature-table thead th { font-size: 12px; padding: 14px 12px; }
  .feature-table tbody td { padding: 10px 12px; font-size: 13px; }

  .pricing-compare .price-card .price { font-size: 32px; }

  .compare-nav-links { flex-direction: column; align-items: center; }
  .compare-nav-links a { width: 100%; max-width: 280px; text-align: center; }
}
