/* ============================================================================
   Oculato — brand assets
   Provider logos (light / knockout variants) and real card artwork.
   Loaded after app-v2.css, so these rules intentionally refine its defaults.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Logo plates
   Every mark sits on a fully opaque white plate with a hairline border: this
   keeps black wordmarks readable in dark mode and gives wide/narrow marks the
   same optical weight.
   -------------------------------------------------------------------------- */

.provider-mark,
.cmp-head__brand,
.picker__provider,
.plan-visual__brand {
    background: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.11),
        0 1px 2px rgba(8, 10, 16, 0.06);
}

.provider-mark {
    min-width: 62px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
}

.provider-logo {
    display: block;
    width: auto;
    max-width: 80px;
    height: 18px;
    object-fit: contain;
    object-position: center;
}

/* Logo sizes inside plates: see the "Logo plates" section of app-system.css. */





/* Text fallback (provider without a trustworthy vector) */
.provider-logo--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    height: auto;
    color: #1d1d1f;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.provider-logo--carta-you {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.012em;
    text-transform: none;
}

/* White knockout variants stay transparent, with a soft shadow for legibility. */
.provider-logo--knockout {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.plan-visual__brand.plan-visual__brand--knockout {
    min-height: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Plan visual — logo plate
   -------------------------------------------------------------------------- */

.plan-visual__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(20px, 7.4cqw, 30px);
    padding: clamp(2px, 0.9cqw, 4px) clamp(4px, 1.7cqw, 8px);
    border-radius: 6px;
    line-height: 1;
}

.provider-logo--visual {
    height: clamp(11px, 4.3cqw, 19px);
    max-width: clamp(56px, 24cqw, 104px);
}

.provider-logo--visual.provider-logo--n26 {
    height: clamp(13px, 4.4cqw, 20px);
    max-width: clamp(28px, 10cqw, 44px);
}

.provider-logo--visual.provider-logo--amex {
    height: clamp(18px, 7cqw, 30px);
    max-width: clamp(18px, 7cqw, 30px);
}

.provider-logo--visual.provider-logo--revolut {
    height: clamp(11px, 4.3cqw, 19px);
    max-width: clamp(52px, 23cqw, 96px);
}

.provider-logo--visual.provider-logo--advanzia {
    height: clamp(12px, 4.5cqw, 20px);
    max-width: clamp(58px, 25cqw, 104px);
}

.provider-logo--visual.provider-logo--bbva {
    height: clamp(10px, 4cqw, 18px);
    max-width: clamp(48px, 22cqw, 90px);
}

.plan-visual .provider-logo--text {
    height: auto;
    max-width: none;
    font-size: clamp(8.5px, 3.1cqw, 12.5px);
    letter-spacing: 0.03em;
}

.plan-visual .provider-logo--carta-you {
    font-size: clamp(9px, 3.2cqw, 13px);
    letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   Compare matrix + picker plates
   -------------------------------------------------------------------------- */

.cmp-head__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 8px;
    margin-bottom: 9px;
    border-radius: 8px;
}

.provider-logo--compare {
    height: 15px;
    max-width: 64px;
}






.picker__provider {
    box-sizing: border-box;
    width: 100%;
    min-height: 27px;
    padding: 3px 4px;
    border-radius: 7px;
}

.provider-logo--picker {
    height: 14px;
    max-width: 100%;
}



.picker__provider .provider-logo--text {
    font-size: 11px;
    letter-spacing: 0;
}

.picker__provider .provider-logo--carta-you {
    font-size: 11.5px;
}


/* --------------------------------------------------------------------------
   Real card artwork
   A photo/render sits in the same 1.586 card frame used by the stylised
   fallback. object-fit: contain means nothing is ever cropped; plans without an
   asset keep the generated SVG card untouched.
   -------------------------------------------------------------------------- */

.plan-visual--photo {
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.plan-visual--photo .plan-visual__photo-frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter:
        drop-shadow(0 2px 4px rgba(8, 10, 16, 0.16))
        drop-shadow(0 10px 18px rgba(8, 10, 16, 0.18));
}

.plan-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    /* The card artwork itself has rounded, transparent corners; the frame's
       shadow supplies the depth without adding any white matte. */
    clip-path: none;
}

/* Real cards should float, not sit inside a tinted halo. */
.card-stage:has(.plan-visual--photo)::before {
    display: none;
}

.result-card .plan-visual--photo {
    border-radius: 0;
    box-shadow: none;
}

/* Compare picker: logos centred inside their plate, never overflowing it. */
.picker__provider {
    justify-content: center;
    overflow: hidden;
}

.provider-logo--picker,
.provider-logo--picker.provider-logo--advanzia {
    max-width: 100%;
    max-height: 100%;
}
