/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    background-color: #FAF7F3;
    overflow: hidden;
}

/* --- Layout Container --- */
.container {
    width: 100vw;
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 576fr) repeat(2, minmax(0, 430fr));
    gap: clamp(4px, 0.53vw, 8px);
    background-color: #f7f6f4;
    padding: clamp(10px, 1.32vw, 20px) clamp(10px, 1.98vw, 30px);
}

/* --- Info Section (Left Column) --- */
.info-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    padding: 0 clamp(12px, 3.57vw, 54px) clamp(20px, 3.97vw, 60px) clamp(14px, 2.91vw, 44px);
}

.brand-title {
    font-size: clamp(12px, 1.72vw, 26px);
    line-height: 1.1;
    font-weight: 600;
    color: #000000;
    margin-bottom: clamp(3px, 0.4vw, 6px);
}

.brand-subtitle {
    font-size: clamp(7px, 0.93vw, 14px);
    line-height: 1;
    font-weight: 600;
    color: #000000;
    margin-bottom: clamp(18px, 3.7vw, 56px);
}

.cta-text {
    max-width: 337px;
    font-size: clamp(8px, 1.19vw, 18px);
    line-height: 1;
    font-weight: 600;
    color: #000000;
}

/* --- Base Card Styles (Middle & Right Columns) --- */
.card {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: clamp(4px, 0.53vw, 8px);
    overflow: hidden;
    text-decoration: none;
}

.card:focus-visible {
    outline: 2px solid #0098ff;
    outline-offset: -2px;
}

.card-body {
    padding: clamp(22px, 4.37vw, 66px) clamp(8px, 1.85vw, 28px) clamp(10px, 1.59vw, 24px);
    display: flex;
    justify-content: center;
}

/* --- Card Specific Colors --- */
.card-ubrain {
    background-color: #75624D;
    color: #181818;
}

.card-unused {
    background-color: #FAAD35;
    color: #000000;
}

/* --- Logo Images inside Cards --- */
.brand-logo {
    display: block;
    width: min(58%, 230px);
    height: auto;
    object-fit: contain;
}

.brand-logo-unused {
    width: min(62%, 260px);
}

/* --- Card Footer Buttons --- */
.card-footer {
    display: block;
    text-align: center;
    margin: 0 clamp(5px, 0.79vw, 12px);
    padding: clamp(14px, 2.38vw, 36px) clamp(6px, 1.06vw, 16px) clamp(13px, 2.25vw, 34px);
    font-size: clamp(7px, 0.93vw, 14px);
    line-height: 1;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.2s, background-color 0.2s;
}

.card-ubrain .card-footer {
    border-top: 1px solid #604B34;
}

.card-unused .card-footer {
    color: #ffffff;
    border-top: 1px solid #C9841A;
}

/* --- Mobile Layout --- */
@media (max-width: 767px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1.45fr 1fr 1fr;
        gap: 14px;
        padding: 28px 20px;
    }

    .info-section {
        padding: 44px 18px 18px;
        justify-content: flex-start;
    }

    .brand-title {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .brand-subtitle {
        font-size: 10px;
        margin-bottom: 38px;
    }

    .cta-text {
        max-width: 260px;
        font-size: 13px;
        line-height: 1.15;
    }

    .card {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .card-body {
        flex: 1;
        align-items: center;
        padding: 18px;
    }

    .brand-logo {
        width: min(50%, 170px);
    }

    .brand-logo-unused {
        width: min(56%, 190px);
    }

    .card-footer {
        margin: 0 12px;
        padding: 16px 10px 15px;
        font-size: 12px;
    }
}
