/* CP262: protect text and product media from the atmospheric lightning layer. */
html,
body {
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: auto;
}

/* Keep the electric artwork recognizable, while giving copy a calmer surface. */
.page.subpage-shell::before {
  opacity: .15 !important;
  filter: contrast(1.2) saturate(1.06) brightness(1.01) !important;
}

.subpage-shell main > .subpage-visual-scene,
.subpage-shell main > .legal-page,
.subpage-shell main > .section {
  background-image: linear-gradient(
    180deg,
    rgba(2, 8, 17, .28),
    rgba(2, 8, 17, .38)
  ) !important;
}

.subpage-shell main :is(p, li, dd) {
  color: #d7e2ef;
  font-weight: 500;
}

.subpage-shell main :is(.product-lead, .pg-partner-hero .product-lead) {
  color: #e0e9f4 !important;
  font-weight: 500 !important;
}

/* Product catalogue photos remain opaque over their own product background. */
.pg-page-category .product-page[data-category-id="screen_protection"] .product-image-wrap > img {
  mix-blend-mode: normal !important;
}

.pg-page-quote .pg-quote-page::before {
  opacity: .14 !important;
  filter: contrast(1.15) saturate(1.05) !important;
}

.pg-page-quote .pg-quote-lead,
.pg-page-quote .pg-quote-assurance p {
  color: #dbe5f1 !important;
  font-weight: 500;
}

/* The locked home composition also uses small text over the energy artwork. */
.pg-page-home :is(.pgm-copy p, .pgd-hero-copy p, .pgd-section-head p, .pgd-image-card small) {
  color: #eef3f8 !important;
  font-weight: 500 !important;
}

.pg-page-home .pgd-hero-search input::placeholder {
  color: #c8d5e4 !important;
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .page.subpage-shell::before {
    opacity: .15 !important;
    filter: contrast(1.2) saturate(1.06) brightness(1.01) !important;
  }

  .pg-page-home .pgm-copy p {
    font-weight: 500 !important;
    line-height: 1.22 !important;
  }
}

/* CP264: remove glow from letterforms and restore a crisp reading hierarchy. */
body.pg-visual-system :is(main, footer) :is(
  h1, h2, h3, h4, p, li, dt, dd, label, small, strong, summary, a, button
) {
  text-shadow: none !important;
}

body.pg-visual-system main :is(p, li, dd, dt) {
  opacity: 1 !important;
}

.subpage-shell main :is(p, li, dd, dt) {
  font-size: 15px !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

.subpage-shell main h1 {
  text-shadow: none !important;
}

.pg-form-privacy-notice {
  grid-column: 1 / -1;
  margin: 0;
  color: #c5d6e9;
  font-size: .88rem;
  line-height: 1.5;
}

.pg-form-privacy-notice a,
.pg-quote-private-note a,
.pg-review-small a {
  color: #9bd5ff !important;
  text-decoration: underline;
  text-underline-offset: .16em;
}

body.pg-page-quote :is(h1, h2, h3, p, li, label, small, strong, a, button) {
  text-shadow: none !important;
}

body.pg-page-quote .pg-quote-kicker,
body.pg-page-quote .pg-quote-form-eyebrow,
body.pg-page-quote .pg-quote-form-index {
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

body.pg-page-quote .pg-quote-steps li {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

/* The homepage uses a compact fixed desktop composition, so keep its small
   utility copy readable while preserving its grid and image proportions. */
@media (min-width: 901px) {
  .pg-page-home .pg-home-links > a:not(.pg-home-quote),
  .pg-page-home .pg-home-lang .langbtn {
    font-size: 11px !important;
  }

  .pg-page-home .pgd-hero-copy .pgd-hero-eyebrow {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .pg-page-home .pgd-hero-copy > p:not(.pgd-hero-eyebrow) {
    color: #f3f6fb !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
  }

  .pg-page-home .pgd-benefits strong {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .pg-page-home .pgd-brands-copy p,
  .pg-page-home .pgd-section-head p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .pg-page-home .pg-home-footer .pghf-grid :is(p, a, button) {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}

/* CP265: keep secondary contact numbers readable in narrow footer columns. */
@media (max-width: 640px) {
  .pg-page-home .pg-home-footer .pghf-contact {
    grid-column: 1 / -1 !important;
  }

  .pg-page-home .pg-home-footer .pghf-contact .pghf-secondary-phone,
  .pg-footer-contact-links .pg-footer-secondary-phone {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: .45rem !important;
    row-gap: .15rem !important;
    overflow-wrap: normal !important;
  }

  .pg-page-home .pg-home-footer .pghf-secondary-phone bdi,
  .pg-footer-contact-links .pg-footer-secondary-phone bdi {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }
}
