/* Home page rebuild (preview). Scoped to body.home2 so shared styles stay untouched. */
body.home2 .site-header .nav.wrap{max-width:none;padding:0 24px}
@media (min-width:761px){
  body.home2 .nav-links{flex:1;gap:44px}
  body.home2 .nav-links>li:first-child{margin-left:auto}
  body.home2 .nav-links>li:last-child{margin-left:auto}
  body.home2 .nav-links .btn{padding:10px 22px;font-size:14px}
}
body.home2 main{padding-bottom:0}
.h2-wrap{width:100%;max-width:1400px;margin:0 auto;padding:0 32px}
@media (max-width:760px){.h2-wrap{padding:0 16px}}
.h2-btns{display:flex;gap:12px;flex-wrap:wrap}
.h2-btns .btn{min-width:150px;padding:12px 20px;border-radius:6px}
.btn-white{background:#fff;color:var(--blue);border-color:#fff}
.btn-white:hover{background:#F1F5FE;border-color:#F1F5FE}

/* 1. Full-bleed hero */
.h2-hero{position:relative;height:clamp(380px,35.3vw,780px);overflow:hidden;background:#3a3d42;color:#fff;text-align:center}
.h2-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 37%}
.h2-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,12,18,.18) 0%,rgba(10,12,18,0) 40%);pointer-events:none}
.h2-hero-in{position:relative;z-index:1;padding-top:40px;display:flex;flex-direction:column;align-items:center}
.h2-hero h1{font:600 48px/1.1 var(--display);color:#fff;max-width:none;margin:0}
.h2-hero p{margin:8px 0 0;font:400 24px/1.3 var(--sans);color:#fff;max-width:none}
.h2-hero .h2-btns{margin-top:16px;justify-content:center}
.h2-hero .h2-btns .btn{min-width:0;padding:7px 40px;font-size:16px;line-height:18px;border-radius:6px}

/* 2. Product potential */
.h2-pot{margin-top:64px}
.h2-pot-card{display:grid;grid-template-columns:1fr 51.96%;aspect-ratio:1348/394;min-height:360px;background:#F0F0F0;border-radius:4px;overflow:hidden}
.h2-pot-text{padding:32px 44px;display:flex;flex-direction:column}
.h2-pot h2{font:600 clamp(26px,2.4vw,34px)/1.2 var(--display);color:var(--ink);margin:0;max-width:none}
.h2-pot-sub{margin:12px 0 0;font-size:17px;color:var(--ink);max-width:none}
.h2-stat{margin-top:auto;padding-top:28px}
.h2-stat b{display:block;font:600 34px/1.1 var(--display);color:var(--ink)}
.h2-stat span{display:block;margin-top:4px;font-size:17px;color:var(--ink)}
.h2-pot .h2-btns{margin-top:auto;padding-top:36px}
.h2-pot-media{position:relative;background:#F0F0F0;min-height:280px}
.h2-pot-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;background:#F0F0F0}
.h2-pot-media video:not([src]){display:none}
@media (max-width:860px){.h2-pot-card{grid-template-columns:1fr;aspect-ratio:auto}.h2-pot-text{padding:32px 24px}.h2-pot-media{aspect-ratio:16/9;min-height:0}}

/* 3. Product carousel */
.h2-car{margin-top:64px;position:relative}
.h2-track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:32px;padding:0 32px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.h2-track::-webkit-scrollbar{display:none}
@media (min-width:1464px){.h2-track{padding-left:calc((100vw - 1400px)/2 + 32px);scroll-padding-left:calc((100vw - 1400px)/2 + 32px)}}
.h2-card{position:relative;flex:0 0 min(820px,51vw);aspect-ratio:738/455;border-radius:8px;overflow:hidden;scroll-snap-align:start;background:#9aa0a8;color:#fff}
.h2-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* MazBox card: the locker is drawn at 85%. The card behind it uses a gradient matched to the photo's studio backdrop, and the photo fades into it at its edges, so the background looks unchanged. */
.h2-card-box{background:linear-gradient(180deg,#c4beb6 0%,#cac5bd 40%,#d2cdc6 66%,#cdc8c1 80%,#c3bdb6 100%)}
.h2-card-box .h2-card-main{transform:scale(.68);transform-origin:58% 62%;-webkit-mask-image:radial-gradient(ellipse 60% 64% at 58% 52%,#000 70%,transparent 100%);mask-image:radial-gradient(ellipse 60% 64% at 58% 52%,#000 70%,transparent 100%)}
.h2-card::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,22,28,.45) 0%,rgba(20,22,28,.12) 45%,rgba(20,22,28,0) 70%),linear-gradient(0deg,rgba(20,22,28,.35) 0%,rgba(20,22,28,0) 45%);pointer-events:none}
.h2-card-in{position:absolute;inset:0;z-index:1;padding:34px 40px;display:flex;flex-direction:column}
.h2-card-tag{font:400 clamp(15px,1.4vw,20px)/1.3 var(--sans);color:#fff;margin:0;max-width:none}
.h2-card h3{margin:auto 0 0;font:600 clamp(30px,3.2vw,42px)/1.1 var(--display);color:#fff}
.h2-card-price{margin:6px 0 0;font:400 clamp(15px,1.4vw,20px)/1.3 var(--sans);color:#fff;max-width:none}
.h2-card .h2-btns{margin-top:22px}
.h2-car-nav{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}
.h2-car-nav button{width:42px;height:42px;border-radius:50%;border:1px solid var(--rule);background:#fff;display:grid;place-items:center;cursor:pointer;color:var(--ink);padding:0}
.h2-car-nav button:hover{border-color:#8A8F99}
.h2-car-nav button:disabled{opacity:.35;cursor:default}
@media (max-width:760px){
  .h2-track{gap:14px;padding:0 16px;scroll-padding-left:16px}
  .h2-card{flex-basis:86vw;aspect-ratio:auto;height:440px}
  .h2-card-in{padding:24px 22px}
  .h2-card .h2-btns .btn{min-width:0;flex:1 1 auto}
}

/* 4. Mobile demo on a gradient card */
/* 88px from the bottom of the product cards: 23px + 42px arrows + 23px */
.h2-apps{margin-top:23px}
.h2-apps-card{position:relative;border-radius:8px;overflow:hidden;background:#F0F0F0}
/* Map background: faint street lines and a dashed route with parking and bike pins, drawn behind the section; the route passes behind the phone. */
.h2-apps-map{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.h2-apps-card .sec{position:relative;z-index:1}
.h2-apps-card .sec{padding:44px 0;background:transparent}
@media (max-width:760px){.h2-apps-card .sec{padding:40px 0 48px}}
/* Phone at 80% of its usual size. Its column keeps the usual width, so the labels and lines stay put and the demo controls sit right under the phone. */
.h2-apps-card .ap-phone{width:calc(clamp(230px,24vw,300px) * .8)}

/* 5. Two smaller cards */
.h2-duo{margin-top:64px;display:grid;grid-template-columns:1fr 1fr;gap:24px}
.h2-mini{display:grid;grid-template-columns:minmax(0,1fr) 33.3%;min-width:0;min-height:182px;background:#F0F0F0;border-radius:8px;overflow:hidden}
.h2-mini-text{padding:24px 30px;display:flex;flex-direction:column;align-items:flex-start}
.h2-mini h2{font:600 clamp(20px,1.8vw,24px)/1.25 var(--display);color:var(--ink);margin:0;max-width:none}
.h2-mini p{margin:12px 0 0;font-size:16px;line-height:1.5;color:var(--ink);max-width:32ch}
.h2-mini .btn{margin-top:auto;min-width:150px;padding:9px 20px;font-size:14px;border-radius:6px}
.h2-mini-text p+.btn{margin-top:18px}
.h2-mini-media{position:relative;background:#cfd3d9}
.h2-mini-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.h2-mini-logo{background:#233F8F;display:grid;place-items:center}
.h2-mini-logo img{position:static;width:58%;height:auto;object-fit:contain;filter:brightness(0) invert(1)}
@media (max-width:1000px){.h2-duo{grid-template-columns:1fr}}
@media (max-width:460px){.h2-mini{grid-template-columns:1fr;aspect-ratio:auto}.h2-mini-media{aspect-ratio:16/10}.h2-mini-logo{aspect-ratio:auto;padding:36px 0}.h2-mini-logo img{width:120px}}

/* 6. One-line footer */
.h2-foot{margin-top:64px;background:#fff}
.h2-foot-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;min-height:62px;padding:8px 22px 14px}
.h2-foot-copy{margin:0;font:400 15px/1.4 var(--sans);color:var(--ink);max-width:none}
.h2-foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 32px}
.h2-foot-links a{font:400 15px/1.4 var(--sans);color:var(--ink);text-decoration:none}
.h2-foot-links a:hover{color:var(--blue)}
.h2-foot-social{justify-self:end;display:flex;align-items:center;gap:12px}
.h2-foot-social a{display:grid;place-items:center;width:28px;height:28px;color:var(--ink)}
.h2-foot-social a:hover{color:var(--blue)}
.h2-foot-social svg{width:16px;height:16px}
@media (max-width:860px){
  .h2-foot-in{grid-template-columns:1fr;justify-items:center;text-align:center;gap:14px;padding:20px 16px 24px}
  .h2-foot-links{gap:8px 20px}
  .h2-foot-social{justify-self:center}
}

/* Phone section: the demo caption, arrows and Back link only take up space once a demo starts, so the section grows then. */
.h2-apps-card .ap[data-state="home"] .ap-demo-ui,.h2-apps-card .ap[data-state="home"] .ap-back{display:none}
/* The website demo has no Parking/Renting tabs, so drop the height kept for them: its caption, arrows and Back link sit as close together as in the app demo. */
.h2-apps-card .ap[data-state="web"] .ap-demo-ui{min-height:0}

/* All text buttons on the home page (header, hero, cards, carousel, footer cards) use a 6px corner radius. */
body.home2 .btn{border-radius:6px}

/* Phone section: the MAZDISRide label shows a phone-sized Coming soon page (ride-soon.js) instead of the website demo. */
.h2-apps-card .ap-soon{position:absolute;left:5.165%;right:5.165%;top:2.262%;bottom:2.188%;z-index:3;border-radius:13% / 6%;overflow:hidden;container-type:inline-size;background:#fff;color:var(--ink,#0B1320);font-family:var(--sans,Inter,sans-serif);text-align:center;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s linear .35s}
.h2-apps-card .ap.is-soon .ap-soon{opacity:1;visibility:visible;transition:opacity .35s ease,visibility 0s}
.h2-apps-card .ap-soon p{margin:0}
.h2-apps-card .ap-soon-status{position:relative;height:13cqw}
.h2-apps-card .ap-soon-time{position:absolute;left:13cqw;top:6.6cqw;transform:translateY(-50%);font:600 3.9cqw/1 var(--sans,Inter,sans-serif)}
.h2-apps-card .ap-soon-island{position:absolute;left:35.4cqw;top:2.8cqw;width:29.2cqw;height:8.2cqw;border-radius:4.1cqw;background:#000}
.h2-apps-card .ap-soon-head{display:flex;align-items:center;justify-content:space-between;padding:2.5cqw 6cqw 3cqw;border-bottom:1px solid #E6E8ED}
.h2-apps-card .ap-soon-logo{display:flex;color:var(--ink,#0B1320)}
.h2-apps-card .ap-soon-logo svg{width:30cqw;height:auto;display:block}
.h2-apps-card .ap-soon-menu{display:flex;flex-direction:column;gap:1.2cqw;width:5.5cqw}
.h2-apps-card .ap-soon-menu i{display:block;height:.6cqw;min-height:1.5px;border-radius:1cqw;background:var(--ink,#0B1320)}
.h2-apps-card .ap-soon-body{padding:17cqw 7cqw 0}
.h2-apps-card .ap-soon-title{font:500 10cqw/1.15 var(--display,Poppins,sans-serif);letter-spacing:-.01em}
.h2-apps-card .ap-soon-lead{margin-top:6cqw !important;font-size:4.4cqw;line-height:1.55}
.h2-apps-card .ap-soon-q{margin-top:10cqw !important;font-size:3.85cqw;line-height:1.5}
.h2-apps-card .ap-soon-q .ap-soon-link{color:var(--blue,#1F3FD1);text-decoration:underline;text-underline-offset:.8cqw}
.h2-apps-card .ap-soon,.h2-apps-card .ap-soon *{cursor:default;user-select:none;-webkit-user-select:none}
.h2-apps-card .ap-soon-actions{margin-top:6cqw;display:flex;flex-direction:column;gap:3cqw}
.h2-apps-card .ap-soon-btn{display:block;padding:3.2cqw 4cqw;border-radius:1.6cqw;border:1px solid var(--blue,#1F3FD1);color:var(--blue,#1F3FD1);font:500 3.85cqw/1.2 var(--sans,Inter,sans-serif);text-decoration:none}
.h2-apps-card .ap-soon-btn.is-primary{background:var(--blue,#1F3FD1);color:#fff}
.h2-apps-card .ap.is-soon .ap-back{visibility:visible}
@media (prefers-reduced-motion:reduce){.h2-apps-card .ap-soon{transition:none}}
/* City-Ready Parking video: two clips played back to back with one control bar (home2.js). */
.h2-vplayer{position:absolute;inset:0}
.h2-pot-media .h2-vplayer video{opacity:0;transition:opacity .3s ease;cursor:pointer}
.h2-pot-media .h2-vplayer video.is-on{opacity:1}
.h2-vbar{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;gap:10px;padding:6px 12px 6px 6px;border-radius:6px;background:rgba(11,19,32,.62);color:#fff;opacity:0;transition:opacity .2s ease}
.h2-vplayer:hover .h2-vbar,.h2-vplayer:focus-within .h2-vbar,.h2-vplayer.is-paused .h2-vbar{opacity:1}
@media (hover:none){.h2-vbar{opacity:1}}
.h2-vplay{flex:none;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:none;color:#fff;cursor:pointer}
.h2-vplay:hover{background:rgba(255,255,255,.15)}
.h2-vplay:focus-visible,.h2-vseek:focus-visible{outline:2px solid #fff;outline-offset:2px}
.h2-vplay .i-play{display:none}
.h2-vplayer.is-paused .h2-vplay .i-play{display:block}
.h2-vplayer.is-paused .h2-vplay .i-pause{display:none}
.h2-vseek{flex:1;min-width:0;height:4px;margin:0;accent-color:#fff;cursor:pointer}
.h2-vtime{flex:none;font:500 12px/1 var(--sans);font-variant-numeric:tabular-nums;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.h2-pot-media .h2-vplayer video,.h2-vbar{transition:none}}