/* ------------------------------------------------------------------
   Program landing pages — hand-written layer on top of the generated
   <program>/<program>.css bundles: section reveal and fixes for running
   inside the site's header/footer.
------------------------------------------------------------------ */

/* ========================================================== reveal == */

/* [data-reveal] blocks fade up the first time they scroll into view;
   [data-reveal="group"] does the same to each child, staggered (landing.js
   sets --lev-i). It's an animation with no `to` frame, so each element
   animates into its own opacity/transform and keeps its hover transitions
   afterwards. Hidden only under html.lev-js, so without JS everything shows. */

@keyframes lev-fade-up {
  from { opacity: 0; transform: translateY(28px); }
}

.lev-js .lev-program [data-reveal]:not([data-reveal="group"]):not(.is-visible),
.lev-js .lev-program [data-reveal="group"]:not(.is-visible) > * {
  opacity: 0 !important;
}

.lev-js .lev-program [data-reveal]:not([data-reveal="group"]).is-visible,
.lev-js .lev-program [data-reveal="group"].is-visible > * {
  animation: lev-fade-up .8s cubic-bezier(.22, .61, .36, 1) backwards;
  animation-delay: calc(var(--lev-i, 0) * 90ms);
}

/* landing.js marks everything visible at once under reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .lev-js .lev-program [data-reveal]:not([data-reveal="group"]).is-visible,
  .lev-js .lev-program [data-reveal="group"].is-visible > * { animation: none; }
}

/* ================================================= story previews == */

/* Hovering an interview card plays its muted preview clip over the
   thumbnail; the play badge stays on top. */
.lev-program .story-preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lev-program .story-trigger.is-previewing .story-preview { opacity: 1; }
.lev-program .story-play { z-index: 1; }

/* ============================================ step 01 size picker == */

/* landing.js cycles the selection every 2s; ease the row highlight and pop
   the check in, so the change reads as motion rather than a jump. */
.lev-program #why .step-account-option {
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease;
}
.lev-program #why .step-account-option::after {
  transition: background-color .4s ease, border-color .4s ease;
}
.lev-program #why .step-account-option[aria-pressed="true"]::after {
  animation: lev-check-pop .45s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes lev-check-pop {
  from { transform: scale(.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lev-program #why .step-account-option,
  .lev-program #why .step-account-option::after { transition: none; }
  .lev-program #why .step-account-option[aria-pressed="true"]::after { animation: none; }
}

/* ======================================================= site chrome == */

/* The export's page background, carried edge to edge between the site's
   header and footer. */
.lev-program { overflow-x: clip; }

/* The export was laid out against browser defaults, which the theme and
   Bootstrap change: body line-height 24px, images middle-aligned. */
.lev-program { line-height: normal; }
.lev-program img,
.lev-program svg { vertical-align: baseline; }

/* profit/style.css has a global .rule-icon (an absolutely positioned 140px
   badge) that would stack every rule icon in the panel's corner. */
.lev-program .rule-icon { position: static; top: auto; right: auto; z-index: auto; }

/* BUY NOW is a link here (the export had a button), so it needs the button's
   centring and no theme underline. */
.lev-program a.purchase { text-align: center; text-decoration: none; }

/* "*Add-ons available at checkout." under the hero CTA. It's the last item of .hero-actions
   and takes a full row, so it starts under the CTA's left edge; on phones (CTA full width,
   rating below) it moves between the CTA and the rating. */
.lev-program .hero-actions .hero-addons-note {
    order: 3;
    flex-basis: 100%;
    margin: -9px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: #9fcab1;
}

@media (max-width: 700px) {
    .lev-program .hero-actions > .hero-cta { order: 1; }
    .lev-program .hero-actions .hero-addons-note { order: 2; margin-top: -10px; font-size: 13px; }
    /* The rating link was centred as the last child; the note now is. */
    .lev-program .hero-actions > a:not(.hero-cta) { order: 3; margin: auto; }
}

/* ── Black Friday promo offer (replaces .offer) — shared by instant & nitro ──── */
.lev-program .bf-offer {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 560px;
    margin-top: 18px;
}
.lev-program .bf-offer__deal {
    flex: 1 1 290px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    background: #FFEF00;
    border-radius: 12px;
    padding: 12px 16px;
    color: #042820;
}
.lev-program .bf-offer__row { display: flex; align-items: center; gap: 10px; }
.lev-program .bf-offer__row--amounts { gap: 12px; }
.lev-program .bf-offer__label {
    font: 800 13px/1 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lev-program .bf-offer__limited {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: #042820;
    border-radius: 999px;
    padding: 4px 9px;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.lev-program .bf-offer__clock { width: 12px; height: 12px; flex: 0 0 auto; }
.lev-program .bf-offer__new {
    font: 800 28px/1 Arial, sans-serif;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.lev-program .bf-offer__old {
    font: 700 16px/1 Arial, sans-serif;
    color: rgba(4, 40, 32, .55);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    white-space: nowrap;
}
.lev-program .bf-offer__code {
    flex: 1 1 170px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: radial-gradient(130% 150% at 100% 0%, #0B2E26 0%, #03201A 72%);
    border: 1px solid rgba(154, 245, 189, .14);
    border-radius: 12px;
    padding: 12px 16px;
    color: #9AF5BD;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease;
}
.lev-program .bf-offer__code:hover { border-color: rgba(154, 245, 189, .4); }
.lev-program .bf-offer__code-label {
    font: 700 11px/1 Arial, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #4E866F;
}
.lev-program .bf-offer__code-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 800 24px/1 Arial, sans-serif;
    letter-spacing: .02em;
    color: #9AF5BD;
}
.lev-program .bf-offer__copy-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.lev-program .bf-offer__code.is-copied { border-color: rgba(154, 245, 189, .5); }
@media (max-width: 700px) {
    .lev-program .bf-offer { max-width: 100%; margin-top: 20px; }
    .lev-program .bf-offer__new { font-size: 24px; }
    .lev-program .bf-offer__code-value { font-size: 21px; }
}
