/**
 * HIP App Explainer - HIP looks on top of the shared APC Explainer CSS
 * (Decisions Log 2026-11-22; _projdocs/HIP-App-Explainer-Required-PROPOSAL-2026-11-22.md).
 * Everything is scoped to .hac-hip-explainer or body.hac-hip-explainer-on, so the APC Explainer is untouched.
 */

/* Before any part of the app shows (Neal 2026-11-22): the app's mount stays hidden while the required Explainer runs. */
body.hac-hip-explainer-on #hac-hip-scene-selector {
    visibility: hidden;
}

/* Required run: no close X (Neal 2026-11-22: completed = reaching the last slide, no X or Esc). */
.hac-hip-explainer--required .hac-explainer-close {
    display: none !important;
}

/* Required run: nothing of the page shows behind the shell. */
.hac-hip-explainer--required .hac-explainer-backdrop {
    background: #0d0d10;
}

/* Text-only slides (no picture yet, or Type A lists): read left to right, comfortably wide. */
.hac-hip-explainer .hac-explainer-type-a .hac-explainer-body {
    text-align: left;
    font-size:  1.1rem;
}
.hac-hip-explainer .hac-explainer-type-a .hac-explainer-body__list {
    list-style:   none;
    padding-left: 0;
}
.hac-hip-explainer .hac-explainer-type-a .hac-explainer-body__list li {
    font-size: 1.1rem;
    color:     #e8e6df;
}
.hac-hip-explainer .hac-explainer-type-b__text:only-child {
    flex:      1 1 100%;
    max-width: 760px;
    margin:    0 auto;
}
.hac-hip-explainer .hac-explainer-body {
    font-size: 1.05rem;
}

/* Listen button (Neal's voiceover). */
.hac-hip-explainer-listen {
    align-self:    flex-start;
    margin:        0 0 1rem;
    padding:       0.5rem 1.1rem;
    min-height:    40px;
    font-size:     0.95rem;
    font-weight:   600;
    color:         #1c1c20;
    background:    #dcbe82;
    border:        1px solid #dcbe82;
    border-radius: 4px;
    cursor:        pointer;
}
.hac-hip-explainer-listen:hover,
.hac-hip-explainer-listen:focus-visible {
    background: #f0d9a4;
    outline:    none;
}
.hac-hip-explainer .hac-explainer-type-a__content .hac-hip-explainer-listen {
    display: inline-block;
}

/* The last button: "Start my portrait" stands out. */
.hac-hip-explainer .hac-explainer-nav-btn--cta {
    background:   #dcbe82;
    border-color: #dcbe82;
    color:        #1c1c20;
    font-size:    1rem;
    padding:      0.65rem 1.4rem;
}
.hac-hip-explainer .hac-explainer-nav-btn--cta:hover,
.hac-hip-explainer .hac-explainer-nav-btn--cta:focus-visible {
    background: #f0d9a4;
    color:      #1c1c20;
}

/* Intro (Neal 2026-11-22): three snapshots, then they dissolve into the finished portrait. */
.hac-hip-explainer-intro {
    position:        absolute;
    inset:           0;
    z-index:         500002;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      #0d0d10;
    animation:       hac-hip-intro-out 3400ms ease both;
}
.hac-hip-explainer-intro__snaps {
    display:   flex;
    gap:       2vw;
    max-width: 92vw;
    animation: hac-hip-intro-snaps 3400ms ease both;
}
.hac-hip-explainer-intro__snaps img {
    width:         min( 26vw, 260px );
    height:        auto;
    border-radius: 4px;
    object-fit:    cover;
}
.hac-hip-explainer-intro__portrait {
    position:   absolute;
    max-width:  92vw;
    max-height: 82vh;
    object-fit: contain;
    animation:  hac-hip-intro-portrait 3400ms ease both;
}
@keyframes hac-hip-intro-snaps {
    0%   { opacity: 0; }
    12%  { opacity: 1; }
    40%  { opacity: 1; transform: scale( 1 ); }
    65%  { opacity: 0; transform: scale( 0.96 ); }
    100% { opacity: 0; }
}
@keyframes hac-hip-intro-portrait {
    0%, 40% { opacity: 0; transform: scale( 1.02 ); }
    65%     { opacity: 1; transform: scale( 1 ); }
    100%    { opacity: 1; }
}
@keyframes hac-hip-intro-out {
    0%, 85% { opacity: 1; }
    100%    { opacity: 0; }
}

/* Phones (Neal 2026-11-22): Previous / Continue side by side in the middle of the screen, clear of the tawk.to bubble. */
@media ( max-width: 900px ) {
    .hac-hip-explainer .hac-explainer-nav {
        justify-content: center;
    }
}
