/* Klaviyo flow templates seal — pen.dev "Seal / Klaviyo flow templates"
   (dark) and "… — White" (orbit). Mirrors the shopify-flow-toolkit seal's
   two variants. Size via --bp-kseal-size on the link or any ancestor
   (150px when unset; no default is declared here so it never out-ranks
   the caller's own rule on cascade order). */

.bp-kseal-link {
    display: inline-flex;
    color: #130041;
    text-decoration: none;
}

.bp-kseal {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: var(--bp-kseal-size, 150px);
    height: var(--bp-kseal-size, 150px);
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.bp-kseal::before,
.bp-kseal::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.bp-kseal-link:hover .bp-kseal,
.bp-kseal-link:focus-visible .bp-kseal {
    transform: scale(1.04) rotate(-4deg);
}

.bp-kseal__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: bp-kseal-spin 40s linear infinite;
}
.bp-kseal-link:hover .bp-kseal__ring {
    animation-play-state: paused;
}
.bp-kseal__ring text {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    white-space: pre;
}

.bp-kseal__tile {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 25%;
    box-shadow: 0 calc(var(--bp-kseal-size, 150px) * 0.05) calc(var(--bp-kseal-size, 150px) * 0.1) rgba(0, 0, 0, 0.35),
                inset 0 calc(var(--bp-kseal-size, 150px) * -0.013) calc(var(--bp-kseal-size, 150px) * 0.027) rgba(0, 0, 0, 0.18);
    transform: rotate(-8deg);
}
.bp-kseal__tile svg {
    display: block;
    width: 52%;
    height: auto;
    fill: #1d1e20;
}

/* ---- Dark: navy dot-grid disc, lime ring text, pink/cyan glow ---- */
.bp-kseal--dark {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle, #2a1e5c 1px, transparent 1.3px) 0 0 / 9px 9px, #0b0026;
    box-shadow: 0 calc(var(--bp-kseal-size, 150px) * 0.08) calc(var(--bp-kseal-size, 150px) * 0.18) rgba(11, 0, 38, 0.35);
}
.bp-kseal--dark::before {
    inset: 20%;
    background:
        radial-gradient(circle at 62% 38%, rgba(255, 79, 184, 0.45), rgba(200, 75, 255, 0) 56%),
        radial-gradient(circle at 36% 66%, rgba(61, 217, 255, 0.3), rgba(61, 217, 255, 0) 42%);
    filter: blur(calc(var(--bp-kseal-size, 150px) * 0.05));
}
.bp-kseal--dark::after {
    inset: 20%;
    border: 1px solid rgba(222, 255, 0, 0.25);
}
.bp-kseal--dark .bp-kseal__ring text {
    fill: #deff00;
    font-size: 10.4px;
}
.bp-kseal--dark .bp-kseal__tile {
    top: 32%;
    left: 32%;
    width: 36%;
    height: 36%;
}

/* ---- Orbit: no disc, thin ink outline, yellow glow ---- */
.bp-kseal--orbit::before {
    inset: 2%;
    border: 1px solid rgba(19, 0, 65, 0.15);
}
.bp-kseal--orbit::after {
    inset: 22%;
    background: radial-gradient(circle, #deff00 0%, rgba(222, 255, 0, 0.7) 35%, rgba(222, 255, 0, 0) 75%);
    filter: blur(calc(var(--bp-kseal-size, 150px) * 0.05));
}
.bp-kseal--orbit .bp-kseal__ring text {
    fill: #130041;
    font-size: 10px;
}
.bp-kseal--orbit .bp-kseal__tile {
    top: 33.5%;
    left: 33.5%;
    width: 33%;
    height: 33%;
}

@keyframes bp-kseal-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bp-kseal,
    .bp-kseal__ring {
        animation: none;
        transition: none;
    }
}
