/* The public signature stays on paper until the real session and workspace are ready. */
#app-startup {
  position:fixed; inset:0; z-index:5000; isolation:isolate; overflow:auto; box-sizing:border-box;
  display:grid; place-items:center; background:#fbf9f6; color:#2c2325; text-align:center;
  padding:max(1.5rem,env(safe-area-inset-top)) max(1.5rem,env(safe-area-inset-right))
    max(1.5rem,env(safe-area-inset-bottom)) max(1.5rem,env(safe-area-inset-left));
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
#app-startup[data-branded] {
  background:radial-gradient(ellipse at 112% -12%,#e4b5b68f,transparent 46%),
    radial-gradient(ellipse at -20% 101%,#e9c5b27a,transparent 53%),#fbf7f1;
}
.startup-content { width:min(100%,25rem); display:grid; justify-items:center; align-content:center; gap:.9rem; }
.startup-signature {
  position:relative; display:grid; align-items:center; justify-items:center; width:clamp(11.75rem,48vw,16rem);
  aspect-ratio:468/293; margin-bottom:clamp(.85rem,2.1vh,1.5rem);
}
.startup-wordmark { display:none; width:100%; height:auto; }
.startup-neutral { color:#3e2829; font:560 1.35rem/1.25 system-ui,sans-serif; }
#app-startup[data-branded] .startup-wordmark { display:block; }
#app-startup[data-branded] .startup-neutral { display:none; }
.startup-rule { width:3.25rem; height:2px; overflow:hidden; background:#e5dbd9; }
.startup-rule::after { content:""; display:block; width:48%; height:100%; background:#8e0a12; }
#app-startup p { margin:0; color:#63585a; font-size:.86rem; line-height:1.55; }
#app-startup a { display:inline-flex; align-items:center; min-height:44px; box-sizing:border-box; padding:.55rem 1.15rem; border-radius:2rem; background:#8e0a12; color:#fff; font-size:.9rem; font-weight:650; text-decoration:none; }
#app-startup a[hidden],#app-startup[data-failed] .startup-rule { display:none; }
#app-startup a:focus-visible { outline:2px solid #8e0a12; outline-offset:4px; }
#app-startup[data-leaving] { pointer-events:none; }
.startup-fallback { display:grid; justify-items:center; gap:.6rem; animation:js-start-recovery 1ms step-end 15s backwards; }
@keyframes js-start-recovery { from {visibility:hidden} to {visibility:visible} }
/* A still pool of reflected light keeps the signature legible on every frame. */
#app-startup::before {
  content:""; position:absolute; z-index:-1; inset:0; pointer-events:none;
  background:linear-gradient(116deg,transparent 45%,#fff9ed96 52%,transparent 62%),
    radial-gradient(ellipse 62% 75% at 100% 8%,#e8c5c077,transparent 78%),
    radial-gradient(ellipse 75% 45% at 6% 99%,#ead8ca85,transparent 76%);
}
.startup-glint { display:none; }
@media(prefers-reduced-motion:no-preference) {
  #app-startup[data-opening] .startup-signature { animation:js-start-mark 630ms cubic-bezier(.2,.8,.26,1) both; }
  #app-startup[data-opening] .startup-rule::after { animation:js-start-light 870ms cubic-bezier(.25,.7,.36,1) both; }
  #app-startup[data-leaving] { animation:js-start-leave 115ms ease-out both; }
  @supports ((mask-image:url("")) or (-webkit-mask-image:url(""))) {
    #app-startup[data-opening][data-branded] .startup-glint {
      display:block; position:absolute; inset:0; overflow:hidden; pointer-events:none;
      -webkit-mask:url("/brand/just-social/start-wordmark-red.png") center/contain no-repeat;
      mask:url("/brand/just-social/start-wordmark-red.png") center/contain no-repeat;
    }
    .startup-glint::after {
      content:""; position:absolute; inset:-30% -20%;
      background:linear-gradient(108deg,transparent 24%,#c86369 41%,#f4c3b8 48%,#d88887 53%,transparent 69%);
      animation:js-start-glint 940ms cubic-bezier(.34,.06,.28,.97) both;
    }
  }
}
@keyframes js-start-mark { from {opacity:.46; transform:translateY(4px) scale(.986)} to {opacity:1; transform:none} }
@keyframes js-start-glint { from {transform:translateX(-73%)} to {transform:translateX(76%)} }
@keyframes js-start-light { from {transform:translateX(-100%)} to {transform:translateX(110%)} }
@keyframes js-start-leave { to {opacity:0} }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active) {
  #app-startup::before,#app-startup[data-opening][data-branded] .startup-glint { display:none; }
}
@media(forced-colors:active) {
  #app-startup { background:Canvas; color:CanvasText; }
  #app-startup[data-branded] .startup-wordmark { display:none; }
  #app-startup[data-branded] .startup-neutral { display:block; color:CanvasText; }
  #app-startup a { border:1px solid ButtonText; }
}
/* Only the approved public identity has the rose refraction; readiness still owns dismissal. */
#app-startup[data-branded]::before{
  background:radial-gradient(ellipse 70% 67% at 110% 9%,#ddb0ab99,transparent 70%),
    radial-gradient(ellipse 59% 47% at -7% 99%,#dba8ae73,transparent 82%),
    linear-gradient(127deg,transparent 61%,#fffbf055 75%,transparent 86%);
}
