/* css/clips-beta.css: the Clips beta page (js/clips/clips-beta.js, ROUND-2.md item 4).
 *
 * The page is built from the Spaces showcase's own classes (css/product-home.css, .phm-*), so it
 * reads as the same family: the "in beta" intro, the film frame, the big line, the join block,
 * the section heads. This sheet holds ONLY what that pattern has no rule for, every rule under
 * .clb:
 *   · the PORTRAIT example. On a wide screen it stands in the Spaces film frame (16:9) on a soft,
 *     blurred copy of its own poster, the way a short plays in a wide player; on a phone the frame
 *     is the Clip itself, so it is as big as the phone allows. The waiting line keeps the 16:9 frame.
 *   · the six steps of the loop, as cards in the showcase's card style.
 * App tokens only (css/design-tokens.css), so light and dark both follow the app. The black under
 * the video is the video's own letterbox, never a UI colour.
 */

/* ── The film ─────────────────────────────────────────────────────────── */
.clb .clb-stage { background: #0f1020; }
.clb .clb-backdrop {
  position: absolute; inset: -32px; background: center / cover no-repeat;
  filter: blur(28px) saturate(1.15); opacity: .6; transform: scale(1.04); pointer-events: none;
}
.clb .clb-vid {
  position: relative; height: 100%; aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.clb .clb-vid .video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; font: inherit;
  background: #000 center / cover no-repeat; display: flex; align-items: center; justify-content: center;
}
.clb .clb-vid .video-facade:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.clb .clb-vid .video-player { position: absolute; inset: 0; }
.clb .clb-stage-wait { background: var(--surface-2); }

/* On a phone the frame is the Clip: portrait, centred, as wide as a hand-held video reads. */
@media (max-width: 699px) {
  .clb .clb-stage:not(.clb-stage-wait) {
    aspect-ratio: 9 / 16; max-width: 300px; background: #000;
  }
  .clb .clb-backdrop { display: none; }
  .clb .clb-vid { width: 100%; height: 100%; box-shadow: none; }
}

/* ── The join button is a real link ───────────────────────────────────── */
.clb a.clb-join-btn, .clb a.clb-join-btn:hover { text-decoration: none; }

/* ── How it works: the loop in six cards ──────────────────────────────── */
.clb .clb-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.clb .clb-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.clb .clb-n {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: 14px; margin-bottom: 4px;
}
.clb .clb-step-t { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 17px; font-weight: 700; line-height: 1.25; }
.clb .clb-step-d { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.clb .clb-loop { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.clb .clb-loop-i { color: var(--accent); display: inline-flex; flex: none; }

@media (min-width: 700px) {
  .clb .clb-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clb .clb-step { padding: 18px 20px; }
  .clb .clb-step-t { font-size: 18px; }
}
