/* Converter-dolly explainer: the two-joint model. Hero, film, course offer and return banner reuse
   spring-brakes.css (.sbp-*); this file styles only .cd-*. The dolly is safety yellow; the towing joint is blue,
   the supporting joint orange, everywhere they appear (drawing, magnified views, buttons). */
.cd-page{--cd-dolly:#f2c230;--cd-tow:#4ea8ff;--cd-carry:#ff8a3d;--cd-steel:#5d6b71;--cd-steel-dark:#3a454a}
.cd-demo{padding-block:64px 72px;background:var(--paper)}
.cd-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}
.cd-head{grid-area:head}
.cd-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)}
.cd-svg{display:block;width:100%;height:auto}
.cd-panel{grid-area:panel;display:grid;gap:14px}

/* drawing */
.cd-front text{fill:#c9d2d2;font:700 11px/1 var(--font-sans,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase;text-anchor:start}
.cd-front path{fill:none;stroke:#c9d2d2;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cd-road{fill:#252e33}
.cd-edge{stroke:#5d6b70;stroke-width:1}
.cd-box{fill:url(#cd-box);stroke:#47555b;stroke-width:1}
.cd-ribs{fill:none;stroke:rgb(71 85 91/.3);stroke-width:1}
.cd-post{fill:#8d999e}
.cd-rail,.cd-susp{fill:var(--cd-steel-dark)}
.cd-legs rect{fill:#4b585e}
.cd-legs path{fill:none;stroke:#4b585e;stroke-width:2}
.cd-wheel circle{fill:#11171a;stroke:#2f383d;stroke-width:2}
.cd-wheel .cd-rim{fill:#56646a;stroke:#7f8d92;stroke-width:1}
.cd-wheel .cd-hub{fill:#b7c2c4;stroke:none}
.cd-mount{fill:#7d8a8f}
.cd-hook{fill:none;stroke:#aeb9bc;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.cd-latch{fill:none;stroke:#aeb9bc;stroke-width:1.6;stroke-linecap:round}
.cd-drawbar{fill:none;stroke:var(--cd-dolly);stroke-width:4;stroke-linecap:round}
.cd-frame,.cd-pedestal{fill:var(--cd-dolly)}
.cd-pedestal{filter:brightness(.8)}
.cd-fifth{fill:#4c585d;stroke:#2a3236;stroke-width:.8}
.cd-kingpin{fill:none;stroke:#d7dee0;stroke-width:.7;stroke-dasharray:1 .8}
.cd-ring{fill:var(--cd-dolly);stroke:#7a5b00;stroke-width:.6}
.cd-names text{fill:#d7dedd;font:700 12px/1 var(--font-sans,system-ui,sans-serif);text-anchor:middle}
.cd-names .cd-name-dolly{fill:var(--cd-dolly)}

/* job overlays */
.cd-fx{opacity:0;transition:opacity .3s}
.cd-stage.is-tow .cd-fx-tow,.cd-stage.is-carry .cd-fx-carry{opacity:1}
.cd-fx-tow .cd-fx-line{fill:none;stroke:var(--cd-tow);stroke-width:2;stroke-linecap:round;stroke-dasharray:4 5;animation:cd-flow .7s linear infinite}
.cd-fx-arrow{fill:none;stroke-width:3;stroke-linecap:round}
.cd-fx-tow .cd-fx-arrow{stroke:var(--cd-tow)}
.cd-fx-carry .cd-fx-arrow{stroke:var(--cd-carry)}
.cd-head-tow{fill:var(--cd-tow)}
.cd-head-carry{fill:var(--cd-carry)}
.cd-fx-plate{fill:none;stroke:var(--cd-carry);stroke-width:2}
.cd-fx-ground{fill:none;stroke:var(--cd-carry);stroke-width:3;stroke-linecap:round}
.cd-stage.is-carry .cd-fx-carry .cd-fx-arrow{stroke-dasharray:6 4;animation:cd-flow .8s linear infinite}
@keyframes cd-flow{to{stroke-dashoffset:-18}}

/* magnified joints */
.cd-lens{opacity:0;pointer-events:none;transition:opacity .25s}
.cd-lens > g{transform-box:fill-box;transform-origin:center}
.cd-stage.is-tow .cd-lens-tow,.cd-stage.is-carry .cd-lens-carry{opacity:1}
.cd-lens-bg{fill:#0e1418}
.cd-lens-rim{fill:none;stroke-width:2.5}
.cd-lens-tow .cd-lens-rim,.cd-lens-tow .cd-leader{stroke:var(--cd-tow)}
.cd-lens-carry .cd-lens-rim,.cd-lens-carry .cd-leader{stroke:var(--cd-carry)}
.cd-leader{fill:none;stroke-width:1.4;stroke-dasharray:3 2.5}
.cd-l-rail{fill:#4a565b}
.cd-l-mount{fill:#7d8a8f}
.cd-l-drawbar{fill:none;stroke:var(--cd-dolly);stroke-width:10;stroke-linecap:round}
.cd-l-hook{fill:none;stroke:#c3ccce;stroke-width:7.5;stroke-linecap:round;stroke-linejoin:round}
.cd-l-latch{fill:none;stroke:#c3ccce;stroke-width:4.5;stroke-linecap:round}
.cd-l-ring{fill:var(--cd-dolly);stroke:#7a5b00;stroke-width:1}
.cd-l-hole{fill:#0e1418}
.cd-l-box{fill:#cfd7da}
.cd-l-plate{fill:#3c474c}
.cd-l-tire{fill:#11171a;stroke:#2f383d;stroke-width:3}
.cd-l-frame,.cd-l-pedestal{fill:var(--cd-dolly)}
.cd-l-pedestal{filter:brightness(.8)}
.cd-l-fifth{fill:#4c585d;stroke:#2a3236;stroke-width:1}
.cd-l-cut{fill:#1d2428;stroke:#9aa7aa;stroke-width:1;stroke-dasharray:2.5 2}
.cd-l-pin{fill:#c9d2d6}
.cd-stage.is-carry .cd-l-pin{fill:var(--cd-carry)}
.cd-l-weight{fill:none;stroke:var(--cd-carry);stroke-width:4;stroke-linecap:round}
.cd-l-lead{fill:none;stroke:#e9e7e1;stroke-width:1.2}
.cd-pill rect{fill:#0c0f12;stroke-width:1.2}
.cd-lens-tow .cd-pill rect{stroke:var(--cd-tow)}
.cd-lens-carry .cd-pill rect{stroke:var(--cd-carry)}
.cd-pill text{fill:#fff;font:700 10.5px/1 var(--font-sans,system-ui,sans-serif);text-anchor:middle}

/* tap targets: shown only while the questions are open (script on) */
.cd-spot{display:none;cursor:pointer}
.cd-stage.is-js .cd-spot{display:inline}
.cd-spot circle{fill:rgb(255 255 255/.04);stroke:#e9e7e1;stroke-width:1.4;stroke-dasharray:3 3;transform-box:fill-box;transform-origin:center;animation:cd-pulse 1.6s ease-in-out infinite}
.cd-spot:hover circle{fill:rgb(255 255 255/.12)}
.cd-stage.is-tow .cd-spot-tow circle{stroke:var(--cd-tow);stroke-dasharray:none;animation:none}
.cd-stage.is-carry .cd-spot-carry circle{stroke:var(--cd-carry);stroke-dasharray:none;animation:none}
.cd-stage[data-step="done"] .cd-spot circle{animation:none}
@keyframes cd-pulse{50%{transform:scale(1.14);opacity:.65}}

/* controls */
.cd-ask{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;color:var(--ink);font-size:20px;line-height:1.25}
.cd-ask[hidden],.cd-picks[hidden],.cd-tools [hidden]{display:none}
.cd-ask b{font-weight:800}
.cd-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}
.cd-ask.is-done .cd-count{display:none}
.cd-picks{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.cd-pick{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 14px 10px 10px;border:2px solid transparent;border-left-width:6px;border-radius:10px;background:var(--sbp-deep);color:#fff;font-size:16px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer}
.cd-pick-tow{border-left-color:var(--cd-tow)}
.cd-pick-carry{border-left-color:var(--cd-carry)}
.cd-pick:hover{background:#000}
.cd-pick:focus-visible,.cd-replay:focus-visible,.cd-sound:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.cd-pick.is-found{border-color:var(--sbp-go)}
.cd-pick.is-found::after{content:"✓";margin-left:auto;color:var(--sbp-go);font-size:20px}
.cd-pick.is-wrong{animation:cd-nudge .36s}
@keyframes cd-nudge{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
.cd-icon{flex:none;width:32px;height:32px}
.cd-i-steel,.cd-i-hook,.cd-i-bar{fill:none;stroke-linecap:round;stroke-linejoin:round}
.cd-i-steel{stroke:#9aa8ab;stroke-width:4}
.cd-i-hook{stroke:#c3ccce;stroke-width:4}
.cd-i-bar{stroke:var(--cd-dolly);stroke-width:4}
.cd-i-ring{fill:var(--cd-dolly)}
.cd-i-box{fill:#cfd7da}
.cd-i-pin{fill:var(--cd-carry)}
.cd-i-plate{fill:#6b787d}
.cd-i-steel-fill{fill:var(--cd-dolly)}
.cd-status{display:block;min-height:4.6em;padding:12px 14px;border-left:5px solid var(--sbp-go);border-radius:0 8px 8px 0;background:var(--white,#fffffc);color:var(--ink);font-size:16px;font-weight:600;line-height:1.45}
.cd-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cd-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}
.cd-sound{min-height:44px}
.cd-text{max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

.cd .sbp-course-grid{grid-template-areas:"intro offer";grid-template-rows:auto}
.cd .sbp-features{margin-top:24px}
.cd .sbp-price{margin-top:0}
@media (max-width:900px){
  .cd .sbp-course-grid{grid-template-areas:"intro" "offer"}
  .cd-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .cd-demo{padding-block:36px 44px}
  .cd-stage{margin-inline:-8px;padding:8px 4px 6px}
  .cd-panel{gap:10px}
  .cd-ask{font-size:18px}
  .cd-picks{gap:8px}
  .cd-pick{min-height:60px;padding:8px 10px 8px 8px;gap:8px;font-size:15px}
  .cd-icon{width:28px;height:28px}
  .cd-status{min-height:5.9em;padding:10px 12px;font-size:15px}
  .cd-text{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .cd-page *{transition:none!important;animation:none!important}
}
