/* racegearlab.com — Dark racing theme, mobile-first */

:root {
  /* Backgrounds */
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-elevated: #282828;

  /* Accent colors */
  --red: #ff3e3e;
  --red-dark: #cc1f1f;
  --red-glow: rgba(255, 62, 62, 0.15);
  --blue: #00d4ff;
  --blue-glow: rgba(0, 212, 255, 0.15);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --yellow: #facc15;
  --yellow-bg: rgba(250, 204, 21, 0.12);
  --orange: #f97316;
  --orange-bg: rgba(249, 115, 22, 0.12);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.12);

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --text-on-accent: #ffffff;

  /* Borders */
  --border: #2a2a2a;
  --border-hover: #3a3a3a;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(255, 62, 62, 0.2);

  /* Radii */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', var(--font);
  --max-w: 1200px;

  /* Tier colors */
  --tier-budget: #22c55e;
  --tier-budget-bg: rgba(34, 197, 94, 0.1);
  --tier-value: #3b82f6;
  --tier-value-bg: rgba(59, 130, 246, 0.1);
  --tier-pro: #f59e0b;
  --tier-pro-bg: rgba(245, 158, 11, 0.1);
  --tier-elite: #ef4444;
  --tier-elite-bg: rgba(239, 68, 68, 0.1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--text-primary); }

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

/* ============ LAYOUT ============ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
}

/* ============ HEADER / NAV ============ */

.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.logo-accent { color: var(--red); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-links a.active {
  color: var(--red);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 4px;
  }

  .nav-links.open a {
    display: block;
    padding: 12px 14px;
  }
}

/* ============ HERO ============ */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-search {
  max-width: 560px;
  margin: 0 auto 24px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ============ CATEGORY CARDS ============ */

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--red-glow);
  color: var(--red);
}

.category-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ============ SECTION HEADERS ============ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
}

.section-header a:hover {
  color: var(--text-primary);
}

/* ============ PRODUCT CARDS ============ */

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-elevated);
}

.product-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-specs {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--red);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--yellow);
}

/* ============ TIER BADGES ============ */

.tier {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tier-budget { background: var(--tier-budget-bg); color: var(--tier-budget); }
.tier-value { background: var(--tier-value-bg); color: var(--tier-value); }
.tier-pro { background: var(--tier-pro-bg); color: var(--tier-pro); }
.tier-elite { background: var(--tier-elite-bg); color: var(--tier-elite); }

/* ============ COMPARISON TABLE ============ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tr:hover td {
  background: var(--bg-card-hover);
}

.comparison-table .product-link {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table .product-link:hover {
  color: var(--red);
}

/* ============ COST TABLE ============ */

.cost-table .cost-group-header td {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 16px;
}

.cost-table .cost-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cost-table .cost-value {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.cost-table .cost-total-row td {
  border-top: 2px solid var(--border);
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--bg-card);
}

/* ============ GUIDE CARDS ============ */

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.guide-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.guide-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-elevated);
}

.guide-card-body {
  padding: 20px;
}

.guide-card-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 8px;
}

.guide-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.guide-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============ BRAND GRID ============ */

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2/1;
  text-decoration: none;
  transition: all 0.25s ease;
}

.brand-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.brand-card img {
  max-height: 40px;
  filter: brightness(0) invert(0.7);
  transition: filter 0.25s;
}

.brand-card:hover img {
  filter: brightness(0) invert(1);
}

/* ============ CTA BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ============ BREADCRUMBS ============ */

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 12px 0;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--text-muted);
}

/* ============ FILTER CHIPS ============ */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--red);
  color: var(--text-on-accent);
  border-color: var(--red);
}

/* ============ AFFILIATE CTA ============ */

.affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--red);
  color: var(--text-on-accent);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.affiliate-cta:hover {
  background: var(--red-dark);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}

.affiliate-cta-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.affiliate-cta-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: none;
}

/* ============ CONTENT / ARTICLE ============ */

.article-content {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--text-primary);
}

/* ============ VERDICT BOX ============ */

.verdict-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.verdict-box h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.verdict-box p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ FAQ ACCORDION ============ */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 0 18px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 12px;
  line-height: 1.5;
}

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-sister-sites {
  display: flex;
  gap: 16px;
}

.footer-sister-sites a {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-sister-sites a:hover {
  color: var(--red);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

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

/* ============ MISC ============ */

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Network banner */
.network-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.network-banner p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.network-banner strong {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .network-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ RACING NETWORK SECTION ============ */

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.network-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.network-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.network-card .network-icon {
  font-size: 2rem;
  line-height: 1;
}

.network-card .network-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: contain;
  margin-bottom: 4px;
}

.network-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}

.network-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.network-card .network-stat {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

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

/* ============ AFFILIATE KIT CTA ============ */

.kit-cta {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.kit-cta h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.kit-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.kit-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.kit-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kit-item .kit-price {
  color: var(--tier-budget);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============ ENHANCED GEAR LINKS ============ */

.gear-card-enhanced {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gear-card-enhanced:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.gear-card-enhanced h3 {
  font-size: 1rem;
  margin: 0;
}

.gear-card-enhanced p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.gear-card-enhanced .gear-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  margin-top: auto;
  padding-top: 8px;
}

/* ============ COST TABLE ENHANCEMENTS ============ */

.cost-table thead th.col-budget { color: var(--tier-budget); }
.cost-table thead th.col-mid { color: var(--tier-pro); }
.cost-table thead th.col-pro { color: var(--tier-elite); }

.cost-table .cost-cell.col-budget .cost-value { color: var(--tier-budget); }
.cost-table .cost-cell.col-mid .cost-value { color: var(--tier-pro); }
.cost-table .cost-cell.col-pro .cost-value { color: var(--tier-elite); }

.cost-table a {
  color: var(--red);
  font-weight: 500;
}

.cost-table a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}


/* ============ HOMEPAGE — PRODUCT SHOWCASE ============ */

/* Category chip strip */
.hp-cat-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.hp-cat-strip::-webkit-scrollbar { display: none; }

.hp-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.hp-cat-chip:hover {
  background: var(--bg-elevated);
  border-color: var(--red);
  color: var(--red);
}

/* Product grid — horizontal scrollable on mobile, 3-col on desktop */
.hp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Product card */
.hp-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.hp-product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hp-product-img-wrap {
  position: relative;
  height: 90px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.hp-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-tier {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hp-tier.tier-budget { background: rgba(34,197,94,0.15); color: #22c55e; }
.hp-tier.tier-value { background: rgba(0,212,255,0.15); color: #00d4ff; }
.hp-tier.tier-pro { background: rgba(255,62,62,0.15); color: #ff3e3e; }
.hp-tier.tier-elite { background: rgba(250,204,21,0.15); color: #facc15; }

.hp-product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.hp-product-brand {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hp-product-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.hp-product-verdict {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

.hp-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.stars {
  color: #facc15;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.star-num {
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0;
}

.hp-product-price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.hp-product-cta {
  display: block;
  text-align: center;
  padding: 8px;
  margin-top: 8px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--text-on-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.hp-product-cta:hover {
  background: var(--red-dark);
}

/* Discipline grid */
.hp-discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hp-discipline-grid > :nth-child(n+5) {
  /* Last row (3 items) — use grid-column for centering handled below */
}

.hp-discipline-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  display: block;
}
.hp-discipline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.hp-discipline-card:hover img {
  transform: scale(1.05);
}
.hp-discipline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.hp-discipline-overlay h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin: 0;
}
.hp-discipline-overlay p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin: 2px 0 0;
}

/* Cost cards */
.hp-cost-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.hp-cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-cost-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.hp-cost-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
}
.hp-cost-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============ HOMEPAGE RESPONSIVE ============ */
@media (max-width: 900px) {
  .hp-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .hp-discipline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hp-cost-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hp-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hp-product-img-wrap {
    height: 70px;
  }
  .hp-product-name {
    font-size: 0.8125rem;
  }
  .hp-product-verdict {
    display: none;
  }
  .hp-discipline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
