/* The Egg launch tile — light, matching the storefront hero/section language
   (#faf9f7 cream, #15473c brand green, the mint gradient from .why-section). */

.egg-promo {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    min-height: 390px;
    margin: 0 0 3.5rem;
    background: #faf9f7;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.egg-promo-video {
    position: relative;
    min-height: 390px;
    padding: 0;
    border: 0;
    background: #e9f1ee;
    cursor: pointer;
    overflow: hidden;
}

.egg-promo-video picture {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
}

.egg-promo-video img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.egg-promo-video:hover img,
.egg-promo-video:focus-visible img {
    transform: scale(1.025);
    opacity: 0.92;
}

.egg-promo-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,0.92);
    border-radius: 50%;
    background: rgba(21,71,60,0.94);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 10px 28px rgba(21,71,60,0.28);
    transition: transform 0.25s ease, background 0.25s ease;
}

.egg-promo-video:hover .egg-promo-play,
.egg-promo-video:focus-visible .egg-promo-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: #1a5a4a;
}

.egg-promo-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: var(--color-text);
    border-left: 1px solid var(--color-border);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
}

.egg-promo-kicker {
    margin: 0 0 0.85rem;
    color: #15473c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.egg-promo h2 {
    margin: 0 0 1rem;
    color: var(--color-text);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.egg-promo h2 span {
    color: #15473c;
}

.egg-promo-copy > p:not(.egg-promo-kicker) {
    margin: 0 0 1.65rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.egg-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.egg-promo .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.3s, background 0.2s, border-color 0.2s;
}

.egg-promo-watch {
    background: #15473c;
    color: #fff;
}

.egg-promo-watch:hover {
    background: #1a5a4a;
    color: #fff;
    box-shadow: 0 8px 30px rgba(21,71,60,0.3);
}

.egg-promo-find {
    background: #fff;
    color: #15473c;
    border-color: #d0d0d0 !important;
}

.egg-promo-find:hover {
    border-color: #15473c !important;
    background: rgba(21,71,60,0.05);
    color: #15473c;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Video lightbox (shared) */
.demo-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: demoFadeIn 0.2s ease;
}

.demo-video-modal.show {
    display: flex;
}

@keyframes demoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demo-video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.demo-video-modal-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-video-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    padding: 0.25rem 0.5rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.demo-video-close:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .egg-promo {
        grid-template-columns: 1fr;
    }

    .egg-promo-video {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .egg-promo-video picture,
    .egg-promo-video img {
        min-height: 0;
        height: 100%;
    }

    .egg-promo-copy {
        padding: 2.25rem 2rem 2.5rem;
        border-left: 0;
        border-top: 1px solid var(--color-border);
    }
}

@media (max-width: 700px) {
    .demo-video-modal {
        padding: 1rem;
    }

    .demo-video-close {
        top: -2rem;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .egg-promo-copy {
        padding: 1.75rem 1.25rem 2rem;
    }

    .egg-promo h2 {
        font-size: 2.15rem;
    }

    .egg-promo-actions .hero-btn {
        width: 100%;
    }
}
