/* ================================================================
   Peptide Academy — Cycles Launch Promo
   Drop-in banner + modal for the $27 Cycles launch.
   Works on: peptideacademy.io and peptideacademy.io/professional
   ================================================================ */

:root {
  --pa-forest: #1E3D2F;
  --pa-forest-dark: #152B21;
  --pa-forest-deep: #0E1F18;
  --pa-cream: #FBF6EE;
  --pa-cream-dim: #F0E8D9;
  --pa-amber: #C9974A;
  --pa-amber-bright: #D9A85C;
  --pa-sage: #A8C8B0;
  --pa-sage-dim: #7FA688;
}

/* ============ BANNER ============ */
/* Always-visible launch banner at the top of the page.
   Hides itself if the modal is open (no double-CTA). */

.pa-cycles-banner {
  position: relative;
  z-index: 999;
  background: var(--pa-forest-deep);
  color: var(--pa-cream);
  padding: 12px 16px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(201, 151, 74, 0.25);
  overflow: hidden;
}

.pa-cycles-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 151, 74, 0.06) 50%,
    transparent 100%);
  pointer-events: none;
  animation: pa-shimmer 6s ease-in-out infinite;
}

@keyframes pa-shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.pa-cycles-banner__tag {
  background: var(--pa-amber);
  color: var(--pa-forest-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pa-cycles-banner__text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-cycles-banner__text strong {
  color: var(--pa-amber-bright);
  font-weight: 700;
}

.pa-cycles-banner__cta {
  position: relative;
  z-index: 1;
  background: var(--pa-amber);
  color: var(--pa-forest-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: 3px;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.pa-cycles-banner__cta:hover {
  background: var(--pa-amber-bright);
  transform: translateY(-1px);
}

.pa-cycles-banner__close {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--pa-cream);
  opacity: 0.55;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.pa-cycles-banner__close:hover { opacity: 1; }

.pa-cycles-banner[hidden] { display: none !important; }

/* Mobile banner */
@media (max-width: 720px) {
  .pa-cycles-banner {
    font-size: 13px;
    padding: 10px 12px;
    gap: 10px;
  }
  .pa-cycles-banner__tag { font-size: 10px; padding: 3px 8px; }
  .pa-cycles-banner__text { font-size: 12.5px; }
  .pa-cycles-banner__cta { font-size: 12px; padding: 7px 14px; }
}

@media (max-width: 480px) {
  .pa-cycles-banner__text { display: none; }
}

/* ============ MODAL ============ */

.pa-cycles-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 31, 24, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pa-cycles-modal-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.pa-cycles-modal {
  background: var(--pa-cream);
  border-radius: 8px;
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--pa-forest);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pa-cycles-modal-backdrop[data-open="true"] .pa-cycles-modal {
  transform: translateY(0) scale(1);
}

/* Forest header band */
.pa-cycles-modal__header {
  background: var(--pa-forest);
  color: var(--pa-cream);
  padding: 36px 36px 56px;
  border-radius: 8px 8px 0 0;
  position: relative;
  overflow: hidden;
}

.pa-cycles-modal__header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--pa-sage-dim) 0%, transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

/* Molecule motif in modal header */
.pa-cycles-modal__molecule {
  position: absolute;
  bottom: -10px;
  left: -20px;
  width: 280px;
  opacity: 0.18;
  pointer-events: none;
  color: var(--pa-sage);
}

.pa-cycles-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(251, 246, 238, 0.12);
  border: none;
  color: var(--pa-cream);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 5;
}

.pa-cycles-modal__close:hover { background: rgba(251, 246, 238, 0.22); }

.pa-cycles-modal__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pa-amber-bright);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pa-cycles-modal__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--pa-amber);
}

.pa-cycles-modal__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.018em;
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
}

.pa-cycles-modal__title em {
  font-style: italic;
  position: relative;
}

.pa-cycles-modal__title em::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--pa-amber);
  border-radius: 2px;
}

.pa-cycles-modal__sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--pa-sage);
  position: relative;
  z-index: 2;
  max-width: 420px;
}

/* Body */
.pa-cycles-modal__body {
  padding: 32px 36px 36px;
}

/* Bullet list */
.pa-cycles-modal__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.pa-cycles-modal__bullets li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--pa-forest);
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid rgba(30, 61, 47, 0.08);
}

.pa-cycles-modal__bullets li:last-child { border-bottom: none; }

.pa-cycles-modal__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pa-amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-cycles-modal__bullets li::after {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 14px;
  font-size: 10px;
  font-weight: 800;
  color: var(--pa-forest-deep);
  width: 14px;
  text-align: center;
}

/* Price row */
.pa-cycles-modal__price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border-top: 2px solid var(--pa-amber);
  border-bottom: 1px solid rgba(30, 61, 47, 0.08);
  margin-bottom: 24px;
}

.pa-cycles-modal__price {
  font-size: 56px;
  font-weight: 800;
  color: var(--pa-forest);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pa-cycles-modal__price-was {
  font-size: 22px;
  color: var(--pa-forest);
  opacity: 0.4;
  text-decoration: line-through;
  font-weight: 400;
}

.pa-cycles-modal__price-meta {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--pa-amber);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.6;
}

.pa-cycles-modal__price-meta b { color: var(--pa-forest); font-weight: 700; }

/* CTA button */
.pa-cycles-modal__cta {
  display: block;
  width: 100%;
  background: var(--pa-forest);
  color: var(--pa-cream);
  padding: 20px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.pa-cycles-modal__cta:hover {
  background: var(--pa-forest-dark);
  transform: translateY(-1px);
}

.pa-cycles-modal__dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--pa-forest);
  opacity: 0.55;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 10px;
  text-decoration: underline;
  text-decoration-color: rgba(30, 61, 47, 0.3);
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.pa-cycles-modal__dismiss:hover { opacity: 1; }

.pa-cycles-modal__footer-meta {
  margin-top: 22px;
  font-size: 12px;
  color: var(--pa-forest);
  opacity: 0.55;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Mobile modal */
@media (max-width: 560px) {
  .pa-cycles-modal-backdrop { padding: 16px; align-items: flex-end; }
  .pa-cycles-modal {
    max-height: 90vh;
    border-radius: 12px;
    transform: translateY(40px);
  }
  .pa-cycles-modal-backdrop[data-open="true"] .pa-cycles-modal { transform: translateY(0); }
  .pa-cycles-modal__header { padding: 28px 24px 44px; }
  .pa-cycles-modal__title { font-size: 28px; }
  .pa-cycles-modal__body { padding: 24px 24px 28px; }
  .pa-cycles-modal__price { font-size: 46px; }
  .pa-cycles-modal__price-meta { font-size: 10px; }
  .pa-cycles-modal__bullets li { font-size: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pa-cycles-modal-backdrop,
  .pa-cycles-modal,
  .pa-cycles-banner::before {
    transition: none !important;
    animation: none !important;
  }
}
