/* intro v21 — Loewe fold: vertical heading, watercolor blob, sketch figure, load rise */

/* Rotated 90° vertical heading */
.intro-fold__vtitle {
    writing-mode: vertical-rl;
    white-space: nowrap;
    line-height: 1;
}
@media (max-width: 767.98px) {
    .intro-fold__vtitle { writing-mode: horizontal-tb; }
}

/* Wax-seal / watercolor blob */
.intro-fold__blob {
    width: 24rem;
    height: 24rem;
    filter: blur(56px);
    opacity: 0.4;
    border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%;
}

/* Drop-cap lead (framework-agnostic ::first-letter, no TW variant dependency) */
.intro-fold__lead::first-letter {
    font-size: 3rem;
    font-weight: 900;
    float: left;
    line-height: 0.9;
    margin-right: 0.75rem;
}

/* Like button fixed size (no BS w-N/h-N utility) */
.intro-fold__like {
    width: 2.25rem;
    height: 2.25rem;
}

/* Hand-drawn sketch treatment on the figure */
.intro-fold [data-figure] { aspect-ratio: 16 / 9; }
.intro-fold__img {
    object-fit: cover;
    filter: grayscale(0.35) contrast(1.12) saturate(0.9);
}

/* Subtle scale-up on load (0.92 → 1) */
.intro-fold__rise {
    opacity: 0;
    transform: scale(0.92);
    animation: intro-fold-rise 620ms ease forwards;
}
@keyframes intro-fold-rise {
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-fold__rise { opacity: 1; transform: none; animation: none; }
}

.services-grid-dense__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-grid-dense__dots {
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.dark .services-grid-dense__dots,
[data-bs-theme="dark"] .services-grid-dense__dots {
    color: var(--bs-primary);
}

/* whyus v18 — overlap-duo cardless benefits table, mountain motif, art-deco ornament */

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.whyus-summit {
    isolation: isolate;
    min-height: 100vh;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-xl {
    max-width: 36rem !important;
}

.whyus-summit__wrap {
    padding-inline: 1.5rem;
}

.whyus-summit__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.whyus-summit__title {
    font-size: 1.875rem;
}

.whyus-summit__badge {
    font-size: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    letter-spacing: 0.025em;
}

.whyus-summit__table {
    margin-top: 2rem;
    border-collapse: collapse;
}

.whyus-summit__th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.whyus-summit__cell {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.whyus-summit__cell--icon,
.whyus-summit__cell--title {
    padding-inline-end: 1rem;
}

.whyus-summit__cell--icon {
    width: 3rem;
}

.whyus-summit__row-title {
    transition: letter-spacing 150ms ease;
}

.whyus-summit__row-title:hover {
    letter-spacing: 0.025em;
}

.whyus-summit__foot {
    padding-top: 2rem;
}

.whyus-summit__cta {
    padding: 0.75rem 1.5rem;
    transition: transform 150ms ease;
}

.whyus-summit__cta--hover:hover {
    transform: scale(1.05);
}

/* ---------- overlap-duo illustration block ---------- */
.whyus-summit__media {
    margin: 0;
    aspect-ratio: 4 / 5;
    min-height: 20rem;
}

@media (min-width: 1024px) {
    .whyus-summit__media {
        aspect-ratio: 3 / 4;
    }
}

/* flat mountain-range silhouette clipped into the top edge of the illustration */
.whyus-summit__mountain {
    clip-path: polygon(
        0% 18%, 12% 9%, 22% 16%, 34% 4%, 46% 14%, 58% 6%,
        70% 15%, 82% 8%, 100% 17%, 100% 100%, 0% 100%
    );
}

.whyus-summit__caption {
    max-width: 80%;
    bottom: 1.5rem;
    inset-inline-start: 1.5rem;
    letter-spacing: 0.1em;
}

.whyus-summit__media-overlay {
    --bs-bg-opacity: 0.4;
}

/* ---------- bordered text/table panel ---------- */
.whyus-summit__border-frame {
    overflow: hidden;
    padding: 2rem;
    --bs-bg-opacity: 0.95;
    backdrop-filter: blur(12px);
}

/* animated shimmering border overlay — color comes from the Tailwind gradient
   classes in the template; this rule only animates position/opacity */
.whyus-summit__shimmer {
    background-size: 220% 100%;
    background-position: 0% 0%;
    animation: whyus-summit-shimmer 7s linear infinite;
    animation-delay: 0.6s;
}

@keyframes whyus-summit-shimmer {
    0% {
        background-position: 0% 0%;
        opacity: 0.2;
    }
    50% {
        background-position: 100% 0%;
        opacity: 0.4;
    }
    100% {
        background-position: 220% 0%;
        opacity: 0.2;
    }
}

/* content-first reveal: heading/subtitle/table animate immediately,
   decorative elements (fireflies, chevrons, sunburst) animate slightly after */
.whyus-summit__anim-content {
    animation: whyus-summit-fade-up 0.7s ease-out both;
}

@keyframes whyus-summit-fade-up {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- art-deco geometric ornament ---------- */
.whyus-summit__sunburst {
    --bs-text-opacity: 0.1;
    top: -4rem;
    right: -4rem;
    width: 22rem;
    height: 22rem;
    animation: whyus-summit-fade-up 1s ease-out both;
    animation-delay: 0.5s;
}

.whyus-summit__chevron {
    --bs-bg-opacity: 0.2;
    width: 3.5rem;
    height: 1.25rem;
    clip-path: polygon(0% 0%, 50% 100%, 100% 0%, 100% 40%, 50% 100%, 0% 40%);
    animation: whyus-summit-fade-up 1s ease-out both;
    animation-delay: 0.55s;
}

.whyus-summit__chevron--top {
    top: 1.5rem;
    left: 2rem;
}

.whyus-summit__chevron--bottom {
    bottom: 1.5rem;
    right: 2rem;
    transform: rotate(180deg);
}

/* ---------- fireflies: soft blinking, drifting dots ---------- */
.whyus-summit__fireflies {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.whyus-summit__firefly {
    width: 0.5rem;
    height: 0.5rem;
    --bs-bg-opacity: 0.7;
    filter: blur(4px);
    animation-name: whyus-summit-firefly;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: 0.8s;
}

.whyus-summit__firefly--1 { top: 12%; left: 8%; width: 0.375rem; height: 0.375rem; animation-duration: 5.5s; animation-delay: 0.8s; }
.whyus-summit__firefly--2 { top: 28%; left: 42%; width: 0.5rem; height: 0.5rem; animation-duration: 6.5s; animation-delay: 1.4s; }
.whyus-summit__firefly--3 { top: 62%; left: 18%; width: 0.3125rem; height: 0.3125rem; animation-duration: 7s; animation-delay: 1s; }
.whyus-summit__firefly--4 { top: 74%; left: 55%; width: 0.5rem; height: 0.5rem; animation-duration: 5.8s; animation-delay: 1.8s; }
.whyus-summit__firefly--5 { top: 20%; left: 82%; width: 0.375rem; height: 0.375rem; animation-duration: 6.2s; animation-delay: 1.2s; }
.whyus-summit__firefly--6 { top: 85%; left: 88%; width: 0.4375rem; height: 0.4375rem; animation-duration: 6.8s; animation-delay: 2s; }

@keyframes whyus-summit-firefly {
    0%, 100% {
        opacity: 0.15;
        transform: translate(0, 0);
    }
    35% {
        opacity: 0.85;
        transform: translate(0.4rem, -0.6rem);
    }
    65% {
        opacity: 0.4;
        transform: translate(-0.3rem, 0.3rem);
    }
}

/* ---------- checkbox-hack view toggle (CSS-only, no script.js) ---------- */
.whyus-summit__toggle-btn {
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 200ms ease;
}

.whyus-summit__toggle-btn--list {
    opacity: 1;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__toggle .whyus-summit__toggle-btn--list {
    opacity: 0.55;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__toggle .whyus-summit__toggle-btn--grid {
    opacity: 1;
}

/* default (unchecked) = list-like single-column flow: the table renders as normal rows */

/* checked = grid-like compact 2-column arrangement */
.whyus-summit__toggle-input:checked ~ .whyus-summit__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__table tbody {
    display: block;
    column-count: 2;
    column-gap: 2rem;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__table tr.whyus-summit__row {
    display: block;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__table tr.whyus-summit__row td {
    display: block;
    width: 100%;
    padding-right: 0;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__table tfoot {
    column-span: all;
}

@media (max-width: 639px) {
    .whyus-summit__toggle-input:checked ~ .whyus-summit__table tbody {
        column-count: 1;
    }
}

@media (min-width: 640px) {
    .whyus-summit__wrap {
        padding-inline: 2.5rem;
    }

    .whyus-summit__border-frame {
        padding: 2.5rem;
    }

    .whyus-summit__title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .whyus-summit__wrap {
        padding-inline: 4rem;
    }

    .whyus-summit__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .whyus-summit__media {
        margin-inline-end: -4rem;
    }

    .whyus-summit__panel {
        margin-inline-start: -4rem;
    }
}

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

/* Mobile: the benefits table stacks into single-column rows (identical in both frameworks) */
@media (max-width: 767.98px) {
    .whyus-summit__table,
    .whyus-summit__table tbody,
    .whyus-summit__table tfoot,
    .whyus-summit__table tr {
        display: block;
        width: 100%;
    }

    .whyus-summit__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .whyus-summit__cell,
    .whyus-summit__foot {
        display: block;
        width: 100%;
    }

    .whyus-summit__cell {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        padding-inline-end: 0;
    }

    .whyus-summit__cell--icon {
        padding-top: 1.25rem;
    }

    .whyus-summit__row .whyus-summit__cell:last-child {
        padding-bottom: 1.25rem;
    }
}

.steps-number-icon-grid__number-badge {
    width: 4rem;
    height: 4rem;
}

.steps-number-icon-grid__icon-box {
    width: 5rem;
    height: 5rem;
}

/* FAQ v1 — JS visibility hook (no Tailwind in script) */
.helpdesk-support-resolve-veiled {
    display: none;
}

.helpdesk-subtitle-width {
    max-width: 42rem;
}

