/* Application-pressure-gauge explainer: the dash of a parked older truck, two large air gauges and the brake pedal.
   Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .ap-*. Each needle
   turns about its gauge's center: the script sets its angle (the gauge's sweep runs from -135 to +135 degrees); without
   script the stylesheet's angles show a firm press. The pedal tilts on its hinge (146, 304) and pushes the valve's
   plunger by the stage's data-pedal state (up, light, firm). With motion the needles move with a little overshoot, as
   a real needle does, and tremble with the idling engine. Copper is the application needle and the pedal's air; the
   paint is the oxblood of an older cab, apart from any warning color: nothing here is about low air. */
.ap-page{--ap-app:#e0663f;--ap-ok:#71decc;--ap-amber:#f3b75d;--ap-console:#1a1615}
.ap-demo{padding-block:64px 72px;background:var(--paper)}
.ap-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}
.ap-head{grid-area:head}
.ap-stage{grid-area:stage;margin:0;padding:10px;border-radius:16px;background:linear-gradient(170deg,#2a2220,#110d0c 80%);box-shadow:0 30px 60px -34px rgb(0 0 0/.75),inset 0 1px 0 rgb(255 255 255/.06)}
.ap-svg{display:block;width:100%;height:auto;border-radius:10px;background:#1a1311}
.ap-panel{grid-area:panel;display:grid;gap:14px}

/* tell-tales: engine, pedal, tanks; script on */
.ap-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.ap-stage.is-js .ap-hud{display:flex}
.ap-lamp{display:inline-flex;align-items:center;gap:7px;padding:6px 10px 6px 8px;border-radius:8px;background:#0c0908;box-shadow:inset 0 0 0 1px rgb(255 255 255/.09);font-size:13px;line-height:1;white-space:nowrap}
.ap-lamp i{flex:none;width:9px;height:9px;border-radius:50%;background:#3d3533;box-shadow:inset 0 0 0 1.5px #5c524f;transition:background .2s,box-shadow .2s}
.ap-lamp span{color:#b3aaa6;font-weight:600}
.ap-lamp b{color:#ece6e1;font-weight:800}
.ap-lamp-engine.is-on i{background:var(--ap-ok);box-shadow:0 0 0 2px rgb(113 222 204/.18),0 0 10px rgb(113 222 204/.8)}
.ap-lamp-engine.is-on b{color:var(--ap-ok)}
.ap-lamp-pedal.is-on i{background:var(--ap-app);box-shadow:0 0 0 2px rgb(224 102 63/.2),0 0 10px rgb(224 102 63/.85)}
.ap-lamp-pedal.is-on b{color:#ff9d7c}
.ap-lamp-tanks i{background:#e9e4dc;box-shadow:0 0 0 2px rgb(233 228 220/.15)}
.ap-lamp-tanks.is-filling i{background:var(--ap-amber);box-shadow:0 0 0 2px rgb(243 183 93/.2),0 0 10px rgb(243 183 93/.8)}

/* the view out */
.ap-cab{fill:#1a1311}
.ap-hills{fill:#b8b2a4}
.ap-dock{fill:#a9a294}
.ap-dock-roof{fill:#6f685c}
.ap-dock-doors{fill:#8e877a}
.ap-dock-lines{fill:none;stroke:#7d766a;stroke-width:1}
.ap-pole{fill:none;stroke:#6f6a62;stroke-width:2.4;stroke-linecap:round}
.ap-trailer{fill:#e6e1d4;stroke:#aca591;stroke-width:1}
.ap-trailer-stripe{fill:#8a3a2f}
.ap-trailer-ribs{fill:none;stroke:#cbc4b2;stroke-width:1}
.ap-lot{fill:url(#ap-g-lot)}
.ap-lot-lines{fill:none;stroke:#f0ecdf;stroke-width:2;opacity:.7}
.ap-glare{fill:#ffffff;opacity:.08}
.ap-wiper{fill:none;stroke:#120e0d;stroke-width:3;stroke-linecap:round}

/* the cab and the dash */
.ap-post{fill:#6d2721}
.ap-seal{fill:none;stroke:#0c0908;stroke-width:5;stroke-linejoin:round}
.ap-header-lip{fill:none;stroke:#d17a6c;stroke-width:1;opacity:.55}
.ap-rivets{fill:#3e1411;stroke:#d08b7f;stroke-width:.7}
.ap-pad-edge{fill:none;stroke:#8b7b73;stroke-width:1;opacity:.6}
.ap-pad-seam{fill:none;stroke:#0a0807;stroke-width:1.2;stroke-dasharray:3 2;opacity:.7}
.ap-panel-shade{fill:#0b0605;opacity:.55}
.ap-panel-edge{fill:none;stroke:#ffffff;stroke-opacity:.55;stroke-width:1}
.ap-screws{fill:#c9cfce;stroke:#5a6466;stroke-width:.9}
.ap-screw-slots{fill:none;stroke:#4a5254;stroke-width:.9;stroke-linecap:round}

/* the two air gauges */
.ap-bezel-shade{fill:#100b0a;opacity:.55}
.ap-bezel-cup{fill:#0b0909}
.ap-bezel{fill:none;stroke:url(#ap-g-chrome);stroke-width:8}
.ap-bezel-inner{fill:none;stroke:#2c2a28;stroke-width:1.4}
.ap-dial{fill:var(--ap-dial-fill,url(#ap-g-dial))}
.ap-arc{fill:none;stroke:var(--ap-tick-color,#2a2522);stroke-width:1.1}
.ap-ticks{fill:none;stroke:var(--ap-tick-color,#1d1916);stroke-width:2.4;stroke-linecap:round}
.ap-ticks-minor{fill:none;stroke:var(--ap-tick-color,#3a3430);stroke-width:1.5;stroke-linecap:round}
.ap-ticks-fine{fill:none;stroke:var(--ap-tick-color,#6a615a);stroke-width:.9;stroke-linecap:round}
.ap-pin{fill:#5e5853}
.ap-gauge-name{fill:#2b2420;font-size:7px;font-weight:800;letter-spacing:.1em;text-anchor:middle;text-transform:uppercase}
.ap-gauge-app{--ap-dial-fill:#152c32;--ap-tick-color:#f5efdd}
.ap-gauge-app .ap-gauge-name{fill:var(--ap-tick-color)}
.ap-needle{transform-box:view-box;transform-origin:0 0}
.ap-needle-app{transform:rotate(32.4deg)}
.ap-needle-sup{transform:rotate(78.4deg)}
.ap-needle-app .ap-needle-blade{fill:#ffc07b}
.ap-needle-sup .ap-needle-blade{fill:#1d1a18}
.ap-needle-shadow{fill:#2a1b12;opacity:.22}
.ap-stage.is-moving .ap-needle-app{transition:transform .5s cubic-bezier(.3,1.45,.55,1)}
.ap-stage.is-moving .ap-needle-sup{transition:transform .7s cubic-bezier(.3,1.35,.55,1)}
.ap-stage.is-moving[data-tanks="filling"] .ap-needle-sup{transition:transform .12s linear}
.ap-shake{transform-box:view-box;transform-origin:0 0}
.ap-stage.is-moving .ap-shake{animation:ap-idle .18s linear infinite alternate}
.ap-stage.is-moving .ap-gauge-sup .ap-shake{animation-duration:.23s}
@keyframes ap-idle{from{transform:rotate(-.45deg)}to{transform:rotate(.45deg)}}
.ap-cap{fill:url(#ap-g-cap);stroke:#3b4446;stroke-width:.8}
.ap-cap-dot{fill:#2a3133}
.ap-glass{fill:#ffffff;opacity:.38}
.ap-small-bezel{fill:#080606;stroke:url(#ap-g-chrome);stroke-width:2.6}
.ap-small-face{fill:#1e1a19}
.ap-small-ticks{fill:none;stroke:#cfc8c2;stroke-width:1.2;stroke-linecap:round}
.ap-small-needle{fill:none;stroke:#f2b9a6;stroke-width:1.8;stroke-linecap:round;transform-box:view-box;transform-origin:0 0}
.ap-small-pin{fill:#9aa5a8}
.ap-oil{transform:rotate(10deg)}
.ap-temp{transform:rotate(-25deg)}
.ap-plate rect{fill:#1c1716;stroke:#6d6560;stroke-width:.8}
.ap-plate text{fill:#f1e9dc;font-size:8.2px;font-weight:800;letter-spacing:.06em;text-anchor:middle;text-transform:uppercase}

/* the steering wheel, the parking brake knob, the foot well */
.ap-wheel-rim{fill:none;stroke:#141110;stroke-width:15}
.ap-wheel-shine{fill:none;stroke:#7f716b;stroke-width:2;opacity:.7}
.ap-knob-shadow{fill:#000;opacity:.4}
.ap-knob-stem{fill:none;stroke:#8d999e;stroke-width:5;stroke-linecap:round}
.ap-knob-face{fill:url(#ap-g-knob);stroke:#6e5410;stroke-width:1.3;stroke-linejoin:round}
.ap-knob-shine{fill:none;stroke:#fff6c8;stroke-width:1.5;stroke-linecap:round;opacity:.7}
.ap-label{fill:#f4efe8;font-size:10px;font-weight:800;text-anchor:middle;paint-order:stroke;stroke:#140f0e;stroke-width:3.2px;stroke-linejoin:round}
.ap-label-well{font-size:9px;text-anchor:start}
.ap-well-rim{fill:none;stroke:#5a4c46;stroke-width:1}
.ap-floor{fill:#2b2523}
.ap-floor-ribs{fill:none;stroke:#3f3633;stroke-width:2;stroke-dasharray:4 3}
.ap-valve{stroke:#2e3537;stroke-width:.8}
.ap-valve-port{fill:none;stroke:#6b7477;stroke-width:3;stroke-linecap:round}
.ap-plunger{fill:#c3cacc;stroke:#4a5254;stroke-width:.7;transform-box:view-box}
.ap-stage[data-pedal="up"] .ap-plunger{transform:translateY(0)}
.ap-stage[data-pedal="light"] .ap-plunger{transform:translateY(7px)}
.ap-stage[data-pedal="firm"] .ap-plunger{transform:translateY(13px)}
.ap-hinge{fill:#5b6467}
.ap-hinge-pin{fill:#d9dfdf;stroke:#3b4345;stroke-width:.8}
.ap-pedal{transform-box:view-box;transform-origin:146px 304px}
.ap-stage[data-pedal="up"] .ap-pedal{transform:rotate(-26deg)}
.ap-stage[data-pedal="light"] .ap-pedal{transform:rotate(-14deg)}
.ap-stage[data-pedal="firm"] .ap-pedal{transform:rotate(-4deg)}
.ap-pedal-arm{stroke:#40494c;stroke-width:.8}
.ap-pedal-ridges{fill:none;stroke:#5c6567;stroke-width:1.2;stroke-linecap:round}
.ap-stage.is-moving .ap-pedal,.ap-stage.is-moving .ap-plunger{transition:transform .28s cubic-bezier(.3,1.3,.6,1)}

/* controls: one dark console, three pedal positions and a reset */
.ap-ask{color:var(--ink);font-size:20px;line-height:1.25}
.ap-ask[hidden],.ap-controls[hidden],.ap-tools [hidden]{display:none}
.ap-ask b{font-weight:800}
.ap-controls{display:grid;gap:10px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#27201e,var(--ap-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#ece6e1}
.ap-pedals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ap-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,#352c2a,#201a19);box-shadow:inset 0 1px 0 rgb(255 255 255/.1),0 3px 0 #0a0807,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}
.ap-btn:hover{background:linear-gradient(180deg,#3d3331,#251e1d)}
.ap-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #0a0807}
.ap-btn[aria-pressed="true"]{background:linear-gradient(180deg,#3b2620,#26181a);box-shadow:inset 0 0 0 2px var(--ap-app),0 1px 0 #0a0807;transform:translateY(2px)}
.ap-press-up{grid-column:1/-1;min-height:56px}
.ap-press-up[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #a59a95,0 1px 0 #0a0807}
.ap-name{display:grid;gap:3px;min-width:0}
.ap-name small{color:#b3aaa6;font-size:13px;font-weight:600}
.ap-icon{flex:none;width:44px;height:30px}
.ap-icon-floor{fill:#433a37}
.ap-icon-valve{fill:#8f9a9d}
.ap-icon-plate{fill:#d7dddd}
.ap-btn[aria-pressed="true"] .ap-icon-plate{fill:#ffb59c}
.ap-icon-pin{fill:#e9e4dc}
.ap-reset{justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px 8px 12px;border:0;border-radius:999px;background:#0d0a09;box-shadow:inset 0 0 0 1px rgb(255 255 255/.14);color:#e3dcd7;font-size:15px;font-weight:700;cursor:pointer}
.ap-reset:hover{box-shadow:inset 0 0 0 1px rgb(255 255 255/.32)}
.ap-reset-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ap-btn:focus-visible,.ap-reset:focus-visible,.ap-toggle:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.ap-status{display:block;min-height:7.3em;padding:12px 14px 12px 16px;border-left:5px solid #a59a95;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}
.ap-stage:not([data-pedal="up"])~.ap-panel .ap-status{border-left-color:var(--ap-app)}
.ap-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ap-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.ap-toggle::before{content:"";flex:none;width:14px;height:14px;background:currentColor;opacity:.75}
.ap-toggle-sound::before{clip-path:polygon(0 30%,35% 30%,75% 0,75% 100%,35% 70%,0 70%)}
.ap-toggle-motion::before{border-radius:50%;width:12px;height:12px;box-shadow:inset 0 0 0 3px currentColor;background:none}
.ap-toggle[aria-pressed="false"]{color:var(--muted)}
.ap-text{max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

.ap .sbp-course-grid{grid-template-areas:"intro offer";grid-template-rows:auto}
.ap .sbp-features{margin-top:24px}
.ap .sbp-price{margin-top:0}
@media (max-width:900px){
  .ap .sbp-course-grid{grid-template-areas:"intro" "offer"}
  .ap-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .ap-demo{padding-block:36px 44px}
  .ap-stage{margin-inline:-8px;padding:8px 6px 6px;border-radius:14px}
  .ap-svg{border-radius:8px}
  .ap-hud{gap:5px;padding:0 0 8px;flex-wrap:nowrap}
  .ap-lamp{padding:5px 7px 5px 6px;font-size:11.5px;gap:5px}
  .ap-lamp i{width:8px;height:8px}
  .ap-panel{gap:10px}
  .ap-ask{font-size:18px}
  .ap-controls{gap:8px;margin-inline:-8px;padding:12px 10px}
  .ap-pedals{gap:6px}
  .ap-btn{min-height:60px;padding:8px 9px;gap:8px;font-size:15px}
  .ap-press-up{min-height:52px}
  .ap-icon{width:38px;height:26px}
  .ap-name small{font-size:12px}
  .ap-status{min-height:8.8em;padding:10px 12px;font-size:15px}
  .ap-text{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .ap-page *{transition:none!important;animation:none!important}
}
