/* =====================================================================
   ScholarHat — Self-Paced course LIST (/courses)
   Everything scoped under .spl so it can't leak into other pages.
   Tokens mirror the course-detail page (self-paced.css): cyan brand,
   one accent per content type, separate light / dark values.
   ===================================================================== */

.spl {
    --spl-brand: #26d3e4;
    --spl-brand-700: #0e9aaa;
    --spl-brand-soft: rgba(38,211,228,.10);
    --spl-brand-line: rgba(38,211,228,.28);
    --spl-ink: #0f172a;
    --spl-body: #334155;
    --spl-muted: #64748b;
    --spl-bg: #ffffff;
    --spl-surface: #f5fafb;
    --spl-card: #ffffff;
    --spl-line: #e4ecf1;
    --spl-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.12);
    --spl-shadow-hover: 0 2px 4px rgba(15,23,42,.05), 0 22px 40px -16px rgba(14,154,170,.35);
    --spl-save: #059669;
    --spl-save-soft: rgba(5,150,105,.10);
    --spl-star: #f59e0b;
    --spl-video: #0e9aaa;
    --spl-lab: #059669;
    --spl-note: #7c3aed;
    --spl-test: #2563eb;
    --spl-qna: #d97706;
    --spl-project: #db2777;
    --spl-r: 18px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--spl-body);
    background: var(--spl-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

[data-bs-theme="dark"] .spl {
    --spl-ink: #f1f5f9;
    --spl-body: #cbd5e1;
    --spl-muted: #94a3b8;
    --spl-bg: #020817;
    --spl-surface: #070f21;
    --spl-card: #0b1628;
    --spl-line: rgba(255,255,255,.09);
    --spl-brand-soft: rgba(38,211,228,.09);
    --spl-brand-line: rgba(38,211,228,.30);
    --spl-shadow: 0 1px 2px rgba(0,0,0,.3);
    --spl-shadow-hover: 0 24px 44px -18px rgba(38,211,228,.28);
    --spl-save: #34d399;
    --spl-save-soft: rgba(52,211,153,.12);
    --spl-video: #22d3ee;
    --spl-lab: #34d399;
    --spl-note: #a78bfa;
    --spl-test: #60a5fa;
    --spl-qna: #fbbf24;
    --spl-project: #f472b6;
}

.spl *, .spl *::before, .spl *::after {
    box-sizing: border-box;
}

.spl-shell {
    width: min(1240px, 100% - 32px);
    margin-inline: auto;
}

/* ---------- sticky filter bar ---------- */
.spl-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0;
    background: color-mix(in srgb, var(--spl-bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--spl-line);
}

/* ---------- grid ---------- */
.spl-main {
    padding: 32px 0 56px;
    background: var(--spl-surface);
}

.spl-count {
    margin: 0 0 18px;
    font-size: .875rem;
    color: var(--spl-muted);
}

    .spl-count b {
        color: var(--spl-ink);
    }

.spl-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .spl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .spl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .spl-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.spl-grid .column {
    display: none;
}

    .spl-grid .column.showc {
        display: flex;
    }

/* ---------- card ---------- */
.spl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--spl-card);
    border: 1px solid var(--spl-line);
    border-radius: var(--spl-r);
    box-shadow: var(--spl-shadow);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
    animation: spl-rise .55s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}

    .spl-card:hover, .spl-card:focus-within {
        transform: translateY(-5px);
        box-shadow: var(--spl-shadow-hover);
        border-color: var(--spl-brand-line);
    }

.spl-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 0;
}

.spl-card:hover .spl-head img {
    transform: rotate(-4deg) scale(1.06);
}

.spl-cat {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--spl-brand-700);
}

[data-bs-theme="dark"] .spl-cat {
    color: var(--spl-brand);
}

.spl-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 14px 18px 18px;
}

.spl-name {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -.01em;
    font-weight: 700;
    color: var(--spl-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.spl-name {
    font-size: 1.1875rem;
}

    .spl-name a {
        color: inherit;
        text-decoration: none;
    }

        .spl-name a::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 1;
        }
/* whole card is the link */
.spl-desc {
    margin: 0;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--spl-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* content counts: a tidy 3-col grid of icon + number */
.t-video {
    --c: var(--spl-video);
}

.t-lab {
    --c: var(--spl-lab);
}

.t-note {
    --c: var(--spl-note);
}

.t-test {
    --c: var(--spl-test);
}

.t-qna {
    --c: var(--spl-qna);
}

.t-project {
    --c: var(--spl-project);
}

/* pricing: price-from headline + the two plans underneath */
.spl-price {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--spl-line);
}

.spl-from {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}

    .spl-from small {
        font-size: .75rem;
        color: var(--spl-muted);
    }

.spl-now {
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--spl-ink);
    font-variant-numeric: tabular-nums;
}

.spl-was {
    font-size: .9375rem;
    color: var(--spl-muted);
}

.spl-pct {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--spl-save);
    background: var(--spl-save-soft);
}

.spl-note {
    margin: 6px 0 0;
    font-size: .75rem;
    color: var(--spl-muted);
}

.spl-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    font-family: inherit;
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    color: #04222a;
    background: linear-gradient(135deg, var(--spl-brand), #4fe3f0);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

    .spl-btn svg {
        width: 16px;
        height: 16px;
        transition: transform .25s;
    }

    .spl-btn:hover {
        color: #04222a;
        filter: brightness(1.04);
        box-shadow: 0 10px 22px -10px rgba(38,211,228,.8);
    }

        .spl-btn:hover svg {
            transform: translateX(4px);
        }

    .spl-btn:active {
        transform: scale(.98);
    }


/* empty + bottom */
.spl-empty {
    text-align: center;
    padding: 56px 0;
    color: var(--spl-muted);
}

    .spl-empty h2 {
        font-size: 1.25rem;
        color: var(--spl-ink);
    }

[data-bs-theme="dark"] .spl-foot a, [data-bs-theme="dark"] .spl-textbtn {
    color: var(--spl-brand);
}

@keyframes spl-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes spl-pulse {
    70% {
        box-shadow: 0 0 0 8px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.spl-hero .spl-eyebrow, .spl-hero .spl-title, .spl-hero .spl-lead, .spl-hero .spl-proof {
    animation: spl-rise .6s cubic-bezier(.2,.7,.2,1) both;
}

.spl-hero .spl-title {
    animation-delay: .06s;
}

.spl-hero .spl-lead {
    animation-delay: .12s;
}

.spl-hero .spl-proof {
    animation-delay: .2s;
}

@media (prefers-reduced-motion: reduce) {
    .spl *, .spl *::before, .spl *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* ======================= v3: livelier layer ======================= */
.spl-title, .spl-name, .spl-now, .spl-sec-head h2 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* hero */
.spl-hero {
    position: relative;
    isolation: isolate;
    text-align: center;
    overflow: hidden;
    padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px);
    background: var(--spl-bg);
    --px: 0;
    --py: 0;
}

    .spl-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        opacity: .55;
        background-image: linear-gradient(var(--spl-line) 1px, transparent 1px), linear-gradient(90deg, var(--spl-line) 1px, transparent 1px);
        background-size: 44px 44px;
        -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000 20%, transparent 75%);
        mask-image: radial-gradient(70% 80% at 50% 30%, #000 20%, transparent 75%);
    }

.spl-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

    .spl-bg i {
        position: absolute;
        border-radius: 50%;
        filter: blur(70px);
        opacity: .55;
        transition: transform .6s cubic-bezier(.2,.7,.2,1);
    }

    .spl-bg .b1 {
        width: 420px;
        height: 420px;
        left: 8%;
        top: -140px;
        background: rgba(38,211,228,.55);
        animation: spl-drift 14s ease-in-out infinite alternate;
        transform: translate(calc(var(--px) * 40px), calc(var(--py) * 30px));
    }

    .spl-bg .b2 {
        width: 380px;
        height: 380px;
        right: 6%;
        top: -60px;
        background: rgba(124,92,255,.38);
        animation: spl-drift 17s ease-in-out infinite alternate-reverse;
        transform: translate(calc(var(--px) * -50px), calc(var(--py) * -30px));
    }

[data-bs-theme="dark"] .spl-bg i {
    opacity: .38;
}

.spl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--spl-brand-line);
    background: color-mix(in srgb, var(--spl-card) 70%, transparent);
    backdrop-filter: blur(6px);
    color: var(--spl-brand-700);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .01em;
}

[data-bs-theme="dark"] .spl-eyebrow {
    color: var(--spl-brand);
}

.spl-title {
    margin: 20px auto 18px;
    max-width: 17ch;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 800;
    color: var(--spl-ink);
    text-wrap: balance;
}

.spl-rot {
    display: inline-block;
    transition: opacity .28s, transform .28s;
}

    .spl-rot.out {
        opacity: 0;
        transform: translateY(.25em);
    }

.spl-title em {
    font-style: normal;
    background: linear-gradient(100deg, #0e9aaa, #26d3e4 45%, #7c5cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.spl-lead {
    margin: 0 auto;
    max-width: 58ch;
    font-size: clamp(1rem, 1.7vw, 1.1875rem);
    line-height: 1.65;
    color: var(--spl-muted);
    text-wrap: pretty;
}

.spl-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

    .spl-ctas .spl-btn {
        width: auto;
        margin: 0;
        min-height: 52px;
        padding: 0 26px;
        border-radius: 14px;
    }

.spl-btn--hero {
    color: #04222a;
    box-shadow: 0 14px 30px -14px rgba(38,211,228,.9);
}

    .spl-btn--hero svg {
        transform: none;
        animation: spl-bob 1.8s ease-in-out infinite;
    }

    .spl-btn--hero:hover svg {
        transform: none;
    }

.spl-btn--ghost {
    background: color-mix(in srgb, var(--spl-card) 75%, transparent);
    color: var(--spl-ink);
    border: 1px solid var(--spl-line);
    backdrop-filter: blur(6px);
}

    .spl-btn--ghost:hover {
        color: var(--spl-ink);
        border-color: var(--spl-brand-line);
        box-shadow: none;
    }

/* floating chips (desktop only, decorative) */
@media (min-width: 1100px) {
    .spl-chip {
        display: inline-flex;
    }
}

/* pills: accent glow when active */

/* cards: depth + cursor spotlight */
.spl-main {
    background: radial-gradient(60% 40% at 50% 0%, var(--spl-brand-soft), transparent 70%), var(--spl-surface);
}

.spl-card::before, .spl-proj::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--spl-brand) 20%, transparent), transparent 70%);
}

.spl-card:hover::before, .spl-proj:hover::before {
    opacity: 1;
}

.spl-head, .spl-body, .spl-proj > * {
    position: relative;
}

.spl-card {
    box-shadow: var(--spl-shadow);
}

    .spl-card:hover {
        transform: translateY(-6px);
    }

.spl-now {
    background: linear-gradient(100deg, var(--spl-ink), var(--spl-brand-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-bs-theme="dark"] .spl-now {
    background: linear-gradient(100deg, #fff, var(--spl-brand));
    -webkit-background-clip: text;
    background-clip: text;
}

.spl-btn {
    overflow: hidden;
}

    .spl-btn::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
        transform: translateX(-120%);
    }

    .spl-btn:hover::after {
        transform: translateX(120%);
        transition: transform .7s ease;
    }

/* projects */
.spl-projects {
    position: relative;
    padding: clamp(48px, 7vw, 88px) 0;
    background: var(--spl-bg);
    border-top: 1px solid var(--spl-line);
}

.spl-sec-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1);
}

    .spl-sec-head.in {
        opacity: 1;
        transform: none;
    }

    .spl-sec-head h2 {
        margin: 16px 0 12px;
        font-size: clamp(1.75rem, 4vw, 2.75rem);
        line-height: 1.1;
        letter-spacing: -.03em;
        font-weight: 800;
        color: var(--spl-ink);
        text-wrap: balance;
    }

    .spl-sec-head p {
        margin: 0;
        color: var(--spl-muted);
        line-height: 1.65;
    }

.spl-pgrid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .spl-pgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .spl-pgrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.spl-proj {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: var(--spl-r);
    border: 1px solid var(--spl-line);
    background: var(--spl-card);
    text-decoration: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s;
    transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s;
}

    .spl-proj.in {
        opacity: 1;
        transform: none;
    }

        .spl-proj.in:hover {
            transform: translateY(-6px);
            border-color: var(--spl-brand-line);
            box-shadow: var(--spl-shadow-hover);
            transition-delay: 0s;
        }

.spl-proj__ic {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
}

    .spl-proj__ic svg {
        width: 22px;
        height: 22px;
    }

.spl-proj h3 {
    margin: 0;
    font-size: 1.1875rem;
    line-height: 1.3;
    letter-spacing: -.015em;
    font-weight: 700;
    color: var(--spl-ink);
}

.spl-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .spl-tech i {
        font-style: normal;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: .75rem;
        font-weight: 600;
        color: var(--spl-muted);
        background: var(--spl-surface);
        border: 1px solid var(--spl-line);
    }

.spl-proj__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    font-size: .875rem;
    font-weight: 700;
    color: var(--spl-brand-700);
}

[data-bs-theme="dark"] .spl-proj__go {
    color: var(--spl-brand);
}

.spl-proj__go svg {
    width: 16px;
    height: 16px;
    transition: transform .25s;
}

.spl-proj:hover .spl-proj__go svg {
    transform: translateX(5px);
}

@keyframes spl-float {
    50% {
        transform: translateY(-12px);
    }
}

@keyframes spl-drift {
    to {
        translate: 40px 30px;
    }
}

@keyframes spl-bob {
    50% {
        transform: translateY(3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spl-sec-head, .spl-proj {
        opacity: 1 !important;
        transform: none !important;
    }
}

.spl-eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--spl-brand);
    animation: spl-pulse 2.4s infinite;
}


/* ======================= v4: minimal, reference-led ======================= */
/* hero: copy + proof row */
.spl-title {
    max-width: 20ch;
    font-size: clamp(2rem, 5.2vw, 3.75rem);
}

.spl-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

    .spl-proof li {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 9px 16px 9px 12px;
        border-radius: 999px;
        border: 1px solid var(--spl-line);
        background: color-mix(in srgb, var(--spl-card) 80%, transparent);
        backdrop-filter: blur(6px);
        font-size: .875rem;
        color: var(--spl-muted);
        transition: transform .25s, border-color .25s;
    }

        .spl-proof li:hover {
            transform: translateY(-2px);
            border-color: var(--spl-brand-line);
        }

    .spl-proof svg {
        width: 18px;
        height: 18px;
        color: var(--spl-brand-700);
        flex: none;
    }

[data-bs-theme="dark"] .spl-proof svg {
    color: var(--spl-brand);
}

.spl-proof b {
    color: var(--spl-ink);
    font-weight: 800;
}

/* category strip: one symmetric row, scrolls (with edge fade) instead of wrapping */
.spl-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: safe center;
    padding: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

    .spl-pills::-webkit-scrollbar {
        display: none;
    }

.spl-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--spl-line);
    background: var(--spl-card);
    color: var(--spl-body);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

    .spl-pill small {
        font-size: .75rem;
        font-weight: 700;
        color: var(--spl-muted);
    }

    .spl-pill:hover {
        border-color: var(--spl-brand-line);
        color: var(--spl-ink);
    }

    .spl-pill.active {
        background: var(--spl-brand-700);
        border-color: var(--spl-brand-700);
        color: #fff;
/*        box-shadow: 0 8px 20px -10px var(--spl-brand-700);*/
    }

        .spl-pill.active small {
            color: rgba(255,255,255,.8);
        }

[data-bs-theme="dark"] .spl-pill.active {
    background: var(--spl-brand);
    border-color: var(--spl-brand);
    color: #04222a;
}

    [data-bs-theme="dark"] .spl-pill.active small {
        color: rgba(4,34,42,.7);
    }

/* card: light, text-led (thumbnail tile -> title -> checklist -> price -> CTA) */
.spl-head {
    padding: 20px 20px 0;
}

    .spl-head img {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        object-fit: cover;
        background: var(--spl-surface);
        box-shadow: 0 6px 14px -8px rgba(15,23,42,.4);
        transition: transform .35s cubic-bezier(.2,.7,.2,1);
    }

.spl-body {
    padding: 14px 20px 20px;
    gap: 14px;
}

.spl-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .spl-stats li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: .75rem;
        color: var(--spl-muted);
    }

    .spl-stats svg {
        width: 15px;
        height: 15px;
        flex: none;
        color: var(--c);
    }

    .spl-stats b {
        color: var(--spl-ink);
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

.spl-price {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--spl-line);
}

.spl-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

    .spl-plans li {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1px;
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid var(--spl-line);
        font-size: .75rem;
        color: var(--spl-muted);
    }

        .spl-plans li.is-top {
            border-color: var(--spl-brand-line);
            background: var(--spl-brand-soft);
        }

    .spl-plans em {
        font-style: normal;
        font-weight: 600;
    }

    .spl-plans span {
        font-size: .9375rem;
        font-weight: 800;
        color: var(--spl-ink);
        font-variant-numeric: tabular-nums;
    }

    .spl-plans i {
        position: absolute;
        top: -8px;
        right: 8px;
        font-style: normal;
        font-size: .5625rem;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
        padding: 2px 7px;
        border-radius: 999px;
        color: #04222a;
        background: var(--spl-brand);
    }

.spl-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--spl-brand-700);
    text-decoration: none;
}

    .spl-link svg {
        width: 12px;
        height: 12px;
    }

    .spl-link:hover {
        text-decoration: underline;
    }

[data-bs-theme="dark"] .spl-link {
    color: var(--spl-brand);
}

.spl-link, .spl-btn, .spl-plans {
    z-index: 2;
}

/* questions band */
.spl-band {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 30px;
    border-radius: 20px;
    color: #e6f7fa;
    background: radial-gradient(60% 140% at 100% 0%, rgba(38,211,228,.28), transparent 60%), #0b1b2b;
    border: 1px solid rgba(38,211,228,.18);
}

    .spl-band h2 {
        margin: 0 0 4px;
        font-size: clamp(1.125rem, 2.4vw, 1.5rem);
        font-weight: 800;
        letter-spacing: -.02em;
        color: #fff;
    }

    .spl-band p {
        margin: 0;
        color: #9fb7c4;
    }

    .spl-band .spl-btn {
        width: auto;
        margin: 0;
    }

@media (max-width: 575.98px) {
    .spl-band {
        padding: 22px;
    }

        .spl-band .spl-btn {
            width: 100%;
        }
}


/* ======================= v5: stat bar, plan picker, add-to-cart ======================= */

/* hero proof: one symmetric stat bar */
.spl-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 900px;
    margin: 38px auto 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--spl-line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--spl-card) 82%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -26px rgba(15,23,42,.35);
    overflow: hidden;
}

    .spl-proof li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 20px 12px 18px;
        border: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        transition: background .25s;
    }

        .spl-proof li + li {
            border-left: 1px solid var(--spl-line);
        }

        .spl-proof li:hover {
            transform: none;
            background: var(--spl-brand-soft);
        }

    .spl-proof .ic {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        margin-bottom: 8px;
        border-radius: 14px;
        color: var(--spl-brand-700);
        background: var(--spl-brand-soft);
        border: 1px solid var(--spl-brand-line);
        transition: transform .3s cubic-bezier(.2,.7,.2,1), background .25s, color .25s;
    }

[data-bs-theme="dark"] .spl-proof .ic {
    color: var(--spl-brand);
}

.spl-proof li:hover .ic {
    transform: translateY(-2px) scale(1.06);
    background: var(--spl-brand);
    color: #04222a;
}

.spl-proof .ic svg {
    width: 20px;
    height: 20px;
}

.spl-proof b {
    font-size: 1.25rem;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 800;
    color: var(--spl-ink);
}

.spl-proof small {
    font-size: .75rem;
    color: var(--spl-muted);
}

@media (max-width: 640px) {
    .spl-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .spl-proof li:nth-child(odd) {
            border-left: 0;
        }

        .spl-proof li:nth-child(n+3) {
            border-top: 1px solid var(--spl-line);
        }
}

/* price block */
.spl-note b {
    color: var(--spl-ink);
    font-weight: 800;
}

.spl-note {
    margin: 0 0 12px;
    font-size: .8125rem;
}

.spl-opts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spl-opts--1 {
    grid-template-columns: minmax(0, 1fr);
}

.spl-plan {
    position: relative;
    z-index: 2;
    display: block;
    cursor: pointer;
}

.spl-plan__in {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.spl-plan__box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    height: 100%;
    padding: 12px 12px 11px;
    border-radius: 14px;
    border: 1.5px solid var(--spl-line);
    background: var(--spl-card);
    transition: border-color .25s, background .25s, box-shadow .25s, transform .25s cubic-bezier(.2,.7,.2,1);
}

.spl-plan:hover .spl-plan__box {
    border-color: var(--spl-brand-line);
    transform: translateY(-1px);
}

.spl-plan__name {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--spl-muted);
    padding-right: 26px;
}

.spl-plan__price {
    font-size: 1.1875rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--spl-ink);
    font-variant-numeric: tabular-nums;
}

.spl-plan__was {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 1.1em;
    font-size: .75rem;
    color: var(--spl-muted);
}

    .spl-plan__was em {
        font-style: normal;
        font-weight: 700;
        color: var(--spl-save);
    }

.spl-plan__badge {
    position: absolute;
    top: -9px;
    left: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    font-style: normal;
    font-size: .5625rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #04222a;
    background: var(--spl-brand);
}

/* radio dot: empty ring -> filled with a drawn check when selected */
.spl-plan__dot {
    position: absolute;
    top: 11px;
    right: 11px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--spl-line);
    color: transparent;
    background: var(--spl-card);
    transition: background .25s, border-color .25s, transform .3s cubic-bezier(.3,1.6,.5,1);
}

    .spl-plan__dot svg {
        width: 12px;
        height: 12px;
        stroke-dasharray: 24;
        stroke-dashoffset: 24;
        transition: stroke-dashoffset .3s ease .05s;
    }

.spl-plan__in:checked + .spl-plan__box {
    border-color: var(--spl-brand-700);
    background: linear-gradient(180deg, var(--spl-brand-soft), transparent 80%), var(--spl-card);
    box-shadow: 0 0 0 3px var(--spl-brand-soft), 0 10px 22px -14px var(--spl-brand-700);
}

[data-bs-theme="dark"] .spl-plan__in:checked + .spl-plan__box {
    border-color: var(--spl-brand);
}

.spl-plan__in:checked + .spl-plan__box .spl-plan__dot {
    background: var(--spl-brand-700);
    border-color: var(--spl-brand-700);
    color: #fff;
    transform: scale(1.08);
}

[data-bs-theme="dark"] .spl-plan__in:checked + .spl-plan__box .spl-plan__dot {
    background: var(--spl-brand);
    border-color: var(--spl-brand);
    color: #04222a;
}

.spl-plan__in:checked + .spl-plan__box .spl-plan__dot svg {
    stroke-dashoffset: 0;
}

.spl-plan__in:checked + .spl-plan__box .spl-plan__name {
    color: var(--spl-brand-700);
}

[data-bs-theme="dark"] .spl-plan__in:checked + .spl-plan__box .spl-plan__name {
    color: var(--spl-brand);
}

.spl-plan__in:focus-visible + .spl-plan__box {
    outline: 3px solid var(--spl-brand);
    outline-offset: 2px;
}

/* actions: Explore + Add to cart, equal halves */
.spl-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.spl-actions--one {
    grid-template-columns: minmax(0, 1fr);
}

.spl-actions .spl-btn {
    margin: 0;
    min-height: 46px;
    padding: 0 12px;
    white-space: nowrap;
}

.spl-btn--ghost {
    background: var(--spl-card);
    border: 1.5px solid var(--spl-line);
    color: var(--spl-ink);
    backdrop-filter: none;
}

    .spl-btn--ghost:hover {
        border-color: var(--spl-brand-700);
        color: var(--spl-ink);
        filter: none;
        box-shadow: none;
    }

.spl-btn--cart {
    isolation: isolate;
}

.spl-btn__in, .spl-btn__ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}

.spl-btn__ok {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
}

.spl-tick {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
}

.spl-btn--cart.is-busy {
    pointer-events: none;
    filter: saturate(.8);
}

    .spl-btn--cart.is-busy .spl-btn__in svg {
        animation: spl-cart-nudge .7s ease-in-out infinite;
    }

.spl-btn--cart.is-added {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #04261a;
    animation: spl-ring 1s ease-out;
}

    .spl-btn--cart.is-added .spl-btn__in {
        opacity: 0;
        transform: translateY(-10px);
    }

    .spl-btn--cart.is-added .spl-btn__ok {
        opacity: 1;
        transform: none;
    }

    .spl-btn--cart.is-added .spl-tick {
        animation: spl-draw .45s ease .1s forwards;
    }

.spl-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 transparent;
}

.spl-card.spl-pop::after {
    animation: spl-glow 1s ease-out;
}

/* toast */
.spl-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 14px 12px 12px;
    border-radius: 16px;
    color: #e6f7fa;
    background: #0b1b2b;
    border: 1px solid rgba(38,211,228,.28);
    box-shadow: 0 24px 48px -20px rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 24px) scale(.97);
    transition: opacity .3s, transform .45s cubic-bezier(.2,.9,.3,1.2);
}

    .spl-toast.show {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, 0) scale(1);
    }

.spl-toast__ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #04261a;
    background: #34d399;
}

    .spl-toast__ic svg {
        width: 16px;
        height: 16px;
    }

.spl-toast.is-err .spl-toast__ic {
    background: #fb7185;
    color: #3b0714;
}

    .spl-toast.is-err .spl-toast__ic svg {
        display: none;
    }

    .spl-toast.is-err .spl-toast__ic::before {
        content: "!";
        font-weight: 800;
    }

.spl-toast__tx {
    font-size: .875rem;
    line-height: 1.35;
    font-weight: 600;
}

.spl-toast__go {
    flex: none;
    margin-left: 4px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: .8125rem;
    font-weight: 800;
    color: #04222a;
    background: var(--spl-brand, #26d3e4);
    text-decoration: none;
}

    .spl-toast__go:hover {
        color: #04222a;
        filter: brightness(1.05);
    }

/* flight to the header cart + counter bump (appended to body, so not under .spl) */
.spl-fly {
    position: fixed;
    z-index: 2000;
    object-fit: cover;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: 0 14px 28px -10px rgba(14,154,170,.7);
}

.cart_Counter.spl-bump {
    animation: spl-bump .55s cubic-bezier(.3,1.7,.5,1);
}

@keyframes spl-bump {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.55);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spl-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes spl-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16,185,129,.55);
    }

    100% {
        box-shadow: 0 0 0 16px rgba(16,185,129,0);
    }
}

@keyframes spl-glow {
    0% {
        box-shadow: inset 0 0 0 0 transparent;
    }

    30% {
        box-shadow: inset 0 0 0 2px rgba(16,185,129,.75), inset 0 0 36px rgba(16,185,129,.18);
    }

    100% {
        box-shadow: inset 0 0 0 0 transparent;
    }
}

@keyframes spl-cart-nudge {
    50% {
        transform: translateX(3px) rotate(-8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spl-toast {
        transition: opacity .2s;
        transform: translate(-50%, 0);
    }
}
