
/* RAIVO PREMIUM MOTION */

:root {
    --rv-plum: #542344;
    --rv-cream: #f4efe6;
    --rv-peach: #f5b89e;
    --rv-ink: #251c25;
    --rv-ease: cubic-bezier(.22,1,.36,1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    text-rendering: optimizeLegibility;
}

.rv-3d-scene {
    display: none !important;
}

@keyframes raivoReveal {
    from {
        opacity: 0;
        transform: translate3d(0,12px,0);
    }
    to {
        opacity: 1;
        transform: translate3d(0,0,0);
    }
}

@keyframes raivoFloat {
    0%,100% {
        transform: translate3d(0,0,0) rotate(-7deg);
    }
    50% {
        transform: translate3d(0,-10px,0) rotate(-3deg);
    }
}

@keyframes raivoSuccess {
    0% {transform: scale(.9)}
    65% {transform: scale(1.025)}
    100% {transform: scale(1)}
}

.rv-reveal {
    animation: raivoReveal .65s var(--rv-ease) both;
    animation-delay: var(--rv-delay,0ms);
}

button,
.btn,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
.btn {
    transition:
        transform .22s var(--rv-ease),
        background-color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

button:active,
.btn:active {
    transform: scale(.97);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #a76a98;
    outline-offset: 4px;
}

.rv-motion-card {
    transition:
        transform .4s var(--rv-ease),
        box-shadow .4s var(--rv-ease);
}

@media (hover:hover) and (pointer:fine) {
    .rv-motion-card:hover {
        transform: translate3d(0,-4px,0);
        box-shadow: 0 14px 35px #5423440d;
    }
}

/* 3D hero */

.rv-premium-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    align-items: center;
    gap: 20px;
    min-height: 190px;
}

.rv-webgl-scene {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    isolation: isolate;
    pointer-events: none;
}

.rv-webgl-scene canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.rv-scene-glow {
    position: absolute;
    inset: 15% 10%;
    background: radial-gradient(
        ellipse,
        #e5c4d055,
        transparent 70%
    );
    z-index: -1;
}

.rv-scene-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.rv-scene-fallback span {
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: linear-gradient(145deg,#995b84,#542344);
    color: #fff9ee;
    font: bold italic 72px Georgia,serif;
    box-shadow:
        7px 9px 0 #37182c,
        15px 22px 30px #54234420;
    animation: raivoFloat 5s ease-in-out infinite;
}

.rv-webgl-scene.rv-ready .rv-scene-fallback {
    display: none;
}

/* Support experience */

#rv-support-toggle {
    background: #542344 !important;
    color: #fffaf3 !important;
    font-family: inherit !important;
    font-weight: 600;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px #54234422 !important;
}

#rv-support-panel {
    transform-origin: bottom right;
    border-radius: 18px !important;
    animation: raivoReveal .3s var(--rv-ease);
}

.rv-quick-questions button:hover {
    background: #eee3eb;
}

.rv-message {
    animation: raivoReveal .25s var(--rv-ease);
}

.rv-success-motion {
    animation: raivoSuccess .45s var(--rv-ease);
}

@media(max-width:1000px) {
    .rv-premium-hero {
        grid-template-columns: minmax(0,1fr) 220px;
    }

    .rv-webgl-scene {
        height: 180px;
    }
}

@media(max-width:700px) {
    .rv-premium-hero {
        grid-template-columns: minmax(0,1fr);
        gap: 4px;
        min-height: 0;
    }

    .rv-webgl-scene {
        height: 155px;
        max-width: 280px;
        margin: 0 auto;
    }

    button,
    .btn {
        min-height: 44px;
    }

    #rv-support-panel {
        max-width: calc(100vw - 28px);
        max-height: 70dvh;
        overflow-y: auto;
    }

    #rv-support {
        right: 14px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .rv-reveal,
    .rv-scene-fallback span,
    .rv-message,
    .rv-success-motion,
    #rv-support-panel {
        animation: none !important;
    }

    .rv-motion-card,
    button,
    .btn {
        transition: none !important;
    }
}
