/* ---- Framed package cards ---- */

.pkg-card {
    display: flex;
    flex-direction: column;
    height: 100%;              /* both cards stretch to the same height */
    width: 100%;
    padding: 28px 28px 32px;
    border: 1px solid rgba(240, 176, 74, 0.7);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    container-type: inline-size;   /* lets the images size themselves from the card width */
}

.pkg-badge {
    align-self: flex-start;
    padding: 6px 16px;
    border: 1px solid rgba(240, 176, 74, 0.55);
    border-radius: 999px;
    background: rgba(240, 176, 74, 0.12);
    color: #f0b04a;
    font-size: 0.95rem;
    line-height: 1.3;
}

.pkg-text {
    margin: 16px 0 24px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

/* Image row, pinned to the bottom of an equal-height card.
   Phone and tablet share one height (--phone-h). The tablet artwork has
   transparent space above it, so --tablet-lift pulls it up until its
   visible top edge meets the phone's. */
.pkg-media {
    --phone-h: 480px;              /* fallback for old browsers */
    --tablet-lift: 0.155;          /* raise to lift the tablet more */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    height: var(--phone-h);
    margin-top: auto;
}

@supports (width: 1cqw) {
    .pkg-media {
        /* image height follows the card width: bigger card, bigger images.
           Change 90cqw to make them larger or smaller (max about 95cqw). */
        --phone-h: min(90cqw, 520px);
    }
}

.pkg-media img {
    flex: none;
    height: var(--phone-h);
    width: auto;
}

.pkg-media img:last-child {
    margin-top: calc(var(--phone-h) * var(--tablet-lift) * -1);
}

@media (max-width: 575px) {
    .pkg-card { padding: 20px 18px 24px; }
    .pkg-media { gap: 10px; }
}