/* PeptideQ — Global page chrome (non-homepage route styles)
 *
 * Holds the bits emitted by index.html itself (announcement bar above
 * the header; "Get started" pill inside the header-actions row) and the
 * global footer block (.pq-footer, restored from the v10-era pq-home.css
 * where it was last styled). They
 * show on every route, the homepage included.
 *
 * Cache-busted by ?v=home-editorial-20261021.
 */

/* ---------- Announcement bar (above the global header) ---------- */
.pq-announce {
  display: block;
  background: var(--pq-announce-bg, var(--color-background-inverted));
  color: var(--pq-announce-fg, #F6EFE4);
  font-family: var(--pq-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.pq-announce__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 40px);
}
.pq-announce__copy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1.4;
  min-width: 0;
}
.pq-announce__copy strong {
  font-weight: 600;
  color: #FFFFFF;
}
.pq-announce__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--color-text-accent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.pq-announce__sep {
  opacity: 0.55;
  user-select: none;
}
/* A hairline divider between the value statement and the CTA, so the two
   sides of the bar read as one sentence instead of two loose fragments. */
.pq-announce__divider {
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: 0.35;
  flex: 0 0 auto;
}

.pq-announce__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 239, 228, 0.4);
  padding-bottom: 1px;
  flex: 0 0 auto;
  transition: border-color 200ms ease, color 200ms ease;
}
.pq-announce__link svg {
  transition: transform 200ms ease;
}
.pq-announce__link:hover,
.pq-announce__link:focus-visible {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}
.pq-announce__link:hover svg,
.pq-announce__link:focus-visible svg {
  transform: translateX(2px);
}
.pq-announce__link:focus-visible {
  outline: 2px solid #F6EFE4;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- "Get started" pill (in the global header-actions row) ---------- */
.pq-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  /* One primary accent across the whole product. The header pill is the
     first CTA a visitor meets, so it must not be a different colour. */
  background: #ffce80;
  color: #352512;
  border: 1px solid #ffce80;
  border-radius: 999px;
  font-family: var(--pq-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
  flex: 0 0 auto;
}
.pq-header-pill svg {
  transition: transform 200ms ease;
}
.pq-header-pill:hover {
  background: #f6c06a;
  border-color: #f6c06a;
}
.pq-header-pill:hover svg { transform: translateX(2px); }
.pq-header-pill:active {
  background: #e8ac55;
  border-color: #e8ac55;
  transform: translateY(1px);
}
.pq-header-pill:focus-visible {
  outline: none;
  background: var(--pq-terracotta, #C0613E);
  border-color: var(--pq-terracotta, #C0613E);
  box-shadow: 0 0 0 3px rgba(192, 97, 62, 0.35);
}

@media (max-width: 860px) {
  .pq-header-pill { display: none !important; }
  .pq-announce__inner { padding: 7px 16px; gap: 10px; }
  .pq-announce__copy { gap: 6px; font-size: 12px; }
  .pq-announce__copy > span:not(.pq-announce__tag):not(.pq-announce__sep) {
    /* hide the secondary "Clinician-reviewed … from $39/mo" copy on phones */
    display: none;
  }
  .pq-announce__sep { display: none; }
  .pq-announce__divider { display: none; }
  .pq-announce__link { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pq-announce__link svg,
  .pq-header-pill svg { transition: none !important; }
  .pq-announce__link:hover svg,
  .pq-announce__link:focus-visible svg,
  .pq-header-pill:hover svg { transform: none !important; }
  .pq-header-pill:active { transform: none !important; }
}

/* --------------------------------------------------------------------------
   Global footer (.pq-footer) — static chrome from index.html, shown on
   every route. Restored from the last stylesheet that carried it
   (pq-home.css v2) after the footer lost its rules in the reference-home
   swap. It carries its own token block (apothecary palette, Fraunces
   headline) so it depends on nothing above and leaks nothing back.
   -------------------------------------------------------------------------- */

.footer.pq-footer {
  /* palette — warm dark apothecary surfaces (never pure black) */
  --pq-forest: #2E3B2F;
  --pq-forest-deep: #26312A;
  --pq-forest-floor: #1F2822;
  --pq-clay: #A04E2E;
  --pq-clay-deep: #A2603D;
  --pq-clay-soft: #D9A87E;
  --pq-brass: #9A7B4F;
  --pq-brass-soft: #C2A272;
  --pq-stone-400: #A79E90;
  --pq-cream: #FAF6EF;
  --pq-cream-90: rgba(250, 246, 239, 0.9);
  --pq-cream-75: rgba(250, 246, 239, 0.75);
  --pq-cream-60: rgba(250, 246, 239, 0.6);
  --pq-cream-45: rgba(250, 246, 239, 0.64);
  --pq-cream-14: rgba(250, 246, 239, 0.14);
  --pq-cream-08: rgba(250, 246, 239, 0.08);

  /* type + rhythm */
  --pq-font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --pq-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pq-font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --pq-gutter: clamp(24px, 5vw, 64px);
  --pq-measure: 1240px;
  --pq-radius: 6px;
  --pq-ease: cubic-bezier(0.22, 1, 0.36, 1);

  margin-top: 0;
  padding: 0;
  background: var(--pq-forest-floor);
  color: var(--pq-cream-75);
  font-family: var(--pq-font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.pq-footer a {
  text-decoration: none;
}

.pq-footer a:focus-visible,
.pq-footer button:focus-visible,
.pq-footer input:focus-visible {
  outline: 2px solid var(--pq-brass-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.pq-footer__inner {
  max-width: var(--pq-measure);
  margin: 0 auto;
  padding: 0 var(--pq-gutter);
}

/* ---- closing band: benefit-driven email capture ---- */

.pq-footer__capture {
  background:
    radial-gradient(90% 130% at 85% 0%, rgba(184, 117, 79, 0.14), transparent 55%),
    var(--pq-forest);
  border-bottom: 1px solid var(--pq-cream-08);
  padding: clamp(72px, 9vw, 118px) 0;
}

.pq-footer__capture-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.pq-footer__sigil {
  display: block;
  width: clamp(84px, 8vw, 108px);
  margin-bottom: 22px;
  color: var(--pq-stone-400);
  opacity: 0.32;
  pointer-events: none;
}

.pq-footer__sigil svg {
  display: block;
  width: 100%;
  height: auto;
}

.pq-footer__capture-title {
  font-family: var(--pq-font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--pq-cream);
  margin: 0 0 18px;
}

.pq-footer__capture-title em {
  font-style: italic;
  font-weight: 380;
  color: var(--pq-clay-soft);
}

.pq-footer__capture-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pq-cream-60);
  max-width: 30rem;
  margin: 0;
}

.pq-footer__form-row {
  display: flex;
  gap: 12px;
}

.pq-footer__input {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--pq-cream-08);
  border: 1px solid var(--pq-cream-14);
  border-radius: 999px;
  color: var(--pq-cream);
  font-family: var(--pq-font-ui);
  font-size: max(13px, 0.95rem);
  padding: 1.02rem 1.5rem;
  transition: border-color 0.3s var(--pq-ease), background-color 0.3s var(--pq-ease);
}

.pq-footer__input::placeholder {
  color: var(--pq-cream-45);
}

.pq-footer__input:focus {
  outline: none;
  border-color: var(--pq-brass-soft);
  background: rgba(250, 246, 239, 0.12);
}

.pq-footer__submit {
  flex: none;
  cursor: pointer;
  border: 1px solid transparent;
  /* one accent across the whole product: the homepage CTAs use --pqh-primary */
  background: #ffce80;
  color: #2b1d12;
  font-family: var(--pq-font-ui);
  font-size: max(13px, 0.95rem);
  font-weight: 600;
  border-radius: 999px;
  padding: 1.02rem 2rem;
  transition:
    background-color 0.3s var(--pq-ease),
    box-shadow 0.4s var(--pq-ease),
    transform 0.3s var(--pq-ease);
}

.pq-footer__submit:hover {
  background: var(--pq-clay-deep);
  box-shadow: 0 14px 34px -14px rgba(184, 117, 79, 0.65);
}

.pq-footer__submit:active {
  transform: translateY(1px);
}

.pq-footer__form-note {
  margin: 14px 0 0 8px;
  font-size: max(13px, 0.78rem);
  color: var(--pq-cream-45);
}

.pq-footer__form-note--error {
  color: var(--pq-clay-soft);
}

.pq-footer__form-note--ok {
  color: var(--pq-brass-soft);
}

/* ---- trust-signal rail ---- */

.pq-footer__trust {
  background: var(--pq-forest-deep);
  border-bottom: 1px solid var(--pq-cream-08);
}

.pq-footer__trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.pq-footer__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pq-font-mono);
  font-size: max(13px, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pq-cream-60);
  white-space: nowrap;
}

.pq-footer__trust-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--pq-brass-soft);
}

/* ---- brand + 4-column sitemap ---- */

.pq-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 64px);
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.pq-footer__logo {
  display: inline-block;
  font-family: var(--pq-font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--pq-cream);
  margin-bottom: 16px;
}

.pq-footer__logo-accent {
  font-style: italic;
  color: var(--pq-clay-soft);
}

.pq-footer__tagline {
  font-size: max(13px, 0.92rem);
  line-height: 1.7;
  color: var(--pq-cream-60);
  max-width: 24rem;
  margin: 0 0 28px;
}

.pq-footer__follow-label {
  display: block;
  font-family: var(--pq-font-mono);
  font-size: max(13px, 0.66rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pq-cream-45);
  margin-bottom: 12px;
}

.pq-footer__social {
  display: flex;
  gap: 10px;
}

.pq-footer__social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--pq-cream-14);
  color: var(--pq-cream-60);
  transition:
    color 0.3s var(--pq-ease),
    border-color 0.3s var(--pq-ease),
    background-color 0.3s var(--pq-ease);
}

.pq-footer__social-link svg {
  width: 17px;
  height: 17px;
}

.pq-footer__social-link:hover {
  color: var(--pq-cream);
  border-color: var(--pq-brass-soft);
  background: var(--pq-cream-08);
}

.pq-footer__col-title {
  font-family: var(--pq-font-mono);
  font-size: max(13px, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pq-brass-soft);
  margin: 0 0 18px;
}

.pq-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pq-footer__links li {
  margin: 0 0 12px;
}

.pq-footer__link {
  font-size: max(13px, 0.92rem);
  color: var(--pq-cream-75);
  transition: color 0.25s var(--pq-ease);
}

.pq-footer__link:hover {
  color: var(--pq-clay-soft);
}

/* ---- medical disclaimer (legal copy preserved verbatim) ---- */

.pq-footer__disclaimer {
  border-top: 1px solid var(--pq-cream-08);
}

.pq-footer__disclaimer-inner {
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(28px, 4vw, 40px);
}

.pq-footer__disclaimer-title {
  display: block;
  font-family: var(--pq-font-mono);
  font-size: max(13px, 0.66rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pq-brass-soft);
  margin-bottom: 10px;
}

.pq-footer__disclaimer-text {
  font-size: max(13px, 0.76rem);
  line-height: 1.75;
  color: var(--pq-cream-45);
  max-width: 76rem;
  margin: 0;
}

/* ---- legal bottom bar with labeled payments ---- */

.pq-footer__bottom {
  border-top: 1px solid var(--pq-cream-08);
}

.pq-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.pq-footer__copyright {
  font-size: max(13px, 0.76rem);
  color: var(--pq-cream-45);
  margin: 0;
}

.pq-footer__payments {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pq-footer__payments-label {
  font-family: var(--pq-font-mono);
  font-size: max(13px, 0.66rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pq-cream-45);
}

.pq-footer__payments-icons {
  display: flex;
  gap: 8px;
}

.pq-footer__payments-icons svg {
  display: block;
  border-radius: 4px;
  opacity: 0.85;
}

/* ---- footer responsive ---- */

@media (max-width: 1100px) {
  .pq-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pq-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .pq-footer__capture-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pq-footer__trust-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .pq-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .pq-footer__form-row {
    flex-direction: column;
  }

  .pq-footer__submit {
    width: 100%;
  }

  .pq-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- footer rests fully under reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .pq-footer *,
  .pq-footer *::before,
  .pq-footer *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch targets for chrome links that sit outside the shared component sizes. */
.pq-announce__link { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-account-btn { display: inline-flex; align-items: center; min-height: 44px; }

/* Skip link: parked off-screen at full size so the hit area stays real. */
.skip-link:not(:focus) { left: -10000px; top: 0; width: auto; height: auto; min-height: 44px; padding: 12px 16px; clip: auto; overflow: visible; }

/* Reference-led home chrome. :has() releases every override on route exit. */
body:has(.pq-home) .pq-announce { background:var(--pqh-primary);color:var(--pqh-primary-foreground);border:0;letter-spacing:0; }
body:has(.pq-home) .pq-announce__inner { min-height:40px;padding-block:0;max-width:none;justify-content:center; }
body:has(.pq-home) .pq-announce__copy strong { color:inherit; }
body:has(.pq-home) .pq-announce__tag,body:has(.pq-home) .pq-announce__sep,body:has(.pq-home) .pq-announce__copy>span { display:none; }
body:has(.pq-home) .pq-announce__link { min-height:40px;border:0;align-items:center;color:inherit; }
body:has(.pq-home) .header { background:var(--pqh-surface);border:0;box-shadow:none; }
body:has(.pq-home) .header>.container { max-width:none;padding-inline:40px; }
body:has(.pq-home) .header-inner,body:has(.pq-home) .header.scrolled .header-inner { height:64px; }
/* The header pill is the first CTA a visitor meets. It must use the same
   single gold accent as every other primary action, not a second colour. */
body:has(.pq-home) .pq-header-pill { background:#ffce80;border-color:#ffce80;color:#352512; }
body:has(.pq-home) .header-nav-link { font-family:var(--pqh-sans); }
body:has(.pq-home) .pq-footer { --pq-font-display:var(--pqh-sans);--pq-font-ui:var(--pqh-sans); }
@media(max-width:600px) {
 body:has(.pq-home) .header>.container { padding-inline:16px; }
 body:has(.pq-home) .header-inner { height:60px; }
 body:has(.pq-home) .pq-announce__copy { display:none; }
 body:has(.pq-home) .pq-announce__inner { min-height:36px; }
 body:has(.pq-home) .pq-announce__link { min-height:36px;font-size:13px; }
}
