/* ============================================================
   NOVA HELIX — Design System & Styles
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* --- Design Tokens ---------------------------------------- */
:root {
  /* Brand palette */
  --purple:        #7B35E8;
  --purple-light:  #9B60F0;
  --blue:          #3B9EE8;
  --blue-light:    #60B8FF;
  --gradient:      linear-gradient(135deg, #7B35E8 0%, #3B9EE8 100%);
  --gradient-r:    linear-gradient(135deg, #3B9EE8 0%, #7B35E8 100%);

  /* Backgrounds */
  --bg-base:       #07090F;
  --bg-surface:    #0C1018;
  --bg-card:       #111825;
  --bg-card-hover: #161F30;
  --bg-elevated:   #1A2235;

  /* Text */
  --text-primary:  #F0F4FF;
  --text-secondary:#B0BCCE;
  --text-muted:    #7A8FA8;

  /* Accents */
  --teal:          #00D4AA;
  --teal-bg:       rgba(0, 212, 170, 0.10);
  --teal-border:   rgba(0, 212, 170, 0.25);

  /* Borders */
  --border:        rgba(123, 53, 232, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover:  rgba(123, 53, 232, 0.35);

  /* Category colours */
  --cat-metabolic:   #F59E0B;
  --cat-recovery:    #10B981;
  --cat-performance: #3B82F6;
  --cat-longevity:   #A78BFA;
  --cat-aesthetics:  #F472B6;
  --cat-cognitive:   #22D3EE;
  --cat-accessory:   #6B7280;

  /* Layout */
  --container:     1280px;
  --section-py:    96px;
  --radius-sm:     0px;
  --radius-md:     0px;
  --radius-lg:     0px;
  --radius-xl:     0px;

  /* Shadows */
  --shadow-card:   0 2px 16px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 40px rgba(123, 53, 232, 0.2);
  --shadow-hover:  0 8px 32px rgba(0, 0, 0, 0.6);
}

/* --- Utility ---------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 0;
  background: rgba(59, 158, 232, 0.08);
  border: 1px solid rgba(59, 158, 232, 0.2);
}

.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
}

/* --- Announcement Bar ------------------------------------- */
.announcement-bar {
  background: var(--gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 9px 24px;
  position: relative;
  z-index: 101;
  overflow: hidden;
}

.announcement-bar a { text-decoration: underline; opacity: 0.85; }

/* Desktop: single line. Mobile: one slide at a time */
.ann-desktop { display: block; }
.ann-slider  { display: none; }

.ann-slide {
  display: none;
  animation: annFadeIn 0.4s ease;
}
.ann-slide.active { display: block; }

@keyframes annFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .ann-desktop { display: none; }
  .ann-slider  { display: block; }
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.85; }

.nav-logo-icon {
  width: 32px;
  height: auto;
}

.nav-logo-word {
  height: 16px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a, .nav-links button {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links button:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: all 0.2s;
}

.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.9;
}
.nav-account-btn:hover { opacity: 1; color: #fff; }
.nav-account-label { display: inline; }

.cart-btn:hover {
  background: rgba(123, 53, 232, 0.15);
  border-color: var(--border-hover);
}

.cart-count {
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(123, 53, 232, 0.18) 0%,
    rgba(59, 158, 232, 0.08) 45%,
    transparent 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-base));
}

.hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: auto;
  opacity: 0.025;
  pointer-events: none;
  filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.01em;
}

.hero-heading {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-heading .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(123, 53, 232, 0.35);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(123, 53, 232, 0.50);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.25s;
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-hover);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-trust-item .icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* --- Ticker ----------------------------------------------- */
.ticker-wrap {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: var(--purple);
  flex-shrink: 0;
}

/* --- Sections --------------------------------------------- */
.section {
  padding: var(--section-py) 0;
}

.section.alt-bg {
  background: var(--bg-surface);
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered { text-align: center; }
.section-header.centered .section-sub {
  margin: 0 auto;
}

/* --- Product Cards (Shared) ------------------------------- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--gradient));
  opacity: 0;
  transition: opacity 0.25s;
}

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

.product-card:hover::before { opacity: 1; }

.product-card .glow-orb {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 0;
  background: var(--card-orb-color, rgba(123, 53, 232, 0.15));
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.25s;
}

.product-card:hover .glow-orb { opacity: 1; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.category-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0;
  border: 1px solid currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}

.badge-metabolic  { color: var(--cat-metabolic);   border-color: rgba(245, 158, 11, 0.3); }
.badge-recovery   { color: var(--cat-recovery);    border-color: rgba(16, 185, 129, 0.3); }
.badge-performance{ color: var(--cat-performance); border-color: rgba(59, 130, 246, 0.3); }
.badge-longevity  { color: var(--cat-longevity);   border-color: rgba(167, 139, 250, 0.3); }
.badge-aesthetics { color: var(--cat-aesthetics);  border-color: rgba(244, 114, 182, 0.3); }
.badge-cognitive  { color: var(--cat-cognitive);   border-color: rgba(34, 211, 238, 0.3); }
.badge-accessory  { color: var(--cat-accessory);   border-color: rgba(107, 114, 128, 0.3); }

.stock-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 8px;
  border-radius: 0;
}

.card-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.card-size-purity {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.purity-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  padding: 2px 8px;
  border-radius: 0;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.tier-label { color: var(--text-muted); }
.tier-price { font-weight: 600; color: var(--text-primary); }
.tier-save  { font-size: 11px; color: var(--teal); font-weight: 600; }

.tier-row.highlight {
  background: rgba(123, 53, 232, 0.06);
  margin: -4px -8px;
  padding: 6px 8px;
}

.card-price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

.price-single {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 12px;
  color: var(--text-muted);
}

.add-btn {
  width: 100%;
  padding: 11px 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  letter-spacing: -0.01em;
  text-align: center;
  border: none;
}

.add-btn:hover {
  box-shadow: 0 4px 16px rgba(123, 53, 232, 0.35);
}

/* --- Best Sellers Section --------------------------------- */
.bestsellers-scroll-wrapper {
  /* no overflow scroll — grid layout */
}

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

@media (max-width: 820px) {
  .bestsellers-scroll { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .bestsellers-scroll { grid-template-columns: 1fr; }
}

/* --- Categories Grid -------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  display: block;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cat-gradient);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

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

.category-card:hover::before { opacity: 1; }

.category-card-content {
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s;
}

.category-card:hover .category-icon {
  background: rgba(255,255,255,0.12);
}

.category-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.category-card-count {
  font-size: 13px;
  color: var(--text-muted);
}

.category-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.25s;
  opacity: 0;
  transform: translate(-4px, 4px);
}

.category-card:hover .category-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.category-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 0;
  filter: blur(50px);
  opacity: 0.18;
  transition: opacity 0.3s;
  pointer-events: none;
}

.category-card:hover .category-glow { opacity: 0.35; }

/* --- Why Section ------------------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

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

.feature-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 0;
  filter: blur(60px);
  opacity: 0.08;
  pointer-events: none;
  background: var(--gradient);
}

/* --- Full Library / Filter -------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}

.filter-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

.filter-tab.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(123, 53, 232, 0.3);
}

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

.products-grid .product-card { display: flex; flex-direction: column; }

.card-specs {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.card-specs.open {
  max-height: 300px;
}

.card-specs-inner {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr td {
  padding: 5px 0;
  font-size: 12px;
  vertical-align: top;
}

.spec-table td:first-child {
  color: var(--text-muted);
  width: 110px;
  font-weight: 500;
  flex-shrink: 0;
}

.spec-table td:last-child {
  color: var(--text-secondary);
  font-weight: 400;
}

.toggle-specs {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--blue-light);
  margin-top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 0;
}

.toggle-specs:hover { color: var(--text-primary); }

.toggle-specs .arrow {
  transition: transform 0.3s;
  display: inline-block;
  font-size: 10px;
}

.toggle-specs.open .arrow { transform: rotate(180deg); }

.disclaimer-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* --- Stacks Section --------------------------------------- */
.stacks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

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

.stack-save-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0;
  letter-spacing: 0.02em;
}

.stack-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.stack-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.55;
  max-width: 380px;
}

.stack-compounds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.stack-compound-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 0;
}

.stack-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stack-price-now {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.stack-price-was {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.stack-price-label {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
}

.add-stack-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.add-stack-btn:hover {
  box-shadow: 0 4px 16px rgba(123, 53, 232, 0.35);
}

/* --- Quality / COA Section -------------------------------- */
.quality-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.quality-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.quality-stat {
  background: var(--bg-card);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.quality-stat:nth-child(1) { border-radius: var(--radius-md) 0 0 0; }
.quality-stat:nth-child(2) { border-radius: 0 var(--radius-md) 0 0; }
.quality-stat:nth-child(3) { border-radius: 0 0 0 var(--radius-md); }
.quality-stat:nth-child(4) { border-radius: 0 0 var(--radius-md) 0; }

.quality-stat:hover { background: var(--bg-card-hover); }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.quality-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.quality-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.quality-feature:hover { border-color: var(--border-hover); }

.quality-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.quality-feature-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.quality-feature-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- COA/Verification Dashboard Card --------------------- */
.coa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.coa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.coa-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.coa-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  padding: 4px 10px;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  border-radius: 0;
}

.coa-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.coa-purity-main {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coa-purity-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.coa-tests {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coa-test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
}

.coa-test-row .label { color: var(--text-secondary); }
.coa-test-row .value {
  color: var(--teal);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.check-icon { color: var(--teal); }

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

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

.review-stars {
  color: #F59E0B;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-verified {
  font-size: 11.5px;
  color: var(--teal);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* --- Calculator ------------------------------------------- */
.calculator-card {
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin: 0 auto;
}

.calculator-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123, 53, 232, 0.12);
}

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

.calc-result {
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.calc-result-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.calc-result-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.calc-result-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.calc-add-water {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}

.calc-add-water:hover {
  background: rgba(0, 212, 170, 0.15);
}

/* --- FAQ -------------------------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--blue-light); }

.faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.25s;
}

.faq-item.open .faq-icon {
  color: var(--blue-light);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer.open { max-height: 300px; }

.faq-answer-inner {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

/* --- Cart Drawer ------------------------------------------ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border-bottom: none;
  flex-shrink: 0;
}

.cart-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.cart-close {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.2s;
}

.cart-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.cart-items {
  padding: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
}

.cart-empty .icon { font-size: 36px; opacity: 0.4; }
.cart-empty p { font-size: 14px; }

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Product thumbnail in cart */
.cart-item-thumb {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  display: block;
  transition: border-color 0.15s;
}
.cart-item-thumb:hover {
  border-color: rgba(123, 53, 232, 0.5);
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0.35;
}

/* Inner body (replaces cart-item-info) */
.cart-item-body { flex: 1; min-width: 0; }

/* Row 1: name · qty controls · price — all inline */
.cart-item-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.cart-item-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-size {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.qty-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cart-subtotal .label {
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-subtotal .value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-shipping-note {
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--teal-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal-border);
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.cart-checkout-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(123, 53, 232, 0.4);
}

.cart-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.cart-checkout-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================================
   CHECKOUT FLOW — multi-step cart drawer
   ============================================================ */

/* Header rows */
.cart-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
}
.cart-header-top.no-border { border-bottom: none; }

.cart-back-btn {
  display: none;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  min-width: 52px;
  transition: color 0.2s;
}
.cart-back-btn:hover { color: var(--text-primary); }

/* Step indicator */
.cart-step-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 9px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.cart-step-pip {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.cart-step-pip.active { color: var(--text-primary); font-weight: 700; }
.cart-step-pip.done { color: var(--purple-light); }
.cart-step-sep { font-size: 11px; color: var(--border-hover); }

/* Step containers */
.checkout-step {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.checkout-step.active { display: flex; }

/* Scroll area (replaces flex: 1 on .cart-items) */
.cart-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  min-height: 0;
}

/* Footer area — fixed at bottom, never scrolls, totals + CTA only */
.cart-footer-area {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

/* Promo code */
.promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}
.promo-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.promo-input:focus { border-color: var(--purple); }
.promo-input::placeholder { color: var(--text-muted); }
.promo-apply-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.promo-apply-btn:hover { border-color: var(--purple); color: var(--purple-light); }
.promo-msg {
  font-size: 12px;
  min-height: 0;
  margin-bottom: 6px;
  line-height: 1.4;
}
.promo-msg.success { color: var(--teal); }
.promo-msg.error { color: #f87171; }

/* Payment methods */
.payment-methods-section { margin-bottom: 10px; }
.payment-methods-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.payment-method-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg-card);
}
.payment-method-option:hover { border-color: var(--border-hover); }
.payment-method-option.selected {
  border-color: var(--purple);
  background: rgba(123, 53, 232, 0.05);
}
.pm-radio {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hover);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.15s;
}
.payment-method-option.selected .pm-radio {
  border-color: var(--purple);
  background: var(--purple);
}
.payment-method-option.selected .pm-radio::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
}
.pm-details { min-width: 0; }
.pm-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.pm-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.pm-save-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid var(--teal-border);
  white-space: nowrap;
}

/* Cart totals block */
.cart-totals-block { margin-bottom: 12px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.cart-total-row.muted { font-size: 12px; color: var(--text-muted); }
.cart-total-row.discount { color: var(--teal); }
.cart-total-row.grand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.cart-grand-total { font-variant-numeric: tabular-nums; }

/* Fast checkout form (step 2) */
.fast-checkout-scroll { padding: 20px 24px; }
.fast-checkout-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.form-field-group { margin-bottom: 10px; }
.form-field-group > label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.checkout-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.checkout-input:focus { border-color: var(--purple); }
.checkout-input::placeholder { color: rgba(255,255,255,0.18); }
.checkout-input.invalid { border-color: #f87171; }

/* Selected payment pill in step 2 */
.selected-payment-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(123, 53, 232, 0.05);
  border: 1px solid var(--purple);
  margin-bottom: 14px;
}
.pm-change {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--blue-light);
  cursor: pointer;
  flex-shrink: 0;
}
.pm-change:hover { text-decoration: underline; }

/* Research confirm */
.research-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}
.research-confirm-row input[type="checkbox"] {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--purple);
  cursor: pointer;
}
.research-confirm-row label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

/* Payment instruction screen (step 3) */
.payment-screen-wrap {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.payment-screen-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.payment-screen-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: -0.02em;
}
.payment-screen-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.6;
}
.payment-fields-box {
  width: 100%;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.payment-field-label-row {
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
}
.payment-field-row {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
}
.payment-field-row:last-child { border-bottom: none; }
.payment-field-key {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 82px;
  flex-shrink: 0;
}
.payment-field-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  word-break: break-all;
}
.copy-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--purple); color: var(--text-primary); }
.copy-btn.copied { border-color: var(--teal); color: var(--teal); }

.payment-confirm-btn {
  width: 100%;
  background: var(--teal);
  border: none;
  color: #07090F;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.payment-confirm-btn:hover { opacity: 0.88; }
.payment-close-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.payment-close-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* Order confirmed */
.order-confirmed-wrap {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.order-confirmed-icon { font-size: 44px; margin-bottom: 16px; }
.order-confirmed-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.order-confirmed-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.order-ref-box {
  width: 100%;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--purple);
  background: rgba(123, 53, 232, 0.06);
  margin-bottom: 20px;
}
.order-ref-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.order-ref-code {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 0.1em;
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
}

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

.footer-brand-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-icon {
  width: 36px;
  height: auto;
}

.footer-brand-word {
  height: 14px;
  width: auto;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-col-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-legal {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
  text-align: right;
}

/* --- Hamburger Button ------------------------------------- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.hamburger-btn:hover { background: rgba(255,255,255,0.09); }

.hamburger-btn span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.25s;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .hamburger-btn { display: flex; }
}

/* --- Mobile Menu (handled below) -------------------------- */

/* --- Hidden / Visibility ---------------------------------- */
.hidden { display: none !important; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .quality-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  :root { --section-py: 64px; }

  .nav-links { display: none; }
  /* Show wordmark on mobile — slightly smaller */
  .nav-logo-word { height: 13px; }

  /* Cart button = same compact square as hamburger on mobile */
  .cart-btn { width: 36px; height: 36px; padding: 0; justify-content: center; gap: 0; }
  .cart-label { display: none; }

  .hero-heading { font-size: 26px; line-height: 1.1; }
  .hero-sub     { font-size: 16px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid   { grid-template-columns: 1fr; }
  .stacks-grid     { grid-template-columns: 1fr; }
  .products-grid   { grid-template-columns: 1fr; }
  .reviews-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .footer-legal    { text-align: center; }

  .quality-stats { grid-template-columns: 1fr 1fr; }

  .calculator-card { padding: 24px; }
  .calculator-form { grid-template-columns: 1fr; }

  .cart-drawer { width: 100vw; }
}

@media (max-width: 540px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-trust { gap: 12px; }
  .filter-tabs { gap: 4px; }
  .filter-tab { padding: 7px 14px; font-size: 12px; }
}

/* --- Smooth Fade-in on scroll ----------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Divider ---------------------------------------------- */
.section-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

/* --- Product Card Image (full-bleed, no inner box) -------- */
/* Image link wrapper — clicking image navigates to product page */
.card-image-link {
  display: block;
  cursor: pointer;
}

.card-image {
  /* Break out of card's 20px padding on all sides except bottom */
  width: calc(100% + 40px);
  margin: -20px -20px 20px -20px;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.03);
}

.card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.card-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.card-image-placeholder .ph-icon {
  font-size: 28px;
  opacity: 0.3;
}

.card-image-placeholder span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}

/* --- Rollup Button Effect --------------------------------- */
/* overflow: hidden lives on .btn-inner (a <span>), not the <button>,
   because Chromium doesn't clip abs-pos children on <button> elements */
.btn-inner {
  display: block;
  position: relative;
  overflow: hidden;
}

.btn-text {
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-text-alt {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.btn-primary:hover .btn-text,
.btn-secondary:hover .btn-text,
.add-btn:hover .btn-text,
.add-stack-btn:hover .btn-text,
.cart-checkout-btn:hover .btn-text,
.calc-add-water:hover .btn-text { transform: translateY(-100%); }

.btn-primary:hover .btn-text-alt,
.btn-secondary:hover .btn-text-alt,
.add-btn:hover .btn-text-alt,
.add-stack-btn:hover .btn-text-alt,
.cart-checkout-btn:hover .btn-text-alt,
.calc-add-water:hover .btn-text-alt { transform: translateY(0); }

/* --- Mobile Menu (slides down from nav, nav stays on top) -- */
.mobile-menu {
  /* Always rendered as flex — hidden via opacity/transform */
  display: flex;
  flex-direction: column;
  overflow-y: auto;

  position: fixed;
  inset: 0;
  /* sit BELOW nav (z-index 100) so logo + cart + hamburger stay visible */
  z-index: 99;
  background: var(--bg-base);

  /* Content starts below nav bar — set dynamically by JS on open */
  padding-top: 64px;

  /* Prevent background scroll bleed-through on iOS/Android */
  overscroll-behavior: contain;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0s 0.26s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0s 0s;
}

/* Header hidden — nav bar remains visible above the menu (z-index: 100) */
.mobile-menu-header {
  display: none;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
}
.mobile-menu-logo:hover { opacity: 0.8; }

.mobile-menu-close {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-menu-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* Main nav links */
.mobile-menu-nav {
  padding: 16px 24px 8px;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}
.mobile-menu-nav a:last-child { border-bottom: none; }
.mobile-menu-nav a:hover { color: var(--text-primary); }

.mm-arrow {
  font-size: 18px;
  font-weight: 400;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s;
}
.mobile-menu-nav a:hover .mm-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Category quick links */
.mobile-menu-categories {
  padding: 24px 24px 8px;
  border-top: 1px solid var(--border-subtle);
}

.mm-cat-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.mm-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-cats a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
  display: inline-block;
}
.mm-cats a:hover {
  color: var(--text-primary);
  border-color: var(--border);
  background: rgba(255,255,255,0.07);
}

/* Footer info */
.mobile-menu-footer-info {
  padding: 24px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}

.mm-contact {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mm-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mm-trust-item {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.03em;
}

/* --- Cart Bulk Nudge -------------------------------------- */
.cart-bulk-nudge {
  font-size: 11.5px;
  color: var(--teal);
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid var(--teal-border);
  padding: 6px 10px;
  margin-top: 8px;
  line-height: 1.4;
}
.cart-bulk-nudge strong { font-weight: 700; color: var(--text-primary); }

.cart-discount-earned {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 6px;
}

/* --- Cart Upsell Section ---------------------------------- */
.cart-upsell {
  padding: 16px 24px 8px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.1);
}

.cart-upsell-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cart-upsell-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.cart-upsell-icon { font-size: 20px; flex-shrink: 0; }
.cart-upsell-info { flex: 1; min-width: 0; }
.cart-upsell-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.cart-upsell-note { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.cart-upsell-price { font-size: 13px; font-weight: 700; color: var(--text-primary); flex-shrink: 0; }
.cart-upsell-add {
  padding: 6px 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.cart-upsell-add:hover { opacity: 0.85; }

/* --- View Product Link (card bottom) ---------------------- */
.view-product-link {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue-light);
  padding: 8px 0 2px;
  margin-top: 4px;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.view-product-link:hover { color: var(--text-primary); }

/* --- Product Page ----------------------------------------- */
.product-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.product-back { margin-bottom: 32px; }

.back-link {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover { color: var(--text-primary); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

.product-image-main {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(123, 53, 232, 0.07), rgba(59, 158, 232, 0.07));
  border: 1.5px dashed rgba(123, 53, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 80px;
}

.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.product-image-placeholder .ph-big { font-size: 64px; opacity: 0.2; }
.product-image-placeholder span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); opacity: 0.5; }

.product-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid currentColor;
  opacity: 0.85;
  margin-bottom: 12px;
}

.product-name {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.1;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.product-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Pricing */
.product-price-current {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.product-price-big {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.product-price-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.product-bulk-tiers {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 24px;
}

.bulk-tier-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.bulk-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0,0,0,0.15);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.bulk-tier-row:last-child { margin-bottom: 0; }
.bulk-tier-row.active-tier {
  border-color: var(--purple);
  background: rgba(123, 53, 232, 0.08);
}
.bulk-tier-row:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.bulk-tier-qty { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.bulk-tier-price { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.bulk-tier-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  padding: 2px 8px;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
}

/* Add to cart row */
.product-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 10px;
}

.product-qty-selector {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.product-qty-selector .qty-btn {
  width: 44px;
  height: 52px;
  font-size: 18px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.product-qty-selector .qty-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.product-qty-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 52px;
  text-align: center;
}

.product-add-btn {
  flex: 1;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  border: none;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 24px rgba(123, 53, 232, 0.35);
  transition: all 0.25s;
}
.product-add-btn:hover { box-shadow: 0 8px 32px rgba(123, 53, 232, 0.5); }

.product-price-note {
  font-size: 12.5px;
  color: var(--teal);
  min-height: 20px;
  margin-bottom: 20px;
}

/* BAC water upsell on product page */
.product-also-need {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.also-need-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.also-need-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.also-need-icon { font-size: 22px; flex-shrink: 0; }
.also-need-info { flex: 1; }
.also-need-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.also-need-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.also-need-price { font-size: 14px; font-weight: 700; color: var(--text-primary); flex-shrink: 0; }
.also-need-add {
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.also-need-add:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hover); }

/* Specs section on product page */
.product-specs-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
}
.product-specs-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.spec-block {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.spec-block-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.spec-block-value {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
  word-break: break-word;
}

@media (max-width: 820px) {
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-image-main { position: static; aspect-ratio: 4/3; }
  .product-specs-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-qty-selector { width: max-content; }
}

/* ============================================================
   ARTICLE / RESOURCE PAGES
   ============================================================ */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  padding: 3px 10px;
  background: rgba(59, 158, 232, 0.08);
  border: 1px solid rgba(59, 158, 232, 0.2);
}

.article-date,
.article-read-time {
  font-size: 13px;
  color: var(--text-muted);
}

.article-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.article-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 40px 0 14px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.article-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

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

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 4px;
}

.article-body strong { color: var(--text-primary); font-weight: 600; }

.article-ref-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  padding: 20px 24px;
  margin: 32px 0;
}

.article-ref-box strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.article-ref-box ul { list-style: none; padding: 0; margin: 0; }

.article-ref-box li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.article-ref-box li:last-child { border-bottom: none; }

.article-disclaimer {
  background: rgba(123, 53, 232, 0.06);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  padding: 18px 22px;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.article-disclaimer strong { color: var(--text-secondary); }

/* ============================================================
   RESOURCES HUB PAGE
   ============================================================ */
.resources-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

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

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

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

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

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

.resource-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}

.resource-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.resource-card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.resource-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.resource-card-read {
  color: var(--blue-light);
  font-weight: 500;
  transition: color 0.2s;
}

.resource-card:hover .resource-card-read { color: var(--text-primary); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.about-hero {
  max-width: 700px;
  margin-bottom: 64px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-section-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123, 53, 232, 0.12);
}

.form-textarea::placeholder { color: var(--text-muted); }

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 56px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.legal-toc a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-light);
  padding: 6px 14px;
  border: 1px solid rgba(59, 158, 232, 0.2);
  background: rgba(59, 158, 232, 0.06);
  transition: all 0.2s;
}

.legal-toc a:hover {
  background: rgba(59, 158, 232, 0.12);
  border-color: rgba(59, 158, 232, 0.4);
  color: var(--text-primary);
}

.legal-section {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.legal-last-updated {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: block;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.legal-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }

.legal-body li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
  padding-left: 4px;
}

.legal-body strong { color: var(--text-primary); font-weight: 600; }
