/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* === Header === */
.site-header {
  border-bottom: 2px solid #1a1a1a;
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}
.logo:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: #555; font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover { color: #1a1a1a; text-decoration: none; }
.nav-cta {
  background: #2563eb !important;
  color: #fff !important;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #1d4ed8 !important; }

/* === Hero (Redesigned for conversion) === */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
  line-height: 1.15;
}
.hero-sub {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-trust span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}
.hero-cta {
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  color: #1a1a1a;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}
.card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
  text-decoration: none;
  transform: translateY(-2px);
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.35; }
.card p { font-size: 0.88rem; color: #666; margin-bottom: 1rem; flex-grow: 1; }

/* Card badge */
.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.tool-badge {
  color: #059669;
  background: #ecfdf5;
}

/* Card CTA as button */
.card-cta-btn {
  display: block;
  text-align: center;
  background: #f8fafc;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: background 0.2s, border-color 0.2s;
}
.card:hover .card-cta-btn {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.tool-btn { color: #059669; }
.card-tool:hover .tool-btn {
  background: #059669;
  color: #fff;
  border-color: #059669;
}
.card-tool:hover { border-color: #059669; box-shadow: 0 4px 20px rgba(5,150,105,0.1); }

/* === Home Sections === */
.home-sections { padding: 3rem 0; }
.home-section { margin-bottom: 3.5rem; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}
.section-header h2 { font-size: 1.5rem; }
.view-all { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

/* === Trust / How We Pick Section === */
.trust-section {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.trust-section h2 { margin-bottom: 1.5rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.trust-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.trust-item p { font-size: 0.85rem; color: #666; }
.trust-icon {
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

/* === Cards with images === */
.card-with-img { padding: 0; overflow: hidden; }
.card-with-img .card-img {
  height: 160px;
  overflow: hidden;
}
.card-with-img .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card-with-img:hover .card-img img { transform: scale(1.05); }
.card-with-img .card-body { padding: 1.25rem; }
.card-with-img .card-body p { margin-bottom: 1rem; }

/* === Article === */
.article { padding: 2.5rem 0; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.article-meta { display: flex; gap: 1rem; color: #888; font-size: 0.85rem; margin-top: 0.75rem; flex-wrap: wrap; }
.article-meta a { color: #2563eb; }

/* === Social Proof Bar === */
.proof-bar {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.8rem;
  color: #059669;
  font-weight: 600;
  flex-wrap: wrap;
}
.proof-item::before {
  content: "\2713 ";
}

/* === Article Hero Image === */
.article-hero-img {
  margin-top: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  max-height: 350px;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Trust Box (bottom of articles) === */
.trust-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2.5rem 0 1.5rem;
}
.trust-box h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #166534;
}
.trust-box p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.trust-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #059669;
}

/* === Article Content === */
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; }
.article-content h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content strong { font-weight: 700; }
.article-content a { color: #2563eb; font-weight: 500; }
.article-content blockquote {
  border-left: 3px solid #2563eb;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: #f8fafc;
  color: #555;
}

/* === Affiliate links styled as buttons in articles === */
.article-content a[href*="amazon.com"] {
  display: inline-block;
  background: #f59e0b;
  color: #1a1a1a;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.article-content a[href*="amazon.com"]:hover {
  background: #d97706;
  text-decoration: none;
  color: #fff;
}

/* === Comparison Table === */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-content th {
  background: #1a1a1a;
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.article-content tr:hover td { background: #f8fafc; }

/* === CTA Button === */
.cta-button {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s;
}
.cta-button:hover { background: #1d4ed8; text-decoration: none; color: #fff; }

/* === TOC === */
.toc { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.toc h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.toc ul { margin-left: 1rem; font-size: 0.9rem; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: #555; }
.toc a:hover { color: #2563eb; }

/* === Tags === */
.article-tags { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.tag {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.4rem;
}
.tag:hover { background: #e0e0e0; text-decoration: none; }

/* === Footer === */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}
.affiliate-disclosure { font-size: 0.75rem; color: #aaa; margin-top: 0.5rem; }

/* === Responsive === */

/* Tablet */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .article-content table { font-size: 0.8rem; }
  .article-content th, .article-content td { padding: 0.5rem 0.6rem; }
}

/* Mobile */
@media (max-width: 640px) {
  /* --- Header: horizontal scroll nav --- */
  .site-header .container {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }
  .logo { flex-shrink: 0; margin-right: 1rem; }
  .site-header nav {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
  }
  .site-header nav a { font-size: 0.82rem; white-space: nowrap; }
  .nav-cta { padding: 0.3rem 0.7rem !important; font-size: 0.8rem !important; }

  /* --- Hero --- */
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.6rem; letter-spacing: -0.5px; }
  .hero-sub { font-size: 0.95rem; }
  .hero-trust { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; font-size: 0.75rem; }
  .hero-cta { font-size: 1rem; padding: 0.75rem 2rem; }

  /* --- Cards --- */
  .card-grid { grid-template-columns: 1fr; }
  .card-with-img .card-img { height: 140px; }

  /* --- Sections --- */
  .home-sections { padding: 2rem 0; }
  .home-section { margin-bottom: 2.5rem; }
  .section-header { flex-direction: row; justify-content: space-between; }
  .section-header h2 { font-size: 1.3rem; }

  /* --- Trust grid --- */
  .trust-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .trust-section { padding: 1.5rem 1rem; }

  /* --- Article --- */
  .article { padding: 1.5rem 0; }
  .article-header h1 { font-size: 1.5rem; }
  .article-meta { font-size: 0.78rem; gap: 0.5rem; }
  .proof-bar { font-size: 0.72rem; gap: 0.75rem; }

  /* --- Tables: horizontal scroll --- */
  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
  }
  .article-content th, .article-content td { padding: 0.5rem 0.6rem; min-width: 80px; }

  /* --- TOC --- */
  .toc { padding: 1rem; }
  .toc ul { font-size: 0.82rem; }

  /* --- Tool pages --- */
  .tool-container { margin: 1rem auto; }
  .tool-intro { font-size: 1rem; }
  .tool-stats { font-size: 0.75rem; gap: 0.75rem; }
  .tool-form { padding: 1.25rem; border-radius: 12px; }
  .toggle-group { flex-wrap: wrap; }
  .toggle-option { flex: 0 0 calc(50% - 0.25rem); }
  .toggle-option span { font-size: 0.82rem; padding: 0.5rem; }
  .tool-nav-grid { gap: 0.4rem; }
  .tool-nav-link { font-size: 0.75rem; padding: 0.35rem 0.7rem; }

  /* --- Share buttons --- */
  .share-buttons { flex-direction: column; }
  .share-btn { justify-content: center; }

  /* --- Deals page --- */
  .deals-hero { padding: 3rem 0 2.5rem; }
  .deals-hero h1 { font-size: 1.8rem; }
  .deals-sub { font-size: 0.95rem; }
  .input-group { flex-direction: column; border-radius: 10px; }
  .input-group input { border-radius: 10px 10px 0 0; }
  .deals-cta { border-radius: 0 0 10px 10px; }
  .preview-grid { grid-template-columns: 1fr; }
  .sample-email { font-size: 0.82rem; }

  /* --- Game page --- */
  .game-container { margin: 1rem auto; }
  .identity-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .identity-btn { padding: 0.9rem 0.5rem; }
  .id-emoji { font-size: 1.5rem; }
  .id-title { font-size: 0.85rem; }
  .chat-screen { height: calc(100vh - 200px); min-height: 450px; border-radius: 12px; }
  .chat-input-area textarea { font-size: 0.88rem; }
  .msg-bubble { font-size: 0.88rem; }
  .msg { max-width: 90%; }
  .conviction-bar { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
  .result-score-big { font-size: 3rem; }

  /* --- Product Finder --- */
  .finder-options { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .finder-option { padding: 0.75rem; font-size: 0.9rem; }
  .step-indicator span { width: 28px; height: 28px; font-size: 0.75rem; }
  .email-gate-card { padding: 1.5rem 1rem; }

  /* --- Footer --- */
  .site-footer { padding: 1.5rem 0; }
  .affiliate-disclosure { font-size: 0.7rem; }
}

/* === Homepage expansion === */
.home-hero { position: relative; overflow: hidden; }
.home-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 420px;
  background: radial-gradient(circle at 50% 30%, rgba(37,99,235,.35), transparent 58%);
  pointer-events: none;
}
.home-hero .container { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block;
  color: #bfdbfe;
  background: rgba(37,99,235,.16);
  border: 1px solid rgba(147,197,253,.28);
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 1rem;
}
.home-hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
.home-stats { color: #cbd5e1; gap: 1.25rem; flex-wrap: wrap; }
.hero-actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.secondary-cta { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.secondary-cta:hover { background: rgba(255,255,255,.16); }
.eyebrow { color: #2563eb; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.answer-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 3rem;
}
.answer-box h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.answer-box p:last-child { color: #475569; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  color: #111827;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 40px rgba(15,23,42,.12); }
.feature-card-blue { background: linear-gradient(135deg,#eff6ff 0%,#fff 62%); }
.feature-card-purple { background: linear-gradient(135deg,#f5f3ff 0%,#fff 62%); border-color: #ddd6fe; }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1.35rem; margin: .2rem 0 .65rem; letter-spacing: -.02em; }
.feature-card p { color: #475569; flex-grow: 1; margin-bottom: 1rem; }
.purple-badge { color: #7c3aed; background: #f3e8ff; }
.purple-btn { color: #7c3aed; }
.feature-card-purple:hover .purple-btn { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hub-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.15rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hub-card:hover { text-decoration: none; border-color: #2563eb; box-shadow: 0 8px 28px rgba(37,99,235,.09); transform: translateY(-2px); }
.hub-card span { font-size: 1.55rem; display: inline-block; margin-bottom: .55rem; }
.hub-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.hub-card p { color: #64748b; font-size: .86rem; line-height: 1.55; }
.security-callout {
  display: grid;
  grid-template-columns: 1.7fr .8fr;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(135deg,#111827 0%,#1e293b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem;
}
.security-callout .eyebrow { color: #93c5fd; }
.security-callout h2 { margin-bottom: .5rem; }
.security-callout p { color: #cbd5e1; }
.callout-links { display: flex; flex-direction: column; gap: .65rem; }
.mini-link { display: block; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); color: #fff; padding: .7rem .9rem; border-radius: 10px; font-weight: 700; }
.mini-link:hover { background: rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.home-faq { border-top: 1px solid #e5e7eb; padding-top: 2rem; }
.home-faq h2 { margin-bottom: 1rem; }
.home-faq details { border: 1px solid #e5e7eb; border-radius: 10px; padding: .85rem 1rem; margin-bottom: .6rem; }
.home-faq summary { cursor: pointer; font-weight: 700; }
.home-faq p { color: #555; margin-top: .5rem; }
@media (max-width: 768px) {
  .feature-grid, .hub-grid, .security-callout { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
}
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .cta-button { text-align: center; }
  .answer-box, .feature-card, .security-callout { border-radius: 14px; padding: 1.15rem; }
}
