/* Webcam explainer animation (screen-recorder-with-webcam page).
   Without JS (or with reduced motion) the figure shows its final state: screen plus camera bubble. */
.wc { margin: 24px 0 8px; }
.wc-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: 14px; }
.wc-stage { display: grid; place-items: center; padding: 12px; border-radius: 20px; background: var(--bg); }
.wc-screen { position: relative; width: min(100%, 440px); aspect-ratio: 16 / 10; border: 3px solid var(--navy); border-radius: 12px; background: #DCEBFA; overflow: hidden; box-shadow: 0 4px 0 var(--navy); }
.wc-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: opacity .45s ease; }
.wc-rec { position: absolute; z-index: 3; left: 8px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 2px #fff; animation: wc-blink 1.2s steps(2, jump-none) infinite; }
@keyframes wc-blink { 50% { opacity: .25; } }

/* Camera bubble (face sprite: six 400px frames) */
.wc-face { background: url(/assets/img/cam-face.webp) 0 50% / 600% auto no-repeat; background-color: #DCEBFA; }
.wc-bub { position: absolute; z-index: 2; right: 5%; bottom: 7%; width: 24%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--navy), 0 8px 18px rgba(11,36,64,.25); background-size: 600% 100%; transform-origin: 50% 50%; transition: transform .75s cubic-bezier(.3,1.25,.5,1), opacity .3s; will-change: transform; }
.wc-solo { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .5s ease; }

/* Picked-camera chip: generic camera icon and a green dot, no labels */
.wc-pill { position: absolute; z-index: 3; top: 8px; left: 50%; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 2.5px solid var(--navy); box-shadow: 0 3px 0 var(--navy); color: var(--navy); opacity: 0; transform: translate(-50%, -6px); transition: opacity .3s, transform .3s; }
.wc-pill svg { width: 16px; height: 16px; }
.wc-pill i { width: 8px; height: 8px; border-radius: 50%; background: #2DBE6C; }
.wc-pill.is-on { opacity: 1; transform: translate(-50%, 0); }

/* State classes (JS only) */
.wc.is-solo .wc-pic { opacity: 0; }
.wc.is-solo .wc-solo { opacity: 1; }
.wc.is-solo .wc-bub { opacity: 0; }
.wc-bub.is-off { opacity: 0; }

/* Caption + controls */
.wc-foot { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.wc-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); }
.wc-cap { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.35; color: var(--body); transition: opacity .25s; }
.wc-cap b { color: var(--navy); }
.wc-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); }
.wc-btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--navy); }
.wc-btn svg { width: 12px; height: 12px; }
.wc-steps { margin: 0; padding: 0 4px; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--body); counter-reset: wc; }
.wc-steps li { display: flex; gap: 8px; }
.wc-steps li::before { counter-increment: wc; content: counter(wc); 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. Default (no JS): final state, steps list shown. */
.wc.is-js .wc-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wc.is-js .wc-btn { display: inline-flex; }
.wc:not(.is-js) .wc-foot { display: none; }
.wc.is-js .wc-bub { right: auto; bottom: auto; left: 0; top: 0; }

@media (max-width: 560px) {
  .wc-card { padding: 14px 12px 12px; border-radius: 24px; }
  .wc-stage { padding: 8px; }
  .wc-cap { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-rec { animation: none; }
  .wc-bub, .wc-pic, .wc-solo, .wc-pill { transition: none; }
}
/* Break out of the narrow text column on wide screens. */
@media (min-width: 900px) {
  .wc { margin-left: calc(50% - min(440px, 50vw - 24px)); margin-right: calc(50% - min(440px, 50vw - 24px)); }
}
