/* ==========================================================================
   Jumppl Landing Hero — AI + 4 core modules
   Visual design restored; only layout tweak = AI strip visible above fold
   ========================================================================== */

/* Fix: drop full-viewport height centering (was pushing AI strip off-screen) */
.jp-hero-container {
    min-height: auto !important;
    min-height: unset !important;
    height: auto !important;
    padding: 32px 20px 28px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow: visible !important;
    position: relative;
}

.jp-hero-outer-section {
    margin-top: 0 !important;
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.jp-modern-text-container {
    margin-top: 0 !important;
    padding: 0 16px !important;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Above-fold block ends at AI strip */
.jp-hero-above-fold {
    width: 100%;
    overflow: visible;
    padding-bottom: 4px;
}

/* Eyebrow + AI badge */
.jp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(162, 155, 254, 0.35);
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.jp-hero-eyebrow i {
    color: #81ecec;
    font-size: 14px;
}

.jp-hero-eyebrow strong {
    background: linear-gradient(90deg, #81ecec, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Headline */
.jp-hero-headline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 16px;
    text-shadow: none;
}

.jp-hero-headline .jp-hero-gradient {
    display: block;
    margin-top: 4px;
    background: linear-gradient(90deg, #a29bfe 0%, #fd79a8 50%, #81ecec 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
    .jp-hero-headline .jp-hero-gradient {
        color: #a29bfe;
        -webkit-text-fill-color: initial;
    }
}

.jp-hero-subline {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 960px;
    margin: 0 auto 28px;
    font-weight: 400;
    text-align: center;
}

.jp-hero-subline__line {
    display: block;
}

.jp-hero-subline__mobile {
    display: none !important;
}

@media (min-width: 1024px) {
    .jp-hero-subline {
        max-width: none;
    }

    .jp-hero-subline__line {
        white-space: nowrap;
    }
}

/* CTAs */
.jp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.jp-hero-cta .jp-primary-button,
.jp-hero-cta .jp-secondary-button {
    min-width: 160px;
}

.jp-hero-cta .jp-primary-button {
    background: #f4c93b;
    color: #1a1a2e;
    border: none;
    box-shadow: 0 4px 20px rgba(244, 201, 59, 0.35);
}

.jp-hero-cta .jp-primary-button:hover {
    background: #f7d04f;
    color: #1a1a2e;
    box-shadow: 0 8px 28px rgba(244, 201, 59, 0.45);
}

.jp-hero-cta .jp-primary-button i {
    color: #1a1a2e;
}

.jp-hero-cta .jp-secondary-button {
    scroll-margin-top: 100px;
}

/* Product context in the compact mobile hero */
.jp-mobile-hero-visual {
    display: none;
}

.jp-mobile-hero-visuals {
    display: none;
}

/* 4 pillars — original card style */
.jp-hero-pillars {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0 auto 14px;
    max-width: 960px;
    text-align: left;
}

.jp-hero-pillar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
    min-height: 0;
    overflow: visible;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.jp-hero-pillar:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(162, 155, 254, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.jp-hero-pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.25);
    color: #a29bfe;
    font-size: 18px;
    flex-shrink: 0;
}

.jp-hero-pillar h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.jp-hero-pillar__features {
    margin: 0;
    padding: 0 0 0 16px;
    list-style: none;
}

.jp-hero-pillar__features li {
    position: relative;
    margin: 0 0 5px;
    padding-left: 12px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.68);
}

.jp-hero-pillar__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #a29bfe;
}

.jp-hero-pillar__features li:last-child {
    margin-bottom: 0;
}

/* AI strip — end of above-fold zone */
.jp-hero-ai-strip {
    display: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 210, 211, 0.08));
    border: 1px solid rgba(129, 236, 236, 0.25);
    border-radius: 12px;
    text-align: left;
    scroll-margin-top: 80px;
}

.jp-hero-ai-strip > i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 18px;
    color: #81ecec;
}

.jp-hero-ai-strip span {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.jp-hero-ai-strip strong {
    color: #ffffff;
    font-weight: 600;
}

/* Partners + ratings — intentionally below fold */
.jp-hero-below-fold {
    width: 100%;
}

.jp-partners-section {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jp-partners-section h1 {
    font-size: clamp(0.85rem, 2vw, 1rem) !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-bottom: 16px !important;
}

.jp-rating-container {
    margin-top: 20px;
}

.jp-hero-pin-cards {
    display: none;
    position: absolute;
    top: 0;
    bottom: 48px;
    width: 200px;
    pointer-events: none;
    z-index: 12;
    overflow: visible;
}

.jp-hero-pin-cards:has(.jp-hero-pin-card:hover) {
    z-index: 30;
}

/* Hidden until nav fit-to-width layout has run (prevents flash) */
html.jp-nav-layout-pending .jp-hero-pin-cards {
    display: none !important;
}

.jp-hero-pin-cards--left {
    left: max(12px, 2vw);
}

.jp-hero-pin-cards--right {
    right: max(12px, 2vw);
}

.jp-hero-pin-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    min-height: 168px;
    padding-bottom: 32px;
    pointer-events: auto;
    text-decoration: none;
    z-index: 1;
    transform-origin: top center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.jp-hero-pin-card:hover {
    z-index: 100;
    text-decoration: none;
}

.jp-hero-pin-card--tilt-left {
    transform: rotate(-7deg);
}

.jp-hero-pin-card--tilt-right {
    transform: rotate(6deg);
}

.jp-hero-pin-card--tilt-left:hover,
.jp-hero-pin-card--tilt-right:hover {
    transform: rotate(0deg);
}

.jp-hero-pin-card__frame {
    width: 100%;
    align-self: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding: 6px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(108, 92, 231, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    overflow: hidden;
    transform-origin: top center;
    animation: jp-pin-sway 5s ease-in-out infinite;
    transition:
        width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        margin 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease,
        filter 0.3s ease;
}

.jp-hero-pin-card:hover .jp-hero-pin-card__frame {
    width: min(340px, 28vw);
    animation-play-state: paused;
    filter: brightness(1.08);
    border-color: rgba(162, 155, 254, 0.65);
    box-shadow:
        0 36px 72px rgba(0, 0, 0, 0.5),
        0 12px 32px rgba(108, 92, 231, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Expand inward toward hero — card anchor stays put (no hover flicker) */
.jp-hero-pin-cards--left .jp-hero-pin-card:hover .jp-hero-pin-card__frame {
    margin-left: auto;
    margin-right: -42px;
}

.jp-hero-pin-cards--right .jp-hero-pin-card:hover .jp-hero-pin-card__frame {
    margin-left: -42px;
    margin-right: auto;
}

/* Bottom row: pull preview up so it clears pillar icons */
.jp-hero-pin-cards--left .jp-hero-pin-card:last-child:hover .jp-hero-pin-card__frame,
.jp-hero-pin-cards--right .jp-hero-pin-card:last-child:hover .jp-hero-pin-card__frame {
    margin-top: -72px;
}

.jp-hero-pin-card:hover .jp-hero-pin-card__label {
    opacity: 0;
}

.jp-hero-pin-cards--left .jp-hero-pin-card:first-child {
    top: 4%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.jp-hero-pin-cards--left .jp-hero-pin-card:last-child {
    top: 42%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.jp-hero-pin-cards--left .jp-hero-pin-card:last-child .jp-hero-pin-card__frame {
    animation-delay: -2.5s;
}

.jp-hero-pin-cards--right .jp-hero-pin-card:first-child {
    top: 5%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.jp-hero-pin-cards--right .jp-hero-pin-card:first-child .jp-hero-pin-card__frame {
    animation-delay: -1.2s;
}

.jp-hero-pin-cards--right .jp-hero-pin-card:last-child {
    top: 42%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.jp-hero-pin-cards--right .jp-hero-pin-card:last-child .jp-hero-pin-card__frame {
    animation-delay: -3.8s;
}

/* Thumbtack / pin */
.jp-hero-pin {
    position: relative;
    z-index: 2;
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fd79a8, #a29bfe 55%, #6c5ce7);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.jp-hero-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    width: 2px;
    height: 10px;
    margin-left: -1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(162, 155, 254, 0.3));
    border-radius: 1px;
}

.jp-hero-pin-card__frame img,
.jp-hero-pin-card__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    object-position: top center;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}

.jp-hero-pin-card__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    padding-top: 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    width: 100%;
    display: block;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

@keyframes jp-pin-sway {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .jp-hero-pin-card__frame {
        animation: none;
    }
}

@media (min-width: 1280px) {
    /* Pin cards only when full desktop nav is visible (not hamburger / collapsed) */
    body:not(.jp-nav-collapsed) .jp-hero-pin-cards {
        display: block;
    }

    body:not(.jp-nav-collapsed) .jp-hero-container {
        padding-left: 230px !important;
        padding-right: 230px !important;
    }

    body.jp-nav-collapsed .jp-hero-container {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    body:not(.jp-nav-collapsed) .jp-hero-pin-cards {
        width: 210px;
    }

    body:not(.jp-nav-collapsed) .jp-hero-pin-card {
        width: 210px;
    }
}

@media (min-width: 1500px) {
    body:not(.jp-nav-collapsed) .jp-hero-pin-cards {
        width: 220px;
    }

    body:not(.jp-nav-collapsed) .jp-hero-pin-card {
        width: 220px;
    }

    body:not(.jp-nav-collapsed) .jp-hero-pin-card:hover .jp-hero-pin-card__frame {
        width: min(360px, 26vw);
    }

    body:not(.jp-nav-collapsed) .jp-hero-pin-cards--left .jp-hero-pin-card:hover .jp-hero-pin-card__frame {
        margin-right: -52px;
    }

    body:not(.jp-nav-collapsed) .jp-hero-pin-cards--right .jp-hero-pin-card:hover .jp-hero-pin-card__frame {
        margin-left: -52px;
    }

    body:not(.jp-nav-collapsed) .jp-hero-pin-cards--left {
        left: max(24px, 3vw);
    }

    body:not(.jp-nav-collapsed) .jp-hero-pin-cards--right {
        right: max(24px, 3vw);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .jp-hero-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jp-hero-container {
        padding: 24px 16px 12px !important;
    }

    .jp-hero-pillars {
        margin-bottom: 12px;
    }
}

@media (max-width: 600px) {
    .jp-hero-container {
        padding-top: 18px !important;
        padding-bottom: 12px !important;
    }

    .jp-hero-headline {
        margin-bottom: 12px;
        font-size: clamp(2.1rem, 9vw, 2.25rem);
        line-height: 1.08;
    }

    .jp-hero-subline {
        margin-bottom: 20px;
        font-size: 1rem;
        line-height: 1.45;
    }

    .jp-hero-subline__desktop {
        display: none;
    }

    .jp-hero-subline__mobile {
        display: block;
    }

    .jp-hero-eyebrow {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .jp-hero-pillars {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .jp-hero-pillar {
        flex-direction: row;
        align-items: flex-start;
        padding: 14px;
    }

    .jp-hero-pillar-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .jp-hero-cta {
        flex-direction: column;
        align-items: center;
        margin-bottom: 16px;
    }

    .jp-hero-cta .jp-primary-button,
    .jp-hero-cta .jp-secondary-button {
        width: auto;
        min-width: 220px;
        justify-content: center;
    }

    .jp-mobile-hero-visuals {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        max-width: 360px;
        margin: 0 auto 20px;
    }

    .jp-mobile-hero-visual {
        display: block;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(162, 155, 254, 0.35);
        border-radius: 8px;
    }

    .jp-mobile-hero-visual img {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        object-position: top center;
    }

    .jp-hero-ai-strip {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        align-items: center;
    }
}

/* Hide legacy 8-tile grid if present */
.jp-features-grid {
    display: none !important;
}
