/* ==========================================================================
   Jumppl Landing — Modular / pick & choose — light theme
   ========================================================================== */

.jp-modular-section {
    position: relative;
    width: 100%;
    padding: 72px 0;
    background: #ffffff;
    overflow: hidden;
}

.jp-modular-section::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 20%;
    width: 480px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.jp-modular-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 24px;
}

.jp-modular-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 48px;
}

.jp-modular-eyebrow {
    display: block;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-transform: uppercase;
    color: #7c3aed;
}

.jp-modular-header h2 {
    margin: 12px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #111827;
}

.jp-modular-header p {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
}

.jp-modular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .jp-modular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

.jp-modular-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f7f8fc;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.03);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.jp-modular-item:hover {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}

.jp-modular-item:has(input:checked) {
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.jp-modular-item__label {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
}

/* Toggle switch — keeps IDs for existing animation script */
.jp-modular-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.jp-modular-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.jp-modular-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.jp-modular-switch__track::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.15);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.jp-modular-switch input:checked + .jp-modular-switch__track {
    background: linear-gradient(90deg, #8b5cf6, #d946ef);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.jp-modular-switch input:checked + .jp-modular-switch__track::before {
    transform: translateX(20px);
}

.jp-modular-switch input:focus-visible + .jp-modular-switch__track {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

@media (max-width: 639px) {
    .jp-modular-section {
        padding: 72px 0;
    }

    .jp-modular-wrap {
        padding: 0 16px;
    }

    .jp-modular-header {
        margin-bottom: 32px;
    }

    .jp-modular-item {
        padding: 16px 18px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jp-modular-item,
    .jp-modular-switch__track,
    .jp-modular-switch__track::before {
        transition: none;
    }
}
