﻿/* ============================================================
   INVERTA AI EXPERIENCE V2
   ============================================================ */

/*
   IMPORTANT:
   While the phone modal is open, ALL direct body children are
   non-interactive except the modal itself.
   This also defeats physical elementsFromPoint card hit-fixes.
*/
body.inverta-phone-open > *:not(#invertaTouchPhoneModal) {
    pointer-events: none !important;
}

body.inverta-phone-open {
    overflow: hidden !important;
}

body.inverta-presentation-open > *:not(#invertaAiPresentation) {
    pointer-events: none !important;
}

body.inverta-presentation-open {
    overflow: hidden !important;
}

/* ============================================================
   PHONE POPUP
   ============================================================ */

.itp-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483600;

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

    padding: 24px;
    box-sizing: border-box;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .18s ease;
}

.itp-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.itp-modal[hidden] {
    display: none !important;
}

.itp-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(8,18,32,.68);

    backdrop-filter:
        blur(21px);
}

.itp-card {
    position: relative;
    z-index: 2;

    width:
        min(
            100%,
            470px
        );

    padding: 30px;
    box-sizing: border-box;

    border:
        1px solid
        rgba(255,255,255,.55);

    border-radius:
        30px;

    background:
        rgba(255,255,255,.985);

    box-shadow:
        0 35px 100px rgba(4,15,30,.30);

    transform:
        translateY(12px)
        scale(.985);

    transition:
        transform .20s ease;
}

.itp-modal.open .itp-card {
    transform:
        translateY(0)
        scale(1);
}

.itp-top {
    display: grid;

    grid-template-columns:
        52px
        1fr;

    gap: 16px;

    align-items: start;
}

.itp-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #0d346c,
            #164d91
        );

    color: #fff;

    box-shadow:
        0 13px 28px rgba(13,52,108,.18);
}

.itp-icon svg {
    width: 27px;
    height: 27px;
}

.itp-kicker {
    display: block;

    margin-bottom: 5px;

    color: #8792a2;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
}

.itp-top h2 {
    margin: 0 0 7px;

    color: #101828;

    font-size: 27px;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.itp-top p {
    margin: 0;

    color: #7a8594;

    font-size: 13px;
    line-height: 1.5;
}

.itp-number-box {
    margin:
        26px
        0
        18px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding:
        18px
        20px;

    border:
        1px solid
        #dde4ec;

    border-radius:
        18px;

    background:
        linear-gradient(
            180deg,
            #f8fafc,
            #f3f6f9
        );
}

.itp-country {
    flex: none;

    padding-right: 13px;

    border-right:
        1px solid
        #d7dee7;

    color:
        #0d346c;

    font-size: 20px;
    font-weight: 850;
}

.itp-number {
    flex: 1;

    color: #101828;

    font-size: 25px;
    font-weight: 760;
    letter-spacing: .055em;

    white-space: nowrap;
}

.itp-error {
    margin:
        -6px
        0
        14px;

    padding:
        10px
        12px;

    border-radius:
        11px;

    background:
        #fff1f2;

    color:
        #be123c;

    font-size: 12px;
    font-weight: 700;
}

.itp-keypad {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 11px;
}

.itp-keypad button {
    height: 59px;

    border:
        1px solid
        #e0e6ee;

    border-radius:
        16px;

    background: #fff;

    color: #101828;

    font-size: 22px;
    font-weight: 750;

    cursor: pointer;
    user-select: none;
    touch-action: manipulation;

    transition:
        transform .10s ease,
        background .10s ease,
        border-color .10s ease;
}

.itp-keypad button:hover {
    border-color: #c5d1df;
    background: #f8fafc;
}

.itp-keypad button:active {
    transform: scale(.94);
    background: #eef3f8;
}

.itp-keypad .itp-action {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.itp-keypad .itp-delete {
    color: #0d346c;
    font-size: 22px;
}

.itp-submit {
    width: 100%;
    min-height: 56px;

    margin-top: 16px;

    padding:
        0
        20px;

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

    border: 0;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #0d346c,
            #174f94
        );

    color: #fff;

    font-size: 14px;
    font-weight: 850;

    cursor: pointer;

    box-shadow:
        0 16px 30px rgba(13,52,108,.18);
}

.itp-submit:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}

.itp-privacy {
    margin-top: 16px;

    color: #98a2b3;

    font-size: 10px;
    line-height: 1.45;

    text-align: center;
}

/* ============================================================
   PRESENTATION
   ============================================================ */

#invertaAiPresentation {
    position: fixed;
    inset: 0;
    z-index: 2147482400;

    padding: 18px;

    opacity: 0;
    transform: scale(.996);

    pointer-events: none;

    background:
        radial-gradient(
            circle at 82% 8%,
            rgba(13,52,108,.11),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #eef3f9,
            #f8fafc
        );

    transition:
        opacity .18s ease,
        transform .18s ease;
}

#invertaAiPresentation.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#invertaAiPresentation[hidden] {
    display: none !important;
}

.iap-shell {
    width: 100%;
    height: 100%;

    overflow: hidden;

    display: grid;

    grid-template-rows:
        82px
        minmax(0,1fr)
        42px;

    border:
        1px solid
        rgba(13,52,108,.09);

    border-radius:
        28px;

    background: #fff;

    box-shadow:
        0 38px 110px rgba(15,23,42,.16);
}

.iap-top {
    position: relative;
    z-index: 10;

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

    gap: 24px;

    padding:
        0
        26px;

    border-bottom:
        1px solid
        #edf1f5;

    background:
        rgba(255,255,255,.96);

    backdrop-filter:
        blur(18px);
}

.iap-brand {
    height: 52px;

    display: flex;
    align-items: center;

    min-width: 130px;
}

.iap-brand img {
    display: block;

    max-width: 155px;
    max-height: 48px;

    object-fit: contain;
    object-position: left center;
}

.iap-brand strong {
    color: #0d346c;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: .18em;
}

/*
   AI assistant stays visible in the header during the presentation.
   It uses ONLY the kiosk orb logo source.
*/
.iap-ai-dock {
    margin-left: auto;

    min-width: 260px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding:
        9px
        13px
        9px
        10px;

    border:
        1px solid
        #e7ecf2;

    border-radius:
        18px;

    background:
        linear-gradient(
            180deg,
            #fff,
            #f8fafc
        );

    box-shadow:
        0 8px 22px rgba(15,23,42,.05);

    transition:
        opacity .20s ease,
        transform .20s ease;
}

.iap-ai-orb {
    position: relative;

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #fff,
            #dfeaf7 55%,
            #bad0e9
        );

    box-shadow:
        0 0 0 5px rgba(13,52,108,.055);
}

.iap-ai-orb img {
    width: 78%;
    height: 78%;

    object-fit: contain;
}

.iap-ai-orb-fallback {
    color: #0d346c;
    font-size: 11px;
    font-weight: 900;
}

.iap-ai-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.iap-ai-copy strong {
    color: #0f172a;

    font-size: 12px;
    font-weight: 850;
}

.iap-ai-copy span {
    max-width: 155px;

    overflow: hidden;

    color: #7b8796;

    font-size: 10px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.iap-ai-wave {
    height: 23px;

    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 3px;
}

.iap-ai-wave i {
    width: 3px;
    height: 7px;

    border-radius: 999px;

    background: #0d346c;

    opacity: .28;

    transform-origin: center;
}

.iap-ai-dock[data-mode="speaking"]
.iap-ai-wave i {
    opacity: .9;

    animation:
        iapWave
        .65s
        ease-in-out
        infinite alternate;
}

.iap-ai-dock[data-mode="speaking"]
.iap-ai-wave i:nth-child(2) {
    animation-delay: .11s;
}

.iap-ai-dock[data-mode="speaking"]
.iap-ai-wave i:nth-child(3) {
    animation-delay: .22s;
}

.iap-ai-dock[data-mode="speaking"]
.iap-ai-wave i:nth-child(4) {
    animation-delay: .33s;
}

.iap-ai-dock[data-mode="listening"]
.iap-ai-orb {
    box-shadow:
        0 0 0 6px rgba(22,163,74,.08);
}

.iap-ai-dock[data-mode="listening"]
.iap-ai-wave i {
    background: #16a34a;
    opacity: .55;
}

@keyframes iapWave {
    from {
        height: 6px;
    }

    to {
        height: 22px;
    }
}

/*
   During film the assistant recedes visually.
   It is still present, then returns immediately when the film finishes.
*/
#invertaAiPresentation[data-ai-mode="video"]
.iap-ai-dock {
    opacity: .20;

    transform:
        translateY(-2px)
        scale(.97);
}

.iap-stage {
    min-height: 0;
    overflow: hidden;

    position: relative;

    background:
        #0b1220;
}

.iap-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        0
        27px;

    border-top:
        1px solid
        #edf1f5;

    background: #fff;

    color: #8a94a3;

    font-size: 10px;
    font-weight: 650;
}

.iap-hero {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background:
        #0d1727;
}

.iap-hero > img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    animation:
        iapHeroIn
        1s
        ease both;
}

@keyframes iapHeroIn {
    from {
        opacity: .42;
        transform: scale(1.025);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.iap-hero-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(5,12,23,.03) 30%,
            rgba(5,12,23,.78) 100%
        );
}

.iap-hero-copy {
    position: absolute;

    left: 50px;
    right: 50px;
    bottom: 44px;

    z-index: 2;

    color: #fff;
}

.iap-hero-copy span {
    display: block;

    margin-bottom: 8px;

    opacity: .76;

    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.iap-hero-copy h1 {
    margin: 0;

    font-size:
        clamp(
            50px,
            6vw,
            92px
        );

    line-height: .96;

    letter-spacing: -.065em;
}

.iap-video-wrap {
    position: relative;

    width: 100%;
    height: 100%;

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

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(35,71,120,.35),
            #02050a 60%
        );
}

.iap-video-glow {
    position: absolute;

    width: 78%;
    height: 78%;

    border-radius: 50%;

    background:
        rgba(50,94,150,.16);

    filter: blur(80px);
}

.iap-video {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: transparent;
}

.iap-video-start {
    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: 38px;

    transform:
        translateX(-50%);

    min-height: 50px;

    padding:
        0
        23px;

    border: 0;

    border-radius: 999px;

    background: #fff;

    color: #0f172a;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 16px 50px rgba(0,0,0,.28);
}

.iap-media-slide {
    position: relative;

    width: 100%;
    height: 100%;

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

    padding: 34px;
    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #f2f5f9,
            #e7edf5
        );
}

.iap-media-slide > img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(15,23,42,.14);
}

.iap-caption {
    position: absolute;

    left: 52px;
    bottom: 44px;

    padding:
        16px
        20px;

    border-radius: 18px;

    background:
        rgba(7,16,30,.76);

    backdrop-filter:
        blur(15px);

    color: #fff;
}

.iap-caption span {
    display: block;

    margin-bottom: 4px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;

    opacity: .7;
}

.iap-caption h2 {
    margin: 0;

    font-size: 27px;
    letter-spacing: -.035em;
}

.iap-unit-slide {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns:
        1.2fr
        .8fr;

    background: #fff;
}

.iap-unit-image {
    min-height: 0;

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

    padding: 38px;

    background:
        linear-gradient(
            135deg,
            #f3f5f8,
            #e8edf3
        );
}

.iap-unit-image img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 25px 32px rgba(15,23,42,.10)
        );
}

.iap-unit-placeholder {
    width:
        min(
            480px,
            80%
        );

    aspect-ratio:
        4 / 3;

    display: grid;
    place-items: center;

    border-radius: 30px;

    background: #fff;

    color: #0d346c;

    font-size:
        clamp(
            50px,
            7vw,
            90px
        );

    font-weight: 900;

    box-shadow:
        0 25px 65px rgba(15,23,42,.08);
}

.iap-unit-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 48px;
}

.iap-unit-copy > span {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;

    color: #8792a2;
}

.iap-unit-copy h2 {
    margin:
        10px
        0
        24px;

    font-size:
        clamp(
            43px,
            5vw,
            72px
        );

    line-height: .98;
    letter-spacing: -.06em;

    color: #101828;
}

.iap-unit-metrics {
    display: flex;

    gap: 12px;

    margin-bottom: 22px;
}

.iap-unit-metrics > div {
    min-width: 120px;

    padding:
        15px
        17px;

    border:
        1px solid
        #e4e9ef;

    border-radius: 16px;

    background: #f8fafc;
}

.iap-unit-metrics small {
    display: block;

    margin-bottom: 4px;

    color: #98a2b3;

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.iap-unit-metrics strong {
    color: #0d346c;

    font-size: 21px;
}

.iap-unit-copy p {
    margin: 0;

    color: #667085;

    line-height: 1.6;
}

.iap-map-slide {
    position: relative;

    width: 100%;
    height: 100%;

    background: #eef2f6;
}

.iap-map-slide iframe {
    width: 100%;
    height: 100%;

    border: 0;
}

.iap-map-label {
    position: absolute;

    left: 42px;
    bottom: 38px;

    max-width: 390px;

    padding:
        20px
        22px;

    border-radius: 20px;

    background:
        rgba(255,255,255,.94);

    backdrop-filter:
        blur(16px);

    box-shadow:
        0 20px 60px rgba(15,23,42,.18);
}

.iap-map-label span {
    color: #7d8998;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.iap-map-label h2 {
    margin:
        7px
        0
        5px;

    font-size: 29px;
    letter-spacing: -.045em;
}

.iap-map-label p {
    margin: 0;

    color: #697586;

    line-height: 1.45;
}

.iap-map-label a {
    display: inline-block;

    margin-top: 12px;

    color: #0d346c;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;
}

.iap-nearby-slide {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns:
        1.35fr
        .65fr;

    background: #fff;
}

.iap-nearby-visual {
    min-height: 0;

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

    padding: 32px;

    background: #eef2f6;
}

.iap-nearby-visual img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border-radius: 20px;

    box-shadow:
        0 24px 70px rgba(15,23,42,.12);
}

.iap-nearby-placeholder {
    color: #9aa4b2;

    font-size: 36px;
    font-weight: 800;
}

.iap-nearby-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px;
}

.iap-nearby-copy > span {
    color: #8792a2;

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.iap-nearby-copy h2 {
    margin:
        8px
        0
        22px;

    font-size: 39px;
    letter-spacing: -.05em;
}

.iap-nearby-list {
    display: grid;

    gap: 9px;
}

.iap-nearby-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding:
        13px
        15px;

    border:
        1px solid
        #e7ebf0;

    border-radius: 14px;

    background: #fafbfc;
}

.iap-nearby-list strong {
    font-size: 13px;
}

.iap-nearby-list span {
    flex: none;

    color: #0d346c;

    font-size: 12px;
    font-weight: 850;
}

/* Catalog */
.iap-catalog-slide {
    position: relative;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #e8edf3,
            #f5f7fa
        );
}

.iap-catalog-slide iframe {
    width: 100%;
    height: 100%;

    border: 0;

    background: #fff;
}

.iap-catalog-label {
    position: absolute;

    right: 28px;
    bottom: 26px;

    max-width: 330px;

    padding:
        16px
        18px;

    display: flex;
    flex-direction: column;

    gap: 3px;

    border-radius: 16px;

    background:
        rgba(8,17,30,.82);

    backdrop-filter:
        blur(14px);

    color: #fff;
}

.iap-catalog-label > span {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;

    opacity: .65;
}

.iap-catalog-label > strong {
    font-size: 17px;
}

.iap-catalog-label > small {
    margin-top: 4px;

    font-size: 10px;
    line-height: 1.45;

    opacity: .72;
}

.iap-finish {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(13,52,108,.08),
            transparent 36%
        ),
        #fff;
}

.iap-finish-mark {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: #0d346c;

    color: #fff;

    font-size: 30px;
}

.iap-finish > span {
    color: #8b95a5;

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.iap-finish h2 {
    margin:
        8px
        0
        10px;

    font-size: 52px;
    letter-spacing: -.06em;

    color: #101828;
}

.iap-finish p {
    margin: 0;

    color: #697586;
}

@media (max-width: 900px) {
    #invertaAiPresentation {
        padding: 0;
    }

    .iap-shell {
        border: 0;
        border-radius: 0;
    }

    .iap-ai-dock {
        min-width: 210px;
    }

    .iap-unit-slide,
    .iap-nearby-slide {
        grid-template-columns: 1fr;
    }

    .iap-unit-image,
    .iap-nearby-visual {
        min-height: 46vh;
    }

    .iap-unit-copy,
    .iap-nearby-copy {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .itp-modal {
        padding: 14px;
    }

    .itp-card {
        padding: 22px;
        border-radius: 24px;
    }

    .itp-number {
        font-size: 21px;
    }

    .itp-keypad button {
        height: 56px;
    }

    .iap-ai-copy {
        display: none;
    }

    .iap-ai-dock {
        min-width: auto;
    }
}
