/* HOME-STYLE-ISOLATION-001
 * Shared Programming demo popup.
 * Every visual selector is deliberately anchored through body + component
 * namespace so page-level resets cannot strip its spacing or typography.
 */
body .programming-demo-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    font-family: "Inter", sans-serif;
    z-index: 12000;
}

body .programming-demo-popup,
body .programming-demo-popup *,
body .programming-demo-popup *::before,
body .programming-demo-popup *::after { box-sizing: border-box; }

body .programming-demo-popup.is-visible { display: flex; }
body.programming-demo-popup-open { overflow: hidden; }

body .programming-demo-popup__modal {
    position: relative;
    z-index: 12001;
    width: min(500px, 100%);
    max-height: 90vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: programmingDemoPopupSlideUp .4s ease-out;
}

body .programming-demo-popup__close {
    appearance: none;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 2;
    display: flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

body .programming-demo-popup__close:hover { background: rgba(255,255,255,.3); transform: scale(1.08); }
body .programming-demo-popup__close:focus-visible,
body .programming-demo-popup__phone a:focus-visible,
body .programming-demo-popup__button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

body .programming-demo-popup__image {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
    background-position: center;
    background-size: cover;
}
body .programming-demo-popup__image::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(30,58,138,.3), rgba(30,64,175,.6));
}

body .programming-demo-popup__content {
    margin: 0;
    padding: 30px;
    color: #fff;
    font-family: "Inter", sans-serif;
    text-align: center;
}

body .programming-demo-popup__title {
    margin: 0 0 15px;
    padding: 0;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}
body .programming-demo-popup__subtitle {
    margin: 0 0 20px;
    padding: 0;
    color: rgba(255,255,255,.95);
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}
body .programming-demo-popup__phone {
    display: block;
    margin: 0 0 25px;
    padding: 0;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
}
body .programming-demo-popup__phone a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
}
body .programming-demo-popup__phone a:hover { text-decoration: underline; text-underline-offset: 3px; }
body .programming-demo-popup__phone svg { display: block; width: 20px; height: 20px; margin: 0; padding: 0; flex: 0 0 auto; }

body .programming-demo-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 15px 30px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 30px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: transform .2s ease, background .2s ease;
}
body .programming-demo-popup__button:hover { transform: translateY(-2px); background: rgba(255,255,255,.3); }
body .programming-demo-popup__button svg { display: block; width: 20px; height: 20px; margin: 0; padding: 0; flex: 0 0 auto; }

@keyframes programmingDemoPopupSlideUp {
    from { opacity: 0; transform: translateY(50px) scale(.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    body .programming-demo-popup { padding: 14px; }
    body .programming-demo-popup__modal { max-height: 92vh; border-radius: 16px; }
    body .programming-demo-popup__image { height: 165px; border-radius: 16px 16px 0 0; }
    body .programming-demo-popup__content { padding: 24px 20px 26px; }
    body .programming-demo-popup__title { font-size: 1.5rem; }
    body .programming-demo-popup__subtitle { font-size: .95rem; }
    body .programming-demo-popup__button { width: 100%; padding: 14px 20px; }
}
