/* Shared closing theme. Content and header/footer geometry remain template-owned. */
body.has-unified-footer-fade[data-closing-canvas="page"]{background:var(--footer-fade-surface)!important;color:var(--footer-fade-ink)}
body.has-unified-footer-fade .unified-closing-surface,body.has-unified-footer-fade .unified-closing-surface::after{background:var(--footer-fade-surface)!important;color:var(--footer-fade-ink)!important}
body.has-unified-footer-fade :is(.company-newsletter,.news-newsletter) :is(h2,p){color:var(--footer-fade-ink)}
body.has-unified-footer-fade :is(.company-newsletter,.news-newsletter) h2>span{color:var(--footer-fade-accent)!important}
body.has-unified-footer-fade.company-about #main .company-newsletter :is(h2,p){color:var(--footer-fade-ink)!important}
body.has-unified-footer-fade .company-newsletter::before{display:block;mask-image:none}
body.has-unified-footer-fade .company-newsletter-fade{display:none}
body.has-unified-footer-fade:not(.news-page):not(.article-page)[data-footer-fading="true"]{--news-surface:var(--footer-fade-surface)!important;--news-ink:var(--footer-fade-ink)!important;--news-muted:var(--footer-fade-muted)!important}
body.company-careers .company-careers-lower{--careers-surface:#fff!important;--careers-ink:#1b0e51!important;--careers-accent:#7265d2!important;--careers-muted:#615487!important}
body.has-unified-footer-fade .company-newsletter-form :is(input,small){color:var(--footer-fade-muted);border-color:var(--footer-fade-line)}

/* Feather section-only canvases into the unchanged content above them. */
body.has-unified-footer-fade [data-footer-fade-entry]{background:linear-gradient(to bottom,var(--footer-fade-base),var(--footer-fade-surface) 96px)!important}

/* One newsletter + Home banner on every page, immediately before the shared footer. */
/* Keep trailing related-link spacing inside the light content canvas. */
.product-main:has(>.product-related:last-child){display:flow-root;background:linear-gradient(to bottom,#e9e7ee calc(100% - clamp(72px,8vw,140px)),#fff)}
.site-wide-closing{position:relative;isolation:isolate;background:var(--footer-fade-surface,#e9e7ee);color:var(--footer-fade-ink,#1b0e51);padding-bottom:140px}
.site-wide-closing::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/public/assets/b748a.webp') center/cover;opacity:.14;mix-blend-mode:luminosity}
body .site-wide-closing .site-newsletter{position:relative;isolation:isolate;padding:120px 24px 64px;background:transparent!important;text-align:center;color:var(--footer-fade-ink)}
body .site-wide-closing .site-newsletter::before{display:none}
.site-wide-closing .site-newsletter-content{max-width:1248px;margin:auto}
body .site-wide-closing .site-newsletter h2{max-width:640px;margin:0 auto;font:300 48px/1.05 var(--heading-font);letter-spacing:-.48px;color:var(--footer-fade-ink)}
body .site-wide-closing .site-newsletter h2>span{color:var(--footer-fade-accent)}
body .site-wide-closing .site-newsletter p{max-width:410px;margin:30px auto;font:400 16px/1.4 var(--body-font);color:var(--footer-fade-ink)}
.site-wide-closing .newsletter-embed{position:relative;width:min(100%,560px);margin:0 auto;min-width:0}
.site-wide-closing .newsletter-embed iframe{display:block;width:100%;height:180px;border:0;background:transparent}
.site-wide-closing .site-closing-banner{margin:0;background:transparent!important;overflow:clip}
.site-wide-closing .site-closing-banner .closing-cta{width:calc(100% - 48px);max-width:1248px;margin:0 auto!important}
@media(max-width:900px){.site-wide-closing{padding-bottom:72px}.site-wide-closing .site-newsletter{padding:80px 24px 48px}body .site-wide-closing .site-newsletter h2{font-size:34px;line-height:1.1}.site-wide-closing .site-closing-banner .closing-cta{width:calc(100% - 40px);border-radius:20px}}

/* Keep the hosted field inline and visible while its helper initializes. */
.site-wide-closing .newsletter-embed{box-sizing:border-box;padding:0;border-radius:0;background:transparent;color-scheme:light}
.site-wide-closing .newsletter-embed iframe{min-height:130px;color-scheme:light;position:relative!important;left:auto!important;top:auto!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
@media(max-width:900px){
 .site-wide-closing .newsletter-embed iframe{height:260px;min-height:260px}
 /* Keep decorative cars below the copy rather than blending through it. */
 .site-wide-closing .site-closing-banner .closing-cta{padding:0;background:#311b89;isolation:isolate}
 .site-wide-closing .closing-cta .design-canvas{box-sizing:border-box;position:relative;width:100%!important;height:auto!important;min-height:0;display:block;transform:none!important;padding:56px 24px 48px;background:#311b89!important;border-radius:20px;overflow:hidden;isolation:isolate;filter:none}
 .site-wide-closing .closing-cta .design-canvas>*:not(.section-copy){display:none!important}
 .site-wide-closing .closing-cta .design-canvas::before{content:'';position:absolute;inset:0 0 auto;height:14px;background:repeating-linear-gradient(135deg,#f4efff 0 6px,#9d7cf0 6px 12px,#311b89 12px 18px);z-index:2}
 /* Use the banner's original damaged vehicle as one full-card ghost layer. */
 .site-wide-closing .closing-cta .design-canvas::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(49,27,137,.75),rgba(49,27,137,.3)),url('/public/assets/cac52-site-960.webp') 70% center/cover no-repeat;pointer-events:none;z-index:0;mix-blend-mode:luminosity;opacity:.28}
 .site-wide-closing .closing-cta .section-copy{position:relative!important;z-index:1;display:flex;flex-direction:column;align-items:center;gap:24px!important;width:100%!important;left:auto!important;top:auto!important;transform:none!important;background:transparent!important;filter:none;mix-blend-mode:normal}
 .site-wide-closing .closing-cta .section-copy .section-heading{font-size:clamp(26px,7.5vw,36px)!important;color:#fff!important}
 .site-wide-closing .closing-cta .section-copy .section-heading>.heading-line{white-space:normal}
 .site-wide-closing .closing-cta .section-copy .section-heading [data-theme-accent]{color:#c5afff!important}
 .site-wide-closing .closing-cta .section-copy>p{width:100%!important;font-size:16px;line-height:1.5!important;color:#fff!important}
 .site-wide-closing .closing-cta .section-copy>div:last-child{display:flex;flex-direction:column;gap:14px;align-items:stretch;width:100%!important}
 .site-wide-closing .closing-cta .section-copy a[data-cta]{box-sizing:border-box;width:100%!important;min-height:48px;padding:16px 12px;justify-content:center}
}

/* Keep the shared newsletter and the surround of the CTA white throughout scrolling. */
body.has-unified-footer-fade .site-wide-closing.unified-closing-surface,
body.has-unified-footer-fade .site-wide-closing .site-newsletter.unified-closing-surface{background:#fff!important;color:#1b0e51!important}
.site-wide-closing{--footer-fade-ink:#1b0e51;--footer-fade-muted:#615487;--footer-fade-accent:#7265d2}
.site-wide-closing::before{display:none}
body.has-unified-footer-fade .site-wide-closing .site-newsletter :is(h2,p){color:#1b0e51!important}
body.has-unified-footer-fade .site-wide-closing .site-newsletter h2>span{color:#7265d2!important}

/* About V4 newsletter, Figma 6062:2539. Shared on every page. */
body .site-wide-closing .site-newsletter{padding:140px 24px 120px;overflow:hidden}
body .site-wide-closing .site-newsletter::before{display:block;position:absolute;inset:0;content:'';z-index:-1;pointer-events:none;background:none;mask-image:none}
.site-wide-closing .site-newsletter .newsletter-clouds{position:absolute;left:-10.694444%;top:0;width:123.958333%;height:auto;max-width:none;aspect-ratio:1785/1004;object-fit:cover;transform:rotate(180deg);opacity:.25;pointer-events:none;z-index:-2}
body .site-wide-closing .site-newsletter::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(to bottom,#fff 43.278%,transparent 100%)!important}
body .site-wide-closing .site-newsletter h2{max-width:532px;font-size:48px;line-height:1;letter-spacing:-.48px}
body .site-wide-closing .site-newsletter p{max-width:400px;margin:30px auto;font-weight:500;line-height:1.3}
.site-wide-closing .newsletter-embed{width:min(100%,543px);margin-top:-30px}
.site-wide-closing .newsletter-embed iframe{height:130px}
@media(max-width:900px){
 body .site-wide-closing .site-newsletter{padding:80px 24px 64px}
 body .site-wide-closing .site-newsletter h2{font-size:34px;line-height:1.05}
 .site-wide-closing .newsletter-embed iframe{height:240px;min-height:240px}
 .site-wide-closing .site-newsletter .newsletter-clouds{width:1100px;left:calc(50% - 550px)}
}

/* Clouds dissolve into the purple base behind the closing banner. */
body.has-unified-footer-fade .site-wide-closing.unified-closing-surface{--closing-blend:clamp(100px,12vw,220px);background:linear-gradient(to bottom,#fff 0 calc(var(--closing-split,75%) - var(--closing-blend)),#5533de calc(var(--closing-split,75%) + var(--closing-blend)) 100%)!important;overflow:clip}
body.has-unified-footer-fade .site-wide-closing .site-newsletter.unified-closing-surface{background:transparent!important}
body .site-wide-closing .site-newsletter::before,body .site-wide-closing .site-newsletter::after{display:none}
.site-closing-atmosphere{position:absolute;inset:0 0 auto;height:calc(var(--closing-split,75%) + var(--closing-blend,180px));mask-image:linear-gradient(#000 0 calc(100% - var(--closing-blend,180px)),transparent 100%);overflow:hidden;pointer-events:none;z-index:-1}
.site-closing-atmosphere>img{position:absolute;top:0;left:-10.694444%;width:123.958333%;max-width:none;height:100%;object-fit:cover;object-position:center;transform:rotate(180deg);opacity:.25}
.site-closing-atmosphere::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,#fff 25%,transparent 65%)}
@media(max-width:900px){.site-closing-atmosphere>img{width:1100px;left:calc(50% - 550px)}}

/* Keep Contact body copy readable; only the hero and form panels are dark. */
body.company-contact.has-unified-footer-fade{background:#fff!important;color:#1b0e51}
.company-contact :is(.company-hero,.company-contact-choices){color:#fff}
.company-contact :is(.company-direct,.company-faq){color:#1b0e51;--footer-fade-accent:#7265d2;--footer-fade-line:#1b0e5126}
.company-contact .company-contact-choices p{color:#e0d5ff}
.company-contact .company-direct h3{color:#7265d2}
.company-contact .company-social{filter:brightness(0)}
