/* ═══════════════════════════════════════════════════════════
   GLP1Path Design System v1.0
   Inspired by Eden Health — premium health/wellness aesthetic
   ═══════════════════════════════════════════════════════════ */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

/* ─── Design Tokens ─── */
:root {
  /* Colors — Primary */
  --brand: #0D9373;
  --brand-dark: #0A7A60;
  --brand-light: #E8F8F3;
  --brand-glow: rgba(13,147,115,.15);

  /* Colors — Accent */
  --accent: #F5A623;
  --accent-light: #FFF8EB;
  --accent-dark: #D4901C;

  /* Colors — Neutrals */
  --ink: #111827;
  --ink-light: #374151;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --border: #E5E7EB;
  --surface: #FFFFFF;
  --canvas: #F9FAFB;
  --canvas-alt: #F3F4F6;

  /* Colors — Semantic */
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --info: #2563EB;

  /* Typography */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Type Scale (fluid) */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 100px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.12);
  --shadow-brand: 0 4px 20px rgba(13,147,115,.20);
  --shadow-brand-lg: 0 8px 32px rgba(13,147,115,.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-sm: 640px;
  --container-md: 800px;
  --container-lg: 1080px;
  --container-xl: 1200px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--brand-dark); }

/* ─── Container ─── */
.container { max-width: var(--container-lg); margin: 0 auto; padding: 0 var(--space-6); }
.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }

/* ─── Promo Banner (sticky top) ─── */
.promo-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  position: sticky;
  top: 0;
  z-index: 200;
}
.promo-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(245,166,35,.4);
  text-underline-offset: 2px;
}
.promo-banner a:hover { text-decoration-color: var(--accent); }

/* ─── Nav ─── */
.nav {
  background: var(--surface);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 38px; /* below promo banner */
  z-index: 150;
}
.nav__inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__links { display: flex; align-items: center; gap: var(--space-6); }
.nav__links a {
  color: var(--ink-light);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--duration-fast);
}
.nav__links a:hover { color: var(--brand); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-brand-lg);
  transform: translateY(-1px);
  color: #fff;
}

.btn--primary-lg {
  background: var(--brand);
  color: #fff;
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  box-shadow: var(--shadow-brand);
  border-radius: var(--radius-lg);
}
.btn--primary-lg:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-brand-lg);
  transform: translateY(-2px);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}
.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
}
.btn--ghost:hover { color: var(--brand); background: var(--brand-light); }

.btn--block { width: 100%; }

/* Animated pulse for primary CTA */
.btn--pulse { animation: btnPulse 2.5s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: var(--shadow-brand); }
  50% { box-shadow: var(--shadow-brand-lg), 0 0 0 8px var(--brand-glow); }
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-out);
}
.card:hover {
  border-color: rgba(13,147,115,.25);
  box-shadow: var(--shadow-md);
}
.card--featured {
  border: 2px solid var(--brand);
  background: linear-gradient(135deg, var(--brand-light), #F0FDF9);
}
.card--compact { padding: var(--space-5) var(--space-6); }

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  line-height: 1.6;
}
.badge--brand { background: var(--brand); color: #fff; }
.badge--purple { background: #6366F1; color: #fff; }
.badge--amber { background: var(--accent); color: #fff; }
.badge--success { background: var(--success); color: #fff; }
.badge--subtle { background: var(--canvas-alt); color: var(--muted); }
.badge--stock {
  background: #ECFDF5;
  color: var(--success);
  border: 1px solid #A7F3D0;
}

/* ─── BNPL Badges ─── */
.bnpl {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 500;
}
.bnpl__icon {
  height: 16px;
  width: auto;
  opacity: .7;
}
.bnpl-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ─── Price Display ─── */
.price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.price--lg { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); }
.price--md { font-size: var(--text-2xl); }
.price__unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--faint);
  font-weight: 500;
}
.price__was {
  font-size: var(--text-sm);
  color: var(--faint);
  text-decoration: line-through;
  font-weight: 400;
}
.price__save {
  font-size: var(--text-xs);
  color: var(--success);
  font-weight: 700;
  font-family: var(--font-body);
}

/* ─── Section ─── */
.section {
  padding: var(--space-16) 0;
}
.section__header {
  margin-bottom: var(--space-10);
}
.section__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 560px;
}

/* ─── FAQ Accordion ─── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--duration-fast);
}
.faq-item:hover { border-color: rgba(13,147,115,.2); }
.faq-q {
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--faint);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
  width: 24px;
  text-align: center;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
  color: var(--brand);
}
.faq-a {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer__col h4 {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
  padding: var(--space-1) 0;
}
.footer__col a:hover { color: var(--brand); }
.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--faint);
  line-height: 1.7;
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--faint);
  margin-top: var(--space-4);
}

/* ─── Mobile Sticky CTA ─── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  z-index: 150;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.mobile-cta .btn { width: 100%; }

@media (max-width: 640px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-in {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.text-muted { color: var(--muted); }
.text-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav__links { gap: var(--space-4); }
  .nav__links a { font-size: var(--text-xs); }
  .card { padding: var(--space-6); }
  .section { padding: var(--space-10) 0; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .card { padding: var(--space-5); border-radius: var(--radius-lg); }
}
