/* CP333: true edge-to-edge public content with a denser shared footer. */
html body.pg-visual-system .page > main#main,
html body.pg-visual-system .page > main#main > section,
html body.pg-visual-system .page > main#main > .page-hero,
html body.pg-visual-system .page > main#main > .models-container {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

html body.pg-visual-system .page > main#main .container {
  width: min(92%, 1360px) !important;
  max-width: 1360px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

html body.pg-visual-system.pg-page-home main#main > .pgd-hero-section {
  width: 100% !important;
  max-width: none !important;
  padding-inline: 0 !important;
  background-color: #020811 !important;
  background-image:
    radial-gradient(ellipse at 16% 40%, rgba(16, 156, 255, .12), transparent 38%),
    radial-gradient(ellipse at 86% 58%, rgba(255, 22, 60, .10), transparent 34%),
    linear-gradient(180deg, #020811 0%, #030914 100%) !important;
}

html body.pg-visual-system.pg-page-home main#main > .pgd-hero-section::before {
  content: none !important;
  display: none !important;
}

html body.pg-visual-system.pg-page-home .pgd-hero-section > .pg-home-hero-inner {
  width: min(92%, 1360px) !important;
  max-width: 1360px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

html body.pg-visual-system footer#pg-footer.pg-footer-v4 {
  margin-top: 24px !important;
  padding: 0 !important;
}

html body.pg-visual-system footer#pg-footer.pg-footer-v4 > .container {
  width: min(92%, 1360px) !important;
  max-width: 1360px !important;
  margin-inline: auto !important;
  padding: 28px 0 36px !important;
  box-sizing: border-box !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .92fr) minmax(0, .92fr) !important;
  grid-template-areas: "brand discover support" "contact discover support" !important;
  gap: 10px clamp(16px, 2vw, 28px) !important;
  align-items: start !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-brand {
  grid-area: brand !important;
  gap: 7px !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-contact {
  grid-area: contact !important;
  margin-top: 2px !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-discover { grid-area: discover !important; }
html body.pg-visual-system footer#pg-footer .pg-footer-support { grid-area: support !important; }

html body.pg-visual-system footer#pg-footer .pg-footer-logo {
  width: min(170px, 100%) !important;
  max-width: 170px !important;
  margin: 0 0 8px !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-logo img {
  width: 100% !important;
  max-width: 170px !important;
  height: auto !important;
  max-height: 38px !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-brand p {
  max-width: 54ch !important;
  margin: 0 0 5px !important;
  font-size: 12px !important;
  line-height: 1.42 !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-main h2 {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-contact-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px 8px !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-contact-links a,
html body.pg-visual-system footer#pg-footer .pg-footer-en-international {
  min-width: 0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-support-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px 12px !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-support-links a {
  min-width: 0 !important;
  min-height: 32px !important;
  font-size: 12px !important;
  line-height: 1.32 !important;
  overflow-wrap: anywhere !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-trust {
  gap: 10px 18px !important;
  padding: 12px 0 !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-trust-actions,
html body.pg-visual-system footer#pg-footer .pg-footer-social {
  gap: 7px !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-legal {
  gap: 10px 16px !important;
  padding-top: 10px !important;
}

html body.pg-visual-system footer#pg-footer .pg-footer-legal nav { gap: 6px 14px !important; }

/* Contact actions use one aligned card system; voice, WhatsApp and Viber are distinct. */
html body.pg-visual-system .pg-public-contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(10px, 1.2vw, 16px) !important;
}

html body.pg-visual-system .pg-public-contact-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  justify-content: initial !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 104px !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

html body.pg-visual-system .pg-public-contact-icon {
  display: grid !important;
  place-items: center !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(139, 186, 226, .26) !important;
  border-radius: 11px !important;
  background: rgba(5, 18, 31, .78) !important;
  color: #dceeff !important;
}

html body.pg-visual-system .pg-public-contact-icon svg {
  display: block !important;
  width: 23px !important;
  height: 23px !important;
  max-width: none !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body.pg-visual-system .pg-public-contact-icon--whatsapp svg .pg-brand-disc { fill: #25D366 !important; stroke: none !important; }
html body.pg-visual-system .pg-public-contact-icon--whatsapp svg .pg-brand-mark { fill: #fff !important; stroke: none !important; }
html body.pg-visual-system .pg-public-contact-icon--viber svg .pg-brand-disc { fill: #7360F2 !important; stroke: none !important; }
html body.pg-visual-system .pg-public-contact-icon--viber svg .pg-brand-mark { fill: none !important; stroke: #fff !important; stroke-width: 1.5 !important; }

html body.pg-visual-system .pg-public-contact-copy {
  display: grid !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 6px !important;
  min-width: 0 !important;
  text-align: left !important;
}

html body.pg-visual-system .pg-public-contact-copy strong {
  display: block !important;
  margin: 0 !important;
  color: #f3f6f8 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

html body.pg-visual-system .pg-public-contact-copy bdi,
html body.pg-visual-system .pg-public-phone-link {
  display: block !important;
  min-width: 0 !important;
  color: #c3d2e3 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
  text-align: left !important;
}

html body.pg-visual-system .pg-public-phone-link { text-decoration: none !important; }
html body.pg-visual-system .pg-public-phone-link span { color: #9fb4c8 !important; font-size: 11px !important; }
html body.pg-visual-system .pg-public-phone-link:focus-visible { outline: 2px solid #ff163c !important; outline-offset: 2px !important; }

@media (max-width: 900px) {
  html body.pg-visual-system footer#pg-footer.pg-footer-v4 > .container {
    width: min(92%, 1360px) !important;
    padding: 22px 0 92px !important;
  }

  html body.pg-visual-system footer#pg-footer .pg-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas: "brand brand" "contact contact" "discover support" !important;
    gap: 12px 16px !important;
  }

  html body.pg-visual-system footer#pg-footer .pg-footer-support-links {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body.pg-visual-system footer#pg-footer .pg-footer-brand p {
    max-width: none !important;
  }

  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body.pg-visual-system footer#pg-footer .pg-footer-trust {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  html body.pg-visual-system footer#pg-footer .pg-footer-trust-actions {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  html body.pg-visual-system .pg-public-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  html body.pg-visual-system .page > main#main .container,
  html body.pg-visual-system footer#pg-footer.pg-footer-v4 > .container {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 16px !important;
  }

  html body.pg-visual-system.pg-page-home .pgd-hero-section > .pg-home-hero-inner {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 16px !important;
  }

  html body.pg-visual-system.pg-page-home .pgd-products#products > :is(
    .pgd-section-head, .pgd-product-grid, .pg-category-availability-note
  ),
  html body.pg-visual-system.pg-page-home :is(.sectors-header, .pg-sector-grid-wrap),
  html body.pg-visual-system.pg-page-home .pg-home-protection-compare > :is(h2, .pg-home-compare-grid),
  html body.pg-visual-system.pg-page-home .pg-b2b-bento > :is(.pg-bento-heading, .pg-bento-grid) {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
  }

  html body.pg-visual-system.pg-page-home .pg-home-final-cta > h2 {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  html body.pg-visual-system .pg-public-contact-card {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px !important;
    min-height: 92px !important;
    padding: 12px !important;
  }

  html body.pg-visual-system .pg-public-contact-icon {
    width: 34px !important;
    height: 34px !important;
  }

  html body.pg-visual-system .pg-public-contact-copy strong { font-size: 12px !important; }
  html body.pg-visual-system .pg-public-contact-copy bdi,
  html body.pg-visual-system .pg-public-phone-link { font-size: 11px !important; }

  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body.pg-visual-system footer#pg-footer .pg-footer-trust-actions {
    gap: 8px !important;
  }
}

@media (max-width: 360px) {
  html body.pg-visual-system .pg-public-contact-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* CP333: one continuous canvas across pages. Decorative art belongs in the
   product stages; repeated section wallpapers were creating visible blocks. */
html body.pg-visual-system {
  background-color: #020811 !important;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(16, 156, 255, .075), transparent 32%),
    radial-gradient(ellipse at 88% 72%, rgba(255, 22, 60, .065), transparent 30%),
    linear-gradient(180deg, #020811 0%, #030914 58%, #020811 100%) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

html body.pg-visual-system .page.home-shell,
html body.pg-visual-system .page.subpage-shell {
  background: transparent !important;
  background-image: none !important;
}

html body.pg-visual-system .page > header,
html body.pg-visual-system .page > .pg-home-header,
html body.pg-visual-system .page > .pg-template-header {
  background-color: rgba(2, 8, 17, .98) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.pg-visual-system .page.subpage-shell::before,
html body.pg-visual-system.pg-page-private::before,
html body.pg-visual-system .pg-page-quote .pg-quote-page::before,
html body.pg-visual-system .pg-page-home :is(
  .pgd-section, .pgd-finder, .pgd-brands, .pgd-protection,
  .pg-home-trust-strip, .pg-home-protection-compare, .pgd-products,
  .sectors-marquee-section, .pg-home-final-cta
)::before,
html body.pg-visual-system .pg-public-page::before {
  content: none !important;
  display: none !important;
}

html body.pg-visual-system .pg-public-page,
html body.pg-visual-system .pg-public-page .pg-partner-section {
  background-color: transparent !important;
  background-image: none !important;
}

html body.pg-visual-system .pg-page-home :is(
  .pgd-section, .pgd-finder, .pgd-brands, .pgd-protection,
  .pg-home-trust-strip, .pg-home-protection-compare, .pgd-products#products,
  .sectors-marquee-section, .pg-home-final-cta
) {
  background-color: transparent !important;
  background-image: none !important;
  border-bottom-color: transparent !important;
}

html body.pg-visual-system.pg-page-home .page.home-shell main#main > section:not(#home-hero):not(.pg-fx-why-posguard) {
  background-color: transparent !important;
  background-image: none !important;
  border-block-color: transparent !important;
  box-shadow: none !important;
}

html body.pg-visual-system.pg-page-home .pg-b2b-bento,
html body.pg-visual-system.pg-page-home .pg-industrial-lab {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body.pg-visual-system .subpage-shell main > :is(.subpage-visual-scene, .legal-page, .section) {
  background-color: transparent !important;
  background-image: none !important;
}

html body.pg-visual-system footer#pg-footer.pg-footer-v4 {
  position: relative !important;
  background-color: #020811 !important;
  background-image: linear-gradient(180deg, rgba(10, 17, 25, .45), rgba(2, 8, 17, .72)) !important;
  border-top: 1px solid rgba(195, 210, 227, .11) !important;
}

html body.pg-visual-system footer#pg-footer.pg-footer-v4::before,
html body.pg-visual-system footer#pg-footer.pg-footer-v4::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html body.pg-visual-system footer#pg-footer .pg-fx-footer-stage {
  background: radial-gradient(ellipse at 84% 8%, rgba(255, 22, 60, .08), transparent 42%),
              radial-gradient(ellipse at 16% 5%, rgba(16, 156, 255, .07), transparent 44%) !important;
  opacity: 1 !important;
}

html body.pg-visual-system .pg-blueprint-section {
  background-color: transparent !important;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(16, 156, 255, .045), transparent 54%) !important;
  border-block-color: rgba(195, 210, 227, .07) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body.pg-visual-system { scroll-behavior: auto !important; }
}
