/* ============================================================
   Rescale Platform Block
   ============================================================ */

/* Registered custom property enables smooth conic-gradient angle animation */
@property --rp-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rp-border-spin {
    to {
        --rp-border-angle: 360deg;
    }
}

.rescale-platform {
    background: transparent;
    border-radius: 16px;
    color: var(--color-neutral-white);
    font-family: inherit;
    position: relative;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Tier Wraps — nested frames, one per lower_tier item
   Each wrap's border encompasses all content + its own item.
   Opened outermost→innermost, closed innermost→outermost.
   ============================================================ */

.rp-tier-wrap {
    border: 1px dashed var(--color-rescale-blue);
    border-radius: 14px;
    padding: 18px 18px 0;
    position: relative;
}

/* Rotating highlight travelling around the dashed border */
.rp-tier-wrap::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: conic-gradient(
        from var(--rp-border-angle),
        transparent 0%,
        transparent 18%,
        rgba(122, 240, 245, 0.25) 23%,
        #7af0f5 27%,
        rgba(122, 240, 245, 0.25) 31%,
        transparent 36%,
        transparent 68%,
        rgba(122, 240, 245, 0.25) 73%,
        #7af0f5 77%,
        rgba(122, 240, 245, 0.25) 81%,
        transparent 86%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    animation: rp-border-spin 5s linear infinite;
    pointer-events: none;
}

/* Inner tier wrap spins at a different speed so the two never stay in sync */
.rp-tier-wrap .rp-tier-wrap::before {
    animation-duration: 3.5s;
}

.rp-tier-wrap .rp-tier-wrap {
    margin-bottom: 35px;
    padding-left: 6px;
    padding-right: 6px;
}

.rp-tier-wrap .rp-tier-wrap .rp-lower-tier-item {
    margin-left: -6px;
    margin-right: -6px;
}

/* Title
   ------------------------------------------------------------ */

.rp-title {
    text-align: center;
    color: var(--color-neutral-white);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}

/* Diagram grid: [left label] [inner wrapper] [right label]
   ------------------------------------------------------------ */

.rp-diagram {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 0;
}

.rp-side-label {
    color: var(--color-neutral-white);
    text-align: center;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    align-self: end;
}

/* Inner wrapper — layout only, no visual border (ecosystem container provides that)
   ------------------------------------------------------------ */

.rp-inner-wrapper {
    width: 100%;
}

/* Shared max-width container for solution areas + ecosystem */
.rp-diagram-content {
    max-width: 790px;
    margin: 0 auto;
}

/* ============================================================
   Solution Areas — 5 colored boxes
   ============================================================ */

.single-content .rescale-platform .rp-ecosystem,
.rescale-platform .rp-ecosystem {
    margin: 0;
    padding-left: 0;
}

/* Wrapper gives the shared modal a positioning context */
.rp-solution-areas-wrap {
    position: relative;
    z-index: 1;
}

.rescale-platform .rp-solution-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0 18px;
    position: relative;
}

.rp-solution-area {
    border-radius: 12px;
    padding: 10px;
    min-height: 130px;
    display: flex;
    position: relative;
    cursor: default;
}

/* Outer box — semi-transparent tint of each color */
.rp-solution-areas li:nth-child(1) {
    background: linear-gradient(
        180deg,
        rgba(10, 37, 138, 0.8) 0%,
        rgba(45, 116, 254, 0.8) 100%
    );
}
.rp-solution-areas li:nth-child(2) {
    background: linear-gradient(
        180deg,
        rgba(32, 72, 51, 0.8) 0%,
        rgba(64, 144, 101, 0.8) 100%
    );
}
.rp-solution-areas li:nth-child(3) {
    background: linear-gradient(
        180deg,
        rgba(103, 57, 155, 0.8) 0%,
        rgba(154, 94, 232, 0.8) 100%
    );
}
.rp-solution-areas li:nth-child(4) {
    background: linear-gradient(
        180deg,
        rgba(71, 78, 35, 0.8) 0%,
        rgba(143, 155, 71, 0.8) 100%
    );
}
.rp-solution-areas li:nth-child(5) {
    background: linear-gradient(
        180deg,
        rgba(40, 97, 132, 0.8) 0%,
        rgba(71, 172, 234, 0.8) 100%
    );
    background-blend-mode: overlay;
}

/* Inner box — full gradient + border */
.rp-solution-area-inner {
    flex: 1;
    border-radius: 8px;
    padding: 26px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid
        color-mix(in srgb, var(--color-neutral-white) 30%, transparent);
}

.rp-solution-areas li:nth-child(1) .rp-solution-area-inner {
    border-radius: 10.448px;
    border: 1.045px solid #2d74fe;
    background: linear-gradient(180deg, #0a258a 0%, #2d74fe 100%);
    background-blend-mode: overlay;
}
.rp-solution-areas li:nth-child(2) .rp-solution-area-inner {
    border-radius: 10.448px;
    border: 1.045px solid #60d898;
    background: linear-gradient(
        180deg,
        var(--color-green-800) 0%,
        var(--color-green-600) 100%
    );
    background-blend-mode: overlay;
}
.rp-solution-areas li:nth-child(3) .rp-solution-area-inner {
    border-radius: 10.448px;
    border: 1.045px solid var(--color-purple-200);
    background: linear-gradient(
        180deg,
        var(--color-purple-600) 0%,
        #9a5ee8 100%
    );
    background-blend-mode: overlay;
}
.rp-solution-areas li:nth-child(4) .rp-solution-area-inner {
    border-radius: 10.448px;
    border: 1.045px solid var(--color-yellow-600);
    background: linear-gradient(
        180deg,
        var(--color-yellow-800) 0%,
        var(--color-yellow-600) 100%
    );
    background-blend-mode: overlay;
}
.rp-solution-areas li:nth-child(5) .rp-solution-area-inner {
    border-radius: 10.448px;
    border: 1.045px solid var(--color-rescale-blue);
    background: linear-gradient(
        180deg,
        #286184 0%,
        var(--color-rescale-blue) 100%
    );
    background-blend-mode: overlay;
}

.rp-solution-area strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-neutral-white);
    line-height: 1.2;
    display: block;
}

/* ============================================================
   Ecosystem — container + 3 horizontal rows with logos
   ============================================================ */

.rp-ecosystem-container {
    margin-top: -70px;
    padding: 90px 18px 18px;
    position: relative;
    z-index: 0;
    background: linear-gradient(
        180deg,
        var(--color-blue-800) 0%,
        var(--color-blue-800) 100%
    );
    border: 0.9px solid var(--color-rescale-blue);
    border-radius: 9px;
    overflow: visible;
}

.rp-side-label--left {
    padding-right: 2px;
}

.rp-side-label--right {
    padding-left: 2px;
}

.rp-side-label--left::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    border-top: 1px dashed var(--color-rescale-blue);
}

.rp-side-label--right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    border-top: 1px dashed var(--color-rescale-blue);
}

.rp-ecosystem-container::before,
.rp-ecosystem-container::after {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 12px;
    border-top: 1px dashed var(--color-rescale-blue);
    border-bottom: 1px dashed var(--color-rescale-blue);
}

.rp-ecosystem-container::before {
    right: 100%;
    border-left: 1px dashed var(--color-rescale-blue);
    border-radius: 6px 0 0 6px;
}

.rp-ecosystem-container::after {
    left: 100%;
    border-right: 1px dashed var(--color-rescale-blue);
    border-radius: 0 6px 6px 0;
}

.rp-ecosystem {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rp-ecosystem-item {
    background: linear-gradient(180deg, #0b1e27 0%, #0b2331 100%);
    border: 1.045px solid var(--color-blue-600);
    border-radius: 6px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    min-height: 56px;
    position: relative;
    cursor: default;
}

.rp-ecosystem-label {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
    border-right: 1px solid
        color-mix(in srgb, var(--color-neutral-white) 18%, transparent);
}

/* Shrink label by half the secondary text width so secondary text centers on the rule */
.has-secondary-text .rp-ecosystem-label {
    flex: 0 0 calc(40% - 44px);
    border-right: none;
    padding-right: 0;
}

.rp-secondary-text {
    flex: 0 0 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rp-secondary-text__caret {
    flex-shrink: 0;
    display: block;
}

.rp-secondary-text__caret--right {
    transform: rotate(180deg);
}

.rp-secondary-text__label {
    color: #7af0f5;
    text-align: center;
    font-size: 8px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.rp-ecosystem-label strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-neutral-white);
    line-height: 1.5;
    text-align: center;
    display: block;
}

.rp-logos {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 30px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0px,
        black 50px,
        black calc(100% - 50px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0px,
        black 50px,
        black calc(100% - 50px),
        transparent 100%
    );
}

.rp-logos .splide__track {
    overflow: visible;
}

.rp-logos .splide__list {
    align-items: center;
}

.rp-logos .splide__slide {
    display: flex;
    align-items: center;
}

.rp-logos .splide__slide img {
    max-height: 20px;
    max-width: 80px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(1) brightness(1.5);
}

/* ============================================================
   Mobile Labels — left/right descriptors rendered inside
   .rp-ecosystem-container on mobile. Hidden on desktop.
   ============================================================ */

.rp-mobile-labels {
    display: none;
}

/* ============================================================
   Lower Tier — arrow-shaped banner rows
   Each item lives at the bottom of its tier wrap.
   Negative horizontal margins extend it to the tier wrap border.
   ============================================================ */

.rp-lower-tier-item {
    position: relative;
    cursor: default;
    margin: 20px -18px -25px;
}

.rp-lower-tier-shape-wrap {
    filter: drop-shadow(0 1px 0 var(--color-blue-600))
        drop-shadow(0 -1px 0 var(--color-blue-600))
        drop-shadow(1px 0 0 var(--color-blue-600))
        drop-shadow(-1px 0 0 var(--color-blue-600));
}

.rp-lower-tier-shape {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 880px;
    margin: 0 auto;
    background: linear-gradient(
        90deg,
        var(--color-dark-blue) 0%,
        var(--color-blue-600) 49.04%,
        var(--color-dark-blue) 98.08%
    );
    clip-path: polygon(
        30px 0%,
        calc(100% - 30px) 0%,
        100% 50%,
        calc(100% - 30px) 100%,
        30px 100%,
        0% 50%
    );
}

.rp-lower-tier-shape strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.16px;
    color: var(--color-neutral-white);
}

/* ============================================================
   Hover Modals — ecosystem items & lower tier (individual)
   ============================================================ */

.rp-hover-modal {
    display: none;
    position: absolute;
    z-index: 200;
    width: 260px;
    background: color-mix(in srgb, var(--color-dark-blue) 97%, transparent);
    border: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}

/* Caret pointing up (default) */
.rp-hover-modal::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: color-mix(in srgb, var(--color-dark-blue) 97%, transparent);
    border-left: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
    border-top: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
}

/* Lower tier modals open upward */
.rp-hover-modal.rp-hover-modal--up {
    top: auto;
    bottom: calc(100% + 10px);
}

.rp-hover-modal.rp-hover-modal--up::before {
    top: auto;
    bottom: -5px;
    transform: translateX(-50%) rotate(225deg);
}

.rp-hover-modal img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

.rp-hover-modal p {
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--color-neutral-white) 85%, transparent);
    margin: 0;
    line-height: 1.55;
}

/* Lower tier items no longer use .rp-hover-modal */

/* ============================================================
   Solution Area — shared full-width modal
   Positioned relative to .rp-solution-areas-wrap.
   Caret tracks the hovered item via --caret-left CSS var.
   ============================================================ */

.rp-solution-modal {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 10px);
    z-index: 200;
    background: #C2E3F8;
    border: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.65),
        0 0 20px #7af0f5;
}

.rp-solution-modal.is-visible {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rp-solution-modal__content {
    width: 100%;
}

/* Caret: positioned at the center of the hovered box */
.rp-solution-modal::before {
    content: "";
    position: absolute;
    top: -5px;
    left: var(--caret-left, 50%);
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #C2E3F8;
    border-left: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
    border-top: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
}

.rp-solution-modal__title {
    color: #051016;
    font-family: "TASA Orbiter", sans-serif;
    font-size: 12.8px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    margin: 0 0 8px !important;
}

.rp-solution-modal__desc {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14.4px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #051016;
    margin: 0;
}

.rp-solution-modal__stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: var(--Radius-xsmall, 10px);
    background: var(--Neutrals-White, #FFF);
    box-shadow: 0 0 20px 0 rgba(47, 115, 156, 0.40);
    padding: 12px 16px;
}

.rp-solution-modal__stat {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}

.rp-solution-modal__stat-value {
    color: #2f739c;
    font-family: "TASA Orbiter", sans-serif;
    font-size: 12.8px;
    font-weight: 600;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    line-height: 150%;
    white-space: nowrap;
}

.rp-solution-modal__stat-desc {
    color: #000;
    font-family: "TASA Orbiter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    line-height: 150%;
}

/* ============================================================
   Ecosystem — shared right-side modal
   Spans full height of ecosystem container, right half.
   Caret points left, tracks vertically via --caret-top CSS var.
   ============================================================ */

.rp-eco-modal {
    display: none;
    position: absolute;
    left: 47%;
    right: 18px;
    top: 90px; /* matches container padding-top */
    bottom: 18px;
    z-index: 200;
    background: #C2E3F8;
    border: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.65),
        0 0 20px #7af0f5;
}

.rp-eco-modal.is-visible {
    display: block;
}

/* Left-pointing caret */
.rp-eco-modal::before {
    content: "";
    position: absolute;
    left: -14px;
    top: var(--caret-top, 50%);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 14px solid #C2E3F8;
    filter: drop-shadow(-3px 0 8px rgba(122, 240, 245, 0.15));
}

.rp-eco-modal__img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

.rp-eco-modal__title {
    color: #051016;
    font-family: "TASA Orbiter", sans-serif;
    font-size: 12.8px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    margin: 0 0 10px !important;
}

.rp-eco-modal__desc {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14.4px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #051016;
    margin: 0;
}

/* ============================================================
   Lower Tier — modal appears above the hovered tier shape.
   Width matches shape interior (clip-path cuts 30px each side).
   Down-pointing triangle centered on modal bottom.
   ============================================================ */

.rp-lower-tier-modal {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    bottom: calc(100% + 12px);
    z-index: 200;
    background: #C2E3F8;
    border: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.65),
        0 0 20px #7af0f5;
}

.rp-lower-tier-modal.is-visible {
    display: block;
}

/* Down-pointing triangle */
.rp-lower-tier-modal::before {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #C2E3F8;
    filter: drop-shadow(0 3px 8px rgba(122, 240, 245, 0.15));
}

.rp-lower-tier-modal__img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

.rp-lower-tier-modal__title {
    color: #051016;
    font-family: "TASA Orbiter", sans-serif;
    font-size: 12.8px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    margin: 0 0 10px !important;
}

.rp-lower-tier-modal__desc {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14.4px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #051016;
    margin: 0;
}

/* ============================================================
   Mobile overlay — tap-triggered, fixed, centered
   ============================================================ */

.rp-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rp-mobile-overlay.is-visible {
    display: flex;
}

.rp-mobile-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 16, 22, 0.88);
}

.rp-mobile-overlay__panel {
    position: relative;
    background: #162d36;
    border: 1px solid
        color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
    border-radius: 10px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 480px;
    z-index: 1;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.65),
        0 0 20px #7af0f5;
}

.rp-mobile-overlay__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--color-neutral-white);
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.rp-mobile-overlay__close:hover,
.rp-mobile-overlay__close:focus {
    opacity: 1;
}

.rp-mobile-overlay__img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
    display: block;
}

.rp-mobile-overlay__title {
    color: #7af0f5;
    font-family: "TASA Orbiter", sans-serif;
    font-size: 12.8px;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    margin: 0 0 10px !important;
}

.rp-mobile-overlay__desc {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14.4px;
    font-weight: 400;
    line-height: 150%;
    color: color-mix(in srgb, var(--color-neutral-white) 85%, transparent);
    margin: 0;
}

/* ============================================================
   Mobile layout — ≤ 1024px
   ============================================================ */

@media (max-width: 1024px) {
    .rescale-platform {
        max-width: 600px;
        overflow: hidden;
        padding-bottom: 25px; /* accommodates the outer hexagon extending below the tier-wrap border */
    }

    .rp-diagram,
    .rp-inner-wrapper,
    .rp-diagram-content,
    .rp-ecosystem-container,
    .rp-lower-tier-shape {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Collapse side-label grid columns */
    .rp-diagram {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rp-side-label {
        display: none;
    }

    .rp-title {
        padding-block: 18px;
    }

    /* Tier wraps: tighter padding + background fill */
    .rp-tier-wrap {
        background: #162d36;
        padding: 12px 12px 0;
    }

    /* Inner tier-wraps become invisible wrappers */
    .rp-tier-wrap .rp-tier-wrap {
        border: none;
        margin: 0;
        padding: 0;
    }
    .rp-tier-wrap .rp-tier-wrap::before {
        display: none;
    }

    /* Downward caret indicator on all tappable items */

    /* Shared chevron mixin via a reused shape */
    .rp-solution-area.has-modal .rp-solution-area-inner::after,
    .rp-ecosystem-item.has-modal .rp-ecosystem-label::after,
    .rp-lower-tier-item.has-modal .rp-lower-tier-shape strong::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid #7af0f5;
        border-bottom: 1.5px solid #7af0f5;
        transform: rotate(45deg) translateY(-2px);
        margin-left: 8px;
        flex-shrink: 0;
        vertical-align: middle;
    }

    /* Solution areas: single column, full width */
    .rescale-platform .rp-solution-areas {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 8px;
    }

    .rp-solution-area {
        min-height: 80px;
    }

    .rp-solution-area-inner {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .rp-solution-area strong,
    .rp-ecosystem-label strong,
    .rp-lower-tier-shape strong {
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 140%;
        letter-spacing: 0.164px;
    }

    /* Solution areas that have a modal: show tap affordance */
    .rp-solution-area.has-modal,
    .rp-ecosystem-item.has-modal,
    .rp-lower-tier-item.has-modal {
        cursor: pointer;
    }

    .rp-ecosystem {
        padding-left: 0;
    }

    /* Ecosystem: remove overlap trick, stack cleanly */
    .rp-ecosystem-container {
        margin-top: 10px;
        padding: 16px;
        overflow: hidden;
    }

    .rp-ecosystem-container::before,
    .rp-ecosystem-container::after {
        display: none;
    }

    .rp-ecosystem-item {
        flex-wrap: wrap;
        justify-content: center;
        min-height: auto;
        padding: 24px;
        border: none;
        gap: 8px;
    }

    .rp-ecosystem-item::before {
        content: "";
        position: absolute;
        inset: 12px;
        border: 1px solid #2f739c;
        border-radius: 2px;
        pointer-events: none;
    }

    .rp-mobile-labels {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
    }

    .rp-mobile-label {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        color: var(--color-neutral-white);
        font-weight: 700;
        font-size: 16px;
        letter-spacing: -0.01em;
    }

    .rp-mobile-label:not(:last-child) {
        border-bottom: 1px solid
            color-mix(in srgb, var(--color-rescale-blue) 40%, transparent);
    }

    .rp-ecosystem-label {
        flex: 0 0 100%;
        border-right: none;
        border-bottom: none;
        padding-right: 0;
        padding-bottom: 0;
        justify-content: center;
    }

    .has-secondary-text .rp-ecosystem-label {
        flex: 0 0 100%;
        border-right: none;
        padding-right: 0;
    }

    .rp-secondary-text {
        flex: none;
    }

    .rp-secondary-text__label {
        font-size: 11px;
    }

    .rp-logos {
        flex: 0 0 100%;
        margin-left: 0;
    }

    /* Lower tier: negative side margins extend items to the tier-wrap border.
       Padding on shape-wrap pulls the hexagon tips 18px back from the item edge,
       so tips land ~18px from the screen edge instead of flush against it. */
    .rp-tier-wrap > .rp-lower-tier-item {
        margin: 10px -12px -25px;
    }

    .rp-tier-wrap .rp-tier-wrap .rp-lower-tier-item {
        margin: 10px -12px 0;
    }

    .rp-lower-tier-shape-wrap {
        padding: 0 18px;
    }

    /* Allow shape to grow when text wraps; horizontal padding keeps text
       inside the 30px diagonal clip-path corners at top and bottom edges. */
    .rp-lower-tier-shape {
        height: auto;
        min-height: 50px;
        padding: 12px 44px;
    }

    .rp-lower-tier-shape strong {
        text-align: center;
    }

    /* Dotted connector lines: span the 18px gap between the upper hexagon's
       tips and the outer tier-wrap border on each side. */
    .rp-tier-wrap .rp-tier-wrap > .rp-lower-tier-item::before,
    .rp-tier-wrap .rp-tier-wrap > .rp-lower-tier-item::after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        border-top: 1px dashed var(--color-rescale-blue);
    }

    .rp-tier-wrap .rp-tier-wrap > .rp-lower-tier-item::before {
        left: 0;
    }

    .rp-tier-wrap .rp-tier-wrap > .rp-lower-tier-item::after {
        right: 0;
    }

    /* Hide all desktop modals — overlay handles everything */
    .rp-solution-modal,
    .rp-eco-modal,
    .rp-lower-tier-modal {
        display: none !important;
    }
}
