/* blocks_spec_showcase — scoped styles. Visual language borrowed from the
   Shopify Flow / Klaviyo toolkit template-page hero (shopify-flow-toolkit's
   .sft-hero / .sft-spec): dot grid with pink and cyan glows, JetBrains Mono
   labels, yellow badge, glossy spec panel. Headings keep the page's own type
   (system 900) so the section still belongs to the page around it.
   Plain CSS, not Tailwind utilities (WindPress only JIT-compiles in admin). */

.blocks-spec-showcase {
    --bss-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --bss-yellow: #ffe256;
    --bss-lime: #deff00;
    --bss-panel: #170a40;
    --bss-strip: #120638;
    --bss-line: rgba(255, 255, 255, 0.08);
    --bss-border: rgba(255, 255, 255, 0.15);
    --bss-text: #ffffff;
    --bss-soft: #c9c2ee;
    --bss-link: #a1f2eb;

    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);
    overflow: hidden;
    color: var(--bss-text);
    background-color: #0b0026;
    background-image:
        radial-gradient(ellipse 55% 45% at 100% 0%, rgba(255, 79, 184, 0.32), rgba(200, 75, 255, 0.14) 45%, rgba(200, 75, 255, 0) 75%),
        radial-gradient(ellipse 40% 30% at 78% 4%, rgba(61, 217, 255, 0.24), rgba(61, 217, 255, 0) 70%),
        radial-gradient(circle, #221650 1.2px, transparent 1.4px);
    background-size: auto, auto, 24px 24px;
}

.bss__inner {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 20px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}
@media (min-width: 1024px) {
    .bss__inner {
        padding: 120px 20px;
        gap: 80px;
    }
}

/* ---- Hero row ---- */

.bss__hero {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
@media (min-width: 1024px) {
    .bss__hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 80px;
    }
}

.bss__copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 640px;
    min-width: 0;
}

.bss__crumbs {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-family: var(--bss-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bss-yellow);
}
.bss__crumb-sep {
    color: rgba(255, 255, 255, 0.25);
}
.bss__crumb--current {
    color: rgba(255, 255, 255, 0.6);
}

.bss__h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
@media (min-width: 1024px) {
    .bss__h2 {
        font-size: 50px;
    }
}
/* blocks_highlights multiplies its bar into the backdrop, which vanishes on a
   near-black ground. Paint it normally here, in a purple that reads on dark. */
.bss__h2 [data-highlight] {
    --hl-color: #7b5fd0;
}
.bss__h2 [data-highlight]::before {
    mix-blend-mode: normal;
}
.bss__h2 [data-highlight].in-view::before {
    opacity: 0.85;
}

.bss__badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bss__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(217, 184, 255, 0.4);
    border-radius: 999px;
    color: #d9b8ff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.bss__badge--accent {
    padding: 8px 14px;
    border-color: var(--bss-yellow);
    background: var(--bss-yellow);
    color: #1d1e20;
    font-weight: 700;
}
.bss__badge-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.bss__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
}
@media (min-width: 1024px) {
    .bss__intro {
        font-size: 19px;
    }
}
.bss__intro p {
    margin: 0;
    color: inherit;
}

/* ---- Spec panel (mirrors .sft-spec) ---- */

.bss__spec {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--bss-border);
    border-radius: 22px;
    background: var(--bss-panel);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.bss__spec-head {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--bss-line);
    background-color: var(--bss-strip);
    background-image: radial-gradient(circle, #2a1e5c 1.2px, transparent 1.4px);
    background-size: 18px 18px;
    font-family: var(--bss-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}
.bss__spec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bss-lime);
    flex-shrink: 0;
}
.bss__spec-list {
    margin: 0;
}
.bss__spec-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--bss-line);
}
.bss__spec-row dt {
    font-family: var(--bss-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.bss__spec-row dd {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.bss__spec-row dd a {
    color: var(--bss-link);
    text-decoration: underline;
    text-decoration-color: rgba(161, 242, 235, 0.45);
    text-underline-offset: 3px;
}
.bss__spec-row dd a:hover {
    text-decoration-color: currentColor;
}
.bss__spec-foot {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 22px 18px;
    color: var(--bss-yellow);
    font-size: 14px;
    font-weight: 700;
}
.bss__spec-foot svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---- Feature panels ---- */

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

.bss__panel {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bss-border);
    border-radius: 22px;
    background: var(--bss-panel);
    overflow: hidden;
    min-width: 0;
}

.bss__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 28px 20px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--bss-line);
    background-color: var(--bss-strip);
    background-image: radial-gradient(circle, #2a1e5c 1.2px, transparent 1.4px);
    background-size: 18px 18px;
}

.bss__panel-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 28px 32px;
    flex: 1 1 auto;
}
@media (min-width: 1024px) {
    .bss__panel-copy {
        padding: 28px 32px 32px;
    }
}
.bss__panel-index {
    margin: 0;
    font-family: var(--bss-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bss-yellow);
}
.bss__panel-title {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
@media (min-width: 1024px) {
    .bss__panel-title {
        font-size: 22px;
    }
}
.bss__panel-body {
    margin: 0;
    color: var(--bss-soft);
    font-size: 15px;
    line-height: 1.6;
}
.bss__panel-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--bss-link);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.bss__panel-link:hover,
.bss__panel-link:focus-visible {
    color: #ffffff;
}
.bss__panel-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}
.bss__panel-link:hover svg {
    transform: translateX(5px);
}

/* ---- Panel visuals (decorative mock-ups) ---- */

.bssv-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.bssv-tags__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.bssv-tag {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}
.bssv-tag--upfront { background: #afebff; color: #0b2d38; }
.bssv-tag--later   { background: #ffe36f; color: #373806; }
.bssv-tag--deposit { background: #dcbbf5; color: #3e093e; }
.bssv-tag--capture { background: #a1f2eb; color: #0a3733; }

.bssv-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bssv-flow__chip {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 240px;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #303030;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.bssv-flow__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}
.bssv-flow__badge svg {
    width: 14px;
    height: 14px;
}
.bssv-flow__badge--trigger   { background: #cdfee1; color: #29845a; }
.bssv-flow__badge--condition { background: #eaf4ff; color: #005bd3; }
.bssv-flow__badge--action    { background: #f1f1f1; color: #616161; }
.bssv-flow__line {
    width: 2px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
}

.bssv-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    max-width: 100%;
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    color: #303030;
    font-size: 13px;
    line-height: 1.35;
}
.bssv-card__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.bssv-card__row strong {
    font-weight: 600;
    color: #29165e;
}
.bssv-card__row--center {
    align-items: center;
}
.bssv-card__order {
    font-size: 14px;
    font-weight: 700 !important;
    color: #130041 !important;
}
.bssv-card__line {
    margin: -2px 0 0;
    color: #3d464d;
    font-size: 13px;
}
.bssv-bar {
    height: 8px;
    border-radius: 4px;
    background: #f1f2f3;
    overflow: hidden;
}
.bssv-bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #3c9a89;
}
.bssv-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #29165e;
    flex-shrink: 0;
}
.bssv-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
}
.bssv-status {
    padding: 3px 8px;
    border-radius: 6px;
    background: #a1f2eb;
    color: #0a3733;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.bssv-card__actions {
    display: flex;
    gap: 8px;
    padding-top: 2px;
}
.bssv-btn {
    padding: 7px 12px;
    border: 1px solid #5e4c92;
    border-radius: 5px;
    color: #5e4c92;
    font-size: 12px;
    font-weight: 700;
}
.bssv-btn--solid {
    border-color: #29165e;
    background: #29165e;
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .bss__panel-link svg {
        transition: none;
    }
    .bss__panel-link:hover svg {
        transform: none;
    }
}
