/* Business Solutions showcase — scoped to #solutions.solutions-showcase only */

#solutions.solutions-showcase {
    --ss-green: #25d366;
    --ss-green-bright: #22c55e;
    --ss-green-soft: #ecfdf5;
    --ss-green-border: rgba(37, 211, 102, 0.28);
    --ss-mint: #d1fae5;
    --ss-text: #0f172a;
    --ss-muted: #64748b;
    --ss-border: #e2e8f0;
    --ss-card-border: rgba(203, 213, 225, 0.9);
    --ss-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    background: #ffffff;
    padding: 3.25rem 0 3.75rem;
}

#solutions .solutions-showcase__inner {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    #solutions .solutions-showcase__inner {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 1024px) {
    #solutions.solutions-showcase {
        padding: 3.75rem 0 4.25rem;
    }

    #solutions .solutions-showcase__inner {
        padding-inline: 2rem;
    }
}

/* ——— Header ——— */
#solutions .solutions-showcase__header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

#solutions .solutions-showcase__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--ss-green-border);
    background: var(--ss-green-soft);
    color: #15803d;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#solutions .solutions-showcase__badge svg {
    width: 0.8rem;
    height: 0.8rem;
    color: var(--ss-green);
}

#solutions .solutions-showcase__heading {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #071c15;
    margin: 0 0 0.75rem;
}

#solutions .solutions-showcase__heading-accent {
    position: relative;
    display: inline;
    background: linear-gradient(135deg, #128c55 0%, #17b26a 35%, #25d366 70%, #17b26a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#solutions .solutions-showcase__desc {
    margin: 0 auto;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.65;
    color: #60736a;
    max-width: 32rem;
}

/* ——— Main 2-column layout ——— */
#solutions .solutions-showcase__layout {
    display: grid;
    gap: 1.35rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    #solutions .solutions-showcase__layout {
        grid-template-columns: minmax(17.5rem, 0.92fr) minmax(0, 1.38fr);
        gap: 1.5rem 1.65rem;
    }
}

/* ——— Featured dark card ——— */
#solutions .solutions-showcase__featured {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.5rem 1.4rem 1.35rem;
    border-radius: 1.35rem;
    overflow: hidden;
    color: #f8fffc;
    background:
        radial-gradient(ellipse 80% 55% at 88% 18%, rgba(37, 211, 102, 0.22) 0%, transparent 55%),
        linear-gradient(165deg, #0a2e22 0%, #071c15 42%, #04140f 100%);
    box-shadow:
        0 18px 40px rgba(7, 28, 21, 0.28),
        0 0 0 1px rgba(37, 211, 102, 0.12);
}

#solutions .solutions-showcase__featured-texture {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0.55;
}

#solutions .solutions-showcase__featured-texture svg {
    width: 100%;
    height: 100%;
}

#solutions .solutions-showcase__featured-glow {
    pointer-events: none;
    position: absolute;
    width: 11rem;
    height: 11rem;
    top: -2rem;
    right: -2rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.28) 0%, transparent 68%);
    filter: blur(8px);
}

#solutions .solutions-showcase__featured-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
}

#solutions .solutions-showcase__feat-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, 0.35);
    background: rgba(37, 211, 102, 0.12);
    color: var(--ss-green);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#solutions .solutions-showcase__feat-icon {
    display: grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #25d366 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

#solutions .solutions-showcase__feat-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

#solutions .solutions-showcase__feat-title {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

#solutions .solutions-showcase__feat-title span {
    color: var(--ss-green);
}

#solutions .solutions-showcase__feat-desc {
    margin: 0;
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(248, 255, 252, 0.68);
}

#solutions .solutions-showcase__widget {
    margin-top: auto;
    padding: 1rem 1rem 0.95rem;
    border-radius: 0.95rem;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

#solutions .solutions-showcase__widget-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

#solutions .solutions-showcase__widget-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(248, 255, 252, 0.9);
}

#solutions .solutions-showcase__widget-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--ss-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.22);
}

#solutions .solutions-showcase__widget-pct {
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

#solutions .solutions-showcase__progress {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 0.95rem;
}

#solutions .solutions-showcase__progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #25d366);
    transition: width 1.15s var(--ss-ease);
}

#solutions.solutions-showcase.is-visible .solutions-showcase__progress-bar {
    width: 76%;
}

#solutions .solutions-showcase__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

#solutions .solutions-showcase__metric {
    text-align: left;
}

#solutions .solutions-showcase__metric-icon {
    display: inline-flex;
    color: var(--ss-green);
    margin-bottom: 0.25rem;
}

#solutions .solutions-showcase__metric-icon svg {
    width: 0.9rem;
    height: 0.9rem;
}

#solutions .solutions-showcase__metric-val {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

#solutions .solutions-showcase__metric-lbl {
    margin-top: 0.1rem;
    font-size: 0.625rem;
    line-height: 1.3;
    color: rgba(248, 255, 252, 0.55);
}

/* ——— Right cluster ——— */
#solutions .solutions-showcase__cluster {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    min-width: 0;
}

#solutions .solutions-showcase__quad {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    min-width: 0;
}

@media (min-width: 640px) {
    #solutions .solutions-showcase__quad {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 3.25rem;
        align-items: stretch;
    }

    #solutions .solutions-showcase__hub-wrap {
        display: grid;
        place-items: center;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: 4.25rem;
        height: 4.25rem;
        margin: auto;
        z-index: 3;
        pointer-events: none;
    }

    #solutions .solutions-showcase__hub {
        width: 3.35rem;
        height: 3.35rem;
    }

    #solutions .solutions-showcase__hub img {
        width: 1.7rem;
        height: 1.7rem;
    }

    #solutions .solutions-card--support {
        grid-column: 1;
        grid-row: 1;
    }

    #solutions .solutions-card--reminders {
        grid-column: 2;
        grid-row: 1;
    }

    #solutions .solutions-card--orders {
        grid-column: 1;
        grid-row: 2;
    }

    #solutions .solutions-card--leads {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (min-width: 1024px) {
    #solutions .solutions-showcase__cluster {
        gap: 1.05rem;
    }

    #solutions .solutions-showcase__quad {
        /* Equal gutters so hub sits in true geometric centre of the 2×2 */
        gap: 6rem;
        min-height: 0;
    }

    #solutions .solutions-showcase__hub-wrap {
        width: 4.75rem;
        height: 4.75rem;
    }

    #solutions .solutions-showcase__hub {
        width: 3.65rem;
        height: 3.65rem;
    }

    #solutions .solutions-showcase__hub img {
        width: 1.85rem;
        height: 1.85rem;
    }
}

/* Connectors SVG — dotted premium style, hub → cards */
#solutions .solutions-showcase__connectors {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

@media (min-width: 640px) {
    #solutions .solutions-showcase__connectors {
        display: block;
    }
}

#solutions .solutions-showcase__conn-path {
    fill: none;
    stroke: rgba(37, 211, 102, 0.82);
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 3.2 5.2;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
}

#solutions .solutions-showcase__conn-node {
    fill: #fff;
    stroke: rgba(37, 211, 102, 0.9);
    stroke-width: 1.45;
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: calc(0.55s + var(--ss-conn, 0) * 0.22s);
}

#solutions .solutions-showcase__conn-dot {
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(37, 211, 102, 0.55));
}

#solutions .solutions-showcase__conn-dot.is-traveling {
    opacity: 0.95;
}

#solutions.solutions-showcase.is-visible .solutions-showcase__conn-node {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    #solutions .solutions-showcase__conn-path {
        stroke-dashoffset: 0 !important;
        transition: none !important;
    }

    #solutions .solutions-showcase__conn-node {
        opacity: 1;
        transition: none;
    }

    #solutions .solutions-showcase__conn-dot.is-traveling {
        opacity: 0;
    }
}

/* Hub — base (mobile hidden; absolute centre from 640px+) */
#solutions .solutions-showcase__hub-wrap {
    z-index: 3;
    width: 4.75rem;
    height: 4.75rem;
    pointer-events: none;
}

@media (max-width: 639.98px) {
    #solutions .solutions-showcase__hub-wrap {
        display: none;
    }
}

#solutions .solutions-showcase__hub-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

#solutions .solutions-showcase__hub-ring--outer {
    inset: -0.7rem;
    border: 1px solid rgba(37, 211, 102, 0.18);
    background: radial-gradient(circle, rgba(37, 211, 102, 0.07) 0%, transparent 72%);
}

#solutions .solutions-showcase__hub-ring--inner {
    inset: -0.28rem;
    border: 1px solid rgba(37, 211, 102, 0.28);
}

#solutions .solutions-showcase__hub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(37, 211, 102, 0.2);
    box-shadow:
        0 0 0 6px rgba(37, 211, 102, 0.08),
        0 10px 28px rgba(37, 211, 102, 0.22),
        0 4px 12px rgba(15, 23, 42, 0.06);
    transform-origin: center center;
}

#solutions .solutions-showcase__hub img {
    width: 1.85rem;
    height: 1.85rem;
    display: block;
    margin: 0;
    flex-shrink: 0;
}

#solutions.solutions-showcase.is-visible .solutions-showcase__hub {
    animation: ss-hub-glow 1.4s var(--ss-ease) 0.45s both;
}

@keyframes ss-hub-glow {
    0% {
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0.05),
            0 6px 16px rgba(37, 211, 102, 0.12),
            0 2px 8px rgba(15, 23, 42, 0.05);
        transform: scale(0.92);
        opacity: 0.7;
    }
    60% {
        box-shadow:
            0 0 0 10px rgba(37, 211, 102, 0.12),
            0 12px 32px rgba(37, 211, 102, 0.28),
            0 4px 12px rgba(15, 23, 42, 0.06);
        transform: scale(1.03);
        opacity: 1;
    }
    100% {
        box-shadow:
            0 0 0 6px rgba(37, 211, 102, 0.08),
            0 10px 28px rgba(37, 211, 102, 0.22),
            0 4px 12px rgba(15, 23, 42, 0.06);
        transform: scale(1);
        opacity: 1;
    }
}

/* Solution cards */
#solutions .solutions-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    padding: 1.05rem 1.05rem 0.95rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--ss-card-border);
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.045),
        0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

#solutions .solutions-card:hover {
    border-color: rgba(37, 211, 102, 0.35);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(37, 211, 102, 0.08);
    transform: translateY(-2px);
}

#solutions .solutions-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

#solutions .solutions-card__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    background: var(--ss-green-soft);
    color: #16a34a;
    border: 1px solid rgba(37, 211, 102, 0.16);
}

#solutions .solutions-card__icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

#solutions .solutions-card__copy {
    min-width: 0;
}

#solutions .solutions-card__title {
    margin: 0 0 0.25rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ss-text);
    letter-spacing: -0.015em;
}

#solutions .solutions-card__desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ss-muted);
}

#solutions .solutions-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--ss-green-soft);
    border: 1px solid rgba(37, 211, 102, 0.18);
    color: #15803d;
    font-size: 0.6875rem;
    font-weight: 650;
    line-height: 1.2;
}

#solutions .solutions-card__chip svg {
    width: 0.7rem;
    height: 0.7rem;
    opacity: 0.8;
}

#solutions .solutions-card--reengage .solutions-card__top {
    max-width: 36rem;
}

/* ——— Benefits strip ——— */
#solutions .solutions-showcase__strip {
    margin-top: 1.65rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.35rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid #128C7E;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.04),
        0 1px 2px rgba(15, 23, 42, 0.03);
}

@media (min-width: 768px) {
    #solutions .solutions-showcase__strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.45rem;
    }
}

@media (min-width: 1024px) {
    #solutions .solutions-showcase__strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 1.85rem;
        padding: 0.55rem 0.35rem;
        border-radius: 1.25rem;
    }
}

#solutions .solutions-showcase__benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
}

@media (min-width: 1024px) {
    #solutions .solutions-showcase__benefit {
        padding: 0.85rem 1.05rem;
    }

    #solutions .solutions-showcase__benefit:not(:last-child) {
        border-right: 1px solid rgba(18, 140, 126, 0.35);
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    #solutions .solutions-showcase__benefit:nth-child(odd) {
        border-right: 1px solid rgba(18, 140, 126, 0.35);
    }

    #solutions .solutions-showcase__benefit:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(18, 140, 126, 0.35);
    }
}

#solutions .solutions-showcase__benefit-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: var(--ss-green-soft);
    color: #16a34a;
    border: 1px solid rgba(37, 211, 102, 0.16);
}

#solutions .solutions-showcase__benefit-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

#solutions .solutions-showcase__benefit-title {
    margin: 0 0 0.2rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ss-text);
    letter-spacing: -0.01em;
}

#solutions .solutions-showcase__benefit-desc {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ss-muted);
}

/* ——— Entrance animations ——— */
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase:not(.is-visible) .solutions-showcase__step,
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase:not(.is-visible) .solutions-showcase__featured,
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase:not(.is-visible) .solutions-card,
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase:not(.is-visible) .solutions-showcase__hub-wrap,
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase:not(.is-visible) .solutions-showcase__benefit {
    opacity: 0;
}

html.motion-js:not(.motion-reduced) #solutions .solutions-showcase__step {
    transition: opacity 0.55s var(--ss-ease), transform 0.55s var(--ss-ease);
    transition-delay: calc(var(--ss-step, 0) * 0.08s);
    transform: translate3d(0, 10px, 0);
}

html.motion-js:not(.motion-reduced) #solutions .solutions-showcase__featured {
    transition: opacity 0.65s var(--ss-ease), transform 0.65s var(--ss-ease);
    transition-delay: 0.22s;
    transform: translate3d(-16px, 0, 0);
}

html.motion-js:not(.motion-reduced) #solutions .solutions-showcase__hub-wrap {
    transition: opacity 0.55s var(--ss-ease);
    transition-delay: 0.38s;
}

html.motion-js:not(.motion-reduced) #solutions .solutions-card {
    transition:
        opacity 0.55s var(--ss-ease),
        transform 0.55s var(--ss-ease),
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    transition-delay: calc(0.32s + var(--ss-card, 0) * 0.08s);
    transform: translate3d(0, 14px, 0);
}

html.motion-js:not(.motion-reduced) #solutions .solutions-showcase__benefit {
    transition: opacity 0.5s var(--ss-ease), transform 0.5s var(--ss-ease);
    transition-delay: calc(0.7s + var(--ss-ben, 0) * 0.07s);
    transform: translate3d(0, 12px, 0);
}

html.motion-js:not(.motion-reduced) #solutions.solutions-showcase.is-visible .solutions-showcase__step,
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase.is-visible .solutions-showcase__featured,
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase.is-visible .solutions-card,
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase.is-visible .solutions-showcase__hub-wrap,
html.motion-js:not(.motion-reduced) #solutions.solutions-showcase.is-visible .solutions-showcase__benefit {
    opacity: 1;
    transform: none;
}

html.motion-js:not(.motion-reduced) #solutions .solutions-card__chip {
    opacity: 0;
    transform: translate3d(0, 4px, 0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: calc(0.55s + var(--ss-card, 0) * 0.08s);
}

html.motion-js:not(.motion-reduced) #solutions.solutions-showcase.is-visible .solutions-card__chip {
    opacity: 1;
    transform: none;
}

html.motion-js:not(.motion-reduced) #solutions .solutions-showcase__metric {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
    transition: opacity 0.45s ease, transform 0.45s ease;
    transition-delay: calc(0.75s + var(--ss-metric, 0) * 0.08s);
}

html.motion-js:not(.motion-reduced) #solutions.solutions-showcase.is-visible .solutions-showcase__metric {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    #solutions.solutions-showcase.is-visible .solutions-showcase__progress-bar {
        width: 76%;
        transition: none;
    }

    #solutions.solutions-showcase.is-visible .solutions-showcase__hub {
        animation: none;
    }
}
