﻿body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0b1329;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.card-hover:hover .card-caption {
    transform: translateY(0);
    opacity: 1;
}

.card-caption {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-node {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:hover .timeline-node {
    transform: scale(1.1);
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    background-color: #10b981;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #059669;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: -1;
    }

    .btn-primary:hover::before {
        transform: scaleX(1);
        transform-origin: left;
    }

.parallax-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-container:hover .parallax-img {
    transform: scale(1.05);
}

.progress-bar-fill {
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card {
    transition: all 0.2s ease-in-out;
}

    .option-card:hover {
        border-color: #10b981;
    }

    .option-card.selected {
        border-color: #10b981;
        background-color: #f0fdf4;
        box-shadow: 0 0 0 2px #10b981;
    }

        .option-card.selected .radio-circle {
            border-color: #10b981;
            background-color: #10b981;
        }

            .option-card.selected .radio-circle::after {
                content: '';
                width: 6px;
                height: 6px;
                background: white;
                border-radius: 50%;
            }

.blur-mask {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,1) 100%);
}

.report-card {
    transition: transform 0.2s ease;
}

    .report-card:hover {
        transform: translateY(-2px);
    }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0b1329;
}

.success-banner {
    animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.collapse-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.category-card.collapsed .collapse-content {
    max-height: 0;
}

.category-card.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.chevron-icon {
    transition: transform 0.3s ease;
}
        

/* Phase 2E: legal pages (privacy, terms). Uses the app colours (navy #0b1329, slate #334155, line #e2e8f0). */
.legal-text h2 { font-size: 1.375rem; line-height: 1.3; font-weight: 700; color: #0b1329; margin-bottom: 0.75rem; }
.legal-text h3 { font-size: 1.05rem; font-weight: 600; color: #0b1329; margin: 1.25rem 0 0.5rem; }
.legal-text p + p, .legal-text p + ul, .legal-text ul + p, .legal-text p + .legal-table, .legal-text .legal-table + p { margin-top: 0.75rem; }
.legal-text ul { list-style: disc; padding-left: 1.25rem; }
.legal-text li + li { margin-top: 0.35rem; }
.legal-text a { text-decoration: underline; }
.legal-text a:hover { color: #0b1329; }
.legal-table { width: 100%; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 32rem; }
.legal-table th, .legal-table td { border: 1px solid #e2e8f0; padding: 0.5rem 0.625rem; text-align: left; vertical-align: top; }
.legal-table th { background: #f8fafc; color: #0b1329; font-weight: 600; }
.legal-form { border: 1px dashed #334155; border-radius: 0.75rem; padding: 1rem; font-size: 0.875rem; white-space: pre-line; }
