/* ============================================================
   .uk-enterprise-banner — proposed canonical embedded enterprise CTA (loaded only on /docs/ui-kit)
   ============================================================
   Replaces the embedded enterprise CTA block on `/pricing` in
   `public/css/pricing.css`:

     .enterprise-banner            -> .uk-enterprise-banner                  (root row + gradient bg + radius)
     .enterprise-banner::before    -> .uk-enterprise-banner::before           (3-px top accent gradient)
     .enterprise-banner::after     -> .uk-enterprise-banner::after            (corner dot-pattern decoration)
     .enterprise-banner:hover      -> hover lift + glow
     .enterprise-info              -> .uk-enterprise-banner-info              (icon + label/desc cluster)
     .enterprise-icon              -> .uk-enterprise-banner-icon              (gradient-tinted icon-box)
     .enterprise-name              -> .uk-enterprise-banner-name              (semibold lg)
     .enterprise-price-tag         -> .uk-enterprise-banner-price-tag         (small primary pill)
     .enterprise-desc              -> .uk-enterprise-banner-desc              (muted body)
     .enterprise-highlights        -> .uk-enterprise-banner-highlights        (chip row)
     .enterprise-highlights span   -> .uk-enterprise-banner-highlight         (single chip)
     .enterprise-cta               -> .uk-enterprise-banner-cta               (button slot)

   Distinct from `.uk-alert-banner` (Tier 1.6):
     – `.uk-alert-banner` is a one-line marketing banner with a single
       icon + body + optional CTA. Used for "trial included", "new feature
       shipped" beats. Tonal but understated.
     – `.uk-enterprise-banner` is the full embedded enterprise tier
       inside the pricing grid. Three distinct content zones (info /
       highlights / CTA), gradient background, gradient top accent bar,
       decorative dot-pattern at the corner. Reads as a "premium tier"
       within the pricing context — not a bare notice.

   Composes with: nothing strict — the inner CTA expects
   `.btn` + `.btn-primary` (or whatever brand button feels right). The
   icon slot expects an inline `<svg>` direct child; the gradient chrome
   is owned here rather than composing uk-icon-box because the gradient
   bg + border treatment isn't a standard uk-icon-box tone.
   ============================================================ */

/* ============================================
   Root — horizontal row, gradient bg, radius-xl
   ============================================
   `position: relative` for the ::before and ::after decorations to
   anchor against. `overflow: hidden` clips both into the radius.
   `align-items: center` so the three content zones (info / highlights /
   cta) stay vertically aligned even when their heights differ.
   ============================================ */
.uk-enterprise-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(
        135deg,
        rgba(var(--color-primary-rgb), 0.08) 0%,
        rgba(var(--color-primary-rgb), 0.02) 50%,
        rgba(var(--color-accent-rgb), 0.04) 100%
    );
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

/* 3-px top accent gradient bar */
.uk-enterprise-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-primary-light) 50%,
        var(--color-accent) 100%
    );
}

/* Corner dot-pattern decoration (top-right, masked to fade out) */
.uk-enterprise-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(
        circle,
        rgba(var(--color-primary-rgb), 0.06) 1px,
        transparent 1px
    );
    background-size: 12px 12px;
    -webkit-mask-image: radial-gradient(circle at top right, black, transparent 70%);
    mask-image: radial-gradient(circle at top right, black, transparent 70%);
    pointer-events: none;
}

.uk-enterprise-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--color-primary-rgb), 0.35);
    box-shadow: 0 4px 24px rgba(var(--color-primary-rgb), 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .uk-enterprise-banner:hover {
        transform: none;
    }
}

/* ============================================
   Info slot — icon + name/price/desc cluster (left column)
   ============================================
   `position: relative` + `z-index: 1` so the info content sits above the
   ::after dot-pattern decoration. `min-width: 0` lets long descriptions
   wrap inside the flex row instead of forcing a horizontal scrollbar.
   ============================================ */
.uk-enterprise-banner-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
    position: relative;
    z-index: 1;
}

.uk-enterprise-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(
        135deg,
        rgba(var(--color-primary-rgb), 0.15),
        rgba(var(--color-accent-rgb), 0.08)
    );
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    border-radius: var(--radius-lg);
    color: var(--color-primary-light);
}

.uk-enterprise-banner-icon > svg {
    width: var(--icon-lg);
    height: var(--icon-lg);
    color: currentColor;
    stroke: currentColor;
}

.uk-enterprise-banner-name {
    color: var(--color-text);
    font-size: var(--font-lg);
    font-weight: 600;
    line-height: var(--line-snug);
}

.uk-enterprise-banner-price-tag {
    display: inline-block;
    margin-left: var(--space-sm);
    padding: 2px 10px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: var(--radius-full);
    color: var(--color-primary-light);
    font-size: var(--font-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.uk-enterprise-banner-desc {
    margin-top: 2px;
    color: var(--color-text-secondary);
    font-size: var(--font-md);
    line-height: var(--line-snug);
}

/* ============================================
   Highlights slot — chip row (middle column)
   ============================================
   Pill-shaped chips with a small leading svg (success-tinted check by
   default). Stays on one line in the desktop layout — `flex-shrink: 0`
   on the wrapper keeps them from squishing.
   ============================================ */
.uk-enterprise-banner-highlights {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.uk-enterprise-banner-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(var(--color-primary-rgb), 0.06);
    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    white-space: nowrap;
}

.uk-enterprise-banner-highlight > svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--color-success);
    stroke: currentColor;
}

/* ============================================
   CTA slot — button on the right
   ============================================ */
.uk-enterprise-banner-cta {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ============================================
   Mobile — wrap to a column
   ============================================
   Below 900 px the row layout doesn't fit. Stack vertically: info on
   top, highlights wrap, CTA stretches to full width. Adjust padding
   so the dense corner dot-pattern doesn't dominate the smaller card.
   ============================================ */
@media (max-width: 900px) {
    .uk-enterprise-banner {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        padding: var(--space-lg);
    }

    .uk-enterprise-banner-highlights {
        flex-wrap: wrap;
    }

    .uk-enterprise-banner-cta {
        align-self: stretch;
    }

    .uk-enterprise-banner-cta .btn {
        width: 100%;
    }

    .uk-enterprise-banner::after {
        width: 140px;
        height: 140px;
    }
}
