/* ==========================================================================
   PRLinkUp — Home sections 05–07
   How it works (horizontal journey) · Core features (stacking cards)
   Secure payments (the ₹ journey)
   ========================================================================== */

/* Italic gradient words inside section titles. After split.js wraps each
   word, the word itself must paint the gradient (masks break inheritance). */
.how__title em,
.how__title em .split-word,
.features__title em,
.features__title em .split-word {
    font-style: italic;
    background-image: linear-gradient(100deg, #5B3FF0 0%, #7A5DFF 35%, #B06AF8 70%, #E879F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.money__title em,
.money__title em .split-word {
    font-style: italic;
    background-image: linear-gradient(100deg, #C4B5FF 0%, #E9D5FF 50%, #F5B5FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.how__title em .split-word,
.features__title em .split-word,
.money__title em .split-word {
    padding-right: 0.06em;
}

/* Small UI chips used inside cards */
.ui-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--r-pill);
    background: var(--gray-100);
    color: var(--ink-900);
    font-size: 12.5px;
    font-weight: var(--fw-medium);
    line-height: 1.2;
    white-space: nowrap;
}

.ui-chip i {
    color: var(--violet-500);
    font-size: 14px;
}

.ui-chip--on {
    background: var(--violet-100);
    color: var(--violet-650);
}

.ui-chip--ok {
    background: var(--success-soft);
    color: #067A40;
}

.ui-chip--ok i {
    color: var(--success);
}

/* ==========================================================================
   How it works
   ========================================================================== */
.how {
    position: relative;
    overflow: clip;
    background: #F7F5FF;
}

.how__pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.5rem, 4.5vh, 3rem);
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 2vh) 5vh;
}

.how__headrow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-top: clamp(1rem, 2.5vh, 1.75rem);
}

.how__title {
    max-width: 15ch;
    font-size: clamp(2.2rem, 1rem + 3.4vw, 4.2rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--ink-950);
}

.how__switch .segmented__btn {
    min-height: 48px;
}

.how__switch .segmented__btn[aria-pressed="true"] {
    color: var(--white);
}

.how__progress {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
    font-size: 12px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-600);
}

.how__count {
    font-variant-numeric: tabular-nums;
}

.how__count b {
    font-size: 15px;
    color: var(--ink-950);
}

.how__line {
    position: relative;
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: rgba(26, 29, 30, 0.1);
    overflow: hidden;
}

.how__line span {
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left center;
}

.how__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.how__hint i {
    animation: nudge-right 1.4s var(--ease-soft) infinite;
}

@keyframes nudge-right {
    0%, 100% { translate: 0 0; }
    50%      { translate: 4px 0; }
}

/* Rail starts in line with the wide container
   (ol.how__rail beats the base ol[class] padding reset) */
ol.how__rail {
    --rail-pad: max(clamp(1rem, 0.5rem + 2vw, 2.5rem), calc((100vw - 1440px) / 2 + 2.5rem));
    display: flex;
    gap: 20px;
    width: max-content;
    margin: 0;
    padding: 0 var(--rail-pad);
    list-style: none;
    will-change: transform;
}

.hstep {
    position: relative;
    display: grid;
    flex: 0 0 clamp(290px, 24vw, 350px);
    min-height: clamp(300px, 42vh, 370px);
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.5s, box-shadow 0.5s;
}

.hstep.is-current {
    border-color: var(--violet-200);
    box-shadow: var(--shadow-md), 0 20px 50px -20px rgba(122, 93, 255, 0.35);
}

.hstep__num {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 64px;
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(122, 93, 255, 0.25);
    transition: -webkit-text-stroke-color 0.5s;
}

.hstep.is-current .hstep__num {
    -webkit-text-stroke-color: var(--violet-500);
}

/* Two faces share one cell; the switch shows one of them */
.hstep__face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition:
        opacity 0.45s var(--ease-soft) calc(var(--i) * 40ms),
        translate 0.7s var(--ease-out) calc(var(--i) * 40ms),
        visibility 0s;
}

.how:not(.is-creators) .hstep__face--creators,
.how.is-creators .hstep__face--brands {
    visibility: hidden;
    opacity: 0;
    translate: 0 16px;
    transition: opacity 0.25s var(--ease-soft), translate 0.25s var(--ease-soft), visibility 0s linear 0.25s;
}

.hstep__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 10px 22px -6px rgba(122, 93, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hstep__title {
    margin-top: 22px;
    font-size: 21px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.025em;
}

.hstep__text {
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-600);
}

.hstep__ui {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 22px;
}

/* Closing card */
.hstep--end {
    overflow: hidden;
    border: 0;
    background: var(--grad-hero);
    color: var(--white);
    box-shadow: 0 30px 60px -24px rgba(74, 47, 217, 0.6);
}

.hstep--end::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -40%;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #E879F9;
    filter: blur(70px);
    opacity: 0.4;
}

.hstep--end .hstep__face {
    position: relative;
    justify-content: flex-end;
}

.hstep__end-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hstep__end-mark svg {
    width: 24px;
    height: 24px;
}

.hstep__end-title {
    font-size: clamp(2.2rem, 1.5rem + 1.6vw, 3rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.045em;
}

.hstep__end-text {
    margin: 10px 0 24px;
    color: rgba(255, 255, 255, 0.82);
}

.hstep--end .btn-pill {
    align-self: flex-start;
}

/* Tablet & phone: vertical timeline */
@media (max-width: 1023px) {
    .how__pin {
        min-height: 0;
        padding-block: clamp(4.5rem, 10vw, 6rem);
    }

    .how__progress {
        display: none;
    }

    ol.how__rail {
        --dot-x: calc(var(--rail-pad) + 7px);
        position: relative;
        flex-direction: column;
        gap: 14px;
        width: auto;
        padding-left: calc(var(--rail-pad) + 32px);
    }

    .how__rail::before {
        content: "";
        position: absolute;
        top: 24px;
        bottom: 24px;
        left: var(--dot-x);
        width: 2px;
        background: linear-gradient(var(--violet-200), var(--violet-400));
    }

    .hstep {
        flex: none;
        min-height: 0;
    }

    .hstep::after {
        content: "";
        position: absolute;
        top: 30px;
        left: -32px;
        width: 16px;
        height: 16px;
        border: 3px solid var(--violet-500);
        border-radius: 50%;
        background: var(--white);
        translate: -1px 0;
    }

    .hstep--end::after {
        border-color: var(--violet-700);
        background: var(--violet-500);
    }

    .hstep__num {
        font-size: 48px;
    }

    .hstep__ui {
        padding-top: 18px;
    }

    .hstep--end .hstep__end-mark {
        margin-bottom: 26px;
    }
}

/* ==========================================================================
   Core features — stacking cards
   ========================================================================== */
.features {
    position: relative;
    padding-block: clamp(5rem, 4rem + 5vw, 8rem) clamp(4rem, 3rem + 4vw, 7rem);
    background: var(--white);
}

.features__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    grid-template-areas:
        "meta meta"
        "title lead";
    align-items: end;
    gap: clamp(1.25rem, 3vh, 2rem) clamp(2rem, 6vw, 6rem);
}

.features__head .sec-meta { grid-area: meta; }

.features__title {
    grid-area: title;
    max-width: 16ch;
    font-size: clamp(2.3rem, 1rem + 3.8vw, 4.6rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--ink-950);
}

.features__lead {
    grid-area: lead;
    padding-bottom: 0.5em;
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
    line-height: 1.6;
    color: var(--ink-600);
}

.fstack {
    display: grid;
    gap: 28px;
    margin-top: clamp(2.5rem, 6vh, 4rem);
}

.fcard {
    --dim: 0;
    position: sticky;
    top: calc(var(--header-h) + 12px + var(--i) * 16px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: min(560px, calc(100svh - var(--header-h) - 48px - var(--i) * 16px));
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: 36px;
    overflow: hidden;
    transform-origin: 50% 0;
    box-shadow: 0 -24px 50px -34px rgba(17, 19, 38, 0.35);
}

/* Covered cards dim slightly (features.js animates --dim) */
.fcard::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgb(14 11 38 / var(--dim));
    pointer-events: none;
}

.fcard--verified {
    background: linear-gradient(160deg, #FFFFFF 0%, #F6F3FF 100%);
    box-shadow: inset 0 0 0 1px rgba(122, 93, 255, 0.14), 0 30px 60px -40px rgba(74, 47, 217, 0.35);
}

.fcard--market   { background: linear-gradient(160deg, #EDF3FF 0%, #EFEAFF 100%); }
.fcard--campaign { background: linear-gradient(160deg, #F3EDFF 0%, #FCEBFF 100%); }
.fcard--wallet   { background: linear-gradient(160deg, #150F42 0%, #2A1A8C 55%, #4A2FD9 100%); color: var(--white); }

.fcard__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fcard__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 22px;
    box-shadow: 0 10px 22px -6px rgba(122, 93, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.fcard__label {
    font-size: 14px;
    font-weight: var(--fw-semi);
}

.fcard__index {
    margin-left: auto;
    font-size: 12px;
    font-weight: var(--fw-semi);
    color: var(--violet-400);
    font-variant-numeric: tabular-nums;
}

.fcard__title {
    max-width: 14ch;
    margin-top: clamp(1.25rem, 3vh, 2rem);
    font-size: clamp(1.9rem, 1rem + 2vw, 3rem);
    font-weight: var(--fw-black);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: inherit;
}

.fcard__text {
    max-width: 44ch;
    margin-top: 14px;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--ink-600);
}

.fcard__points {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    list-style: none;
    padding: 0;
}

.fcard__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: var(--fw-medium);
}

.fcard__points i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    color: var(--violet-500);
    font-size: 12px;
    box-shadow: var(--shadow-xs);
}

.fcard--wallet .fcard__label,
.fcard--wallet .fcard__index { color: var(--lavender); }
.fcard--wallet .fcard__text  { color: rgba(255, 255, 255, 0.75); }

.fcard--wallet .fcard__points i {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.fcard__visual {
    display: grid;
    place-items: center;
    align-self: stretch;
    padding: clamp(1rem, 2.2vw, 2rem);
    border-radius: 26px;
    background:
        radial-gradient(rgba(122, 93, 255, 0.14) 1px, transparent 1.3px) 0 0 / 18px 18px,
        rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.4;
}

.fcard--wallet .fcard__visual {
    background:
        radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.3px) 0 0 / 18px 18px,
        rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.fcard__visual strong {
    font-weight: var(--fw-semi);
}

.fcard__visual small {
    display: block;
    font-size: 11.5px;
    color: var(--ink-600);
}

/* Verified visual */
.fv-verify {
    width: min(420px, 100%);
}

.fv-verify__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.fv-verify__profile strong {
    display: block;
    font-size: 16px;
}

.fv-verify__seal {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-size: 24px;
}

.fv-verify__seal::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--success);
    border-radius: 50%;
    animation: ring-pulse 2.4s var(--ease-out) infinite;
}

.fv-verify__steps {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    list-style: none;
    padding: 0;
}

.fv-verify__steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

.fv-verify__steps span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--violet-100);
    color: var(--violet-500);
    font-size: 18px;
}

.fv-verify__steps div {
    flex: 1;
    min-width: 0;
}

.fv-verify__steps strong {
    display: block;
    font-size: 14px;
}

.fv-verify__steps b {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 13px;
}

/* Marketplace visual */
.fv-market {
    width: min(560px, 100%);
}

.fv-market__bar {
    display: flex;
    gap: 10px;
}

.fv-market__search,
.fv-market__filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    white-space: nowrap;
}

.fv-market__search {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    color: var(--ink-400);
    box-shadow: var(--shadow-xs);
}

.fv-market__filter {
    background: var(--ink-950);
    color: var(--white);
    font-weight: var(--fw-semi);
}

.fv-market__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.fv-market__chips .ui-chip {
    background: var(--white);
}

.fv-market__chips .ui-chip--on {
    background: var(--grad-primary);
    color: var(--white);
}

.fv-market__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.fv-creator {
    padding: 8px 8px 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.fv-creator__cover {
    display: block;
    height: 64px;
    border-radius: 12px;
    background: var(--g);
    opacity: 0.9;
}

.fv-creator__avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: -28px auto 6px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--g);
    color: var(--white);
    font-size: 13px;
    font-weight: var(--fw-semi);
}

.fv-creator strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13.5px;
}

.fv-creator strong i {
    color: var(--violet-500);
}

.fv-creator__row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 8px 0;
    border-top: 1px solid var(--gray-100);
    font-size: 12px;
}

.fv-creator__row i {
    color: var(--warning);
}

.fv-creator__row b {
    font-weight: var(--fw-semi);
    color: var(--violet-650);
}

/* Campaign visual */
.fv-campaign {
    width: min(520px, 100%);
}

.fv-campaign__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.fv-campaign__head > div {
    flex: 1;
    min-width: 0;
}

.fv-campaign__head strong {
    display: block;
    font-size: 15px;
}

.fv-campaign__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.fv-campaign__stats div {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

.fv-campaign__stats strong {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    font-weight: var(--fw-bold);
}

.fv-campaign__list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.fv-campaign__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

.fv-campaign__list li > div {
    flex: 1;
    min-width: 0;
}

.fv-campaign__list strong {
    display: block;
    font-size: 13.5px;
}

.fv-campaign__type {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--violet-100);
    color: var(--violet-500);
    font-size: 18px;
}

/* Wallet visual */
.fv-wallet {
    width: min(460px, 100%);
}

.fv-wallet__card {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: var(--grad-twilight);
    overflow: hidden;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5);
}

.fv-wallet__card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 200px;
    height: 200px;
    border: 28px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.fv-wallet__top,
.fv-wallet__meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fcard__visual .fv-wallet small {
    color: rgba(255, 255, 255, 0.75);
}

.fv-wallet__top span,
.fv-wallet__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: var(--fw-semi);
}

.fv-wallet__card > strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 6px 0 14px;
    font-size: 40px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.fv-wallet__tx {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    list-style: none;
    padding: 0;
}

.fv-wallet__tx li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.fv-wallet__tx li > div {
    flex: 1;
    min-width: 0;
}

.fv-wallet__tx strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fv-wallet__tx b {
    font-size: 14px;
    font-weight: var(--fw-semi);
    white-space: nowrap;
}

.fv-wallet__tx b.is-in {
    color: #5BF0A6;
}

.fv-tx {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 16px;
}

.fv-tx--out  { background: rgba(232, 121, 249, 0.2); color: #F5B5FC; }
.fv-tx--hold { background: rgba(196, 181, 255, 0.2); color: #D9D0FF; }
.fv-tx--in   { background: rgba(0, 210, 106, 0.18); color: #5BF0A6; }

@media (max-width: 1023px) {
    .features__head {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "meta" "title" "lead";
    }

    /* Cards taller than the screen can not stack, so they simply follow each other */
    .fcard {
        position: relative;
        top: auto;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        border-radius: 28px;
    }
}

@media (max-width: 600px) {
    .fcard__visual {
        padding: 12px;
        border-radius: 20px;
    }

    .fv-market__bar {
        flex-direction: column;
    }

    .fv-market__grid {
        grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    }

    .fv-campaign__stats strong {
        font-size: 14px;
    }

    .fv-wallet__card > strong {
        font-size: 32px;
    }
}

/* ==========================================================================
   Secure payments — the ₹ journey
   ========================================================================== */
.money {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #120D33 0%, #1B1356 100%);
    color: var(--white);
}

.money__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.money__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.money__glow--a {
    top: -30%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: #7A5DFF;
    opacity: 0.35;
}

.money__glow--b {
    bottom: -40%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: #E879F9;
    opacity: 0.16;
}

.money .grain {
    opacity: 0.07;
}

.money__pin {
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 2vh) 4vh;
}

.money__pin > .container-wide {
    width: 100%;
}

.money__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    grid-template-areas:
        "meta meta"
        "title lead";
    align-items: end;
    gap: clamp(1rem, 2.5vh, 1.75rem) clamp(2rem, 6vw, 6rem);
}

.money__head .sec-meta { grid-area: meta; }

.money__title {
    grid-area: title;
    font-size: clamp(2.2rem, 1rem + 3.4vw, 4.4rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--white);
}

.money__lead {
    grid-area: lead;
    padding-bottom: 0.4em;
    font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Journey stage ---------- */
.journey {
    position: relative;
    margin-top: clamp(2rem, 6vh, 4rem);
}

.journey__svg,
.journey__coin {
    display: none;
}

.journey__base {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    stroke-dasharray: 5 9;
}

.journey__fill {
    fill: none;
    stroke: url(#journey-grad);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.stations {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.station {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.station__dot {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 23px;
    box-shadow: 0 0 0 8px rgba(122, 93, 255, 0.18), 0 14px 30px -8px rgba(122, 93, 255, 0.7);
    transition: background 0.5s, color 0.5s, box-shadow 0.5s, scale 0.6s var(--ease-out);
}

.station:last-child .station__dot {
    background: linear-gradient(135deg, #00B85C, #34E89E);
    box-shadow: 0 0 0 8px rgba(0, 210, 106, 0.18), 0 14px 30px -8px rgba(0, 210, 106, 0.6);
}

.station__label {
    display: block;
    transition: opacity 0.5s;
}

.station__step {
    display: block;
    font-size: 10.5px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lavender);
}

.station__label strong {
    display: block;
    margin-top: 3px;
    font-size: 15.5px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.015em;
}

.station__label small {
    display: block;
    max-width: 22ch;
    margin: 4px auto 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

/* Armed by money.js: stations wait dark until the coin reaches them */
.journey.is-armed .station:not(.is-lit) .station__dot {
    background: #221A5E;
    color: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
    scale: 0.88;
}

.journey.is-armed .station:not(.is-lit) .station__label {
    opacity: 0.4;
}

/* Placed by money.js (desktop): stations sit on the curve */
.journey.is-placed {
    height: clamp(210px, 32vh, 290px);
}

.journey.is-placed .journey__svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.journey.is-placed .journey__coin {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #EDE7FF 45%, #C4B5FF 100%);
    color: var(--violet-700);
    font-size: 22px;
    font-weight: var(--fw-black);
    box-shadow: 0 0 0 7px rgba(232, 121, 249, 0.2), 0 0 44px rgba(232, 121, 249, 0.75);
    pointer-events: none;
    transition: opacity 0.4s, scale 0.5s var(--ease-out);
}

.journey.is-placed .journey__coin.is-landed {
    opacity: 0;
    scale: 0.3;
}

.journey.is-placed .stations {
    position: absolute;
    inset: 0;
    display: block;
}

.journey.is-placed .station {
    position: absolute;
    display: block;
    width: 56px;
    height: 56px;
    translate: -50% -50%;
}

.journey.is-placed .station__label {
    position: absolute;
    left: 50%;
    width: 210px;
    translate: -50% 0;
}

.journey.is-placed .station[data-side="above"] .station__label {
    bottom: calc(100% + 16px);
}

.journey.is-placed .station[data-side="below"] .station__label {
    top: calc(100% + 16px);
}

/* ---------- Ledger ---------- */
.ledger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 12px;
    margin-top: clamp(1.5rem, 5vh, 3rem);
}

.ledger__cell {
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.ledger__cell small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.ledger__cell small i {
    color: var(--lavender);
}

.ledger__cell > strong {
    display: block;
    margin-top: 4px;
    font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
    font-weight: var(--fw-bold);
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.ledger__cell--status {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ledger__cell--status strong {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    font-weight: var(--fw-semi);
}

.ledger__status-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--grad-primary);
    font-size: 21px;
    box-shadow: 0 10px 24px -8px rgba(122, 93, 255, 0.7);
}

[data-ledger-icon],
[data-ledger-status] {
    transition: opacity 0.25s, translate 0.25s;
}

[data-ledger-icon].is-swapping,
[data-ledger-status].is-swapping {
    opacity: 0;
    translate: 0 6px;
}

/* ---------- Tablet & phone: vertical stations ---------- */
@media (max-width: 1023px) {
    .money__pin {
        min-height: 0;
        padding-block: clamp(4.5rem, 10vw, 6rem);
    }

    .money__head {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "meta" "title" "lead";
    }

    .stations {
        --fill: 1;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .stations::before,
    .stations::after {
        content: "";
        position: absolute;
        top: 28px;
        bottom: 28px;
        left: 27px;
        width: 2px;
        border-radius: 2px;
    }

    .stations::before {
        background: rgba(255, 255, 255, 0.15);
    }

    .stations::after {
        background: linear-gradient(#8B6CFF, #E879F9, #34E89E);
        transform: scaleY(var(--fill));
        transform-origin: top;
    }

    .station {
        position: relative;
        z-index: 1;
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
        text-align: left;
    }

    .station__label {
        padding-top: 4px;
    }

    .station__label small {
        max-width: none;
        margin-left: 0;
    }

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

    .ledger__cell--status {
        grid-column: 1 / -1;
    }
}
