/* Layout values from the 390px Home V4 mobile frames, adapted to shared DOM. */
@media(max-width:900px){
 .hero{height:740px;margin:0 20px}
 .hero-copy{top:40px;left:20px;right:20px;width:auto;gap:30px}
 .hero-copy .eyebrow{font-size:14px;line-height:14px}
 .hero-copy h1{font-size:42px;line-height:1;letter-spacing:-.42px}
 .hero-description{font-size:16px;line-height:1.3}
 .hero-actions{flex-direction:column;gap:20px;align-items:stretch}
 .hero-actions .button{width:100%;font-size:14px;min-height:46px;padding:16px 36px}
 .hero-video{top:249px;height:491px;object-position:65% center}
 .hero .damage-report{display:none}
 .hero .damage-target{top:443px;left:42px;transform:none}
 .hero[data-stage="4"] .damage-target{top:443px;left:calc(100% - 150px)}
 .hero .scroll-cue{bottom:10px}
 .revenue{margin:100px 20px 0;gap:40px;padding:0;grid-template-columns:1fr}
 .revenue-copy{gap:30px}
 .revenue-copy h2{font-size:32px;line-height:1;letter-spacing:-.32px}
 .revenue-copy p{font-size:16px;line-height:1.3}
 .revenue-chart{gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));min-height:501px}
 .stat{height:501px;padding-top:140px}
 .stat dd{font-size:clamp(36px,12.82vw,50px);line-height:50px;letter-spacing:-2.5px}
 .stat dt{top:210px;font-size:14px;line-height:1.2;max-width:100%}
 .stat .stat-bar{top:271px}
 .stat-two{padding-top:70px}
 .stat-two dt{top:140px}
 .stat-two .stat-bar{top:211px}
 .stat-three{padding-top:0}
 .stat-three dt{top:70px}
 .stat-three .stat-bar{top:151px}
 .section-heading,.section-heading span,.section-heading p{font-size:32px!important;line-height:1!important;letter-spacing:-.32px!important}
 .section-copy>p{font-size:16px!important;line-height:1.3!important}
 .fusion .section-copy{order:0}
 .fusion .fusion-steps{order:1;justify-content:space-evenly;gap:12px;border-top:1px solid #ffffff33;padding-top:16px}
 .fusion .fusion-ring{order:2}
 .fusion .fusion-content{order:3}
 .fusion .fusion-steps button{font-size:14px}
 .ai-chat .design-canvas{gap:60px;padding-bottom:0}
 .ai-chat-card-rail{display:flex;flex-wrap:nowrap;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;width:calc(100% + 40px);margin-inline:-20px;padding:0 20px 12px;align-self:stretch}
 .ai-chat .ai-chat-card-rail>.responsive-art{flex:0 0 297px;width:297px;height:440px;max-width:none;margin:0;scroll-snap-align:start}
 .payments .responsive-art{max-width:350px;--art-height:720!important}
 .payments .art-canvas{width:350px!important;height:720px!important}
 .payments .art-canvas>div:first-child{width:350px!important}
 .payments .art-canvas>[data-name=fade]{width:350px!important;mask-size:350px 720px!important;mask-position:0 0!important;left:0!important}
 .payments [data-node-id="6006:1432"],.payments [data-node-id="6006:1415"]{mask-image:none!important}
 .payments [data-node-id="6006:1465"],.payments [data-node-id="6006:1423"]{left:30px!important;width:290px!important}
 .payments [data-node-id="6006:1465"] p,.payments [data-node-id="6006:1423"] p{max-width:290px!important;white-space:normal!important}
 .payments .design-canvas{gap:20px}
 .payments .section-copy{margin-bottom:20px}
 .testimonials .design-canvas{padding-top:100px;gap:30px;position:relative;min-height:771px}
 .testimonials [data-node-id="6006:1753"]{display:block!important;position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:80px!important;height:80px!important;order:-2}
 .testimonials [data-node-id="6006:1750"]{position:relative!important;left:auto!important;top:auto!important;width:46px!important;height:46px!important;order:-1}
 .testimonial-quote{font-size:28px!important;line-height:1.3!important}
 .testimonials [data-node-id="6006:1736"],.testimonials [data-node-id="6006:1742"]{display:block!important;position:absolute!important;top:auto!important;bottom:40px;left:20px!important;transform:none!important;width:40px!important;height:40px!important}
 .testimonials [data-node-id="6006:1742"]{left:70px!important}
 .testimonials [data-node-id="6006:1732"]{display:block!important;position:absolute!important;top:auto!important;bottom:55px;left:auto!important;right:20px!important;width:auto!important}
 .testimonials [data-node-id="6006:1760"],.testimonials [data-node-id="6006:1748"]{display:none}
}
@media(max-width:360px){.hero-copy h1{font-size:36px}.hero-copy{left:16px;right:16px}.hero-description{font-size:15px}.mobile-toggle{max-width:calc(100% - 152px)}.stat dt{font-size:12px}}
@media(max-width:900px){
 .marketplace .market-tab{flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;font-size:20px!important;gap:16px!important;padding:0 0 16px}
 .marketplace .market-tab p{font-size:20px!important;line-height:24px!important;text-align:left}
 .marketplace .market-tab>div{align-self:flex-start}
 .marketplace .market-description{text-align:left;margin-top:120px}
 .payments [data-node-id="6006:1465"],.payments [data-node-id="6006:1423"]{mask-image:none!important}
}

/* Mobile review: compact marketplace navigation and natural testimonial height. */
@media(max-width:900px){
 .marketplace .market-tab{font-size:14px!important;gap:6px!important;min-height:44px;padding:0 0 6px}
 .marketplace .market-tab p{font-size:14px!important;line-height:18px!important}
 .marketplace .market-tab>div{width:16px!important;height:16px!important}
 .marketplace .market-tab>div img{width:16px!important;height:16px!important}
 .marketplace .market-description{display:flex;align-items:center;gap:4px;margin-top:120px;white-space:nowrap;font-size:clamp(12px,3.47vw,14px)!important;line-height:20px!important}
 .marketplace .market-description p{position:static!important;width:auto!important;height:auto!important;font-size:inherit!important;line-height:inherit!important;white-space:nowrap!important}
 .testimonials{padding:40px 20px}
 .testimonials .design-canvas{padding-top:0;padding-bottom:72px;min-height:0;gap:24px}
 .testimonials [data-testimonial-direction]{bottom:16px}
 .testimonials [data-testimonial-counter]{bottom:31px}
 .site-footer{padding-top:48px}
 .site-footer::before{top:0;bottom:auto;left:0;right:auto;width:100%;height:36px;transform:none;background-size:29.51px 36px;background-position:left top;background-repeat:repeat-x}
 .site-footer>.design-canvas{padding-top:24px}
}

@media(max-width:900px){
 .site-footer [data-footer-column=hub]{grid-column:1;grid-row:5}
 .site-footer [data-footer-column=payments]{grid-column:2;grid-row:5}
 .site-footer [data-footer-column=company]{grid-column:1;grid-row:6}
 .site-footer [data-footer-column=resources]{grid-column:2;grid-row:6}
}

/* Mobile heroes, marketplace tabs and footer review. */
@media(max-width:900px){
 .hero-sequence{touch-action:pan-y pinch-zoom}
 :is(.marketplace-hero-video,.pay-hero-video,.university-hero-video){top:260px;height:calc(100% - 260px);mask-image:linear-gradient(to bottom,transparent 0,black 160px);-webkit-mask-image:linear-gradient(to bottom,transparent 0,black 160px)}
 .marketplace .market-tab{flex-direction:row!important;align-items:center!important;gap:5px!important}
 .marketplace .market-tab>div{order:-1;align-self:center;flex-shrink:0}
 .marketplace .market-tab p{font-size:clamp(11px,2.9vw,14px)!important;white-space:nowrap}
 .site-footer [data-footer-column=hub]{grid-row:3}
 .site-footer [data-footer-column=payments]{grid-row:3}
 .site-footer [data-footer-column=company]{grid-row:4}
 .site-footer [data-footer-column=resources]{grid-row:4}
 .site-footer .design-canvas [data-node-id="6006:737"]{grid-column:1/-1;grid-row:5;margin-top:8px}
 .site-footer .design-canvas [data-node-id="6006:741"]{grid-column:1/-1;grid-row:6;display:flex;flex-wrap:wrap;gap:20px 28px}
 .site-footer [data-node-id="6006:745"]{flex-basis:100%;margin:0}
}
/* Social marks share the same white default and lavender rollover color. */
.site-footer [data-node-id="6006:737"]>img{filter:brightness(0) invert(1);transition:filter 180ms ease}
.site-footer [data-node-id="6006:737"]:hover>img{filter:brightness(0) saturate(100%) invert(68%) sepia(48%) saturate(983%) hue-rotate(216deg) brightness(103%) contrast(103%)}

@media(max-width:900px){
 .ai-chat .ai-chat-card-rail{box-sizing:border-box;width:100vw;margin-inline:calc((100% - 100vw)/2);padding-inline:calc((100vw - min(297px,100vw - 64px))/2);gap:16px;scroll-padding-inline:calc((100vw - min(297px,100vw - 64px))/2);mask-image:linear-gradient(to right,black calc(100% - 40px),transparent);scrollbar-width:none}
 .ai-chat .ai-chat-card-rail::-webkit-scrollbar{display:none}
 .ai-chat .ai-chat-card-rail>.responsive-art{flex:0 0 min(297px,100vw - 64px);width:min(297px,100vw - 64px);scroll-snap-align:center;transition:opacity .2s ease}
}
@media(prefers-reduced-motion:reduce){.ai-chat .ai-chat-card-rail>.responsive-art{transition:none}}

/* Adjacent cards must remain painted even before their individual reveal threshold. */
@media(max-width:900px){.ai-chat .ai-chat-card-rail [data-enter=card]{opacity:1!important;animation:none!important}}

/* Force composited video layers to respect the rounded card on mobile Safari. */
@media(max-width:900px){
 .hero-art{border-radius:20px;overflow:hidden;clip-path:inset(0 round 20px);-webkit-mask-image:-webkit-radial-gradient(white,black)}
}
