@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --ink: #0e0e0e;
  --paper: #f5f2eb;
  --paper2: #ede9e0;
  --accent: #d4522a;
  --accent2: #2a7dd4;
  --mid: #6b6760;
  --border: #d9d5cc;
  --white: #ffffff;
  --radius: 4px;
  --radius-lg: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  border-bottom: 1px solid #222;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-brand span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 12px !important;
}

/* ── HERO ── */
.hero {
  background: var(--ink);
  padding: 80px 2rem 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, #1a2d1a 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 20% 80%, #2a1a10 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  color: #ccc; letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag::before { content: '●'; color: #4ade80; font-size: 8px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--paper);
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 720px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 17px;
  color: #999;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex; gap: 40px;
  padding-top: 32px;
  border-top: 1px solid #222;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--paper);
}
.stat-label { font-size: 12px; color: #666; letter-spacing: 0.03em; }

/* ── FILTERS ── */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky; top: 56px; z-index: 90;
}
.filters-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  color: var(--mid);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ── MAIN LAYOUT ── */
.main-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 2rem;
}

/* ── COMPARISON TABLE ── */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.table-header h2 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.5px;
}
.table-count {
  font-size: 12px; color: var(--mid);
  background: var(--paper2);
  padding: 4px 10px; border-radius: 20px;
}

table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--mid);
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
thead th:first-child { padding-left: 24px; }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #faf9f7; }

tbody td {
  padding: 14px 16px;
  font-size: 14px;
  vertical-align: middle;
}
tbody td:first-child { padding-left: 24px; }

.company-cell {
  display: flex; align-items: center; gap: 12px;
}
.company-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.company-name {
  font-weight: 500; color: var(--ink);
  text-decoration: none;
}
.company-name:hover { color: var(--accent); }
.company-tagline { font-size: 12px; color: var(--mid); margin-top: 1px; }

.badge {
  display: inline-block;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-free { background: #dcfce7; color: #166534; }
.badge-paid { background: #fee2e2; color: #991b1b; }
.badge-cat {
  background: var(--paper2); color: var(--mid);
  border: 1px solid var(--border);
}

.rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500;
}
.stars { color: #f59e0b; font-size: 12px; }

.btn-review {
  display: inline-block;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px; font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .15s;
}
.btn-review:hover { background: var(--accent); }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.company-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
}
.company-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-top {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.card-logo-wrap { display: flex; align-items: center; gap: 12px; }
.card-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800; color: white;
}
.card-company-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.5px;
}
.card-category { font-size: 12px; color: var(--mid); margin-top: 2px; }
.card-rank {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--paper2);
}

.card-body-content { padding: 16px 20px; flex: 1; }
.card-desc {
  font-size: 13px; color: var(--mid); line-height: 1.6;
  margin-bottom: 12px;
}
.card-features {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.feat-tag {
  font-size: 11px; padding: 3px 8px;
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: 4px; color: var(--mid);
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-price { font-size: 13px; font-weight: 500; }
.card-price span { color: var(--mid); font-weight: 400; font-size: 12px; }
.card-arrow {
  font-size: 18px; color: var(--mid);
  transition: transform .15s, color .15s;
}
.company-card:hover .card-arrow { transform: translateX(3px); color: var(--accent); }

/* ── FAQ ── */
.faq-section {
  max-width: 720px; margin: 0 auto 60px;
}
.faq-section h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  text-align: center;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  width: 100%; text-align: left;
  padding: 18px 20px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background .1s;
}
.faq-q:hover { background: var(--paper); }
.faq-icon { font-size: 20px; color: var(--mid); transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  font-size: 14px; color: var(--mid); line-height: 1.7;
}
.faq-a-inner { padding: 0 20px 18px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 48px 2rem 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--paper); margin-bottom: 10px;
}
.footer-brand-name span { color: var(--accent); }
.footer-desc { font-size: 13px; color: #666; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #555; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13px; color: #888;
  text-decoration: none; margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 12px; color: #555; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #555; text-decoration: none; }
.footer-legal a:hover { color: #888; }

/* ── INDIVIDUAL COMPANY PAGE ── */
.breadcrumb {
  padding: 14px 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--mid);
}
.breadcrumb a { color: var(--mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

.company-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 2rem;
}
.company-hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start;
}
.company-hero-logo {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: white;
  margin-bottom: 16px;
}
.company-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.company-hero-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.company-hero-desc {
  font-size: 16px; color: var(--mid); line-height: 1.7;
  max-width: 600px; margin-bottom: 24px;
}

.score-card-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky; top: 90px;
}
.score-big {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 800;
  line-height: 1; color: var(--ink);
  margin-bottom: 4px;
}
.score-big span { font-size: 22px; color: var(--mid); }
.score-label { font-size: 12px; color: var(--mid); margin-bottom: 20px; }
.score-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.score-row { display: flex; align-items: center; gap: 10px; }
.score-row-label { font-size: 12px; color: var(--mid); width: 100px; flex-shrink: 0; }
.score-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 6px; border-radius: 3px; background: var(--accent); }
.score-row-val { font-size: 12px; font-weight: 500; width: 28px; text-align: right; }

.btn-visit {
  display: block; width: 100%;
  padding: 12px;
  background: var(--ink); color: var(--paper);
  text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius);
  transition: background .15s;
  margin-bottom: 8px;
}
.btn-visit:hover { background: var(--accent); }
.btn-compare {
  display: block; width: 100%;
  padding: 12px;
  background: none; color: var(--mid);
  text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, color .15s;
}
.btn-compare:hover { border-color: var(--ink); color: var(--ink); }

.review-body {
  max-width: var(--max); margin: 0 auto;
  padding: 40px 2rem;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start;
}
.review-content h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px; margin: 32px 0 12px;
}
.review-content h2:first-child { margin-top: 0; }
.review-content p { font-size: 15px; color: #333; line-height: 1.75; margin-bottom: 14px; }
.review-content ul { margin: 0 0 14px 20px; }
.review-content li { font-size: 15px; color: #333; line-height: 1.75; margin-bottom: 4px; }

.pricing-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.pricing-table th, .pricing-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table th { background: var(--paper); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); }
.pricing-table .price-val { font-weight: 600; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 24px; }
.pros, .cons {
  padding: 16px; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.pros { background: #f0fdf4; border-color: #bbf7d0; }
.cons { background: #fff7ed; border-color: #fed7aa; }
.pros h3 { font-size: 13px; font-weight: 600; color: #166534; margin-bottom: 10px; }
.cons h3 { font-size: 13px; font-weight: 600; color: #9a3412; margin-bottom: 10px; }
.pros li, .cons li { font-size: 13px; line-height: 1.6; margin-bottom: 5px; list-style: none; padding-left: 0; }
.pros li::before { content: '✓ '; color: #16a34a; }
.cons li::before { content: '✗ '; color: #ea580c; }

.review-sidebar { position: sticky; top: 90px; }
.sidebar-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 16px;
}
.sidebar-box h3 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  margin-bottom: 14px; letter-spacing: -0.3px;
}
.spec-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--mid); }
.spec-val { font-weight: 500; }

/* ── ABOUT PAGE ── */
.about-content {
  max-width: 720px; margin: 60px auto; padding: 0 2rem;
}
.about-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.about-content .lead {
  font-size: 18px; color: var(--mid); line-height: 1.7; margin-bottom: 32px;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin: 36px 0 14px; letter-spacing: -0.5px;
}
.about-content p { font-size: 15px; line-height: 1.75; color: #333; margin-bottom: 16px; }
.methodology-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.method-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.method-num {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  color: var(--paper2); line-height: 1; flex-shrink: 0; width: 36px;
}
.method-text h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.method-text p { font-size: 13px; color: var(--mid); margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .company-hero-inner { grid-template-columns: 1fr; }
  .review-body { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .score-card-box { position: static; }
  .review-sidebar { position: static; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease forwards; }
.fade-up:nth-child(2) { animation-delay: .08s; }
.fade-up:nth-child(3) { animation-delay: .16s; }
.fade-up:nth-child(4) { animation-delay: .24s; }

.updated-tag {
  display: inline-block;
  background: var(--paper2); color: var(--mid);
  padding: 4px 10px; border-radius: 4px;
  font-size: 12px; margin-bottom: 32px;
}
