/* Plug and Play Peptides — design system */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; background: #ffffff; color: #111; margin: 0; }

main { padding: 0; background: #ffffff; }

/* ── CARD SECTIONS ─────────────────────────────────────────── */
.section-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  background: #ffffff;
}
.section-card-light { background: #ffffff; }
.section-card-tint  { background: #f0faf4; }
.section-card-dark  { background: #111111; }

/* ── FLAT SECTIONS ─────────────────────────────────────────── */
.section-flat       { background: #f4f4f2; position: relative; }
.section-flat-tint  { background: #f4f4f2; position: relative; }
.section-flat-dark  { background: #111111; position: relative; }

/* ── TYPOGRAPHY ── */
.display-serif {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.display-sans {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.label-caps {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #111;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 100px;
  border: 1.5px solid #d1d5db;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: #111; background: #f9f9f9; }

.btn-black {
  display: inline-flex; align-items: center; gap: 8px;
  background: #111; color: #fff; font-size: 0.875rem; font-weight: 600;
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s; text-decoration: none; white-space: nowrap;
}
.btn-black:hover { background: #333; transform: translateY(-1px); }

.btn-outline-black {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #111; font-size: 0.875rem; font-weight: 600;
  padding: 12px 26px; border-radius: 100px; border: 1.5px solid #111;
  cursor: pointer; transition: background 0.2s, color 0.2s; text-decoration: none;
}
.btn-outline-black:hover { background: #111; color: #fff; }

.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  background: #16a34a; color: #fff; font-size: 0.875rem; font-weight: 600;
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s; text-decoration: none;
}
.btn-green:hover { background: #15803d; transform: translateY(-1px); }

/* ── SECTIONS ── */
.section-cream { background: #fafafa; }
.section-white { background: #ffffff; }
.section-black { background: #0f0f0f; }
.section-green { background: #f0faf4; }

/* ── DASHBOARD MOCKUP ── */
.dashboard-mockup {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
}
.mockup-titlebar {
  background: #f8f8f8;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: #9ca3af;
  background: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  border: 1px solid #e5e7eb;
}

/* ── AUDIENCE / PARTNER CARDS ── */
.audience-card {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.4s ease;
}
.audience-card .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 24px 16px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
}

/* ── AUDIENCE ITEM HOVER ── */
.audience-item .audience-img {
  transition: transform 0.5s ease;
}
.audience-item:hover .audience-img {
  transform: scale(1.06);
}

/* ── CARDS ── */
.card-clean {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card-clean:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); }

.card-cream {
  background: #fafafa;
  border-radius: 16px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card-cream:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); transform: translateY(-3px); }

.card-black {
  background: #111;
  border-radius: 16px;
  color: #fff;
}

/* ── SYSTEM CARD ── */
.system-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
}

/* ── FEATURE CARD HOVER ── */
.feature-card-hover {
  transition: box-shadow 0.22s, transform 0.22s;
}
.feature-card-hover:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

/* ── FEATURE TABS ── */
.feature-tab-btn {
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  border-top: none; border-left: none; border-right: none;
}
.feature-tab-btn.active { color: #111; border-bottom-color: #111; }
.feature-tab-btn:hover { color: #111; }

/* ── HOW-IT-WORKS TABS ── */
.hiw-tab-btn {
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  background: none; border-top: none; border-left: none; border-right: none;
  cursor: pointer; white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}
.hiw-tab-btn.active { color: #111; border-bottom-color: #111; }

/* ── HERO TABS ── */
.hero-tab {
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  background: none; border-top: none; border-left: none; border-right: none;
  cursor: pointer; white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}
.hero-tab:hover { color: #111; }

/* ── STEP NUMBERS ── */
.step-num {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: #f3f4f6;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -0.04em;
  user-select: none;
}
.step-num-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ── TAGS ── */
.tag-green {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dcfce7; color: #16a34a;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.tag-gray {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3f4f6; color: #6b7280;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.tag-purple {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3e8ff; color: #7c3aed;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}

/* ── DIVIDERS ── */
.divider { border-top: 1px solid #f0f0f0; }
.divider-dark { border-top: 1px solid #1f1f1f; }

/* ── FORM ELEMENTS ── */
.input-clean {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.9rem;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}
.input-clean::placeholder { color: #9ca3af; }
.input-clean:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
select.input-clean {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
textarea.input-clean { resize: none; }
input[type="checkbox"] { accent-color: #111; width: 16px; height: 16px; cursor: pointer; }

/* ── NAV SCROLL ── */
#site-header.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.07); }

/* ── MARQUEE ── */
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrap { overflow: hidden; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f9f9f9; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ── SECTION ANCHORS ── */
section[id] { scroll-margin-top: 80px; }

/* ── FAQ ── */
.faq-item { transition: background 0.15s; }

/* ── STAT NUMBERS ── */
.stat-big {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111;
}

/* ── DOCTOR CARD ── */
.doctor-badge {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 12px 16px;
}

/* ── PRODUCT PILL ── */
.product-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid #e5e7eb; border-radius: 100px;
  padding: 7px 16px; font-size: 0.8rem; font-weight: 500;
  color: #374151; background: #fff;
  transition: border-color 0.2s, background 0.2s, color 0.2s; cursor: default;
}
.product-pill:hover { border-color: #111; color: #111; background: #f9f9f9; }

/* ── FADE-IN ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── SECTION ROUNDED CAPS ── */
.section-cap-top  { border-radius: 2.5rem 2.5rem 0 0; margin-top: -2.5rem; position: relative; z-index: 2; }
.section-cap-both { border-radius: 2.5rem; position: relative; z-index: 2; }

/* ── CMO HERO MESH GRADIENT ── */
@keyframes meshDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-30px) scale(1.08); }
  66%  { transform: translate(-20px,50px) scale(0.95); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes meshDrift2 {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-60px,30px) scale(1.1); }
  100% { transform: translate(0,0) scale(1); }
}
.mesh-blob-1 {
  position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(22,163,74,0.13) 0%, transparent 70%);
  border-radius: 50%; animation: meshDrift 14s ease-in-out infinite; pointer-events: none;
}
.mesh-blob-2 {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.09) 0%, transparent 70%);
  border-radius: 50%; animation: meshDrift2 18s ease-in-out infinite; pointer-events: none;
}

/* ── MARQUEE VARIANTS ── */
@keyframes marqueeLeft  { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marqueeRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.marquee-left  { animation: marqueeLeft  28s linear infinite; }
.marquee-right { animation: marqueeRight 28s linear infinite; }

/* ── WHO-SCROLL ANIMATION (partner cards) ── */
@keyframes whoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── STAGGER REVEAL ── */
.stagger-child { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.stagger-child.visible { opacity: 1; transform: translateY(0); }

/* ── FLOATING CARD HOVER ── */
.float-card { transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease; }
.float-card:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: 0 24px 60px rgba(0,0,0,0.10); }

/* ── COUNTER NUMBERS ── */
.counter-num {
  font-family: 'DM Sans', sans-serif; font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(135deg, #111 0%, #374151 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── TYPEWRITER CURSOR ── */
.typewriter-cursor {
  display: inline-block; width: 3px; height: 1em; background: #16a34a;
  margin-left: 3px; vertical-align: middle; animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── DESIRE PILL ── */
.desire-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; border: 1.5px solid #e5e7eb; background: #fff; color: #374151;
  transition: border-color 0.2s, background 0.2s;
}
.desire-pill-green { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.desire-pill-cream { background: #fafafa; border-color: #e5e7eb; color: #374151; }

/* ── LARGE DECORATIVE TEXT ── */
.deco-word {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(6rem, 14vw, 14rem);
  line-height: 0.9; letter-spacing: -0.03em; font-weight: 400;
  -webkit-text-stroke: 1.5px #e5e7eb; color: transparent; user-select: none; pointer-events: none;
}

/* ── SPLIT LINE ── */
.split-rule {
  display: flex; align-items: center; gap: 16px;
  color: #9ca3af; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.split-rule::before, .split-rule::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}

/* ── BENEFIT CARD ── */
.benefit-card {
  position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
  padding: 2rem; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.benefit-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #16a34a, #4ade80); opacity: 0; transition: opacity 0.25s;
}
.benefit-card:hover { border-color: #d1fae5; box-shadow: 0 12px 40px rgba(22,163,74,0.10); transform: translateY(-4px); }
.benefit-card:hover::before { opacity: 1; }

/* ── OUTCOME ROW ── */
.outcome-row { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid #f3f4f6; }
.outcome-row:last-child { border-bottom: none; }
.outcome-icon {
  width: 40px; height: 40px; border-radius: 12px; background: #f0fdf4;
  border: 1px solid #bbf7d0; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── PROGRESS BAR ── */
@keyframes growBar { from { width: 0; } }
.progress-bar-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  animation: growBar 1.4s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-play-state: paused;
}
.progress-bar-fill.animate { animation-play-state: running; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .dashboard-mockup [style*="grid-template-columns:200px"],
  .dashboard-mockup [style*="grid-template-columns:190px"],
  .dashboard-mockup [style*="grid-template-columns:180px"],
  .dashboard-mockup [style*="grid-template-columns:160px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(7,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    height: 560px !important;
  }
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
