/*
Theme Name: CompareAITools
Theme URI: https://compareaitools.com
Author: AIToolsHub
Author URI: https://compareaitools.com
Description: A modern, clean affiliate WordPress theme for AI tools and SaaS product comparisons. Built for students, freelancers, and beginners. Features hero section, category cards, tool comparison tables, blog grid, email signup, and testimonials.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compareaitools
Tags: affiliate, blog, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ===== CSS VARIABLES ===== */
:root {
  --white: #ffffff;
  --grey-50: #f8f9fb;
  --grey-100: #f0f2f5;
  --grey-200: #e4e8ef;
  --grey-300: #cdd3dc;
  --grey-400: #9aa5b4;
  --grey-600: #4a5568;
  --grey-700: #374151;
  --grey-800: #1a2332;
  --grey-900: #0d1421;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #60a5fa;
  --accent: #0052ff;
  --accent-light: #e8f0ff;
  --accent-hover: #0040cc;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --container: 1160px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--grey-700);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.15s; }
ul, ol { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }

/* ===== TYPOGRAPHY ===== */
.section-label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; line-height: 1.15;
  color: var(--grey-900); margin-bottom: 14px;
}
.section-subtitle {
  font-size: 17px; color: var(--grey-600);
  line-height: 1.65; max-width: 560px;
}
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); color: var(--accent);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid rgba(0,82,255,0.15);
}
.badge svg { width: 13px; height: 13px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  padding: 13px 24px; border-radius: 10px; cursor: pointer;
  border: none; transition: all 0.18s ease; white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px rgba(0,82,255,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(0,82,255,0.4);
  transform: translateY(-1px); color: #fff;
}
.btn-secondary {
  background: var(--white); color: var(--grey-800);
  border: 1.5px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--grey-400);
  background: var(--grey-50);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-lg { font-size: 16px; padding: 16px 32px; border-radius: 12px; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ===== AFFILIATE BUTTONS ===== */
.btn-affiliate {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 11px;
  transition: all 0.18s; cursor: pointer; border: none;
  box-shadow: 0 3px 14px rgba(0,82,255,0.3);
  font-family: var(--font-body);
  text-decoration: none;
}
.btn-affiliate:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,82,255,0.4);
  color: white;
}
.btn-affiliate svg { width: 16px; height: 16px; }
.btn-affiliate-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--accent);
  font-weight: 600; font-size: 15px;
  padding: 12px 26px; border-radius: 11px;
  border: 2px solid var(--accent);
  transition: all 0.18s; cursor: pointer;
  font-family: var(--font-body); text-decoration: none;
}
.btn-affiliate-outline:hover { background: var(--accent-light); }
.btn-affiliate-outline svg { width: 16px; height: 16px; }

/* ===== NAVIGATION ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  height: 64px; display: flex; align-items: center;
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; width: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
}
.site-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 20px;
  font-weight: 800; color: var(--grey-900);
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 34px; height: 34px; background: var(--accent);
  border-radius: 9px; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; color: #fff; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--grey-600);
  padding: 7px 13px; border-radius: 8px; transition: all 0.15s;
}
.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--grey-900); background: var(--grey-100); }
.main-nav a.current-menu-item { color: var(--accent); background: var(--accent-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ===== HERO ===== */
.hero-section {
  background: var(--white);
  padding: 80px 24px 72px;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,82,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(var(--grey-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--grey-200) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; position: relative;
}
.hero-badge { margin-bottom: 22px; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.02em; color: var(--grey-900);
  margin-bottom: 20px;
}
.hero-headline .highlight { color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--grey-600);
  line-height: 1.65; margin-bottom: 36px;
  font-weight: 300; max-width: 460px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-social-proof {
  display: flex; align-items: center; gap: 10px;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--grey-200);
}
.hero-avatars { display: flex; }
.hero-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid white; margin-right: -10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}
.hero-avatar:nth-child(1) { background: linear-gradient(135deg,#60a5fa,#0052ff); }
.hero-avatar:nth-child(2) { background: linear-gradient(135deg,#10b981,#059669); }
.hero-avatar:nth-child(3) { background: linear-gradient(135deg,#f59e0b,#d97706); }
.hero-avatar:nth-child(4) { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.hero-proof-text { font-size: 13px; color: var(--grey-600); padding-left: 10px; }
.hero-proof-text strong { color: var(--grey-900); font-weight: 600; }

/* Hero Visual Card */
.hero-visual { position: relative; }
.hero-float-badge {
  position: absolute; top: -18px; right: -18px;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px; z-index: 2;
}
.hero-float-icon {
  width: 36px; height: 36px; background: var(--green);
  border-radius: 9px; display: flex;
  align-items: center; justify-content: center;
}
.hero-float-icon svg { width: 18px; height: 18px; color: white; }
.hero-float-text .f-title { font-size: 14px; font-weight: 700; color: var(--grey-900); }
.hero-float-text .f-sub { font-size: 11px; color: var(--grey-400); }
.hero-float-badge2 {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--accent); border-radius: var(--radius);
  padding: 10px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px; z-index: 2;
}
.hero-float-badge2 .f-title { font-size: 13px; font-weight: 700; color: white; }
.hero-float-badge2 .f-sub { font-size: 11px; color: rgba(255,255,255,0.7); }
.hero-main-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.hero-card-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.hero-card-label {
  font-size: 12px; font-weight: 600; color: var(--grey-400);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-live-dot {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--green); font-weight: 500;
}
.hero-live-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-tool-list { display: flex; flex-direction: column; gap: 12px; }
.hero-tool-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: var(--grey-50);
  border-radius: 10px; border: 1px solid var(--grey-200);
  transition: border-color 0.15s;
}
.hero-tool-item.active {
  background: var(--accent-light);
  border-color: rgba(0,82,255,0.2);
}
.hero-tool-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  background: white; border: 1px solid var(--grey-200);
}
.hero-tool-info { flex: 1; min-width: 0; }
.hero-tool-name { font-size: 14px; font-weight: 600; color: var(--grey-900); }
.hero-tool-desc { font-size: 12px; color: var(--grey-400); margin-top: 1px; }
.hero-tool-rating {
  display: flex; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--orange);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: 22px 0;
}
.trust-bar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--grey-600); font-weight: 500;
}
.trust-item svg { width: 16px; height: 16px; color: var(--accent); }
.trust-divider { width: 1px; height: 22px; background: var(--grey-200); }

/* ===== CATEGORIES ===== */
.categories-section { background: var(--white); }
.categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cat-card {
  background: var(--white); border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: all 0.2s ease; position: relative;
  overflow: hidden; cursor: pointer;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0,82,255,0.03));
  pointer-events: none;
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.cat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
  background: var(--grey-50); border: 1.5px solid var(--grey-200);
}
.cat-card:nth-child(1) .cat-icon { background: #eff6ff; border-color: #bfdbfe; }
.cat-card:nth-child(2) .cat-icon { background: #f0fdf4; border-color: #bbf7d0; }
.cat-card:nth-child(3) .cat-icon { background: #fff7ed; border-color: #fed7aa; }
.cat-name {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 700; color: var(--grey-900); margin-bottom: 8px;
}
.cat-desc {
  font-size: 14px; color: var(--grey-600);
  line-height: 1.6; margin-bottom: 20px;
}
.cat-count {
  font-size: 12px; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 5px;
}
.cat-count svg { width: 13px; height: 13px; }
.cat-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--grey-100); border: 1px solid var(--grey-200);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.cat-arrow svg { width: 14px; height: 14px; color: var(--grey-600); }
.cat-card:hover .cat-arrow { background: var(--accent); border-color: var(--accent); }
.cat-card:hover .cat-arrow svg { color: white; }

/* ===== TOP TOOLS ===== */
.tools-section { background: var(--grey-50); }
.tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tool-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.22s ease;
  display: flex; flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tool-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--grey-100), var(--grey-200));
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tool-card:nth-child(1) .tool-card-thumb { background: linear-gradient(135deg,#eff6ff,#dbeafe); }
.tool-card:nth-child(2) .tool-card-thumb { background: linear-gradient(135deg,#f0fdf4,#d1fae5); }
.tool-card:nth-child(3) .tool-card-thumb { background: linear-gradient(135deg,#fff7ed,#fed7aa); }
.tool-thumb-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}
.tool-thumb-icon {
  position: relative; width: 64px; height: 64px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.tool-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 5px;
  background: white; border: 1px solid var(--grey-200);
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
}
.tool-badge.top { color: var(--orange); }
.tool-badge.new-tag { color: var(--green); }
.tool-badge.popular { color: var(--accent); }
.tool-card-body {
  padding: 22px; flex: 1; display: flex; flex-direction: column;
}
.tool-card-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.tool-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--orange);
}
.tool-category { font-size: 11px; color: var(--grey-400); font-weight: 500; }
.tool-name {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 700; color: var(--grey-900); margin-bottom: 8px;
}
.tool-desc {
  font-size: 14px; color: var(--grey-600);
  line-height: 1.6; margin-bottom: 18px; flex: 1;
}
.tool-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--grey-100);
}
.tool-price { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.tool-price .free { color: var(--green); }
.tool-price .paid { color: var(--grey-800); }
.tool-price .from { color: var(--grey-400); font-weight: 400; font-size: 11px; }

/* ===== BLOG POSTS ===== */
.blog-section { background: var(--white); }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.post-card {
  border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.2s ease; background: var(--white);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-card-thumb {
  height: 196px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.post-card:nth-child(1) .post-card-thumb { background: linear-gradient(135deg,#f0f4ff,#dbeafe); }
.post-card:nth-child(2) .post-card-thumb { background: linear-gradient(135deg,#f0fdf4,#d1fae5); }
.post-card:nth-child(3) .post-card-thumb { background: linear-gradient(135deg,#fdf4ff,#ede9fe); }
.post-thumb-icon { font-size: 52px; opacity: 0.7; }
.post-card-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: white; border: 1px solid var(--grey-200);
  font-size: 11px; font-weight: 600; color: var(--accent);
  padding: 3px 10px; border-radius: 100px;
}
.post-card-body { padding: 20px; }
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--grey-400); margin-bottom: 10px;
}
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--grey-300); }
.post-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; line-height: 1.4; color: var(--grey-900);
  margin-bottom: 10px; transition: color 0.15s;
}
.post-card:hover .post-title { color: var(--accent); }
.post-excerpt {
  font-size: 13px; color: var(--grey-600);
  line-height: 1.6; margin-bottom: 16px;
}
.post-read-more {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  transition: gap 0.15s;
}
.post-card:hover .post-read-more { gap: 8px; }
.post-read-more svg { width: 14px; height: 14px; }
.blog-view-all { text-align: center; margin-top: 44px; }

/* ===== EMAIL SIGNUP ===== */
.email-section {
  background: var(--grey-900);
  position: relative; overflow: hidden;
}
.email-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(0,82,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.email-section::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.email-inner {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
  padding: 80px 24px; text-align: center;
}
.email-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--accent); margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(0,82,255,0.12), 0 0 0 20px rgba(0,82,255,0.06);
}
.email-icon svg { width: 30px; height: 30px; color: white; }
.email-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; line-height: 1.12;
  color: white; margin-bottom: 14px;
}
.email-title .em { color: var(--blue-400); }
.email-sub {
  font-size: 16px; color: rgba(255,255,255,0.6);
  line-height: 1.6; margin-bottom: 36px;
}
.email-form {
  display: flex; gap: 10px;
  max-width: 480px; margin: 0 auto 20px;
}
.email-input {
  flex: 1; padding: 13px 18px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: white; font-size: 15px; font-family: var(--font-body);
  outline: none; transition: border-color 0.15s;
}
.email-input::placeholder { color: rgba(255,255,255,0.35); }
.email-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); }
.email-note { font-size: 12px; color: rgba(255,255,255,0.3); }
.email-features {
  display: flex; justify-content: center; gap: 28px;
  flex-wrap: wrap; margin-top: 32px;
}
.email-feature {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.email-feature svg { width: 14px; height: 14px; color: var(--green); }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--grey-50); }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.testi-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 26px;
  transition: box-shadow 0.2s;
}
.testi-card:hover { box-shadow: var(--shadow-md); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--orange); font-size: 16px; }
.testi-quote {
  font-size: 14px; color: var(--grey-700);
  line-height: 1.7; margin-bottom: 20px; font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}
.testi-author-info .t-name { font-size: 14px; font-weight: 600; color: var(--grey-900); }
.testi-author-info .t-role { font-size: 12px; color: var(--grey-400); margin-top: 2px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--grey-900);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px; font-family: var(--font-display);
  font-size: 19px; font-weight: 800; color: white;
}
.footer-logo-icon {
  width: 32px; height: 32px; background: var(--accent);
  border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 16px; height: 16px; color: white; }
.footer-tagline { font-size: 14px; line-height: 1.65; max-width: 240px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; color: rgba(255,255,255,0.6);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: white; }
.social-link svg { width: 16px; height: 16px; }
.footer-col-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.footer-copy { font-size: 13px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ===== SINGLE POST / BLOG ARTICLE ===== */
.article-wrap {
  max-width: 1160px; margin: 0 auto; padding: 44px 24px 80px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 52px; align-items: start;
}
.article-content { min-width: 0; }
.article-sidebar { position: sticky; top: 80px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--grey-400); margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--grey-400); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--grey-300); }
.article-meta-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.meta-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
}
.meta-date, .meta-read { font-size: 13px; color: var(--grey-400); }
.meta-dot { color: var(--grey-300); }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800; line-height: 1.15;
  color: var(--grey-900); margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.article-subtitle {
  font-size: 18px; color: var(--grey-600);
  line-height: 1.6; margin-bottom: 24px; font-weight: 300;
}
.author-row {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 32px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.author-info .a-name { font-size: 14px; font-weight: 600; color: var(--grey-900); }
.author-info .a-bio { font-size: 12px; color: var(--grey-400); margin-top: 1px; }
.article-hero-img {
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 36px; height: 340px;
  background: linear-gradient(135deg,#eff6ff,#dbeafe);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--grey-200);
}
.article-hero-img .hero-emoji { font-size: 72px; }

/* Article Body Typography */
.article-body h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  color: var(--grey-900); margin: 44px 0 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--grey-100);
  scroll-margin-top: 80px;
}
.article-body h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: var(--grey-900); margin: 32px 0 12px; scroll-margin-top: 80px;
}
.article-body p {
  margin-bottom: 18px; color: var(--grey-700);
  font-size: 17px; line-height: 1.75;
}
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li {
  font-size: 16px; line-height: 1.7;
  color: var(--grey-700); margin-bottom: 6px;
}
.article-body strong { color: var(--grey-900); font-weight: 600; }
.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }

/* TOC Box */
.toc-box {
  background: var(--grey-50); border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 36px;
}
.toc-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--grey-900); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.toc-title svg { width: 16px; height: 16px; color: var(--accent); }
.toc-list { padding: 0; }
.toc-list li { margin-bottom: 7px; }
.toc-list a {
  font-size: 14px; color: var(--grey-600);
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; transition: color 0.15s;
}
.toc-list a:hover { color: var(--accent); }
.toc-list a::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--grey-300); flex-shrink: 0; transition: background 0.15s;
}
.toc-list a:hover::before { background: var(--accent); }
.toc-num { color: var(--grey-400); font-size: 12px; }

/* Verdict / Info Boxes */
.verdict-box {
  border: 2px solid var(--accent); border-radius: var(--radius-lg);
  padding: 24px 26px; background: var(--accent-light); margin-bottom: 32px;
}
.verdict-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.verdict-label svg { width: 14px; height: 14px; }
.verdict-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  color: var(--grey-900); margin-bottom: 8px;
}
.verdict-text { font-size: 15px; color: var(--grey-700); line-height: 1.65; }
.info-box {
  border-radius: var(--radius); padding: 16px 20px;
  margin: 24px 0; display: flex; gap: 13px; align-items: flex-start;
}
.info-box.tip { background: var(--blue-50); border: 1.5px solid #bfdbfe; }
.info-box.warning { background: var(--orange-light); border: 1.5px solid #fde68a; }
.info-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.info-box.tip svg { color: var(--accent); }
.info-box.warning svg { color: var(--orange); }
.info-box-text { font-size: 15px; line-height: 1.65; }
.info-box.tip .info-box-text { color: #1e40af; }
.info-box.warning .info-box-text { color: #92400e; }

/* Comparison Table */
.comp-table-wrap {
  overflow-x: auto; margin: 28px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
}
.comp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comp-table thead tr { background: var(--grey-900); color: white; }
.comp-table thead th {
  padding: 14px 18px; text-align: left;
  font-family: var(--font-display); font-size: 13px;
  font-weight: 700; letter-spacing: 0.04em;
}
.comp-table thead th.highlight { background: var(--accent); }
.comp-table tbody tr {
  border-bottom: 1px solid var(--grey-100); transition: background 0.12s;
}
.comp-table tbody tr:hover { background: var(--grey-50); }
.comp-table tbody tr:last-child { border-bottom: none; }
.comp-table td { padding: 13px 18px; vertical-align: middle; }
.comp-table td:first-child { font-weight: 600; color: var(--grey-800); }
.comp-table .col-highlight { background: rgba(0,82,255,0.04); }
.check { color: var(--green); }
.cross { color: var(--red); }
.partial { color: var(--orange); }
.rating-cell {
  display: flex; align-items: center; gap: 5px;
  color: var(--orange); font-weight: 600; font-size: 13px;
}

/* Pros / Cons */
.pros-cons-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin: 24px 0;
}
.pros-box, .cons-box { border-radius: var(--radius); padding: 20px; }
.pros-box { background: var(--green-light); border: 1.5px solid #a7f3d0; }
.cons-box { background: var(--red-light); border: 1.5px solid #fca5a5; }
.pc-title {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
.pros-box .pc-title { color: #065f46; }
.cons-box .pc-title { color: #991b1b; }
.pc-list { padding: 0; }
.pc-list li {
  font-size: 14px; line-height: 1.6; margin-bottom: 7px;
  display: flex; align-items: flex-start; gap: 8px;
}
.pc-list li::before {
  content: ''; flex-shrink: 0; margin-top: 6px;
  width: 6px; height: 6px; border-radius: 50%;
}
.pros-box .pc-list li { color: #065f46; }
.pros-box .pc-list li::before { background: var(--green); }
.cons-box .pc-list li { color: #991b1b; }
.cons-box .pc-list li::before { background: var(--red); }

/* CTA Boxes */
.cta-box {
  background: var(--grey-900); border-radius: var(--radius-lg);
  padding: 28px 30px; margin: 32px 0;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0,82,255,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-box-text { flex: 1; min-width: 200px; }
.cta-box-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 5px;
}
.cta-box-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 800; color: white; margin-bottom: 5px;
}
.cta-box-sub { font-size: 13px; color: rgba(255,255,255,0.5); }
.cta-box-rating {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--orange); font-weight: 700; margin-top: 4px;
}
.cta-box-actions { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.cta-box-actions .note { font-size: 11px; color: rgba(255,255,255,0.3); text-align: center; }
.inline-cta {
  background: var(--accent-light); border: 1.5px solid rgba(0,82,255,0.2);
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.inline-cta-text { font-size: 15px; color: var(--grey-800); font-weight: 500; }
.inline-cta-text span { color: var(--accent); font-weight: 700; }

/* Score Card */
.score-card {
  border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  overflow: hidden; margin: 28px 0; box-shadow: var(--shadow-sm);
}
.score-card-header {
  padding: 18px 22px; background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.score-card-tool { display: flex; align-items: center; gap: 12px; }
.score-tool-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-light); border: 1px solid rgba(0,82,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.score-tool-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--grey-900); }
.score-tool-sub { font-size: 13px; color: var(--grey-400); }
.score-num {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 800; color: var(--accent); line-height: 1;
}
.score-label { font-size: 11px; color: var(--grey-400); margin-top: 2px; }
.score-card-body { padding: 22px; }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.score-metric-name { font-size: 13px; color: var(--grey-600); font-weight: 500; margin-bottom: 6px; }
.score-bar-wrap { height: 7px; background: var(--grey-100); border-radius: 100px; }
.score-bar { height: 100%; border-radius: 100px; background: var(--accent); }
.score-bar.good { background: var(--green); }
.score-bar.mid { background: var(--orange); }
.score-metric-val { font-size: 12px; color: var(--grey-400); margin-top: 4px; }

/* FAQ */
.faq-item {
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  padding: 16px 20px; display: flex;
  align-items: center; justify-content: space-between;
  gap: 12px; cursor: pointer; background: var(--white);
  font-size: 15px; font-weight: 600; color: var(--grey-900);
  transition: background 0.15s; list-style: none;
}
.faq-q:hover { background: var(--grey-50); }
.faq-q::after {
  content: '+'; font-size: 20px; color: var(--accent);
  font-weight: 400; flex-shrink: 0; line-height: 1;
}
details[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: 14px 20px 18px;
  font-size: 15px; color: var(--grey-600); line-height: 1.7;
  border-top: 1px solid var(--grey-100);
}

/* Sidebar */
.sidebar-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px;
}
.sidebar-card-header {
  padding: 14px 18px; border-bottom: 1px solid var(--grey-100);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--grey-900); background: var(--grey-50);
}
.sidebar-card-body { padding: 16px 18px; }
.sidebar-tool-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--grey-100);
}
.sidebar-tool-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-tool-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--grey-100); display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.sidebar-tool-name { font-size: 13px; font-weight: 600; color: var(--grey-900); }
.sidebar-tool-rating { font-size: 11px; color: var(--orange); font-weight: 600; }
.sidebar-tool-link {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--accent);
}
.sidebar-cta {
  background: var(--accent); border-radius: var(--radius-lg);
  padding: 22px 20px; text-align: center; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.sidebar-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.sidebar-cta-icon { font-size: 32px; margin-bottom: 10px; position: relative; }
.sidebar-cta-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 800; color: white; margin-bottom: 6px; position: relative;
}
.sidebar-cta-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; position: relative; }
.toc-sidebar {
  background: var(--grey-50); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 20px;
}
.toc-sidebar-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--grey-900); margin-bottom: 14px;
}
.toc-sidebar-list { padding: 0; }
.toc-sidebar-list li { margin-bottom: 6px; }
.toc-sidebar-list a {
  font-size: 13px; color: var(--grey-600); display: block;
  padding: 4px 0 4px 12px; border-left: 2px solid var(--grey-200);
  transition: all 0.15s;
}
.toc-sidebar-list a:hover {
  color: var(--accent); border-left-color: var(--accent); padding-left: 16px;
}

/* Article tags & bottom */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--grey-200); }
.article-tag {
  font-size: 12px; font-weight: 500; color: var(--grey-600);
  background: var(--grey-100); border: 1px solid var(--grey-200);
  padding: 5px 12px; border-radius: 100px; transition: all 0.15s;
}
.article-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.bottom-cta {
  background: var(--grey-900); border-radius: var(--radius-lg);
  padding: 36px; text-align: center; margin-top: 48px; position: relative; overflow: hidden;
}
.bottom-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,82,255,0.2) 0%, transparent 60%);
}
.bottom-cta-inner { position: relative; }
.bottom-cta-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: white; margin-bottom: 10px; }
.bottom-cta-sub { font-size: 16px; color: rgba(255,255,255,0.55); margin-bottom: 26px; }
.bottom-cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== WORDPRESS CORE STYLES ===== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--grey-400); margin-top: 6px; text-align: center; }
.sticky { /* WordPress sticky post style */ }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .main-nav, .nav-actions .btn-secondary { display: none; }
  .categories-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-section { padding: 52px 24px 48px; }
  .trust-bar-inner { gap: 16px; }
  .trust-divider { display: none; }
  .score-grid { grid-template-columns: 1fr; }
  .cta-box-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .bottom-cta-actions { flex-direction: column; }
}
