/* blocks_extend — scoped styles. Split header, then labelled tiers: toolkit
   cards with the Flow / Klaviyo seals, and a ruled developer-links strip.
   Header type mirrors blocks_card_grid / blocks_phase_columns.
   Plain CSS, not Tailwind utilities (WindPress only JIT-compiles in admin). */

.blocks-extend {
    position: relative;
    z-index: 1; /* over the theme's .header-shader-overlay tail */
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.bex__inner {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
@media (min-width: 1024px) {
    .bex__inner {
        padding: 120px 20px;
        gap: 48px;
    }
}

/* ---- Header ---- */

.bex__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 1024px) {
    .bex__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: 80px;
        padding-bottom: 12px;
    }
}
.bex__heading {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    min-width: 0;
}
.bex__eyebrow {
    margin: 0;
    color: #5e4c92;
    font-weight: 700;
    font-size: 13.75px;
    line-height: 17px;
    letter-spacing: 0.275px;
    text-transform: uppercase;
}
.bex__h2 {
    margin: 0;
    color: #130041;
    font-weight: 900;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
@media (min-width: 1024px) {
    .bex__h2 {
        font-size: 50px;
    }
}
.bex__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 440px;
    color: #3d464d;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .bex__intro {
        font-size: 16px;
    }
}
.bex__intro p {
    margin: 0;
    color: inherit; /* the theme colours bare <p> */
}

/* ---- Tier labels ---- */

.bex__tier-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.bex__tier {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.75px;
    line-height: 17px;
}
.bex__tier-label {
    color: #5e4c92;
    font-weight: 700;
    letter-spacing: 0.275px;
    text-transform: uppercase;
    white-space: nowrap;
}
.bex__tier-rule {
    flex: 1 1 auto;
    height: 1px;
    background: #e0e0e5;
}
.bex__tier-sub {
    color: #75797c;
    font-weight: 500;
    white-space: nowrap;
}
@media (max-width: 639px) {
    .bex__tier-sub {
        display: none;
    }
}

/* ---- Toolkit cards ---- */

.bex__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}
@media (min-width: 1024px) {
    .bex__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

.bex__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    border: 1px solid #e0e0e5;
    border-radius: 16px;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
@media (min-width: 640px) {
    .bex__card {
        flex-direction: row;
        align-items: center;
        gap: 36px;
        padding: 40px;
    }
}
.bex__card:hover {
    border-color: #d0ccdf;
    box-shadow: 0 14px 30px -18px rgba(19, 0, 65, 0.28);
}

.bex__seal {
    --sft-seal-size: 120px;
    --bp-kseal-size: 120px;
    flex: 0 0 auto;
    line-height: 0;
}
@media (min-width: 1180px) {
    .bex__seal {
        --sft-seal-size: 150px;
        --bp-kseal-size: 150px;
    }
}

.bex__card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.bex__tag {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f7f8fb;
    color: #3c9a89;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.bex__tag svg {
    width: 14px;
    height: 14px;
}
.bex__card-title {
    margin: 0;
    color: #130041;
    font-weight: 800;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.015em;
}
@media (min-width: 1180px) {
    .bex__card-title {
        font-size: 26px;
    }
}
.bex__card-title a {
    color: inherit;
    text-decoration: none;
}
/* Whole card is the click target for the title link; the seal stays its own
   link on top. */
.bex__card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.bex__seal {
    position: relative;
    z-index: 1;
}
.bex__card-body {
    margin: 0;
    color: #3d464d;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
}
.bex__card-stat {
    margin: 0;
    color: #5e4c92;
    font-size: 13px;
    font-weight: 600;
}

.bex__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    color: #29165e;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.bex__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.bex__link:hover,
.bex__card:hover .bex__link {
    color: #5e4c92;
}
.bex__link:hover svg,
.bex__card:hover .bex__link svg {
    transform: translateX(5px);
}

/* ---- Developer strip ---- */

.bex__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid #e0e0e5;
    border-radius: 16px;
    overflow: hidden;
}
@media (min-width: 900px) {
    .bex__links--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bex__links--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bex__links--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.bex__dev {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px;
    border-top: 1px solid #e0e0e5;
    min-width: 0;
}
.bex__dev:first-child {
    border-top: 0;
}
@media (min-width: 900px) {
    .bex__dev {
        padding: 32px;
        border-top: 0;
        border-left: 1px solid #e0e0e5;
    }
    .bex__dev:first-child {
        border-left: 0;
    }
}
.bex__dev-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e7e3ff;
    color: #29165e;
}
.bex__dev-icon svg {
    width: 22px;
    height: 22px;
}
.bex__dev-title {
    margin: 0;
    color: #130041;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
}
.bex__dev-body {
    margin: 0;
    color: #3d464d;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
}
.bex__dev .bex__link {
    margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
    .bex__card,
    .bex__link svg {
        transition: none;
    }
    .bex__link:hover svg,
    .bex__card:hover .bex__link svg {
        transform: none;
    }
}
