body {
    font-family: "Inter", sans-serif;
    margin: 0;
    overflow: hidden;
    /* Prevent scrolling if views are perfectly full screen */
    /* Add safe area support for mobile devices */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    /* Fallback for browsers that don't support env() */
    padding-top: 0;
    padding-bottom: 0;
}

.page-view {
    width: 100vw;
    height: 100vh;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;

}

.page-view.active {
    display: flex;
    /* Show active view */
    opacity: 1;
}

.nav-buttons {
    position: fixed;
    bottom: calc(32px + env(safe-area-inset-bottom));
    /* 32px spacing from bottom + safe area */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 1rem;
    /* Space between buttons */
}

/* Custom styles for rounded corners and focus states */
.btn-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.5);
    /* Tailwind slate-500 equivalent */
}

/* Marketing Section Styles */
.marketing-section {
    background: url('/eclipse.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}



.marketing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 0 2rem;
    text-align: center;
    width: max(406px, 38%);

}

.marketing-title {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 64px;
    color: #1C0011;
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

.marketing-button {
    background: var(--interactive-bg, #FFFFFF66);
    height: 64px;
    width: 80%;
    border: none;
    border-radius: 2rem;
    padding: 1rem 3rem;
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1C0011;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 35, 74, 0.1);
    position: absolute;
    bottom: calc(32px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
}



/* Responsive adjustments */
@media (max-width: 480px) {
    .marketing-title {
        font-size: 2.8rem;
        margin-bottom: 3rem;
    }

    .marketing-button {
        font-size: 1rem;
        padding: 0.9rem 2.5rem;
        min-width: 250px;
    }
}

@media (max-width: 375px) {
    .marketing-title {
        font-size: 2.4rem;
        margin-bottom: 2.5rem;
    }

    .marketing-button {
        font-size: 0.95rem;
        padding: 0.8rem 2rem;
        min-width: 220px;
    }
}

/* Mobile safe area support */
@supports (padding: max(0px)) {
    body {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }

    .nav-buttons {
        bottom: max(32px, calc(32px + env(safe-area-inset-bottom)));
    }

    .onboarding-nav-button {
        bottom: max(32px, calc(32px + env(safe-area-inset-bottom)));
    }

    .marketing-button {
        bottom: max(32px, calc(32px + env(safe-area-inset-bottom)));
    }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    .nav-buttons {
        bottom: calc(32px + env(safe-area-inset-bottom, 0px));
        padding: 0 1rem;
    }

    .onboarding-nav-button {
        bottom: calc(32px + env(safe-area-inset-bottom, 0px));
        right: 1.5rem;
    }

    .marketing-button {
        bottom: calc(32px + env(safe-area-inset-bottom, 0px));
        width: 90%;
        max-width: 400px;
    }
}

/* iPhone 15 and newer devices with dynamic island */
@media (max-width: 430px) and (min-height: 900px) {
    .marketing-button {
        bottom: calc(40px + env(safe-area-inset-bottom, 0px));
        width: 85%;
    }

    .nav-buttons {
        bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }

    .onboarding-nav-button {
        bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }
}

/* Onboarding Section Styles */
.calltoaction-section {
    background: url('/overlay.svg?1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

.onboarding-section {
    background: url('/eclipse.svg?1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

.interview-section {
    background: url('/eclipse2.svg?2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;

}

@keyframes simpleTransition {

    0%,
    50% {
        background-image: url('/eclipse2.svg?2');
    }

    50.1%,
    100% {
        background-image: url('/eclipse3.svg?2');
    }
}

.profile-pending-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.interview-content {

    width: 100%;
    height: 100vh;
    z-index: 999999;
}

.interview-screen {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    width: max(406px, 38%);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.interview-screen.active {
    opacity: 1;
    z-index: 999;
}

.interview-logo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.calltoaction-content {

    width: 100%;
    height: 100vh;
    width: max(406px, 38%);

}

.calltoaction-screen {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}


.calltoaction-screen.active {
    opacity: 1;
    z-index: 999;
}

.calltoaction-logo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.onboarding-content {

    width: 100%;
    height: 100vh;
    width: max(406px, 38%);

}

.onboarding-screen {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.onboarding-screen.active {
    opacity: 1;
    z-index: 999;
}

.onboarding-logo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.interview-logo-small {
    margin-top: 2rem;
    text-align: center;
}

.profile-pending-logo-small {
    margin-top: 2rem;
    text-align: center;
}

.onboarding-logo-small {
    margin-top: 2rem;
    text-align: center;
}

.onboarding-title {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #1C0011;
    margin: 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.onboarding-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.onboarding-brand {
    margin-top: 24px;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #1C0011;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.onboarding-brand.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.onboarding-logo-small h2 {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1C0011;
    margin: 0;
    letter-spacing: 0.1em;
}

.profile-pending-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.profile-pending-text h1 {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    color: #1C0011;
    line-height: 1.4;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.profile-pending-text p {
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #1C0011;
    line-height: 1.4;
    margin: 0;
    transition: all 0.3s ease;
}

.profile-pending-facts {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    overflow: hidden;
    top: 0;
    bottom: 0;
    position: absolute;
    left: 0;
    right: 0;
}

/* Swiper Facts Carousel Styles */
.facts-swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0;
}

.facts-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 20px;
    min-height: 120px;
    transition: all 0.8s ease-in-out;
    opacity: 0.6;
    transform: scale(0.8);
    filter: blur(3px);
}

.facts-swiper .swiper-slide:hover {
    transform: scale(0.85);
}

.facts-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: none;
    z-index: 3;
}

.facts-swiper .swiper-slide-prev {
    opacity: 0.6;
    transform: translateY(-20px) scale(0.8);
    filter: blur(3px);
    z-index: 1;
}

.facts-swiper .swiper-slide-next {
    opacity: 0.6;
    transform: translateY(20px) scale(0.8);
    filter: blur(3px);
    z-index: 1;
}


.fact-category {
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1C0011;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    width: 100%;
    text-align: left;
}

.fact-text {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #1C0011;
    line-height: 1.4;
    margin: 0;
    width: 100%;
    text-align: left;
    flex: 1;
}

.onboarding-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 32px;
    right: 32px;
    transform: translate(0, -50%);
    text-align: left;
    max-width: 320px;
    margin: 0 auto;
}

.onboarding-text p {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #1C0011;
    line-height: 1.4;
    margin: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.onboarding-text p.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.onboarding-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1C0011;
    position: absolute;
    white-space: nowrap;
    bottom: calc(120px + env(safe-area-inset-bottom));
    left: 50%;
    opacity: 0;
    transform: translateX(-50%) translateY(50px);
    transition: all 0.8s ease-out;
}

.profile-pending-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1C0011;
    position: absolute;
    white-space: nowrap;
    bottom: calc(48px + env(safe-area-inset-bottom));



}

.onboarding-time.animate-in {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.time-icon {
    font-size: 1rem;
}

.onboarding-nav-button {

    position: absolute;
    bottom: calc(32px + env(safe-area-inset-bottom));
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--interactive-bg, #FFFFFF66);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(28, 0, 17, 0.1);
}

.onboarding-nav-button:hover {
    transform: translateY(-2px);
}

/* Loading spinner styles */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4A234A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 64px;
    transform: translate(0, 64px);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.restart-button {
    position: relative;
    transition: all 0.3s ease;
}

.restart-button img {
    transition: opacity 0.3s ease, display 0.3s ease;
}

.restart-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.restart-button.loading img {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.restart-loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4A234A;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.restart-button.loading .restart-loading-text {
    opacity: 1;
}

/* Button visibility transitions */
#pauseRecording,
#resumeRecording {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#pauseRecording.hidden,
#resumeRecording.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.onboarding-nav-button span {
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1C0011;
}

/* Interview Section Styles */
#interview h1,
#interview p {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

#interview .btn-custom {
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

/* Lottie Background Animation Styles */
.lottie-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* SOONER Background Animation Specific Styles */
.lottie-sooner-enters-bg {
    opacity: 0.7;
}

.lottie-sooner-listens-bg,
.lottie-sooner-listens-bg-pending {
    opacity: 0.5;
}

.lottie-sooner-speaks-bg {
    opacity: 0.6;
}

.lottie-sooner-exits-bg {
    opacity: 0.7;
}

/* Responsive adjustments for background animations */
@media (max-width: 480px) {
    .lottie-background {
        opacity: 0.4;
    }

    .lottie-sooner-enters-bg {
        opacity: 0.5;
    }

    .lottie-sooner-listens-bg,
    .lottie-sooner-listens-bg-pending {
        opacity: 0.3;
    }

    .lottie-sooner-speaks-bg {
        opacity: 0.4;
    }

    .lottie-sooner-exits-bg {
        opacity: 0.5;
    }
}

@media (max-width: 375px) {
    .lottie-background {
        opacity: 0.3;
    }

    .lottie-sooner-enters-bg {
        opacity: 0.4;
    }

    .lottie-sooner-listens-bg,
    .lottie-sooner-listens-bg-pending {
        opacity: 0.2;
    }

    .lottie-sooner-speaks-bg {
        opacity: 0.3;
    }

    .lottie-sooner-exits-bg {
        opacity: 0.4;
    }
}