/* ============================================================
   IRONVERDICT — Global Design System
   Version 2.0
   ============================================================ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── TOKENS ── */
:root {
  --accent:       #e8ff00;
  --accent-dark:  #b8cc00;
  --orange:       #ff6b2b;
  --green:        #4ade80;
  --red:          #f87171;
  --bg:           #0a0a0a;
  --surface:      #111111;
  --surface-2:    #1a1a1a;
  --border:       #222222;
  --border-2:     #2e2e2e;
  --text:         #f0f0f0;
  --text-2:       #c0c0c0;
  --muted:        #777777;
  --font-sans:    'Inter', sans-serif;
  --font-head:    'Barlow Condensed', sans-serif;
  --radius:       8px;
  --radius-lg:    14px;
  --max:          1100px;
  --shadow:       0 4px 32px rgba(0,0,0,.5);
  --glow:         0 0 24px rgba(232,255,0,.12);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { line-height: 1.15; }
.display {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.5px;
}

/* ── CONTAINER ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: var(--radius);
  cursor: pointer; border: none; transition: all .15s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ── AFFILIATE BUY BUTTON ── */
.buy-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #000;
  font-weight: 800; font-size: 14px;
  padding: 13px 20px; border-radius: var(--radius);
  transition: all .15s; width: 100%; text-align: center;
}
.buy-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--glow); }
.buy-btn.amazon::before { content: '🛒 '; }

/* ── BADGES — all derived from yellow accent for visual consistency ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 4px;
}
.badge-best    { background: var(--accent); color: #000; }
.badge-top     { background: rgba(232,255,0,.25); color: #c8cc00; border: 1px solid rgba(232,255,0,.4); }
.badge-value   { background: rgba(232,255,0,.15); color: var(--accent); border: 1px solid rgba(232,255,0,.3); }
.badge-cat     { background: rgba(232,255,0,.08); color: var(--accent); border: 1px solid rgba(232,255,0,.2); }
.badge-new     { background: rgba(232,255,0,.12); color: #d4e800; border: 1px solid rgba(232,255,0,.25); }

/* ── SCORE PILL ── */
.score-pill {
  display: inline-flex; flex-direction: column; align-items: center;
  background: rgba(232,255,0,.08); border: 1px solid rgba(232,255,0,.2);
  border-radius: var(--radius); padding: 8px 14px;
}
.score-num { font-family: var(--font-head); font-size: 36px; font-weight: 900; color: var(--accent); line-height: 1; }
.score-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* ── TRUST BULLETS ── */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.trust-item::before { content: '✓'; color: var(--accent); font-weight: 900; }

/* ── AFFILIATE DISCLOSURE BOX ── */
.disclosure-box {
  background: rgba(232,255,0,.04);
  border: 1px solid rgba(232,255,0,.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.disclosure-box strong { color: var(--accent); }

/* ── CTA BLOCK (mid-content) ── */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin: 32px 0;
}
.cta-block-text { font-weight: 700; font-size: 16px; }
.cta-block-sub  { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── PRODUCT CARD (grid) ── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.product-card:hover { border-color: rgba(232,255,0,.3); transform: translateY(-3px); }

.product-card-img {
  height: 180px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; position: relative; overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-name { font-size: 15px; font-weight: 800; line-height: 1.3; }
.product-card-price { font-size: 13px; color: var(--muted); }
.product-card-price strong { color: var(--text); font-size: 18px; }

.product-card-footer { padding: 14px 18px; border-top: 1px solid var(--border); }

/* ── PROS / CONS ── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros h4 { color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.cons h4 { color: var(--red);   font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.pros ul, .cons ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pros li { font-size: 13px; color: var(--text-2); }
.pros li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.cons li { font-size: 13px; color: var(--text-2); }
.cons li::before { content: '✗ '; color: var(--red); font-weight: 700; }

/* ── STAR RATING ── */
.stars { color: var(--accent); font-size: 13px; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; overflow: hidden; border-radius: var(--radius-lg); }
.compare-table th {
  background: var(--surface-2); padding: 12px 16px;
  text-align: left; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare-table tr:hover td { background: rgba(255,255,255,.02); }
.compare-table tr.top-pick td { background: rgba(232,255,0,.03); border-left: 2px solid var(--accent); }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  text-align: left; padding: 18px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { font-size: 20px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a { font-size: 15px; color: var(--muted); line-height: 1.75; padding-bottom: 18px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── EMAIL FORM ── */
.email-form { display: flex; gap: 8px; max-width: 440px; }
.email-input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 13px 18px;
  color: var(--text); font-family: var(--font-sans); font-size: 14px; outline: none;
  transition: border-color .15s;
}
.email-input:focus { border-color: var(--accent); }
.email-input::placeholder { color: var(--muted); }

/* ── CALCULATOR ── */
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.calc-input {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--text); font-family: var(--font-sans); font-size: 15px; outline: none;
  transition: border-color .15s; width: 100%;
}
.calc-input:focus { border-color: var(--accent); }
.calc-select {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--text); font-family: var(--font-sans); font-size: 15px; outline: none;
  width: 100%; cursor: pointer;
}
.calc-result {
  background: rgba(232,255,0,.06); border: 1px solid rgba(232,255,0,.2);
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
  display: none;
}
.calc-result.visible { display: block; }
.result-num { font-family: var(--font-head); font-size: 64px; font-weight: 900; color: var(--accent); line-height: 1; }
.result-unit { font-size: 18px; color: var(--muted); margin-top: 4px; }
.result-breakdown { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; }
.result-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; }
.result-item-num { font-family: var(--font-head); font-size: 24px; font-weight: 900; color: var(--accent); }
.result-item-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,10,10,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo { font-family: var(--font-head); font-size: 26px; font-weight: 900; }
.site-logo span { color: var(--accent); }

.nav-menu { display: flex; gap: 2px; list-style: none; }
.nav-menu a {
  display: block; padding: 6px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .15s; white-space: nowrap;
}
.nav-menu a:hover { color: var(--text); background: var(--surface); }
.nav-menu a.active { color: var(--accent); }

.nav-cta-btn {
  background: var(--accent); color: #000 !important;
  font-weight: 800 !important; padding: 7px 16px !important;
  border-radius: var(--radius);
}
.nav-cta-btn:hover { background: #fff !important; }

/* Mobile Nav */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: all .2s; }

.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 24px; flex-direction: column; gap: 8px; z-index: 199; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 16px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); transition: all .15s;
}
.mobile-menu a:hover { color: var(--accent); border-color: var(--accent); }
.mobile-menu a.active { color: var(--accent); background: rgba(232,255,0,.06); }

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}
.footer-wrap { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo { font-family: var(--font-head); font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-disc { font-size: 12px; color: var(--muted); max-width: 580px; line-height: 1.6; }

/* ── SECTION HEADERS ── */
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); }
.section-h2 { font-family: var(--font-head); font-size: clamp(28px,4vw,44px); font-weight: 900; text-transform: uppercase; }
.section-sub { font-size: 16px; color: var(--muted); margin-top: 8px; }

/* ── AFFILIATE DISCLOSURE BAR (FTC compliant) ── */
.affiliate-bar {
  background: rgba(232,255,0,.05);
  border-bottom: 1px solid rgba(232,255,0,.12);
  padding: 8px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.affiliate-bar a { color: var(--accent); text-decoration: underline; }
.affiliate-bar strong { color: var(--text-2); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: all .2s;
  z-index: 999;
}
.back-to-top:hover { background: #fff; transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* ── MOBILE IMPROVEMENTS ── */
.hamburger { padding: 8px; width: 44px; height: 44px; justify-content: center; align-items: center; }
.nav-menu a { min-height: 44px; display: flex; align-items: center; }
.buy-btn { min-height: 48px; }
.btn { min-height: 44px; }
.filter-btn { min-height: 44px; }
.mobile-menu a { min-height: 52px; display: flex; align-items: center; }

/* ── MOBILE STICKY CTA BAR ── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 198;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.mobile-cta-text { font-size: 13px; color: var(--text-2); font-weight: 600; }
.mobile-cta-text span { color: var(--accent); }
.mobile-cta-btn {
  background: var(--accent); color: #000;
  font-weight: 800; font-size: 14px;
  padding: 12px 20px; border-radius: var(--radius);
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ── TRUST SECTION ── */
.trust-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-card-icon { font-size: 32px; }
.trust-card-title { font-size: 17px; font-weight: 800; }
.trust-card-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── AUTHOR CARD ── */
.author-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.author-avatar-lg {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border: 2px solid var(--border-2);
}
.author-name { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.author-title { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.author-bio { font-size: 14px; color: var(--muted); line-height: 1.7; }
.author-creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.author-cred {
  font-size: 11px; font-weight: 700;
  background: rgba(232,255,0,.08); color: var(--accent);
  border: 1px solid rgba(232,255,0,.2);
  padding: 3px 10px; border-radius: 4px;
}

/* ── PERFORMANCE: reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .email-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .result-breakdown { grid-template-columns: 1fr 1fr; }
}


/* Topical authority additions */
.hub-hero { padding: 72px 24px 42px; }
.hub-hero h1 { font-family: var(--font-head); font-size: clamp(44px,7vw,82px); font-weight: 900; line-height: .95; text-transform: uppercase; margin: 10px 0 16px; }
.hub-hero p { color: var(--text-2); font-size: 18px; max-width: 760px; }
.hub-section { padding: 48px 24px; }
.hub-section h2 { font-family: var(--font-head); font-size: clamp(30px,4vw,48px); font-weight: 900; text-transform: uppercase; margin-bottom: 20px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.hub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 170px; transition: border-color .15s, transform .15s; }
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hub-card h3 { font-size: 18px; }
.hub-card p { color: var(--muted); font-size: 14px; }
.hub-card span { margin-top: auto; color: var(--accent); font-weight: 800; font-size: 13px; }
.hub-card-label, .section-eyebrow { color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.meta-row span { border: 1px solid var(--border); border-radius: 99px; padding: 5px 10px; background: var(--surface); }
.affiliate-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.affiliate-product-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 180px 1fr; min-height: 220px; }
.affiliate-product-image { background: var(--surface-2); display: flex; align-items: center; justify-content: center; padding: 16px; }
.affiliate-product-image img { width: 100%; height: 170px; object-fit: contain; }
.affiliate-product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.affiliate-note { color: var(--muted); font-size: 12px; }
.pros-cons.compact { gap: 10px; }
.pros-cons.compact li { font-size: 12px; }
.faq-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 12px; }
.reference-list { color: var(--text-2); padding-left: 22px; }
.reference-list li { margin-bottom: 8px; }
.calc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; }
.calculator-page { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .affiliate-products-grid, .calculator-page { grid-template-columns: 1fr; }
  .affiliate-product-block { grid-template-columns: 150px 1fr; }
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
  .affiliate-product-block { grid-template-columns: 1fr; }
  .hub-hero { padding-top: 46px; }
}
