/**
 * Mollecule mid-layer brand shell (scrubbed static site).
 * Theme: General Peptide (generalpeptide.com) — monochrome ink/white,
 * warm-grey surfaces, hairline borders, uppercase tracked labels.
 */

:root {
  /* GP palette */
  --gp-ink: #1a1a1a;          /* body text, headings, footer bg */
  --gp-black: #121212;        /* buttons, announcement bar */
  --gp-muted: #4a4a4a;        /* secondary text */
  --gp-subtle: #888888;       /* tertiary text / small labels */
  --gp-white: #ffffff;
  --gp-surface: #ededeb;      /* hero / section grey */
  --gp-surface-warm: #fafaf6; /* off-white sections */
  --gp-line: #e3e0da;         /* hairline borders */
  --gp-sand: #ebe0b6;         /* category accents */
  --gp-peach: #f3c9a9;
  --gp-sky: #9bd0d7;

  /* Mapped onto the original token names so every rule below keeps working */
  --mollecule-teal: var(--gp-ink);
  --mollecule-charcoal: var(--gp-ink);
  --mollecule-sage: var(--gp-subtle);
  --mollecule-grey: var(--gp-line);
  --mollecule-cream: var(--gp-white);
  --mollecule-aesthetics: var(--gp-peach);
  --mollecule-metabolic: var(--gp-sand);
  --mollecule-vitality: var(--gp-sky);
  --mollecule-recovery: var(--gp-line);
  --mollecule-cognitive: var(--gp-peach);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Viga', 'Inter', system-ui, 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(--gp-black);
}

.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(--gp-black);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 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(--gp-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: 40px;
}

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

.site-nav a {
  color: var(--mollecule-charcoal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--gp-subtle);
}

/* 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: var(--gp-ink);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(180deg, var(--gp-surface) 0%, var(--gp-surface-warm) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--gp-line);
  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(--gp-subtle);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  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: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--gp-muted);
  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.75rem;
  border-radius: 2px;
  background: var(--gp-black);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.hero__cta:hover {
  background: var(--gp-muted);
  color: #fff;
  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: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

/* Brand band */
.brand-band {
  background: var(--gp-surface-warm);
  color: var(--gp-ink);
  border-top: 1px solid var(--gp-line);
  border-bottom: 1px solid var(--gp-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(--gp-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--gp-ink);
  color: rgba(255, 255, 255, 0.5);
  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: 1px;
  overflow: visible;
  border: 0;
  border-radius: 6px;
  color: var(--gp-ink);
  background: var(--gp-line);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.molecule-age-gate::backdrop {
  background: rgba(26, 26, 26, 0.72);
  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: -1px;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  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(235, 224, 182, 0.35) 250deg,
    var(--gp-sand) 278deg,
    var(--gp-peach) 300deg,
    var(--gp-ink) 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.5rem, 5vw, 3.25rem);
  border: 1px solid var(--gp-line);
  border-radius: 5px;
  background: var(--gp-white);
}

.molecule-age-gate__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gp-line);
}

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

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

.molecule-age-gate__eyebrow,
.molecule-age-gate__field-label {
  color: var(--gp-subtle);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  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(--gp-ink);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.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(--gp-muted);
  font-size: 0.9rem;
  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(--gp-ink);
  border-radius: 2px;
  background: var(--gp-white);
  transition: background 160ms ease, box-shadow 160ms ease;
}

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

.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(--gp-ink);
  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: 2px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.molecule-age-gate__decline {
  border: 1px solid var(--gp-ink);
  color: var(--gp-ink);
  background: var(--gp-white);
}

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

.molecule-age-gate__enter:disabled {
  border-color: var(--gp-line);
  color: var(--gp-subtle);
  background: var(--gp-surface);
  cursor: not-allowed;
}

.molecule-age-gate__decline:hover {
  background: var(--gp-surface-warm);
  transform: translateY(-1px);
}

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

.molecule-age-gate__legal {
  margin: 1.25rem auto 0;
  color: var(--gp-subtle);
  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: 6px;
  }

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

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