:root {
    /* Bold, contrasted color palette with gradients */
    --color-primary-50: #f0f9ff; --color-primary-100: #e0f2fe; --color-primary-200: #bae6fd;
    --color-primary-300: #7dd3fc; --color-primary-400: #38bdf8; --color-primary-500: #0ea5e9;
    --color-primary-600: #0284c7; --color-primary-700: #0369a1; --color-primary-800: #075985;
    --color-primary-900: #0c4a6e;

    /* High contrast grays */
    --color-gray-50: #ffffff; --color-gray-100: #f8fafc; --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1; --color-gray-400: #94a3b8; --color-gray-500: #64748b;
    --color-gray-600: #475569; --color-gray-700: #334155; --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* Vibrant accent colors */
    --color-accent-50: #fef3c7; --color-accent-100: #fde68a; --color-accent-200: #fcd34d;
    --color-accent-300: #fbbf24; --color-accent-400: #f59e0b; --color-accent-500: #d97706;
    --color-accent-600: #b45309; --color-accent-700: #92400e; --color-accent-800: #78350f;
    --color-accent-900: #451a03;

    /* Purple accent for variety */
    --color-purple-50: #faf5ff; --color-purple-100: #f3e8ff; --color-purple-200: #e9d5ff;
    --color-purple-300: #d8b4fe; --color-purple-400: #c084fc; --color-purple-500: #a855f7;
    --color-purple-600: #9333ea; --color-purple-700: #7c3aed; --color-purple-800: #6b21a8;
    --color-purple-900: #581c87;

    /* Gradient definitions */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-800) 100%);
    --gradient-hero: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-primary-800) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-700) 100%);
    --gradient-purple: linear-gradient(135deg, var(--color-purple-600) 0%, var(--color-purple-800) 100%);
    --gradient-card: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-primary-50) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);

    /* Replacing indigo with bold gradient */
    --color-indigo-50: #f0f9ff; /* Used in CostSegregationSection example box gradient */
}

/* Animation for FAQ item content */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.faq-answer-visible {
    animation: fadeIn 0.3s ease-in-out;
}

/* Styles for AnimatedUnderline component */
@keyframes drawLine {
    0% { width: 0; }
    45% { width: 100%; }
    50% { width: 100%; }
    95% { width: 0; }
    100% { width: 0; }
}
.underlineContainer {
    color: inherit; /* Inherit text color from parent */
    position: relative;
    display: inline-block;
    font-weight: normal; /* Explicitly setting to match original styling if needed */
}
.underlineContainer .animated-underline-line {
    position: absolute;
    left: 0;
    height: 2px;
    width: 0; /* Initially 0, animated by drawLine */
    background-color: var(--color-primary-600); /* Professional gray accent */
    animation: drawLine 6s ease-in-out infinite;
    transform-origin: left;
}
.underlineContainer .firstLine {
    bottom: 0;
}
.underlineContainer .secondLine {
    bottom: -4px;
    animation-delay: 0.5s; /* Start second line with a delay */
}

/* Styles for AnimatedText component */
.animated-text-container { /* Parent to set min-height */
    display: block; /* or inline-block if preferred */
}
.animated-text-span {
    display: inline-block;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(0.5rem); /* Corresponds to translate-y-2 */
    word-break: break-word;
    overflow-wrap: break-word;
    /* hyphens: auto; /* May need vendor prefixes or JS for full support */
}
.animated-text-span.visible {
    opacity: 1;
    transform: translateY(0);
}

/* General section styling helpers (if needed, Tailwind should cover most) */
.section-label {
    display: inline-block;
    padding: 0.25rem 0.75rem; /* py-1 px-3 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: var(--color-primary-700);
    background-color: var(--color-primary-100);
    border-radius: 9999px; /* rounded-full */
}
.section-header {
    margin-top: 0.5rem; /* mt-2 */
    font-size: 2.25rem; /* text-3xl */
    line-height: 2.5rem; /* leading-9 */
    font-weight: 800; /* font-extrabold */
    color: var(--color-gray-900);
    letter-spacing: -0.025em; /* tracking-tight */
}
@media (min-width: 640px) { /* sm */
    .section-header {
        font-size: 2.25rem; /* sm:text-4xl -> text-3xl used to be 2.25rem, 4xl is 2.25rem. Let's stick to one for simplicity unless specified. */
                            /* Original was section-header: text-3xl tracking-tight text-gray-900 sm:text-4xl */
    }
}
.section-description {
    margin-top: 1rem; /* mt-4 */
    max-width: 42rem; /* max-w-2xl */
    font-size: 1.125rem; /* text-xl */
    line-height: 1.75rem; /* leading-7 */
    color: var(--color-gray-600);
    margin-left: auto;
    margin-right: auto;
}

/* Override styles for gradient backgrounds */
.accent-gradient .section-label {
    color: var(--color-accent-900);
    background-color: var(--color-accent-200);
}
.accent-gradient .section-header {
    color: white;
}
.accent-gradient .section-description {
    color: white;
    opacity: 0.9;
}

.hero-gradient .section-label {
    color: var(--color-accent-300);
    background-color: white;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.hero-gradient .section-header {
    color: white;
}
.hero-gradient .section-description {
    color: var(--color-gray-100);
}
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem;
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem;
    border: 1px solid transparent;
    font-size: 1rem; /* text-base */
    font-weight: 600; /* semibold for more contrast */
    border-radius: 0.5rem; /* rounded-lg */
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    transition: all 0.3s ease;
}
.primary-button:hover {
    background: var(--gradient-hero);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

/* Gradient classes */
.primary-gradient {
    background: var(--gradient-primary);
}
.hero-gradient {
    background: var(--gradient-hero);
}
.accent-gradient {
    background: var(--gradient-accent);
}
.purple-gradient {
    background: var(--gradient-purple);
}
.card-gradient {
    background: var(--gradient-card);
}
.subtle-gradient {
    background: var(--gradient-subtle);
}

/* Gradient text for headlines */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 50%, var(--color-primary-900) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    font-weight: inherit;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .gradient-text {
        color: var(--color-primary-600);
        background: none;
        -webkit-text-fill-color: initial;
        text-fill-color: initial;
    }
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem;
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem;
    border: 2px solid var(--color-primary-600);
    font-size: 1rem; /* text-base */
    font-weight: 600; /* semibold for more contrast */
    border-radius: 0.5rem; /* rounded-lg */
    color: var(--color-primary-700);
    background: var(--gradient-subtle);
    transition: all 0.3s ease;
}
.secondary-button:hover {
    background: var(--gradient-card);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}
.feature-card { /* Common styling for feature cards */
    position: relative;
    background: var(--gradient-card);
    border-radius: 1rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-lg */
    padding: 2rem; /* p-8 */
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    border: 1px solid var(--color-gray-200);
}
.feature-card:hover {
    transform: translateY(-0.5rem); /* hover:-translate-y-2 */
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); /* hover:shadow-2xl */
    border-color: var(--color-primary-300);
}

/* Add some flashy gradient backgrounds for specific sections */
.hero-gradient {
    background: var(--gradient-hero);
    color: white;
}

.accent-gradient {
    background: var(--gradient-accent);
    color: white;
}

.purple-gradient {
    background: var(--gradient-purple);
    color: white;
}

.subtle-gradient {
    background: var(--gradient-subtle);
}

.mobile-nav-link {
    display: block;
    padding-left: 0.75rem; /* px-3 */
    padding-right: 0.75rem; /* px-3 */
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem; /* py-2 */
    margin-left: -0.75rem; /* -mx-3 */
    margin-right: -0.75rem; /* -mx-3 */
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 1rem; /* text-base */
    font-weight: 600; /* font-semibold */
    line-height: 1.75rem; /* leading-7 */
    color: var(--color-gray-900);
    text-align: center;
}
.mobile-nav-link:hover {
    background-color: var(--color-gray-50);
}

/* Slider styles */
.slider-thumb-primary::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--color-primary-500);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-thumb-primary::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--color-primary-500);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
