/* fund-halo — layout, sizes, motion only (colours live in the template) */

.fund-halo__glow {
    width: 30rem;
    height: 30rem;
    margin-left: calc(50% - 15rem);
    margin-top: 26rem;
    filter: blur(90px);
}

.fund-halo__eyebrow {
    letter-spacing: 0.16em;
}

.fund-halo__title {
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.fund-halo__lead {
    max-width: 36rem;
}

.fund-halo__stat {
    border-left-style: dashed !important;
}

/* below lg the stat sits centred on its own line, without the divider */
.fund-halo__stat {
    align-items: center !important;
    text-align: center !important;
    padding-left: 0 !important;
    border-left-width: 0 !important;
}

.fund-halo__micro {
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.12em;
}

/* --- arc stage: a circle whose arc carries the bubbles ---
   --r  ring radius, --h stage height, --b bubble size,
   --base angle of the arc middle (0 = left point, -90deg = bottom point), --k spread factor */
.fund-halo__stage {
    --r: 18rem;
    --h: 14rem;
    --b: 3.5rem;
    --bm: 4.75rem;
    --base: -90deg;
    --k: 1.15;
    height: var(--h);
    margin-left: -2rem;
    margin-right: -2rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 35%);
    mask-image: linear-gradient(to bottom, transparent 0, black 35%);
}

.fund-halo__ring {
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
    margin-left: calc(50% - var(--r));
    margin-top: calc(var(--h) - var(--r) * 2 - var(--bm) / 2 - 1.75rem);
}

.fund-halo__spoke {
    --off: 0deg;
    --drift: 0.75rem;
    --a: calc(var(--base) + var(--off) * var(--k));
    width: 0;
    height: 0;
    transform: rotate(var(--a)) translateX(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
    animation: fund-halo-float 6s ease-in-out infinite;
}

.fund-halo__bubble {
    width: var(--b);
    height: var(--b);
    margin-left: calc(var(--b) / -2);
    margin-top: calc(var(--b) / -2);
}

.fund-halo__bubble--main {
    width: var(--bm);
    height: var(--bm);
    margin-left: calc(var(--bm) / -2);
    margin-top: calc(var(--bm) / -2);
}

.fund-halo__spoke--1 { --off: -11deg; animation-delay: -0.8s; }
.fund-halo__spoke--2 { --off: 11deg;  animation-delay: -1.6s; --drift: -0.75rem; }
.fund-halo__spoke--3 { --off: -22deg; animation-delay: -2.4s; }
.fund-halo__spoke--4 { --off: 22deg;  animation-delay: -3.2s; --drift: -0.75rem; }
.fund-halo__spoke--5 { --off: -33deg; animation-delay: -4s; }
.fund-halo__spoke--6 { --off: 33deg;  animation-delay: -4.8s; --drift: -0.75rem; }
.fund-halo__spoke--7 { --off: -44deg; animation-delay: -1.2s; }
.fund-halo__spoke--8 { --off: 44deg;  animation-delay: -2s; --drift: -0.75rem; }
.fund-halo__spoke--9 { --off: -55deg; animation-delay: -2.8s; }
.fund-halo__spoke--main { --off: 0deg; --drift: 0.5rem; animation-delay: -3.6s; }

/* mobile / tablet: lower arc keeps ~6 bubbles */
.fund-halo__spoke--7,
.fund-halo__spoke--8,
.fund-halo__spoke--9 {
    display: none;
}

@keyframes fund-halo-float {
    0%, 100% {
        transform: rotate(var(--a)) translateX(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
    }
    50% {
        transform: rotate(var(--a)) translateX(calc(-1 * var(--r) - var(--drift))) rotate(calc(-1 * var(--a)));
    }
}

@media (min-width: 768px) {
    .fund-halo__stage {
        --r: 28rem;
        --h: 16rem;
        --b: 4.25rem;
        --bm: 5.5rem;
        --k: 1.15;
    }

    .fund-halo__glow {
        width: 40rem;
        height: 40rem;
        margin-left: calc(50% - 20rem);
        margin-top: 24rem;
    }
}

@media (min-width: 1024px) {
    .fund-halo__lead {
        max-width: 34rem;
    }

    .fund-halo__stage {
        --r: 32rem;
        --h: 38rem;
        --b: 4rem;
        --bm: 5.5rem;
        --base: 0deg;
        --k: 0.85;
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .fund-halo__stat {
        align-items: flex-start !important;
        text-align: left !important;
        padding-left: 1.5rem !important;
        border-left-width: 1px !important;
    }

    .fund-halo__ring {
        margin-left: 18%;
        margin-top: calc(var(--h) / 2 - var(--r));
    }

    .fund-halo__spoke--7,
    .fund-halo__spoke--8,
    .fund-halo__spoke--9 {
        display: block;
    }

    .fund-halo__glow {
        width: 46rem;
        height: 46rem;
        margin-left: 52%;
        margin-top: 2rem;
    }
}

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

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
/* advantages reveal — chevron toggle button reset + rotation + decor orb (layout/motion only, no colors) */

.advantages-reveal__orb {
    width: 20rem;
    height: 20rem;
    bottom: -6rem;
    right: -6rem;
}

.advantages-reveal__trigger {
    cursor: pointer;
}

.advantages-reveal__chevron {
    transition: transform 0.25s ease;
}

.advantages-reveal__trigger.is-open .advantages-reveal__chevron {
    transform: rotate(180deg);
}

/* whyus v19 — fluid clamp() heading (Tailwind has no bare clamp() utility) */
.whyus-glitch-stack__heading {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
}

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.mxw-3xl {
    max-width: 48rem !important;
}

.whyus-glitch-stack__head,
.whyus-glitch-stack__media {
    margin: 0 0 2.5rem;
}

.whyus-glitch-stack__media-img {
    height: 16rem;
}

.whyus-glitch-stack__card--offset {
    margin-top: 2.5rem;
}

.whyus-glitch-stack__card-title {
    font-size: 1.125rem;
}

/* sticky reading-progress bar — JS sets --wpg-progress (0..1), CSS turns it into a scaleX */
.whyus-glitch-stack__progress {
    height: 0.25rem;
    overflow: hidden;
}

.whyus-glitch-stack__progress-fill {
    transform: scaleX(var(--wpg-progress, 0));
    transform-origin: left center;
    will-change: transform;
}

/* responsive art-direction crop for the section hero image (BS has no object-fit util) */
.whyus-glitch-stack__media-img {
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .whyus-glitch-stack__media-img {
        height: 20rem;
        object-position: center 35%;
    }
}

/* scale-up-on-load reveal, staggered per card by JS (IntersectionObserver adds is-visible) */
.whyus-glitch-stack__reveal {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 550ms ease, transform 550ms ease;
}

.whyus-glitch-stack__reveal.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* cursor-follow spotlight — currentColor keeps this file color-free, opacity/lightness only */
.whyus-glitch-stack__card {
    isolation: isolate;
}

.whyus-glitch-stack__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), currentColor, transparent 60%);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.whyus-glitch-stack__card:hover::after {
    opacity: 0.05;
}

/* cross-hatch corner marks — repeating-linear-gradient on currentColor, no hardcoded color */
.whyus-glitch-stack__hatch {
    width: 1.5rem;
    height: 1.5rem;
    pointer-events: none;
}

.whyus-glitch-stack__hatch::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 4px);
    opacity: 0.6;
}

.whyus-glitch-stack__hatch--tl {
    top: 0;
    inset-inline-start: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.whyus-glitch-stack__hatch--br {
    bottom: 0;
    inset-inline-end: 0;
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

/* native details marker rotates open/closed instead of the UA default triangle */
.whyus-glitch-stack__summary {
    list-style: none;
    cursor: pointer;
}

.whyus-glitch-stack__summary::-webkit-details-marker {
    display: none;
}

.whyus-glitch-stack__chevron {
    transition: transform 200ms ease;
}

details[open] > .whyus-glitch-stack__summary .whyus-glitch-stack__chevron {
    transform: rotate(45deg);
}

/* integrations — unified hover (layout; shadow + lift; respect reduced motion) */
.integrations-card-hover {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.integrations-card-hover:hover {
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-2px) scale(1.03);
}

.integrations-card-hover--shadow-only {
    transition: box-shadow 0.35s ease;
}

.integrations-card-hover--shadow-only:hover {
    transform: none;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .integrations-card-hover:hover {
        transform: none;
    }
}

/* Primary tile: wpg-preview --tw-primary-* | --bs-primary-scale-*; inherited --bs-primary hex */
.integrations__icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    --_ie-from: rgb(var(--tw-primary-500, var(--bs-primary-scale-500, 99 102 241)) / 1);
    --_ie-to: rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1);
    background-color: var(--bs-primary, rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1));
    background-image: linear-gradient(to bottom right, var(--_ie-from), var(--_ie-to));
}
.integrations__icon-tile i {
    color: inherit;
}
.integrations__icon-tile svg,
.integrations__icon-tile :is(path, circle, rect, polygon) {
    fill: currentColor;
}

/* Softer card hover shadow (avoids muddy stack with shadow-lg / BS cards) */
.integrations-card-hover:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}
.integrations-card-hover--shadow-only:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}

/* Dot grid background */
.integrations__dot-grid {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 28px 28px;
    color: rgb(148 163 184 / 0.3);
}

/* v11 fixed sizes (Bootstrap branch; no colors) */
.integrations-v11__icon-tile {
    width: 3rem;
    height: 3rem;
}

.integrations-v11__center-dot {
    width: 1.25rem;
    height: 1.25rem;
    border: 4px solid var(--bs-body-bg);
}

.integrations-v11__step-dot {
    width: 0.5rem;
    height: 0.5rem;
}

.integrations-v11__card-col {
    width: 100%;
}

@media (min-width: 768px) {
    .integrations-v11__card-col {
        width: 41.666667%;
    }
}

.integrations-v11__dot-col {
    width: 16.666667%;
}

.integrations-v11__number {
    font-size: 3.75rem;
    line-height: 1;
    font-weight: 900;
    opacity: 0.25;
    user-select: none;
}

/* Hover effects moved out of the sem directive (custom classes, framework-independent) */
.integrations-v11__fx-card .integrations__icon-tile { transition: transform 0.3s ease; }
.integrations-v11__fx-card:hover .integrations__icon-tile { transform: scale(1.1); }
.integrations-v11__fx-card h3 { transition: color 0.3s ease; }
.integrations-v11__fx-card:hover h3 { color: var(--bs-primary, rgb(var(--tw-primary-400) / 1)); }
.dark .integrations-v11__fx-card:hover h3 { color: var(--bs-primary, rgb(var(--tw-primary-600) / 1)); }
@media (prefers-reduced-motion: reduce) {
    .integrations-v11__fx-card:hover .integrations__icon-tile { transform: none; }
}

/* cta v41 — nest calculator card: floating motion, stacked bars (no colors) */
.cta-nest__float { animation: cta-nest-float 7s ease-in-out infinite; }
.cta-nest__card { opacity: 0; transform: translateY(2rem) scale(.98); transition: opacity 700ms ease, transform 800ms cubic-bezier(.2, .8, .2, 1); }
.cta-nest__card.is-visible { opacity: 1; transform: none; }
.cta-nest__icon { width: 3rem; height: 3rem; }
.cta-nest__micro { font-size: .75rem; line-height: 1.15rem; }
.cta-nest__info { margin-top: .2rem; }
.cta-nest__range { cursor: pointer; }
.cta-nest__dot { display: inline-block; width: .625rem; height: .625rem; }

.cta-nest__chart { height: 10rem; }
.cta-nest__stack { height: 4%; min-height: .375rem; transition: height 600ms cubic-bezier(.2, .8, .2, 1); }
.cta-nest__seg { flex: 0 0 auto; height: 0; transition: height 600ms cubic-bezier(.2, .8, .2, 1); }

@keyframes cta-nest-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.5rem; } }

@media (prefers-reduced-motion: reduce) {
    .cta-nest__float { animation: none; }
    .cta-nest__card { opacity: 1; transform: none; transition: none; }
    .cta-nest__stack, .cta-nest__seg { transition: none; }
}

.cta-nest__chart > * { min-width: 0; flex-basis: 0; }
/* phones: only every other period label fits under the columns */
@media (max-width: 767.98px) {
    .cta-nest__chart > :nth-child(even) [data-year] { visibility: hidden; }
}
/* card captions stay small in both frameworks; period labels never wrap under narrow columns, the badge never pushes the total out */
.cta-nest__card .cta-nest__micro { font-size: .75rem !important; line-height: 1.15rem !important; }
.cta-nest__chart [data-year] { white-space: nowrap; font-size: .6875rem !important; text-align: center; }
.cta-nest__card .cta-nest__micro:not([data-year]) { min-width: 0; overflow-wrap: anywhere; }
.cta-nest :has(> [data-total]) + .cta-nest__micro { max-width: 50%; }
.cta-nest :has(> [data-total]) { min-width: 0; }

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.cta-nest[hidden], .cta-nest [hidden], .cta-nest .hidden.d-none { display: none !important; }
.cta-nest output[data-total] { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem) !important; overflow-wrap: anywhere; }
.cta-nest :has(> output[data-total]) > :first-child { overflow-wrap: anywhere; }

