/* ============================================================
   Appendix — Sayso UI, rebuilt in HTML/CSS from Figma
   (file "Qorley Shot Q4 - 2026", frame 499:7209).

   Scaling: every Figma pixel is written as calc(N * var(--u)).
   --u is 1px when the appendix is 1344px wide (Figma width)
   and shrinks proportionally on narrower desktops.
   Below 720px the bento switches to a reflowed mobile layout
   (single column, real px sizes, no fixed heights).
   ============================================================ */

.ui-app{
  --w: min(852px, calc(100vw - 48px)); /* same width as the page's .wide/.wider blocks (900 - 2×24) */
  --u: calc(var(--w) / 1344);
  --ui-ink:#1f1f1f; --ui-ink-2:#555; --ui-ink-3:#929292; --ui-title:#1c1c1e;
  --ui-accent:#5856d6; --ui-inverse:#252525; --ui-sunken:#ededed;
  --ui-divider:rgba(0,0,0,.05);
  --ui-elev-1:0 6px 16px -4px rgba(0,0,0,.03), 0 1px 2px 0 rgba(0,0,0,.04), 0 0 0 .3px rgba(0,0,0,.03);
  width:var(--w); margin:30px auto 0;
  display:flex; flex-direction:column; gap:calc(100 * var(--u));
  font-family:var(--font); letter-spacing:normal; line-height:normal; color:var(--ui-ink);
}

/* One Figma group: label, hero, bento rows */
.ui-grp{display:flex; flex-direction:column; gap:calc(24 * var(--u))}

/* Group label: fading lines either side of a white pill */
.ui-grp-head{display:flex; align-items:center; justify-content:center; gap:4px; height:calc(35 * var(--u)); min-height:30px}
.ui-grp-head .ln{width:100px; height:1px; background:linear-gradient(90deg, rgba(0,0,0,.2), rgba(102,102,102,0))}
.ui-grp-head .ln:first-child{transform:scaleX(-1)}
.ui-grp-head .pill{
  background:#fff; border-radius:99px; padding:8px 15px;
  font-size:16px; font-weight:510; letter-spacing:-.32px; color:var(--ui-title); white-space:nowrap;
  filter:drop-shadow(0 6px 8px rgba(0,0,0,.03)) drop-shadow(0 1px 1px rgba(0,0,0,.04));
}

/* Hero: 1344 x 700 */
.ui-hero{position:relative; width:100%; height:calc(700 * var(--u)); border-radius:calc(24 * var(--u)); overflow:hidden}

/* Bento row: 500 tall, 24 gap; column split given inline as --cols (Figma widths in fr) */
.ui-row{display:grid; grid-template-columns:var(--cols, 1fr 1fr); gap:calc(24 * var(--u)); height:calc(500 * var(--u))}
.ui-card{position:relative; min-width:0; height:100%; border-radius:calc(24 * var(--u)); overflow:hidden; container-type:inline-size}

/* ---------- Mobile: only the bento grid reflows ----------
   Cards stack into one column. Inside each card the Figma composition
   is kept as-is and simply scaled: --u is recomputed per card from its
   Figma design width (--dw), and the card keeps its Figma aspect ratio. */
.ui-row[style*="740fr 580fr"] > .ui-card:nth-child(1),
.ui-row[style*="580fr 740fr"] > .ui-card:nth-child(2){--dw:740}
.ui-row[style*="740fr 580fr"] > .ui-card:nth-child(2),
.ui-row[style*="580fr 740fr"] > .ui-card:nth-child(1){--dw:580}
.ui-row[style*="660fr 660fr"] > .ui-card{--dw:660}
@media (max-width:719px){
  .ui-app{ --w: calc(100vw - 32px); gap:56px }
  .ui-grp{gap:14px}
  .ui-grp-head .ln{width:40px}
  .ui-grp-head .pill{font-size:14px; padding:7px 13px}
  .ui-row{grid-template-columns:1fr !important; height:auto; gap:14px}
  .ui-card{--u: calc(var(--w) / var(--dw, 740)); height:calc(500 * var(--u))}
}
.ui-try{display:none !important}

/* Shared entrance primitive.
   Each loop replays the card's content building itself: the card and its
   window stay put, and the components inside appear one by one — navbar,
   step indicator, headline, content group, actions. Items inside one group
   always appear together, so nothing reads as uneven.
   The motion uses the independent `translate` property, never `transform`,
   so it composes with any layout transform the element already carries. */
.ui-seq{
  transition:opacity .55s cubic-bezier(.22,1,.36,1),
             translate .7s cubic-bezier(.22,1,.36,1);
  will-change:opacity, translate;
}
.ui-seq.is-out{opacity:0; translate:0 calc(10 * var(--u, 1px))}
@media (prefers-reduced-motion: reduce){
  .ui-seq{transition:none}
  .ui-seq.is-out{opacity:1; translate:none}
}
