/* Wig-wag explainer: the driver's view of a parked older truck, its split windshield, the wig wag and the air gauge.
   Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .ww-*. The arm
   turns on its pivot bolt (134, 45) by the stage's data-arm state: up is folded behind the painted housing, down hangs
   in the windshield. is-dropping swings it down with a short wag; is-bouncing lifts it and lets it fall straight back.
   With the engine running (data-engine="on") the oil gauge comes up and a dropped arm trembles a little. Coral is low
   air, amber the warning point; the paint follows the film's teal cab. */
.ww-page{--ww-low:#ff8f78;--ww-warn:#f3b75d;--ww-ok:#71decc;--ww-steel:#d7dedd;--ww-empty:#4a565c;--ww-console:#161c20}
.ww-demo{padding-block:64px 72px;background:var(--paper)}
.ww-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}
.ww-head{grid-area:head}
.ww-stage{grid-area:stage;margin:0;padding: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)}
.ww-svg{display:block;width:100%;height:auto;border-radius:10px;background:#141a1c}
.ww-panel{grid-area:panel;display:grid;gap:14px}

/* tell-tales: parked, engine, air; script on */
.ww-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.ww-stage.is-js .ww-hud{display:flex}
.ww-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}
.ww-lamp i{flex:none;width:9px;height:9px;border-radius:50%;background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166;transition:background .2s,box-shadow .2s}
.ww-lamp span{color:#a7afb6;font-weight:600}
.ww-lamp b{color:#e9e7e1;font-weight:800}
.ww-lamp-park i{background:#f2c230;box-shadow:0 0 0 2px rgb(242 194 48/.2),0 0 10px rgb(242 194 48/.7)}
.ww-lamp-engine.is-on i,.ww-lamp-air i{background:var(--ww-ok);box-shadow:0 0 0 2px rgb(113 222 204/.18),0 0 10px rgb(113 222 204/.8)}
.ww-lamp-engine.is-on b,.ww-lamp-air b{color:var(--ww-ok)}
.ww-lamp-air.is-low i{background:var(--ww-low);box-shadow:0 0 0 2px rgb(255 143 120/.22),0 0 12px rgb(255 143 120/.95)}
.ww-lamp-air.is-low b{color:var(--ww-low)}

/* the view out */
.ww-cab{fill:#141a1c}
.ww-hills{fill:#a9bcb5}
.ww-shed{fill:#9cada7}
.ww-shed-roof{fill:#6f817b}
.ww-shed-doors{fill:#83958f}
.ww-shed-lines{fill:none;stroke:#738680;stroke-width:1}
.ww-pole{fill:none;stroke:#6e7e79;stroke-width:2.4;stroke-linecap:round}
.ww-trailer{fill:#e2ddcf;stroke:#a9a393;stroke-width:1}
.ww-trailer-stripe{fill:#2f7774}
.ww-trailer-hazard{fill:#f0c46f}
.ww-trailer-ribs{fill:none;stroke:#c8c2b2;stroke-width:1}
.ww-trailer-gear{fill:#3a4447}
.ww-lot{fill:url(#ww-g-lot)}
.ww-lot-lines{fill:none;stroke:#eeeade;stroke-width:2;opacity:.75}
.ww-bollard{fill:#e2a64a}
.ww-glare{fill:#ffffff;opacity:.07}
.ww-wiper{fill:none;stroke:#101517;stroke-width:3;stroke-linecap:round}

/* the cab */
.ww-post{fill:#2b625e}
.ww-seal{fill:none;stroke:#0b0f11;stroke-width:5;stroke-linejoin:round}
.ww-headliner{fill:#1a2124}
.ww-beam-lip{fill:none;stroke:#86c2ba;stroke-width:1.2;opacity:.7}
.ww-screws{fill:#1d3e3c;stroke:#8fc0b9;stroke-width:.8}
.ww-header{fill:url(#ww-g-paint);stroke:#173c3a;stroke-width:1.2}
.ww-housing-face{fill:#4f9992;opacity:.55}
.ww-housing-lip{fill:none;stroke:#0e2524;stroke-width:2;opacity:.7}
.ww-housing-slot{fill:#071012}
.ww-pivot{fill:url(#ww-g-boss);stroke:#3e494c;stroke-width:1.2}
.ww-bolt{fill:#c9a463;stroke:#7a5f2c;stroke-width:1}

/* the wig wag arm: steel rod and the LOW AIR plate */
.ww-rod{fill:url(#ww-g-steel);stroke:#3d4649;stroke-width:.8}
.ww-paddle-drop{fill:#05090a;opacity:.28}
.ww-paddle-face{fill:url(#ww-g-plate);stroke:#7e2b1b;stroke-width:1.2}
.ww-paddle-bevel{fill:none;stroke:#ffd0bd;stroke-width:1.4;stroke-linecap:round;opacity:.55}
.ww-paddle-rivets{fill:#f6e5dc;stroke:#7e2b1b;stroke-width:.6}
.ww-paddle-text{fill:#fff8ef;font-size:15px;font-weight:800;letter-spacing:.06em;text-anchor:middle}
.ww-arm{transform-box:view-box;transform-origin:134px 45px;transform:rotate(0deg)}
.ww-stage[data-arm="up"] .ww-arm{transform:rotate(-90deg)}
.ww-stage.is-moving .ww-arm{transition:transform .45s cubic-bezier(.3,1.5,.6,1)}
.ww-stage.is-moving.is-dropping .ww-arm{animation:ww-wag .9s ease-out}
.ww-stage.is-moving.is-bouncing .ww-arm{animation:ww-bounce .9s ease-in-out}
@keyframes ww-wag{0%{transform:rotate(-90deg)}40%{transform:rotate(14deg)}58%{transform:rotate(-9deg)}74%{transform:rotate(5deg)}88%{transform:rotate(-2deg)}100%{transform:rotate(0deg)}}
@keyframes ww-bounce{0%{transform:rotate(0deg)}35%{transform:rotate(-80deg)}48%{transform:rotate(-80deg)}72%{transform:rotate(9deg)}86%{transform:rotate(-4deg)}100%{transform:rotate(0deg)}}
.ww-sway{transform-box:view-box;transform-origin:134px 45px}
.ww-stage.is-moving[data-engine="on"][data-arm="down"] .ww-sway{animation:ww-idle .16s linear infinite alternate}
@keyframes ww-idle{from{transform:rotate(-.7deg)}to{transform:rotate(.7deg)}}
.ww-label{fill:#f4f2ec;font-size:12px;font-weight:800;text-anchor:middle;paint-order:stroke;stroke:#0d1214;stroke-width:3.5px;stroke-linejoin:round}
.ww-label-arm{text-anchor:end}
.ww-label-warn{fill:var(--ww-warn);text-anchor:end}
.ww-label-knob{font-size:10.5px}
.ww-leader{fill:none;stroke:var(--ww-warn);stroke-width:1.4;stroke-dasharray:2 2}

/* the dash and its gauges */
.ww-dash-edge{fill:none;stroke:#7d8a86;stroke-width:1;opacity:.6}
.ww-cluster{fill:#0e1315;stroke:#3a464b;stroke-width:1.5}
.ww-bezel-shade{fill:#05080a}
.ww-bezel{fill:none;stroke:url(#ww-g-chrome);stroke-width:6}
.ww-dial{fill:url(#ww-g-dial)}
.ww-low{fill:none;stroke:var(--ww-low);stroke-width:5.5}
.ww-ticks{fill:none;stroke:#1f292f;stroke-width:2;stroke-linecap:round}
.ww-ticks-minor{fill:none;stroke:#56636a;stroke-width:1.2;stroke-linecap:round}
.ww-warn{fill:none;stroke:var(--ww-warn);stroke-width:4.5;stroke-linecap:round}
.ww-needle{transform-box:view-box;transform-origin:0 0;transform:rotate(-66.2deg)}
.ww-needle-blade{fill:#1a2125}
.ww-stage[data-air="low"] .ww-needle-blade{fill:#c2412b}
.ww-stage.is-moving .ww-needle{transition:transform .35s ease-out}
.ww-gauge-pin{fill:#20282c;stroke:#9aa5a8;stroke-width:1.2}
.ww-gauge-glare{fill:#ffffff;opacity:.4}
.ww-gauge-name{fill:#26313a;font-size:11px;font-weight:800;letter-spacing:.14em;text-anchor:middle;text-transform:uppercase}
.ww-small-bezel{fill:#05080a;stroke:url(#ww-g-chrome);stroke-width:2.5}
.ww-small-face{fill:#1b2326}
.ww-small-ticks{fill:none;stroke:#c9d0d2;stroke-width:1.2;stroke-linecap:round}
.ww-small-needle{fill:none;stroke:#ffb9a6;stroke-width:1.8;stroke-linecap:round;transform-box:view-box;transform-origin:0 0}
.ww-small-pin{fill:#9aa5a8}
.ww-oil{transform:rotate(-120deg)}
.ww-stage[data-engine="on"] .ww-oil{transform:rotate(10deg)}
.ww-stage.is-moving .ww-oil{transition:transform .6s cubic-bezier(.3,1.4,.6,1)}
.ww-fuel{transform:rotate(55deg)}
.ww-knob-shadow{fill:#000;opacity:.35}
.ww-knob-stem{fill:none;stroke:#8d999e;stroke-width:6;stroke-linecap:round}
.ww-knob-face{fill:url(#ww-g-knob);stroke:#6e5410;stroke-width:1.4;stroke-linejoin:round}
.ww-knob-shine{fill:none;stroke:#fff6c8;stroke-width:1.6;stroke-linecap:round;opacity:.7}
.ww-wheel-rim{fill:none;stroke:#1c2225;stroke-width:15}
.ww-wheel-shine{fill:none;stroke:#7b878b;stroke-width:2;opacity:.75}
.ww-wheel-spoke{fill:none;stroke:#1a2023;stroke-width:13;stroke-linecap:round}

/* controls: one dark console */
.ww-ask{color:var(--ink);font-size:20px;line-height:1.25}
.ww-ask[hidden],.ww-controls[hidden],.ww-tools [hidden]{display:none}
.ww-ask b{font-weight:800}
.ww-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#1f272c,var(--ww-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e9e7e1}
.ww-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ww-btn{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:64px;padding:10px 12px;border:0;border-radius:12px;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:700;line-height:1.2;text-align:left;cursor:pointer;transition:transform .08s,box-shadow .12s,background .12s}
.ww-btn:hover{background:linear-gradient(180deg,#323c42,#1f262a)}
.ww-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #090c0e}
.ww-fan{grid-column:1/-1;min-height:68px}
.ww-name{display:grid;gap:3px;min-width:0}
.ww-name small{color:#a7afb6;font-size:13px;font-weight:600}
.ww-icon{flex:none;width:40px;height:32px}
.ww-icon-floor{fill:#3a4448}
.ww-icon-block{fill:#59656a}
.ww-icon-lever{fill:#8d999d}
.ww-icon-tread{fill:#e86a49}
.ww-icon-pin{fill:#d7dedd}
.ww-icon-puff{fill:none;stroke:#bfe3f0;stroke-width:1.8;stroke-linecap:round;opacity:.7}
.ww-icon-arm{transform-box:view-box;transform-origin:8px 21.5px;transform:rotate(-20deg);transition:transform .12s}
.ww-fan:active .ww-icon-arm{transform:rotate(-2deg)}
.ww-icon-engine{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#0b0f11;box-shadow:inset 0 0 0 2px #3a4448}
.ww-icon-engine i{width:12px;height:12px;border-radius:50%;background:#2d3538;box-shadow:inset 0 0 0 1.5px #4a565c;transition:background .2s,box-shadow .2s}
.ww-engine[aria-pressed="true"]{background:linear-gradient(180deg,#1f3633,#152523);box-shadow:inset 0 0 0 2px var(--ww-ok),0 1px 0 #090c0e;transform:translateY(2px)}
.ww-engine[aria-pressed="true"] .ww-icon-engine i{background:var(--ww-ok);box-shadow:0 0 0 3px rgb(113 222 204/.2),0 0 12px rgb(113 222 204/.9)}
.ww-icon-push{width:30px;height:30px;fill:var(--ww-warn)}
.ww-push[aria-disabled="true"]{background:#262e32;box-shadow:inset 0 0 0 1px rgb(255 255 255/.06);color:#aeb7b9;cursor:default}
.ww-push[aria-disabled="true"]:active{transform:none}
.ww-push[aria-disabled="true"] .ww-icon-push{fill:var(--ww-empty)}
.ww-push[aria-disabled="true"] .ww-name small{color:#8f999c}
.ww-type{display:grid;grid-template-columns:auto repeat(2,minmax(0,1fr));align-items:center;gap:6px;min-width:0;margin:0;padding:4px;border:0;border-radius:999px;background:#0b0f11;box-shadow:inset 0 1px 3px rgb(0 0 0/.6)}
.ww-type legend{float:left;margin:0 4px 0 10px;padding:0;color:#a7afb6;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.ww-type label{position:relative;display:block;min-width:0;cursor:pointer}
.ww-type input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ww-type span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px 8px;border-radius:999px;color:#c9d0d2;font-size:15px;font-weight:700;white-space:nowrap;transition:background .15s,color .15s}
.ww-type input:checked+span{background:linear-gradient(180deg,#3b464c,#283035);box-shadow:inset 0 1px 0 rgb(255 255 255/.12),0 2px 6px rgb(0 0 0/.5);color:#fff}
.ww-type input:checked+span::before{content:"";flex:none;width:8px;height:8px;margin-right:8px;border-radius:50%;background:var(--ww-warn);box-shadow:0 0 8px rgb(243 183 93/.8)}
.ww-type input:focus-visible+span,.ww-btn:focus-visible,.ww-toggle:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.ww-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}
.ww-stage[data-air="low"]~.ww-panel .ww-status{border-left-color:#e2603f}
.ww-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ww-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.ww-toggle::before{content:"";flex:none;width:14px;height:14px;background:currentColor;opacity:.75}
.ww-toggle-sound::before{clip-path:polygon(0 30%,35% 30%,75% 0,75% 100%,35% 70%,0 70%)}
.ww-toggle-motion::before{border-radius:50%;width:12px;height:12px;box-shadow:inset 0 0 0 3px currentColor;background:none}
.ww-toggle[aria-pressed="false"]{color:var(--muted)}
.ww-text{max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

.ww .sbp-course-grid{grid-template-areas:"intro offer";grid-template-rows:auto}
.ww .sbp-features{margin-top:24px}
.ww .sbp-price{margin-top:0}
@media (max-width:900px){
  .ww .sbp-course-grid{grid-template-areas:"intro" "offer"}
  .ww-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .ww-demo{padding-block:36px 44px}
  .ww-stage{margin-inline:-8px;padding:8px 6px 6px;border-radius:14px}
  .ww-svg{border-radius:8px}
  .ww-hud{gap:5px;padding:0 0 8px;flex-wrap:nowrap}
  .ww-lamp{padding:5px 7px 5px 6px;font-size:11.5px;gap:5px}
  .ww-lamp i{width:8px;height:8px}
  .ww-panel{gap:10px}
  .ww-ask{font-size:18px}
  .ww-controls{gap:10px;margin-inline:-8px;padding:12px 10px}
  .ww-buttons{gap:6px}
  .ww-btn{min-height:60px;padding:8px 9px;gap:8px;font-size:15px}
  .ww-icon{width:34px;height:28px}
  .ww-icon-engine{width:28px;height:28px}
  .ww-icon-push{width:24px;height:26px}
  .ww-name small{font-size:12px}
  .ww-type legend{margin:0 2px 0 8px;font-size:11px}
  .ww-type span{padding:6px 4px;font-size:14px}
  .ww-type input:checked+span::before{margin-right:6px;width:7px;height:7px}
  .ww-status{min-height:7.4em;padding:10px 12px;font-size:15px}
  .ww-text{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .ww-page *{transition:none!important;animation:none!important}
}
