:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
  background: var(--bg);
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.page { padding: 32px 0 64px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-title { text-decoration: none; display: flex; align-items: center; }
.site-logo { height: 36px; width: auto; display: block; }
nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--text); }

/* Compare custom dropdown */
.cmp-dropdown { position: relative; display: inline-block; }
.cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.cmp-btn:hover { background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.cmp-btn svg { flex-shrink: 0; transition: transform 0.2s; }
.cmp-dropdown.open .cmp-btn { background: #eff6ff; }
.cmp-dropdown.open .cmp-btn svg { transform: rotate(180deg); }
.cmp-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  padding: 4px;
}
.cmp-dropdown.open .cmp-menu { display: block; }
.cmp-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}
.cmp-menu a:hover { background: #f1f5f9; }
.cmp-menu-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Language switcher */
.lang-switcher { display: flex; gap: 2px; margin-left: 16px; }
.lang-btn {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.1s, color 0.1s;
}
.lang-btn:hover { background: var(--bg); color: var(--text); }
.lang-btn.active { background: var(--accent); color: #fff; }

/* Hero */
.hero { text-align: center; padding: 48px 0 40px; }
.hero h1 { font-size: 36px; font-weight: 800; margin: 0 0 12px; line-height: 1.2; }
.hero p { color: var(--muted); font-size: 16px; margin: 0; }

/* Sections */
.section { margin-bottom: 48px; }
.section-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }

/* Grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

/* Category cards */
.category-card {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.category-card:hover { box-shadow: 0 4px 12px rgba(15,23,42,0.08); border-color: var(--accent); }
.category-card-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.category-card-count { font-size: 12px; color: var(--muted); }

/* Product cards */
.product-card {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.product-card-name { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.product-card-meta { font-size: 12px; color: var(--muted); margin: 0 0 8px; }

/* Logo */
.logo-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-initial {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  pointer-events: none;
}
.logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  border-radius: 8px;
}
.logo-wrap-lg {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.logo-wrap-lg .logo-initial { font-size: 22px; }
.logo-wrap-lg .logo-img { padding: 6px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 500;
}

/* Badges */
.badge-free {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
}
.badge-paid {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
}

/* Buttons */
.cta {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.cta:hover { background: var(--accent-hover); }
.cta-sm { padding: 5px 10px; font-size: 12px; }
.cta-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cta-ghost:hover { background: #eff6ff; }

/* Compare list (home) */
.compare-list { display: flex; flex-direction: column; gap: 8px; }
.compare-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s;
}
.compare-link:hover { border-color: var(--accent); }
.compare-link-title { font-weight: 500; }
.compare-link-arrow { color: var(--muted); }

/* Compare page */
.compare-header { text-align: center; margin-bottom: 32px; }
.compare-header h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  background: #f8fafc;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.compare-table th:first-child {
  width: 140px;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.compare-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.muted { color: var(--muted); font-size: 13px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .compare-table th:first-child { width: 90px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}

/* Pros / Cons */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
@media (max-width: 600px) { .pros-cons-grid { grid-template-columns: 1fr; } }
.pros-cons-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.pros-cons-header { font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--text); }
.pros-title { font-size: 12px; font-weight: 700; color: #16a34a; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.cons-title { font-size: 12px; font-weight: 700; color: #dc2626; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.pros-list, .cons-list { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.7; color: var(--text); }

/* Pricing Plans */
.plan-row { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.plan-row:last-child { border-bottom: none; }
.plan-name { font-size: 13px; font-weight: 600; min-width: 70px; }
.plan-price { font-size: 13px; color: var(--accent); font-weight: 700; }
.plan-notes { font-size: 12px; color: var(--muted); }

/* AI Notes */
.ai-notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ai-notes-grid { grid-template-columns: 1fr; } }
.ai-notes-card { background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 100%); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.ai-notes-product { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.ai-notes-text { font-size: 14px; line-height: 1.75; color: var(--text); margin: 0; }

/* Footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); padding: 32px 0; }
.site-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-affiliate { font-size: 12px; color: var(--muted); max-width: 480px; line-height: 1.6; margin: 0; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--muted); margin: 0; }
