/*
 * Frosted Tier Preview (dase_platform)
 * Fleet-wide UI pattern for surfacing locked features on lower tiers.
 * Design source: DASE_BUFF_CUSTOMER_UI_LAYOUT_v1_1_2026-07-11.md §24
 *
 * Usage:
 *   <div class="buff-panel frost-zone">
 *     <div class="buff-panel-h">...</div>
 *     <div aria-hidden="true">
 *       ...placeholder content (fake numbers, sample values, realistic layout)...
 *     </div>
 *     <div class="frost-overlay">
 *       <div class="frost-lockup">
 *         <div class="frost-lockup-icon"><i class="ti ti-lock"></i></div>
 *         <div class="frost-lockup-h">Available on Max</div>
 *         <div class="frost-lockup-body">One-liner value prop.</div>
 *         <button class="buff-btn pri">Upgrade</button>
 *       </div>
 *     </div>
 *   </div>
 *
 * Guardrails (v1.1 §24.5):
 *   - Whole tabs never frost. Frost applies to zones inside a tab only.
 *   - Onboarding surfaces stay clean, no frost during setup.
 *   - Customer-type gates (Individual vs Company) hide entirely, they do not frost.
 *   - One lockup per contiguous zone. Do not stack multiple lockups.
 *   - Underlying content stays visible in a plausible placeholder state.
 */

/* Zone wrapper: any container that holds locked content */
.frost-zone {
    position: relative;
    overflow: hidden;
}

/* Overlay: teal tint + blur, sits on top of placeholder content */
.frost-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 172, 189, 0.13);
    backdrop-filter: blur(2.5px) saturate(1.05);
    -webkit-backdrop-filter: blur(2.5px) saturate(1.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2;
    /* Fallback for browsers without backdrop-filter support */
    background-color: rgba(218, 240, 243, 0.72);
}

/* Cross-browser fallback when backdrop-filter is supported: rely on tint only */
@supports (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px)) {
    .frost-overlay {
        background-color: rgba(0, 172, 189, 0.13);
    }
}

/* Lockup: centred content stack with icon, headline, body, CTA */
.frost-lockup {
    text-align: center;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.frost-lockup-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #087683;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.frost-lockup-icon i { font-size: 20px; }

.frost-lockup-h {
    font-size: 15px;
    font-weight: 500;
    color: #087683;
    letter-spacing: -0.01em;
}

.frost-lockup-body {
    font-size: 13px;
    color: #444441;
    line-height: 1.5;
    max-width: 280px;
    margin-bottom: 4px;
}

/* Small-zone variant (single card / stat card): tighter lockup */
.frost-zone.frost-zone-sm .frost-overlay { padding: 12px; }
.frost-zone.frost-zone-sm .frost-lockup { gap: 4px; }
.frost-zone.frost-zone-sm .frost-lockup-icon {
    width: 32px; height: 32px; margin-bottom: 2px;
}
.frost-zone.frost-zone-sm .frost-lockup-icon i { font-size: 15px; }
.frost-zone.frost-zone-sm .frost-lockup-h { font-size: 13px; }
.frost-zone.frost-zone-sm .frost-lockup-body {
    font-size: 11.5px; max-width: 200px;
}

/* Ensure placeholder content underneath does not steal focus or clicks */
.frost-zone > [aria-hidden="true"] {
    pointer-events: none;
    user-select: none;
}

/* Reduced motion: no animation on the tint (nothing to animate today, keeps
   the rule explicit for future hover reveals) */
@media (prefers-reduced-motion: reduce) {
    .frost-overlay { transition: none; }
}

/* Mobile */
@media (max-width: 768px) {
    .frost-overlay { padding: 16px; }
    .frost-lockup-body { font-size: 12.5px; }
}
