/* PixelPilot - clean, fast, no external dependencies */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #1a1d23;
  --muted: #5b6472;
  --border: #e3e6eb;
  --accent: #15803d;
  --accent-dark: #166534;
  --radius: 10px;
  --maxw: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.tagline { font-size: 0.8rem; color: var(--muted); margin: 0; }
.nav { display: flex; gap: 1.1rem; font-size: 0.95rem; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.container.wide { max-width: 1080px; }

/* Hero */
.hero { text-align: center; padding: 3rem 1.25rem 2rem; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2.1rem; letter-spacing: -0.03em; margin: 0 0 0.5rem; line-height: 1.25; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0 auto; max-width: 560px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card:hover { border-color: var(--accent); }
.card .kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; }
.card h3 { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.card h3 a { color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .meta { font-size: 0.8rem; color: var(--muted); }
.featured { border: 2px solid var(--accent); background: #fff5f5; }
.section-title { font-size: 1.4rem; margin: 2.5rem 0 0.25rem; letter-spacing: -0.02em; }

/* Article */
.article-head .kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; }
.article-head h1 { font-size: 2rem; line-height: 1.3; letter-spacing: -0.02em; margin: 0.4rem 0 0.6rem; }
.byline { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; letter-spacing: -0.02em; }
.article-body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.2rem 0;
  padding: 0.4rem 0 0.4rem 1rem;
  color: var(--muted);
  font-style: italic;
}
.article-body code {
  background: var(--bg-soft);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
}
.article-body pre {
  background: #1a1d23;
  color: #e8eaf0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
}
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
.article-body th { background: var(--bg-soft); font-weight: 700; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Ad placeholders - replaced with real AdSense code after approval */
.ad-slot {
  margin: 2rem auto;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--bg-soft);
  max-width: 728px;
}

/* Related */
.related { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.related h2 { font-size: 1.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 3rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; font-size: 0.9rem; color: var(--muted); }
.footer-inner nav { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.6rem; }
  .article-head h1 { font-size: 1.55rem; }
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .nav { flex-wrap: wrap; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* Affiliate CTAs */
.affiliate-disclosure { font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 0.4rem 0.75rem; margin: 1.5rem 0; }
.affiliate-cta { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); padding: 1.25rem; margin: 1.5rem 0; }
.affiliate-cta-text { margin: 0 0 0.9rem; }
.affiliate-cta .btn { display: inline-block; padding: 0.6rem 1.4rem; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 700; }
.affiliate-cta .btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ---- sales funnel: pick cards, sticky buy bar, top picks ---- */
.btn { display: inline-block; padding: 0.65rem 1.5rem; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 700; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: .6rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; z-index: 50; box-shadow: 0 -2px 12px rgba(0,0,0,.08); }
.sticky-cta .btn { padding: .5rem 1.1rem; white-space: nowrap; }
body:has(.sticky-cta) { padding-bottom: 76px; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }

/* Table of contents */
.toc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.toc ul { margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.25rem 0; font-size: 0.95rem; }

/* Our picks */
.our-picks { margin: 1.5rem 0 2rem; }
.our-picks h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
.pick-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; margin-top: 1.1rem; }
.pick-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.pick-card:first-child { border: 2px solid var(--accent); }
.pick-card-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 800; }
.pick-media { margin: 0.7rem 0; }
.pick-media img { width: 100%; height: 150px; object-fit: contain; background: var(--bg-soft); border-radius: 8px; }
.pick-tile {
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-soft), #e9edf3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.pick-card-name { font-size: 1.2rem; font-weight: 800; margin: 0.2rem 0 0.4rem; letter-spacing: -0.01em; }
.score-badge { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.1rem 0 0.6rem; }
.score-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.score-value { font-size: 1.35rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.score-max { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.score-badge.small .score-value { font-size: 1.05rem; }
.pick-card-blurb { margin: 0 0 0.8rem; font-size: 0.95rem; color: var(--muted); }
.pick-fit { background: var(--bg-soft); border-radius: 8px; padding: 0.7rem 0.9rem; margin: 0 0 0.9rem; font-size: 0.88rem; }
.pick-fit p { margin: 0.25rem 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 0 0 1rem; font-size: 0.9rem; }
.pros-cons h4 { margin: 0 0 0.35rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pros h4 { color: #15803d; }
.cons h4 { color: #b91c1c; }
.pros-cons ul { margin: 0; padding-left: 1.15rem; }
.pros-cons li { margin-bottom: 0.3rem; }
.pick-cta { text-align: center; margin-top: auto; }
.pick-retailer { font-size: 0.82rem; color: var(--muted); margin: 0.35rem 0 0; text-align: center; }
.pick-band { font-size: 0.82rem; color: var(--muted); margin: 0.15rem 0 0; text-align: center; }

/* FAQ */
.faq { margin: 2.5rem 0; }
.faq h2 { font-size: 1.4rem; letter-spacing: -0.02em; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0.6rem 0; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq details p { margin: 0.6rem 0 0.2rem; color: var(--text); }

/* Comparison tables */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
.article-body .table-wrap table { margin: 0; border: none; display: table; width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.table-wrap thead th { position: sticky; top: 0; background: var(--bg-soft); z-index: 2; }
.table-wrap tbody tr:nth-child(even) { background: #fafbfc; }
.table-wrap th.winner-col, .table-wrap td.winner-col { background: #fff7ed; }
.table-wrap thead th.winner-col { background: #ffedd5; }

/* Homepage: category pills + top pick cards */
.home-pills { margin: 0.5rem 0; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.cat-pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.top-picks { margin: 2rem 0; }
.top-pick-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; margin-top: 1.1rem; }
.top-pick-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.top-pick-card:hover { border-color: var(--accent); }
.top-pick-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 800; }
.top-pick-name { font-weight: 800; font-size: 1.1rem; }
.top-pick-why { font-size: 0.9rem; color: var(--muted); margin: 0; flex: 1; }
.top-pick-card .btn { align-self: flex-start; margin-top: 0.4rem; }

/* --- CTA components --- */
.btn-small { padding: .45rem 1rem; font-size: .88rem; }
.hero .hero-cta { margin-top: 1.25rem; }
.price-row td { background: var(--bg-soft); text-align: center; vertical-align: middle; }
.price-row td:first-child { font-weight: 700; text-align: left; white-space: nowrap; }
.return-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); padding: 1.1rem 1.25rem; margin: 2.25rem 0 0; }
.return-box p { margin: 0; }
.footer-cta { flex: 1 1 100%; margin: 0; }

/* Featured image */
.featured-image { margin: 0 0 1.5rem; }
.featured-image img { width: 100%; height: auto; border-radius: var(--radius); }

/* --- Compare widget --- */
.compare-widget {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 1.5rem;
  margin: 2rem 0;
}
.compare-widget.compact { padding: 1.1rem; margin: 1.5rem 0; }
.widget-title { margin: 0 0 0.4rem; font-size: 1.35rem; }
.widget-sub { margin: 0 0 1.1rem; color: var(--muted); }
.widget-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.w-field { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.w-field select, .w-field input[type="range"] { width: 100%; }
.w-field select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}
.w-check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; }
.w-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.widget-results-title { font-size: 1.05rem; margin: 0 0 0.7rem; }
.widget-results { display: grid; gap: 0.7rem; }
.w-card {
  display: flex; gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  align-items: flex-start;
}
.w-card:hover { border-color: var(--accent); }
.w-rank {
  font-weight: 800; font-size: 1.1rem; color: var(--accent);
  min-width: 2rem; text-align: center;
}
.w-body { flex: 1; }
.w-name { margin: 0 0 0.2rem; font-size: 1.05rem; }
.w-bestfor, .w-elig { margin: 0.15rem 0; font-size: 0.88rem; color: var(--muted); }
.w-price { margin: 0.35rem 0 0.1rem; font-size: 1.25rem; font-weight: 800; }
.w-per { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.w-estnote { margin: 0 0 0.5rem; font-size: 0.78rem; color: var(--muted); font-style: italic; }
.w-cta { display: inline-block; margin-top: 0.2rem; }
.widget-disclaimer { font-size: 0.8rem; color: var(--muted); margin: 1rem 0 0; }
.widget-method { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.widget-method summary { cursor: pointer; font-weight: 600; }
.widget-baseline { font-style: italic; }

/* --- Featured carousel --- */
.featured-carousel { position: relative; margin: 2.5rem 0; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform 0.45s ease; }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-card { display: block; position: relative; color: #fff; }
.carousel-card img { width: 100%; height: 320px; object-fit: cover; display: block; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
}
.carousel-caption h3 { margin: 0 0 0.3rem; font-size: 1.25rem; color: #fff; }
.carousel-caption p { margin: 0; font-size: 0.92rem; color: rgba(255,255,255,0.88); }
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.92); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-prev { left: 0.7rem; }
.carousel-next { right: 0.7rem; }
.carousel-prev:hover, .carousel-next:hover { background: #fff; }
.carousel-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.8rem; }
.carousel-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: none; background: var(--border); cursor: pointer; padding: 0;
}
.carousel-dot.active { background: var(--accent); }
@media (max-width: 640px) {
  .carousel-card img { height: 230px; }
  .carousel-caption h3 { font-size: 1.05rem; }
  .compare-widget { padding: 1rem; }
}
