/* Controlled-braking explainer: the lock-or-roll emergency stop on a wet road in the rain, seen from above. Hero, film,
   course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .cb-*. The stage's
   data-wheels state colors the tires and the close-up's frame: mint while they roll, coral while they are locked,
   plain when stopped. data-pedal lights the truck's brake lights; the pedal group's data-level fills the force bar and
   tips the pedal drawing. The script moves the truck group by its transform attribute, so no rule here may transform
   .cb-truck. Colors follow the film: teal cab, cream box, amber marks. */
.cb-page{--cb-roll:#71decc;--cb-lock:#ff8f78;--cb-mark:#f3b75d;--cb-steel:#d7dedd;--cb-console:#161c20}
.cb-demo{padding-block:64px 72px;background:var(--paper)}
.cb-demo-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"head head" "stage panel";gap:24px 40px;align-items:start}
.cb-head{grid-area:head}
.cb-stage{grid-area:stage;margin:0;padding:10px 10px 10px;border-radius:16px;background:linear-gradient(170deg,#1d272c,#0d1215 80%);box-shadow:0 30px 60px -34px rgb(0 0 0/.75),inset 0 1px 0 rgb(255 255 255/.06)}
.cb-svg{display:block;width:100%;height:auto;margin-inline:auto;border-radius:10px;background:#263129}
.cb-panel{grid-area:panel;display:grid;gap:14px}

/* tell-tales over the scene: no ABS, the wheels and the steering; script on */
.cb-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.cb-stage.is-js .cb-hud{display:flex}
.cb-lamp{display:inline-flex;align-items:center;gap:7px;padding:6px 10px 6px 8px;border-radius:8px;background:#0a0e10;box-shadow:inset 0 0 0 1px rgb(255 255 255/.09);font-size:13px;line-height:1;white-space:nowrap}
.cb-lamp i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--cb-roll);box-shadow:0 0 0 2px rgb(113 222 204/.18),0 0 10px rgb(113 222 204/.8);transition:background .2s,box-shadow .2s}
.cb-lamp span{color:#a7afb6;font-weight:600}
.cb-lamp b{color:var(--cb-roll);font-weight:800}
.cb-lamp-abs i{background:#4b4232;box-shadow:inset 0 0 0 1.5px #8a7448}
.cb-lamp-abs b{color:#e9e7e1}
.cb-lamp.is-locked i{background:var(--cb-lock);box-shadow:0 0 0 2px rgb(255 143 120/.22),0 0 12px rgb(255 143 120/.95)}
.cb-lamp.is-locked b{color:var(--cb-lock)}
.cb-stage.is-moving .cb-lamp.is-locked i{animation:cb-blink .5s steps(2,jump-none) infinite}
@keyframes cb-blink{50%{background:#5a2a22;box-shadow:none}}

/* the ground */
.cb-verge{fill:#33463a}
.cb-curb{fill:none;stroke:#7d8784;stroke-width:3}
.cb-edge{fill:none;stroke:#ecebe3;stroke-width:2.4;opacity:.82}
.cb-center{fill:none;stroke:#e8b64c;stroke-width:2.2;opacity:.85}
.cb-stopbar{fill:none;stroke:#ecebe3;stroke-width:4;opacity:.7}
.cb-puddle{fill:url(#cb-g-puddle)}
.cb-glint{fill:none;stroke:#e7f3f6;stroke-width:1.2;stroke-linecap:round;opacity:.45}
.cb-vignette{pointer-events:none}
.cb-road-name{fill:#bfe3f0;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;paint-order:stroke;stroke:#11181b;stroke-width:3px;stroke-linejoin:round}
.cb-rain{opacity:.17;pointer-events:none}
.cb-stage.is-running .cb-rain{animation:cb-rain .55s linear infinite}
@keyframes cb-rain{from{transform:translate(0,0)}to{transform:translate(-11px,40px)}}

/* vehicles: soft shade under each, headlight beams on the wet road */
.cb-shade{fill:#030506;opacity:.38}
.cb-beam{fill:url(#cb-g-beam)}
.cb-car-body{fill:url(#cb-g-car);stroke:#16263a;stroke-width:1.2}
.cb-car-glass{fill:url(#cb-g-glass)}
.cb-car-roof{fill:#5a86b9;stroke:#3a5e88;stroke-width:.8}
.cb-car-trim{fill:none;stroke:#1d3149;stroke-width:1.2;stroke-linecap:round}
.cb-car-lamp{fill:#fff6da}
.cb-car-tail{fill:#c9412c}
.cb-box{fill:url(#cb-g-box);stroke:#8f8878;stroke-width:1}
.cb-ribs{fill:none;stroke:#c7c0b0;stroke-width:1.1}
.cb-rail{fill:none;stroke:#fbf8f0;stroke-width:1;opacity:.75}
.cb-cab{fill:url(#cb-g-cab);stroke:#1c4a48;stroke-width:1}
.cb-glass{fill:url(#cb-g-glass)}
.cb-roof{fill:#55a29b;opacity:.75}
.cb-marker{fill:#ffc56a}
.cb-bar{fill:#3c4549;stroke:#9aa5a8;stroke-width:.6}
.cb-headlamp{fill:#fff6da}
.cb-mirror-arm{fill:none;stroke:#2a3134;stroke-width:1.6}
.cb-mirror{fill:#1f2629;stroke:#a7b1b3;stroke-width:.7}
.cb-tail{fill:#7e2a1f;transition:fill .15s}
/* brake lights and their reflection on the wet road: brighter the harder the pedal */
.cb-brake{fill:url(#cb-g-glow);opacity:0;transition:opacity .18s}
.cb-stage[data-pedal="firm"] .cb-brake{opacity:.55}
.cb-stage[data-pedal="hard"] .cb-brake{opacity:.82}
.cb-stage[data-pedal="full"] .cb-brake,.cb-stage.is-static .cb-brake{opacity:1}
.cb-stage[data-pedal="firm"] .cb-tail,.cb-stage[data-pedal="hard"] .cb-tail,.cb-stage[data-pedal="full"] .cb-tail,.cb-stage.is-static .cb-tail{fill:#ff5b3e}
.cb-mist{fill:url(#cb-g-mist)}

/* tires: tread that moves while they roll, a mint edge; a coral edge and still tread while they are locked */
.cb-wheel{fill:url(#cb-p-tread);stroke:var(--cb-roll);stroke-width:1.6}
.cb-stage[data-wheels="locked"] .cb-wheel{stroke:var(--cb-lock);stroke-width:2.6}
.cb-stage[data-wheels="still"] .cb-wheel{stroke:#aab4b4}
.cb-skid{fill:none;stroke:#040607;stroke-width:8;stroke-linecap:butt;opacity:.78}
.cb-label{fill:#f4f2ec;font-size:13px;font-weight:800;text-anchor:end;paint-order:stroke;stroke:#0d1214;stroke-width:3.5px;stroke-linejoin:round}
.cb-stage[data-wheels="locked"] .cb-label-truck{fill:var(--cb-lock)}
.cb-stage[data-wheels="rolling"].is-js .cb-label-truck{fill:var(--cb-roll)}
.cb-last{display:none}
.cb-last.is-on{display:inline}
.cb-last-line{fill:none;stroke:var(--cb-mark);stroke-width:2.4;stroke-dasharray:5 4}
.cb-last-name{fill:var(--cb-mark);font-size:12px;font-weight:800;text-anchor:end;paint-order:stroke;stroke:#0d1214;stroke-width:3px;stroke-linejoin:round}
/* without script: the locked truck's outline and skid marks; the real truck sits at the controlled stop */
.cb-ghost{display:none}
.cb-stage.is-static .cb-ghost{display:inline}
.cb-ghost-skid{fill:none;stroke:#040607;stroke-width:8;opacity:.6}
.cb-ghost-body{fill:rgb(255 143 120/.08);stroke:var(--cb-lock);stroke-width:1.8;stroke-dasharray:5 3.5}
.cb-ghost-name{fill:var(--cb-lock);font-size:13px;font-weight:800;text-anchor:end;paint-order:stroke;stroke:#0d1214;stroke-width:3.5px;stroke-linejoin:round}

/* the close-up of the front tire: script on */
.cb-cam{display:none}
.cb-stage.is-js .cb-cam{display:inline}
.cb-cam-box{fill:#0b1012;fill-opacity:.88;stroke:var(--cb-roll);stroke-width:2;transition:stroke .2s}
.cb-stage[data-wheels="locked"] .cb-cam-box{stroke:var(--cb-lock);stroke-width:2.6}
.cb-stage[data-wheels="still"] .cb-cam-box{stroke:#7f8a8c}
.cb-cam-name{fill:#e9e7e1;font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.cb-cam-under{fill:#141b1d}
.cb-cam-panel{fill:#3f8b85}
.cb-cam-line{fill:none;stroke:#2a6764;stroke-width:3}
.cb-cam-road{fill:#323d41}
.cb-cam-mirror{opacity:.22}
.cb-cam-grit{fill:none;stroke:#9fb2b6;stroke-width:1.6;stroke-linecap:round;opacity:.7}
.cb-cam-smear{fill:url(#cb-g-smear);opacity:0;transition:opacity .15s}
.cb-stage[data-wheels="locked"] .cb-cam-smear{opacity:1}
.cb-cam-spray{fill:#dff0f4}
.cb-cam-tire{fill:url(#cb-g-tire)}
.cb-cam-tread{fill:none;stroke:#3d464b;stroke-width:3.2;stroke-dasharray:3.72 3.72}
.cb-cam-wall{fill:none;stroke:#2a3236;stroke-width:1.2}
.cb-cam-rim{fill:url(#cb-g-rim);stroke:#4f5a5e;stroke-width:1}
.cb-cam-dish{fill:#c3cbcd;stroke:#7e898c;stroke-width:.8}
.cb-cam-nuts{fill:#5d686c}
.cb-cam-hub{fill:#3f8b85;stroke:#1f4c49;stroke-width:1}
.cb-cam-mark{fill:var(--cb-mark)}
.cb-cam-edge{fill:none;stroke:rgb(255 255 255/.1);stroke-width:1}

/* controls: one dark console for the pedal and the steering */
.cb-ask{color:var(--ink);font-size:20px;line-height:1.25}
.cb-ask[hidden],.cb-controls[hidden],.cb-tools [hidden]{display:none}
.cb-ask b{font-weight:800}
.cb-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#1f272c,var(--cb-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e9e7e1}
.cb-pedal{display:grid;gap:8px}
.cb-pedal-name{display:flex;align-items:center;gap:10px;color:#a7afb6;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.cb-pedal-art{flex:none;width:58px;height:33px}
.cb-pedal-floor{fill:#3a4448}
.cb-pedal-block{fill:#59656a}
.cb-pedal-lever{fill:#8d999d}
.cb-pedal-tread{fill:#2b3236;stroke:#0d1113;stroke-width:.8}
.cb-pedal-ribs{fill:none;stroke:#59656a;stroke-width:1.4}
.cb-pedal-pin{fill:#d7dedd;stroke:#2b3236;stroke-width:1.2}
.cb-pedal-arm{transform-box:view-box;transform-origin:10.5px 21px;transform:rotate(-24deg);transition:transform .3s cubic-bezier(.3,1.4,.6,1)}
.cb-pedal[data-level="off"] .cb-pedal-arm{transform:rotate(-24deg)}
.cb-pedal[data-level="firm"] .cb-pedal-arm{transform:rotate(-15deg)}
.cb-pedal[data-level="hard"] .cb-pedal-arm{transform:rotate(-8deg)}
.cb-pedal[data-level="full"] .cb-pedal-arm{transform:rotate(-1deg)}
.cb-pedal[data-level="full"] .cb-pedal-tread{fill:#5a2a22}
.cb-travel{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
/* the grip limit runs between Hard and Full, through the buttons and the force bar */
.cb-travel::after{content:"";position:absolute;top:-4px;bottom:22px;left:calc(75% + 1.5px);width:0;border-left:2px dashed rgb(255 143 120/.85);pointer-events:none}
.cb-level{position:relative;display:grid;align-content:start;gap:4px;min-width:0;min-height:68px;padding:10px 9px 9px;border:0;border-radius:10px;background:linear-gradient(180deg,#2b3439,#1b2125);box-shadow:inset 0 1px 0 rgb(255 255 255/.1),0 3px 0 #090c0e,0 8px 16px -10px rgb(0 0 0/.7);color:#fff;font-size:16px;font-weight:800;line-height:1.1;text-align:left;cursor:pointer;transition:transform .08s,box-shadow .12s,background .12s}
.cb-level::before{content:"";position:absolute;left:9px;right:9px;top:5px;height:3px;border-radius:2px;background:#5e6a70}
.cb-level-firm::before{background:#9fd8ff}
.cb-level-hard::before{background:var(--cb-roll)}
.cb-level-full::before{background:var(--cb-lock)}
.cb-level small{color:#a7afb6;font-size:12px;font-weight:600;line-height:1.2}
.cb-level:hover{background:linear-gradient(180deg,#323c42,#1f262a)}
.cb-level:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #090c0e}
.cb-level[aria-pressed="true"]{transform:translateY(2px);background:linear-gradient(180deg,#3b464c,#262e33);box-shadow:inset 0 0 0 2px var(--cb-mark),0 1px 0 #090c0e}
.cb-level-full[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--cb-lock),0 1px 0 #090c0e}
.cb-level[aria-pressed="true"] small{color:#e9e7e1}
.cb-force{position:relative;grid-column:1/-1;height:30px;margin:2px 0 0;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.cb-force::before{content:"";position:absolute;inset:0 0 auto;height:10px;border-radius:5px;background:linear-gradient(90deg,#2a3236 0 calc(75% + 1.5px),rgb(255 143 120/.28) 0),#2a3236;box-shadow:inset 0 1px 2px rgb(0 0 0/.6)}
.cb-force-fill{position:absolute;left:0;top:0;width:0;height:10px;border-radius:5px;background:var(--cb-mark);box-shadow:0 0 12px rgb(243 183 93/.55);transition:width .35s cubic-bezier(.3,1.2,.6,1)}
.cb-pedal[data-level="off"] .cb-force-fill{width:8px}
.cb-pedal[data-level="firm"] .cb-force-fill{width:calc(50% - 3px)}
.cb-pedal[data-level="hard"] .cb-force-fill{width:calc(75% - 2px)}
.cb-pedal[data-level="full"] .cb-force-fill{width:100%;background:linear-gradient(90deg,var(--cb-mark) 0 75%,var(--cb-lock) 75%);box-shadow:0 0 14px rgb(255 143 120/.6)}
.cb-force-limit,.cb-force-lock{position:absolute;top:15px;white-space:nowrap}
.cb-force-limit{right:calc(25% + 4px);color:#c9d0d4}
.cb-force-lock{left:calc(75% + 8px);color:var(--cb-lock)}
.cb-steer-btn{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 16px 8px 10px;border:0;border-radius:999px;background:#0b0f11;box-shadow:inset 0 0 0 1.5px rgb(255 255 255/.16);color:#fff;font-size:16px;font-weight:700;cursor:pointer;justify-self:start;transition:box-shadow .15s,background .15s}
.cb-steer-btn:hover{background:#000}
.cb-steer-btn[aria-pressed="true"]{background:#2b2418;box-shadow:inset 0 0 0 2px var(--cb-mark)}
.cb-wheel-icon{flex:none;width:32px;height:32px;fill:none;stroke:#d7dedd;stroke-width:3.4;stroke-linecap:round;transition:transform .3s cubic-bezier(.3,1.4,.6,1)}
.cb-wheel-hub{fill:#d7dedd;stroke:none}
.cb-steer-btn[aria-pressed="true"] .cb-wheel-icon{transform:rotate(-35deg);stroke:var(--cb-mark)}
.cb-steer-btn[aria-pressed="true"] .cb-wheel-hub{fill:var(--cb-mark)}
.cb-level:focus-visible,.cb-steer-btn:focus-visible,.cb-toggle:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.cb-status{display:block;min-height:5.9em;padding:12px 14px 12px 16px;border-left:5px solid #9aa7ac;border-radius:0 10px 10px 0;background:var(--white,#fffffc);color:var(--ink);font-size:16px;font-weight:600;line-height:1.45;transition:border-color .2s}
.cb-status[data-tone="good"]{border-left-color:#1f9e83}
.cb-status[data-tone="bad"]{border-left-color:#e2603f}
.cb-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cb-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.cb-toggle::before{content:"";flex:none;width:14px;height:14px;background:currentColor;opacity:.75}
.cb-toggle-sound::before{clip-path:polygon(0 30%,35% 30%,75% 0,75% 100%,35% 70%,0 70%)}
.cb-toggle-motion::before{border-radius:50%;clip-path:none;width:12px;height:12px;box-shadow:inset 0 0 0 3px currentColor;background:none}
.cb-toggle[aria-pressed="false"]{color:var(--muted)}
.cb-text{max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

.cb .sbp-course-grid{grid-template-areas:"intro offer";grid-template-rows:auto}
.cb .sbp-features{margin-top:24px}
.cb .sbp-price{margin-top:0}
@media (max-width:900px){
  .cb .sbp-course-grid{grid-template-areas:"intro" "offer"}
  .cb-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .cb-demo{padding-block:36px 44px}
  .cb-stage{margin-inline:-8px;padding:8px 6px 6px;border-radius:14px}
  .cb-svg{border-radius:8px}
  .cb-hud{gap:5px;padding:0 0 8px;flex-wrap:nowrap}
  .cb-lamp{padding:5px 7px 5px 6px;font-size:11.5px;gap:5px}
  .cb-lamp i{width:8px;height:8px}
  .cb-panel{gap:10px}
  .cb-ask{font-size:18px}
  .cb-controls{gap:10px;margin-inline:-8px;padding:12px 10px}
  .cb-travel{gap:5px}
  .cb-travel::after{left:calc(75% + 1.25px)}
  .cb-level{min-height:64px;padding:10px 7px 7px;font-size:15px}
  .cb-level::before{left:7px;right:7px}
  .cb-level small{font-size:11px}
  .cb-force-limit,.cb-force-lock{font-size:10px}
  .cb-steer-btn{min-height:48px;font-size:15px}
  .cb-status{min-height:7.4em;padding:10px 12px;font-size:15px}
  .cb-text{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .cb-page *{transition:none!important;animation:none!important}
}
