/* ============================================================================
   HERBASSADOR — Landing page (v2 — animated, mobile-first)
   ============================================================================ */

/* Base resets */
body { background: var(--color-bg); scroll-behavior: smooth; }
.lucide, [data-lucide] { width: 20px; height: 20px; stroke-width: 2; }
a { text-decoration: none; color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }
section { scroll-margin-top: 80px; }

/* ──────────────────────────────────────────────
   TOP NAV
────────────────────────────────────────────── */
.lnav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s;
}
.lnav.scrolled { box-shadow: 0 4px 24px rgba(92,23,168,.1); }
.lnav__inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.lnav__brand {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: 1.05rem;
}
.lnav__brand .mark {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  display: grid; place-items: center; color: #fff;
  transition: transform .2s;
}
.lnav__brand:hover .mark { transform: rotate(-8deg) scale(1.05); }
.lnav__links { display: none; gap: var(--space-6); }
.lnav__links a {
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--color-text-muted); position: relative; padding-bottom: 2px;
}
.lnav__links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--color-brand); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s;
}
.lnav__links a:hover { color: var(--color-brand); }
.lnav__links a:hover::after { transform: scaleX(1); }
.lnav__cta { display: flex; align-items: center; gap: var(--space-2); }

/* Mobile hamburger */
.lnav__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-lg);
  background: var(--color-brand-faint); color: var(--color-brand);
  cursor: pointer; border: none; font-family: inherit; flex-shrink: 0;
  transition: background .2s;
}
.lnav__toggle:hover { background: var(--color-brand-lighter); }

/* Mobile drawer */
.lnav__drawer {
  display: none; flex-direction: column; gap: 4px;
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--color-border);
  background: #fff;
  animation: drawerDown .2s ease;
}
.lnav__drawer.open { display: flex; }
.lnav__drawer a {
  padding: 12px var(--space-3); border-radius: var(--radius-lg);
  font-weight: var(--weight-medium); font-size: var(--text-base);
  color: var(--color-text-muted); transition: background .15s, color .15s;
}
.lnav__drawer a:hover { background: var(--color-brand-faint); color: var(--color-brand); }
.lnav__drawer .drawer-divider { height: 1px; background: var(--color-border); margin: 6px 0; }
.lnav__drawer .btn { text-align: center; justify-content: center; }

@keyframes drawerDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────
   HERO SLIDER
────────────────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--purple-50) 0%, #fff 60%);
}

/* Slides */
.hero-slides { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.hero-slide {
  min-width: 100%; display: grid; align-items: center;
  padding: var(--space-14) 0 var(--space-10);
  gap: var(--space-8);
}

/* Hero text content */
.hero-slide__content { padding: 0 var(--space-5); }
.hero-slide__pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-brand-faint); color: var(--color-brand);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  padding: 6px 14px; border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.hero-slide h1 {
  font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.05;
  letter-spacing: -.03em; margin-bottom: var(--space-4);
}
.hero-slide h1 .accent { color: var(--color-brand); }
.hero-slide__sub {
  color: var(--color-text-muted); font-size: var(--text-md);
  max-width: 48ch; margin-bottom: var(--space-6);
  line-height: 1.6;
}
.hero-slide__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-slide__trust {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-5); font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero-slide__trust [data-lucide] { width: 16px; height: 16px; color: var(--color-success); }

/* Hero visual — real image with savings card overlay */
.hero-slide__visual {
  padding: 0 var(--space-5);
  position: relative; display: flex; justify-content: center;
}
.hero-img-wrap {
  position: relative; border-radius: var(--radius-2xl);
  overflow: hidden; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}
.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(92,23,168,.18) 0%, transparent 60%);
}

/* Floating savings card over image */
.heroCard {
  position: absolute; bottom: -16px; right: -8px;
  background: linear-gradient(150deg, var(--purple-700), var(--purple-500));
  border-radius: var(--radius-xl); padding: var(--space-4) var(--space-5);
  color: #fff; box-shadow: var(--shadow-xl);
  width: min(220px, 54%); overflow: hidden;
  animation: cardFloat 4s ease-in-out infinite;
}
.heroCard::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 100px; height: 100px; background: rgba(255,255,255,.08);
  border-radius: 50%;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.heroCard__label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--purple-200); margin-bottom: 4px;
}
.heroCard__amount {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: var(--weight-extrabold); margin-bottom: var(--space-3);
}
.heroCard__bar {
  height: 6px; background: rgba(255,255,255,.2);
  border-radius: var(--radius-full); overflow: hidden; margin-bottom: var(--space-3);
}
.heroCard__bar i {
  display: block; height: 100%; width: 68%; background: #fff;
  border-radius: var(--radius-full);
  animation: barGrow 1.2s ease .4s both;
}
@keyframes barGrow {
  from { width: 0; }
}
.heroCard__row {
  display: flex; justify-content: space-between; font-size: var(--text-xs);
  padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.15);
}

/* Social proof chips */
.hero-avatars {
  display: flex; align-items: center; gap: 10px; margin-top: var(--space-5);
}
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff;
  background: var(--purple-300); margin-left: -8px; overflow: hidden;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  color: var(--purple-800);
}
.avatar-stack .av:first-child { margin-left: 0; }
.hero-avatars__text { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.3; }
.hero-avatars__text strong { color: var(--color-text); display: block; }

/* Slider controls */
.slider-nav {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3); padding: var(--space-4) 0 var(--space-6);
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--purple-200);
  border: none; cursor: pointer; transition: all .25s; padding: 0;
}
.slider-dot.active { background: var(--color-brand); width: 24px; border-radius: 4px; }
.slider-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-brand); display: grid; place-items: center;
  cursor: pointer; transition: background .2s, border-color .2s; box-shadow: var(--shadow-xs);
}
.slider-btn:hover { background: var(--color-brand-faint); border-color: var(--color-brand); }

/* ──────────────────────────────────────────────
   STAT BAND
────────────────────────────────────────────── */
.band { background: var(--purple-800); color: #fff; }
.band__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-6); padding: var(--space-10) 0;
}
.band__item { text-align: center; }
.band__value {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold); color: #fff;
}
.band__label { font-size: var(--text-xs); color: var(--purple-200); margin-top: 4px; }

/* ──────────────────────────────────────────────
   SCROLL REVEAL UTILITY
────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }

/* stagger children */
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .45s ease, transform .45s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .08s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .16s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .24s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .32s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .40s; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .stagger > * {
    opacity: 1; transform: none; transition: none;
  }
  .heroCard { animation: none; }
  .hero-slides { transition: none; }
}

/* ──────────────────────────────────────────────
   SECTIONS
────────────────────────────────────────────── */
.sec { padding: var(--space-16) 0; }
.sec__eyebrow {
  text-align: center; color: var(--color-brand); font-weight: var(--weight-semibold);
  font-size: var(--text-sm); letter-spacing: .04em; text-transform: uppercase;
}
.sec__title {
  text-align: center; font-size: clamp(1.6rem,5vw,2.25rem);
  letter-spacing: -.02em; margin: var(--space-2) 0 var(--space-3);
}
.sec__lead {
  text-align: center; color: var(--color-text-muted);
  max-width: 52ch; margin: 0 auto var(--space-10);
}

/* ──────────────────────────────────────────────
   HOW IT WORKS — STEPS
────────────────────────────────────────────── */
.steps2 { display: grid; gap: var(--space-5); }
.step2 {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: var(--shadow-xs); position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  cursor: default;
}
.step2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(92,23,168,.12);
  border-color: var(--purple-300);
}
.step2__n {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  background: var(--color-brand-faint); color: var(--color-brand);
  display: grid; place-items: center; margin-bottom: var(--space-4);
  transition: background .25s, color .25s;
}
.step2:hover .step2__n { background: var(--color-brand); color: #fff; }
.step2__n [data-lucide] { width: 20px; height: 20px; }
.step2 h3 { font-size: var(--text-md); margin-bottom: 6px; }
.step2 p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ──────────────────────────────────────────────
   MODEL CARDS
────────────────────────────────────────────── */
.model { display: grid; gap: var(--space-5); }
.modelCard {
  border-radius: var(--radius-2xl); padding: var(--space-8); text-align: center;
  transition: transform .25s; cursor: default;
}
.modelCard:hover { transform: scale(1.02); }
.modelCard--m { background: var(--color-success-bg); }
.modelCard--p { background: var(--color-brand-faint); }
.modelCard__pct {
  font-family: var(--font-display); font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold); line-height: 1;
}
.modelCard--m .modelCard__pct { color: var(--color-success); }
.modelCard--p .modelCard__pct { color: var(--color-brand); }
.modelCard h3 { margin: var(--space-3) 0 6px; }
.modelCard p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ──────────────────────────────────────────────
   TRUST ITEMS
────────────────────────────────────────────── */
.trust { display: grid; gap: var(--space-5); }
.trustItem {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-5); border-radius: var(--radius-xl);
  background: var(--color-bg-subtle);
  border: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.trustItem:hover {
  border-color: var(--purple-200);
  box-shadow: 0 4px 20px rgba(92,23,168,.08);
  transform: translateX(4px);
}
.trustItem__icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  background: var(--color-surface); color: var(--color-brand);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: background .2s, color .2s;
}
.trustItem:hover .trustItem__icon { background: var(--color-brand); color: #fff; }
.trustItem h3 { font-size: var(--text-md); margin-bottom: 4px; }
.trustItem p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ──────────────────────────────────────────────
   FAQ
────────────────────────────────────────────── */
/* PILLARS (About section) */
.pillars { display: grid; gap: var(--space-5); }
.pillarItem {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillarItem:hover { transform: translateY(-2px); border-color: var(--purple-200); box-shadow: 0 8px 24px rgba(92,23,168,.08); }
.pillarItem__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-brand-faint);
  color: var(--color-brand);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, color .25s ease;
}
.pillarItem:hover .pillarItem__icon { background: var(--color-brand); color: #fff; }
.pillarItem h3 { font-size: var(--text-md); margin-bottom: 4px; }
.pillarItem p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.6; }

/* FOUNDER */
.founder { display: grid; gap: var(--space-8); align-items: center; }
.founder__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(92,23,168,.14);
}
.founder__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-brand-faint); color: var(--color-brand);
  font-size: var(--text-xs); font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: var(--space-3);
}
.founder__content h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -.01em; margin-bottom: 4px; }
.founder__content .founder__role { color: var(--color-brand); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-4); }
.founder__content p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-4); }
.founder__orgs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.founder__orgs span {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  padding: 6px 12px; border-radius: 999px;
  font-size: var(--text-xs); color: var(--color-text);
}

.faq { max-width: 760px; margin: 0 auto; }
.faqItem {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  margin-bottom: var(--space-3); overflow: hidden; background: var(--color-surface);
  transition: border-color .2s, box-shadow .2s;
}
.faqItem:hover { border-color: var(--purple-200); }
.faqItem.open { border-color: var(--purple-300); box-shadow: 0 4px 16px rgba(92,23,168,.08); }
.faqItem__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding: var(--space-5); font-weight: var(--weight-semibold);
  font-size: var(--text-base); text-align: left; cursor: pointer; background: none; border: none;
  font-family: inherit; color: var(--color-text);
}
.faqItem__q [data-lucide] {
  transition: transform .3s cubic-bezier(.4,0,.2,1); color: var(--color-brand); flex-shrink: 0;
}
.faqItem.open .faqItem__q [data-lucide] { transform: rotate(180deg); }
.faqItem__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
  color: var(--color-text-muted); font-size: var(--text-sm);
}
.faqItem__a div { padding: 0 var(--space-5) var(--space-5); line-height: 1.7; }

/* ──────────────────────────────────────────────
   CTA BAND
────────────────────────────────────────────── */
.cta2 {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  border-radius: var(--radius-2xl); padding: var(--space-12) var(--space-6);
  text-align: center; color: #fff; margin: var(--space-16) 0;
  position: relative; overflow: hidden;
}
.cta2::before {
  content: ""; position: absolute; top: -60px; left: -60px;
  width: 200px; height: 200px; background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.cta2::after {
  content: ""; position: absolute; bottom: -80px; right: -40px;
  width: 280px; height: 280px; background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.cta2 h2 { color: #fff; font-size: clamp(1.6rem,5vw,2.25rem); letter-spacing: -.02em; }
.cta2 p { color: rgba(255,255,255,.85); margin: var(--space-3) 0 var(--space-6); }
.cta2__urgency {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full); padding: 6px 16px;
  font-size: var(--text-xs); color: rgba(255,255,255,.9);
  margin-bottom: var(--space-5);
}
.cta2__urgency i { width: 14px; height: 14px; animation: pulse 2s infinite; }
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .5; }
}

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--color-border); padding: var(--space-10) 0; color: var(--color-text-muted); }
.foot__grid { display: grid; gap: var(--space-6); margin-bottom: var(--space-8); }
.foot__brand {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  display: flex; align-items: center; gap: var(--space-2);
  color: var(--color-text); margin-bottom: var(--space-3);
}
.foot__brand .mark {
  width: 30px; height: 30px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  display: grid; place-items: center; color: #fff;
}
.foot a {
  font-size: var(--text-sm); color: var(--color-text-muted);
  display: block; padding: 4px 0; transition: color .15s;
}
.foot a:hover { color: var(--color-brand); }
.foot__bottom {
  border-top: 1px solid var(--color-border); padding-top: var(--space-5);
  font-size: var(--text-xs); display: flex; flex-wrap: wrap;
  gap: var(--space-3); justify-content: space-between;
}

/* ──────────────────────────────────────────────
   BUTTONS (shared)
────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
  font-weight: var(--weight-semibold); border-radius: var(--radius-lg);
  cursor: pointer; border: none; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  padding: 10px 20px; font-size: var(--text-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(92,23,168,.2); }
.btn:active { transform: none; box-shadow: none; }
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-dark); }
.btn-secondary { background: transparent; color: var(--color-brand); border: 1.5px solid var(--color-brand); }
.btn-secondary:hover { background: var(--color-brand-faint); }
.btn-ghost { background: transparent; color: var(--color-text-muted); }
.btn-ghost:hover { background: var(--color-bg-subtle); color: var(--color-text); box-shadow: none; }
.btn-sm { padding: 7px 14px; font-size: var(--text-xs); }
.btn-lg { padding: 14px 28px; font-size: var(--text-base); }
.btn [data-lucide] { width: 17px; height: 17px; }

/* Alert */
.alert { border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); font-size: var(--text-sm); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); }

/* ──────────────────────────────────────────────
   RESPONSIVE — TABLET & DESKTOP
────────────────────────────────────────────── */
@media (min-width: 768px) {
  .lnav__links { display: flex; }
  .lnav__toggle { display: none; }
  .lnav__drawer { display: none !important; }

  .hero-slide {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    padding: var(--space-16) 0 var(--space-14);
  }
  .hero-slide__content { padding: 0 var(--space-5); }
  .hero-slide__visual { padding: 0 var(--space-5); }
  .heroCard { bottom: -20px; right: 0; width: 210px; }

  .band__grid { grid-template-columns: repeat(4, 1fr); }
  .steps2 { grid-template-columns: repeat(3, 1fr); }
  .model { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .heroCard { width: 230px; }
  .founder { grid-template-columns: .85fr 1.15fr; }
}
