/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === Layout === */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* === Header === */
.site-header {
  border-bottom: 2px solid #1a1a1a;
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}
.logo:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: #555; font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover { color: #1a1a1a; text-decoration: none; }

/* === Hero === */
.hero {
  background: #f8fafc;
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -1px; }
.hero p { font-size: 1.15rem; color: #555; max-width: 600px; margin: 0 auto; }

/* === Card Grid === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  display: block;
  color: #1a1a1a;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { border-color: #2563eb; box-shadow: 0 2px 12px rgba(37,99,235,0.08); text-decoration: none; }
.card h2, .card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: #666; margin-bottom: 0.75rem; }
.card-cta { font-size: 0.85rem; color: #2563eb; font-weight: 600; }

/* === Home Sections === */
.home-sections { padding: 3rem 0; }
.home-section { margin-bottom: 3rem; }
.home-section h2 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.home-section > p { color: #666; margin-bottom: 1rem; }
.view-all { display: inline-block; margin-top: 0.5rem; font-weight: 600; font-size: 0.95rem; }

/* === Article === */
.article { padding: 2.5rem 0; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.article-meta { display: flex; gap: 1rem; color: #888; font-size: 0.85rem; margin-top: 0.75rem; flex-wrap: wrap; }
.article-meta a { color: #2563eb; }

/* === Article Content === */
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; }
.article-content h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content strong { font-weight: 700; }
.article-content a { color: #2563eb; font-weight: 500; }
.article-content blockquote {
  border-left: 3px solid #2563eb;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: #f8fafc;
  color: #555;
}

/* === Comparison Table === */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-content th {
  background: #1a1a1a;
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.article-content tr:hover td { background: #f8fafc; }

/* === CTA Button === */
.cta-button {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s;
}
.cta-button:hover { background: #1d4ed8; text-decoration: none; color: #fff; }

/* === Product Card (for comparison LP) === */
.product-pick {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}
.product-pick.editors-choice { border-color: #2563eb; }
.product-pick.editors-choice::before {
  content: "Editor's Choice";
  position: absolute;
  top: -12px;
  left: 1rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
}
.product-pick h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.product-pick .rating { color: #f59e0b; font-weight: 700; margin-bottom: 0.5rem; }
.product-pick .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.75rem 0; font-size: 0.9rem; }
.product-pick .pros li::before { content: "+" ; color: #16a34a; font-weight: 700; margin-right: 4px; }
.product-pick .cons li::before { content: "- "; color: #dc2626; font-weight: 700; margin-right: 4px; }
.product-pick .pros li, .product-pick .cons li { list-style: none; margin-bottom: 0.3rem; }

/* === TOC === */
.toc { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.toc h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.toc ul { margin-left: 1rem; font-size: 0.9rem; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: #555; }
.toc a:hover { color: #2563eb; }

/* === Tags === */
.article-tags { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.tag {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.4rem;
}
.tag:hover { background: #e0e0e0; text-decoration: none; }

/* === Footer === */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}
.affiliate-disclosure { font-size: 0.75rem; color: #aaa; margin-top: 0.5rem; }

/* === Responsive === */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .product-pick .pros-cons { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; gap: 0.75rem; }
}
