/* Ring Concierge deck — the FF3 home, its Flows panel and the Jewelry Builder
   (assets/design/home.js). FF3's own compiled stylesheet draws the page; this
   adds only the replay's states: what is shown, what fades, the stacks' poses,
   and the hover and press the demo cursor cannot cause by itself. Durations
   come from home.js, as custom properties on #rc-home. */

/* out of the page, taking no room */
#rc-home .rc-off { display: none !important; }

/* fades in place (the product only ever fades) */
#rc-home .rc-fade { opacity: 0; transition: opacity var(--rc-row-fade, 240ms) ease-out; }
#rc-home .rc-fade.is-in { opacity: 1; }
#rc-home [data-rc="view"].rc-fade { transition-duration: var(--rc-view-fade, 250ms); }

/* a reference landing in the upload bar */
#rc-home .rc-pop {
  opacity: 0;
  transform: scale(.6);
  transition: opacity var(--rc-pop, 320ms) ease-out, transform var(--rc-pop, 320ms) cubic-bezier(.34, 1.45, .64, 1);
}
#rc-home .rc-pop.is-in { opacity: 1; transform: none; }

/* the Flows panel and the builder's window */
#rc-home .rc-panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--rc-panel-fade, 200ms) ease-out, visibility 0s linear var(--rc-panel-fade, 200ms);
}
#rc-home .rc-panel.is-open { opacity: 1; visibility: visible; transition: opacity var(--rc-panel-fade, 200ms) ease-out, visibility 0s; }
#rc-home .rc-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--rc-modal-fade, 260ms) ease-out, visibility 0s linear var(--rc-modal-fade, 260ms);
}
#rc-home .rc-modal.is-open { opacity: 1; visibility: visible; transition: opacity var(--rc-modal-fade, 260ms) ease-out, visibility 0s; }
/* opening, the window's card follows its dimmed, blurred backdrop; closing, it goes a little ahead of it */
#rc-home .rc-modal > div { opacity: 0; transition: opacity var(--rc-dialog-out, 180ms) ease-out; }
#rc-home .rc-modal.is-open > div {
  opacity: 1;
  transition: opacity var(--rc-dialog-fade, 260ms) ease-out var(--rc-dialog-trail, 170ms);
}

/* the home's tucked stacks (design-set-fan.tsx): each card's pose comes from
   home.js; under the pointer the side cards slide out a touch (HOVER_SPREAD .3) */
#rc-home .rc-card {
  transform: perspective(var(--rc-p)) translateX(calc(var(--rc-x) * var(--rc-spread, 1))) scale(var(--rc-s)) rotateY(var(--rc-ry));
  transition: transform .42s cubic-bezier(.34, 1.3, .64, 1);
}
#rc-home .rc-stack:hover { --rc-spread: 1.3; }

/* layers in one cell, the tallest setting the height (the feedback step's lists) */
#rc-home .rc-layered { display: grid; }
#rc-home .rc-layered > * { grid-area: 1 / 1; }
/* a picture's own list shows at once, as the app swaps it; its lines then fade in */
#rc-home .rc-fb-list { visibility: hidden; }
#rc-home .rc-fb-list.is-in { visibility: visible; }

/* the review, compressed to show whole: the references and the notes three to a
   row, each card's keep over its avoid; the four styles on one row */
#rc-home .rc-rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
#rc-home .rc-rv-styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
#rc-home .rc-rv-sides { display: flex; flex-direction: column; gap: .25rem; }
#rc-home .rc-rv-list { margin-top: .125rem; }
#rc-home .rc-rv-list > li { line-height: 15px; }
#rc-home .rc-rv-list > li + li { margin-top: 1px; }

/* Sparkles turning while the builder reads the pictures (framer: 360° in 2s, linear) */
#rc-home .rc-spin-slow { display: inline-flex; animation: rc-home-spin 2s linear infinite; }
@keyframes rc-home-spin { to { transform: rotate(360deg); } }

/* the hover and press the demo cursor stands in for */
#rc-home .rc-flows-btn.rc-hover {
  border-color: var(--color-primary);
  background-color: color-mix(in oklab, var(--color-primary) 5%, transparent);
}
#rc-home .rc-flow-card.rc-hover {
  translate: 0 -0.125rem;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 30px -16px rgba(14, 86, 168, .5);
}
#rc-home .rc-flow-card.rc-press { translate: 0 0; scale: .98; }
#rc-home .rc-drop.rc-hover:not(.bg-blue-50) {
  border-color: var(--color-primary);
  background-color: color-mix(in oklab, var(--color-blue-50) 50%, transparent);
}
#rc-home .rc-type.rc-hover:not(.is-selected) {
  border-color: color-mix(in oklab, var(--color-primary) 40%, transparent);
  background-color: color-mix(in oklab, var(--color-blue-50) 50%, transparent);
}
#rc-home .rc-btn-primary.rc-hover:not(:disabled) { background-color: var(--color-primary-dark); }

/* reduced motion: the replay already lands each step at once (shell.js); the hover spread and the spinner keep still too */
@media (prefers-reduced-motion: reduce) {
  #rc-home .rc-card { transition: none; }
  #rc-home .rc-spin-slow { animation: none; }
}
