/* Retarder explainer: the lift-off-the-accelerator model. Hero, film, course offer and return banner reuse
   spring-brakes.css (.sbp-*); this file styles only .rt-*. Orange is the retarder and the drive wheels it works on,
   everywhere it appears (drawing, axle name, lamp, switch); steering and trailer wheels stay neutral. */
.rt-page{--rt-ret:#ff8a3d;--rt-gas:var(--sbp-amber);--rt-steer:#9fc9ef;--rt-trailer:#c9d2d2}
.rt-demo{padding-block:64px 72px;background:var(--paper)}
.rt-demo-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:"head head" "stage panel";gap:24px 40px;align-items:start}
.rt-head{grid-area:head}
.rt-stage{grid-area:stage;margin:0;padding:12px 12px 8px;border-radius:12px;background:linear-gradient(170deg,#2b383f,#12181d 78%);box-shadow:0 24px 50px -30px rgb(0 0 0/.7)}
.rt-svg{display:block;width:100%;height:auto}
.rt-panel{grid-area:panel;display:grid;gap:14px}

/* lamps: accelerator, retarder, brake pedal (script on) */
.rt-hud{display:none;align-items:center;gap:8px;flex-wrap:wrap;padding:2px 4px 8px;color:#e9e7e1}
.rt-stage.is-js .rt-hud{display:flex}
.rt-lamp{display:inline-flex;align-items:center;gap:7px;padding:6px 10px 6px 8px;border-radius:999px;background:rgb(255 255 255/.07);font-size:13px;line-height:1}
.rt-lamp span{color:var(--sbp-dim);font-weight:600}
.rt-lamp b{color:#fff;font-weight:700}
.rt-lamp i{width:11px;height:11px;border-radius:50%;background:#46535a;box-shadow:inset 0 0 0 1px rgb(255 255 255/.2);transition:background-color .25s,box-shadow .25s}
.rt-lamp-gas.is-on i{background:var(--rt-gas);box-shadow:0 0 10px var(--rt-gas)}
.rt-lamp-ret.is-wait i{background:transparent;box-shadow:inset 0 0 0 2px var(--rt-ret)}
.rt-lamp-ret.is-on i{background:var(--rt-ret);box-shadow:0 0 10px var(--rt-ret)}
.rt-lamp-ret.is-on b{color:var(--rt-ret)}
.rt-lamp-brake b{color:var(--sbp-dim)}

/* drawing */
.rt-chip rect{fill:rgb(255 255 255/.08);stroke:rgb(255 255 255/.18)}
.rt-chip text{fill:#e9e7e1;font:700 11px/1 var(--font-sans,system-ui,sans-serif);text-anchor:middle;letter-spacing:.02em}
.rt-front text{fill:#c9d2d2;font:700 11px/1 var(--font-sans,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase;text-anchor:start}
.rt-front path{fill:none;stroke:#c9d2d2;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.rt-road{fill:#252e33}
.rt-edge{stroke:#5d6b70;stroke-width:1}
.rt-dashes{stroke:rgb(233 231 225/.42);stroke-width:2;stroke-dasharray:14 18}
.rt-box{fill:url(#rt-box);stroke:#47555b;stroke-width:1}
.rt-ribs{fill:none;stroke:rgb(71 85 91/.3);stroke-width:1}
.rt-rail,.rt-susp,.rt-frame{fill:#3a454a}
.rt-legs rect{fill:#4b585e}
.rt-fifth{fill:#4c585d;stroke:#2a3236;stroke-width:.8}
.rt-stack{fill:#8d999e}
.rt-cab{fill:url(#rt-cab);stroke:#163449;stroke-width:1}
.rt-glass{fill:#14222b}
.rt-door{fill:none;stroke:rgb(10 25 35/.45);stroke-width:1}
.rt-bumper{fill:#b7c2c4}
.rt-tank{fill:#aeb9bc;stroke:#6f7c80;stroke-width:.8}
.rt-tire{fill:#11171a;stroke:#2f383d;stroke-width:2}
.rt-rim{fill:#56646a;stroke:#7f8d92;stroke-width:1}
.rt-spokes path{fill:none;stroke:#b7c2c4;stroke-width:1.6;stroke-linecap:round}
.rt-hub{fill:#d7dedd}
.rt-halo{fill:none;stroke:var(--rt-ret);stroke-width:2.4;opacity:0;transition:opacity .3s}
.rt-wheel-drive .rt-rim{transition:fill .3s}
.rt-shaft{fill:none;stroke:#59676d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.rt-trans{fill:#4c585d;stroke:#2a3236;stroke-width:.8}
.rt-flow{fill:none;stroke:var(--rt-ret);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:5 6;opacity:0;transition:opacity .3s}
.rt-hold path{fill:none;stroke:var(--rt-ret);stroke-width:2.6;stroke-linecap:round}
.rt-head{fill:var(--rt-ret)}
.rt-hold{opacity:0;transition:opacity .3s}
.rt-axles path{fill:none;stroke-width:1.4}
.rt-axle-trailer{stroke:var(--rt-trailer)}
.rt-axle-steer{stroke:var(--rt-steer)}
.rt-axle-drive{stroke:var(--rt-ret)}
.rt-name{font:700 12px/1 var(--font-sans,system-ui,sans-serif);text-anchor:middle}
.rt-name-trailer{fill:var(--rt-trailer)}
.rt-name-steer{fill:var(--rt-steer)}
.rt-name-drive{fill:var(--rt-ret)}

/* the retarder working: foot off and switched on */
.rt-stage.is-lifted.is-ret .rt-flow,.rt-stage.is-lifted.is-ret .rt-hold,.rt-stage.is-lifted.is-ret .rt-halo{opacity:1}
.rt-stage.is-lifted.is-ret .rt-wheel-drive .rt-rim{fill:#8a4a20}
.rt-stage.is-moving.is-lifted.is-ret .rt-flow{animation:rt-flow .6s linear infinite}
@keyframes rt-flow{to{stroke-dashoffset:22}}

/* controls */
.rt-ask{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;color:var(--ink);font-size:20px;line-height:1.25}
.rt-ask[hidden],.rt-controls[hidden],.rt-tools [hidden]{display:none}
.rt-ask b{font-weight:800}
.rt-count{flex:none;padding:4px 9px;border-radius:999px;background:var(--sbp-deep);color:#fff;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.rt-ask.is-done .rt-count{display:none}
.rt-controls{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px}
.rt-pedal,.rt-switch{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 14px;border:2px solid transparent;border-radius:10px;background:var(--sbp-deep);color:#fff;font-size:16px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer}
.rt-pedal:hover,.rt-switch:hover{background:#000}
.rt-pedal{border-left:6px solid var(--rt-gas)}
.rt-pedal.is-up{border-left-color:#5d6b71}
.rt-pedal:focus-visible,.rt-switch:focus-visible,.rt-replay:focus-visible,.rt-toggle:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.rt-icon-pedal{flex:none;width:22px;height:30px;border-radius:5px;background:repeating-linear-gradient(180deg,#c3ccce 0 4px,#55636a 4px 7px);transform:scaleY(.72);transform-origin:50% 100%;transition:transform .15s}
.rt-pedal.is-up .rt-icon-pedal{transform:none}
.rt-switch{justify-content:space-between}
.rt-switch-name{margin-right:auto}
.rt-track{position:relative;flex:none;width:44px;height:26px;border-radius:999px;background:#46535a;transition:background-color .2s}
.rt-track i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s}
.rt-switch[aria-checked="true"] .rt-track{background:var(--rt-ret)}
.rt-switch[aria-checked="true"] .rt-track i{transform:translateX(18px)}
.rt-switch-state{display:block;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--sbp-dim)}
.rt-switch[aria-checked="true"] .rt-switch-state{color:var(--rt-ret)}
.rt-status{display:block;min-height:4.6em;padding:12px 14px;border-left:5px solid var(--rt-ret);border-radius:0 8px 8px 0;background:var(--white,#fffffc);color:var(--ink);font-size:16px;font-weight:600;line-height:1.45}
.rt-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rt-replay{min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font-size:15px;font-weight:700;cursor:pointer}
.rt-toggle{min-height:44px;cursor:pointer}
.rt-text{max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

.rt .sbp-course-grid{grid-template-areas:"intro offer";grid-template-rows:auto}
.rt .sbp-features{margin-top:24px}
.rt .sbp-price{margin-top:0}
@media (max-width:900px){
  .rt .sbp-course-grid{grid-template-areas:"intro" "offer"}
  .rt-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .rt-demo{padding-block:36px 44px}
  .rt-stage{margin-inline:-8px;padding:8px 4px 6px}
  .rt-hud{gap:6px;padding:2px 4px 6px}
  .rt-lamp{padding:5px 8px 5px 6px;font-size:12px;gap:5px}
  .rt-panel{gap:10px}
  .rt-ask{font-size:18px}
  .rt-controls{gap:8px}
  .rt-pedal,.rt-switch{min-height:60px;padding:8px 10px;gap:8px;font-size:15px}
  .rt-pedal{border-left-width:5px}
  .rt-track{width:40px;height:24px}
  .rt-track i{width:18px;height:18px}
  .rt-switch[aria-checked="true"] .rt-track i{transform:translateX(16px)}
  .rt-status{min-height:5.9em;padding:10px 12px;font-size:15px}
  .rt-text{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .rt-page *{transition:none!important;animation:none!important}
}
