/* OBS vs Screencap lanes animation (obs-alternative page).
   Without JS (or with reduced motion) the figure shows its final state. */
.ob { margin: 24px 0 8px; }
.ob-card { position: relative; background: var(--card); border-radius: 30px; padding: 18px 18px 14px; box-shadow: 0 6px 0 rgba(11,36,64,.08), 0 26px 60px rgba(11,36,64,.11); display: grid; gap: 12px; }
.ob-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 28px); align-items: stretch; }
.ob-lane { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ob-label { font: 700 clamp(13px, 1.7vw, 15px)/1.2 var(--display); color: var(--navy); text-align: center; }
.ob-body { flex: 1; border: 3px solid var(--navy); border-radius: 16px; background: var(--bg); box-shadow: 0 4px 0 var(--navy); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 226px; }
.ob-note { margin: 0; font-size: 12.5px; line-height: 1.3; color: var(--body); text-align: center; }
.ob-tag { align-self: center; padding: 5px 12px; border-radius: 999px; background: var(--sun); border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy); font: 800 clamp(12px, 1.6vw, 14px)/1.2 var(--display); color: var(--navy); text-align: center; transition: opacity .35s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.ob-tag-r { background: #fff; }

/* Left lane: generic scene editor */
.ob-canvas { position: relative; height: 96px; flex: none; border: 2.5px solid var(--navy); border-radius: 10px; background: #DCEBFA; overflow: hidden; }
.ob-layer { position: absolute; border: 2px solid var(--navy); border-radius: 6px; background: #fff; transition: opacity .3s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.ob-l-display { left: 6%; top: 12%; width: 54%; height: 76%; background: linear-gradient(135deg, #fff 0 60%, #BFD6EE 60%); }
.ob-l-webcam { right: 8%; bottom: 10%; width: 30px; height: 30px; border-radius: 50%; background: #FFD9B8; }
.ob-l-image { right: 10%; top: 10%; width: 34px; height: 26px; background: linear-gradient(160deg, #EAF3FC 55%, #45627F 55%); }
.ob-l-text { left: 10%; bottom: 18%; width: 40%; height: 14px; border: 0; background: repeating-linear-gradient(90deg, var(--navy) 0 14px, transparent 14px 18px); height: 6px; }
.ob-l-browser { left: 40%; top: 6%; width: 30%; height: 38%; border-top-width: 6px; background: #fff; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ob-chip { padding: 3px 9px; border: 2.5px solid var(--navy); border-radius: 999px; background: #fff; box-shadow: 0 2px 0 var(--navy); font: 700 12px/1.2 var(--display); color: var(--navy); transition: opacity .3s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.ob-sliders { display: grid; gap: 8px; margin-top: auto; }
.ob-sl { display: flex; align-items: center; gap: 8px; font: 700 11.5px/1 var(--display); color: var(--navy); }
.ob-sl b { width: 52px; font-weight: 700; }
.ob-track { position: relative; flex: 1; height: 8px; border-radius: 6px; background: #DCEBFA; border: 2px solid var(--navy); }
.ob-knob { position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--navy); transition: transform .6s ease; }

/* Right lane: dashboard + record button + link */
.ob-screen { position: relative; flex: none; height: 118px; border: 3px solid var(--navy); border-radius: 10px; overflow: hidden; background: #DCEBFA; }
.ob-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ob-recdot { position: absolute; left: 8px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 2px #fff; transition: opacity .25s; }
.ob-ctl { display: flex; align-items: center; gap: 12px; }
.ob-rec { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--rec); border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--navy); display: grid; place-items: center; transition: transform .15s, box-shadow .15s; }
.ob-rec i { width: 14px; height: 14px; border-radius: 50%; background: #fff; display: block; }
.ob-rec.is-pressed { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.ob-time { font: 700 16px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--navy); min-width: 40px; }
.ob-stop { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy); display: grid; place-items: center; transition: transform .15s, box-shadow .15s, opacity .25s; }
.ob-stop i { width: 12px; height: 12px; border-radius: 3px; background: var(--navy); display: block; }
.ob-stop.is-pressed { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }
.ob-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px; margin-top: auto; background: #fff; border: 3px solid var(--navy); border-radius: 999px; box-shadow: 0 3px 0 var(--navy); color: var(--navy); transition: opacity .4s, transform .4s; }
.ob-link svg { flex: none; width: 16px; height: 16px; }
.ob-url { flex: 1; min-width: 0; font: 600 12.5px/1.3 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-copied { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--sun); border: 2px solid var(--navy); font: 800 11.5px/1.2 var(--display); transition: opacity .3s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.ob-copied svg { width: 11px; height: 11px; }

/* Caption + controls */
.ob-foot { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.ob-step { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--sun); border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy); font: 800 14px/1 var(--display); color: var(--navy); }
.ob-cap { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.35; color: var(--body); }
.ob-cap b { color: var(--navy); }
.ob-btn { flex: none; display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; border: 2.5px solid var(--navy); background: #fff; color: var(--navy); font: 700 13px/1 var(--display); cursor: pointer; box-shadow: 0 3px 0 var(--navy); }
.ob-btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--navy); }
.ob-btn svg { width: 12px; height: 12px; }
.ob-steps { margin: 0; padding: 0 4px; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--body); counter-reset: ob; }
.ob-steps li { display: flex; gap: 8px; }
.ob-steps li::before { counter-increment: ob; content: counter(ob); flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--navy); font: 800 12px/1 var(--display); color: var(--navy); }

/* JS-driven states. Default (no JS): final state, steps list shown. */
.ob.is-js .ob-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ob.is-js .ob-btn { display: inline-flex; }
.ob:not(.is-js) .ob-foot { display: none; }
.ob.is-js .ob-chip.is-off, .ob.is-js .ob-layer.is-off { opacity: 0; transform: scale(.5); }
.ob.is-js .ob-tag.is-off, .ob.is-js .ob-copied.is-off { opacity: 0; transform: scale(.6); }
.ob.is-js .ob-link.is-off { opacity: .25; transform: translateY(6px); }
.ob.is-js .ob-recdot.is-off { opacity: 0; }
.ob.is-js .ob-recdot:not(.is-off) { animation: ob-blink 1.1s steps(2, jump-none) infinite; }
@keyframes ob-blink { 50% { opacity: .25; } }
.ob:not(.is-js) .ob-recdot { display: none; }

@media (max-width: 640px) {
  .ob-stage { grid-template-columns: minmax(0, 1fr); }
  .ob-card { padding: 14px 12px 12px; border-radius: 24px; }
  .ob-body { min-height: 0; }
  .ob-cap { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ob .ob-recdot { animation: none !important; }
  .ob * { transition: none !important; }
}
@media (min-width: 900px) {
  .ob { margin-left: calc(50% - min(440px, 50vw - 24px)); margin-right: calc(50% - min(440px, 50vw - 24px)); }
}
