/**
 * Hippo Life mid-layer brand shell (based on the shopmollecule.com gate).
 * Theme: Happy Hippo (happyhippo.com) — hot pink + leaf green, white surfaces,
 * rounded 12px buttons, Poppins headings / Source Sans Pro body.
 */

:root {
  /* Happy Hippo palette */
  --hh-pink: #f04e98;         /* primary: buttons, announcement bar, footer, headings */
  --hh-pink-dark: #d93a84;    /* button hover */
  --hh-pink-tint: #fdedf5;    /* 10% pink surfaces */
  --hh-pink-pale: #ffdeed;    /* text on pink */
  --hh-green: #3faf49;        /* logo green, accents */
  --hh-green-dark: #328b39;   /* green text */
  --hh-green-tint: #e4ffe6;   /* pale green surfaces */
  --hh-ink: #333333;          /* headings */
  --hh-text: #555555;         /* body text */
  --hh-muted: #999999;        /* small labels */
  --hh-line: #eeeeee;         /* borders */
  --hh-white: #ffffff;

  /* Mapped onto the original token names so every rule below keeps working */
  --mollecule-teal: var(--hh-pink);
  --mollecule-charcoal: var(--hh-ink);
  --mollecule-sage: var(--hh-green);
  --mollecule-grey: var(--hh-line);
  --mollecule-cream: var(--hh-white);
  --mollecule-aesthetics: var(--hh-pink);
  --mollecule-metabolic: var(--hh-green);
  --mollecule-vitality: var(--hh-pink-pale);
  --mollecule-recovery: var(--hh-green);
  --mollecule-cognitive: var(--hh-pink);
  --font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Source Sans 3', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--hh-text);
  background: var(--mollecule-cream);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Spectrum bar */
.molecule-spectrum-bar {
  position: relative;
  z-index: 1000;
  height: 3px;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--hh-pink);
}

.molecule-spectrum-bar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  height: 100%;
  background-image: linear-gradient(
    90deg,
    var(--mollecule-aesthetics) 0%,
    var(--mollecule-metabolic) 20%,
    var(--mollecule-vitality) 40%,
    var(--mollecule-recovery) 60%,
    var(--mollecule-cognitive) 80%,
    var(--mollecule-aesthetics) 100%
  );
  background-size: 50% 100%;
  animation: mollecule-spectrum-slide 14s linear infinite;
}

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

/* Announcement */
.announcement-bar {
  background: var(--hh-pink);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hh-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.site-header__logo {
  width: auto;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--hh-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--hh-pink);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(88vh, 820px);
  padding: clamp(3rem, 10vw, 6.5rem) 1.25rem clamp(3.5rem, 8vw, 5.5rem);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(160deg, #ff7ab8 0%, var(--hh-pink) 55%, #d93a84 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.12), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--hh-pink-pale);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  background: #fff;
  color: var(--hh-pink);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.hero__cta:hover {
  background: var(--hh-pink-pale);
  color: var(--hh-pink-dark);
  transform: translateY(-1px);
}

/* Statement */
.statement {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.statement__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--mollecule-teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.statement__heading {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--hh-pink);
}

.statement__body {
  margin: 0;
  max-width: 36rem;
  color: var(--hh-text);
  font-size: 1rem;
  line-height: 1.7;
}

/* Brand band */
.brand-band {
  background: var(--hh-pink-tint);
  color: var(--hh-ink);
  border-top: 1px solid var(--hh-line);
  border-bottom: 1px solid var(--hh-line);
  padding: clamp(3rem, 7vw, 4.5rem) 1.25rem;
  text-align: center;
}

.brand-band__logo {
  width: min(280px, 70vw);
  margin: 0 auto 1.25rem;
}

.brand-band__heading {
  margin: 0 auto 0.85rem;
  max-width: 28rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.brand-band__disclaimer {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--hh-text);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--hh-pink);
  color: var(--hh-pink-pale);
  padding: 2.25rem 1.25rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.8rem;
}

.site-footer a:hover {
  color: #fff;
}

/* Age gate */
html.molecule-age-gate-pending,
html.molecule-age-gate-pending body,
body.molecule-age-gate-open {
  overflow: hidden;
}

.molecule-age-gate {
  width: min(92vw, 480px);
  max-width: none;
  max-height: min(94svh, 900px);
  padding: 3px;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  color: var(--hh-ink);
  background: var(--hh-pink);
  box-shadow: 0 28px 90px rgba(120, 20, 70, 0.35);
}

.molecule-age-gate::backdrop {
  background: rgba(120, 20, 70, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.molecule-age-gate__beam {
  display: none;
}

.molecule-age-gate--animated .molecule-age-gate__beam {
  position: absolute;
  z-index: 0;
  inset: -3px;
  display: block;
  overflow: hidden;
  border-radius: 23px;
  pointer-events: none;
}

.molecule-age-gate--animated .molecule-age-gate__beam::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170%;
  aspect-ratio: 1;
  background: conic-gradient(
    transparent 0deg 235deg,
    rgba(255, 255, 255, 0.35) 250deg,
    #fff 278deg,
    var(--hh-green) 300deg,
    var(--hh-pink-pale) 322deg,
    transparent 345deg
  );
  transform: translate(-50%, -50%) rotate(0deg);
  animation: mollecule-gate-orbit 7s linear infinite;
}

.molecule-age-gate__panel {
  position: relative;
  z-index: 1;
  max-height: calc(min(94svh, 900px) - 2px);
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 1.9rem);
  border: 0;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 100% 0%, var(--hh-pink-tint), transparent 55%),
    var(--hh-white);
}

.molecule-age-gate__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--hh-pink-tint);
}

.molecule-age-gate__logo {
  display: block;
  width: min(170px, 50vw);
  height: auto;
}

/* White logo variant — use on pink surfaces (footer) */
.brand-band__logo--white,
.site-footer__logo {
  width: 150px;
  height: auto;
}

.molecule-age-gate__eyebrow,
.molecule-age-gate__field-label {
  color: var(--hh-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.molecule-age-gate__intro {
  padding: clamp(1.75rem, 5vw, 2.75rem) 0 1.5rem;
}

.molecule-age-gate--simple .molecule-age-gate__intro {
  padding: 1.1rem 0 0.9rem;
  text-align: center;
}

.molecule-age-gate__eyebrow:empty {
  display: none;
}

.molecule-age-gate__eyebrow {
  margin: 0 0 0.65rem;
}

.molecule-age-gate__title {
  margin: 0;
  color: var(--hh-pink);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.molecule-age-gate__form {
  display: grid;
  gap: 0.7rem;
}

.molecule-age-gate__check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  color: var(--hh-ink);
  font-size: 0.925rem;
  line-height: 1.5;
  cursor: pointer;
}

.molecule-age-gate__check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.molecule-age-gate__checkbox {
  position: relative;
  box-sizing: border-box;
  display: block;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  aspect-ratio: 1 / 1;
  margin-top: 1px;
  border: 2px solid var(--hh-pink);
  border-radius: 6px;
  background: var(--hh-white);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.molecule-age-gate__check input:checked + .molecule-age-gate__checkbox {
  background: var(--hh-pink);
  border-color: var(--hh-pink);
}

.molecule-age-gate__check input:checked + .molecule-age-gate__checkbox::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.molecule-age-gate__check input:focus-visible + .molecule-age-gate__checkbox {
  outline: 2px solid var(--hh-pink);
  outline-offset: 3px;
}

.molecule-age-gate__validation {
  margin: 0;
  color: #a13a2b;
  font-size: 0.8rem;
}

.molecule-age-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.molecule-age-gate__decline,
.molecule-age-gate__enter {
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font: inherit;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.molecule-age-gate__decline {
  border: 2px solid var(--hh-line);
  color: var(--hh-text);
  background: var(--hh-white);
}

.molecule-age-gate__enter {
  border: 2px solid var(--hh-pink);
  color: #fff;
  background: var(--hh-pink);
  box-shadow: 0 6px 18px rgba(240, 78, 152, 0.35);
}

.molecule-age-gate__enter:disabled {
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
  background: #f7a9cd;
  box-shadow: none;
  cursor: not-allowed;
}

.molecule-age-gate__decline:hover {
  border-color: var(--hh-text);
  transform: translateY(-1px);
}

.molecule-age-gate__enter:not(:disabled):hover {
  background: var(--hh-pink-dark);
  border-color: var(--hh-pink-dark);
  transform: translateY(-1px);
}

/* Promo badge (30% off) */
.molecule-age-gate__promo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: var(--hh-green-tint);
  border: 1.5px dashed var(--hh-green);
  color: var(--hh-green-dark);
}

.molecule-age-gate__promo-pct {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hh-green);
  letter-spacing: -0.02em;
}

.molecule-age-gate__promo-pct small {
  font-size: 0.55em;
  vertical-align: top;
}

.molecule-age-gate__promo-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--hh-ink);
}

.molecule-age-gate__promo-text strong {
  color: var(--hh-green-dark);
}


.molecule-age-gate__legal {
  margin: 0.9rem auto 0;
  color: var(--hh-muted);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

@keyframes mollecule-gate-orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media screen and (max-width: 749px) {
  .site-header__logo {
    height: 34px;
  }

  .site-nav {
    display: none;
  }
}

@media screen and (max-width: 549px) {
  .molecule-age-gate {
    width: calc(100vw - 1rem);
    max-height: calc(100svh - 1rem);
    border-radius: 18px;
  }

  .molecule-age-gate__panel {
    max-height: calc(100svh - 1rem - 6px);
    padding: 1.25rem;
    border-radius: 15px;
  }

  .molecule-age-gate__title {
    font-size: clamp(2.2rem, 13vw, 3.25rem);
  }

  .molecule-age-gate__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .molecule-spectrum-bar::before {
    animation: none;
    width: 100%;
    background-size: 100% 100%;
  }

  .molecule-age-gate--animated .molecule-age-gate__beam::before {
    animation: none;
  }

  .molecule-age-gate__decline,
  .molecule-age-gate__enter,
  .hero__cta {
    transition: none;
  }
}
