/* Lead-magnet offer overlays on Pro Library clones. */

.offer-page.pl-page .pl-offer-progress {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem var(--gutter) 1rem;
}

.offer-page.pl-page .pl-offer-progress__track {
  width: min(100%, 720px);
  margin: 0 auto;
  height: 2.15rem;
  border-radius: 6px;
  overflow: hidden;
  background: #e8edf3;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.offer-page.pl-page .pl-offer-progress__fill {
  --pl-offer-progress-width: 50%;
  height: 100%;
  width: 0;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  background:
    repeating-linear-gradient(
      -45deg,
      #e11d48 0,
      #e11d48 10px,
      #be123c 10px,
      #be123c 20px
    );
  background-size: 28px 28px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation:
    pl-offer-progress-fill 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
    pl-offer-progress-stripes 0.85s linear 1.25s infinite;
}

@keyframes pl-offer-progress-fill {
  from { width: 0; }
  to { width: var(--pl-offer-progress-width); }
}

@keyframes pl-offer-progress-stripes {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-page.pl-page .pl-offer-progress__fill {
    width: var(--pl-offer-progress-width);
    animation: none;
  }
}

.offer-page.pl-page .pl-offer-progress__note {
  width: min(100%, 720px);
  margin: 0.75rem auto 0;
  text-align: center;
  color: var(--brand-deep);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.offer-page.pl-page .pl-hero--offer {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.offer-page.pl-page .pl-offer-price {
  color: #e11d48;
  font-weight: 800;
}

.offer-page.pl-page .pl-price-card__price s {
  margin-right: 0.5rem;
  color: var(--muted);
  font-family: var(--pl-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  text-decoration-thickness: 2px;
  vertical-align: 0.35em;
}

.offer-page.pl-page .pl-offer-timer {
  margin: 1.15rem 0 0;
  text-align: center;
}

.offer-page.pl-page .pl-hero--offer .pl-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 22rem);
}

.offer-page.pl-page .pl-hero--offer .pl-hero__actions .btn {
  width: 100%;
}

.offer-page.pl-page .pl-hero--offer .pl-offer-timer--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 22rem);
  margin: 1.15rem 0 1.35rem;
  text-align: center;
}

.offer-page.pl-page .pl-hero--offer .pl-offer-timer--hero .pl-offer-timer__label {
  width: fit-content;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.offer-page.pl-page .pl-offer-timer__label {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.offer-page.pl-page .pl-offer-timer--pricing .pl-offer-timer__label,
.offer-page.pl-page .pl-offer-timer--final .pl-offer-timer__label {
  width: fit-content;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.offer-page.pl-page .pl-offer-timer__digits {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.offer-page.pl-page .pl-offer-timer__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  min-height: 4.1rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(225, 29, 72, 0.18);
  background: #fff5f6;
}

.offer-page.pl-page .pl-offer-timer__unit span {
  color: #e11d48;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.offer-page.pl-page .pl-offer-timer__unit small {
  margin-top: 0.4rem;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.offer-page.pl-page .pl-offer-timer__sep {
  color: #e11d48;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  align-self: center;
}

.offer-page.pl-page .pl-offer-timer--pricing,
.offer-page.pl-page .pl-offer-timer--final {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem auto 0.35rem;
  text-align: center;
}

.offer-page.pl-page .pl-offer-timer--final {
  margin-bottom: 1.35rem;
}

.offer-page.pl-page #price .pl-gumroad-rating {
  display: flex;
  width: fit-content;
  margin-top: 1.35rem;
  margin-inline: auto;
  margin-bottom: var(--pl-gap-lg, clamp(28px, 3.5vw, 40px));
  gap: 0.35rem 0.55rem;
}

.offer-page.pl-page #price .pl-gumroad-rating__stars {
  position: relative;
  top: 0.05em;
  line-height: 1;
}

.offer-page.pl-page #price .pl-gumroad-rating__score {
  margin-right: 0.15rem;
}

.offer-page.pl-page .pl-final-cta .pl-offer-timer__unit {
  background: rgba(255, 255, 255, 0.9);
}

.offer-page.pl-page .pl-sticky-cta [data-offer-timer] {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #e11d48;
}

.offer-page.pl-page .pl-hero-proof figcaption {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.offer-page.pl-page .pl-drip-quote--featured figcaption {
  margin-top: 0.75rem;
}

.offer-page.pl-page .pl-monthly-tile figcaption {
  padding: 0.55rem 0.7rem 0.7rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 1199px) {
  .offer-page.pl-page .pl-hero--offer .pl-hero__grid {
    grid-template-columns: 1fr;
  }

  .offer-page.pl-page .pl-hero--offer .pl-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .offer-page.pl-page .pl-hero--offer .pl-hero__copy h1,
  .offer-page.pl-page .pl-hero--offer .pl-hero__copy .lead {
    margin-inline: auto;
    text-align: center;
  }

  .offer-page.pl-page .pl-hero--offer .pl-hero__actions,
  .offer-page.pl-page .pl-hero--offer .pl-offer-timer--hero {
    align-self: center;
    margin-inline: auto;
  }

  .offer-page.pl-page .pl-hero--offer .pl-hero__actions {
    display: flex;
    justify-content: center;
  }

  .offer-page.pl-page .pl-hero--offer .pl-offer-timer--hero {
    margin-top: 1.15rem;
    margin-bottom: 1.35rem;
  }

  .offer-page.pl-page .pl-offer-progress__fill {
    font-size: 0.78rem;
    padding-inline: 0.65rem;
  }
}
