/* =========================================
   Promo popup: Telescope
   ========================================= */
.popup-container.tlsc-popup {
    --tlsc-purple: #6d3fd6;
    --tlsc-purple-light: #c4b5fd;
    --tlsc-cyan: #22d3ee;
    --tlsc-green: #059669;
    position: relative;
    max-width: 66rem;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(160deg, #5a6b82 0%, #3e4c61 45%, #263140 100%);
    color: #fff;
    font-family: var(--ff-1), "Inter", Arial, sans-serif;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

/* decorative diagonal lines */
.tlsc-popup__lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.35) 50%, transparent calc(50% + 0.5px)) -30% 0 / 60% 100% no-repeat,
        linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.3) 50%, transparent calc(50% + 0.5px)) 30% 100% / 70% 80% no-repeat,
        linear-gradient(135deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.3) 50%, transparent calc(50% + 0.5px)) 100% 100% / 40% 70% no-repeat;
}

.tlsc-popup__watermark {
    position: absolute;
    left: 13%;
    bottom: -0.18em;
    font-size: clamp(4rem, 13vw, 10rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.tlsc-popup__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 2rem;
    padding: 3.5rem 3.5rem 3rem 4rem;
}

.tlsc-popup__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* logo */
.tlsc-popup__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
}

.tlsc-logo-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 3rem;
    flex-shrink: 0;
}
.tlsc-logo-icon i {
    display: flex;
    gap: 0.15rem;
    height: 0.3rem;
}
.tlsc-logo-icon i::before {
    content: "";
    width: 0.95rem;
    background: repeating-linear-gradient(90deg, var(--tlsc-purple) 0 0.25rem, transparent 0.25rem 0.35rem);
    border-radius: 1px;
}
.tlsc-logo-icon i::after {
    content: "";
    flex: 1;
    border-radius: 1rem;
    background: var(--tlsc-purple-light);
}
.tlsc-logo-icon i:nth-child(2)::after { margin-right: 0.35rem; }
.tlsc-logo-icon i:nth-child(4)::after { margin-right: 0.6rem; }

.tlsc-popup__title {
    margin-top: 3rem;
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.tlsc-popup__text {
    margin-top: 1.5rem;
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}
.tlsc-popup__text p { margin: 0; }
.tlsc-popup__text b { font-weight: 600; color: #fff; }

/* CTA */
.tlsc-popup__btn {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2.5rem;
    padding: 1.1rem 1.75rem;
    border: 2px solid #fff;
    border-radius: 3rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: background-color var(--transition-1, 0.4s ease), color var(--transition-1, 0.4s ease), transform 0.2s ease;
}
.tlsc-popup__btn i {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: inherit;
}
.tlsc-popup__btn:hover,
.tlsc-popup__btn:focus-visible {
    background: #fff;
    color: #263140;
}
.tlsc-popup__btn:hover i,
.tlsc-popup__btn:focus-visible i {
    background: var(--tlsc-purple);
    transform: scale(1.3);
}
.tlsc-popup__btn:active { transform: scale(0.98); }

.tlsc-popup__site {
    margin-top: 2.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* close button */
.popup-container.tlsc-popup .btn-close {
    top: 1rem;
    right: 1rem;
    --bw: 2.25rem;
    border-radius: 50%;
    color: #fff;
}
.popup-container.tlsc-popup .btn-close:hover {
    color: #263140;
    background-color: #fff;
}

/* ---------- Visual ---------- */
.tlsc-popup__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.tlsc-arrow {
    position: relative;
    flex-shrink: 0;
    width: 2.6rem;
    height: 3px;
    border-radius: 2px;
    background: var(--tlsc-cyan);
}
.tlsc-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 3px solid var(--tlsc-cyan);
    border-right: 3px solid var(--tlsc-cyan);
    border-radius: 2px;
    transform: translateY(-50%) rotate(45deg);
}

.tlsc-doc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 8rem;
    padding: 1.1rem 0.9rem;
    border-radius: 0.5rem;
    background: #fff;
    transform: rotate(-4deg);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
}
.tlsc-doc__head { width: 70%; height: 0.55rem; border-radius: 1rem; background: #1e1b4b; }
.tlsc-doc__line { width: 90%; height: 0.3rem; border-radius: 1rem; background: #d4d8e2; }
.tlsc-doc__line.short { width: 75%; }
.tlsc-doc__box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding: 0.6rem;
    border: 1px solid #d4d8e2;
    border-radius: 0.3rem;
    background: #f3f4f8;
}
.tlsc-doc__box i { height: 0.3rem; width: 80%; border-radius: 1rem; background: #d4d8e2; }
.tlsc-doc__box i + i { width: 60%; }
.tlsc-doc__btn { align-self: flex-end; width: 45%; height: 0.5rem; margin-top: 0.4rem; border-radius: 1rem; background: var(--tlsc-cyan); }

.tlsc-core {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 6.5rem;
    height: 6.5rem;
    padding: 0.55rem;
    border: 2px solid #5b4fe0;
    border-radius: 1.4rem;
    background: #3b2f9e;
    box-shadow: 0 0 2rem rgba(109, 63, 214, 0.45);
    animation: tlscPulse 2.4s ease-in-out infinite;
}
.tlsc-core .tlsc-logo-icon {
    width: 100%;
    height: 100%;
    justify-content: center;
    padding: 0 0.6rem;
    border-radius: 1rem;
    background: #1e1b4b;
}

.tlsc-result {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 8.5rem;
    padding: 1.1rem 0.9rem 0.9rem;
    border-radius: 0.5rem;
    background: #eef6fb;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
}
.tlsc-result__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tlsc-result__row i { flex: 1; max-width: 80%; height: 0.4rem; border-radius: 1rem; background: #9aa5b8; }
.tlsc-result__row.short i { max-width: 55%; }
.tlsc-result__row b {
    position: relative;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--tlsc-green);
}
.tlsc-result__row b::after {
    content: "";
    position: absolute;
    left: 0.33rem;
    top: 0.2rem;
    width: 0.25rem;
    height: 0.45rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}
.tlsc-result__json {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4f46e5;
}

@keyframes tlscPulse {
    0%, 100% { box-shadow: 0 0 1.5rem rgba(109, 63, 214, 0.35); }
    50%      { box-shadow: 0 0 2.75rem rgba(109, 63, 214, 0.7); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .tlsc-popup__inner { padding: 3rem 2.5rem 2.5rem; }
    .tlsc-popup__visual { transform: scale(0.85); transform-origin: center; }
}

@media (max-width: 991px) {
    .tlsc-popup__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .tlsc-popup__visual { order: -1; transform: none; margin-top: 1rem; }
    .tlsc-popup__title { margin-top: 2rem; }
}

@media (max-width: 575px) {
    .popup-container.tlsc-popup { border-radius: 0.75rem; }
    .tlsc-popup__inner { padding: 3rem 1.25rem 1.75rem; gap: 1.5rem; }
    .tlsc-popup__visual { transform: scale(0.62); margin: -1.5rem -3rem; }
    .tlsc-popup__logo { font-size: 1.4rem; }
    .tlsc-popup__title { margin-top: 1.5rem; }
    .tlsc-popup__btn { gap: 1.5rem; margin-top: 1.75rem; width: 100%; justify-content: space-between; }
    .tlsc-popup__site { margin-top: 1.5rem; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tlsc-core { animation: none; }
}
