/* =========================================================
   Noventra — homepage, "Ik ben een vervoerder": the four steps of the carrier explainer video
   (carrier-scenes.js with the video's 3D in carrier-film.js). Cards, fields, carrier rows and the
   status list reuse the blocks of how.css; this file adds the stages and the parts only carriers have.
   Without WebGL (or with reduced motion) every step shows its finished state; step 02, which is only
   3D, shows a still from the video instead.
   ========================================================= */

.cr-scene{position:relative; margin:0; border-radius:clamp(20px,2.4vw,30px); border:1px solid var(--line);
          background:
            radial-gradient(ellipse 40% 60% at 50% 50%, rgba(255,138,76,.12), transparent 70%),
            radial-gradient(rgba(13,14,17,.07) 1px, transparent 1.2px) 0 0 / 22px 22px,
            rgba(255,255,255,.55);
          box-shadow:0 50px 90px -70px rgba(13,14,17,.55)}
.cr-canvas, .cr-overlay, .cr-lines, .cr-cursor{position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; border-radius:inherit}
/* a still from the video, only when there is no 3D */
.cr-fallback{display:block; width:100%; height:auto; border-radius:inherit}
.cr-scene.live .cr-fallback{display:none}
.cr-scene:not(.live) .cr-live-only{display:none}

/* ---- 01 sign up: the form on the left, the carrier's depot from the video on the right ---- */
.cr-signup{display:grid; gap:1rem; padding:clamp(1.2rem,2.6vw,2.2rem)}
@media(min-width:900px){ .cr-signup{grid-template-columns:minmax(300px,380px) minmax(0,1fr); align-items:center; gap:2rem} }
.cr-form{padding-bottom:1.1rem}
.cr-form-sub{margin:.55rem 0 .2rem; font-size:.78rem; color:var(--muted)}
.cr-form .how-fields li{padding:.45rem 0}
/* a fixed line height, empty or filled: the form must never change height while it types itself in */
.cr-form .dp-value{font-size:.88rem; line-height:1.4; height:1.4em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cr-signup .how-fill-status b{font-weight:700}
.cr-signup.busy .how-fill-status{color:var(--red)}
.cr-signup.busy .how-fill-status i{animation:how-blink 1s infinite}
.cr-button{display:flex; align-items:center; justify-content:center; gap:.4rem; margin:.9rem 0 0; padding:.75rem 1rem; border-radius:999px;
           background:var(--ink); color:#fff; font-size:.9rem; font-weight:800; transition:background .35s, transform .2s}
.cr-signup.busy .cr-button{background:var(--red)}
.cr-button.press{transform:scale(.96)}
.cr-signup-stage{position:relative; min-height:420px; display:flex; align-items:flex-end; justify-content:center}
.cr-signup:not(.live) .cr-signup-stage{min-height:0; align-items:center}
.cr-welcome{position:relative; z-index:1; display:grid; justify-items:center; gap:.2rem; margin:0; padding:1rem 1.4rem;
            border-radius:18px; background:var(--surface); border:1px solid var(--line); text-align:center;
            box-shadow:0 30px 50px -36px rgba(13,14,17,.6); transition:opacity .5s, transform .5s}
.cr-welcome strong{font-size:1.05rem; font-weight:800; color:var(--ink)}
.cr-welcome > span{font-size:.8rem; color:var(--muted)}
.cr-chips{display:flex; flex-wrap:wrap; justify-content:center; gap:.4rem; margin-top:.45rem}
.cr-chips em{padding:.18rem .6rem; border-radius:999px; background:#ffede5; color:var(--red); font-style:normal;
             font-size:.72rem; font-weight:800; transition:opacity .35s, transform .35s}
.cr-signup.busy .cr-welcome{opacity:0; transform:translateY(10px)}
.cr-chips em.off{opacity:0; transform:scale(.6)}
@media(max-width:899px){ .cr-signup-stage{min-height:320px} }

/* ---- 02 TMS link: scene 'connect' of the video, its labels on a canvas on top ---- */
.cr-link{overflow:hidden}
.cr-link-stage{position:relative; aspect-ratio:2 / 1; border-radius:inherit; overflow:hidden}
@media(max-width:760px){ .cr-link-stage{aspect-ratio:16 / 10} }

/* ---- 03 carrier overview: the order on the left, the carriers on the right, you are chosen ---- */
.cr-pick{display:grid; gap:1.4rem; padding:clamp(1.2rem,2.6vw,2.2rem)}
@media(min-width:960px){
  .cr-pick{grid-template-columns:minmax(230px,260px) minmax(0,1fr); align-items:center; column-gap:clamp(4rem,9vw,8rem)}
}
.cr-pick > :not(canvas){position:relative; z-index:1}
.cr-pick .cr-cursor{z-index:3}
.cr-order{padding-bottom:1rem; transition:opacity .6s, transform .6s}
.cr-order.off{opacity:0; transform:translateX(-30px)}
.cr-route{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.5rem; margin:1rem 0 .6rem}
.cr-route span{display:grid; justify-items:center; gap:.3rem; font-size:.78rem; font-weight:700; color:var(--ink)}
.cr-route i{display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--ink); color:#fff;
            font-style:normal; font-size:.66rem; font-weight:800}
.cr-route span:last-child i{background:var(--red)}
.cr-route hr{margin:0 0 1.2rem; border:0; border-top:2px dashed rgba(13,14,17,.18)}
.cr-order-meta{margin:0; font-size:.8rem; color:var(--muted); text-align:center; line-height:1.5}
.cr-list-head{margin:0 0 .7rem; font-size:.68rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--muted)}
.cr-you{margin-left:.35rem; padding:.05rem .45rem; border-radius:999px; background:var(--ink); color:#fff; font-size:.62rem;
        font-weight:800; letter-spacing:.06em; vertical-align:middle}
@media(min-width:601px){ .cr-pick .how-offer-list li{grid-template-columns:auto minmax(0,1fr) auto} }
.cr-pick .how-offer-list li{transition:opacity .5s, transform .5s, border-color .5s, box-shadow .5s}
.cr-pick .how-offer-list li.off{opacity:0; transform:translateX(40px)}
.cr-pick .how-offer-list li[data-you].off{transform:translateX(160px)}
.cr-pick .how-offer-list li.dim{opacity:.4}
.cr-pick .how-offer-list li.you{background:#fff7f3; border-color:rgba(243,56,1,.65); box-shadow:0 24px 44px -24px rgba(243,56,1,.55)}
/* the video's 3D truck as the avatar */
.q-avatar.has-truck{background-color:var(--tint); background-size:118%; background-position:center 58%; background-repeat:no-repeat}
.q-avatar.has-truck svg{visibility:hidden}
/* before the choose buttons: available, or new in the network for you */
/* the label and the button share one grid cell and swap by visibility, so a row never changes height */
.cr-avail{visibility:hidden; align-self:center; justify-self:end; padding:.35rem .8rem; border-radius:999px; background:var(--paper);
          font-size:.76rem; font-weight:700; color:var(--muted); white-space:nowrap}
.cr-pick .how-offer-list li > .cr-avail, .cr-pick .how-offer-list li > .q-choose{grid-column:3; grid-row:1}
@media(max-width:600px){
  .cr-pick .how-offer-list li > .cr-avail, .cr-pick .how-offer-list li > .q-choose{grid-column:2 / -1; grid-row:2; justify-self:start}
}
.cr-pick .how-offer-list li[data-you] .cr-avail{background:var(--red); color:#fff; font-weight:800}
.cr-pick .how-offer-list li.asking .cr-avail{visibility:visible}
.cr-pick .how-offer-list li.asking .q-choose{visibility:hidden}
.cr-pick .how-offer-list li.hover .q-choose{background:#ffede5; border-color:rgba(243,56,1,.8); color:var(--red)}
.cr-pick .how-offer-list li.chosen .q-choose{background:var(--red); border-color:var(--red); color:#fff}
.cr-toast{display:flex; align-items:center; gap:.8rem; margin:1rem 0 0; padding:.75rem 1rem; border-radius:14px; background:var(--ink);
          color:#fff; box-shadow:0 24px 40px -26px rgba(13,14,17,.8); transition:opacity .45s, transform .45s}
.cr-toast > i{flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:var(--red);
              font-style:normal; font-size:.62rem; font-weight:800; letter-spacing:.04em}
.cr-toast span{display:grid; flex:1; min-width:0; font-size:.86rem; font-weight:700; line-height:1.3}
.cr-toast small{font-size:.74rem; font-weight:500; color:rgba(255,255,255,.65)}
.cr-toast svg{flex:none; width:24px; height:24px; padding:5px; border-radius:50%; background:var(--red); fill:none; stroke:#fff;
              stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round}
.cr-toast.off{opacity:0; transform:translateY(10px)}

/* ---- 04 status updates: scene 'map' of the video, the webhook feed beside it ---- */
.cr-status{display:grid; gap:1.2rem; border:0; background:none; box-shadow:none; border-radius:0;
           --track-h:clamp(300px,80vw,520px)}
@media(min-width:960px){ .cr-status{grid-template-columns:minmax(0,1fr) minmax(290px,330px); align-items:start; --track-h:clamp(560px,42vw,640px)} }
.cr-map{position:relative; height:var(--track-h); border-radius:clamp(20px,2.4vw,30px); overflow:hidden;
        background:#C9D6DB; border:1px solid var(--line); box-shadow:0 50px 90px -70px rgba(13,14,17,.55)}
.cr-status:not(.live) .cr-map{display:none}
@media(min-width:960px){ .cr-status:not(.live){grid-template-columns:minmax(0,420px); justify-content:center} }
.cr-feed{padding:1.2rem 1.2rem 1rem; display:grid; gap:.75rem; align-content:start}
@media(min-width:960px){ .cr-feed{height:var(--track-h); display:flex; flex-direction:column} .cr-feed .how-ship{flex:1} }
.cr-feed-sub{display:flex; align-items:center; gap:.55rem; margin:0; font-size:.82rem; font-weight:700; color:var(--ink)}
.cr-feed-sub i{display:grid; place-items:center; width:26px; height:26px; border-radius:7px; background:var(--ink); color:#fff;
               font-style:normal; font-size:.56rem; font-weight:800}
.cr-feed .how-ship{--cab:var(--red); display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:.75rem; align-content:center}
.cr-feed .how-ship.done{background:#fff4ee; border-color:rgba(243,56,1,.5)}
.cr-feed-truck{grid-row:1 / span 2; align-self:start; width:44px; height:44px; border-radius:50%; background:#fff;
               background-size:120%; background-position:center 58%; background-repeat:no-repeat}
.cr-feed .how-ship-head{position:relative; flex-wrap:nowrap; white-space:nowrap}
.cr-feed .how-ship-head span{overflow:hidden; text-overflow:ellipsis}
.cr-received{position:absolute; right:0; top:50%; translate:0 -50%; padding:.08rem .5rem; border-radius:999px; background:#ffede5; color:var(--red); font-style:normal;
             font-size:.66rem; font-weight:800; opacity:0}
.cr-received.go{animation:cr-received 1.5s ease}
@keyframes cr-received{0%{opacity:0; transform:scale(.6)} 15%{opacity:1; transform:none} 80%{opacity:1} 100%{opacity:0}}
.cr-state{display:flex; align-items:baseline; justify-content:space-between; gap:.6rem; margin:.1rem 0 0 !important}
.cr-state b{font-size:.92rem; font-weight:700; color:var(--ink)}
.cr-feed .how-ship.done .cr-state b{color:var(--red)}
.cr-feed .how-ship.done .cr-state b::after{content:"\00a0\2713"}
.cr-state time{font-size:.74rem; font-weight:600; color:var(--muted)}
/* the statuses of a shipment as dots on one line */
.cr-dots{grid-column:1 / -1; list-style:none; display:flex; align-items:center; margin:.7rem .3rem 0; padding:0}
.cr-dots li{position:relative; flex:1; height:16px}
.cr-dots li:last-child{flex:0 0 16px}
.cr-dots li::before{content:""; position:absolute; left:0; top:1px; z-index:1; width:10px; height:10px; border-radius:50%;
                    border:2.5px solid var(--line); background:#fff; transition:background .3s, border-color .3s}
.cr-dots li:not(:last-child)::after{content:""; position:absolute; left:8px; right:0; top:6px; height:3px; background:var(--line);
                                    transition:background .3s}
.cr-dots li.done::before{background:var(--red); border-color:var(--red)}
.cr-dots li.done:has(+ li.done)::after{background:var(--red)}
.cr-all{display:flex; align-items:center; justify-content:center; gap:.45rem; margin:0; padding:.6rem 1rem; border-radius:999px;
        background:var(--red); color:#fff; font-size:.84rem; font-weight:800; transition:opacity .45s, transform .45s}
.cr-all.off{opacity:0; transform:translateY(8px) scale(.9)}

@media(prefers-reduced-motion:reduce){
  .cr-button, .cr-welcome, .cr-chips em, .cr-toast, .cr-all, .cr-order, .cr-pick .how-offer-list li{transition:none}
}
/* without the 3D there is no truck picture */
.cr-status:not(.live) .cr-feed-truck{display:none}
.cr-status:not(.live) .cr-feed .how-ship{grid-template-columns:minmax(0,1fr)}
