/**
 * Global CTA stage — dark ripple band + orange cursor.
 * Loaded after Vite global so Local picks up source CSS without a rebuild.
 */

.technical-cta-grid {
    --cta-stage-bg: var(--t1-dark-panel, var(--wp--preset--color--text-main));
    --cta-stage-ink: var(--wp--preset--color--bg);
    --cta-stage-muted: var(--t1-dark-muted, color-mix(in srgb, var(--wp--preset--color--bg) 65%, transparent));
    --cta-stage-ring: color-mix(in srgb, var(--wp--preset--color--bg) 16%, transparent);

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: min(52vh, 520px);
    margin-top: var(--wp--preset--spacing--64);
    /* Footer has no 128px margin-top anymore (.ft-social owns padding).
       The old 64px-offset formula (64 − 128 = −64) overlapped the social band. */
    margin-bottom: 0;
    padding: clamp(64px, 8vw, 120px) var(--wp--preset--spacing--32) clamp(72px, 8vw, 112px);
    overflow: hidden;
    border: 0;
    border-radius: var(--t1-radius-panel, 20px);
    background-color: var(--cta-stage-bg);
    color: var(--cta-stage-ink);
}

.technical-cta-grid .tech-corner,
.technical-cta-grid .tech-coord-top {
    display: none;
}

.cta-ripples {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-ripples span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(22vw, 200px);
    aspect-ratio: 1;
    margin: 0;
    border: 1px solid var(--cta-stage-ring);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.35);
    animation: cta-ripple 12s linear infinite;
}

.cta-ripples span:nth-child(1) { animation-delay: 0s; }
.cta-ripples span:nth-child(2) { animation-delay: -2s; }
.cta-ripples span:nth-child(3) { animation-delay: -4s; }
.cta-ripples span:nth-child(4) { animation-delay: -6s; }
.cta-ripples span:nth-child(5) { animation-delay: -8s; }
.cta-ripples span:nth-child(6) { animation-delay: -10s; }

@keyframes cta-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.28);
        opacity: 0.55;
    }
    70% {
        opacity: 0.12;
    }
    100% {
        transform: translate(-50%, -50%) scale(7.2);
        opacity: 0;
    }
}

.technical-cta-grid .footer-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--24);
    max-width: min(52rem, 100%);
    min-width: 0;
    box-sizing: border-box;
}

.technical-cta-grid .fp-final-cta__eyebrow {
    margin: 0;
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cta-stage-muted);
}

.technical-cta-grid .massive-cta {
    margin: 0;
    font-size: clamp(44px, 6.2vw, 80px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--cta-stage-ink);
}

.technical-cta-grid .fp-final-cta__support {
    margin: 0;
    max-width: 28em;
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 400;
    line-height: 1.5;
    color: var(--cta-stage-muted);
    text-wrap: pretty;
}

.cta-cursor {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 104px;
    height: 104px;
    max-width: 100%;
    margin-top: var(--wp--preset--spacing--16);
    padding: 12px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--bg);
    text-decoration: none;
    text-align: center;
    touch-action: manipulation;
}

.cta-cursor__label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cta-cursor:focus-visible {
    outline: 2px solid var(--cta-stage-ink);
    outline-offset: 4px;
}

.technical-cta-grid .cta-trust-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.4;
    color: var(--cta-stage-muted);
    box-sizing: border-box;
}

.technical-cta-grid .cta-trust-note svg {
    flex-shrink: 0;
}

/* Fine pointer: orange dot exists only while the pointer is over the band */
@media (hover: hover) and (pointer: fine) {
    .technical-cta-grid.has-cta-cursor,
    .technical-cta-grid.has-cta-cursor * {
        cursor: none;
    }

    .technical-cta-grid.has-cta-cursor:has(.cta-cursor:focus-visible),
    .technical-cta-grid.has-cta-cursor:has(.cta-cursor:focus-visible) * {
        cursor: auto;
    }

    .has-cta-cursor .cta-cursor {
        position: absolute;
        left: 0;
        top: 0;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        will-change: transform;
    }

    .has-cta-cursor.is-cursor-on .cta-cursor,
    .has-cta-cursor .cta-cursor:focus-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .technical-cta-grid.has-cta-cursor .footer-cta-content,
    .technical-cta-grid.has-cta-cursor .cta-trust-note {
        pointer-events: none;
    }

}

@media (min-width: 601px) {
    .technical-cta-grid .cta-trust-note {
        position: absolute;
        left: 0;
        right: 0;
        bottom: clamp(16px, 3vw, 32px);
        margin: 0;
    }
}

@media (max-width: 600px) {
    .technical-cta-grid {
        min-height: 0;
        margin-top: 32px;
        margin-bottom: 32px;
        padding: var(--wp--preset--spacing--48) var(--wp--preset--spacing--16) var(--wp--preset--spacing--40);
    }

    .technical-cta-grid .footer-cta-content {
        max-width: 100%;
        gap: var(--wp--preset--spacing--16);
    }

    .technical-cta-grid .massive-cta {
        font-size: clamp(32px, 9vw, 48px);
    }

    .cta-cursor {
        width: 96px;
        height: 96px;
    }

    .technical-cta-grid .cta-trust-note {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-ripples span {
        animation: none;
        opacity: 0.22;
        transform: translate(-50%, -50%) scale(2.4);
    }

    .cta-ripples span:nth-child(n + 4) {
        display: none;
    }

    .technical-cta-grid .footer-cta-content,
    .technical-cta-grid .massive-cta,
    .technical-cta-grid .fp-final-cta__eyebrow,
    .technical-cta-grid .fp-final-cta__support,
    .technical-cta-grid .cta-trust-note,
    .cta-cursor {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

body.no-motion .cta-ripples span {
    animation: none;
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(2.4);
}
