/* Premium Lifetime offer (pricing page + home banner). Filled by assets/js/lifetime.js. */

#lifetime { scroll-margin-top: 96px; }

.lifetime {
  margin: 0 auto 44px;
  max-width: 1100px;
}
.lifetime-card {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 26px 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 213, 74, 0.35);
  background:
    radial-gradient(600px 320px at 85% 0%, rgba(255, 213, 74, 0.14), transparent 60%),
    radial-gradient(520px 360px at 0% 100%, rgba(0, 230, 118, 0.10), transparent 60%),
    var(--surface-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
/* grid children default to min-width:auto, and one long code would widen the page */
.lifetime-card > *,
.lt-step { min-width: 0; }
.lt-step-code { overflow-wrap: anywhere; }
.lifetime .eyebrow { color: #ffd54a; }
.lifetime h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.08;
  margin: 6px 0 10px;
  color: #fff;
}
.lt-gold {
  background: linear-gradient(100deg, #f59e0b, #ffd54a 50%, #f5b400);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lifetime .lead { margin: 0 0 18px; color: var(--muted); }

/* the video, in a phone */
.lt-phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 34px;
  padding: 9px;
  background: #0a0e15;
  border: 1.5px solid rgba(150, 165, 190, 0.45);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 213, 74, 0.12);
}
.lt-phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: #0a1628;
}
.lt-sound {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 28, 37, 0.72);
  color: #fff;
  font: 600 13px var(--font-body);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.lt-sound:hover { background: rgba(20, 28, 37, 0.9); }

/* price */
.lt-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lt-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 9vw, 64px);
  line-height: 1;
  background: linear-gradient(100deg, #1565c0, #00a3e0 30%, #26c6da 55%, #22c55e 80%, #00e676);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lt-once { color: #fff; font-weight: 700; font-size: 17px; }
.lt-compare { margin: 8px 0 6px; color: var(--muted); }
.lt-save {
  display: inline-block;
  margin: 2px 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #00e676);
  color: #141C25;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* today's code */
.lt-coupon {
  border: 2px dashed rgba(255, 213, 74, 0.7);
  border-radius: 18px;
  padding: 14px 16px 16px;
  background: rgba(24, 34, 45, 0.8);
  margin-bottom: 16px;
}
.lt-coupon-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lt-coupon-label { display: block; color: #ffd54a; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.lt-code { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: #fff; letter-spacing: 0.06em; }
.lt-left { color: #fff; font-weight: 700; font-size: 14px; text-align: right; }
.lt-left span { color: var(--muted); font-weight: 600; }
.lt-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.lt-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #ffd54a);
  transition: width 0.8s var(--ease-out);
}
.lt-status:empty { display: none; }
.lt-status { margin: 8px 0 0; color: #ffd54a; font-size: 13px; }

/* the ladder */
.lt-ladder {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.lt-step {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.lt-step-code { font-weight: 800; color: #fff; font-size: 13px; letter-spacing: 0.04em; }
.lt-step-price { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 20px; }
.lt-step-state { color: var(--muted); font-size: 12px; font-weight: 600; }
.lt-step.is-open { border-color: rgba(255, 213, 74, 0.8); background: rgba(255, 213, 74, 0.08); }
.lt-step.is-open .lt-step-state { color: #ffd54a; }
.lt-step.is-sold-out { opacity: 0.5; }
.lt-step.is-sold-out .lt-step-price { text-decoration: line-through; }

.lt-buy { width: 100%; justify-content: center; font-size: 17px; padding: 15px 20px; }
.lt-where { margin: 12px 0 0; color: #E4EAEE; font-size: 14px; }
.lt-fine { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

.lifetime-sold-out .lt-coupon,
.lifetime-sold-out .lt-save { display: none; }

/* The homepage shows the offer only while website seats remain: once all 4,000 are sold,
   lifetime.js marks the page sold out and the section goes (the pricing page says "Sold out"). */
.lifetime-sold-out [data-lt-hide-when-sold-out] { display: none !important; }
.lt-home { padding-top: 8px; padding-bottom: 8px; }
.lt-home .lifetime { margin-bottom: 20px; }

/* home page banner */
.lt-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 213, 74, 0.4);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(255, 213, 74, 0.16), transparent 60%),
    var(--surface-strong);
}
.lt-banner strong { color: #fff; font-size: 18px; }
.lt-banner p { margin: 4px 0 0; color: var(--muted); }

@media (min-width: 880px) {
  .lifetime-card {
    grid-template-columns: 340px 1fr;
    align-items: center;
    gap: 44px;
    padding: 38px 44px;
  }
  .lt-phone { width: 320px; }
  .lt-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .lt-bar span { transition: none; }
}
