/* ==========================================================================
   PRLinkUp — Home sections 11–13
   Get the app · FAQ · Final call to action
   ========================================================================== */

.getapp__title em,
.getapp__title em .split-word,
.faq__title em,
.faq__title em .split-word {
    font-style: italic;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.getapp__title em,
.getapp__title em .split-word {
    background-image: linear-gradient(100deg, #E9D5FF 0%, #FFFFFF 45%, #F5B5FC 100%);
}

.faq__title em,
.faq__title em .split-word {
    background-image: linear-gradient(100deg, #5B3FF0 0%, #7A5DFF 35%, #B06AF8 70%, #E879F9 100%);
}

.getapp__title em .split-word,
.faq__title em .split-word {
    padding-right: 0.06em;
}

/* ==========================================================================
   Get the app
   ========================================================================== */
.getapp {
    padding-block: clamp(1rem, 2vw, 2rem) clamp(5rem, 4rem + 4vw, 8rem);
    background: #F6F3FF;
}

.getapp__panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: clamp(560px, 82vh, 680px);
    padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 4vw, 4.5rem) 0;
    border-radius: 40px;
    overflow: hidden;
    background: linear-gradient(150deg, #3A22B8 0%, #6A4CF5 50%, #8B6CFF 100%);
    color: var(--white);
    box-shadow: 0 50px 100px -40px rgba(74, 47, 217, 0.55);
}

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

.getapp__mesh {
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 120deg at 60% 55%, #4A2FD9, #B06AF8, #E879F9 35%, #6A4CF5, #60A5FA 70%, #4A2FD9);
    filter: blur(90px);
    opacity: 0.45;
    animation: spin 45s linear infinite;
}

.getapp__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.3px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 60%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 70% at 75% 60%, #000 10%, transparent 70%);
}

.getapp .grain {
    opacity: 0.08;
}

.getapp__copy {
    align-self: center;
    padding-bottom: clamp(2rem, 4vw, 4.5rem);
}

.getapp__title {
    margin-top: clamp(1.25rem, 3vh, 2rem);
    font-size: clamp(2.3rem, 1rem + 3.8vw, 4.6rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--white);
}

.getapp__lead {
    max-width: 44ch;
    margin-top: 18px;
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.getapp__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.getapp__platforms li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    font-size: 13.5px;
    font-weight: var(--fw-semi);
}

.getapp__platforms i {
    font-size: 17px;
}

.getapp__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 30px;
}

/* ---------- Phones rising out of the panel ---------- */
.getapp__visual {
    position: relative;
    min-height: 480px;
}

.gphone {
    position: absolute;
    bottom: -70px;
    width: clamp(200px, 17vw, 250px);
    aspect-ratio: 9 / 19;
    border-radius: 16% / 7.5%;
    background: #0E0C1F;
    box-shadow: inset 0 0 0 1.5px #39336B, 0 40px 80px -24px rgba(17, 10, 60, 0.7);
    container-type: inline-size;
    will-change: transform;
}

.gphone--back {
    left: 6%;
    bottom: -120px;
    rotate: -8deg;
}

.gphone--front {
    right: 4%;
    z-index: 2;
    rotate: 6deg;
}

.gphone__island {
    position: absolute;
    top: 3.4%;
    left: 50%;
    z-index: 2;
    width: 32%;
    height: 3.6%;
    border-radius: var(--r-pill);
    background: #000;
    translate: -50% 0;
}

.gphone__screen {
    position: absolute;
    inset: 2.4%;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    padding: 3.2em 7% 1.2em;
    overflow: hidden;
    border-radius: 14% / 6.6%;
    background: var(--gray-50);
    color: var(--ink-900);
    font-size: 6.2cqi;
    line-height: 1.35;
}

.gs-kicker {
    font-size: 0.66em;
    font-weight: var(--fw-semi);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-600);
}

.gs-title {
    margin-top: -0.35em;
    font-size: 1.3em;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.gs-big {
    margin-top: -0.3em;
    font-size: 2.1em;
    font-weight: var(--fw-bold);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.gs-meta {
    margin-top: -0.3em;
    font-size: 0.68em;
    color: var(--ink-600);
}

.gs-progress {
    height: 0.4em;
    border-radius: var(--r-pill);
    background: var(--gray-200);
    overflow: hidden;
}

.gs-progress span {
    display: block;
    width: var(--p);
    height: 100%;
    border-radius: inherit;
    background: var(--grad-primary);
}

.gs-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.55em 0.6em;
    border-radius: 0.75em;
    background: var(--white);
    font-size: 0.72em;
}

.gs-row > i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.1em;
    height: 2.1em;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 0.85em;
    font-style: normal;
    font-weight: var(--fw-semi);
}

.gs-row > i.gs-ico {
    background: var(--success-soft);
    color: #067A40;
}

.gs-row b {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: var(--fw-semi);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gs-row em {
    font-style: normal;
    font-weight: var(--fw-semi);
    color: #067A40;
}

.gs-tag {
    padding: 0.2em 0.55em;
    border-radius: var(--r-pill);
    font-size: 0.85em;
}

.gs-tag--ok   { background: var(--success-soft); }
.gs-tag--wait { background: var(--warning-soft); color: #9A6100 !important; }

.gs-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.4em;
    height: 3.6em;
    padding: 0.5em 0.6em 0;
    border-radius: 0.75em;
    background: var(--white);
}

.gs-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 0.3em 0.3em 0 0;
    background: linear-gradient(#B06AF8, #7A5DFF);
}

.gs-bars i:last-child {
    background: linear-gradient(#34E89E, #00D26A);
}

.gs-btn {
    margin-top: auto;
    padding: 0.75em;
    border-radius: var(--r-pill);
    background: var(--grad-primary);
    color: var(--white);
    font-size: 0.78em;
    font-weight: var(--fw-semi);
    text-align: center;
}

.getapp__toast {
    position: absolute;
    top: 14%;
    left: 34%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 18px;
    color: var(--ink-900);
    font-size: 13px;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}

.getapp__toast b,
.getapp__toast small {
    display: block;
}

.getapp__toast b {
    font-weight: var(--fw-semi);
}

.getapp__toast small {
    color: var(--ink-600);
    font-size: 12px;
}

.getapp__toast-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 18px;
}

@media (max-width: 1023px) {
    .getapp__panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        min-height: 0;
        border-radius: 32px;
    }

    .getapp__copy {
        padding-bottom: 0;
    }

    .getapp__visual {
        min-height: 440px;
        margin-top: 2rem;
    }

    .gphone--back  { left: 10%; }
    .gphone--front { right: 10%; }
}

@media (max-width: 600px) {
    .getapp__visual {
        min-height: 380px;
    }

    .gphone {
        width: 172px;
    }

    .gphone--back  { left: 0; bottom: -110px; }
    .gphone--front { right: 0; bottom: -60px; }

    /* Centred with margins: GSAP owns the transform (and clears translate) */
    .getapp__toast {
        top: 4%;
        right: 0;
        left: 0;
        width: max-content;
        margin-inline: auto;
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding-block: clamp(5rem, 4rem + 5vw, 8.5rem);
    background: var(--white);
}

.faq__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 7rem);
}

.faq__aside {
    position: sticky;
    top: calc(var(--header-h) + 28px);
}

.faq__title {
    margin-top: clamp(1.25rem, 3vh, 2rem);
    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);
}

.faq__lead {
    max-width: 38ch;
    margin-top: 18px;
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
    line-height: 1.6;
    color: var(--ink-600);
}

.faq__help {
    display: grid;
    justify-items: start;
    gap: 6px;
    max-width: 420px;
    margin-top: clamp(1.75rem, 4vh, 2.75rem);
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(rgba(122, 93, 255, 0.14) 1px, transparent 1.3px) 0 0 / 18px 18px,
        #F6F3FF;
    box-shadow: inset 0 0 0 1px rgba(122, 93, 255, 0.1);
}

.faq__help-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    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);
}

.faq__help b {
    font-size: 18px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.faq__help p {
    font-size: 14.5px;
    color: var(--ink-600);
}

.faq__mail {
    font-weight: var(--fw-semi);
    overflow-wrap: anywhere;
}

.faq__help-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 14px;
}

/* ---------- Accordion ---------- */
.faq__list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item__heading {
    font-size: inherit;
    letter-spacing: normal;
}

.faq-item__q {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: clamp(1.25rem, 3vh, 1.75rem) 0;
    color: var(--ink-950);
    text-align: left;
}

.faq-item__num {
    font-size: 13px;
    font-weight: var(--fw-semi);
    color: var(--ink-400);
    font-variant-numeric: tabular-nums;
    transition: color 0.4s;
}

.faq-item__text {
    font-size: clamp(1.1rem, 0.9rem + 0.75vw, 1.5rem);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    letter-spacing: -0.025em;
    transition: color 0.4s, translate 0.6s var(--ease-out);
}

.faq-item__q:hover .faq-item__text {
    color: var(--violet-650);
    translate: 6px 0;
}

.faq-item__icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--color-border);
    transition: background-color 0.4s, box-shadow 0.4s;
}

.faq-item__icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    border-radius: 2px;
    background: var(--ink-950);
    transition: rotate 0.5s var(--ease-out), background-color 0.4s;
}

.faq-item__icon i:last-child {
    rotate: 90deg;
}

.faq-item.is-open .faq-item__num {
    color: var(--violet-500);
}

.faq-item.is-open .faq-item__icon {
    background: var(--grad-primary);
    box-shadow: 0 10px 22px -8px rgba(122, 93, 255, 0.6);
}

.faq-item.is-open .faq-item__icon i {
    background: var(--white);
}

.faq-item.is-open .faq-item__icon i:last-child {
    rotate: 0deg;
}

/* Smooth height: 0fr ↔ 1fr. Collapsed only when JS runs. */
.faq-item__a {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.6s var(--ease-out);
}

.js .faq-item:not(.is-open) .faq-item__a {
    grid-template-rows: 0fr;
}

.faq-item__inner {
    min-height: 0;
    overflow: hidden;
}

.faq-item__inner p {
    max-width: 60ch;
    padding: 0 56px clamp(1.25rem, 3vh, 1.75rem) 64px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-600);
    opacity: 1;
    transition: opacity 0.5s var(--ease-soft) 0.1s;
}

.js .faq-item:not(.is-open) .faq-item__inner p {
    opacity: 0;
    transition-delay: 0s;
}

@media (max-width: 1023px) {
    .faq__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq__aside {
        position: static;
    }

    /* Help card moves under the questions */
    .faq__layout {
        display: flex;
        flex-direction: column;
    }

    .faq__help {
        order: 2;
        max-width: none;
        width: 100%;
    }

    .faq__aside {
        display: contents;
    }

    .faq__aside > .sec-meta,
    .faq__title,
    .faq__lead {
        width: 100%;
    }

    .faq__title {
        margin-top: -1rem;
    }

    .faq__lead {
        margin-top: -1.5rem;
    }

    .faq__list {
        order: 1;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .faq-item__q {
        grid-template-columns: 34px minmax(0, 1fr) 38px;
    }

    .faq-item__icon {
        width: 38px;
        height: 38px;
    }

    .faq-item__inner p {
        padding: 0 0 1.25rem 46px;
        font-size: 15px;
    }
}

/* ==========================================================================
   Final call to action
   ========================================================================== */
.cta {
    position: relative;
    isolation: isolate;
    padding-block: clamp(5rem, 4rem + 5vw, 8rem) clamp(3rem, 2rem + 3vw, 5rem);
    overflow: hidden;
    background: #0E0B26;
    color: var(--white);
}

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

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

.cta__glow--a {
    top: -20%;
    left: 10%;
    width: 55vw;
    height: 55vw;
    background: #4A2FD9;
    opacity: 0.45;
}

.cta__glow--b {
    right: -10%;
    bottom: -30%;
    width: 45vw;
    height: 45vw;
    background: #E879F9;
    opacity: 0.18;
}

.cta .grain {
    opacity: 0.07;
}

.cta__stage {
    position: relative;
    padding-block: clamp(1.5rem, 5vh, 3.5rem);
}

.cta__title {
    font-size: clamp(4rem, 1rem + 13.5vw, 15rem);
    font-weight: var(--fw-black);
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: var(--white);
}

.cta__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.cta__line > span {
    display: inline-block;
}

.cta__line--accent {
    padding-left: 0.9em;
}

.cta__line--accent > span {
    padding-right: 0.08em;
    font-style: italic;
    background-image: linear-gradient(100deg, #B4A3FF 0%, #E9D5FF 45%, #F5B5FC 75%, #E879F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Rotating-text orb */
.cta-orb {
    position: absolute;
    top: clamp(1.5rem, 5vh, 3.5rem);
    right: 4%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(150px, 15vw, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 30px 70px -20px rgba(122, 93, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: background-color 0.4s, scale 0.6s var(--ease-out);
    will-change: transform;
}

.cta-orb::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--white);
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.7s var(--ease-out);
}

.cta-orb:hover {
    color: var(--ink-950);
    scale: 1.06;
}

.cta-orb:hover::before {
    clip-path: circle(75% at 50% 50%);
}

.cta-orb__ring {
    position: absolute;
    inset: 8%;
    width: 84%;
    height: 84%;
    animation: spin 16s linear infinite;
}

.cta-orb__ring text {
    font-size: 13px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    fill: currentColor;
}

.cta-orb__core {
    position: relative;
    display: grid;
    place-items: center;
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: clamp(22px, 2.2vw, 32px);
    transition: rotate 0.6s var(--ease-out), background-color 0.4s;
}

.cta-orb:hover .cta-orb__core {
    background: var(--violet-100);
    color: var(--violet-650);
    rotate: 45deg;
}

/* Entry paths */
.cta__paths {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: clamp(1rem, 3vh, 2rem) 0 0;
    padding: 0;
    list-style: none;
}

.cta-path {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon num go"
        "body body body";
    align-items: center;
    gap: 18px 14px;
    height: 100%;
    padding: 22px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: var(--white);
    transition: color 0.4s;
}

.cta-path::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--white);
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.6s var(--ease-out);
}

.cta-path:hover {
    color: var(--ink-950);
}

.cta-path:hover::before {
    clip-path: inset(0 0 0 0);
}

.cta-path__num {
    grid-area: num;
    font-size: 12px;
    font-weight: var(--fw-semi);
    color: var(--lavender);
    transition: color 0.4s;
}

.cta-path:hover .cta-path__num {
    color: var(--violet-500);
}

.cta-path__icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 22px;
}

.cta-path__body {
    grid-area: body;
}

.cta-path__body b {
    display: block;
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.7rem);
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
}

.cta-path__body small {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
    transition: color 0.4s;
}

.cta-path:hover .cta-path__body small {
    color: var(--ink-600);
}

.cta-path__go {
    grid-area: go;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    font-size: 17px;
    transition: background-color 0.4s, color 0.4s, translate 0.6s var(--ease-out);
}

.cta-path:hover .cta-path__go {
    background: var(--ink-950);
    color: var(--white);
    translate: 4px 0;
}

.cta__legal {
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.cta__legal a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cta__legal a:hover {
    color: var(--white);
}

@media (max-width: 1023px) {
    .cta__paths {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-path {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "icon body go";
    }

    .cta-path__num {
        display: none;
    }
}

@media (max-width: 700px) {
    .cta__title {
        font-size: clamp(3.4rem, 0.5rem + 17vw, 6rem);
    }

    .cta__line--accent {
        padding-left: 0.4em;
    }

    .cta-orb {
        position: relative;
        top: auto;
        right: auto;
        width: 140px;
        margin: 1.75rem 0 0 auto;
    }
}
