/* ============================================================
   Integrations · Brand detail pages — shared styles
   ============================================================ */

/* Brand hero — background gradient driven by --brand custom prop */
.brand-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light, var(--brand)) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.brand-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.15) 0%, transparent 35%),
        radial-gradient(circle at 80% 90%, rgba(255,255,255,.1) 0%, transparent 40%);
    pointer-events: none;
}
.brand-hero > * { position: relative; z-index: 1; }

/* Logo block — placeholder typography card. Swap with <img> when you have the real logo. */
.brand-logo-block {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.95);
    color: var(--brand);
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}
.brand-logo-block .brand-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -1px;
}
.brand-logo-block .brand-logo-name {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.5px;
}

/* KPI tiles inside the hero */
.brand-hero .kpi-tile {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}
.brand-hero .kpi-tile .kpi-num {
    font-size: 28px;
    font-weight: 800;
    color: #FFD27D;
    line-height: 1;
}
.brand-hero .kpi-tile .kpi-label {
    margin-top: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.85);
}

/* Device illustration wrapper */
.device-illu-wrap {
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}
.device-illu-wrap .device-illu {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
}
.device-illu-wrap .device-caption {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,.7);
}

/* Model cards — compact tile per model, with port badge */
.model-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: -apple-system, "SF Mono", Menlo, Consolas, monospace;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.model-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.model-card .port-tag {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: inherit;
}

/* Standalone port tag — used for ports lists outside model-card */
.port-tag-block {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: -apple-system, "SF Mono", Menlo, Consolas, monospace;
    line-height: 1.3;
}

/* Generic info badge */
.badge-new {
    display: inline-block;
    background: #ecfeff;
    color: #0e7490;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 8px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .brand-hero .kpi-tile .kpi-num { font-size: 22px; }
    .brand-logo-block { padding: 8px 12px; }
    .brand-logo-block .brand-logo-mark { width: 32px; height: 32px; font-size: 18px; }
    .brand-logo-block .brand-logo-name { font-size: 18px; }
}
