/* =========================
   LICENSE CARDS
========================= */

.license-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 128px;
    margin-top: 60px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.license-item-card {
    width: 320px;
    padding: 24px;
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.night-mode .license-item-card {
    background-color: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.license-item-card img {
    width: 90px;
    height: 90px;
}

.license-item-card h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1.2;
}

.license-item-card h1 {
    font-size: 48px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.license-item-card p {
    color: gray;
    font-size: 16px;
}

.night-mode .license-item-card p {
    color: rgba(255, 255, 255, 0.7);
}

.license-item-card h4 {
    margin-top: 28px;
    margin-bottom: 16px;
    font-weight: 600;
}

.license-item-card ul {
    padding-left: 20px;
    margin: 0;
}

.license-item-card li {
    margin-bottom: 10px;
}

/* =========================
   BUTTONS
========================= */

.checkout-button,
.select-license-button {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 18px;
    background-color: #4d45db;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.checkout-button:hover,
.select-license-button:hover {
    background-color: #352bed;
}

.back-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 16px;
    margin-top: 14px;

    background-color: rgba(120, 120, 120, 0.15);

    color: inherit;
    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: rgba(120, 120, 120, 0.25);
}

/* =========================
   CHECKOUT PAGE
========================= */

.checkout-page {
    display: none;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.checkout-card {
    width: 360px;
}

.checkout-card h1 {
    text-align: center;
    margin-bottom: 20px;
}

.summary-card {
    text-align: left;
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.night-mode .summary-card {
    background-color: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-section,
.price-section,
.email-section {
    padding: 0 20px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.25);
}

.item-section p:first-child,
.price-section-label,
.email-section p {
    color: gray;
}

.price-section {
    display: flex;
    justify-content: space-between;
}

.price-section-price {
    font-weight: bold;
}

.email-section input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #ccc;
    font-size: 16px;
    text-indent: 14px;
    box-sizing: border-box;
    margin-bottom: 20px;
    outline: none;
}

.night-mode .email-section input {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.checkout-section {
    padding: 20px;
}

/* =========================
   FOOTER
========================= */

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    backdrop-filter: blur(10px);
    width: 100%;
}

.footer p {
    margin: 0;
}

/* =========================
   MOBILE
========================= */

@media only screen and (max-width: 768px) {

    body {
        padding: 0;
    }

    .license-container,
    .checkout-page {
        padding: 0 16px;
    }

    .license-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }

    .license-item-card {
        width: 100%;
        max-width: 360px;
    }

.license-item-card h2 {
    font-size: 24px;
}

.license-item-card h1 {
    font-size: 42px;
}

    .checkout-card {
        width: 100%;
        max-width: 360px;
    }
}