/* ==========================================================================
   Product frame — full-page iframe wrapper for hosted SenAI products
   (vmi.html, hirecompass-demo.html). The embedded app fills the whole
   viewport with no border, so it reads as part of senaisolutions.com.
   ========================================================================== */
html,
body.pf {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.pf-frame {
    position: fixed;
    top: 0;
    left: 0;
    /* --pf-sb (set by js/product-frame.js) pushes the iframe's own
       scrollbar just past the right edge on touch / small screens */
    width: calc(100% + var(--pf-sb, 0px));
    height: 100vh;
    height: 100dvh;
    border: 0;
    display: block;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pf-ready .pf-frame {
    opacity: 1;
}

/* Branded loader shown until the embedded app has loaded */
.pf-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #ffffff;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pf-ready .pf-loader {
    opacity: 0;
    visibility: hidden;
}

.pf-bar {
    position: relative;
    width: 120px;
    height: 3px;
    border-radius: 3px;
    background: #eef0f4;
    overflow: hidden;
}

.pf-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #3F9CE8, #9F5EDF);
    animation: pf-slide 1.1s ease-in-out infinite;
}

@keyframes pf-slide {
    to { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-bar::after { animation: none; left: 30%; }
    .pf-frame,
    .pf-loader { transition: none; }
}
