/* ════════════════════════════════════════════════════
   PeptaVive Men — Shared CSS
   Used across all pages on peptavivemen.com.
   Ported from peptavive.ai; palette swapped gold → steel.
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Josefin+Sans:wght@300;400;500;600&display=swap');

/* PORT NOTE: variable NAMES preserved verbatim from the women's CSS
   (--gold, --gold-light, --gold-dim, --border, etc.) — only the VALUES
   are swapped to steel. Any of the 14 existing men's HTML pages that
   inline-reference var(--gold) will still work — they'll just render
   steel. Rename these later once the pages are audited; today the goal
   is a working port with zero page-side edits. */
:root {
  --black: #060809;
  --deep: #0d1114;
  --gold: #A8B8C8;
  --gold-light: #C8D8E8;
  --gold-dim: #5A6875;
  --cream: #E8EEF4;
  --white: #ffffff;
  --text-muted: #C4CCD4;
  --card-bg: #131820;
  --border: rgba(168,184,200,0.2);
  --nav-bg: rgba(6,8,10,0.85);
  --overlay-bg: rgba(6,8,10,0.98);
}

* {
  box-sizing: border-box;
  /* Safety net: long words (peptide names, URLs) wrap instead of overflowing on narrow screens */
  overflow-wrap: break-word;
  word-wrap: break-word;
}
html {
  scroll-behavior: smooth;
  /* Global text lever: 19px root (browser default is 16px) scales every
     rem-based size up ~19% at once, preserving the design's proportions.
     Bump to 125% (20px) if still too small outdoors. */
  font-size: 118.75%;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ────────── INPUT PLACEHOLDERS (every page) ──────────
   Safari's default placeholder is a very faint gray that vanishes outdoors.
   Use a readable cream tint so hint text is visible but still clearly a hint. */
input::placeholder,
textarea::placeholder {
  color: rgba(232,238,244,0.6);
  opacity: 1; /* Firefox lowers placeholder opacity by default; pin it */
}

/* ────────── TRIAL EMAIL-CAPTURE FORM (every chapter page) ──────────
   The form is an inline flex row: [ email input | START button ].
   On narrow phones the input wouldn't shrink, shoving the button off the
   edge where overflow:hidden clipped its text ("STAR…"). Two fixes:
   1) let the input shrink so the button always keeps its full width;
   2) on phones, stack the button full-width under the input. */
.trial-cta-form input[type="email"] {
  min-width: 0;
}
@media (max-width: 600px) {
  .trial-cta-form > div:first-of-type {
    flex-direction: column;
  }
  .trial-cta-form > div:first-of-type > button {
    width: 100%;
  }
}

/* Optional first-name field injected into every .trial-cta-form by shared.js.
   One rule styles them site-wide; flex-basis:100% makes the field take its own
   row whether the form is a flex row (faq, stories) or a block wrapper (chapter
   pages). */
.trial-cta-form .pv-name-field {
  flex-basis: 100%;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.6rem;
  padding: 0.95rem 1.1rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(168,184,200,0.45);
  border-radius: 2px;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  outline: none;
}
.trial-cta-form .pv-name-field::placeholder { color: rgba(232,238,244,0.55); }
.trial-cta-form .pv-name-field:focus { border-color: var(--gold); }

/* ────────── TOP HEADER (sticky, every page) ────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168,184,200,0.15);
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(2rem, 4vw, 4rem);
}

.nav-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.4em;
  color: var(--cream);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--gold-light); }

/* ────────── MENU BUTTON (icon + label) ────────── */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  -webkit-tap-highlight-color: transparent;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.menu-icon span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  width: 100%;
  transition: all 0.35s ease;
  transform-origin: center;
}
.menu-btn:hover .menu-icon span,
.menu-btn:hover .menu-label { color: var(--gold-light); }
.menu-btn:hover .menu-icon span { background: var(--gold-light); }

body.nav-open .menu-icon span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--gold);
}
body.nav-open .menu-icon span:nth-child(2) { opacity: 0; }
body.nav-open .menu-icon span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--gold);
}

.menu-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--cream);
  text-transform: uppercase;
  transition: color 0.2s;
}
.menu-label .label-close { display: none; }
body.nav-open .menu-label .label-open { display: none; }
body.nav-open .menu-label .label-close { display: inline; }

/* ────────── MENU STAGE (slides down from top) ────────── */
.nav-overlay {
  /* Full-screen scrim. The panel itself is .nav-overlay-content below.
     Ported from peptavive.ai so both sites open the same right-side drawer. */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 990;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  overflow: hidden;
}
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s;
}
body.nav-open { overflow: hidden; }

.nav-overlay-content {
  /* The drawer. Slides in from the right; page stays visible behind the scrim. */
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 440px;
  max-width: 88vw;
  margin: 0;
  padding: 2.5rem 1.75rem 3.5rem;
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--overlay-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(168, 184, 200, 0.18);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
body.nav-open .nav-overlay-content {
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .nav-overlay, .nav-overlay-content { transition: none; }
}



.nav-section-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.35em;
  font-size: 0.65rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}
.nav-section-title::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(168,184,200,0.3);
}

.nav-section-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nav-section-learn .nav-section-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ────────── MENU CARDS (gold-bordered boxes) ────────── */
.nav-link {
  display: block;
  text-decoration: none;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(168,184,200,0.35);
  background: rgba(168,184,200,0.02);
  text-align: center;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    opacity 0.55s ease,
    transform 0.55s ease;
  opacity: 0;
  transform: translateY(15px);
}
body.nav-open .nav-link {
  opacity: 1;
  transform: translateY(0);
}
body.nav-open .nav-section-items .nav-link:nth-child(1) { transition-delay: 0.15s; }
body.nav-open .nav-section-items .nav-link:nth-child(2) { transition-delay: 0.20s; }
body.nav-open .nav-section-items .nav-link:nth-child(3) { transition-delay: 0.25s; }
body.nav-open .nav-section-items .nav-link:nth-child(4) { transition-delay: 0.30s; }
body.nav-open .nav-section-items .nav-link:nth-child(5) { transition-delay: 0.35s; }
body.nav-open .nav-section-items .nav-link:nth-child(6) { transition-delay: 0.40s; }

.nav-link:hover {
  border-color: var(--gold);
  background: rgba(168,184,200,0.08);
}

.nav-link em {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.nav-link-tag {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.55rem;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.4;
  display: block;
}

/* ────────── "GET THE APP" INSTALL CARD (injected by shared.js) ────────── */
/* When present, widen the grid to a 4th column */
.nav-overlay-content.has-install-card {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

.pv-install-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--gold);
  background: rgba(168,184,200,0.06);
  padding: 1.6rem 1.2rem;
  cursor: pointer;
  font-family: 'Josefin Sans', sans-serif;
  transition:
    background 0.3s ease,
    opacity 0.55s ease,
    transform 0.55s ease;
  opacity: 0;
  transform: translateY(15px);
}
body.nav-open .pv-install-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.30s;
}
.pv-install-card:hover { background: rgba(168,184,200,0.12); }
.pv-install-card:active { transform: scale(0.98); }

.pv-install-seal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pv-install-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pv-install-eyebrow {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.22em;
  font-size: 0.55rem;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.pv-install-headline {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gold-light);
  line-height: 1.15;
  margin-bottom: 0.3rem;
}
.pv-install-sub {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  color: rgba(232,238,244,0.85);
  letter-spacing: 0.02em;
}

/* ────────── INSTALL INSTRUCTION SHEET (popup, injected by shared.js) ────────── */
.pv-install-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8,7,4,0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pv-install-sheet-overlay.open { opacity: 1; }

.pv-install-sheet-panel {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  background: #0f0c06;
  border: 1px solid var(--gold);
  border-radius: 3px;
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.pv-install-sheet-overlay.open .pv-install-sheet-panel { transform: translateY(0); }

.pv-sheet-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: rgba(232,238,244,0.6);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}
.pv-sheet-close:hover { color: var(--gold); }

.pv-sheet-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
}
.pv-sheet-seal img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pv-sheet-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: 0.56rem;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.pv-sheet-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--gold-light);
  line-height: 1.2;
  margin: 0 0 0.9rem;
}
.pv-sheet-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.02rem;
  color: rgba(232,238,244,0.92);
  line-height: 1.6;
  margin: 0 0 0.5rem;
}
.pv-sheet-body strong { color: var(--gold-light); font-weight: 500; font-style: normal; }
.pv-sheet-steps {
  list-style: none;
  counter-reset: pv-step;
  margin: 0.5rem 0 0;
  padding: 0;
  text-align: left;
}
.pv-sheet-steps li {
  counter-increment: pv-step;
  position: relative;
  padding: 0.55rem 0 0.55rem 2.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: rgba(232,238,244,0.92);
  line-height: 1.4;
  border-bottom: 1px solid rgba(168,184,200,0.12);
}
.pv-sheet-steps li:last-child { border-bottom: none; }
.pv-sheet-steps li::before {
  content: counter(pv-step);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1.6rem;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid rgba(168,184,200,0.5);
  border-radius: 50%;
}
.pv-sheet-steps strong { color: var(--gold-light); font-weight: 500; font-style: normal; }
.pv-sheet-arrow {
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
  margin: 0.6rem 0 0.3rem;
  animation: pv-sheet-bounce 1.1s ease-in-out infinite;
}
@keyframes pv-sheet-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
.pv-sheet-note {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(232,238,244,0.6);
  line-height: 1.5;
  margin: 0.8rem 0 0;
}

/* ────────── PAGE CONTENT OFFSET (so nav doesn't cover top) ────────── */
.page-main { padding-top: 92px; }

/* ────────── MOBILE MENU ────────── */
@media (max-width: 768px) {
  .site-nav { padding: 0 1.25rem; height: 60px; }
  .nav-logo { font-size: 0.85rem; letter-spacing: 0.3em; }
  .menu-label { font-size: 0.65rem; letter-spacing: 0.25em; }
  .menu-icon { width: 18px; }
  .menu-btn { gap: 0.55rem; }

  .page-main { padding-top: 60px; }

  .nav-overlay { padding-top: 0; }

  .nav-overlay-content {
    width: 100%;
    max-width: 92vw;
    padding: 2rem 1.25rem 3rem;
  }

  .nav-section-learn .nav-section-items {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .nav-section-items { gap: 0.65rem; }

  .nav-link { padding: 0.8rem 0.7rem; }
  .nav-link em { font-size: 1.05rem; }
  .nav-link-tag { font-size: 0.5rem; letter-spacing: 0.18em; }

  .nav-section-title { margin-bottom: 1.25rem; font-size: 0.6rem; }

  /* Install card: 4th column collapses into the stack, card goes horizontal */
  .nav-overlay-content.has-install-card {
    grid-template-columns: 1fr;
  }
  .pv-install-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
  }
  .pv-install-seal {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
  }
  .pv-install-headline { font-size: 1.1rem; }
  .pv-install-sub { font-size: 0.65rem; }
}

@media (max-width: 420px) {
  .nav-link em { font-size: 0.95rem; }
}

/* ────────── FADE-REVEAL (used in chapter pages) ────────── */
.fade-reveal-wrap { position: relative; }
.fade-reveal {
  position: relative;
  max-height: 180px;
  overflow: hidden;
  transition: max-height 0.7s ease-out;
}
.fade-reveal.expanded {
  max-height: 6000px;
  transition: max-height 1.4s ease-in;
}
.fade-reveal::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 110px;
  /* Lightened: never goes fully opaque, so text behind stays partly visible as a "more to read" signal */
  background: linear-gradient(to bottom, transparent 0%, rgba(5,5,5,0.45) 55%, rgba(5,5,5,0.78) 100%);
  pointer-events: none;
  transition: opacity 0.4s;
}
.fade-reveal.expanded::after { opacity: 0; }
.fade-reveal-trigger {
  text-align: center;
  margin: 1.5rem 0 0;
}
.fade-reveal-trigger a {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  color: var(--gold-light);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.55rem 1.5rem;
  border: 1px solid rgba(168,184,200,0.4);
  border-radius: 2px;
  transition: all 0.25s;
}
.fade-reveal-trigger a:hover {
  background: rgba(168,184,200,0.1);
  border-color: var(--gold);
}

/* ────────── PAGE FOOTER ────────── */
.page-footer {
  background: #050503;
  border-top: 1px solid rgba(168,184,200,0.15);
  padding: 3rem 2rem 2rem;
  text-align: center;
}
.footer-back-link {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(168,184,200,0.45);
  border-radius: 2px;
  transition: all 0.25s;
  margin-bottom: 2rem;
}
.footer-back-link:hover {
  background: var(--gold);
  color: var(--deep);
  border-color: var(--gold);
}
.footer-wordmark {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
}
.footer-disclaimer {
  margin-top: 1.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--cream);
  text-transform: uppercase;
}


/* ────────── LEGAL FOOTER (auto-injected by shared.js) ────────── */
#peptavive-legal-footer {
  background: #050503;
  border-top: 1px solid rgba(168,184,200,0.15);
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}
#peptavive-legal-footer .legal-footer-inner {
  max-width: 760px;
  margin: 0 auto;
}
#peptavive-legal-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.4rem;
  transition: color 0.2s;
}
#peptavive-legal-footer a:hover { color: var(--gold); }
#peptavive-legal-footer .legal-footer-dot {
  color: var(--text-muted);
  opacity: 0.4;
}
#peptavive-legal-footer .legal-footer-copyright {
  display: block;
  margin-top: 0.9rem;
  color: var(--text-muted);
  opacity: 0.8;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
}


/* ────────── TOOLS PAGE (tools.html) ────────── */
.tools-section {
  padding: 5rem 2rem;
  background: linear-gradient(to bottom, var(--black), var(--deep), var(--black));
}
.tools-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.tools-inner > p {
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 2;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 3rem;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(168,184,200,0.1);
}
.tool-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.tool-badge {
  display: inline-block;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}
.tool-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.tool-card p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.tool-features { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.tool-features li {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--white);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(168,184,200,0.08);
}
.tool-features li:last-child { border-bottom: none; }
.tool-btn {
  display: block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--black);
  padding: 0.75rem 2rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
  width: 100%;
}
.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,184,200,0.3);
}
.free-note {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-transform: uppercase;
}
.gold-line {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 1.5rem;
  opacity: 0.6;
}
.fade-in { opacity: 1; }

/* ────────── SECTION LABEL (chapter teaser pages) ────────── */
.section-label {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 0.3rem 0;
  margin-bottom: 1rem;
}

/* ────────── BACK BUTTON (every page nav) ────────── */
.nav-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cream);
  -webkit-tap-highlight-color: transparent;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-back:hover { color: var(--gold-light); }
.back-arrow {
  font-size: 1rem;
  line-height: 1;
}
.back-label {
  font-family: 'Josefin Sans', sans-serif;
}
/* Hide back button on homepage (no previous page in app sense) */
body.is-home .nav-back { display: none; }

@media (max-width: 768px) {
  .nav-back { font-size: 0.6rem; gap: 0.3rem; padding: 0.4rem 0.3rem; }
  .back-arrow { font-size: 0.9rem; }
}
@media (max-width: 420px) {
  /* On smallest screens, hide the word "Back" - just show the arrow */
  .back-label { display: none; }
}

/* Update site-nav to accommodate Back button + Wordmark grouped on left */
.site-nav .nav-back,
.site-nav .nav-logo {
  /* Make Back + Wordmark group together on the left side */
}
.site-nav {
  /* Flex row so the bar stays on ONE line no matter how many controls are
     present. The dashboard adds a Back arrow (5 items); other pages have 4.
     The wordmark claims the slack (margin-right:auto) so it sits left and the
     ♂ link, account pill, and hamburger hug the right — no wrapping. */
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}
.site-nav .nav-back { flex: 0 0 auto; }
.site-nav .nav-logo {
  flex: 0 0 auto;
  margin-left: 0.5rem;
  margin-right: auto;
}
.pv-men-link,
#pv-auth-link,
.site-nav .menu-btn { flex: 0 0 auto; }

@media (max-width: 768px) {
  .site-nav { gap: 0.75rem; }
  .site-nav .nav-logo { margin-left: 0.25rem; }
}

/* ────────── PEPTAVIVE WOMEN CROSS-SITE LINK ────────── */
/* Auto-injected by shared.js into every page's top nav, just left of the hamburger. */
/* Class name preserved as .pv-men-link for compat with the shared.js rule set — */
/* on this site it points BACK to peptavive.ai, but the styling is identical. */
.pv-men-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--cream);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(168,184,200,0.4);
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  justify-self: end;
}
.pv-men-link:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(168,184,200,0.08);
}
.pv-men-icon {
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .pv-men-link { padding: 0.4rem 0.55rem; gap: 0.3rem; }
  .pv-men-label { display: none; }
  .pv-men-icon { font-size: 1.05rem; }
}

/* ────────── PHONE NAV FIT (≤560px) ──────────
   With the wordmark, the ♀ women link, the account pill, and MENU all on
   one row, phones ran out of room and MENU clipped to "MEN". Keep the ☰
   icon (universally understood) but drop the "MENU" word on phones, and
   tighten padding/gaps — reclaims the width so nothing clips. */
@media (max-width: 560px) {
  .site-nav { padding: 0 0.8rem; gap: 0.4rem; }
  .site-nav .nav-logo { margin-left: 0; letter-spacing: 0.26em; }
  .menu-label { display: none; }
  .menu-btn { gap: 0; padding: 0.4rem; }
  .pv-men-link { padding: 0.35rem 0.45rem; }
}

/* ════════════════════════════════════════════════════════════
   NEW SINGLE-COLUMN ACCORDION MENU  (June 2 rebuild)
   Replaces the Learn / Try It / Join column layout.
   Built + injected by shared.js into .nav-overlay-content.
   Namespaced .pv-menu-* so it can't collide with old rules.
   ════════════════════════════════════════════════════════════ */

/* override the old 3-column grid → centered single column */
.nav-overlay-content.pv-menu-mode {
  display: block;
  max-width: 88vw;
  /* Top padding clears the 92px fixed .site-nav, which sits above the drawer
     at a higher z-index. Without it the menu wordmark is clipped by the bar. */
  padding: calc(92px + 1rem) 1.75rem 2rem;
}

.pv-menu-head {
  /* Deliberately NOT sticky. As a sticky element it pinned itself under the
     fixed nav and the first menu row scrolled behind it. The nav's own CLOSE
     button is always visible, so a persistent wordmark buys nothing. */
  position: static;
  z-index: 3;
  text-align: center;
  margin-bottom: 0.7rem;
  padding: 0.3rem 0 0.7rem;
  background: var(--overlay-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.pv-menu-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(168,184,200,0.45);
  border-radius: 999px;
  color: #C8D8E8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.pv-menu-close:hover { background: rgba(168,184,200,0.12); }
.pv-menu-head .pv-menu-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--gold-light, #C8D8E8);
  font-weight: 500;
}
.pv-menu-head .pv-menu-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(232,238,244,0.42);
  margin-top: 0.4rem;
}

.pv-menu-list { list-style: none; margin: 0; padding: 0; }

.pv-menu-item { border-top: 1px solid rgba(168,184,200,0.14); }
.pv-menu-item:last-of-type { border-bottom: 1px solid rgba(168,184,200,0.14); }

/* the always-visible tappable row */
.pv-menu-row {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.3rem;
  color: var(--cream, #E8EEF4);
  text-decoration: none;
  font-family: inherit;
  transition: color 0.25s ease;
  /* staggered entrance, like the old links */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.25s ease;
}
body.nav-open .pv-menu-row { opacity: 1; transform: translateY(0); }
body.nav-open .pv-menu-item:nth-child(1) .pv-menu-row { transition-delay: 0.12s; }
body.nav-open .pv-menu-item:nth-child(2) .pv-menu-row { transition-delay: 0.18s; }
body.nav-open .pv-menu-item:nth-child(3) .pv-menu-row { transition-delay: 0.24s; }
body.nav-open .pv-menu-item:nth-child(4) .pv-menu-row { transition-delay: 0.30s; }
body.nav-open .pv-menu-item:nth-child(5) .pv-menu-row { transition-delay: 0.36s; }

.pv-menu-row:hover .pv-menu-name,
.pv-menu-row:hover .pv-menu-chev { color: var(--gold-light, #C8D8E8); }

.pv-menu-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.05;
  color: var(--cream, #E8EEF4);
  transition: color 0.25s ease;
}
/* tiny tag on direct-link rows (FAQ) — Josefin for legibility */
.pv-menu-name small {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(232,238,244,0.42);
  margin-top: 0.22rem;
}

.pv-menu-chev {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.15rem;
  color: var(--gold);
  flex: none;
  line-height: 1;
  transition: transform 0.3s ease, color 0.25s ease;
}
.pv-menu-item.open .pv-menu-chev { transform: rotate(45deg); }

/* the drop-down panel */
.pv-menu-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.pv-menu-panel-inner { padding: 0 0.3rem 1.6rem; }

/* one-line description (Tools, Membership) — Josefin, legible */
.pv-menu-desc {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(232,238,244,0.82);
  margin: 0 0 1.2rem;
}
.pv-menu-go {
  display: inline-block;
  padding: 0.72rem 1.7rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light, #C8D8E8) 100%);
  color: #0a0a00;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
}

/* sub-list (Learn articles) — Josefin tags for legibility */
.pv-menu-sublist { list-style: none; margin: 0; padding: 0; }
.pv-menu-sublist a {
  display: block;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(168,184,200,0.12);
}
.pv-menu-sublist li:last-child a { border-bottom: none; }
.pv-menu-sublist .pv-sub-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream, #E8EEF4);
  transition: color 0.2s ease;
}
.pv-menu-sublist a:hover .pv-sub-name { color: var(--gold-light, #C8D8E8); }
.pv-menu-sublist .pv-sub-tag {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,238,244,0.4);
  margin-top: 0.28rem;
}

/* Get The App — pinned at the bottom, set apart */
.pv-menu-getapp {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(168,184,200,0.22);
  text-align: center;
}

/* phone tuning */
@media (max-width: 768px) {
  .nav-overlay-content.pv-menu-mode { padding: calc(60px + 1rem) 1.4rem 7rem; }
  .pv-menu-name { font-size: 0.95rem; }
  .pv-menu-head .pv-menu-wordmark { font-size: 1rem; }
  .pv-menu-desc { font-size: 0.92rem; }
  .pv-menu-sublist .pv-sub-name { font-size: 1.12rem; }
}
