/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #334155; background: #f8fafc; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }

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

/* === Eyebrow Labels === */
.eyebrow { display: block; font-size: 0.75rem; letter-spacing: 0.1em; color: #6b7280; text-transform: uppercase; font-weight: 600; margin-bottom: 0.5rem; font-family: 'Inter', system-ui, sans-serif; }

/* === Nav === */
.nav { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 1.25rem; color: #2563eb; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: #2563eb; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* === Hero === */
.hero { padding: 6rem 0 5rem; text-align: center; background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fef3c7 100%); position: relative; overflow: hidden; box-shadow: inset 0 -1px 0 0 #e5e7eb; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, #94a3b8 1px, transparent 1px); background-size: 24px 24px; opacity: 0.04; pointer-events: none; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; max-width: 720px; margin: 0 auto; }
.accent { color: #2563eb; }
.hero-sub { font-size: 1.15rem; color: #64748b; max-width: 560px; margin: 1.25rem auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.social-proof { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 2rem; color: #64748b; font-size: 0.9rem; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: block; }
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack .av1 { background: #bfdbfe; }
.avatar-stack .av2 { background: #fde68a; }
.avatar-stack .av3 { background: #c7d2fe; }
.avatar-stack .av4 { background: #d9f99d; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: all .2s; cursor: pointer; border: 2px solid transparent; min-height: 48px; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { border-color: #2563eb; color: #2563eb; background: transparent; }
.btn-outline:hover { background: #2563eb; color: #fff; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; min-height: 40px; }

/* === Categories === */
.categories { padding: 5rem 0; }
.categories h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.cat-card { display: flex; align-items: flex-start; gap: 1rem; padding: 2rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; transition: all 0.2s ease; position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.cat-card .cat-icon-wrap { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.cat-card .cat-text { flex: 1; }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.cat-card .arrow { opacity: 0; transform: translateX(-4px); transition: all .25s; color: #2563eb; }
.cat-card:hover .arrow { opacity: 1; transform: translateX(0); }
.cat-card p { color: #94a3b8; font-size: 0.9rem; }

/* Category colors */
.cat-card--writing { border-left: 3px solid #2563eb; }
.cat-card--writing .cat-icon-wrap { background: #eff6ff; }
.cat-card--writing:hover { background: #f8faff; }
.cat-card--chatbots { border-left: 3px solid #7c3aed; }
.cat-card--chatbots .cat-icon-wrap { background: #f5f3ff; }
.cat-card--chatbots:hover { background: #faf8ff; }
.cat-card--code { border-left: 3px solid #059669; }
.cat-card--code .cat-icon-wrap { background: #ecfdf5; }
.cat-card--code:hover { background: #f6fef9; }
.cat-card--image { border-left: 3px solid #f59e0b; }
.cat-card--image .cat-icon-wrap { background: #fffbeb; }
.cat-card--image:hover { background: #fffdf5; }
.cat-card--marketing { border-left: 3px solid #ef4444; }
.cat-card--marketing .cat-icon-wrap { background: #fef2f2; }
.cat-card--marketing:hover { background: #fff5f5; }
.cat-card--business { border-left: 3px solid #0ea5e9; }
.cat-card--business .cat-icon-wrap { background: #f0f9ff; }
.cat-card--business:hover { background: #f5fbff; }

/* === Featured Reviews === */
.featured { padding: 5rem 0 6rem; background: #fff; }
.featured h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.review-card { position: relative; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; transition: all 0.2s ease; overflow: hidden; }
.review-card:hover { transform: translateY(-2px); border-color: #2563eb; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.review-card-gradient { height: 6px; width: 100%; }
.review-card:nth-child(1) .review-card-gradient { background: linear-gradient(90deg, #2563eb, #7c3aed); }
.review-card:nth-child(2) .review-card-gradient { background: linear-gradient(90deg, #7c3aed, #ec4899); }
.review-card:nth-child(3) .review-card-gradient { background: linear-gradient(90deg, #059669, #0ea5e9); }
.review-card-body { padding: 1.75rem; position: relative; }
.review-rank { position: absolute; top: 0.5rem; right: 1rem; font-size: 3rem; font-weight: 800; font-family: 'Outfit', sans-serif; color: #e5e7eb; line-height: 1; pointer-events: none; }
.review-badge { display: inline-block; background: #f59e0b; color: #fff; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 20px; margin-bottom: 0.75rem; }
.review-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; padding-right: 3rem; }
.review-card p { color: #64748b; font-size: 0.95rem; margin-bottom: 1rem; }
.review-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: #94a3b8; margin-bottom: 1rem; }
.rating { color: #f59e0b; font-size: 1.1rem; }
.review-card .btn { width: 100%; text-align: center; }

/* === Newsletter === */
.newsletter { padding: 4rem 0 5rem; }
.newsletter-box { max-width: 600px; margin: 0 auto; text-align: center; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; padding: 3rem 2rem; border-radius: 16px; }
.newsletter-box h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.newsletter-box p { opacity: 0.9; margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto 0.75rem; }
.newsletter-form input { flex: 1; padding: 0.75rem 1rem; border: none; border-radius: 8px; font-size: 1rem; min-height: 48px; }
.newsletter-form .btn-primary { background: #0f172a; border: none; }
.newsletter-form .btn-primary:hover { background: #1e293b; }
.newsletter-box small { opacity: 0.7; font-size: 0.8rem; }

/* === Footer === */
.footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: #fff; margin-bottom: 0.75rem; font-family: 'Outfit', sans-serif; }
.footer ul li { margin-bottom: 0.4rem; }
.footer a:hover { color: #60a5fa; }
.footer-disclosure { background: rgba(255,255,255,.05); padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.82rem; line-height: 1.6; color: #64748b; }
.footer-disclosure a { color: #60a5fa; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); color: #64748b; font-size: 0.82rem; }

/* === Article Template === */
.article { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem; }
.article h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.article-meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 2rem; }
.article h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.article p { margin-bottom: 1rem; color: #334155; }

/* === Comparison Table === */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border-radius: 12px; border: 1px solid #e5e7eb; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.comparison-table th, .comparison-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
.comparison-table th { background: #f1f5f9; font-weight: 700; color: #0f172a; font-family: 'Outfit', sans-serif; }
.comparison-table tbody tr:nth-child(even) { background: #fafafa; }
.comparison-table tbody tr:nth-child(odd) { background: #fff; }
.comparison-table td:first-child { font-weight: 700; color: #0f172a; }
.comparison-table .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2563eb; margin-right: 0.5rem; vertical-align: middle; }
.comparison-table .winner-row { background: #eff6ff !important; border-left: 3px solid #2563eb; }
.comparison-table .rating { font-size: 1rem; }

/* === CTA Box (Affiliate) === */
.cta-box { background: linear-gradient(135deg, #eff6ff, #fef3c7); border: 2px solid #2563eb; border-radius: 12px; padding: 2rem; text-align: center; margin: 2rem 0; }
.cta-box strong { font-family: 'Outfit', sans-serif; font-size: 1.2rem; color: #0f172a; }
.cta-box p { color: #334155; margin: 0.5rem 0; }
.cta-box .btn { margin-top: 0.75rem; }
.cta-box .trust-text { display: block; font-size: 0.8rem; color: #6b7280; margin-top: 0.5rem; }

/* === About Page Extras === */
.review-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.step-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.75rem; text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #2563eb; color: #fff; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.75rem; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.9rem; color: #64748b; }
.trust-stats { display: flex; gap: 2rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-stat .num { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: #2563eb; display: block; }
.trust-stat .label { font-size: 0.85rem; color: #6b7280; }
.disclosure-card { background: linear-gradient(135deg, #eff6ff, #f8fafc); border: 1px solid #e5e7eb; border-left: 4px solid #2563eb; border-radius: 12px; padding: 1.75rem; margin: 2rem 0; }
.disclosure-card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.disclosure-card h3 { margin-bottom: 0.5rem; }
.disclosure-card p { color: #334155; font-size: 0.95rem; margin-bottom: 0.5rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; gap: 0.75rem; }
  .nav-links.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; min-padding: 2rem; }
  .hero .container { padding: 0 2rem; }
  .newsletter-form { flex-direction: column; }
  .review-card h3 { padding-right: 0; }
  .review-badge { margin-bottom: 0.75rem; }
  .cta-box .btn { width: 100%; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 2rem 2.5rem; }
}
