/* SP FINAL REBUILD
   The production PC sections are the visual master below the locked SP FV.
   Current copy, claims, anchors and form behavior remain in the shared DOM. */

@media (max-width: 840px) {
  body.sp-phase2-active .sp-phase2-flow {
    color: #052152;
    background: #fff;
  }

  /* Production-SP baselines retained for the three user-approved sections. */
  body.sp-phase2-active #consulting {
    background: #e9f3f7 !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-card {
    border-radius: 2px !important;
    box-shadow: 0 3px 10px rgba(0,43,74,.05) !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-card-body {
    box-shadow: none !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-contact {
    display: flex !important;
    min-height: 108px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(#ffef3a,#ffdb16) !important;
    box-shadow: inset 0 -4px 0 #9c8700 !important;
    color: #102542 !important;
    font-size: 23px !important;
    font-weight: 900 !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-contact::before {
    content: none !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-contact .cta-reception,
  body.sp-phase2-active #consulting .pc-consulting-contact .cta-easy {
    position: absolute !important;
    top: 10px !important;
    display: block !important;
    min-height: 23px !important;
    border-radius: 0 !important;
    color: #fff !important;
    background: #a88d00 !important;
    font-size: 11px !important;
    line-height: 23px !important;
    text-align: center !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-contact .cta-reception {
    left: 20px !important;
    width: calc(64% - 24px) !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-contact .cta-easy {
    right: 20px !important;
    width: calc(36% - 20px) !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-contact .cta-mail-row {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 25px !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-contact .cta-mail-row img {
    width: 30px !important;
    height: 30px !important;
  }
  body.sp-phase2-active #consulting .pc-consulting-contact .cta-tap {
    right: 18px !important;
    bottom: 7px !important;
    width: 42px !important;
  }
  body.sp-phase2-active #introduction {
    background: linear-gradient(180deg,#f8f7f2 0%,#f2efe6 72%,#ffedc6 100%) !important;
  }
  body.sp-phase2-active #introduction .pc-introduction-item {
    border: 3px double rgba(255,255,255,.95) !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.68) !important;
    box-shadow: 0 5px 18px rgba(67,62,45,.06) !important;
  }
  body.sp-phase2-active #introduction .pc-introduction-item-inner {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.56) !important;
    backdrop-filter: none !important;
  }
  body.sp-phase2-active #introduction .pc-introduction-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  body.sp-phase2-active #introduction .pc-introduction-item {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  body.sp-phase2-active #introduction .pc-introduction-labels {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Keep the production-SP case interaction: one card, arrows, dots and swipe. */
  body.sp-phase2-active #sp-phase2-case {
    padding-right: 10px !important;
    padding-left: 10px !important;
    overflow: hidden !important;
    background: #102f4a !important;
  }
  body.sp-phase2-active #sp-phase2-case #case-results {
    width: 100% !important;
    max-width: 390px !important;
    overflow: hidden !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-carousel {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 760px !important;
    overflow: hidden !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-slide {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-slide[hidden] {
    display: none !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-slide .card {
    border-radius: 15px !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-nav {
    position: absolute !important;
    z-index: 8 !important;
    top: 285px !important;
    display: grid !important;
    width: 42px !important;
    height: 48px !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: #07517f !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-prev { left: 5px !important; }
  body.sp-phase2-active #sp-phase2-case .release-next { right: 5px !important; }
  body.sp-phase2-active #sp-phase2-case .release-pages {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-pages button {
    width: 34px !important;
    height: 6px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #7d9cb1 !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-pages button[aria-current="true"] {
    background: #fff !important;
  }
  body.sp-phase2-active #sp-phase2-case .release-sr {
    display: block !important;
  }

  /* Reveal effects must never leave the reconstructed master half-faded. */
  body.sp-phase2-active #trial .pc-support840-card,
  body.sp-phase2-active #trial .pc-support840-photo,
  body.sp-phase2-active #trial .pc-support840-eyebrow,
  body.sp-phase2-active #trial h2,
  body.sp-phase2-active #trial .pc-support840-lead,
  body.sp-phase2-active #trial .pc-support840-cta,
  body.sp-phase2-active #trial-sp .sp-cta-heading,
  body.sp-phase2-active #trial-sp .sp-cta-heading * {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Services: preserve the PC photo-led card identity, not a generic tile. */
  body.sp-phase2-active #phase1-service {
    margin: 0 !important;
    padding: 56px 18px 64px !important;
    border-radius: 0 !important;
    background: #ebfaff !important;
  }
  body.sp-phase2-active #phase1-service .p1-head h2 {
    font-size: clamp(30px,8vw,42px) !important;
  }
  body.sp-phase2-active #phase1-service .p1-service-grid {
    gap: 20px !important;
  }
  body.sp-phase2-active #phase1-service .p1-card {
    border: 1px solid #d1ebf7;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,51,102,.11);
  }
  body.sp-phase2-active #phase1-service .p1-card-photo {
    display: block;
  }
  body.sp-phase2-active #phase1-service .p1-card-photo > img {
    display: block;
    width: 100%;
    height: clamp(180px,48vw,290px) !important;
    object-fit: cover;
  }
  body.sp-phase2-active #phase1-service .p1-card-body {
    padding: 20px 20px 26px !important;
  }
  body.sp-phase2-active #phase1-service .p1-service-glyph { display: none; }
  body.sp-phase2-active #phase1-service .p1-service-icon img {
    display: block;
    width: 48px;
    height: 48px;
  }

  /* Operation review: keep its cool-blue review panel and numbered flow. */
  body.sp-phase2-active #switch {
    padding: 56px 18px 64px !important;
    background: linear-gradient(145deg,#effbff,#d9f3fb) !important;
  }
  body.sp-phase2-active #switch .pc-operation-review-grid article {
    border: 1px solid #c9e8f3;
    border-radius: 14px !important;
    box-shadow: 0 7px 20px rgba(3,41,92,.07);
  }
  body.sp-phase2-active #switch .pc-operation-review-grid article b {
    border-radius: 10px !important;
    background: linear-gradient(145deg,#0787a7,#03a7c5) !important;
  }
  body.sp-phase2-active #switch .pc-operation-review-note {
    border-left: 5px solid #0a9fbd;
    border-radius: 8px !important;
    background: rgba(255,255,255,.72) !important;
  }

  /* Advertising media: retain the PC band and six brand tiles. */
  body.sp-phase2-active #phase1-media {
    margin: 0 !important;
    padding: 48px 18px 58px !important;
    border-radius: 0 !important;
    background: #ebfaff !important;
  }
  body.sp-phase2-active #phase1-media .p1-band {
    margin-bottom: 28px;
    border-radius: 16px !important;
    background: linear-gradient(135deg,#022750,#073b6c) !important;
  }
  body.sp-phase2-active #phase1-media .p1-medium {
    min-height: 178px;
    border: 1px solid #bae3f5;
    border-radius: 14px;
    background: #fff;
  }

  /* SEO: keep the PC cyan field, white content panel and monitor asset. */
  body.sp-phase2-active #media {
    padding: 54px 18px 62px !important;
    overflow: hidden !important;
    background: linear-gradient(150deg,#effbff 0%,#d7f2fb 100%) !important;
  }
  body.sp-phase2-active #media .pc-seo-catch {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,56,100,.2);
  }
  body.sp-phase2-active #media .pc-seo-panel {
    border: 1px solid #65c8e5;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(3,65,102,.1);
  }
  body.sp-phase2-active #media .pc-seo-monitor img {
    object-fit: contain;
  }

  /* Support scope: same navy/cyan information table, reflowed as row cards. */
  body.sp-phase2-active #phase1-compare {
    margin: 0 !important;
    padding: 48px 18px 60px !important;
    border-radius: 0 !important;
    background: #ebfaff !important;
  }
  body.sp-phase2-active #phase1-compare .p1-band {
    border-radius: 16px !important;
    background: linear-gradient(135deg,#022750,#073b6c) !important;
  }
  body.sp-phase2-active #phase1-compare .p1-table-wrap {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.sp-phase2-active #phase1-compare .p1-table tr {
    border-color: #8fcbe5 !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 14px rgba(3,41,92,.06);
  }
  body.sp-phase2-active #phase1-compare .p1-table th {
    background: #03295c !important;
    font-size: 15px !important;
  }
  body.sp-phase2-active #phase1-compare .p1-table td {
    color: #39516f !important;
    background: #fff !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  /* FLOW: faithful photo + pale-blue panel rhythm from the PC master. */
  body.sp-phase2-active #phase1-flow {
    margin: 0 !important;
    padding: 54px 18px 64px !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  body.sp-phase2-active #phase1-flow .p1-head {
    margin-bottom: 34px !important;
  }
  body.sp-phase2-active #phase1-flow .p1-head h2 {
    font-size: clamp(29px,7.7vw,40px) !important;
    line-height: 1.38 !important;
  }
  body.sp-phase2-active #phase1-flow .p1-en {
    position: relative;
    width: max-content;
    margin: 6px auto 0;
    padding: 0 9px 7px;
  }
  body.sp-phase2-active #phase1-flow .p1-en::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #03295c;
    content: "";
  }
  body.sp-phase2-active #phase1-flow .p1-flow {
    gap: 30px !important;
  }
  body.sp-phase2-active #phase1-flow .p1-step {
    position: relative;
    overflow: visible;
    border: 1px solid #c7e6f1;
    border-radius: 0 !important;
    background: linear-gradient(180deg,#f2fbff,#eaf9ff);
  }
  body.sp-phase2-active #phase1-flow .p1-step:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 100%;
    width: 24px;
    height: 30px;
    transform: translateX(-50%);
    color: #052152;
    content: "⋮";
    font-size: 26px;
    font-weight: 800;
    line-height: 28px;
    text-align: center;
  }
  body.sp-phase2-active #phase1-flow .p1-step-photo {
    height: clamp(155px,42vw,250px) !important;
    border-radius: 0 !important;
  }
  body.sp-phase2-active #phase1-flow .p1-step-copy {
    padding: 20px 20px 22px !important;
  }
  body.sp-phase2-active #phase1-flow .p1-step-no {
    display: block;
    width: auto;
    margin-bottom: 5px;
    color: #0793b6;
    font-size: 24px;
    font-weight: 900;
  }

  /* FAQ: keep the PC full-width cyan accordion language. */
  body.sp-phase2-active #phase1-faq {
    margin: 0 !important;
    padding: 54px 18px 64px !important;
    border-radius: 0 !important;
    background: #eaf9ff !important;
  }
  body.sp-phase2-active #phase1-faq .p1-head h2 {
    font-size: clamp(30px,8vw,42px) !important;
  }
  body.sp-phase2-active #phase1-faq .p1-faq {
    gap: 12px !important;
  }
  body.sp-phase2-active #phase1-faq .p1-faq details {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(3,41,92,.04);
  }
  body.sp-phase2-active #phase1-faq .p1-faq summary {
    background: linear-gradient(100deg,#0787a7,#03a7c5) !important;
  }

  /* Consultation CTA: restore the PC operator-photo relationship and gold CTA. */
  body.sp-phase2-active .p1-cta {
    position: relative;
    margin: 0 !important;
    padding: 52px 18px 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: linear-gradient(145deg,#effcff,#bdeeff) !important;
  }
  body.sp-phase2-active .p1-cta .p1-cta-layout {
    display: flex !important;
    flex-direction: column !important;
  }
  body.sp-phase2-active .p1-cta .p1-cta-copy {
    position: relative;
    z-index: 2;
  }
  body.sp-phase2-active .p1-cta h2 {
    font-size: clamp(29px,7.7vw,39px) !important;
  }
  body.sp-phase2-active .p1-cta .p1-reassurance {
    gap: 12px !important;
  }
  body.sp-phase2-active .p1-cta .p1-reassurance b {
    min-height: 72px !important;
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: 0 5px 14px rgba(3,41,92,.05);
  }
  body.sp-phase2-active .p1-cta .p1-cta-link {
    position: relative;
    z-index: 3;
    min-height: 68px !important;
    border: 2px solid #f4c300 !important;
    border-radius: 999px !important;
    background: linear-gradient(#ffed4e,#ffd61b) !important;
    box-shadow: 0 8px 18px rgba(3,41,92,.17) !important;
  }
  body.sp-phase2-active .p1-cta .p1-cta-person {
    display: block !important;
    order: 2;
    width: min(88%,420px) !important;
    height: auto !important;
    max-height: 460px !important;
    margin: 18px auto 0 !important;
    object-fit: contain !important;
    object-position: center bottom !important;
  }

  /* Contact: PC master uses a white section and a restrained gray form panel. */
  body.sp-phase2-active #contact {
    padding: 58px 18px 70px !important;
    overflow: visible !important;
    background: #fff !important;
  }
  body.sp-phase2-active #contact .pc-contact-header h2 {
    color: #2b2b2b !important;
    font-size: clamp(31px,8vw,42px) !important;
  }
  body.sp-phase2-active #contact .pc-contact-header p {
    display: block !important;
    margin-top: 6px !important;
    color: #777 !important;
    font-family: Georgia,serif;
    font-size: 12px !important;
    letter-spacing: .12em;
  }
  body.sp-phase2-active #contact .pc-contact-lead {
    color: #39516f !important;
  }
  body.sp-phase2-active #contact .pc-contact-form {
    margin-top: 30px !important;
    padding: 26px 18px 30px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f1f1f1 !important;
    box-shadow: none !important;
  }
  body.sp-phase2-active #contact .pc-contact-row {
    margin: 0 !important;
    padding: 17px 0 !important;
    border-bottom: 0 !important;
  }
  body.sp-phase2-active #contact input[type="text"],
  body.sp-phase2-active #contact input[type="email"],
  body.sp-phase2-active #contact input[type="tel"],
  body.sp-phase2-active #contact input[type="url"],
  body.sp-phase2-active #contact select,
  body.sp-phase2-active #contact textarea {
    border: 1px solid #dedede !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  body.sp-phase2-active #contact .pc-contact-options label {
    min-height: 42px;
  }
  body.sp-phase2-active #contact .pc-contact-submit {
    min-height: 62px !important;
    border-radius: 0 !important;
    background: #ffe229 !important;
    box-shadow: 0 4px 0 #9f8a00 !important;
    color: #181818 !important;
  }

  /* Company: same pale-blue field and dashed definition rows as the PC master. */
  body.sp-phase2-active #company {
    padding: 56px 18px 68px !important;
    background: #eaf7fc !important;
  }
  body.sp-phase2-active #company .pc-company-header h2 {
    color: #2b2b2b !important;
    font-size: clamp(31px,8vw,42px) !important;
  }
  body.sp-phase2-active #company .pc-company-header p {
    display: block !important;
    margin-top: 6px !important;
    color: #64727c !important;
    font-family: Georgia,serif;
    font-size: 12px !important;
    letter-spacing: .13em;
  }
  body.sp-phase2-active #company .pc-company-list {
    margin-top: 30px !important;
    border-top: 1px dashed #8da6b5;
    background-image: none !important;
  }
  body.sp-phase2-active #company .pc-company-row {
    padding: 18px 0 !important;
    border-bottom: 1px dashed #8da6b5 !important;
    background-image: none !important;
  }
}

@media (max-width: 430px) {
  body.sp-phase2-active #achievements,
  body.sp-phase2-active #phase1-service,
  body.sp-phase2-active #switch,
  body.sp-phase2-active #price,
  body.sp-phase2-active #phase1-media,
  body.sp-phase2-active #media,
  body.sp-phase2-active #phase1-compare,
  body.sp-phase2-active #phase1-flow,
  body.sp-phase2-active #phase1-faq,
  body.sp-phase2-active .p1-cta,
  body.sp-phase2-active #contact,
  body.sp-phase2-active #company {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Keep the approved desktop price ornament contained as on production. */
@media (min-width: 841px) {
  #price.pc-price-master { overflow: hidden !important; }
}
