/**
 * Mollecule mid-layer brand shell (scrubbed static site).
 */

:root {
  --mollecule-teal: #4c8386;
  --mollecule-charcoal: #20262b;
  --mollecule-sage: #add0d0;
  --mollecule-grey: #c9d2d5;
  --mollecule-cream: #f3f5f7;
  --mollecule-aesthetics: #e76b9a;
  --mollecule-metabolic: #fe8e16;
  --mollecule-vitality: #5cbb4b;
  --mollecule-recovery: #1b7cef;
  --mollecule-cognitive: #6a5ba8;
  --font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--mollecule-charcoal);
  background: var(--mollecule-cream);
  font-family: var(--font-family);
  font-size: 15px;
  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(--mollecule-teal);
}

.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(--mollecule-teal);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 210, 213, 0.8);
}

.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: 44px;
}

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

.site-nav a {
  color: var(--mollecule-charcoal);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--mollecule-teal);
}

/* 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:
    linear-gradient(105deg, rgba(32, 38, 43, 0.88) 0%, rgba(32, 38, 43, 0.55) 48%, rgba(76, 131, 134, 0.35) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(173, 208, 208, 0.35), transparent 55%),
    linear-gradient(160deg, #1a2227 0%, #2a4044 42%, #4c8386 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(32, 38, 43, 0.45), 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(--mollecule-sage);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: rgba(243, 245, 247, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: var(--mollecule-teal);
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: background 160ms ease, transform 160ms ease;
}

.hero__cta:hover {
  background: #fff;
  color: var(--mollecule-charcoal);
  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-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.statement__body {
  margin: 0;
  max-width: 36rem;
  color: rgba(32, 38, 43, 0.72);
  font-size: 1rem;
  line-height: 1.7;
}

/* Brand band */
.brand-band {
  background: var(--mollecule-teal);
  color: #fff;
  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: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--mollecule-charcoal);
  color: rgba(243, 245, 247, 0.78);
  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, 660px);
  max-width: none;
  max-height: min(94svh, 900px);
  padding: 2px;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  color: var(--mollecule-charcoal);
  background: rgba(76, 131, 134, 0.52);
  box-shadow: 0 28px 90px rgba(32, 38, 43, 0.3);
}

.molecule-age-gate::backdrop {
  background: rgba(32, 38, 43, 0.76);
  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: -2px;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  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(173, 208, 208, 0.25) 250deg,
    var(--mollecule-sage) 278deg,
    #fff 300deg,
    var(--mollecule-teal) 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) - 4px);
  overflow-y: auto;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border: 1px solid rgba(76, 131, 134, 0.4);
  border-radius: 20px;
  background:
    linear-gradient(rgba(243, 245, 247, 0.97), rgba(243, 245, 247, 0.97)),
    repeating-linear-gradient(
      0deg,
      transparent 0 31px,
      rgba(76, 131, 134, 0.035) 31px 32px
    );
}

.molecule-age-gate__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(76, 131, 134, 0.55);
}

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

.molecule-age-gate__eyebrow,
.molecule-age-gate__field-label {
  color: var(--mollecule-teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  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: clamp(1.5rem, 4vw, 2.25rem) 0 1.35rem;
}

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

.molecule-age-gate__title {
  margin: 0;
  color: var(--mollecule-charcoal);
  font-size: clamp(2.15rem, 7vw, 4.2rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

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

.molecule-age-gate__check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  color: var(--mollecule-charcoal);
  font-size: 0.95rem;
  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: 1.5px solid var(--mollecule-teal);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.molecule-age-gate__check input:checked + .molecule-age-gate__checkbox {
  background: var(--mollecule-teal);
}

.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(--mollecule-charcoal);
  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.8rem;
  margin-top: 0.6rem;
}

.molecule-age-gate__decline,
.molecule-age-gate__enter {
  min-height: 52px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.molecule-age-gate__decline {
  border: 1px solid rgba(76, 131, 134, 0.5);
  color: var(--mollecule-charcoal);
  background: #fff;
}

.molecule-age-gate__enter {
  border: 1px solid var(--mollecule-teal);
  color: #fff;
  background: var(--mollecule-teal);
}

.molecule-age-gate__enter:disabled {
  border-color: rgba(76, 131, 134, 0.2);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(76, 131, 134, 0.38);
  cursor: not-allowed;
}

.molecule-age-gate__decline:hover,
.molecule-age-gate__enter:not(:disabled):hover {
  transform: translateY(-1px);
}

.molecule-age-gate__legal {
  margin: 1.25rem auto 0;
  color: rgba(32, 38, 43, 0.55);
  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: 16px;
  }

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

  .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;
  }
}
