@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Palette — mandatory, exact */
  --color-accent: #3ee385;
  --color-accent-2: #4531e6;
  --color-accent-3: #e92459;
  --color-accent-warm: #e6bf31;
  --color-accent-soft: #e4f0e9;
  --color-accent-2-soft: #e5e4f1;
  --color-accent-3-soft: #f1e3e7;
  --color-accent-warm-soft: #f1eee4;

  /* Neutral editorial supports */
  --color-bg: #faf9f7;
  --color-bg-2: #f2efec;
  --color-bg-white: #ffffff;
  --color-bg-rgb: 250, 249, 247;
  --color-bg-white-rgb: 255, 255, 255;
  --color-surface: rgba(28,25,23,0.02);
  --color-surface-hover: rgba(28,25,23,0.045);
  --color-text: #1a1715;
  --color-text-secondary: #57514c;
  --color-text-muted: #a29a92;
  --color-border: #e6e1db;
  --color-border-light: #f0ece7;

  --color-footer-bg: #1a1715;
  --color-footer-text: #efece8;
  --color-footer-muted: #9a938c;
  --color-footer-link: #cfc8c1;
  --color-footer-border: rgba(255,255,255,0.09);
  --color-footer-social-bg: rgba(255,255,255,0.07);
  --color-footer-social-border: rgba(255,255,255,0.12);

  --font-heading: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Lora', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(26,23,21,0.05);
  --shadow-md: 0 4px 10px rgba(26,23,21,0.06);
  --shadow-lg: 0 12px 30px rgba(26,23,21,0.08);
  --shadow-xl: 0 24px 48px rgba(26,23,21,0.10);
}

/* ── Editorial hairline system ─────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--color-border); }
.logo-text { letter-spacing: -0.5px; font-weight: 700; }
.nav-link.active { color: var(--color-text); background: transparent; box-shadow: inset 0 -2px 0 var(--color-accent-3); border-radius: 0; }

/* ── Hero — centered editorial stack with duotone glow behind ──────────── */
.hero { text-align: center; background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%); }
.hero-content { text-align: center; }
.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 42% 45%, rgba(233,36,89,0.06) 0%, transparent 55%),
    radial-gradient(circle at 60% 55%, rgba(69,49,230,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.hero-badge {
  color: var(--color-accent-3);
  background: transparent;
  border: 1px solid var(--color-accent-3);
  border-radius: var(--radius-sm);
  letter-spacing: 2px;
}
.hero-title { font-family: var(--font-heading); font-weight: 700; letter-spacing: -1.5px; }
.hero-subtitle { max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }

/* ── Ghost-outline CTAs ─────────────────────────────────────────────────── */
.btn-primary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
  box-shadow: none;
  border-radius: var(--radius-sm);
}
.btn-primary:hover {
  background: var(--color-text);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: none;
}
.btn-outline {
  border: 1.5px solid var(--color-accent-2);
  color: var(--color-accent-2);
  border-radius: var(--radius-sm);
}
.btn-outline:hover { background: var(--color-accent-2); color: #fff; border-color: var(--color-accent-2); }
.btn-cta {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: none;
  border-radius: var(--radius-sm);
}
.btn-cta:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  transform: translateY(-1px);
  filter: none;
}

/* ── Section headings ───────────────────────────────────────────────────── */
.section-title { font-family: var(--font-heading); letter-spacing: -0.8px; }

/* ── Product cards — fine hairlines + muted duotone frames ──────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-text);
}
.card-image-wrapper {
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border);
}
.card-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(69,49,230,0.14) 0%, rgba(233,36,89,0.12) 100%);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}
.product-card:hover .card-image-wrapper::after { opacity: 1; }
.card-body { flex: 1; display: flex; flex-direction: column; }
.card-brand { color: var(--color-accent-3); letter-spacing: 1.5px; }
.card-title { font-family: var(--font-heading); }
.card-body .btn-cta { margin-top: auto; }

/* ── Small monospace price tags ─────────────────────────────────────────── */
.price-current, .price-original, .price-big, .price-was, .price-save {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.3px;
}
.price-current { font-size: 17px; font-weight: 600; }
.card-price { align-items: center; }

/* ── Categories ─────────────────────────────────────────────────────────── */
.category-card { border-radius: var(--radius-md); }
.category-card:hover { border-color: var(--color-accent-2); }
.category-icon { border-radius: var(--radius-sm); background: var(--color-accent-2-soft); color: var(--color-accent-2); }

/* ── Newsletter — indigo accent, ghost styling ──────────────────────────── */
.newsletter-form button { background: var(--color-accent-2); border-radius: var(--radius-sm); }
.newsletter-form button:hover { background: #372bb8; }

/* ── Stats bar duotone ──────────────────────────────────────────────────── */
.stats-section { background: linear-gradient(120deg, var(--color-accent-2) 0%, var(--color-accent-3) 100%); }

/* ── FAQ / Testimonials / Guide / Top picks ─────────────────────────────── */
.faq-item[open] { border-color: var(--color-accent-2); }
.guide-number { background: var(--color-accent-warm); border-radius: var(--radius-sm); }
.top-pick-rank { color: var(--color-accent-warm); }

/* ── Widgets ────────────────────────────────────────────────────────────── */
.price-history-section,
.user-reviews-section,
.pros-cons-widget,
.delivery-widget {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.price-history-section { border-top: 3px solid var(--color-accent-2); }
.user-reviews-section { border-top: 3px solid var(--color-accent-3); }
.chart-bar {
  background: linear-gradient(180deg, var(--color-accent-2-soft) 0%, var(--color-accent-2) 100%);
  border-radius: 4px 4px 0 0;
}
.chart-bar-current {
  background: linear-gradient(180deg, rgba(62,227,133,0.5) 0%, var(--color-accent) 100%);
  box-shadow: none;
}
.review-avatar { background: var(--color-accent-2); border-radius: var(--radius-sm); }
.review-bar-fill { background: var(--color-accent-warm); }
.reviews-big-number { font-family: 'JetBrains Mono', monospace; }
.pros-cons-widget { border-left: 3px solid var(--color-accent); }
.delivery-item svg { color: var(--color-accent-2); }
.social-proof-popup {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-3);
  border-radius: var(--radius-md);
}
.popup-icon { background: var(--color-accent-3); border-radius: var(--radius-sm); }

/* ── Card layout guards ─────────────────────────────────────────────────── */
.product-card { display: flex; flex-direction: column; }
.card-body { flex: 1; display: flex; flex-direction: column; }
.card-body .btn-cta { margin-top: auto; }