/* HerBalance UI Kit — Website
 * Layered styles on top of /colors_and_type.css
 */

* { box-sizing: border-box; }

.hb-shell {
  background: var(--hb-bg-pink);
  color: var(--hb-ink);
  min-height: 100vh;
}

.hb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.hb-container--narrow { max-width: 760px; }

/* ─── Nav ─── */
.hb-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--hb-bg-pink);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms;
}
.hb-nav.is-stuck { border-bottom-color: var(--hb-line); }
.hb-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.hb-nav__brand {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 500;
  color: var(--hb-pink);
  letter-spacing: -0.015em;
  text-decoration: none;
}
.hb-nav__links {
  display: flex; gap: 36px; align-items: center;
}
.hb-nav__link {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500;
  color: var(--hb-purple);
  text-decoration: none;
  transition: color 140ms;
}
.hb-nav__link:hover { color: var(--hb-pink); }
.hb-nav__cart {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--hb-purple);
  background: transparent; border: 1.5px solid var(--hb-purple);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-family: var(--font-sans);
  transition: all 140ms;
}
.hb-nav__cart:hover { background: var(--hb-purple); color: #fff; }

/* ─── Buttons ─── */
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  border-radius: 12px; border: none; cursor: pointer;
  padding: 16px 28px;
  transition: all 220ms cubic-bezier(.2,.7,.2,1);
  text-decoration: none;
  white-space: nowrap;
}
.hb-btn--lg { font-size: 17px; padding: 18px 32px; }
.hb-btn--primary {
  background: var(--hb-pink); color: #fff;
  box-shadow: 0 6px 18px rgba(252,103,144,.28);
}
.hb-btn--primary:hover { background: var(--hb-pink-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(252,103,144,.32); }
.hb-btn--primary:active { transform: scale(.98); }
.hb-btn--secondary {
  background: transparent; color: var(--hb-purple);
  border: 2px solid var(--hb-purple);
}
.hb-btn--secondary:hover { background: var(--hb-purple); color: #fff; }
.hb-btn--ghost {
  background: transparent; color: var(--hb-purple);
  text-decoration: underline; text-decoration-color: var(--hb-pink);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  padding: 16px 8px;
}

/* ─── Hero ─── */
.hb-hero { padding: 80px 0 96px; }
.hb-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--hb-pink);
  margin-bottom: 28px;
}
.hb-hero__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--hb-purple);
  margin: 0 0 28px;
  max-width: 14ch;
  text-wrap: balance;
}
.hb-hero__headline em {
  color: var(--hb-pink);
  font-style: italic;
  font-weight: 500;
}
.hb-hero__lead {
  font-family: var(--font-sans);
  font-size: 20px; line-height: 1.5;
  color: var(--hb-ink-soft);
  max-width: 52ch;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.hb-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hb-hero__sub {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--hb-mute);
}

.hb-hero__layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hb-hero__visual {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(135deg, #f4dada 0%, #f9ecec 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(106,76,122,.14);
}
.hb-hero__visual--slot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #f4dada 0%, #f9ecec 100%);
  box-shadow: 0 20px 48px rgba(106,76,122,.14);
}
.hb-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; text-align: center;
}
.hb-photo-placeholder__label {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--hb-purple-soft);
  margin-bottom: 12px;
}
.hb-photo-placeholder__desc {
  font-family: var(--font-serif);
  font-size: 22px; line-height: 1.3;
  color: var(--hb-purple);
  font-style: italic;
  max-width: 22ch;
}

/* ─── Section ─── */
.hb-section { padding: 128px 0; }
.hb-section--tight { padding: 96px 0; }
.hb-section--alt { background: var(--hb-bg-pink-warm); }
.hb-section--deep { background: var(--hb-purple); color: #fff; }
.hb-section--cream { background: var(--hb-cream); }

.hb-section__eyebrow {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--hb-pink);
  margin-bottom: 20px;
}
.hb-section--deep .hb-section__eyebrow { color: var(--hb-pink-soft); }

.hb-section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--hb-purple);
  margin: 0 0 24px;
  max-width: 22ch;
  text-wrap: balance;
}
.hb-section--deep .hb-section__title { color: #fff; }
.hb-section__title em { color: var(--hb-pink); font-style: italic; font-weight: 500; }

.hb-section__lead {
  font-family: var(--font-sans);
  font-size: 19px; line-height: 1.55;
  color: var(--hb-ink-soft);
  max-width: 60ch;
  margin: 0 0 56px;
}
.hb-section--deep .hb-section__lead { color: rgba(255,255,255,.78); }

/* ─── Pillars grid ─── */
.hb-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hb-pillar {
  background: var(--hb-cream);
  border: 1px solid var(--hb-line);
  border-radius: 16px;
  padding: 32px;
  transition: all 220ms;
}
.hb-pillar:hover { box-shadow: 0 8px 24px rgba(106,76,122,.10); transform: translateY(-2px); }
.hb-pillar__num {
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 700;
  color: var(--hb-pink);
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.hb-pillar__title {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  color: var(--hb-purple);
  line-height: 1.2;
  margin: 0 0 12px;
}
.hb-pillar__body {
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.55;
  color: var(--hb-ink-soft);
  margin: 0;
}

/* ─── Science explainer ─── */
.hb-science { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.hb-science__step { display: flex; gap: 20px; margin-bottom: 32px; }
.hb-science__step-num {
  flex: 0 0 44px; height: 44px; border-radius: 999px;
  background: var(--hb-pink-soft); color: var(--hb-purple-deep);
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
}
.hb-science__step-title {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  color: var(--hb-purple);
  margin: 6px 0 8px;
  line-height: 1.2;
}
.hb-science__step-body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.6;
  color: var(--hb-ink-soft);
  margin: 0;
}

/* ─── Testimonial ─── */
.hb-testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.hb-testimonial {
  background: var(--hb-cream);
  border: 1px solid var(--hb-line);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(106,76,122,.06);
}
.hb-testimonial__quote {
  font-family: var(--font-serif);
  font-size: 22px; line-height: 1.35;
  color: var(--hb-ink);
  font-weight: 500;
  margin: 0 0 24px;
  flex: 1;
  text-wrap: pretty;
}
.hb-testimonial__who { display: flex; align-items: center; gap: 12px; }
.hb-testimonial__avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--hb-pink-soft); color: var(--hb-purple-deep);
  font-family: var(--font-serif); font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
}
.hb-testimonial__name {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--hb-purple);
}
.hb-testimonial__meta {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--hb-mute);
}

/* ─── Product card ─── */
.hb-product {
  background: var(--hb-cream);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  border: 1px solid var(--hb-line);
}
.hb-product__visual {
  aspect-ratio: 1; border-radius: 16px;
  background: linear-gradient(160deg, #f4e2e2 0%, #fdf6f3 100%);
  position: relative; overflow: hidden;
}

/* ─── Guarantee ─── */
.hb-guarantee { text-align: center; }
.hb-guarantee__seal {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 200px; height: 200px;
  border-radius: 999px;
  background: var(--hb-pink);
  color: #fff;
  font-family: var(--font-serif);
  margin-bottom: 40px;
  box-shadow: 0 20px 48px rgba(252,103,144,.32);
}
.hb-guarantee__seal-num { font-size: 80px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.hb-guarantee__seal-label { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; }

/* ─── FAQ ─── */
.hb-faq { max-width: 760px; margin: 0 auto; }
.hb-faq__item {
  border-bottom: 1px solid var(--hb-line);
  padding: 24px 0;
}
.hb-faq__q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-serif); font-size: 22px; font-weight: 500;
  color: var(--hb-purple); cursor: pointer; gap: 24px;
  background: none; border: none; padding: 0; width: 100%; text-align: left;
}
.hb-faq__icon {
  flex: 0 0 28px; height: 28px; display: grid; place-items: center;
  color: var(--hb-pink); transition: transform 220ms;
}
.hb-faq__item.is-open .hb-faq__icon { transform: rotate(45deg); }
.hb-faq__a {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  color: var(--hb-ink-soft);
  max-height: 0; overflow: hidden;
  transition: max-height 320ms cubic-bezier(.2,.7,.2,1), padding 320ms;
  padding-top: 0;
}
.hb-faq__item.is-open .hb-faq__a { max-height: 400px; padding-top: 16px; }

/* ─── Footer ─── */
.hb-footer {
  background: var(--hb-purple);
  color: rgba(255,255,255,.78);
  padding: 80px 0 40px;
}
.hb-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 64px; }
.hb-footer__brand {
  font-family: var(--font-serif); font-size: 36px; font-weight: 500; color: #fff;
  letter-spacing: -.015em;
  margin-bottom: 12px;
}
.hb-footer__tag { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; max-width: 32ch; }
.hb-footer__col h5 {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--hb-pink-soft);
  margin: 0 0 16px;
}
.hb-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hb-footer__col a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; }
.hb-footer__col a:hover { color: var(--hb-pink); }
.hb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px; display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.6);
}

/* ─── Email capture ─── */
.hb-email {
  display: flex; gap: 8px; max-width: 460px;
  background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 2px 8px rgba(106,76,122,.08);
  border: 1px solid var(--hb-line);
}
.hb-email input {
  flex: 1; border: none; background: transparent; outline: none;
  padding: 12px 14px; font-family: var(--font-sans); font-size: 15px;
  color: var(--hb-ink);
}
.hb-email input::placeholder { color: var(--hb-mute); }

/* Pulse highlight on key words inside any block */
.hb-pulse { color: var(--hb-pink); font-style: italic; }
.hb-pulse-mark {
  background-image: linear-gradient(transparent 65%, var(--hb-pink-soft) 65%);
  background-repeat: no-repeat;
  padding: 0 .05em;
}

/* Cart drawer (overlay) */
.hb-cart-drawer {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
}
.hb-cart-drawer.is-open { pointer-events: auto; }
.hb-cart-drawer__scrim {
  position: absolute; inset: 0; background: rgba(43,34,48,.4);
  opacity: 0; transition: opacity 220ms;
}
.hb-cart-drawer.is-open .hb-cart-drawer__scrim { opacity: 1; }
.hb-cart-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%;
  background: var(--hb-bg-pink);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 48px rgba(106,76,122,.14);
}
.hb-cart-drawer.is-open .hb-cart-drawer__panel { transform: translateX(0); }
.hb-cart-drawer__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 32px; border-bottom: 1px solid var(--hb-line);
}
.hb-cart-drawer__title { font-family: var(--font-serif); font-size: 28px; color: var(--hb-purple); font-weight: 500; }
.hb-cart-drawer__close { background: none; border: none; cursor: pointer; color: var(--hb-purple); }
.hb-cart-drawer__body { flex: 1; padding: 24px 32px; overflow: auto; }
.hb-cart-drawer__footer { padding: 24px 32px; border-top: 1px solid var(--hb-line); background: var(--hb-cream); }

.hb-cart-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hb-line); }
.hb-cart-line__img { width: 72px; height: 72px; border-radius: 12px; background: linear-gradient(160deg,#f4e2e2,#fdf6f3); flex: 0 0 72px; }
.hb-cart-line__title { font-family: var(--font-serif); font-size: 17px; color: var(--hb-purple); font-weight: 500; margin: 0 0 4px; }
.hb-cart-line__meta { font-family: var(--font-sans); font-size: 13px; color: var(--hb-mute); }
.hb-cart-line__price { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--hb-purple); margin-top: 8px; }
.hb-cart-line__qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.hb-cart-line__qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--hb-line-strong); background: #fff; color: var(--hb-purple); cursor: pointer; font-size: 16px; }

.hb-totals { display: flex; justify-content: space-between; font-family: var(--font-sans); margin-bottom: 16px; }
.hb-totals__label { color: var(--hb-ink-soft); }
.hb-totals__val { color: var(--hb-purple); font-weight: 600; font-size: 18px; }

@media (max-width: 920px) {
  .hb-hero__layout, .hb-science, .hb-product { grid-template-columns: 1fr; gap: 40px; }
  .hb-pillars { grid-template-columns: repeat(2, 1fr); }
  .hb-testimonials { grid-template-columns: 1fr; }
  .hb-section { padding: 80px 0; }
  .hb-footer__top { grid-template-columns: 1fr 1fr; }
}
