/* =========================================================
   Offer showcase for the 2.0 launch season
   Gold is the offer colour: the only warm colour on a cool
   navy site, so the deal is the first thing the eye finds.
   Everything here is driven by the schedule in script.js
   (initOfferShowcase); outside an offer step it stays hidden.

   Techniques: depth layers 0 to 5 with scroll parallax, a
   conic light sweep around the ticket, float loop, pointer
   tilt, staggered reveals, ticking countdown tiles and a
   price ladder whose current step drains as time runs out.
   ========================================================= */

@property --offer-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

[data-offer-lockup][hidden],
[data-offer-section][hidden],
[data-offer-strip][hidden] { display: none !important; }

/* ---------- shared atoms ---------- */
.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.offer-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: offerPulse 2s ease-out infinite;
}
@keyframes offerPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 48, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 184, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 184, 48, 0); }
}

.offer-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.offer-price s {
  color: var(--slate);
  font-size: 19px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 128, 96, 0.85);
}
.offer-price strong {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 34px rgba(255, 184, 48, 0.4);
}

.offer-save {
  display: inline-block;
  align-self: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1C1305;
  background: linear-gradient(135deg, #FFDC8F 0%, var(--gold) 60%, #F59E0B 100%);
  box-shadow: 0 8px 22px -8px rgba(255, 184, 48, 0.8);
  white-space: nowrap;
}

/* countdown tiles */
.offer-tiles {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.offer-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.offer-tile .num {
  display: block;
  min-width: 44px;
  padding: 7px 8px 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 184, 48, 0.28);
  background: linear-gradient(180deg, rgba(16, 26, 54, 0.95), rgba(5, 7, 15, 0.95));
  box-shadow: inset 0 -10px 18px -12px rgba(255, 184, 48, 0.35);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  color: #fff;
}
.offer-tile .num.tick { animation: offerTick 0.45s var(--ease-out-expo); }
@keyframes offerTick {
  from { transform: translateY(-22%); }
  to { transform: none; }
}
.offer-tile .unit {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.offer-tiles .sep {
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 18px;
  color: rgba(255, 184, 48, 0.55);
}

/* ---------- lockup: hero, final CTA, buy page ---------- */
.offer-lockup {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 15px 24px 17px;
  border-radius: 20px;
  border: 1px solid rgba(255, 184, 48, 0.38);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 184, 48, 0.14), transparent 60%),
    rgba(5, 7, 15, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 143, 0.12),
    0 24px 60px -28px rgba(255, 184, 48, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.offer-lockup p { margin: 0; }
.v2 .hero-inner > .offer-lockup { animation-delay: 0.85s; }
.offer-lockup__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.offer-lockup__what {
  font-size: 13.5px;
  color: var(--slate);
}
.offer-lockup__what b { color: var(--silver); font-weight: 600; }
.offer-lockup__next {
  font-size: 12.5px;
  color: var(--slate);
}
.offer-lockup__next b { color: var(--gold); font-weight: 600; }

/* compact two-row version for the hero, where height is scarce */
.offer-lockup--inline { gap: 8px; margin-top: 14px; padding: 8px 10px 8px 18px; border-radius: 999px; }
.offer-lockup--inline .offer-tile .unit { display: none; }
.offer-lockup--inline .offer-tiles .sep { padding-top: 3px; }
.offer-lockup--inline .offer-lockup__row { gap: 8px 14px; }
.offer-lockup--inline .offer-price strong { font-size: 32px; }
.offer-lockup--inline .offer-price s { font-size: 16px; }
.offer-lockup--inline .offer-tile .num { min-width: 34px; font-size: 15px; padding: 5px 5px 4px; border-radius: 7px; }
.offer-lockup--inline .offer-tile .unit { font-size: 8.5px; margin-top: 3px; }
.offer-lockup--inline .offer-tiles { gap: 3px; }
.offer-lockup--inline .offer-tiles .sep { font-size: 14px; padding-top: 4px; }

/* the hero is sized to the viewport height; make room for the offer row */
.v2 .hero-inner:has(.offer-lockup:not([hidden])) .hero-logo { width: min(24vh, 240px, 60vw); }

/* ---------- the showcase section ---------- */
.offer-show {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(96px, 11vw, 160px) 24px clamp(80px, 9vw, 130px);
  background: linear-gradient(180deg, #05070F 0%, #0A1024 45%, #05070F 100%);
}
.offer-layer {
  position: absolute;
  inset: -12% 0;
  pointer-events: none;
  will-change: auto;
}
/* depth 0: vignette and stage floor */
.offer-layer.depth-0 {
  z-index: -5;
  background:
    radial-gradient(60% 50% at 70% 55%, rgba(61, 100, 196, 0.22), transparent 70%),
    radial-gradient(45% 40% at 20% 30%, rgba(133, 104, 255, 0.12), transparent 70%);
  filter: blur(8px);
}
/* depth 1: the warm glow behind the ticket */
.offer-layer.depth-1 { z-index: -4; }
.offer-glow {
  position: absolute;
  top: 50%;
  right: 6%;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255, 184, 48, 0.30), rgba(255, 184, 48, 0.08) 55%, transparent 72%);
  filter: blur(20px);
  animation: offerBreathe 9s ease-in-out infinite;
}
@keyframes offerBreathe {
  0%, 100% { opacity: 0.75; transform: translateY(-50%) scale(0.94); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.04); }
}
/* depth 2: a stave drawn across the stage, and two light beams */
.offer-layer.depth-2 { z-index: -3; }
.offer-staff {
  position: absolute;
  left: -5%;
  top: 58%;
  width: 110%;
  height: 120px;
  opacity: 0.22;
}
.offer-staff line { stroke: var(--slate); stroke-width: 1; vector-effect: non-scaling-stroke; }
.offer-beam {
  position: absolute;
  top: -10%;
  right: 22%;
  width: 180px;
  height: 130%;
  background: linear-gradient(180deg, rgba(255, 220, 143, 0.16), transparent 70%);
  transform: rotate(18deg);
  filter: blur(18px);
  animation: offerBeam 11s ease-in-out infinite;
}
.offer-beam.b2 {
  right: 40%;
  width: 120px;
  transform: rotate(-12deg);
  animation-delay: -5s;
  opacity: 0.7;
}
@keyframes offerBeam {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

.offer-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.offer-copy .eyebrow { color: var(--gold); }
.offer-copy .eyebrow::after { background: rgba(255, 184, 48, 0.5); }
.offer-copy h2 {
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-align: left;
}
.offer-copy h2 em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #FFE3A3 0%, var(--gold) 45%, #FF9F43 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.offer-copy > p {
  max-width: 50ch;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.offer-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.offer-includes li {
  position: relative;
  padding-left: 32px;
  color: var(--silver);
  font-size: 15.5px;
  line-height: 1.5;
}
.offer-includes li span { color: var(--slate); }
.offer-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231C1305' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
    linear-gradient(135deg, #FFDC8F, var(--gold));
  box-shadow: 0 4px 14px -4px rgba(255, 184, 48, 0.7);
}

/* depth 3: the ticket */
.offer-ticket-wrap { position: relative; z-index: 2; }
.offer-float { animation: offerFloat 9s ease-in-out infinite; }
@keyframes offerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.offer-ticket {
  position: relative;
  isolation: isolate;
  max-width: 440px;
  margin: 0 auto;
  padding: 30px 30px 26px;
  border-radius: 26px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 184, 48, 0.16), transparent 60%),
    linear-gradient(165deg, rgba(31, 42, 82, 0.96) 0%, rgba(12, 18, 40, 0.98) 60%, rgba(8, 11, 24, 1) 100%);
  box-shadow:
    0 50px 110px -40px rgba(0, 0, 0, 0.9),
    0 30px 90px -50px rgba(255, 184, 48, 0.55),
    inset 0 1px 0 rgba(255, 220, 143, 0.14);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out-expo);
}
/* a light sweeping around the edge */
.offer-ticket::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--offer-angle),
    rgba(255, 184, 48, 0.12) 0deg,
    rgba(255, 226, 160, 0.95) 50deg,
    rgba(255, 184, 48, 0.12) 120deg,
    rgba(133, 104, 255, 0.45) 230deg,
    rgba(255, 184, 48, 0.12) 300deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: offerSpin 7s linear infinite;
  pointer-events: none;
}
@keyframes offerSpin { to { --offer-angle: 360deg; } }

.offer-ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.offer-ticket__badge {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #1C1305;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFDC8F, var(--gold));
  box-shadow: 0 10px 26px -10px rgba(255, 184, 48, 0.9);
  transform: rotate(4deg);
}
.offer-ticket__name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.offer-ticket__sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--slate);
}
.offer-ticket .offer-price { margin: 22px 0 10px; }
.offer-ticket .offer-price strong { font-size: clamp(64px, 7vw, 84px); }
.offer-ticket .offer-price s { font-size: 24px; }
.offer-ticket .offer-save { margin-bottom: 22px; }

.offer-ticket__cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFDC8F 0%, var(--gold) 55%, #F59E0B 100%);
  color: #1C1305;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 40px -16px rgba(255, 184, 48, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.offer-ticket__cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: offerShine 4.5s ease-in-out 1.5s infinite;
}
@keyframes offerShine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.offer-ticket__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -16px rgba(255, 184, 48, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.offer-ticket__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.offer-ticket__cta .arrow { display: inline-flex; align-items: center; gap: 10px; }

.offer-ticket__alt {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--slate);
}
.offer-ticket__alt a { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline-strong); }
.offer-ticket__alt a:hover { color: #fff; }

/* perforation: the ticket stub */
.offer-ticket__perf {
  position: relative;
  height: 1px;
  margin: 24px -30px 20px;
  background-image: linear-gradient(90deg, rgba(150, 162, 194, 0.35) 50%, transparent 0);
  background-size: 10px 1px;
}
.offer-ticket__perf::before,
.offer-ticket__perf::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #070B19;
}
.offer-ticket__perf::before { left: -11px; }
.offer-ticket__perf::after { right: -11px; }
.offer-ticket__ends {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.offer-ticket__ends-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

/* price ladder */
.offer-ladder-wrap {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: clamp(56px, 7vw, 88px) auto 0;
}
.offer-ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.offer-ladder li {
  position: relative;
  padding: 26px 12px 0;
  text-align: center;
}
.offer-ladder li::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hairline-strong);
}
.offer-ladder li:first-child::before { left: 50%; }
.offer-ladder li:last-child::before { right: 50%; }
.offer-ladder li::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #0A1024;
  border: 2px solid var(--hairline-strong);
}
.offer-ladder .amt {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate);
}
.offer-ladder .when {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(150, 162, 194, 0.75);
}
.offer-ladder li.is-now .amt { color: #fff; font-size: 32px; text-shadow: 0 0 26px rgba(255, 184, 48, 0.5); }
.offer-ladder li.is-now .when { color: var(--gold); }
.offer-ladder li.is-now::after {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 184, 48, 0.18), 0 0 22px rgba(255, 184, 48, 0.8);
  animation: offerPulse 2s ease-out infinite;
}
/* what is left of the current step drains toward the next price */
.offer-ladder li.is-now .drain {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 184, 48, 0.25));
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  z-index: 1;
}
.offer-ladder li.is-full .amt { text-decoration: none; }
.offer-ladder-note {
  margin: 26px auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 13.5px;
  color: var(--slate);
}

/* depth 5: sparks */
.offer-sparks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.offer-sparks i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FFE3A3;
  box-shadow: 0 0 10px 2px rgba(255, 184, 48, 0.7);
  opacity: 0;
  animation: offerSpark 6s ease-in-out infinite;
}
.offer-sparks i:nth-child(1) { left: 62%; top: 18%; animation-delay: 0s; }
.offer-sparks i:nth-child(2) { left: 88%; top: 30%; animation-delay: 1.4s; }
.offer-sparks i:nth-child(3) { left: 71%; top: 76%; animation-delay: 2.6s; }
.offer-sparks i:nth-child(4) { left: 94%; top: 62%; animation-delay: 3.3s; }
.offer-sparks i:nth-child(5) { left: 56%; top: 48%; animation-delay: 4.1s; }
.offer-sparks i:nth-child(6) { left: 80%; top: 10%; animation-delay: 5s; }
.offer-sparks i:nth-child(7) { left: 12%; top: 84%; animation-delay: 2s; }
@keyframes offerSpark {
  0%, 100% { opacity: 0; transform: translateY(6px) scale(0.6); }
  40% { opacity: 1; transform: translateY(-6px) scale(1); }
  70% { opacity: 0; transform: translateY(-14px) scale(0.8); }
}

/* hero CTA during an offer: the gold button */
.pricing-button.is-offer {
  background: linear-gradient(135deg, #FFDC8F 0%, var(--gold) 55%, #F59E0B 100%);
  color: #1C1305;
  border-color: transparent;
  box-shadow: 0 16px 40px -16px rgba(255, 184, 48, 0.95);
}
.pricing-button.is-offer .price {
  background: rgba(28, 19, 5, 0.12);
  color: #1C1305;
  border-left-color: rgba(28, 19, 5, 0.18);
}
.pricing-button.is-offer:hover { box-shadow: 0 22px 50px -16px rgba(255, 184, 48, 1); }

/* promo bar: the struck full price beside the offer price */
.promo-bar__message s { color: var(--slate); text-decoration-color: rgba(255, 128, 96, 0.85); text-decoration-thickness: 1.5px; }
.promo-bar__message b { color: var(--gold); font-weight: 600; }
.promo-bar__label { color: var(--gold); }

/* buy page strip */
.offer-strip-section { padding: 8px 24px 40px; }
.offer-strip-section:has([data-offer-strip][hidden]) { display: none; }
.offer-strip {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.offer-strip .offer-ladder-wrap { margin-top: 34px; }
.offer-strip .offer-ladder-note { margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .offer-inner { grid-template-columns: minmax(0, 1fr); }
  .offer-ticket { width: 100%; }
  .offer-copy { text-align: center; }
  .offer-copy h2 { text-align: center; }
  .offer-copy > p { margin-left: auto; margin-right: auto; }
  .offer-includes { max-width: 460px; margin: 0 auto; text-align: left; }
  .offer-glow { right: 50%; transform: translate(50%, -50%); top: 62%; width: 110vw; }
  @keyframes offerBreathe {
    0%, 100% { opacity: 0.75; transform: translate(50%, -50%) scale(0.94); }
    50% { opacity: 1; transform: translate(50%, -50%) scale(1.04); }
  }
}
@media (max-width: 600px) {
  .offer-lockup { padding: 14px 16px 16px; width: 100%; }
  .offer-lockup--inline { border-radius: 20px; padding: 10px 12px; }
  .offer-copy .eyebrow { font-size: 10.5px; letter-spacing: 0.16em; }
  .offer-show { padding-left: 16px; padding-right: 16px; }
  .offer-price strong { font-size: 36px; }
  .offer-tile .num { min-width: 38px; font-size: 17px; padding: 6px 6px 5px; }
  .offer-tiles { gap: 4px; }
  .offer-tiles .sep { font-size: 15px; padding-top: 5px; }
  .offer-ticket { padding: 26px 20px 22px; }
  .offer-ticket__perf { margin-left: -20px; margin-right: -20px; }
  .offer-ladder li { padding: 26px 4px 0; }
  .offer-ladder .amt { font-size: 19px; }
  .offer-ladder li.is-now .amt { font-size: 23px; }
  .offer-ladder .when { font-size: 9.5px; letter-spacing: 0.06em; }
}

/* ---------- reduced motion and touch ---------- */
@media (prefers-reduced-motion: reduce) {
  .offer-tag .dot,
  .offer-glow,
  .offer-beam,
  .offer-float,
  .offer-ticket::before,
  .offer-ticket__cta::after,
  .offer-sparks i,
  .offer-ladder li.is-now::after,
  .offer-tile .num.tick { animation: none !important; }
  .offer-sparks { display: none; }
  .offer-ticket { transition: none; }
}
@media (pointer: coarse) {
  .offer-sparks i:nth-child(n+4) { display: none; }
  .offer-beam.b2 { display: none; }
}
