/* =========================================================
   POMOSDA — SECTION 11 R2.1 STRUCTURE FIX
   Rebuilds the 3-step journey into a deterministic structure.
   Loaded after R2.
   ========================================================= */

.s11r2 .s11r21-original-steps {
    display: none !important;
}

.s11r2 .s11r21-steps {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(30px, 4vw, 62px);
    width: min(1160px, 100%);
    margin: 0 auto;
    align-items: stretch;
}

.s11r2 .s11r21-card {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon body"
        "icon cta";
    column-gap: 24px;
    row-gap: 10px;
    min-height: 260px;
    padding: 42px 30px 30px;
    border: 1px solid rgba(194,154,44,.30);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 10%, rgba(7,95,81,.045), transparent 22%),
        rgba(255,255,255,.92);
    box-shadow:
        0 22px 48px rgba(28,52,45,.09),
        inset 0 1px 0 rgba(255,255,255,.88);
    overflow: visible;
}

.s11r2 .s11r21-card:nth-of-type(2) {
    translate: 0 28px;
}

.s11r2 .s11r21-number {
    position: absolute;
    top: -17px;
    left: 20px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 3px solid rgba(255,255,255,.88);
    border-radius: 50%;
    background: linear-gradient(145deg, #0b7462, #054d42);
    color: #fff;
    box-shadow: 0 10px 24px rgba(7,95,81,.20);
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.s11r2 .s11r21-icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    align-self: start;
    width: 82px;
    height: 82px;
    margin-top: 10px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,.78), transparent 34%),
        #e7f0ea;
    color: #075f51;
    box-shadow:
        inset 0 0 0 1px rgba(7,95,81,.05),
        0 10px 24px rgba(7,95,81,.06);
}

.s11r2 .s11r21-icon svg {
    width: 42px;
    height: 42px;
}

.s11r2 .s11r21-card h3 {
    grid-area: title;
    align-self: end;
    margin: 10px 0 0;
    color: #173f36;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(20px, 1.65vw, 25px);
    line-height: 1.2;
    font-weight: 800;
    text-align: left;
}

.s11r2 .s11r21-card p {
    grid-area: body;
    margin: 0;
    color: #68736f;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
}

.s11r2 .s11r21-card a,
.s11r2 .s11r21-card button {
    grid-area: cta;
    align-self: end;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: #f3c623;
    color: #121713;
    box-shadow: 0 10px 22px rgba(197,153,11,.15);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.s11r2 .s11r21-card a::before,
.s11r2 .s11r21-card button::before {
    content: "→";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.80);
    color: #a77d00;
    font-weight: 800;
}

/* deterministic connector */
.s11r2 .s11r21-connector {
    position: absolute;
    z-index: -1;
    top: 45%;
    left: 23%;
    width: 54%;
    height: 116px;
    overflow: visible;
    pointer-events: none;
}

.s11r2 .s11r21-connector path {
    fill: none;
    stroke: #075f51;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
    vector-effect: non-scaling-stroke;
}

.s11r2 .s11r21-connector circle {
    fill: #075f51;
    stroke: #fbf8f0;
    stroke-width: 4;
}

/* Motion */
.s11r2.s11r21-ready:not(.is-s11r21-visible) .s11r21-card {
    opacity: 0;
    translate: 0 24px;
    scale: .98;
}

.s11r2.s11r21-ready .s11r21-card {
    transition:
        opacity 720ms cubic-bezier(.22,1,.36,1),
        translate 720ms cubic-bezier(.22,1,.36,1),
        scale 720ms cubic-bezier(.22,1,.36,1),
        box-shadow 220ms ease;
}

.s11r2.is-s11r21-visible .s11r21-card {
    opacity: 1;
    scale: 1;
}

.s11r2.is-s11r21-visible .s11r21-card:nth-of-type(1) {
    translate: 0 0;
    transition-delay: 120ms;
}

.s11r2.is-s11r21-visible .s11r21-card:nth-of-type(2) {
    translate: 0 28px;
    transition-delay: 240ms;
}

.s11r2.is-s11r21-visible .s11r21-card:nth-of-type(3) {
    translate: 0 0;
    transition-delay: 360ms;
}

.s11r2.s11r21-ready .s11r21-connector path {
    stroke-dasharray: 430;
    stroke-dashoffset: 430;
}

.s11r2.is-s11r21-visible .s11r21-connector path {
    animation: s11r21Draw 1.2s cubic-bezier(.22,1,.36,1) 520ms 1 forwards;
}

.s11r2.s11r21-ready .s11r21-connector circle {
    opacity: 0;
    scale: .4;
    transform-origin: center;
}

.s11r2.is-s11r21-visible .s11r21-connector circle {
    animation: s11r21Node 420ms cubic-bezier(.22,1,.36,1) 850ms 1 forwards;
}

@keyframes s11r21Draw { to { stroke-dashoffset: 0; } }
@keyframes s11r21Node { to { opacity: 1; scale: 1; } }

@media (hover:hover) and (pointer:fine) {
    .s11r2 .s11r21-card:hover {
        translate: 0 -5px;
        box-shadow:
            0 30px 60px rgba(28,52,45,.12),
            inset 0 1px 0 rgba(255,255,255,.90);
    }

    .s11r2 .s11r21-card:nth-of-type(2):hover {
        translate: 0 23px;
    }
}

@media (max-width: 980px) {
    .s11r2 .s11r21-steps {
        grid-template-columns: 1fr;
        width: min(680px, 100%);
        gap: 24px;
    }

    .s11r2 .s11r21-card,
    .s11r2 .s11r21-card:nth-of-type(2),
    .s11r2.is-s11r21-visible .s11r21-card:nth-of-type(2) {
        translate: 0 0 !important;
    }

    .s11r2 .s11r21-connector {
        display: none;
    }
}

@media (max-width: 620px) {
    .s11r2 .s11r21-card {
        grid-template-columns: 68px minmax(0,1fr);
        column-gap: 18px;
        min-height: 0;
        padding: 38px 22px 25px;
        border-radius: 24px;
    }

    .s11r2 .s11r21-icon {
        width: 68px;
        height: 68px;
    }

    .s11r2 .s11r21-icon svg {
        width: 34px;
        height: 34px;
    }

    .s11r2 .s11r21-card h3 {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .s11r2 .s11r21-card,
    .s11r2 .s11r21-connector path,
    .s11r2 .s11r21-connector circle {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        scale: 1 !important;
    }

    .s11r2 .s11r21-card:nth-of-type(2) {
        translate: 0 28px !important;
    }

    .s11r2 .s11r21-connector path {
        stroke-dashoffset: 0 !important;
    }
}
