/* ===========================================================================
   rx-pricing.css — the pricing page in the Magma Solutions page shape.

   /pricing is the landing's sibling: the same .ld shell, header and footer,
   and its plans are printed by the platform from src/views/pricing.view. This
   file changes nothing about what the page says or where its buttons go; it
   only dresses it the way magmasolutions.net dresses its pages:

       a kicker in amber over a large white heading, the key words of the
       heading in an amber gradient, a hairline closing the head, glass cards
       with a lit top edge, the recommended plan lifted in amber, the shared
       six lines with amber checks, and the closing line turned into the
       centred call-to-action band.

   It is scoped to html.rx-ld-home .ld-pricing: js/rx-identity.js puts that
   class on the root while either the landing or the pricing page is on screen
   (they share the identity's dark ground, header, buttons and footer), so the
   dashboards, the till, the driver app, the signup page and the storefronts
   keep the app's own light design untouched.
   ========================================================================== */

/* the .ld ground already carries the space; the band's own light wash goes */
html.rx-ld-home .ld-pricing .pr-band {
    background-color: transparent;
    background-image: none;
    padding: 60px 0 76px;
}

/* --------------------------------- the head ------------------------------- */

html.rx-ld-home .ld-pricing .pr-top {
    position: relative;
    margin-bottom: 44px;
    padding-bottom: 30px;
    text-align: start;
}

/* the hairline that closes the head, fading out to the end edge */
html.rx-ld-home .ld-pricing .pr-top::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to var(--rx-x-end, right),
            rgba(255, 122, 24, .55) 0%,
            rgba(139, 92, 246, .35) 34%,
            rgba(255, 255, 255, .04) 100%);
}

html.rx-ld-home .ld-pricing .pr-eyebrow {
    margin: 0 0 12px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #FF7A18;
}

html.rx-ld-home .ld-pricing .pr-title {
    margin: 0;
    max-width: 24ch;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: clamp(30px, 4.6vw, 56px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.02em;
    color: #FFFFFF;
}

html.rx-ld-home .ld-pricing .pr-title-acc {
    font-weight: 900;
    background: linear-gradient(135deg, #FF7A18 8%, #FFA53C 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html.rx-ld-home .ld-pricing .pr-sub {
    margin: 16px 0 0;
    max-width: 56ch;
    font-size: clamp(15px, 1.3vw, 16.5px);
    line-height: 1.7;
    color: #C9C3DC;
}

/* Arabic is never letter-spaced and never uppercased */
html.rx-ld-home .ld[lang="ar"] .pr-eyebrow,
html.rx-ld-home .ld[lang="ar"] .pr-name {
    letter-spacing: 0;
    text-transform: none;
}

/* --------------------------------- the grid ------------------------------- */

/* five plans: three across the first row, the last two centred on the second
   (a six-track grid, each card taking two tracks) */
html.rx-ld-home .ld-pricing .pr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 20px;
    align-items: stretch;
}

html.rx-ld-home .ld-pricing .pr-card {
    grid-column: auto / span 1;
}

@media (min-width: 620px) {
    html.rx-ld-home .ld-pricing .pr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    html.rx-ld-home .ld-pricing .pr-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 20px;
    }

    html.rx-ld-home .ld-pricing .pr-card {
        grid-column: span 2;
    }

    html.rx-ld-home .ld-pricing .pr-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    html.rx-ld-home .ld-pricing .pr-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* --------------------------------- a card --------------------------------- */

html.rx-ld-home .ld-pricing .pr-card {
    position: relative;
    padding: 26px 22px 24px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background-color: rgba(255, 255, 255, .045);
    background-image: none;
    box-shadow: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

/* the lit hairline along each card's top edge */
html.rx-ld-home .ld-pricing .pr-card::before {
    content: "";
    position: absolute;
    inset-inline: 1px;
    top: 0;
    height: 1px;
    border-radius: inherit;
    background: linear-gradient(to var(--rx-x-end, right),
            rgba(255, 122, 24, .7) 0%,
            rgba(139, 92, 246, .35) 46%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

html.rx-ld-home .ld-pricing .pr-card:not(.pr-card-hero):hover {
    border-color: rgba(255, 165, 60, .34);
    background-color: rgba(255, 255, 255, .07);
    box-shadow: none;
    transform: translateY(-2px);
}

/* the recommended plan: the amber edge, a violet-to-warm ground, lifted */
html.rx-ld-home .ld-pricing .pr-card-hero {
    border-color: rgba(255, 122, 24, .48);
    background-color: #150B29;
    background-image:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 24, .18), rgba(255, 122, 24, 0) 62%),
        linear-gradient(165deg, rgba(43, 22, 78, .96), rgba(12, 7, 24, .98));
    box-shadow: 0 30px 60px -34px rgba(255, 122, 24, .55);
}

html.rx-ld-home .ld-pricing .pr-card-hero:hover {
    box-shadow: 0 36px 66px -34px rgba(255, 122, 24, .68);
    transform: translateY(-3px);
}

html.rx-ld-home .ld-pricing .pr-card-hero .pr-name {
    color: rgba(255, 255, 255, .8);
}

html.rx-ld-home .ld-pricing .pr-card-hero .pr-feats {
    border-top-color: rgba(255, 255, 255, .18);
}

html.rx-ld-home .ld-pricing .pr-card-hero .pr-feat {
    color: #EDE8FA;
}

html.rx-ld-home .ld-pricing .pr-card-hero .pr-tick {
    color: #FFA53C;
}

/* the "Popular" pill, in the amber of the identity */
html.rx-ld-home .ld-pricing .pr-badge {
    padding: 5px 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(135deg, #FF7A18, #FFA53C);
    color: #1B0B02;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    box-shadow: 0 10px 24px -12px rgba(255, 122, 24, .9);
}

/* ------------------------------ inside a card ----------------------------- */

html.rx-ld-home .ld-pricing .pr-name {
    margin: 0;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

html.rx-ld-home .ld-pricing .pr-amount {
    margin-top: 14px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: clamp(34px, 4vw, 42px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: #FFFFFF;
    unicode-bidi: isolate;
}

html.rx-ld-home .ld-pricing .pr-per {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #9A93B4;
}

html.rx-ld-home .ld-pricing .pr-btn {
    margin-top: 20px;
    padding: 13px 14px;
    border-radius: 12px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 14px;
    font-weight: 700;
    white-space: normal;
}

html.rx-ld-home .ld-pricing .pr-feats {
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: grid;
    gap: 10px;
}

html.rx-ld-home .ld-pricing .pr-feat {
    font-size: 13.5px;
    line-height: 1.6;
    color: #C9C3DC;
}

html.rx-ld-home .ld-pricing .pr-tick {
    color: #FFA53C;
}

/* ---------------------------- the closing band ---------------------------- */

html.rx-ld-home .ld-pricing .pr-close {
    margin-top: 30px;
    padding: 48px 32px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 26px;
    background-color: #100A1F;
    background-image:
        radial-gradient(80% 130% at 8% 0%, rgba(255, 122, 24, .20), rgba(255, 122, 24, 0) 62%),
        radial-gradient(90% 130% at 92% 100%, rgba(109, 40, 217, .34), rgba(109, 40, 217, 0) 64%),
        linear-gradient(160deg, rgba(24, 14, 46, .95), rgba(10, 6, 20, .97));
    text-align: center;
    gap: 20px;
}

html.rx-ld-home .ld-pricing .pr-close-line {
    max-width: 48ch;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: clamp(16px, 1.7vw, 20px);
    font-weight: 700;
    line-height: 1.5;
    color: #FFFFFF;
}

html.rx-ld-home .ld-pricing .pr-close-btn {
    padding: 14px 26px;
    border-radius: 12px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 14px;
    font-weight: 700;
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 719px) {
    html.rx-ld-home .ld-pricing .pr-band {
        padding: 36px 0 52px;
    }

    html.rx-ld-home .ld-pricing .pr-top {
        margin-bottom: 30px;
        padding-bottom: 22px;
    }

    html.rx-ld-home .ld-pricing .pr-title {
        max-width: none;
    }

    html.rx-ld-home .ld-pricing .pr-close {
        padding: 34px 20px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.rx-ld-home .ld-pricing .pr-card,
    html.rx-ld-home .ld-pricing .pr-card:not(.pr-card-hero):hover,
    html.rx-ld-home .ld-pricing .pr-card-hero:hover {
        transition: none;
        transform: none;
    }
}

/* the hairlines run from the start edge: in Arabic that is the right */
html.rx-ld-home .ld[dir="rtl"] {
    --rx-x-end: left;
}
