/* ============================================================
   AI Tool Picks — Vercel / Apple Minimalist
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --bg: #FFFFFF;
  --text: #111111;
  --text2: #6B7280;
  --border: #E5E7EB;
  --card: #FFFFFF;
  --accent: #2563EB;
  --radius: 12px;
  --max: 1200px;
  --hdr: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Extended variables used in inline styles across pages */
  --color-bg-muted: #F9FAFB;
  --color-text-secondary: #6B7280;
  --color-border: #E5E7EB;
  --color-text-muted: #9CA3AF;
  --color-primary: #2563EB;
  --text-xl: 1.25rem;
  --text-lg: 1.125rem;
  --text-xs: 0.75rem;
  --radius-2xl: 16px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-xl: 24px;
  --space-2xl: 40px;
  --gradient-primary: linear-gradient(135deg, #2563EB, #7C3AED);
}

html.dark {
  --bg: #0A0A0A;
  --text: #EDEDED;
  --text2: #A0A0A0;
  --border: #222222;
  --card: #141414;
  --color-bg-muted: #111111;
  --color-text-secondary: #A0A0A0;
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background .25s, color .25s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hdr);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}
html.dark .site-header {
  background: rgba(10, 10, 10, .84);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: #111;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  flex-shrink: 0;
}
html.dark .brand-mark { background: #EDEDED; color: #0A0A0A; }

/* ---- Desktop Navigation ---- */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 999px;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-link:hover { background: #F3F4F6; color: #0F172A; text-decoration: none; }
.nav-link[aria-current="page"] { color: #0F172A; font-weight: 600; }
html.dark .nav-link { color: #A0A0A0; }
html.dark .nav-link:hover { color: #EDEDED; }
html.dark .nav-link[aria-current="page"] { color: #EDEDED; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* ---- Mobile Menu Button ---- */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.mobile-menu-btn:hover { background: #F3F4F6; }
.mobile-menu-btn svg { width: 20px; height: 20px; }

/* ---- Mobile Menu Overlay ---- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .36);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
html.dark .mobile-menu-overlay { background: rgba(0, 0, 0, .6); }
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

/* ---- Mobile Menu Drawer ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(340px, 85vw);
  z-index: 300;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .10);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  min-height: var(--hdr);
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover { background: #F3F4F6; }

/* ---- Mobile Nav ---- */
.mobile-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.mobile-nav-link:hover { background: #F3F4F6; text-decoration: none; }
html.dark .mobile-nav-link:hover { background: rgba(255, 255, 255, .08); }
.mobile-nav-link[aria-current="page"] {
  background: rgba(37, 99, 235, .10);
  color: var(--accent);
  font-weight: 600;
}
html.dark .mobile-nav-link[aria-current="page"] {
  background: rgba(59, 130, 246, .18);
}

/* ---- Mobile Drawer Footer ---- */
.mobile-drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 6px;
  padding-left: 4px;
}
html.dark .drawer-section-label { color: #6B7280; }

/* ---- Pill Switch (Language) ---- */
.pill-switch {
  display: inline-flex;
  background: #F3F4F6;
  border-radius: 999px;
  padding: 3px;
}
.pill-switch button {
  appearance: none;
  background: transparent;
  border: none;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font);
  color: #6B7280;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.pill-switch button.active,
.pill-switch button.on {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
html.dark .pill-switch { background: rgba(255, 255, 255, .10); }

/* ---- Theme Toggle Button ---- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: #F3F4F6;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  justify-content: center;
  transition: background .15s;
}
.theme-toggle-btn:hover { background: #E5E7EB; }
html.dark .theme-toggle-btn { background: rgba(255, 255, 255, .10); }
html.dark .theme-toggle-btn:hover { background: rgba(255, 255, 255, .16); }
.theme-toggle-btn svg { width: 16px; height: 16px; }

/* ---- Hero ---- */
.hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-title {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #111827;
}
html.dark .hero-title { color: #F9FAFB; }

.hero-subtitle {
  margin-top: 16px;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text2);
  line-height: 1.55;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: .85rem; color: var(--text2); margin-top: 2px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, transform .08s, box-shadow .15s;
  text-decoration: none;
  border: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #2563EB;
  color: #FFFFFF;
}
.btn-primary:hover { background: #1D4ED8; }

.btn-secondary {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}
.btn-secondary:hover { background: #E5E7EB; }
html.dark .btn-secondary {
  background: rgba(255, 255, 255, .08);
  color: #D1D5DB;
  border-color: #333;
}
html.dark .btn-secondary:hover { background: rgba(255, 255, 255, .14); }

/* ---- Disclosure Banner ---- */
.disclosure-banner {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text2);
  background: var(--bg);
  margin: 20px 0;
}
html.dark .disclosure-banner {
  color: #9CA3AF;
}

/* ---- Cards ---- */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform .12s, box-shadow .12s;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  text-decoration: none;
}

.card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
  overflow: hidden;
  position: relative;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.dark .card-image { background: rgba(255, 255, 255, .04); }

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

/* ---- Category Card ---- */
.category-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s, box-shadow .12s;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .07);
  text-decoration: none;
}

/* ---- Grids ---- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px 0 40px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  padding: 24px 0 40px;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Post Card ---- */
.post-card-badge { margin-bottom: 4px; }
.post-card-title { font-size: 1.1rem; line-height: 1.3; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-card-meta { font-size: .8rem; color: var(--text2); }
.post-card-excerpt { font-size: .9rem; color: var(--text2); line-height: 1.55; }
.post-card-link { font-weight: 600; font-size: .9rem; margin-top: auto; }

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: .75rem;
  font-weight: 600;
}
html.dark .badge { background: rgba(59, 130, 246, .18); color: #60A5FA; }

/* ---- Card Excerpt (generic) ---- */
.card-excerpt { font-size: .95rem; color: var(--text2); line-height: 1.55; flex: 1; }
.card-link { font-weight: 600; font-size: .9rem; margin-top: 4px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-desc { color: var(--text2); font-size: .9rem; line-height: 1.5; margin-top: 8px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: var(--text);
}

.footer-column h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text2);
}

.footer-social { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.footer-social a {
  color: var(--text);
  opacity: .85;
  transition: opacity .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover { opacity: 1; text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; }

/* ---- Newsletter ---- */
.newsletter-form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 28rem; margin: 0 auto; }
.newsletter-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #1F2937;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.newsletter-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.newsletter-btn {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .08s;
}
.newsletter-btn:hover { background: #1D4ED8; }
.newsletter-btn:active { transform: translateY(1px); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-4 { margin-top: 24px; }
.flex { display: flex; }
.gap-3 { gap: 12px; }
.gap-md { gap: 16px; }

/* ---- Tool Page Components ---- */
.tool-hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 28px;
  text-align: center;
}
.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.tool-hero .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: .9rem;
  color: var(--text2);
}
.tool-hero .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background .15s, transform .08s;
}
.cta-primary:hover { background: #1D4ED8; text-decoration: none; }
.cta-primary:active { transform: translateY(1px); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-top: 20px;
}
.grid-3 article.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .12s, box-shadow .12s;
}
.grid-3 article.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #EFF6FF;
  color: var(--accent);
  margin-bottom: 10px;
}
html.dark .card-icon { background: rgba(59,130,246,.18); color: #60A5FA; }

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding-top: 18px;
}
.pros-card, .cons-card {
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
}
.pros-card {
  background: #ECFDF5;
  border-color: #A7F3D0;
}
.pros-card h3 { color: #065F46; margin-bottom: 12px; font-size: 1rem; }
.pros-card li { color: #064E3B; font-size: .95rem; margin-bottom: 6px; }
.cons-card {
  background: #FEF2F2;
  border-color: #FECACA;
}
.cons-card h3 { color: #991B1B; margin-bottom: 12px; font-size: 1rem; }
.cons-card li { color: #7F1D1D; font-size: .95rem; margin-bottom: 6px; }
html.dark .pros-card { background: rgba(6,78,59,.25); border-color: #065F46; }
html.dark .pros-card h3, html.dark .pros-card li { color: #A7F3D0; }
html.dark .cons-card { background: rgba(127,29,29,.25); border-color: #991B1B; }
html.dark .cons-card h3, html.dark .cons-card li { color: #FECACA; }

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform .12s, box-shadow .12s;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,.12);
}
.pricing-name {
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text2);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.pricing-period {
  font-size: .85rem;
  color: var(--text2);
  margin: 6px 0 14px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  padding: 0;
  margin: 0 0 18px;
}
.pricing-features li {
  padding: 5px 0;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.popular-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.btn-secondary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: .9rem;
  transition: background .15s, transform .08s;
}
.btn-secondary:hover { background: #1D4ED8; text-decoration: none; }
html.dark .btn-secondary { background: #3B82F6; }
html.dark .btn-secondary:hover { background: #60A5FA; }

.section-subtitle {
  font-size: 1rem;
  color: var(--text2);
  margin: 4px 0 0;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Category page image fixes */
.category-grid .card-image img,
.category-grid.posts-grid article .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 8px 0 0;
    display: block;
}
.category-grid .card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.category-grid .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.category-grid .post-card-link {
    margin-top: auto;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  background: white;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.pagination {
  display: flex;
  gap: 0.25rem;
}
.page-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--color-border);
  background: white;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.page-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   Wirecutter / PCMag Comparison Table Components
   ============================================================ */
.atp-compare {
  margin: 36px 0 56px;
}
.atp-compare__section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.atp-compare__section-title:first-child {
  margin-top: 0;
}
.atp-compare__table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.atp-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 720px;
}
.atp-compare__row--header th {
  background: #F9FAFB;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
html.dark .atp-compare__row--header th {
  background: #111111;
  color: #EDEDED;
}
.atp-compare__row td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.atp-compare__row:last-child td {
  border-bottom: none;
}
.atp-compare__row--alt td {
  background: #F9FAFB;
}
html.dark .atp-compare__row--alt td {
  background: rgba(255,255,255,.03);
}
.atp-compare__label {
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}
.atp-compare__winner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.12);
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
html.dark .atp-compare__winner {
  background: rgba(16,185,129,.18);
  color: #A7F3D0;
  border-color: #065F46;
}
.atp-compare__value--win {
  color: #059669;
  font-weight: 700;
}
html.dark .atp-compare__value--win {
  color: #34D399;
}
.atp-compare__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 0.72rem;
  font-weight: 700;
}
html.dark .atp-compare__badge {
  background: rgba(59,130,246,.15);
  color: #60A5FA;
}

/* Quick specs */
.atp-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}
.atp-specs__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
}
.atp-specs__item dt {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text2);
  margin-bottom: 6px;
}
.atp-specs__item dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}
.atp-verdict {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111827;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.atp-verdict strong {
  font-weight: 800;
}
html.dark .atp-verdict {
  background: #F9FAFB;
  color: #0A0A0A;
}

/* Feature breakdown */
.atp-features {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  margin: 14px 0 28px;
}
.atp-features__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.atp-features__row:last-child {
  border-bottom: none;
}
.atp-features__cell {
  padding: 14px 16px;
}
.atp-features__cell--label {
  font-weight: 700;
  color: var(--text);
}
.atp-features__cell--rating {
  color: var(--text2);
  font-size: 0.95rem;
}
.atp-features__row--alt .atp-features__cell {
  background: #F9FAFB;
}
html.dark .atp-features__row--alt .atp-features__cell {
  background: rgba(255,255,255,.03);
}
.atp-features__header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text2);
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
}
html.dark .atp-features__header {
  background: #111111;
  color: #9CA3AF;
}

@media (max-width: 640px) {
  .atp-features__row {
    grid-template-columns: 1fr;
  }
  .atp-features__header {
    display: none;
  }
  .atp-features__cell {
    padding: 10px 12px;
  }
}
