/* =========================================
   My Peptide Protocol — Shared Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --navy: #0d1b2a;
  --navy-mid: #162436;
  --teal: oklch(52% 0.17 172);
  --teal-light: oklch(94% 0.05 172);
  --teal-dark: oklch(40% 0.17 172);
  --gold: oklch(72% 0.15 75);
  --body-bg: #f7f6f3;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a6270;
  --border: #e2e0db;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(13,27,42,0.08);
  --shadow-md: 0 6px 24px rgba(13,27,42,0.12);
  --shadow-lg: 0 16px 48px rgba(13,27,42,0.18);
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
  --max-w: 1160px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--body-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes counterUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ============ POPUP / MODAL ============ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.popup-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.popup-box {
  background: white;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.93) translateY(20px);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.popup-overlay.open .popup-box {
  transform: scale(1) translateY(0);
}
.popup-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.popup-body {
  padding: 32px;
}
.popup-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}
.popup-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.popup-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.popup-field input {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.popup-field input:focus { border-color: var(--teal); }
.popup-submit {
  width: 100%;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 13px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.popup-submit:hover { background: var(--teal-dark); }
.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.popup-close:hover { opacity: 1; }
.popup-fine {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}
.popup-success {
  text-align: center;
  padding: 40px 32px;
  display: none;
}
.popup-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
}
.popup-success p { font-size: 15px; color: var(--text-muted); }
.popup-success .check-icon {
  width: 56px; height: 56px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 700;
}

/* ============ NAVIGATION ============ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Ccircle cx='19' cy='19' r='19' fill='%23089e8c'/%3E%3Cline x1='19' y1='9' x2='11' y2='26' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='19' y1='9' x2='27' y2='26' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='11' y1='26' x2='27' y2='26' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='19' cy='9' r='3.5' fill='white'/%3E%3Ccircle cx='11' cy='26' r='2.8' fill='white'/%3E%3Ccircle cx='27' cy='26' r='2.8' fill='white'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-color: transparent;
  border-radius: 0; color: transparent; font-size: 0; flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: white;
  line-height: 1.1;
}
.nav-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex: 1; margin-left: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.08);
}
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; opacity: 0.6; }
.nav-dropdown::after {
  content: ''; position: absolute;
  top: calc(100% - 2px); left: -8px; right: -8px;
  height: 14px; background: transparent; display: none;
}
.nav-dropdown:hover::after { display: block; }
.nav-dropdown-menu {
  display: none; position: absolute;
  top: 100%; left: 0; background: white;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); min-width: 220px;
  padding: 4px 0 8px; z-index: 200; margin-top: 2px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  color: var(--text) !important;
  padding: 9px 18px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.nav-dropdown-menu a:hover {
  background: var(--teal-light) !important;
  color: var(--teal-dark) !important;
}
.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 24px 32px;
  margin-top: 0;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr 1.6fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-top: 14px; max-width: 280px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-logo-mark {
  width: 32px; height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23089e8c'/%3E%3Cline x1='16' y1='7' x2='9' y2='22' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='16' y1='7' x2='23' y2='22' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='9' y1='22' x2='23' y2='22' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='7' r='3' fill='white'/%3E%3Ccircle cx='9' cy='22' r='2.4' fill='white'/%3E%3Ccircle cx='23' cy='22' r='2.4' fill='white'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-color: transparent;
  border-radius: 0;
}
.footer-logo-text { font-family: var(--font-display); color: white; font-size: 17px; font-weight: 600; }
.footer-col h4 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.55); font-size: 14px;
  text-decoration: none; transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--teal); }
.footer-email-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.footer-email-form p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-email-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 10px 14px;
  color: white; font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color 0.15s;
}
.footer-email-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-email-input:focus { border-color: var(--teal); }
.footer-email-btn {
  background: var(--teal); color: white; border: none;
  border-radius: 8px; padding: 10px 16px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.footer-email-btn:hover { background: var(--teal-dark); }
.footer-bottom {
  padding-top: 28px;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-disclaimer {
  font-size: 12px; color: rgba(255,255,255,0.35);
  max-width: 600px; line-height: 1.65;
}
.footer-legal { display: flex; gap: 20px; flex-shrink: 0; }
.footer-legal a {
  font-size: 12px; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============ SHARED PAGE COMPONENTS ============ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-sm { padding-top: 48px; padding-bottom: 48px; }
.section-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600; color: var(--navy);
  line-height: 1.2; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-muted);
  max-width: 600px; line-height: 1.7;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.card h3 {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 600; color: var(--navy); margin-bottom: 10px;
}
.card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none; border: none;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); color: white; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-light); text-decoration: none; }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-mid); color: white; text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }

/* breadcrumb */
.breadcrumb {
  background: white; border-bottom: 1px solid var(--border);
  padding: 12px 0; font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 7px; }

/* email section */
.email-section { background: var(--navy); padding: 64px 24px; text-align: center; }
.email-section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px); font-weight: 600;
  color: white; margin-bottom: 12px;
}
.email-section p { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 28px; line-height: 1.7; }
.email-form-row { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.email-form-row input {
  flex: 1; background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 9px;
  padding: 12px 16px; color: white;
  font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color 0.15s;
}
.email-form-row input::placeholder { color: rgba(255,255,255,0.4); }
.email-form-row input:focus { border-color: var(--teal); }
.email-form-row button {
  background: var(--teal); color: white; border: none; border-radius: 9px;
  padding: 12px 22px; font-family: var(--font-body); font-size: 15px;
  font-weight: 600; cursor: pointer; transition: background 0.15s; white-space: nowrap;
}
.email-form-row button:hover { background: var(--teal-dark); }
.email-fine-print { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ============ PEPTIDE PAGE SPECIFICS ============ */
.peptide-hero { background: var(--navy); padding: 56px 0; position: relative; overflow: hidden; }
.peptide-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18; filter: grayscale(20%);
}
.peptide-hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center; position: relative; z-index: 1;
}
.peptide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px); font-weight: 700;
  color: white; line-height: 1.1; margin-bottom: 14px;
  animation: fadeUp 0.7s ease both;
}
.peptide-hero p {
  font-size: 17px; color: rgba(255,255,255,0.7);
  max-width: 560px; line-height: 1.7; margin-bottom: 24px;
  animation: fadeUp 0.7s 0.15s ease both;
}
.peptide-hero-tag {
  display: inline-block; background: var(--teal); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 16px;
  animation: fadeUp 0.7s ease both;
}
.peptide-badge-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; animation: fadeUp 0.7s 0.3s ease both; }
.peptide-badge {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8); font-size: 13px; padding: 5px 12px; border-radius: 20px;
}
.stats-bar { background: white; border-bottom: 1px solid var(--border); padding: 20px 0; }
.stats-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.stat-item { text-align: center; padding: 12px 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* Tables */
.protocol-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 16px; }
.protocol-table th {
  background: var(--navy); color: rgba(255,255,255,0.85);
  font-weight: 600; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 12px 16px; text-align: left;
}
.protocol-table th:first-child { border-radius: 8px 0 0 0; }
.protocol-table th:last-child { border-radius: 0 8px 0 0; }
.protocol-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.protocol-table tr:last-child td { border-bottom: none; }
.protocol-table tr:nth-child(even) td { background: #f9f8f6; }

/* Info/warning boxes */
.info-box {
  background: var(--teal-light); border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px;
  margin: 20px 0; font-size: 14px; color: var(--navy);
}
.warning-box {
  background: #fff8ed; border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px;
  margin: 20px 0; font-size: 14px; color: #6b4e00;
}

/* Buy boxes */
.buy-box {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; margin: 40px 0;
}
.buy-box h3 { font-family: var(--font-display); font-size: 22px; color: white; margin-bottom: 10px; }
.buy-box p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; }
.buy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: white;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  transition: all 0.2s;
}
.buy-btn:hover { background: var(--teal-dark); color: white; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.buy-btn-kit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.12); color: white;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25); transition: all 0.2s; width: 100%;
}
.buy-btn-kit:hover { background: rgba(255,255,255,0.22); color: white; text-decoration: none; transform: translateY(-1px); }

/* Mid-page purchase CTA */
.mid-purchase {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 40% 60%;
  margin: 48px 0;
  box-shadow: var(--shadow-lg);
}
.mid-purchase-img {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
.mid-purchase-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s ease;
}
.mid-purchase:hover .mid-purchase-img img { transform: scale(1.04); }
.mid-purchase-content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mid-purchase-content h3 {
  font-family: var(--font-display);
  font-size: 26px; color: white; margin-bottom: 10px;
}
.mid-purchase-content p {
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 20px;
}
.mid-purchase-kit-items {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px;
}
.mid-purchase-kit-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.82);
}
.mid-purchase-kit-dot {
  width: 7px; height: 7px; background: var(--teal);
  border-radius: 50%; flex-shrink: 0;
}
.mid-purchase-btns { display: flex; flex-direction: column; gap: 12px; }

/* Content layout */
.content-cols {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 48px; align-items: start;
}
.sticky-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.toc-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
}
.toc-card h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px;
}
.toc-card ul { list-style: none; }
.toc-card ul li { border-bottom: 1px solid var(--border); }
.toc-card ul li:last-child { border-bottom: none; }
.toc-card ul a { display: block; padding: 9px 0; font-size: 14px; color: var(--text); text-decoration: none; transition: color 0.15s; }
.toc-card ul a:hover { color: var(--teal); }

/* Article body */
.article-body h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--navy); margin: 48px 0 16px; padding-top: 8px;
  border-top: 2px solid var(--teal-light);
}
.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
.article-body p { font-size: 16px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; }
.article-body li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; color: var(--text); }
.article-body strong { color: var(--navy); }

/* Section image */
.section-image {
  width: 100%; border-radius: var(--radius-lg);
  overflow: hidden; margin: 32px 0; box-shadow: var(--shadow-md);
}
.section-image img { width: 100%; height: 320px; object-fit: cover; }
.section-image-caption {
  font-size: 12px; color: var(--text-muted); text-align: center;
  margin-top: 8px; font-style: italic;
}

/* Image + text split */
.img-text-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; margin: 48px 0;
}
.img-text-split img {
  width: 100%; border-radius: var(--radius-lg);
  object-fit: cover; height: 340px; box-shadow: var(--shadow-md);
}
.img-text-split.reverse { direction: rtl; }
.img-text-split.reverse > * { direction: ltr; }

/* Blog card */
.blog-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.25s;
  text-decoration: none; display: block;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--teal); margin-bottom: 8px;
}
.blog-card-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  color: var(--navy); line-height: 1.3; margin-bottom: 10px;
}
.blog-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.blog-card-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; }

/* Buy buttons — sidebar buy-box same size */
.buy-box-btns { display: flex; flex-direction: column; gap: 10px; }
.buy-box .buy-btn { display: flex; align-items: center; justify-content: center; width: 100%; }
.buy-box .buy-btn-kit { display: flex; align-items: center; justify-content: center; width: 100%; font-size: 15px; font-weight: 700; padding: 14px 20px; }
/* Mid-page purchase — full-width centered buttons */
.mid-purchase-btns .buy-btn { display: flex; align-items: center; justify-content: center; width: 100%; }
/* Kit item text size */
.mid-purchase-kit-item { font-size: 15px; color: rgba(255,255,255,0.82); }

/* Footer 5-column grid */
.footer-news-row {
  display: grid; grid-template-columns: auto 1fr; gap: 32px;
  align-items: start; padding-bottom: 28px; margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-news-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); white-space: nowrap; padding-top: 3px; }
.footer-news-links { display: flex; flex-direction: column; gap: 8px; }
.footer-news-links a { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; line-height: 1.4; }
.footer-news-links a:hover { color: var(--teal); text-decoration: none; }

/* ============ MOBILE NAV ACCORDION (CSS-driven) ============ */
.mobile-nav-sub {
  display: none;
  flex-direction: column;
}
.mobile-nav-section-label {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-section-label::after {
  content: '\25be';
  font-size: 13px;
  transition: transform 0.25s;
  display: inline-block;
  opacity: 0.7;
}
.mobile-nav-section-label.nav-open::after {
  transform: rotate(-180deg);
}
.mobile-nav-section-label.nav-open + .mobile-nav-sub {
  display: flex;
}

/* ============ PEPTIDE PAGE CONTENT — BULLETPROOF MOBILE PADDING ============ */
@media (max-width: 768px) {
  /* Stats bar inner */
  .stats-bar-inner { padding: 0 16px; }
  /* Make sure container + section always has padding */
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  /* Article body extra safety */
  .article-body { width: 100%; max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }
  /* Content cols */
  .content-cols { width: 100%; }
}
@media (max-width: 640px) {
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  .stats-bar-inner { padding: 0 14px; }
  .peptide-hero-inner { padding: 0 14px !important; }
  .breadcrumb .container { padding: 0 14px !important; }
}

/* ============ BLOG TABLE / COMPARISON TABLE OVERFLOW ============ */
.comparison-table {
  display: block !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-radius: 0 0 8px 8px;
}
.comparison-table thead,
.comparison-table tbody {
  display: table;
  width: 100%;
}
/* Prevent full-page horizontal scroll on blog posts */
.post-body { overflow-x: hidden; max-width: 100%; }
.post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
@media (max-width: 768px) {
  /* Content columns — ensure proper padding */
  .content-cols { gap: 32px; }
  .article-body h2 { font-size: 20px; margin: 36px 0 12px; }
  .article-body h3 { font-size: 16px; margin: 20px 0 8px; }
  .article-body p { font-size: 14px; line-height: 1.7; margin-bottom: 13px; }
  .article-body li { font-size: 14px; line-height: 1.65; margin-bottom: 7px; }
  .article-body ul, .article-body ol { padding-left: 18px; }

  /* Protocol tables — scroll on mobile */
  .protocol-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 12px; }
  .protocol-table thead, .protocol-table tbody, .protocol-table tr { display: table; width: 100%; table-layout: fixed; }
  
  /* img-text-split on mobile */
  .img-text-split { gap: 24px; }
  .img-text-split img { height: 180px; }

  /* TOC sticky sidebar goes static */
  .sticky-sidebar { gap: 16px; display: flex; flex-direction: column; }
  .toc-card { margin-bottom: 0; }
}

@media (max-width: 640px) {
  /* Peptide hero meta badges stack */
  .peptide-hero-meta { gap: 8px; }
  .peptide-hero-meta-card { padding: 8px 12px; }
  .peptide-hero-meta-label { font-size: 9px; }
  .peptide-hero-meta-value { font-size: 13px; }

  /* Mid-purchase on mobile */
  .mid-purchase-content h3 { font-size: 18px; }
  .mid-purchase-kit-item { font-size: 13px; }

  /* Stat items */
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 10px; }

  /* Article body tighter on small screens */
  .article-body h2 { font-size: 18px; }
  .article-body h3 { font-size: 15px; }
  .article-body p, .article-body li { font-size: 13.5px; }
}

/* ============ CALCULATOR MOBILE OVERFLOW FIX ============ */
@media (max-width: 768px) {
  .calc-page .container { overflow-x: hidden; }
  .calc-layout { overflow-x: hidden; }
}
@media (max-width: 640px) {
  .calc-layout { gap: 24px; padding: 0; }
  .calc-field-row { flex-direction: column; gap: 8px; }
  .calc-field-row input, .calc-field-row select { width: 100%; }
  .calc-select { width: 100%; }
  .result-grid { grid-template-columns: 1fr !important; }
  .result-highlight { grid-column: span 1 !important; }
  .quick-ref { overflow-x: auto; }
  .quick-ref table { min-width: 480px; }
  .peptide-presets { margin-bottom: 0; }
}

/* Nav logo — prevent overlap on small screens */
@media (max-width: 480px) {
  .nav-logo-text { font-size: 14px; }
  .nav-logo-text span { display: none; }
  .nav-logo-mark { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  .nav-logo-text { font-size: 12px; }
}

/* Global container padding on mobile */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }

  /* Peptide hero */
  .peptide-hero { padding: 36px 0 40px; }
  .peptide-hero-inner { padding: 0 16px; gap: 24px; }
  .peptide-hero h1 { font-size: clamp(28px,7vw,42px); }
  .peptide-hero p { font-size: 15px; }
  .peptide-hero-meta-card { padding: 10px 14px; }
  .peptide-hero-meta-value { font-size: 14px; }

  /* Stats bar */
  .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-value { font-size: 20px; }

  /* Article body */
  .article-body h2 { font-size: 22px; }
  .article-body p, .article-body li { font-size: 15px; }

  /* Section images */
  .section-image img { height: 180px; }
  .section-image { margin: 20px 0; }

  /* Mid-purchase */
  .mid-purchase { margin: 32px 0; }
  .mid-purchase-img { min-height: 200px; }
  .mid-purchase-content { padding: 24px 20px; }
  .mid-purchase-content h3 { font-size: 20px; }

  /* Protocol tables */
  .protocol-table { font-size: 12px; }
  .protocol-table th, .protocol-table td { padding: 9px 10px; }

  /* Buy box sidebar */
  .buy-box { padding: 24px 18px; }
  .buy-box h3 { font-size: 18px; }
  .buy-btn, .buy-btn-kit { font-size: 14px; padding: 12px 16px; }

  /* TOC card */
  .toc-card { padding: 18px; }

  /* Info/warning boxes */
  .info-box, .warning-box { font-size: 13px; padding: 13px 16px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 12px; padding: 10px 0; }

  /* Email section */
  .email-section { padding: 48px 16px; }
  .email-section h2 { font-size: clamp(22px,5vw,32px); }
  .email-section p { font-size: 15px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-news-row { grid-template-columns: 1fr; gap: 10px; }
  .site-footer { padding: 48px 16px 28px; }

  /* Popup */
  .popup-img { height: 140px; }
  .popup-body { padding: 20px; }
  .popup-body h3 { font-size: 20px; }

  /* Hero */
  .hero-inner { padding: 52px 16px 48px; }

  /* Blog */
  .blog-card-title { font-size: 16px; }
  .featured-post-body { padding: 28px 24px; }
  .featured-post-title { font-size: 20px; }

  /* Why section */
  .why-section { padding: 56px 0; }
  .why-inner { padding: 0 16px; }

  /* Page content (legal/about pages) */
  .page-content { padding: 40px 16px; }
  .page-hero-inner { padding: 0 16px; }
  .page-hero { padding: 48px 0; }
}

@media (max-width: 640px) {
  /* Footer single column */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; }

  /* Featured post stack */
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-img { min-height: 200px; }

  /* Stats bar 2-col */
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }

  /* Guides */
  .guide-item { padding: 14px 16px; gap: 12px; }
  .guide-icon { width: 36px; height: 36px; }
  .guide-item h3 { font-size: 15px; }

  /* Cards */
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }

  /* Peptide grid */
  .peptide-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .peptide-tile-img { height: 110px; }
  .peptide-tile-body { padding: 12px; }
  .peptide-tile-name { font-size: 13px; }

  /* Protocol card */
  .protocol-card-img { height: 160px; }

  /* Section CTAs */
  .section-cta-row { padding: 0 4px; }
  .btn-lg { padding: 12px 22px; font-size: 14px; }

  /* Mid-purchase table */
  .protocol-table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Email form */
  .email-form-row { flex-direction: column; gap: 8px; }
  .email-form-row input, .email-form-row button { width: 100%; border-radius: 8px; }

  /* Hero buttons */
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Topic filter bar */
  .topic-filter-bar { padding: 12px 0; }
  .topic-filter-inner { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-btn { flex-shrink: 0; font-size: 12px; padding: 5px 12px; }

  /* Mobile nav menu */
  .mobile-nav-menu { padding: 12px 16px 20px; }
  .mobile-nav-link { font-size: 15px; padding: 11px 0; }
  .mobile-nav-sub a { font-size: 13px; padding: 9px 0 9px 10px; }
}

@media (max-width: 390px) {
  .nav-logo-mark { width: 28px; height: 28px; }
  .nav-logo-text { font-size: 13px; }
  .peptide-hero h1 { font-size: 26px; }
  .section-title { font-size: 22px; }
}
@keyframes trustTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-ticker-wrap {
  overflow: hidden; width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.trust-ticker {
  display: flex; align-items: center; gap: 0;
  animation: trustTicker 30s linear infinite;
  width: max-content;
}
.trust-ticker:hover { animation-play-state: paused; }

/* ============ MOBILE NAV ============ */
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
  margin-left: auto; flex-shrink: 0;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: all 0.3s;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-menu {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px 24px; z-index: 99;
  flex-direction: column; gap: 0; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.mobile-nav-menu.open { display: flex; }
.mobile-nav-link {
  display: block; color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 500;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none; transition: color 0.15s;
}
.mobile-nav-link:hover { color: white; text-decoration: none; }
.mobile-nav-section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); margin: 16px 0 8px; font-weight: 700;
}
.mobile-nav-sub a {
  display: block; color: rgba(255,255,255,0.65); font-size: 14px;
  padding: 10px 0 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none; transition: color 0.15s;
}
.mobile-nav-sub a:hover { color: white; text-decoration: none; }
.mobile-nav-cta {
  margin-top: 20px; background: var(--teal); color: white; border: none;
  border-radius: 9px; padding: 13px; font-family: var(--font-body);
  font-size: 15px; font-weight: 700; cursor: pointer; width: 100%;
  transition: background 0.15s;
}
.mobile-nav-cta:hover { background: var(--teal-dark); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-cols { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
  .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .peptide-hero-inner { grid-template-columns: 1fr; }
  .mid-purchase { grid-template-columns: 1fr; }
  .mid-purchase-img { min-height: 240px; }
  .img-text-split { grid-template-columns: 1fr; }
  .img-text-split img { height: 220px; }
}
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-mobile-toggle { display: flex; }
  .site-nav { position: sticky; }
}
@media (max-width: 640px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .email-form-row { flex-direction: column; }
  .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
  .mid-purchase-content { padding: 28px 24px; }
  .section-title { font-size: clamp(22px,5vw,38px); }
  .popup-box { margin: 12px; }
  .popup-body { padding: 22px; }
  .peptide-hero { padding: 40px 0; }
  .section { padding: 52px 0; }
  .buy-btn, .buy-btn-kit { padding: 13px 20px; font-size: 14px; }
}
