/* P0 visual restore (STAGING only)
   - The production SP FV and the approved PC FV remain untouched.
   - Only the SP/tablet high-ticket composition is rebuilt from the current
     production PC master artwork and its existing live-copy elements. */

@media (max-width: 840px) {
  body.sp-phase2-active #pc-high-ticket {
    display: none !important;
  }

  body.sp-phase2-active #trial-sp {
    position: relative !important;
    isolation: isolate;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 850px !important;
    min-height: 850px !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #fff !important;
    background:
      linear-gradient(132deg, transparent 0 14%, rgba(16,133,231,.18) 14% 24%, transparent 24% 39%, rgba(10,112,211,.15) 39% 49%, transparent 49%),
      linear-gradient(180deg, #0067bd 0%, #003c80 30%, #002f69 67%, #00244f 100%) !important;
  }

  /* Approved residential master is reused without regeneration. The SP crop
     prioritizes packed furniture and boxes while all copy stays separate. */
  body.sp-phase2-active #trial-sp::before {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 235px;
    background:
      linear-gradient(90deg, #003d80 0%, rgba(0,61,128,.92) 20%, rgba(0,50,104,.30) 67%, rgba(0,37,79,.02) 100%),
      url("assets/high-ticket/high-ticket-residential-approved.png?v=20261025-approved1") center 34% / cover no-repeat;
    content: "";
    pointer-events: none;
  }

  body.sp-phase2-active #trial-sp::after {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 226px;
    width: min(88%, 430px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #f0c95a 18%, #fff0a6 50%, #f0c95a 82%, transparent);
    content: "";
    pointer-events: none;
  }

  body.sp-phase2-active #trial-sp > picture,
  body.sp-phase2-active #trial-sp > picture .sp-cta-bg {
    display: none !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading {
    position: absolute !important;
    z-index: 3 !important;
    left: 50% !important;
    top: 60px !important;
    width: min(calc(100% - 30px), 430px) !important;
    height: 168px !important;
    transform: translateX(-50%) !important;
    text-align: left !important;
    text-shadow: 0 2px 8px rgba(0,20,52,.72) !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading::before {
    content: none !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading > p {
    height: auto !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(19px, 5.25vw, 27px) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading > div {
    position: relative !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    height: 63px !important;
    margin-top: -1px !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading .cta-amount-premium {
    position: static !important;
    display: inline-flex !important;
    align-items: baseline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: #f6d869 !important;
    white-space: nowrap !important;
    filter: none !important;
    transform: none !important;
    text-shadow: 0 1px 0 #8b6200, 0 2px 8px rgba(0,20,52,.72) !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading .cta-amount-premium b,
  body.sp-phase2-active #trial-sp .sp-cta-heading .cta-amount-premium i,
  body.sp-phase2-active #trial-sp .sp-cta-heading .cta-amount-premium em {
    color: #f6d869 !important;
    -webkit-text-fill-color: #f6d869 !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1 !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading .cta-amount-premium b {
    font-size: clamp(51px, 13.8vw, 66px) !important;
    letter-spacing: -.065em !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading .cta-amount-premium i {
    margin-inline: .07em !important;
    font-size: clamp(27px, 7.2vw, 36px) !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading .cta-amount-premium em {
    margin-left: .08em !important;
    font-size: clamp(30px, 8vw, 39px) !important;
    letter-spacing: -.04em !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading .sp-high-ticket-particle {
    position: static !important;
    flex: 0 0 auto !important;
    margin: 0 0 3px .22em !important;
    color: #fff !important;
    font-size: clamp(15px, 4.15vw, 21px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 5px rgba(0,20,52,.72) !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading h2 {
    margin: 2px 0 0 !important;
    width: max-content !important;
    max-width: 100% !important;
    color: #fff !important;
    font-size: clamp(20px, 5.45vw, 27px) !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: -.01em !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading h2 span {
    display: block !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-offer {
    position: absolute !important;
    z-index: 4 !important;
    left: 50% !important;
    top: 275px !important;
    width: 254px !important;
    height: 306px !important;
    margin: 0 !important;
    transform: translateX(-50%) scale(1.08) !important;
    transform-origin: top center !important;
    border: 1px solid #d4ab47 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #073e72 0%, #002f62 72%, #022750 100%) !important;
    box-shadow: 0 16px 32px rgba(0,17,48,.34), inset 0 0 24px rgba(255,213,101,.08) !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-offer::before {
    display: block !important;
    position: absolute !important;
    z-index: 9 !important;
    inset: 7px !important;
    border: 1px solid rgba(255,224,132,.34) !important;
    background: none !important;
    content: "" !important;
    pointer-events: none !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-offer::after {
    box-shadow: inset 0 0 0 1px #d4ab47 !important;
  }

  body.sp-phase2-active #trial-sp .sp-offer-reference,
  body.sp-phase2-active #trial-sp .offer-rate-screenshot {
    display: block !important;
  }

  body.sp-phase2-active #trial-sp .sp-offer-reference {
    position: absolute !important;
    left: -2px !important;
    top: -16px !important;
    width: 291px !important;
    height: 253px !important;
    max-width: none !important;
  }

  body.sp-phase2-active #trial-sp .offer-rate-screenshot {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 254px !important;
    height: 208px !important;
    max-width: none !important;
  }

  body.sp-phase2-active #trial-sp .sp-offer-plus {
    position: absolute !important;
    z-index: 3 !important;
    left: 110px !important;
    top: 198px !important;
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    color: #fff !important;
    font-size: 47px !important;
    font-weight: 900 !important;
    line-height: 34px !important;
    text-align: center !important;
  }

  body.sp-phase2-active #trial-sp .sp-offer-plus::before,
  body.sp-phase2-active #trial-sp .sp-offer-plus::after {
    content: none !important;
    display: none !important;
  }

  body.sp-phase2-active #trial-sp .sp-offer-knowhow {
    position: absolute !important;
    z-index: 3 !important;
    left: 5px !important;
    top: 242px !important;
    display: flex !important;
    width: 242px !important;
    height: 58px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.sp-phase2-active #trial-sp .sp-offer-knowhow > small {
    display: grid !important;
    width: 24px !important;
    height: 58px !important;
    place-items: center !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
  }

  body.sp-phase2-active #trial-sp .sp-offer-knowhow > strong {
    margin-left: 8px !important;
    color: #f6d869 !important;
    -webkit-text-fill-color: #f6d869 !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1.16 !important;
    white-space: nowrap !important;
  }

  body.sp-phase2-active #trial-sp .offer-limited {
    background: linear-gradient(180deg, #fff0a5 0%, #efbd39 53%, #c58a12 100%) !important;
    color: #05244c !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.72) !important;
  }

  body.sp-phase2-active #trial-sp .offer-limited::after {
    background: #d9a52c !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact {
    position: absolute !important;
    z-index: 5 !important;
    left: 50% !important;
    top: 650px !important;
    width: min(calc(100% - 30px), 360px) !important;
    height: 110px !important;
    transform: translateX(-50%) !important;
    border: 1px solid #ffe86c !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #fff34d 0%, #ffd91f 100%) !important;
    box-shadow: 0 12px 25px rgba(0,18,52,.35), inset 0 -4px 0 #a98b00 !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-reception,
  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-easy {
    position: absolute !important;
    display: block !important;
    color: #fff !important;
    background: #7b6200 !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-reception {
    left: 20px !important;
    top: 12px !important;
    width: 205px !important;
    height: 22px !important;
    font-size: 13px !important;
    line-height: 18px !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-easy {
    left: 245px !important;
    top: 8px !important;
    width: 100px !important;
    height: 30px !important;
    font-size: 11px !important;
    line-height: 25px !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row,
  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row b,
  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row span,
  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row em {
    color: #071d3d !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row {
    position: absolute !important;
    left: 20px !important;
    top: 52px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row img {
    width: 36px !important;
    height: 27px !important;
    object-fit: contain !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row b {
    line-height: 34px !important;
    white-space: nowrap !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row b span {
    font-size: 24px !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-mail-row b em {
    font-size: 28px !important;
    font-style: normal !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact .cta-tap {
    position: absolute !important;
    left: 299px !important;
    top: 40px !important;
    display: block !important;
    width: 36px !important;
    height: 69px !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
  }
}

@media (max-width: 430px) {
  body.sp-phase2-active #trial-sp {
    height: 820px !important;
    min-height: 820px !important;
  }

  body.sp-phase2-active #trial-sp::before {
    height: 220px;
    background-position: center 34%;
  }

  body.sp-phase2-active #trial-sp::after {
    top: 211px;
  }

  body.sp-phase2-active #trial-sp .sp-cta-heading {
    top: 62px !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-offer {
    top: 252px !important;
  }

  body.sp-phase2-active #trial-sp .sp-cta-contact {
    top: 626px !important;
    width: calc(100% - 30px) !important;
  }
}
