/* User Requested "Blueish" Trial Theme */
:root {
    --background: 0 0% 100%;
    --foreground: 222 47% 11%;

    /* Light Mode Defaults for Trial Theme */
    --page-dark: #ffffff;
    --page-surface: #f8fafc;
    --page-card: #ffffff;
    --page-highlight: #f1f5f9;
        
    /* Blue gradient valid for white background */
    --gradient-start: hsl(215, 100%, 40%); 
    --gradient-end: hsl(215, 100%, 60%);

    /* Badge / Brand Colors (Light) - Darker Blue for contrast on white */
    --brand-500: hsl(215, 100%, 40%);
    --brand-600: hsl(215, 100%, 30%); /* Text */
    --brand-400: hsl(215, 100%, 60%);
    --brand-dim: hsl(215 100% 40% / 0.1);
}

.dark {
    --primary: 210 100% 65%;
    --background: 224 15% 8%;        /* hsl(224, 15%, 8%) */
    --foreground: 210 20% 98%;
    
    /* Mapping these to our 'page-*' structure so they work with existing classes */
    --page-dark: hsl(224, 15%, 8%);
    --page-surface: hsl(222, 15%, 15%); /* Using --secondary */
    --page-card: hsla(224, 14%, 15%, 0.85);
    --page-highlight: hsl(215, 100%, 65%); /* Using --accent */
    --gradient-start: hsl(215, 100%, 65%);
    --gradient-end: hsl(210, 100%, 80%); /* A lighter shift */
    
    /* Header Background (Dark Mode) - 80% opacity matching page-dark */
    --header-bg: hsl(224 15% 8% / 0.8);

    /* Badge / Brand Colors (Dark) - Bright Blue */
    --brand-500: hsl(215, 100%, 65%);
    --brand-600: hsl(215, 100%, 75%);
    --brand-400: hsl(215, 100%, 65%); /* Text */
    --brand-dim: hsl(215 100% 65% / 0.15);
}

/* Styling for Select Options in Dark Mode */
.dark select option {
    background-color: #111827;
    color: white;
}

/* Custom Utilities */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(
        to right,
        var(--gradient-start),
        var(--gradient-end)
    );
}
.light .text-gradient {
    /* If specific light mode override is needed, variables handle it mostly. */
    background-image: linear-gradient(
        to right,
        var(--gradient-start),
        var(--gradient-end)
    );
}

/* Modal Content Styling */
#termsModalBody h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: inherit;
}
#termsModalBody h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: inherit;
}
#termsModalBody p {
    margin-bottom: 1rem;
}
#termsModalBody ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}
#termsModalBody ul.square {
    list-style-type: square;
}
#termsModalBody li {
    margin-bottom: 0.5rem;
}
#termsModalBody a {
    color: #3b82f6;
    text-decoration: underline;
}
.dark #termsModalBody a {
    color: #60a5fa;
}
#termsModalBody a:hover {
    text-decoration: none;
}
#termsModalBody strong {
    font-weight: 600;
}
