/* Layers: gold-stripe BG → individual cards → HTML price/feature overlays. */
.ub-product-map {
    position: relative;
    max-width: 42rem;
    margin: .85rem auto 1rem;
    border-radius: 14px;
    overflow: hidden;
    background: #1a140c;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.ub-product-map__stage {
    position: relative;
    padding: 1.1rem .85rem 1.15rem;
    background-color: #1a140c;
    background-image: var(--ub-product-map-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ub-product-map__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    align-items: stretch;
}
.ub-product-map__hit {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-radius: .85rem;
    outline: none;
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}
.ub-product-map[data-product-map-mode="static"] .ub-product-map__hit {
    cursor: default;
}
.ub-product-map__card {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: .85rem;
    pointer-events: none;
    user-select: none;
}
.ub-product-map__overlay {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .28rem;
    margin: 0;
    padding: .4rem .35rem .35rem;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-align: center;
    pointer-events: none;
}
/* Free: open light footer. YP/Pro: raised plate above logo, stronger contrast. */
.ub-product-map__hit--student .ub-product-map__overlay {
    bottom: 20%;
    background: rgba(255, 252, 245, .94);
    box-shadow: 0 2px 12px rgba(40, 24, 4, .25);
}
.ub-product-map__hit--professional .ub-product-map__overlay {
    bottom: 20%;
    background: rgba(18, 10, 6, .78);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.ub-product-map__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .16rem;
    width: 100%;
}
.ub-product-map__features li {
    position: relative;
    padding-left: 0.95rem;
    font-size: clamp(.62rem, 1.15vw, .78rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}
.ub-product-map__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}
.ub-product-map__prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    width: 100%;
    margin-top: .1rem;
}
.ub-product-map__price {
    display: flex;
    align-items: center;
    gap: .22rem;
    min-width: 0;
}
.ub-product-map__price-link {
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
    padding: .2rem .28rem;
    margin: -.2rem -.28rem;
    border-radius: .4rem;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.ub-product-map__hit--student .ub-product-map__price-link:hover,
.ub-product-map__hit--student .ub-product-map__price-link:focus-visible {
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1px rgba(40, 24, 4, .25);
    outline: none;
}
.ub-product-map__hit--professional .ub-product-map__price-link:hover,
.ub-product-map__hit--professional .ub-product-map__price-link:focus-visible {
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 1px rgba(224, 192, 112, .55);
    outline: none;
}
.ub-product-map__price--single {
    justify-content: center;
}
.ub-product-map__amount {
    font-size: clamp(1.28rem, 2.6vw, 1.7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.ub-product-map__unit {
    font-size: clamp(.62rem, 1.1vw, .74rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    opacity: 1;
}
.ub-product-map__price-split {
    width: 1px;
    align-self: stretch;
    min-height: 1.55rem;
    background: currentColor;
    opacity: .28;
}
/* Free / YP plates → near-black prices (override global link gold). */
.ub-product-map__hit--free .ub-product-map__features li,
.ub-product-map__hit--student .ub-product-map__features li {
    color: #14110c;
    text-shadow: none;
}
.ub-product-map__hit--free .ub-product-map__features li::before,
.ub-product-map__hit--student .ub-product-map__features li::before {
    color: #1c1810;
}
.ub-product-map__hit--free .ub-product-map__prices,
.ub-product-map__hit--student .ub-product-map__prices,
.ub-product-map__hit--free .ub-product-map__price,
.ub-product-map__hit--student .ub-product-map__price,
.ub-product-map__hit--free .ub-product-map__price-link,
.ub-product-map__hit--student .ub-product-map__price-link,
.ub-product-map__hit--free .ub-product-map__amount,
.ub-product-map__hit--student .ub-product-map__amount,
.ub-product-map__hit--free .ub-product-map__unit,
.ub-product-map__hit--student .ub-product-map__unit {
    color: #0d0b08 !important;
    -webkit-text-fill-color: #0d0b08;
    text-shadow: none;
}
.ub-product-map__hit--free .ub-product-map__unit,
.ub-product-map__hit--student .ub-product-map__unit {
    color: #2a2418 !important;
    -webkit-text-fill-color: #2a2418;
}
/* Professional plate → bright prices on dark plate */
.ub-product-map__hit--professional .ub-product-map__features li,
.ub-product-map__hit--professional .ub-product-map__prices,
.ub-product-map__hit--professional .ub-product-map__price,
.ub-product-map__hit--professional .ub-product-map__price-link,
.ub-product-map__hit--professional .ub-product-map__amount,
.ub-product-map__hit--professional .ub-product-map__unit {
    color: #fff6df !important;
    -webkit-text-fill-color: #fff6df;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.ub-product-map__hit--professional .ub-product-map__features li::before {
    color: #e8c878;
}
.ub-product-map__hit--professional .ub-product-map__unit {
    color: #f0e0b8 !important;
    -webkit-text-fill-color: #f0e0b8;
}
.ub-product-map__hit:hover,
.ub-product-map__hit:focus-visible {
    z-index: 2;
    box-shadow: 0 0 0 2px rgba(212, 175, 95, .85);
    transform: translateY(-2px);
}
.ub-product-map__hit.is-selected {
    box-shadow: 0 0 0 2px rgba(212, 175, 95, .95);
}
/* Paid link-mode cards are containers; don't look like a single dead hit. */
.ub-product-map[data-product-map-mode="link"] .ub-product-map__hit--student,
.ub-product-map[data-product-map-mode="link"] .ub-product-map__hit--professional {
    cursor: default;
}
.ub-product-map[data-product-map-mode="link"] .ub-product-map__hit--student:hover,
.ub-product-map[data-product-map-mode="link"] .ub-product-map__hit--professional:hover {
    transform: none;
}
@media (max-width: 720px) {
    .ub-product-map {
        max-width: none;
    }
    .ub-product-map__stage {
        padding: .75rem .65rem .9rem;
    }
    .ub-product-map__cards {
        grid-template-columns: 1fr;
        gap: .65rem;
        max-width: 18rem;
        margin: 0 auto;
    }
    .ub-product-map__overlay {
        bottom: 5%;
        padding: .5rem .45rem .45rem;
    }
    .ub-product-map__hit--student .ub-product-map__overlay,
    .ub-product-map__hit--professional .ub-product-map__overlay {
        bottom: 18%;
    }
    .ub-product-map__features li {
        font-size: .78rem;
    }
    .ub-product-map__amount {
        font-size: 1.55rem;
    }
    .ub-product-map__unit {
        font-size: .72rem;
    }
}
