/* ============================================================
   Integrations · main page brand cards
   Colors driven entirely by CSS variables on the .brand-card
   element, so we don't depend on which Tailwind utilities are
   compiled in malambi-tailwind.css.
   ============================================================ */

.brand-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Brand strip (top) — full-width gradient header */
.brand-card .brand-strip {
    padding: 22px 24px 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light, var(--brand)) 100%);
    position: relative;
}
.brand-card .brand-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.18) 0%, transparent 40%),
        radial-gradient(circle at 10% 110%, rgba(0,0,0,.14) 0%, transparent 40%);
    pointer-events: none;
}
.brand-card .brand-strip > * { position: relative; z-index: 1; }

.brand-card .brand-strip-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

/* Logo pill — placeholder typographic mark.
   Replace `.brand-mark-pill` content with <img src="/images/integrations/logos/X.svg"> later. */
.brand-card .brand-mark-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .96);
    color: var(--brand);
    padding: 5px 14px 5px 5px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
    font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}
.brand-card .brand-mark-pill .mark {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.5px;
    flex-shrink: 0;
}
.brand-card .brand-mark-pill .name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.3px;
    line-height: 1.1;
}
.brand-card .brand-mark-pill .name small {
    font-weight: 500;
    font-size: 13px;
    opacity: .55;
    letter-spacing: 0;
}

/* KPI block (top right) */
.brand-card .brand-kpi {
    text-align: right;
    line-height: 1;
}
.brand-card .brand-kpi-num {
    font-size: 30px;
    font-weight: 800;
    color: #FFD27D;
    line-height: 1;
    letter-spacing: -1px;
}
.brand-card .brand-kpi-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 5px;
    opacity: .9;
    font-weight: 600;
}

/* Country/origin meta line */
.brand-card .brand-meta {
    margin-top: 14px;
    font-size: 13px;
    opacity: .92;
}

/* Body */
.brand-card .brand-body {
    padding: 22px 24px 18px;
    flex: 1;
}
.brand-card .brand-body > p {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Sub-tiles with brand-colored left accent */
.brand-card .brand-tiles {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    grid-template-columns: repeat(2, 1fr);
}
.brand-card .brand-tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 640px) {
    .brand-card .brand-tiles,
    .brand-card .brand-tiles.cols-3 { grid-template-columns: 1fr; }
}

.brand-card .brand-tile {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #f3f4f6;
}
.brand-card .brand-tile-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 13px;
}
.brand-card .brand-tile-models {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

/* Capability chips */
.brand-card .brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}
.brand-card .brand-chip {
    background: var(--brand-soft, rgba(0, 0, 0, .05));
    color: var(--brand);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.brand-card .brand-chip i { font-size: 9px; }

/* Footer CTA bar */
.brand-card .brand-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 24px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}
.brand-card .brand-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: gap .15s ease;
}
.brand-card .brand-cta:hover {
    gap: 9px;
    text-decoration: none;
}
.brand-card .brand-cta i { font-size: 11px; }
.brand-card .brand-foot-link {
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.brand-card .brand-foot-link:hover { color: var(--brand); }
.brand-card .brand-foot-link i { font-size: 10px; }

/* Mobile tweaks */
@media (max-width: 640px) {
    .brand-card .brand-kpi-num { font-size: 26px; }
    .brand-card .brand-strip { padding: 18px 18px 16px; }
    .brand-card .brand-body { padding: 18px 18px 14px; }
    .brand-card .brand-foot { padding: 12px 18px; }
}
