/*
Theme Name:   Best Cordless Vacuums Child
Theme URI:    https://bestcordlessvacuumcleaners.com/
Description:  Astra child theme for Best Cordless Vacuum Cleaners
Author:       Best Cordless Vacuum Cleaners
Author URI:   https://bestcordlessvacuumcleaners.com/
Template:     astra
Version:      1.0.0
Text Domain:  bcvc-child
*/

/* ════════════════════════════════════════════════════
   BRAND DESIGN SYSTEM
   Best Cordless Vacuum Cleaners
   Palette: Slate ink · Electric Blue · Warm Paper
   Type:    Playfair Display + DM Sans + DM Mono
   ════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=DM+Mono:wght@400&display=swap');

/* ── Design tokens ── */
:root {
  --ink:          #0c0c0e;
  --ink-2:        #3a3a3e;
  --ink-3:        #78787e;
  --ink-4:        #adadb3;
  --paper:        #f8f7f4;
  --surface:      #ffffff;
  --rule:         #e8e6e1;
  --rule-soft:    #f2f0ec;

  --blue:         #0062f5;
  --blue-dark:    #0048b8;
  --blue-soft:    #e6effe;
  --blue-mid:     #4d94ff;

  --green:        #009e72;
  --green-soft:   #e5f6f0;
  --amber:        #f59e0b;
  --amber-soft:   #fef3c7;
  --amber-text:   #92700a;
  --violet:       #7c3aed;
  --violet-soft:  #f3e8ff;
  --red:          #dc2626;
  --red-soft:     #fee2e2;

  --ff-display:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:      'DM Sans', system-ui, -apple-system, sans-serif;
  --ff-mono:      'DM Mono', 'Courier New', monospace;

  --space-xs:     4px;
  --space-sm:     8px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     40px;
  --space-2xl:    64px;

  --max-width:    1200px;
  --content-w:    820px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);

  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration:     180ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ── Override Astra defaults ── */
.ast-container { max-width: var(--max-width) !important; padding: 0 var(--space-lg) !important; }

/* Hide ALL Astra header and footer elements — our templates replace them */
#masthead,
.ast-above-header-wrap,
.ast-below-header-wrap,
.main-header-bar,
.main-header-bar-wrap,
.ast-primary-header-bar,
.ast-search-icon,
.ast-search-menu-icon,
.ast-header-search-wrap,
.ast-masthead-custom-menu-items button,
#colophon,
.ast-footer-overlay,
.footer-widget-area,
.ast-small-footer,
.ast-small-footer-wrap { display: none !important; }

/* Ensure our custom header + footer always show */
header.site-header { display: block !important; }
footer.site-footer  { display: block !important; }

/* Body background — warm paper, not stark white */
body,
body.astra-1-0-0,
#page,
.ast-separate-container { background: var(--paper) !important; }

/* Remove Astra content padding/shadow */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-inner-content,
.post-page-numbers { background: transparent; box-shadow: none; padding: 0; }
.entry-content { max-width: 100%; }

/* Remove Astra's generic page title — we output our own */
.ast-page-title-wrap,
.ast-archive-description { display: none; }

/* ════════════════════════════════════
   GLOBAL UTILITY
════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow { max-width: var(--content-w); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 9999;
  background: var(--blue); color: #fff; padding: 8px 16px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ════════════════════════════════════
   ANNOUNCEMENT BAR
════════════════════════════════════ */
.site-announcement {
  background: var(--ink);
  padding: 9px var(--space-lg);
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.site-announcement strong { color: var(--amber); font-weight: 500; }
.site-announcement a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  margin-left: 4px;
  transition: text-decoration-color var(--duration);
}
.site-announcement a:hover { text-decoration-color: rgba(255,255,255,0.8); }
.site-announcement__close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 18px; line-height: 1; padding: 4px; cursor: pointer;
  transition: color var(--duration);
}
.site-announcement__close:hover { color: rgba(255,255,255,0.8); }

/* ════════════════════════════════════
   SITE HEADER / NAV
════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--duration) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.site-header__inner {
  display: flex;
  align-items: center;
  height: 58px;
  gap: var(--space-lg);
}

/* Logo — editorial wordmark */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity var(--duration);
}
.site-logo:hover { opacity: 0.82; }
.site-logo svg text { transition: fill var(--duration); }

/* Keep legacy classes harmless if referenced elsewhere */
.site-logo__mark,
.site-logo__text,
.site-logo__name,
.site-logo__tagline { display: none; }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-left: auto;
}
.primary-nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 58px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  transition: color var(--duration), border-color var(--duration);
  white-space: nowrap;
  text-decoration: none;
}
.primary-nav__link svg { width: 14px; height: 14px; flex-shrink: 0; }
.primary-nav__link:hover { color: var(--ink); }
.primary-nav__link.current-menu-item,
.primary-nav__link.current_page_item,
.primary-nav__link.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 500;
}
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-size: 9px; font-weight: 500;
  width: 16px; height: 16px;
  border-radius: 50%;
}

/* Search */
.nav-search-wrap { position: relative; flex-shrink: 0; }
.nav-search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--ink-4); pointer-events: none;
}
.nav-search {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 20px;
  padding: 8px 14px 8px 34px; font-family: var(--ff-body); font-size: 13px;
  color: var(--ink); width: 170px; outline: none;
  transition: width 0.3s var(--ease), border-color var(--duration), background var(--duration);
}
.nav-search::placeholder { color: var(--ink-4); }
.nav-search:focus { width: 220px; border-color: var(--blue); background: var(--surface); }

/* Hamburger */
.nav-hamburger {
  display: none; background: none;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 7px; color: var(--ink-2); margin-left: auto;
  transition: border-color var(--duration);
}
.nav-hamburger:hover { border-color: var(--ink-3); }
.nav-hamburger svg { width: 18px; height: 18px; display: block; }

/* Mobile drawer */
.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 300;
}
.nav-drawer__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
}
.nav-drawer__panel {
  position: absolute; top: 0; right: 0; width: 280px; height: 100%;
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
.nav-drawer.is-open { display: block; }
.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }
.nav-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--rule);
}
.nav-drawer__title { font-family: var(--ff-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.nav-drawer__close {
  background: none; border: none; color: var(--ink-3); padding: 4px; cursor: pointer;
}
.nav-drawer__close svg { width: 20px; height: 20px; display: block; }
.nav-drawer__links { padding: 8px 0; flex: 1; }
.nav-drawer__link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--rule-soft); text-decoration: none;
  transition: color var(--duration), background var(--duration);
}
.nav-drawer__link svg { width: 16px; height: 16px; color: var(--ink-4); }
.nav-drawer__link:hover { color: var(--blue); background: var(--blue-soft); }
.nav-drawer__link.is-active { color: var(--blue); font-weight: 500; }
.nav-drawer__footer { padding: 20px; border-top: 1px solid var(--rule); }

/* ════════════════════════════════════
   BUTTONS — GLOBAL
════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--radius-sm); font-family: var(--ff-body);
  font-size: 13.5px; font-weight: 500; padding: 11px 22px;
  border: 1px solid transparent; white-space: nowrap; text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration),
              background var(--duration), border-color var(--duration), color var(--duration);
  cursor: pointer; line-height: 1.2;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary  { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover  { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 6px 20px rgba(0,98,245,0.25); }
.btn--outline  { background: transparent; color: var(--ink-2); border-color: var(--rule); }
.btn--outline:hover  { border-color: var(--ink-3); color: var(--ink); }
.btn--amazon   { background: var(--amber); color: #5c3700; border-color: var(--amber); }
.btn--amazon:hover   { background: #e08d00; border-color: #e08d00; box-shadow: 0 4px 14px rgba(245,158,11,0.3); }
.btn--ghost-dark { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.12); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn--green    { background: #0a5c44; color: #fff; border-color: #0a5c44; }
.btn--green:hover    { background: #0d7055; }

.btn--sm   { padding: 8px 16px; font-size: 12.5px; }
.btn--lg   { padding: 13px 28px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

/* ════════════════════════════════════
   CHIP / TAG LABELS
════════════════════════════════════ */
.chip {
  display: inline-block; font-size: 10.5px; font-weight: 500;
  padding: 2px 9px; border-radius: 4px;
}
.chip--blue   { background: var(--blue-soft);   color: var(--blue);      }
.chip--green  { background: var(--green-soft);  color: var(--green);     }
.chip--amber  { background: var(--amber-soft);  color: var(--amber-text);}
.chip--violet { background: var(--violet-soft); color: var(--violet);    }
.chip--red    { background: var(--red-soft);    color: var(--red);       }

/* ════════════════════════════════════
   SECTION LAYOUT HELPERS
════════════════════════════════════ */
.section { padding: var(--space-xl) 0; }
.section--tight { padding: var(--space-lg) 0; }
.section--flush-top { padding-top: 0; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-md); padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--rule); margin-bottom: var(--space-md);
}
.section__title {
  font-family: var(--ff-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.5px; color: var(--ink);
}
.section__sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.section__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--blue); text-decoration: none; white-space: nowrap;
  transition: gap var(--duration);
}
.section__link svg { width: 13px; height: 13px; }
.section__link:hover { gap: 8px; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.eyebrow__line { width: 22px; height: 1px; background: var(--blue); flex-shrink: 0; }

/* ════════════════════════════════════
   HOMEPAGE — HERO
════════════════════════════════════ */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-2xl) 0 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
  padding-bottom: var(--space-xl);
}
.hero__h1 {
  font-family: var(--ff-display); font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700; line-height: 1.1; letter-spacing: -1.5px;
  color: var(--ink); margin-bottom: 18px;
}
.hero__h1 em { font-style: italic; color: var(--blue); }
.hero__lead {
  font-size: 15.5px; font-weight: 300; color: var(--ink-2);
  line-height: 1.8; max-width: 460px; margin-bottom: 28px;
}
.hero__trust-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
}
.trust-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 20px;
  padding: 5px 12px 5px 8px; font-size: 12px; color: var(--ink-2);
}
.trust-badge__icon {
  width: 22px; height: 22px; background: var(--blue-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-badge__icon svg { width: 12px; height: 12px; color: var(--blue); }
.hero__cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Stat cards */
.hero__stats { display: flex; flex-direction: column; gap: var(--space-md); }
.stat-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
}
.stat-card__icon {
  width: 44px; height: 44px; background: var(--blue-soft); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card__icon svg { width: 20px; height: 20px; color: var(--blue); }
.stat-card__num {
  font-family: var(--ff-display); font-size: 26px; font-weight: 700;
  color: var(--ink); line-height: 1; letter-spacing: -1px;
}
.stat-card__label { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* Trust strip */
.hero__strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); margin: 0 calc(-1 * var(--space-lg));
}
.strip-item {
  padding: 18px var(--space-lg); border-right: 1px solid var(--rule);
  display: flex; align-items: center; gap: 12px;
}
.strip-item:last-child { border-right: none; }
.strip-item__icon {
  width: 36px; height: 36px; background: var(--blue-soft); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.strip-item__icon svg { width: 16px; height: 16px; color: var(--blue); }
.strip-item__text strong { font-size: 13px; font-weight: 500; display: block; }
.strip-item__text span  { font-size: 11.5px; color: var(--ink-3); }

/* ════════════════════════════════════
   EDITOR'S CHOICE BLOCK
════════════════════════════════════ */
.editors-choice { padding: var(--space-xl) 0; }
.ec {
  background: var(--ink); border-radius: var(--radius-xl);
  padding: 32px; position: relative; overflow: hidden;
}
.ec__bg-text {
  position: absolute; right: -10px; top: -20px;
  font-family: var(--ff-display); font-size: 160px; font-weight: 700;
  color: rgba(255,255,255,0.04); line-height: 1; letter-spacing: -6px;
  user-select: none; pointer-events: none;
}
.ec__layout { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xl); align-items: start; }
.ec__eyebrow {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber);
}
.ec__pulse {
  width: 7px; height: 7px; background: var(--amber); border-radius: 50%;
  animation: ec-pulse 2.2s ease-in-out infinite;
}
@keyframes ec-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(.75)} }
.ec__title {
  font-family: var(--ff-display); font-size: clamp(19px, 3vw, 26px); font-weight: 700;
  color: #fff; letter-spacing: -0.5px; margin-bottom: 5px; line-height: 1.2;
}
.ec__sub { font-size: 13.5px; color: rgba(255,255,255,.45); font-weight: 300; margin-bottom: 22px; }
.ec__scores { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 20px; }
.ec__score {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md); padding: 14px; text-align: center;
  transition: background var(--duration);
}
.ec__score:hover { background: rgba(255,255,255,.10); }
.ec__score-val { font-family: var(--ff-mono); font-size: 24px; color: #fff; line-height: 1; }
.ec__score-key { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 5px; letter-spacing: .5px; }
.ec__bar-wrap { margin-bottom: 22px; }
.ec__bar-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.3); margin-bottom: 7px; }
.ec__bar-track { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.ec__bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue) 0%, #38b6ff 100%); border-radius: 2px; transition: width 1.3s var(--ease); }
.ec__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ec__badge-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; min-width: 130px;
}
.ec__award { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ec__award-icon {
  width: 64px; height: 64px; background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ec__award-icon svg { width: 28px; height: 28px; color: var(--amber); }
.ec__award-label { font-size: 10.5px; font-family: var(--ff-mono); color: var(--amber); letter-spacing: 1px; text-transform: uppercase; }
.ec__award-year { font-size: 11px; color: rgba(255,255,255,.3); }
.ec__test-date {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 4px 12px; font-size: 11px; color: rgba(255,255,255,.35); white-space: nowrap;
}

/* ════════════════════════════════════
   FILTER PILLS
════════════════════════════════════ */
.filters { padding: var(--space-md) 0 var(--space-xs); }
.filters__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-4); margin-bottom: 10px; }
.filters__scroll {
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.filters__scroll::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 20px;
  padding: 7px 14px; font-size: 13px; color: var(--ink-2); white-space: nowrap;
  cursor: pointer; flex-shrink: 0; user-select: none;
  transition: all var(--duration) var(--ease); text-decoration: none;
}
.pill svg { width: 13px; height: 13px; color: var(--ink-4); transition: color var(--duration); flex-shrink: 0; }
.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill.is-active, .pill:focus.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.is-active svg { color: rgba(255,255,255,.7); }

/* ════════════════════════════════════
   RANK CARDS
════════════════════════════════════ */
.rank-list-wrap { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.rank-divider { height: 1px; background: var(--rule-soft); }
.rank-card {
  background: var(--surface); padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; position: relative;
  transition: background var(--duration); text-decoration: none; color: inherit;
}
.rank-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 3px 0 0 3px; background: transparent; transition: background var(--duration);
}
.rank-card:hover { background: #fafaf8; }
.rank-card:hover::before { background: var(--blue); }
.rank-card:hover .rank-card__arrow { opacity: 1; transform: translateX(0); }
.rank-card__num {
  font-family: var(--ff-display); font-size: 24px; font-weight: 700;
  min-width: 30px; text-align: center; color: #ddd; line-height: 1; flex-shrink: 0;
}
.rank-card__num--top { color: var(--blue); }
.rank-card__img {
  width: 60px; height: 60px; border-radius: var(--radius-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rank-card__img img { width: 100%; height: 100%; object-fit: contain; }
.rank-card__img svg { width: 34px; height: 34px; }
.rank-card__body { flex: 1; min-width: 0; }
.rank-card__brand { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); margin-bottom: 2px; }
.rank-card__name { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.score-bar-row { display: flex; align-items: center; gap: 8px; }
.score-bar-track { flex: 0 0 90px; height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 2px; width: 0; transition: width 1.1s var(--ease); }
.score-bar-fill--blue   { background: var(--blue); }
.score-bar-fill--green  { background: var(--green); }
.score-bar-fill--amber  { background: var(--amber); }
.score-bar-fill--violet { background: var(--violet); }
.score-bar-label { font-size: 11px; color: var(--ink-3); }
.rank-card__right { text-align: right; flex-shrink: 0; margin-left: auto; }
.rank-card__score { font-family: var(--ff-mono); font-size: 22px; color: var(--ink); line-height: 1; }
.rank-card__score-sub { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-4); margin-top: 2px; }
.rank-card__price { font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-top: 8px; }
.rank-card__arrow {
  width: 18px; height: 18px; margin-left: 8px; color: var(--blue);
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--duration), transform var(--duration); flex-shrink: 0;
}

/* ════════════════════════════════════
   QUIZ BLOCK
════════════════════════════════════ */
.quiz { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.quiz__head {
  background: var(--blue); padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
}
.quiz__head-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quiz__head-icon svg { width: 22px; height: 22px; color: #fff; }
.quiz__head-title { font-family: var(--ff-display); font-size: 18px; color: #fff; margin-bottom: 3px; }
.quiz__head-sub { font-size: 12.5px; color: rgba(255,255,255,.6); font-weight: 300; }
.quiz__body { padding: 22px 24px; }
.quiz__progress { display: flex; gap: 5px; margin-bottom: 18px; }
.quiz__pip { flex: 1; height: 3px; background: var(--rule); border-radius: 2px; transition: background 0.3s; }
.quiz__pip.is-done { background: var(--blue); }
.quiz__question { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 16px; line-height: 1.5; }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.quiz__opt {
  border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 14px 12px;
  font-size: 13px; cursor: pointer; transition: all var(--duration) var(--ease);
  text-align: center; color: var(--ink-2); display: flex; flex-direction: column;
  align-items: center; gap: 7px; background: var(--surface); user-select: none;
}
.quiz__opt svg { width: 22px; height: 22px; color: var(--ink-3); transition: color var(--duration); }
.quiz__opt:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.quiz__opt:hover svg { color: var(--blue); }
.quiz__opt.is-selected { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); font-weight: 500; }
.quiz__opt.is-selected svg { color: var(--blue); }
.quiz__footer { font-size: 11px; color: var(--ink-4); text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; }
.quiz__footer svg { width: 12px; height: 12px; }

/* ════════════════════════════════════
   ARTICLE CARDS
════════════════════════════════════ */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }
.article-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color var(--duration);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.article-card__thumb {
  height: 140px; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.article-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.article-card:hover .article-card__thumb img { transform: scale(1.04); }
.article-card__thumb svg { width: 40px; height: 40px; color: var(--ink-4); }
.article-card__type {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(12,12,14,.72); color: rgba(255,255,255,.88);
  font-size: 10px; padding: 3px 8px; border-radius: 4px; letter-spacing: .4px;
}
.article-card__body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.article-card__tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .9px; font-weight: 500; color: var(--blue); margin-bottom: 6px; }
.article-card__title { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.45; margin-bottom: 10px; flex: 1; }
.article-card__meta { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.article-card__meta-dot { width: 3px; height: 3px; background: var(--ink-4); border-radius: 50%; flex-shrink: 0; }

/* ════════════════════════════════════
   EMAIL CAPTURE
════════════════════════════════════ */
.email-capture {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-xl); padding: 36px 32px;
  text-align: center; position: relative; overflow: hidden;
}
.email-capture::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid), var(--blue));
  background-size: 200% 100%; animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer { 0%{background-position:200%} 100%{background-position:-200%} }
.email-capture__icon {
  width: 52px; height: 52px; background: var(--blue-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.email-capture__icon svg { width: 24px; height: 24px; color: var(--blue); }
.email-capture__title { font-family: var(--ff-display); font-size: 22px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 8px; }
.email-capture__sub { font-size: 14px; color: var(--ink-3); font-weight: 300; line-height: 1.75; max-width: 380px; margin: 0 auto 20px; }
.email-capture__features { display: flex; justify-content: center; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.email-feature { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.email-feature svg { width: 14px; height: 14px; color: var(--green); }
.email-capture__form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.email-input {
  flex: 1; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 11px 14px; font-family: var(--ff-body); font-size: 13.5px;
  color: var(--ink); background: var(--paper); outline: none;
  transition: border-color var(--duration), background var(--duration);
}
.email-input::placeholder { color: var(--ink-4); }
.email-input:focus { border-color: var(--blue); background: var(--surface); }
.email-legal { font-size: 10.5px; color: var(--ink-4); margin-top: 10px; }

/* ════════════════════════════════════
   CROSS-PROMO
════════════════════════════════════ */
.xpromo {
  border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px 22px;
  display: flex; align-items: center; gap: 16px; background: var(--surface);
  text-decoration: none; color: inherit;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.xpromo:hover { border-color: #0a5c44; box-shadow: 0 2px 18px rgba(10,92,68,.10); }
.xpromo__logo {
  width: 44px; height: 44px; background: #0a5c44; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.xpromo__logo svg { width: 22px; height: 22px; color: #fff; }
.xpromo__body { flex: 1; min-width: 0; }
.xpromo__body h3 { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.xpromo__body p  { font-size: 12px; color: var(--ink-3); }
.xpromo__cta {
  font-size: 13px; font-weight: 500; color: #fff; background: #0a5c44;
  padding: 9px 16px; border-radius: var(--radius-sm); white-space: nowrap; flex-shrink: 0;
  transition: background var(--duration);
}
.xpromo:hover .xpromo__cta { background: #0d7055; }

/* ════════════════════════════════════
   SITE FOOTER
════════════════════════════════════ */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.55);
  padding: var(--space-2xl) 0 var(--space-xl); margin-top: var(--space-xl);
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl); margin-bottom: var(--space-xl);
}
.site-footer__brand-name { font-family: var(--ff-display); font-size: 16px; color: #fff; margin-bottom: 8px; }
.site-footer__brand-desc { font-size: 13px; line-height: 1.75; max-width: 260px; }
.site-footer__col-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,.35); margin-bottom: 14px;
}
.site-footer__links { display: flex; flex-direction: column; gap: 9px; }
.site-footer__link {
  font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none;
  transition: color var(--duration);
}
.site-footer__link:hover { color: rgba(255,255,255,.9); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: var(--space-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); flex-wrap: wrap;
}
.site-footer__copy { font-size: 12px; }
.site-footer__affiliate {
  font-size: 11px; color: rgba(255,255,255,.3);
  max-width: 480px; line-height: 1.6; text-align: right;
}

/* ════════════════════════════════════
   BOTTOM NAV (mobile)
════════════════════════════════════ */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.bnav {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 12px; text-decoration: none;
  border-top: 2px solid transparent; transition: border-color var(--duration);
}
.bnav svg { width: 20px; height: 20px; color: var(--ink-3); transition: color var(--duration); }
.bnav span { font-size: 10px; color: var(--ink-3); transition: color var(--duration); }
.bnav.is-active { border-top-color: var(--blue); }
.bnav.is-active svg, .bnav.is-active span { color: var(--blue); }
.bnav.is-active span { font-weight: 500; }

/* ════════════════════════════════════
   INTERIOR PAGE STYLES
════════════════════════════════════ */
.page-header {
  background: var(--surface); border-bottom: 1px solid var(--rule);
  padding: var(--space-xl) 0 var(--space-lg);
}
.page-header__eyebrow { margin-bottom: 12px; }
.page-header__title {
  font-family: var(--ff-display); font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; letter-spacing: -1px; color: var(--ink); margin-bottom: 12px; line-height: 1.15;
}
.page-header__intro { font-size: 16px; font-weight: 300; color: var(--ink-2); line-height: 1.8; max-width: 600px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3); padding: 16px 0 0;
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; transition: color var(--duration); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb svg { width: 10px; height: 10px; color: var(--ink-4); flex-shrink: 0; }
.breadcrumb__current { color: var(--ink); }

/* Content page body */
.page-body { padding: var(--space-xl) 0; }
.page-content { max-width: var(--content-w); margin: 0 auto; }
.page-content p { font-size: 15px; color: var(--ink-2); line-height: 1.85; margin-bottom: 18px; }
.page-content h2 { font-family: var(--ff-display); font-size: 24px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); margin: 40px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.page-content h3 { font-family: var(--ff-display); font-size: 19px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.page-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(0,98,245,.3); text-underline-offset: 3px; }
.page-content a:hover { text-decoration-color: var(--blue); }
.page-content ul { margin: 0 0 20px; padding: 0; list-style: none; }
.page-content ul li { font-size: 15px; color: var(--ink-2); line-height: 1.75; padding: 4px 0 4px 22px; position: relative; }
.page-content ul li::before { content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }

/* About page team card */
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: var(--space-md); margin: var(--space-lg) 0; }
.about-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px; }
.about-card__icon { width: 48px; height: 48px; background: var(--blue-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.about-card__icon svg { width: 22px; height: 22px; color: var(--blue); }
.about-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.about-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; margin: 0; }

/* Contact form */
.contact-form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 32px; max-width: 560px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 10px 14px; font-family: var(--ff-body); font-size: 14px;
  color: var(--ink); background: var(--paper); outline: none;
  transition: border-color var(--duration), background var(--duration);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); background: var(--surface); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--ink-4); margin-top: 6px; }

/* ════════════════════════════════════
   ANIMATIONS
════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fadeUp 0.5s var(--ease) both; }
.anim-delay-1 { animation-delay: 0.08s; }
.anim-delay-2 { animation-delay: 0.16s; }
.anim-delay-3 { animation-delay: 0.24s; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__stats { display: grid; grid-template-columns: repeat(3,1fr); }
  .stat-card { flex-direction: column; text-align: center; gap: 10px; }
  .stat-card__icon { width: 38px; height: 38px; }
  .stat-card__num { font-size: 22px; }
  .hero__strip { grid-template-columns: repeat(2,1fr); }
  .hero__strip .strip-item:nth-child(2) { border-right: none; }
  .ec__layout { grid-template-columns: 1fr; }
  .ec__badge-col { flex-direction: row; min-width: unset; justify-content: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 900px) {
  .primary-nav, .nav-search-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .bottom-nav { display: grid; }
  #page { padding-bottom: 70px; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-md); }
  .hero { padding-top: var(--space-xl); }
  .hero__strip { display: none; }
  .hero__stats { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .stat-card { padding: 12px 8px; }
  .stat-card__icon { display: none; }
  .stat-card__num { font-size: 18px; }
  .ec { padding: 18px; }
  .ec__scores { gap: 6px; }
  .ec__score-val { font-size: 18px; }
  .ec__btns { grid-template-columns: 1fr; }
  .rank-card { padding: 14px 14px; gap: 10px; }
  .rank-card__img { width: 46px; height: 46px; }
  .rank-card__num { font-size: 18px; min-width: 22px; }
  .score-bar-track { flex: 0 0 55px; }
  .rank-card__score { font-size: 18px; }
  .article-grid { grid-template-columns: 1fr; }
  .email-capture { padding: 24px 18px; }
  .email-capture__form { flex-direction: column; }
  .email-input { width: 100%; }
  .xpromo { flex-wrap: wrap; }
  .xpromo__cta { width: 100%; text-align: center; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .site-footer__affiliate { text-align: left; }
  .quiz__head { padding: 16px 18px; }
  .quiz__body { padding: 16px 18px; }
  .quiz__options { gap: 7px; }
  .quiz__opt { padding: 11px 8px; font-size: 12px; }
}

@media (max-width: 480px) {
  .site-header__inner { padding: 0 var(--space-md); height: 52px; }
  .site-logo svg { width: 160px; height: auto; }
}
