:root {
  --bg: #0d1117;
  --bg-alt: #12182099;
  --panel: #161b22;
  --panel-2: #1c2430;
  --border: #26303d;
  --text: #e6edf3;
  --muted: #97a3b3;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --accent: #f472b6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(13, 17, 23, 0.8);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  color: var(--brand-2);
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(800px 400px at 90% 0%, rgba(34, 211, 238, 0.18), transparent 55%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-2);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 30%, #a5b4fc 70%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(16px, 2.3vw, 20px); color: var(--muted); max-width: 720px; margin: 0 0 30px; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stat row */
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stat {
  font-size: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
}
.hero-stat b { color: var(--brand-2); font-weight: 700; margin-right: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--brand), #818cf8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand-2); }

/* ===== Affiliate disclosure bar ===== */
.disclosure-bar {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
}

/* ===== CTA buttons (affiliate links) ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-2), #38bdf8);
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.28);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 26px rgba(34, 211, 238, 0.4); }
.fr-actions { margin: 4px 0 20px; }
.card-cta { margin-top: 16px; }
.card-cta .btn-cta { width: 100%; justify-content: center; }

/* ===== Sections ===== */
.section { padding: 74px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.01em; position: relative; }
.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.section-sub { color: var(--muted); font-size: 17px; margin: 0 0 34px; }

/* ===== "How to choose" cards ===== */
.choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin: 28px 0 8px; }
.choose-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.choose-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.choose-icon {
  font-size: 26px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 14px;
}
.choose-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.choose-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== Finder ===== */
.finder-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #818cf8);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.finder-result {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.fr-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.fr-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
}
.fr-title { font-size: 26px; font-weight: 800; margin: 0; }
.fr-why { color: var(--muted); font-size: 17px; margin: 6px 0 20px; }
.fr-alts { display: flex; gap: 12px; flex-wrap: wrap; }
.fr-alt {
  font-size: 14px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 10px;
}
.fr-alt b { color: var(--brand-2); }

/* ===== Matrix ===== */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.matrix { width: 100%; border-collapse: collapse; min-width: 760px; }
.matrix th, .matrix td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.matrix thead th { background: var(--panel-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.matrix tbody th { font-weight: 700; font-size: 16px; }
.matrix tbody tr:hover { background: rgba(99, 102, 241, 0.06); }
.matrix td { color: var(--muted); font-size: 14px; }

.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.d5 { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.d4 { background: #a3e635; }
.d3 { background: #facc15; }
.d2 { background: #fb923c; }
.d1 { background: #3b4654; }

.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.disclaimer { color: var(--muted); font-size: 13px; margin-top: 12px; opacity: 0.8; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-logo {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #fff;
}
.card h3 { margin: 0; font-size: 21px; font-weight: 700; }
.card .tag { display: block; font-size: 13px; color: var(--brand-2); font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.card ul { list-style: none; padding: 0; margin: 0 0 16px; }
.card li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 14px; color: var(--text); }
.card li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 700; }
.card .skip { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.card .skip b { color: var(--accent); }

/* ===== FAQ ===== */
.faq {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand-2); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: 14px; margin: 0; }
.to-top { color: var(--brand-2); font-weight: 600; font-size: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ===== Prose (article/content blocks) ===== */
.prose { color: var(--muted); font-size: 16px; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); font-style: italic; }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.prose li::before { content: "→"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
.prose h2 { color: var(--text); font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 34px 0 12px; letter-spacing: -0.01em; }
.prose h3 { color: var(--text); font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
.prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--text); }
.prose a.btn-cta, .prose a.btn-cta:hover { color: #fff; text-decoration: none; }

/* ===== Internal review index (home page) ===== */
.review-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review-index-card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tool, var(--brand));
  border-radius: var(--radius);
  padding: 20px 22px 20px 20px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.review-index-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-index-card .ri-badge {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 12px;
}
.review-index-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--text); }
.review-index-card .ri-sub { color: var(--muted); font-size: 14px; font-weight: 500; }
.review-index-card::after {
  content: "→";
  position: absolute; top: 20px; right: 20px;
  color: var(--tool, var(--brand-2)); font-weight: 700;
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}
.review-index-card:hover::after { opacity: 1; transform: translateX(0); }

/* ===== Internal review links on finder / cards ===== */
.fr-review-link, .card-review-link { color: var(--brand-2); font-weight: 600; font-size: 14px; }
.fr-review-link { margin-left: 14px; }
.fr-review-link:hover, .card-review-link:hover { text-decoration: underline; }
.card-review-link { display: inline-block; margin-top: 12px; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--brand-2); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.6; margin: 0 6px; }

/* ===== Review page hero ===== */
.review-hero { padding: 26px 0 10px; }
.review-hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}
.review-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.review-rating { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.stars { color: #facc15; letter-spacing: 2px; font-size: 18px; }
.rating-num { color: var(--muted); font-size: 14px; font-weight: 600; }
.review-tag {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-2); background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3); padding: 5px 12px; border-radius: 999px;
}

/* ===== Pros & cons ===== */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.proscons .col { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.proscons h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; color: var(--text); }
.pros li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 560px) { .proscons { grid-template-columns: 1fr; } }

/* ===== Verdict box ===== */
.verdict {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(34,211,238,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 30px 0;
}
.verdict h2 { margin-top: 0; }
.verdict .review-cta-wrap { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Quick-facts table ===== */
.facts { width: 100%; border-collapse: collapse; margin: 8px 0 8px; }
.facts th, .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 15px; }
.facts th { color: var(--muted); font-weight: 600; width: 40%; }

/* ===== Related tools ===== */
.related { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.related a {
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text);
  transition: border-color 0.18s;
}
.related a:hover { border-color: var(--brand-2); }

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 54px 0; }
  .fr-review-link { margin-left: 0; display: block; margin-top: 10px; }
}

/* ===== Article pages: breathing room above the footer ===== */
.wrap.narrow > article { padding-bottom: 56px; }

/* Tables inside article pages fit the narrower column (still scroll on phones) */
.prose .matrix { min-width: 560px; }
.prose .matrix th, .prose .matrix td { padding: 12px 14px; }

/* ===== "Last updated" label & hub page links ===== */
.updated { color: var(--muted); font-size: 13px; }
.hub-more { margin-top: -6px; }
.hub-more a { font-weight: 600; text-decoration: none; }
.hub-more a:hover { text-decoration: underline; }

.section-sub a { color: var(--brand-2); font-weight: 600; }
.section-sub a:hover { text-decoration: underline; }

/* ===== Comparison table group labels ===== */
.matrix tr.matrix-group th { background: var(--panel-2); color: var(--brand-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 16px; }
.matrix tr.matrix-group a { color: var(--brand-2); text-transform: none; letter-spacing: 0; }
.matrix tr.matrix-group:hover { background: none; }
