/*
  Blank2Done v3.0 — Redesign
  Clean layout system, honest content, conversion-focused
  All language uses "researched/analyzed" — never "tested/purchased"
*/

/* ═══════════════════════════════════════════
   1. FOUNDATION
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Colors */
  --bg:          #f8fafc;
  --bg-white:    #ffffff;
  --bg-dark:     #0f172a;
  --text:        #334155;
  --text-dark:   #0f172a;
  --text-light:  #64748b;
  --primary:     #2563eb;
  --primary-dark:#1d4ed8;
  --primary-lt:  #eff6ff;
  --accent:      #f59e0b;
  --accent-lt:   #fffbeb;
  --success:     #10b981;
  --success-lt:  #ecfdf5;
  --danger:      #ef4444;
  --border:      #e2e8f0;

  /* Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;

  /* Shadows */
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout */
  --max-w:     1200px;
  --header-h:  64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   2. TYPOGRAPHY
   ═══════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; max-width: 75ch; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: .35rem; }

img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════
   3. LAYOUT UTILITIES
   ═══════════════════════════════════════════ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section      { padding: 4rem 0; }
.section-sm   { padding: 2.5rem 0; }
.section-alt  {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Grids */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3  { grid-template-columns: repeat(2, 1fr); }
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   4. SKIP LINK (accessibility)
   ═══════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--r-sm);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ═══════════════════════════════════════════
   5. COMPLIANCE BAR
   ═══════════════════════════════════════════ */

.compliance-bar {
  background: var(--accent-lt);
  color: #92400e;
  font-size: .78rem;
  padding: .45rem 0;
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid #fde68a;
}

/* ═══════════════════════════════════════════
   6. HEADER / NAVIGATION
   ═══════════════════════════════════════════ */

.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  margin-right: .35rem;
  vertical-align: middle;
}

.main-nav { display: flex; list-style: none; gap: .25rem; padding: 0; margin: 0; }
.main-nav a {
  display: block;
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}
.main-nav a:hover { background: var(--primary-lt); color: var(--primary); }
.main-nav a.active { background: var(--primary-lt); color: var(--primary); font-weight: 600; }

.search-box { display: flex; align-items: center; gap: .4rem; }
.search-box svg { width: 18px; height: 18px; color: var(--text-light); flex-shrink: 0; }
.search-box input {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .4rem .65rem;
  font-size: .85rem;
  width: 160px;
  background: var(--bg);
}
.search-box input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; color: var(--text); }
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-nav { display: none; background: var(--bg-white); border-bottom: 1px solid var(--border); padding: .75rem 1.5rem; }
.mobile-nav.open { display: flex; flex-wrap: wrap; gap: .5rem; }
.mobile-nav a { font-size: .85rem; font-weight: 500; color: var(--text); padding: .35rem .65rem; border-radius: var(--r-sm); }
.mobile-nav a:hover, .mobile-nav a.active { background: var(--primary-lt); color: var(--primary); }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-box { display: none; }
  .mobile-toggle { display: block; }
  .header-inner { gap: 1rem; }
}

/* ═══════════════════════════════════════════
   7. BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }

/* ═══════════════════════════════════════════
   8. HERO SECTION
   ═══════════════════════════════════════════ */

.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: #94a3b8; font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.trust-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}
.trust-label { font-size: .8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 600px) {
  .hero { padding: 3rem 0; }
  .trust-row { gap: 1.5rem; }
  .trust-value { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════
   9. SECTION HEADERS
   ═══════════════════════════════════════════ */

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { margin-bottom: .5rem; }
.section-header p { color: var(--text-light); margin: 0 auto; }

/* ═══════════════════════════════════════════
   10. PRODUCT CARDS
   ═══════════════════════════════════════════ */

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Card image area */
.card-img {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-lt), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-emoji { font-size: 3.5rem; line-height: 1; }

/* Award badge on card */
.badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: var(--r-sm);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-best  { background: #dbeafe; color: #1d4ed8; }
.badge-value { background: #d1fae5; color: #065f46; }
.badge-premium { background: #fef3c7; color: #92400e; }
.badge-alt   { background: #ede9fe; color: #5b21b6; }

/* Card body */
.card-body { padding: 1.25rem; flex: 1; }
.card-body h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.card-body h3 a { color: var(--text-dark); }
.card-body h3 a:hover { color: var(--primary); }

.card-body p { font-size: .9rem; color: var(--text-light); margin-bottom: .75rem; }

/* Specs list */
.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .75rem;
  margin-bottom: .75rem;
  padding: .75rem;
  background: var(--bg);
  border-radius: var(--r-sm);
  font-size: .82rem;
}
.specs dt { color: var(--text-light); font-weight: 500; }
.specs dd { color: var(--text-dark); font-weight: 600; text-align: right; }

/* Pros / Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .5rem;
}
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li {
  font-size: .78rem;
  padding: .2rem 0;
  padding-left: 1.1rem;
  position: relative;
  color: var(--text);
}
.pros-cons .pros li::before { content: "+"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pros-cons .cons li::before { content: "−"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.pros-cons .pros-label { font-size: .7rem; font-weight: 700; color: var(--success); text-transform: uppercase; margin-bottom: .25rem; }
.pros-cons .cons-label { font-size: .7rem; font-weight: 700; color: var(--danger); text-transform: uppercase; margin-bottom: .25rem; }

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--text-dark); }
.price del { color: var(--text-light); font-size: .85rem; margin-left: .35rem; font-weight: 400; }

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   11. CATEGORY CARDS (grid of links)
   ═══════════════════════════════════════════ */

.cat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.cat-card h3 { color: var(--text-dark); margin-bottom: .4rem; font-size: 1.05rem; }
.cat-card p { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ═══════════════════════════════════════════
   12. COMPARISON TABLE
   ═══════════════════════════════════════════ */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--bg-white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table th,
.compare-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--bg-dark);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.compare-table thead th.winner-col { background: var(--primary); }
.compare-table tbody tr:hover { background: var(--bg); }
.compare-table tbody tr:nth-child(even) { background: #f8fafc; }
.compare-table td:first-child,
.compare-table th:first-child { font-weight: 600; color: var(--text-dark); }
.compare-table .winner-cell { background: #eff6ff; font-weight: 600; }

/* ═══════════════════════════════════════════
   13. BLOG CARD
   ═══════════════════════════════════════════ */

.blog-card .card-img { height: 140px; }
.blog-meta {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: .5rem;
}
.blog-meta .tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .72rem;
  margin-right: .5rem;
}

/* ═══════════════════════════════════════════
   14. NEWSLETTER BOX
   ═══════════════════════════════════════════ */

.newsletter-box {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}
.newsletter-box h3 { color: #fff; margin-bottom: .5rem; }
.newsletter-box p { color: #94a3b8; margin: 0 auto 1.25rem; max-width: 500px; }

.newsletter-form {
  display: flex;
  gap: .5rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: .7rem 1rem;
  border: 2px solid #334155;
  border-radius: var(--r-sm);
  background: #1e293b;
  color: #fff;
  font-size: .9rem;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--primary); }
.newsletter-form input[type="email"]::placeholder { color: #64748b; }

/* ═══════════════════════════════════════════
   15. FOOTER
   ═══════════════════════════════════════════ */

footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: .75rem; font-size: .85rem; }

footer h4 {
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
footer a {
  display: block;
  color: #94a3b8;
  font-size: .85rem;
  padding: .2rem 0;
}
footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   16. BREADCRUMBS
   ═══════════════════════════════════════════ */

.breadcrumbs {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { padding: 0 .4rem; }

/* ═══════════════════════════════════════════
   17. META INFO BAR (above product grid)
   ═══════════════════════════════════════════ */

.meta-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  padding: .65rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════════
   18. SECTION CTA
   ═══════════════════════════════════════════ */

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════════════
   19. CONTENT PAGE (guides, articles)
   ═══════════════════════════════════════════ */

.article-header {
  padding: 3rem 0 1rem;
}
.article-meta {
  font-size: .85rem;
  color: var(--text-light);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.content h2 { margin-top: 2rem; }
.content h3 { margin-top: 1.5rem; }
.content ul li, .content ol li { margin-bottom: .4rem; }

/* ═══════════════════════════════════════════
   20. TRUST GRID (homepage)
   ═══════════════════════════════════════════ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.trust-grid .icon { font-size: 2.5rem; margin-bottom: .75rem; }
.trust-grid h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.trust-grid p { font-size: .9rem; color: var(--text-light); margin: 0 auto; }

@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   22. STAR RATINGS
   ═══════════════════════════════════════════ */

.stars {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-bottom: .4rem;
}
.stars .star {
  font-size: .85rem;
  color: #f59e0b;
  line-height: 1;
}
.stars .star.empty {
  color: #cbd5e1;
}
.stars .star.half {
  background: linear-gradient(90deg, #f59e0b 50%, #cbd5e1 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rating-text {
  font-size: .78rem;
  color: var(--text-light);
  margin-left: .35rem;
}
.rating-count {
  font-size: .72rem;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════
   23. AFFILIATE CTA BUTTON (orange)
   ═══════════════════════════════════════════ */

.btn-affiliate {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
.btn-affiliate:hover {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}

/* ═══════════════════════════════════════════
   24. BACK TO TOP BUTTON
   ═══════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s;
  z-index: 99;
  font-size: 1.2rem;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

/* ═══════════════════════════════════════════
   25. FAQ SECTION
   ═══════════════════════════════════════════ */

.faq-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-q {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover {
  color: var(--primary);
}
.faq-q .toggle {
  font-size: 1.2rem;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-q .toggle.open {
  transform: rotate(45deg);
}
.faq-a {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.7;
  display: none;
  padding-right: 2rem;
}
.faq-a.open {
  display: block;
}

/* ═══════════════════════════════════════════
   26. AD PLACEHOLDER (for AdSense units)
   ═══════════════════════════════════════════ */

.ad-unit {
  margin: 2rem 0;
  text-align: center;
}
.ad-unit-below-hero {
  margin: 0;
  padding: 1.5rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.ad-unit-in-feed {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--r-sm);
}
.ad-unit-between-sections {
  margin: 0;
  padding: 1.5rem 0;
}
.ad-label {
  font-size: .65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

/* ═══════════════════════════════════════════
   21. UTILITY CLASSES
   ═══════════════════════════════════════════ */

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
