/* Free-tool CTA row (Pages/Shared/_Nis2CheckerCta.cshtml). Loaded only on pages that place the row.
   Mid-page and secondary to the closing signup CTA. Layout follows .hs-inline-cta (copy left, button
   right). Glow colours come only from the CTA button stops over a navy base: an indigo base under
   an ice-blue glow reads purple. VorninMarketing#10. */
.tool-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 32px 0;
    padding: 32px 44px 32px 32px;
    border-radius: var(--r-md);
    box-shadow: 0 30px 70px -36px rgba(2, 5, 15, .9);
    background:
        radial-gradient(ellipse 46% 120% at 14% 110%, rgba(42, 182, 234, .50) 0%, rgba(42, 182, 234, .16) 45%, rgba(42, 182, 234, 0) 100%),
        radial-gradient(ellipse 30% 90% at 40% -20%, rgba(0, 191, 255, .30) 0%, rgba(0, 191, 255, .08) 55%, rgba(0, 191, 255, 0) 100%),
        radial-gradient(ellipse 24% 80% at 2% 10%, rgba(59, 121, 201, .32) 0%, rgba(59, 121, 201, 0) 100%),
        linear-gradient(90deg, #0B1D38 0%, #08152B 46%, #060E1E 78%, #050B18 100%);
}

/* 1px gradient border: faint cyan left, near-white 4% right. No solid teal hairline. */
.tool-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(42, 182, 234, .34) 0%, rgba(42, 182, 234, .14) 45%, rgba(176, 200, 230, .06) 75%, rgba(176, 200, 230, .04) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Triangular mesh (0/60/120 degrees, ~10px pitch), masked to the lit left side. */
.tool-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .14;
    background:
        repeating-linear-gradient(0deg, rgba(190, 235, 255, .55) 0 .6px, transparent .6px 10px),
        repeating-linear-gradient(60deg, rgba(190, 235, 255, .55) 0 .6px, transparent .6px 10px),
        repeating-linear-gradient(120deg, rgba(190, 235, 255, .55) 0 .6px, transparent .6px 10px);
    -webkit-mask-image: radial-gradient(60% 140% at 20% 60%, #000 0%, transparent 75%);
    mask-image: radial-gradient(60% 140% at 20% 60%, #000 0%, transparent 75%);
}

.tool-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-5) var(--space-7);
}

.tool-cta-glass {
    padding: 22px 26px;
    border-radius: 0;
    background: rgba(190, 235, 255, .06);
    border: 1px solid rgba(190, 235, 255, .16);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.tool-cta-eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 2px;
    font: 600 11px/1.2 var(--font-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #BFE9FF;
    background: rgba(0, 191, 255, .12);
    border: 1px solid rgba(0, 191, 255, .28);
}

/* Qualified with .tool-cta so article-body strong/p rules do not win. */
.tool-cta .tool-cta-title {
    display: block;
    margin: 0 0 4px;
    color: var(--ink);
    font: 700 1.3rem/1.35 var(--font-display);
    text-shadow: 0 1px 12px rgba(10, 15, 36, .35);
}

.tool-cta .tool-cta-lead {
    display: block;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.0625rem;
    line-height: 1.55;
}

.tool-cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: 0 4px;
    text-align: center;
}

.tool-cta-action .btn {
    justify-content: center;
    white-space: nowrap;
}

.tool-cta .tool-cta-action .data-trust {
    margin: 0;
    text-align: center;
}

/* Stacks: glow behind the glass panel, full-width button below on dark. */
@media (max-width: 820px) {
    .tool-cta {
        padding: 20px 20px 26px;
        background:
            radial-gradient(ellipse 90% 60% at 20% 0%, rgba(42, 182, 234, .46) 0%, rgba(42, 182, 234, .14) 50%, rgba(42, 182, 234, 0) 100%),
            radial-gradient(ellipse 60% 40% at 90% 10%, rgba(59, 121, 201, .30) 0%, rgba(59, 121, 201, 0) 100%),
            linear-gradient(180deg, #0B1D38 0%, #08152B 55%, #050B18 100%);
    }

    .tool-cta-inner { grid-template-columns: 1fr; }
    .tool-cta-action { align-items: stretch; }
    .tool-cta-action .btn { width: 100%; padding-left: 12px; padding-right: 12px; font-size: 1rem; white-space: normal; }
    .tool-cta-glass { padding: 20px; }
}
