/* Loom-alternative explainer (loom-alternative page): a long recording runs past a 5 minute marker.
   Without JS (or with reduced motion) the figure shows its final state: everything visible at once. */
.lo { margin: 24px 0 8px; }
.lo-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; }
.lo-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(14px, 3vw, 30px); align-items: center; }
.lo-screen { position: relative; width: 100%; aspect-ratio: 16 / 10; border: 3px solid var(--navy); border-radius: 12px; background: #DCEBFA; overflow: hidden; }
.lo-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.lo-time { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 13px/1.2 ui-monospace, "SF Mono", Menlo, monospace; }
.lo-rec { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: lo-blink 1.2s steps(2, jump-none) infinite; }
.lo-cam { position: absolute; left: 10px; bottom: 10px; z-index: 2; width: clamp(48px, 7vw, 66px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--navy), 0 4px 10px rgba(11,36,64,.3); background: url(/assets/img/cam-face.webp) 0 0 / 600% 100% no-repeat; }
.lo-side { display: grid; gap: 10px; min-width: 0; align-content: center; }
.lo-x { transition: opacity .4s, transform .4s; }

/* Share link pill */
.lo-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; background: var(--bg); border: 3px solid var(--navy); border-radius: 999px; box-shadow: 0 4px 0 var(--navy); color: var(--navy); }
.lo-link svg { flex: none; width: 17px; height: 17px; }
.lo-url { min-width: 0; font: 600 clamp(12px, 1.5vw, 14px)/1.3 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Privacy options */
.lo-priv { display: grid; gap: 8px; }
.lo-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lo-opt { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 7px; border: 2.5px solid var(--navy); border-radius: 12px; background: #fff; color: var(--navy); font: 700 13px/1.2 var(--display); transition: background-color .3s; }
.lo-opt i { position: relative; width: 24px; height: 14px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; transition: background-color .3s; }
.lo-opt i::after { content: ""; position: absolute; left: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); transition: transform .3s; }
.lo-opt.is-hl { background: var(--sun); }
.lo-opt.is-hl i { background: var(--navy); }
.lo-opt.is-hl i::after { background: #fff; transform: translateX(10px); }
.lo-e2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.lo-key { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; background: var(--sun); border: 2.5px solid var(--navy); box-shadow: 0 3px 0 var(--navy); font: 700 13px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: var(--navy); white-space: nowrap; }
.lo-key svg { width: 14px; height: 14px; }

/* Stickers */
.lo-stk { display: flex; flex-wrap: wrap; gap: 8px; }
.lo-stk b { display: inline-block; padding: 5px 11px; border-radius: 14px; border: 3px solid var(--navy); background: #fff; box-shadow: 0 4px 0 var(--navy); font: 800 14px/1.2 var(--display); color: var(--navy); }
.lo-stk b:nth-child(1) { background: var(--sun); transform: rotate(-2deg); }
.lo-stk b:nth-child(3) { transform: rotate(2deg); }

/* Timeline */
.lo-tl { position: relative; padding-top: 34px; }
.lo-bar { position: relative; height: 14px; border: 3px solid var(--navy); border-radius: 999px; background: var(--soft); overflow: hidden; }
.lo-fill { position: absolute; inset: 0; background: var(--rec); transform-origin: left center; transform: scaleX(.633); }
.lo-mark { position: absolute; left: 25%; top: 24px; bottom: -6px; width: 0; border-left: 3px solid var(--navy); z-index: 1; }
.lo-mark span { position: absolute; left: 6px; top: -26px; white-space: nowrap; font: 700 12.5px/1.2 var(--display); color: var(--navy); }
.lo-ok { position: absolute; right: 2px; top: 6px; font: 700 13px/1.2 var(--display); color: var(--navy); text-align: right; transition: opacity .4s, transform .4s; }
.lo-ok em { font-style: normal; background: var(--sun); border-radius: 6px; padding: 1px 6px; box-shadow: 0 0 0 2px var(--navy); }

/* Caption + controls */
.lo-foot { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.lo-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); }
.lo-cap { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.35; color: var(--body); }
.lo-cap b { color: var(--navy); }
.lo-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); }
.lo-btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--navy); }
.lo-btn svg { width: 12px; height: 12px; }
.lo-steps { margin: 0; padding: 0 4px; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--body); counter-reset: lo; }
.lo-steps li { display: flex; gap: 8px; }
.lo-steps li::before { counter-increment: lo; content: counter(lo); 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. */
.lo.is-js .lo-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lo.is-js .lo-btn { display: inline-flex; }
.lo:not(.is-js) .lo-foot { display: none; }
.lo.is-js .lo-x.is-off { opacity: 0; transform: translateY(8px) scale(.96); }
@keyframes lo-blink { 50% { opacity: .25; } }

@media (max-width: 640px) {
  .lo-card { padding: 14px 12px 12px; border-radius: 24px; }
  .lo-stage { grid-template-columns: 1fr; }
  .lo-screen { max-width: 280px; margin: 0 auto; }
  .lo-cap { font-size: 14px; }
  .lo-mark span { font-size: 11.5px; white-space: normal; width: 150px; top: -34px; }
  .lo-tl { padding-top: 40px; }
  .lo-mark { top: 30px; }
  .lo-ok { top: 24px; right: 0;   /* Phone: the three result rows share one slot so the card has no empty reserved space. */
  .lo-side { display: grid; }
  .lo-side > .lo-x { grid-area: 1 / 1; align-self: center; }
  .lo-side:has(.lo-priv:not(.is-off)) .lo-link { visibility: hidden; }
  .lo-side:has(.lo-stk:not(.is-off)) .lo-priv { visibility: hidden; }
}
  /* Phone: the three result rows share one slot so the card has no empty reserved space. */
  .lo-side { display: grid; }
  .lo-side > .lo-x { grid-area: 1 / 1; align-self: center; }
  .lo-side:has(.lo-priv:not(.is-off)) .lo-link { visibility: hidden; }
  .lo-side:has(.lo-stk:not(.is-off)) .lo-priv { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .lo-rec { animation: none; } }
/* Break out of the narrow text column on wide screens. */
@media (min-width: 900px) {
  .lo { margin-left: calc(50% - min(440px, 50vw - 24px)); margin-right: calc(50% - min(440px, 50vw - 24px)); }
}
