/* =========================================
   Expenses Feature Page
   ========================================= */

:root {
    --exp-primary: #0A192F;
    --exp-primary-hover: rgb(76, 62, 221);
    --exp-bg-light: #F8FAFC;
    --exp-bg-white: #FFFFFF;
    --exp-text-main: #0F172A;
    --exp-text-muted: #475569;
    --exp-border-radius: 14px;
    --exp-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Section Header --- */
.exp-section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-inline: auto;
}

.exp-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--exp-text-main);
}

.exp-section-header p {
    font-size: 1.15rem;
    color: var(--exp-text-muted);
}

/* --- Scroll Animation --- */
.exp-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.exp-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   EMPATHY SECTION — Asymmetric 2-col
   ========================================= */
.exp-empathy-theme {
    background-color: var(--primary-background);
    background-image: radial-gradient(rgba(10, 25, 47, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--exp-text-main);
}

.exp-empathy-theme .exp-section-header h2 {
    color: var(--exp-text-main);
}

.exp-empathy-theme .exp-section-header p {
    color: var(--exp-text-muted);
}

.exp-empathy-cards {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 16px;
}

.exp-empathy-card {
    border-radius: var(--exp-border-radius);
    overflow: hidden;
    transition: var(--exp-transition);
    background-color: var(--exp-bg-white);
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exp-empathy-card:hover {
    transform: translateY(-6px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
    border-color: #93a5d6;
}

/* Lead card — wider, spans left column full height */
.exp-empathy-card:first-child {
    grid-row: 1 / 3;
    justify-content: center;
    padding: 48px 36px;
}

/* Secondary cards — stack on the right */
.exp-empathy-card:nth-child(2) {
    align-self: start;
}

.exp-empathy-card:nth-child(3) {
    align-self: start;
}

.exp-empathy-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.exp-empathy-card:first-child .exp-empathy-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 28px;
}

.exp-empathy-icon--red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.exp-empathy-icon--orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.exp-empathy-icon--purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.exp-empathy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--exp-text-main);
}

.exp-empathy-card:first-child h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.exp-empathy-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--exp-text-muted);
}

.exp-empathy-card:first-child p {
    font-size: 1rem;
    max-width: 42ch;
}

.exp-empathy-conclusion {
    text-align: center;
    margin-top: 48px;
    padding: 28px 32px;
    background: var(--exp-bg-white);
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
    border-radius: var(--exp-border-radius);
    max-width: 700px;
    margin-inline: auto;
    transition: var(--exp-transition);
}

.exp-empathy-conclusion:hover {
    transform: translateY(-6px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
    border-color: #93a5d6;
}

.exp-empathy-conclusion p {
    color: var(--exp-text-main);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.7;
}

/* =========================================
   FEATURES — BENTO GRID (3-col)
   ========================================= */
.exp-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 16px;
}

.exp-bento-card {
    background: var(--exp-bg-white);
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
    border-radius: var(--exp-border-radius);
    overflow: hidden;
    transition: var(--exp-transition);
    display: flex;
    flex-direction: column;
}

.exp-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
    border-color: #93a5d6;
}

/* Wide card — full width hero row */
.exp-bento-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
}

/* Tall card — spans both rows in left 2 cols */
.exp-bento-card--tall {
    grid-column: 1 / 3;
    grid-row: 2;
    flex-direction: row;
}

/* Chart card — right col, row 2 */
.exp-bento-card--chart {
    grid-column: 3;
    grid-row: 2;
}

/* Export card — full width bottom */
.exp-bento-card--export {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
}

.exp-bento-card-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exp-bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.exp-bento-icon--blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.exp-bento-icon--green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.exp-bento-icon--purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.exp-bento-icon--orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.exp-bento-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--exp-text-main);
}

.exp-bento-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--exp-text-muted);
}

.exp-bento-card-visual {
    flex: 1;
    min-height: 180px;
    background: var(--exp-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.exp-bento-card--wide .exp-bento-card-visual {
    flex: 0 0 45%;
    align-self: stretch;
}

.exp-bento-card--tall .exp-bento-card-visual {
    flex: 0 0 40%;
    align-self: stretch;
}

.exp-bento-card--export .exp-bento-card-visual {
    flex: 0 0 35%;
    align-self: stretch;
}

/* --- Mock UI Elements --- */
.exp-mock-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--exp-bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}

.exp-mock-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.exp-mock-tag--green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.exp-mock-tag--blue {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.exp-mock-tag--orange {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.exp-mock-date {
    font-size: 0.85rem;
    color: var(--exp-text-muted);
    direction: ltr;
}

.exp-mock-employee {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--exp-bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}

.exp-mock-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-cta);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.exp-mock-avatar--alt {
    background: #22c55e;
}

.exp-mock-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--exp-text-main);
}

.exp-mock-role {
    font-size: 0.8rem;
    color: var(--exp-text-muted);
}

.exp-mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 140px;
    width: 100%;
}

.exp-mock-chart-bar {
    flex: 1;
    border-radius: 8px 8px 0 0;
    transition: height 0.6s ease;
}

.exp-mock-export {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.exp-mock-file {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--exp-bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--exp-text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.exp-mock-file svg {
    color: var(--primary-cta);
    flex-shrink: 0;
}

/* =========================================
   VALUE PROPOSITION — Connected Flow
   ========================================= */
.exp-value-theme {
    background: var(--primary-background);
    background-image: radial-gradient(rgba(10, 25, 47, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--exp-text-main);
}

.exp-value-theme .exp-section-header h2 {
    color: var(--exp-text-main);
}

.exp-value-theme .exp-section-header p {
    color: var(--exp-text-muted);
}

.exp-value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 16px;
    max-width: 800px;
    margin-inline: auto;
}

.exp-value-card {
    background: var(--exp-bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--exp-border-radius);
    padding: 36px 36px 36px 80px;
    position: relative;
    transition: var(--exp-transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-value-card + .exp-value-card {
    margin-top: -1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.exp-value-card:nth-child(2) {
    border-radius: 0;
}

.exp-value-card:first-child {
    border-radius: var(--exp-border-radius) var(--exp-border-radius) 0 0;
}

.exp-value-card:last-child {
    border-radius: 0 0 var(--exp-border-radius) var(--exp-border-radius);
}

.exp-value-card:hover {
    z-index: 1;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.06);
    border-color: #c7d2e0;
}

.exp-value-number {
    position: absolute;
    top: 36px;
    left: 32px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cta) 0%, rgba(76, 62, 221, 0.8) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.exp-value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(76, 62, 221, 0.08);
    color: var(--primary-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.exp-value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--exp-text-main);
}

.exp-value-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--exp-text-muted);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .exp-empathy-cards {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .exp-empathy-card:first-child {
        grid-row: auto;
    }

    .exp-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .exp-bento-card--wide {
        flex-direction: column;
    }

    .exp-bento-card--wide .exp-bento-card-visual {
        flex: none;
        min-height: 200px;
    }

    .exp-bento-card--tall {
        grid-column: 1;
        grid-row: auto;
        flex-direction: column;
    }

    .exp-bento-card--tall .exp-bento-card-visual {
        flex: none;
        min-height: 200px;
    }

    .exp-bento-card--chart {
        grid-column: 1;
        grid-row: auto;
    }

    .exp-bento-card--export {
        grid-column: 1;
        grid-row: auto;
        flex-direction: column;
    }

    .exp-bento-card--export .exp-bento-card-visual {
        flex: none;
        min-height: 160px;
    }
}

@media (max-width: 600px) {
    .exp-section-header h2 {
        font-size: 1.8rem;
    }

    .exp-section-header {
        margin-bottom: 36px;
    }

    .exp-empathy-card {
        padding: 30px 24px;
    }

    .exp-empathy-card:first-child {
        padding: 36px 24px;
    }

    .exp-empathy-card:first-child .exp-empathy-icon {
        width: 72px;
        height: 72px;
    }

    .exp-empathy-card:first-child h3 {
        font-size: 1.25rem;
    }

    .exp-bento-card-content {
        padding: 24px;
    }

    .exp-value-card {
        padding: 28px 24px 28px 64px;
    }

    .exp-value-number {
        top: 28px;
        left: 24px;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .exp-reveal {
        transition: opacity 0.2s linear;
        transform: none;
    }

    .exp-empathy-card,
    .exp-bento-card,
    .exp-value-card {
        transition: box-shadow 0.2s linear;
        transform: none !important;
    }
}
