/* =========================================================
   DIGITAL TWIN INFO
   ========================================================= */


/* =========================================================
   INFO BUTTON
   ========================================================= */

.digital-twin-info-btn {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;

    background: transparent;
    color: #111;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}

.digital-twin-info-btn svg {
    display: block;

    width: 20px;
    height: 20px;
}

.digital-twin-info-btn:hover {
    opacity: 0.65;
}

.digital-twin-info-btn:active {
    transform: scale(0.92);
}


@media (min-width: 769px) {

    .digital-twin-info-btn {
        margin-top: -2px;
    }

}


/* =========================================================
   OVERLAY
   ========================================================= */
.digital-twin-info-overlay {
    position: fixed;
    inset: 0;

    z-index: 2000;

    background: rgba(14, 15, 31, 0.56);

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.digital-twin-info-overlay:not(.active) {
    display: none;
}

.digital-twin-info-overlay.active {
    display: block;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   SHEET
   ========================================================= */

.digital-twin-info-sheet {
    position: fixed;

    width: min(420px, calc(100vw - 32px));
    height: min(78vh, 720px);

    overflow: hidden;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 78% 8%,
            rgba(187, 151, 255, 0.22),
            transparent 28%
        ),
        #faf8ff;

    box-shadow:
        0 18px 55px rgba(30, 20, 80, 0.22);

    /*
     * JS sets top/right based on the ⓘ button.
     */
    transform-origin: top right;

    transform: scale(0);
    opacity: 0;

    transition:
        transform 0.75s cubic-bezier(0.18, 0.89, 0.32, 1.08),
        opacity 0.45s ease-out;

    will-change: transform, opacity;
}

.digital-twin-info-overlay.active
.digital-twin-info-sheet {
    transform: scale(1);
    opacity: 1;
}


/* =========================================================
   DRAG HANDLE
   ========================================================= */

.digital-twin-info-handle {
    position: absolute;

    top: 0;
    left: 50%;

    width: 100px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;

    transform: translateX(-50%);

    cursor: grab;

    z-index: 20;

    touch-action: none;

    -webkit-tap-highlight-color: transparent;
}

.digital-twin-info-handle:active {
    cursor: grabbing;
}

.digital-twin-info-handle span {
    display: block;

    width: 58px;
    height: 5px;

    border-radius: 999px;

    background: rgba(105, 66, 205, 0.35);

    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.digital-twin-info-handle:hover span {
    width: 68px;
    background: rgba(105, 66, 205, 0.48);
}


/* =========================================================
   SHEET CONTENT
   ========================================================= */

.digital-twin-info-inner {
    height: 100%;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    padding: 54px 34px 20px;

    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.digital-twin-info-header {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 108px;

    padding-right: 130px;

    flex-shrink: 0;

    /*
     * Header is also a drag zone.
     */
    touch-action: none;

    user-select: none;
    -webkit-user-select: none;

    cursor: grab;
}

.digital-twin-info-header:active {
    cursor: grabbing;
}


/* =========================================================
   TITLE
   ========================================================= */

.digital-twin-info-heading {
    position: relative;
    z-index: 2;
}

.digital-twin-info-heading h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.8rem;
    font-weight: 500;

    line-height: 1.08;

    color: #12162f;
}

.digital-twin-info-heading h2 em {
    color: #5930d2;
    font-style: italic;
}

.digital-twin-info-heading p {
    margin: 9px 0 0;

    font-size: 0.9rem;
    line-height: 1.4;

    color: #2b304b;
}

.digital-twin-info-heading p span {
    margin-left: 3px;
    color: #9560e8;
}


/* =========================================================
   AVATAR
   ========================================================= */
.digital-twin-info-avatar {
    position: absolute;

    right: 6px;
    bottom: -4px;

    width: 140px;
    height: 140px;

    object-fit: contain;

    /*
     * Makes the video's pure-white background
     * visually disappear into the sheet.
     */
    mix-blend-mode: multiply;

    pointer-events: none;

    user-select: none;
}

/* =========================================================
   DIVIDER
   ========================================================= */

.digital-twin-info-divider {
    width: 100%;
    height: 1px;

    margin: 15px 0 10px;

    flex-shrink: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(95, 60, 190, 0.15),
            transparent
        );
}


/* =========================================================
   FEATURE LIST
   ========================================================= */

.digital-twin-info-list {
    display: flex;
    flex-direction: column;

    gap: 4px;

    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    touch-action: pan-y;
}

.digital-twin-info-list::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   FEATURE
   ========================================================= */

.digital-twin-info-feature {
    display: grid;

    grid-template-columns:
        52px
        minmax(0, 1fr);

    align-items: center;

    gap: 15px;

    padding: 11px 16px;

    border: 1px solid rgba(90, 55, 180, 0.045);

    border-radius: 21px;

    background: rgba(255, 255, 255, 0.64);

    flex-shrink: 0;
}


/* =========================================================
   ICON
   ========================================================= */

.digital-twin-info-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        rgba(231, 216, 255, 0.75);

    color: #6334d8;
}

.digital-twin-info-icon svg {
    width: 27px;
    height: 27px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   TEXT
   ========================================================= */

.digital-twin-info-feature h3 {
    margin: 0 0 3px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.98rem;
    font-weight: 600;

    line-height: 1.2;

    color: #171b35;
}

.digital-twin-info-feature p {
    margin: 0;

    max-width: 680px;

    font-size: 0.84rem;
    line-height: 1.38;

    color: #343952;
}


/* =========================================================
   BOTTOM TIP
   ========================================================= */

.digital-twin-info-tip {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-top: 5px;

    padding: 11px 17px;

    border-radius: 20px;

    flex-shrink: 0;

    background:
        linear-gradient(
            135deg,
            rgba(226, 207, 255, 0.72),
            rgba(214, 191, 255, 0.52)
        );
}

.digital-twin-info-tip-icon {
    flex: 0 0 auto;

    font-size: 25px;

    color: #7040d9;
}

.digital-twin-info-tip strong {
    display: block;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.92rem;
    font-style: italic;

    color: #6231ca;
}

.digital-twin-info-tip p {
    margin: 2px 0 0;

    font-size: 0.77rem;

    color: #292d47;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .digital-twin-info-btn {
        width: 30px;
        height: 30px;
    }

    .digital-twin-info-btn svg {
        width: 18px;
        height: 18px;
    }


     .digital-twin-info-overlay {
        display: none;
    }

    .digital-twin-info-overlay.active {
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }


    .digital-twin-info-sheet {
        position: relative;

        width: 100%;
        height: 90svh;
        max-height: 90svh;

        border-radius: 27px 27px 0 0;

        transform-origin: bottom center;

        transform: translateY(100%);
        opacity: 1;

        transition:
            transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .digital-twin-info-overlay.active
    .digital-twin-info-sheet {
        transform: translateY(0);
        opacity: 1;
    }


    .digital-twin-info-inner {
        height: 100%;
        max-height: none;

        padding:
            48px
            10px
            12px;
    }


    .digital-twin-info-header {
        min-height: 76px;

        padding:
            0 5px
            0 5px;
    }


    .digital-twin-info-heading {
        padding-right: 75px;
    }


    .digital-twin-info-heading h2 {
        font-size: 1.28rem;
    }

    .digital-twin-info-heading p {
        margin-top: 5px;

        font-size: 0.71rem;
    }


    .digital-twin-info-avatar {
        width: 90px;
        height: 90px;

        right: -3px;
        bottom: -2px;
    }


    .digital-twin-info-divider {
        margin: 10px 0 7px;
    }


    .digital-twin-info-list {
        gap: 3px;
    }


    .digital-twin-info-feature {
        grid-template-columns:
            43px
            minmax(0, 1fr);

        gap: 10px;

        padding: 8px;

        border-radius: 17px;
    }


    .digital-twin-info-icon {
        width: 41px;
        height: 41px;

        border-radius: 12px;
    }

    .digital-twin-info-icon svg {
        width: 23px;
        height: 23px;
    }


    .digital-twin-info-feature h3 {
        margin-bottom: 2px;

        font-size: 0.82rem;
    }

    .digital-twin-info-feature p {
        font-size: 0.66rem;
        line-height: 1.3;
    }


    .digital-twin-info-tip {
        gap: 8px;

        padding: 9px 11px;

        border-radius: 17px;
    }

    .digital-twin-info-tip-icon {
        font-size: 20px;
    }

    .digital-twin-info-tip strong {
        font-size: 0.76rem;
    }

    .digital-twin-info-tip p {
        font-size: 0.64rem;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .digital-twin-info-inner {
        padding-left: 8px;
        padding-right: 8px;
    }

    .digital-twin-info-heading h2 {
        font-size: 1.2rem;
    }

    .digital-twin-info-heading p {
        font-size: 0.68rem;
    }

    .digital-twin-info-feature {
        grid-template-columns:
            40px
            minmax(0, 1fr);

        gap: 8px;

        padding: 7px;
    }

    .digital-twin-info-icon {
        width: 38px;
        height: 38px;
    }

    .digital-twin-info-icon svg {
        width: 21px;
        height: 21px;
    }

    .digital-twin-info-feature h3 {
        font-size: 0.78rem;
    }

    .digital-twin-info-feature p {
        font-size: 0.62rem;
    }
}