/* ============================================================
   myPeptide — Powered by InstaMed®
   Brand palette + typographic system mirrors store.getinstamed.com
   ============================================================ */

:root {
  --gold: #B8972A;
  --gold-dark: #9c7f20;
  --black: #111111;
  --cream: #FAF7F0;
  --gold-light: #F5EDD5;
  --text: #1A1A1A;
  --muted: #555555;
  --white: #FFFFFF;
  --radius: 5px;
  --maxw: 1120px;
  --shadow: 0 8px 30px rgba(0,0,0,0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }

/* ---------- Logo ---------- */
.logo { font-weight: 700; font-size: 26px; letter-spacing: -0.5px; white-space: nowrap; }
.logo__my { color: var(--gold); font-style: italic; }
.logo__peptide { color: var(--white); }
.logo--sm { font-size: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 13px; border: 2px solid transparent; border-radius: var(--radius);
  padding: 14px 28px; cursor: pointer; transition: all .2s var(--ease);
  min-height: 44px; text-align: center;
}
.btn--gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: 0 0 22px rgba(184,151,42,0.5); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--black); }
.btn--ghost-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost-dark:hover { background: var(--black); color: var(--white); }
.btn--lg { padding: 16px 34px; font-size: 14px; }
.btn--sm { padding: 9px 18px; font-size: 12px; min-height: 38px; }

/* ---------- Eyebrows / headings ---------- */
.eyebrow { color: var(--gold); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 12px; }
.eyebrow--light { color: var(--gold); }
.section__title { font-size: clamp(28px, 4vw, 42px); max-width: 18ch; }
.section__title--light { color: var(--white); }
.section__lede { font-size: 19px; color: var(--muted); max-width: 60ch; margin-bottom: 40px; }
.section--dark .section__lede { color: rgba(255,255,255,0.72); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--light { background: var(--white); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--black); color: var(--white); }
.section__cta { margin-top: 44px; text-align: center; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17,17,17,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184,151,42,0.25);
  transition: background .3s var(--ease);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; flex-direction: column; line-height: 1; }
.logo__tagline { font-size: 9px; color: var(--muted); letter-spacing: 0.08em; margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: rgba(255,255,255,0.82); font-size: 14px; font-weight: 600; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__cta { margin-left: 6px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--gold); transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 70% 20%, #1d1d1d 0%, var(--black) 55%);
  color: var(--white); overflow: hidden; padding: 100px 0 60px;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(184,151,42,0.16), transparent 45%);
  pointer-events: none;
}
.hero__content { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; z-index: 2; }
.hero__title { font-size: clamp(34px, 6vw, 62px); max-width: 16ch; margin-bottom: 20px; }
.hero__sub { font-size: clamp(17px, 2.2vw, 22px); color: rgba(255,255,255,0.78); max-width: 52ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.trust-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.trust-row li { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 7px; text-transform: uppercase; }
.trust-row__icon { color: var(--gold); }

/* ============ COMPARE (Problem) ============ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.compare__col { border-radius: 8px; padding: 32px; border: 1px solid #e9e4d6; }
.compare__col--con { background: var(--white); }
.compare__col--pro { background: var(--black); color: var(--white); border-color: var(--gold); }
.compare__head { font-size: 20px; margin-bottom: 18px; }
.compare__col--pro .compare__head { color: var(--gold); }
.compare__list { margin: 0; padding-left: 20px; }
.compare__list li { margin-bottom: 12px; }
.compare__col--con .compare__list li::marker { color: var(--muted); }
.compare__col--pro .compare__list li::marker { color: var(--gold); }

/* ============ FEATURE CARDS ============ */
.cards { display: grid; gap: 22px; margin-top: 12px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: #181818; border: 1px solid rgba(184,151,42,0.25); border-radius: 8px; padding: 28px; transition: transform .2s var(--ease), border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature__icon { color: var(--gold); font-size: 24px; margin-bottom: 10px; }
.feature h3 { font-size: 18px; color: var(--white); }
.feature p { color: rgba(255,255,255,0.68); font-size: 15px; margin: 0; }

/* ============ OPPORTUNITY ============ */
.opp { background: var(--white); border: 1px solid #ece6d6; border-left: 4px solid var(--gold); border-radius: 6px; padding: 28px; }
.opp h3 { font-size: 19px; }
.opp p { color: var(--muted); font-size: 15px; margin: 0; }
.stacks { margin-top: 40px; }
.stacks__intro { font-weight: 600; margin-bottom: 16px; }
.stacks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { background: var(--gold-light); border-radius: 6px; padding: 20px; font-weight: 600; font-size: 15px; }
.stack__type { display: block; color: var(--gold-dark); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }

/* ============ PRODUCTS ============ */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 12px; }
.product { background: var(--black); border-radius: 8px; padding: 28px 24px; border: 1px solid transparent; transition: transform .2s var(--ease), border-color .2s; }
.product:hover { transform: translateY(-4px); border-color: var(--gold); }
.product__tag { display: inline-block; color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 12px; }
.product h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.product__benefit { color: rgba(255,255,255,0.62); font-size: 14px; margin: 0; }

/* ============ SOCIAL PROOF ============ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
.quote { margin: 0; background: #181818; border-radius: 8px; padding: 30px; border-top: 3px solid var(--gold); }
.quote p { color: rgba(255,255,255,0.86); font-size: 16px; font-style: italic; }
.quote cite { color: var(--gold); font-style: normal; font-weight: 600; font-size: 14px; }

/* ============ SCIENCE ============ */
.sci { background: var(--white); border: 1px solid #ece6d6; border-radius: 6px; padding: 26px; }
.sci h3 { font-size: 18px; }
.sci p { color: var(--muted); font-size: 15px; margin: 0; }
.science__why { margin-top: 34px; font-size: 18px; max-width: 68ch; }
.disclaimer { color: var(--muted); font-size: 13px; margin-top: 18px; font-style: italic; }

/* ============ REP ============ */
.rep { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: center; }
.rep__photo img, .rep__photo svg { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); display: block; }
.rep__role { color: var(--gold-dark); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 16px; }
.rep__bio { font-size: 17px; color: var(--muted); max-width: 58ch; }
.rep__contact { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.rep__phone-icon { font-size: 15px; }

/* ============ FORM ============ */
.form { margin-top: 12px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }
.req { color: var(--gold); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--white);
  background: #1c1c1c; border: 1px solid #333; border-radius: var(--radius);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6a6a6a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,151,42,0.25);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B8972A' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input[type="date"] { color-scheme: dark; }
.field--invalid input, .field--invalid select { border-color: #c0562f; }
.field__error { color: #e07a52; font-size: 13px; margin-top: 6px; min-height: 0; }
.form__submit { width: 100%; margin-top: 26px; }
.form__privacy { text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 14px; }
.form__status { text-align: center; margin-top: 16px; font-weight: 600; }
.form__status--ok { color: var(--gold); }
.form__status--err { color: #e07a52; }

/* ============ FOOTER ============ */
.footer { background: #0c0c0c; color: rgba(255,255,255,0.6); padding: 48px 0; }
.footer__inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; }
.footer__tagline { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; margin-top: 4px; }
.footer__contact { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__contact a { color: var(--gold); font-weight: 600; font-size: 14px; }
.footer__legal { font-size: 12px; max-width: 70ch; margin: 0; line-height: 1.6; }

/* ============ CHAT WIDGET ============ */
.chat { position: fixed; bottom: 22px; right: 22px; z-index: 200; }
.chat__bubble {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: var(--black); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(0,0,0,0.35); transition: transform .2s var(--ease);
  animation: pulse 2.6s infinite;
}
.chat__bubble:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 8px 26px rgba(0,0,0,0.35), 0 0 0 0 rgba(184,151,42,0.5); }
  70% { box-shadow: 0 8px 26px rgba(0,0,0,0.35), 0 0 0 16px rgba(184,151,42,0); }
  100% { box-shadow: 0 8px 26px rgba(0,0,0,0.35), 0 0 0 0 rgba(184,151,42,0); }
}
.chat__panel {
  position: absolute; bottom: 74px; right: 0; width: 380px; height: 520px; max-height: calc(100vh - 110px);
  background: var(--white); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  border: 1px solid rgba(184,151,42,0.3);
}
.chat--open .chat__panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat--open .chat__bubble { animation: none; }
.chat__header { background: var(--black); color: var(--white); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat__title { font-weight: 700; font-size: 16px; }
.chat__title-accent { color: var(--gold); }
.chat__header-actions { display: flex; gap: 6px; }
.chat__clear, .chat__close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 18px; cursor: pointer; width: 30px; height: 30px; border-radius: 6px; transition: background .2s, color .2s; }
.chat__clear:hover, .chat__close:hover { background: rgba(255,255,255,0.12); color: var(--gold); }
.chat__messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat__starters-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.chat__starter { display: block; width: 100%; text-align: left; background: var(--gold-light); border: 1px solid #e7dcbf; border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; font-size: 14px; color: var(--text); cursor: pointer; transition: background .2s, border-color .2s; font-family: inherit; }
.chat__starter:hover { background: #efe3c4; border-color: var(--gold); }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg--user { align-self: flex-end; background: var(--gold); color: var(--black); border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; background: #f1f1f1; color: var(--text); border-bottom-left-radius: 4px; }
.msg--bot a { color: var(--gold-dark); text-decoration: underline; font-weight: 600; }
.typing { align-self: flex-start; background: #f1f1f1; border-radius: 14px; border-bottom-left-radius: 4px; padding: 14px 16px; display: flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
.chat__input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee; }
.chat__input { flex: 1; font-family: inherit; font-size: 15px; border: 1px solid #ddd; border-radius: 22px; padding: 11px 16px; outline: none; transition: border-color .2s; }
.chat__input:focus { border-color: var(--gold); }
.chat__send { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--gold); color: var(--black); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
.chat__send:hover { background: var(--gold-dark); }
.chat__send:disabled { opacity: .5; cursor: not-allowed; }
.chat__disclaimer { text-align: center; font-size: 11px; color: var(--muted); padding: 0 12px 12px; margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .cards--3, .quotes { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(17,17,17,0.98); backdrop-filter: blur(12px);
    padding: 12px 24px 24px; border-bottom: 1px solid rgba(184,151,42,0.25);
    transform: translateY(-120%); transition: transform .3s var(--ease); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__cta { margin: 14px 0 0; }
  .compare, .cards--2, .cards--3, .quotes, .products, .stacks__grid, .form__grid { grid-template-columns: 1fr; }
  .rep { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .rep__contact { justify-content: center; }
  .chat__panel { width: calc(100vw - 24px); height: calc(100vh - 100px); bottom: 74px; right: -10px; }
}
@media (max-width: 420px) {
  .hero__actions .btn, .rep__contact .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
