/* ============================================
   AI TOOLS WEEKLY — MAIN STYLESHEET
   Fully Responsive | Dark Mode | CSS3
   ============================================ */

/* ── Variables ── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --accent: #10b981;
  --accent-dark: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 50px -10px rgba(99,102,241,.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --nav-h: 68px;
  --transition: all .2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --border: #334155;
  --border-light: #1e293b;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.4);
  --shadow-xl: 0 20px 50px -10px rgba(99,102,241,.2);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: var(--font); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn.sm { padding: 8px 16px; font-size: 0.875rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,.4);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background .3s;
}

[data-theme="dark"] .navbar {
  background: rgba(15,23,42,.9);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.brand-icon { font-size: 1.5rem; }
.brand-accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-links li a:hover {
  color: var(--primary);
  background: var(--border-light);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--border); transform: rotate(20deg); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(16,185,129,.1));
  color: var(--primary);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Search & Filter */
.search-filter-wrap { margin-bottom: 40px; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  max-width: 520px;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--primary); }

.search-icon { font-size: 1rem; color: var(--text-muted); margin-right: 10px; flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  padding: 14px 0;
  outline: none;
  font-family: var(--font);
}
.search-box input::placeholder { color: var(--text-light); }
.search-clear {
  background: none;
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 50%;
  display: none;
  transition: var(--transition);
}
.search-clear:hover { background: var(--border); color: var(--text); }
.search-clear.visible { display: block; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Blobs */
.hero-bg-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -200px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: -150px; left: -100px; }
.blob-3 { width: 300px; height: 300px; background: var(--warning); top: 50%; right: 20%; }

/* ── Ad Slots ── */
.ad-slot {
  position: relative;
  padding: 20px 0;
  text-align: center;
}
.ad-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: .03em;
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
}
.ad-square .ad-placeholder { min-height: 250px; max-width: 350px; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(16,185,129,.1));
  color: var(--primary);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ── Featured Card ── */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -10px rgba(99,102,241,.2); }

.featured-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.tool-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.tool-avatar.sm { width: 36px; height: 36px; font-size: 0.8rem; border-radius: 8px; }

.featured-meta { flex: 1; min-width: 200px; }
.featured-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.featured-tagline { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }

.featured-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
.stars-sm { color: #f59e0b; font-size: 0.85rem; letter-spacing: 1px; }
.rating-num { font-size: 1rem; font-weight: 700; color: var(--text); }
.review-count { color: var(--text-muted); font-size: 0.85rem; }

.featured-price-wrap { text-align: right; }
.price-tag {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 6px;
}
.price-note { color: var(--text-light); font-size: 0.78rem; }

.featured-body { padding: 32px; border-bottom: 1px solid var(--border-light); }
.featured-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; font-size: 0.95rem; }

/* Pros & Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.pros-cons.compact { margin-top: 20px; }
.pros, .cons { padding: 20px; border-radius: var(--radius-sm); }
.pros { background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.15); }
.cons { background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.15); }
.pros h4, .cons h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.pros h5, .cons h5 { font-size: 0.82rem; font-weight: 700; margin-bottom: 10px; }
.pros ul li, .cons ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}
.pros ul li:last-child, .cons ul li:last-child { border-bottom: none; }
.pros ul li::before { content: ""; }
.cons ul li::before { content: ""; }

.featured-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.featured-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  flex-wrap: wrap;
}
.featured-verdict { color: var(--text-muted); font-size: 0.9rem; margin-left: auto; }
.featured-verdict span { font-weight: 600; color: var(--text); }

/* ── Tags & Badges ── */
.tag {
  display: inline-block;
  background: rgba(99,102,241,.1);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tag.sm { padding: 2px 8px; font-size: 0.72rem; }

.badge-new {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-featured {
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: #fff;
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ── Comparison Table ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.9rem;
  min-width: 700px;
}
.compare-table thead tr {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
}
.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--bg-alt); }
.compare-table tbody tr:nth-child(even) { background: var(--border-light); }
.compare-table tbody tr:nth-child(even):hover { background: var(--bg-alt); }

[data-theme="dark"] .compare-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
[data-theme="dark"] .compare-table tbody tr:hover { background: rgba(99,102,241,.08); }

.tool-cell { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.tool-cell strong { font-weight: 600; }

td.yes { color: var(--accent); font-weight: 600; }
td.no { color: var(--danger); font-weight: 600; }

.table-link {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.table-link:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

/* ── Review Cards (Accordion) ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.review-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.review-card.hidden { display: none; }

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  transition: background .2s;
}
.review-header:hover { background: var(--border-light); }
.review-header:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.review-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.review-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-short { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }
.review-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.review-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.rating-badge {
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: #fff;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.price-badge {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}
.expand-icon {
  color: var(--text-light);
  font-size: 0.75rem;
  transition: transform .3s;
  display: block;
}

.review-card.open .expand-icon { transform: rotate(180deg); }
.review-card.open { border-color: var(--primary); box-shadow: var(--shadow-xl); }
.review-card.open .review-header { background: linear-gradient(135deg, rgba(99,102,241,.05), rgba(16,185,129,.03)); }

.review-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-light);
}
.review-card.open .review-body { display: block; }
.review-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; margin-top: 20px; margin-bottom: 4px; }

.verdict-box {
  background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(16,185,129,.04));
  border: 1px solid rgba(99,102,241,.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 16px 0;
  line-height: 1.6;
}
.verdict-box strong { color: var(--text); }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Guide Grid ── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}
.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.guide-icon { font-size: 2.5rem; margin-bottom: 16px; }
.guide-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.guide-card > p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }

.guide-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.rec-label { font-size: 0.78rem; color: var(--text-light); font-weight: 500; }
.rec-tool {
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}
.guide-rec.secondary .rec-label { font-size: 0.75rem; }
.guide-rec.secondary span:last-child { font-size: 0.8rem; color: var(--text-muted); }
.guide-why {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ── Newsletter ── */
.newsletter-section { background: var(--bg); }

.newsletter-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: linear-gradient(135deg, #1e1b4b, #1e3a5f, #0d1f0d);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.3), transparent 70%);
  pointer-events: none;
}
.newsletter-card::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,.2), transparent 70%);
  pointer-events: none;
}

.newsletter-left { position: relative; z-index: 1; }
.nl-badge {
  display: inline-block;
  background: rgba(99,102,241,.2);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--primary-light);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.newsletter-left h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}
.newsletter-left > p {
  color: rgba(255,255,255,.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.nl-perks { display: flex; flex-direction: column; gap: 8px; }
.nl-perks li { color: rgba(255,255,255,.8); font-size: 0.9rem; font-weight: 500; }

.newsletter-right { position: relative; z-index: 1; display: flex; align-items: center; }

.nl-form { width: 100%; }
.nl-label {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.nl-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.nl-input-wrap input {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color .2s;
  outline: none;
}
.nl-input-wrap input::placeholder { color: rgba(255,255,255,.4); }
.nl-input-wrap input:focus { border-color: var(--primary-light); }
.nl-legal { color: rgba(255,255,255,.4); font-size: 0.75rem; }

.nl-success { text-align: center; width: 100%; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.nl-success h3 { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.nl-success p { color: rgba(255,255,255,.7); font-size: 0.9rem; }

/* ── Footer ── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-brand > p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 14px; }
.footer-badge {
  display: inline-block;
  background: rgba(16,185,129,.1);
  color: var(--accent);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-links h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.footer-links li a:hover { color: var(--primary); transform: translateX(4px); display: inline-block; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-light); font-size: 0.8rem; }
.back-to-top {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.back-to-top:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

/* ── Scroll animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter-card { padding: 40px; gap: 32px; }
}

/* Tablet ≤ 768px */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 12px 16px; font-size: 1rem; }
  .hamburger { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .hero-stats { gap: 24px; }

  .reviews-grid { grid-template-columns: 1fr; }

  .pros-cons { grid-template-columns: 1fr; }

  .featured-top { flex-direction: column; gap: 16px; }
  .featured-price-wrap { text-align: left; }

  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .newsletter-card::before, .newsletter-card::after { display: none; }

  .guide-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }

  .section { padding: 56px 0; }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: clamp(1.5rem, 8vw, 2rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-stats { gap: 16px; }
  .stat strong { font-size: 1.3rem; }

  .featured-footer { flex-direction: column; align-items: flex-start; }
  .featured-verdict { margin-left: 0; }

  .review-header { padding: 16px; }
  .review-body { padding: 0 16px 20px; }

  .nl-input-wrap { flex-direction: column; }
  .nl-input-wrap .btn { width: 100%; justify-content: center; }

  .compare-table th, .compare-table td { padding: 12px 14px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding: 40px 0; }
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Focus styles ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Selection ── */
::selection { background: rgba(99,102,241,.2); color: var(--text); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
