@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('../fonts/TT_Ramillas_Trial_Variable_Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand-blue: #003087;
    --brand-light: #e6eaf2;
    --text-color: #ffffff;
    --card-bg: #ffffff;
    --text-dark: #333333;
    
    /* Result Colors */
    --color-dominance: #F06292;
    --color-influence: #FFD54F;
    --color-stability: #4DB6AC;
    --color-compliance: #64B5F6;
}

body {
    background-color: var(--brand-blue);
    font-family: 'Satoshi', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Constrained Container */
.app-container {
    background-color: var(--brand-blue);
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .serif-font {
    font-family: 'TT Ramillas', serif;
    font-style: italic;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; font-weight: 400; }

/* Logo Styling */
.logo-white-filter {
    filter: invert(1) brightness(200%);
    mix-blend-mode: screen;
}

/* Screens */
.screen {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 30px; /* More padding */
    animation: fadeIn 0.5s ease-out;
    height: 100%;
    box-sizing: border-box;
}

.screen.active {
    display: flex;
}

.screen-center {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Buttons */
.btn-brand {
    background-color: white; /* White buttons */
    color: var(--brand-blue); /* Blue text */
    border: none;
    border-radius: 50px;
    padding: 18px 30px; /* Larger */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    display: block;
}

.btn-brand:hover {
    background-color: #f0f0f0;
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-brand:active {
    transform: translateY(1px);
}

/* Option Buttons (Questions) */
.btn-option {
    background-color: white;
    color: var(--brand-blue);
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    white-space: normal;
    font-weight: 600;
    line-height: 1.4;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-option:hover {
    background-color: #f8f9fa;
    color: var(--brand-blue);
    transform: translateX(5px);
}

/* Progress Bar Segments */
.progress-container {
    margin: 10px 0 40px 0;
    width: 100%;
}

.progress-wrapper {
    display: flex;
    gap: 6px; /* Space between segments */
    height: 4px;
    width: 100%;
    margin-top: 5px;
}

.progress-segment {
    flex: 1;
    background-color: rgba(255,255,255,0.3);
    border-radius: 4px;
    height: 100%;
    transition: background-color 0.3s ease;
}

.progress-segment.active {
    background-color: white;
}

/* Counter */
.counter-text {
    color: white;
    font-family: 'Satoshi', sans-serif;
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
}

.counter-current {
    font-size: 1.8rem; /* Bigger first number */
    font-weight: 300;
    line-height: 1;
    margin-right: 2px;
}

.counter-total {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 300;
}

/* Removed old #question-text styles conflict if any, but ID styles override classes usually */
#question-text {
    color: white;
    font-family: 'Satoshi', sans-serif;
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-style: normal;
    text-align: left;
    font-weight: 100;
}

/* Results */
.card {
    border-radius: 12px;
    border: none;
}

.card-title {
    font-family: 'TT Ramillas', serif;
    font-style: italic;
    font-size: 1.2rem;
}

/* Decorative Images (Start Screen) */
.deco-container {
    position: absolute;
    top: 0;
    /* left: 0; */
    width: 120%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through */
    z-index: 0;
    overflow: hidden;
}

.deco-img {
    position: absolute;
    opacity: 0;
    animation: drawIn 1.5s ease-out forwards;
}

/* Staggered animation delays for each arrow */
.deco-1 { animation-delay: 1.1s; }
.deco-2 { animation-delay: 0.8s; }
.deco-3 { animation-delay: 0.5s; }
.deco-4 { animation-delay: 0.2s; }

/* Drawing animation */
@keyframes drawIn {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0); /* Start fully clipped from right */
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.9;
        clip-path: inset(0 0 0 0); /* Fully visible */
    }
}

/* Positioning matching Ref roughly */
.deco-1 { top: 8%; left: 0%; width: 50%; transform: rotate(1deg); }
.deco-2 { top: 18%; right: 0%; width: 50%; transform: rotate(0deg); }
.deco-3 { bottom: 2%; left: 0%; width: 50%; transform: rotate(-5deg); }
.deco-4 { bottom: 6%; right: 0%; width: 35%; transform: rotate(-5deg); }

/* Ensure content is above deco */
.content-wrapper {
    z-index: 1;
    position: relative;
}

/* Scrollbar */
::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

/* Utilities */
.text-primary { color: var(--brand-blue) !important; }

/* Result Toggle Icon */
.toggle-icon {
    width: 24px;
    height: 24px;
    border: 1px solid var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-bottom: 2px; /* Visual adjustment */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Disclaimer specific */
.disclaimer-text {
    color: var(--text-color);
    font-size: 1.3rem;
    text-align: left;
    line-height: 1.8;
}

