/* LXP page: hero with the agent orbit and the "what is an LXP" box (views/lxp/_hero.php) */
.hx {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 24px;
    padding: 56px;
    border-radius: 36px;
    color: #fff;
    background:
        radial-gradient(520px circle at 82% 50%, rgba(238, 93, 56, .22), transparent 70%),
        radial-gradient(420px circle at 0 0, rgba(124, 108, 242, .18), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 18px 18px,
        linear-gradient(135deg, #0D0B24, #1C1747 60%, #241E58);
    box-shadow: 0 30px 70px -30px rgba(17, 14, 45, .7);
}
[dir="rtl"] .hx {
    background:
        radial-gradient(520px circle at 18% 50%, rgba(238, 93, 56, .22), transparent 70%),
        radial-gradient(420px circle at 100% 0, rgba(124, 108, 242, .18), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 18px 18px,
        linear-gradient(225deg, #0D0B24, #1C1747 60%, #241E58);
}
.hx-copy {
    position: relative;
    z-index: 2;
}
.hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(238, 93, 56, .45);
    border-radius: 999px;
    color: #FF9A6B;
    background: rgba(238, 93, 56, .12);
    font-size: 13px;
}
.hx-title {
    margin-top: 20px;
    font-size: 44px;
    line-height: 1.5;
    color: #fff;
}
.hx-lxp {
    color: #EE5D38;
    font-size: 1.2em;
    text-shadow: 0 0 30px rgba(238, 93, 56, .6);
}
.hx-title-sub {
    display: block;
    margin-top: 6px;
    font-size: .62em;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
}
.hx-lead {
    margin-top: 16px;
    max-width: 520px;
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, .62);
}
.hx-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 28px;
}
.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.hx-btn:hover {
    transform: translateY(-2px);
}
.hx-btn-main {
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    box-shadow: 0 14px 30px -12px rgba(238, 93, 56, .95);
}
.hx-btn-chat {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
}
.hx-btn-chat:hover {
    background: rgba(255, 255, 255, .12);
}
.hx-btn-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3DDC97;
}
.hx-btn-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #3DDC97;
    animation: hxPing 1.6s ease-out infinite;
}
.hx-link {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: rgba(238, 93, 56, .7);
}
.hx-link:hover {
    color: #fff;
}
.hx-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 0;
    margin-top: 36px;
}
.hx-trust > div {
    display: flex;
    flex-direction: column;
    padding: 0 22px;
    border-inline-start: 1px solid rgba(255, 255, 255, .14);
}
.hx-trust > div:first-child {
    padding-inline-start: 0;
    border: 0;
}
.hx-trust strong {
    font-size: 30px;
    line-height: 1.3;
    color: #fff;
}
.hx-trust span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
}

/* the orbit: two rings of agents around the LXP core, spokes carrying data */
.hx-orbit {
    --o: 470px;
    --s: calc(var(--o) * .135);
    position: relative;
    justify-self: center;
    width: var(--o);
    height: var(--o);
    direction: ltr;
}
.hx-track {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px dashed rgba(255, 255, 255, .14);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.hx-track-1 {
    width: calc(var(--o) * .56);
    height: calc(var(--o) * .56);
}
.hx-track-2 {
    width: calc(var(--o) * .9);
    height: calc(var(--o) * .9);
    border-color: rgba(238, 93, 56, .2);
}
.hx-ring {
    position: absolute;
    inset: 0;
    animation: hxSpin var(--dur) linear infinite var(--dir);
}
.hx-ring-1 {
    --r: calc(var(--o) * .28);
    --dur: 70s;
    --dir: normal;
    --back: reverse;
}
.hx-ring-2 {
    --r: calc(var(--o) * .45);
    --dur: 100s;
    --dir: reverse;
    --back: normal;
}
.hx-spoke,
.hx-agent {
    --a: calc(var(--k) / var(--n) * 1turn);
}
.hx-spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--r);
    height: 2px;
    margin-top: -1px;
    transform-origin: 0 50%;
    transform: rotate(var(--a));
    background: repeating-linear-gradient(90deg, rgba(238, 93, 56, .7) 0 5px, transparent 5px 14px);
    background-size: 28px 2px;
    opacity: .45;
    animation: hxFlow 1.2s linear infinite;
}
.hx-ring-2 .hx-spoke {
    opacity: .25;
}
.hx-agent {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--s);
    height: var(--s);
    margin: calc(var(--s) / -2);
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.hx-face {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #fff, #E9ECF5);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .35);
    animation: hxSpin var(--dur) linear infinite var(--back);
    transition: box-shadow .3s;
}
.hx-ring-2 .hx-face {
    border-color: rgba(238, 93, 56, .9);
}
.hx-face img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}
.hx-face:hover {
    box-shadow: 0 0 0 6px rgba(238, 93, 56, .45), 0 0 26px rgba(238, 93, 56, .7);
}
.hx-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 5;
    padding: 4px 10px;
    border-radius: 8px;
    color: #110E2D;
    background: #fff;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -4px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.hx-face:hover .hx-tip {
    opacity: 1;
    transform: translate(-50%, 0);
}
.hx-orbit:hover .hx-ring,
.hx-orbit:hover .hx-face {
    animation-play-state: paused;
}
.hx-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(var(--o) * .3);
    height: calc(var(--o) * .3);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FF9A6B, #EE5D38 55%, #C2401F);
    box-shadow: 0 0 0 10px rgba(238, 93, 56, .15), 0 0 60px rgba(238, 93, 56, .65);
    transform: translate(-50%, -50%);
    text-align: center;
}
.hx-core-pulse {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(238, 93, 56, .6);
    border-radius: 50%;
    animation: hxPulse 3s ease-out infinite;
}
.hx-core-pulse-2 {
    animation-delay: 1.5s;
}
.hx-core-title {
    font-family: Montserrat, MontserratBold, sans-serif;
    font-size: calc(var(--o) * .075);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: .04em;
}
.hx-core-sub {
    max-width: 80%;
    margin-top: 4px;
    font-size: calc(var(--o) * .024);
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
    direction: rtl;
}
:lang(en) .hx-core-sub {
    direction: ltr;
}
@keyframes hxSpin {
    to { transform: rotate(1turn); }
}
@keyframes hxFlow {
    to { background-position: 28px 0; }
}
@keyframes hxPulse {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.9); opacity: 0; }
}
@keyframes hxPing {
    from { transform: scale(.6); opacity: 1; }
    to { transform: scale(1.8); opacity: 0; }
}

/* what is an LXP + benefits */
.hx-about {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 28px;
    padding: 32px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 0 200px rgba(0, 0, 0, .1);
}
.hx-about-title {
    font-size: 24px;
    line-height: 1.7;
    color: #110E2D;
}
.hx-about-text p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 2.1;
    color: rgba(17, 14, 45, .7);
    text-align: justify;
}
.hx-benefits {
    padding: 22px;
    border-radius: 24px;
    background: #F7F8FB;
}
.hx-benefits-title {
    font-size: 16px;
    color: #110E2D;
}
.hx-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.hx-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    color: #110E2D;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 6px 16px -10px rgba(17, 14, 45, .25);
    transition: transform .2s, box-shadow .2s;
}
.hx-benefit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -12px rgba(238, 93, 56, .5);
}
.hx-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #EE5D38;
    background: #F7DBD4;
}

@media (max-width: 1279px) {
    .hx {
        padding: 44px 40px;
    }
    .hx-title {
        font-size: 38px;
    }
    .hx-orbit {
        --o: 400px;
    }
}
@media (max-width: 1023px) {
    .hx {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .hx-copy {
        text-align: center;
    }
    .hx-lead {
        margin-inline: auto;
    }
    .hx-actions,
    .hx-trust {
        justify-content: center;
    }
    .hx-about {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .hx {
        padding: 30px 18px 36px;
        border-radius: 26px;
    }
    .hx-title {
        font-size: 27px;
    }
    .hx-lead {
        font-size: 14px;
    }
    .hx-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hx-btn {
        justify-content: center;
    }
    .hx-trust > div {
        padding: 0 14px;
    }
    .hx-trust strong {
        font-size: 24px;
    }
    .hx-orbit {
        --o: min(330px, calc(100vw - 72px));
    }
    .hx-about {
        padding: 20px 16px;
        border-radius: 24px;
    }
    .hx-about-title {
        font-size: 19px;
    }
    .hx-benefits {
        padding: 14px;
    }
    .hx-benefit {
        font-size: 12.5px;
        padding: 8px;
        gap: 8px;
    }
    .hx-benefit-icon {
        width: 30px;
        height: 30px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hx-ring,
    .hx-face,
    .hx-spoke,
    .hx-core-pulse,
    .hx-btn-dot::after {
        animation: none;
    }
}

/* ===== Live conversation with the interviewer (views/lxp/_chat-demo.php) ===== */
.ch {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 22px;
}
.ch-window {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(160deg, #110E2D, #221C54);
    box-shadow: 0 24px 50px -24px rgba(17, 14, 45, .7);
}
.ch-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
}
.ch-avatar,
.ch-msg-avatar,
.ch-step-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #fff, #E9ECF5);
}
.ch-avatar {
    width: 44px;
    height: 44px;
    border: 2px solid #EE5D38;
}
.ch-avatar img,
.ch-msg-avatar img,
.ch-step-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
.ch-name {
    color: #fff;
    font-size: 15px;
}
.ch-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}
.ch-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3DDC97;
    box-shadow: 0 0 8px #3DDC97;
}
.ch-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 400px;
    padding: 18px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.ch-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 86%;
}
.ch-bot {
    align-self: flex-start;
}
.ch-user {
    align-self: flex-end;
}
.ch-msg-avatar {
    width: 30px;
    height: 30px;
}
.ch-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.9;
}
.ch-bot .ch-bubble {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-end-start-radius: 6px;
}
.ch-user .ch-bubble {
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    border-end-end-radius: 6px;
    box-shadow: 0 8px 18px -10px rgba(238, 93, 56, .9);
}
.ch-typing {
    display: none;
}
.ch-typing .ch-bubble {
    display: inline-flex;
    gap: 4px;
    padding: 14px 16px;
}
.ch-typing .ch-bubble span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
    animation: chDot 1s ease-in-out infinite;
}
.ch-typing .ch-bubble span:nth-child(2) { animation-delay: .15s; }
.ch-typing .ch-bubble span:nth-child(3) { animation-delay: .3s; }
.ch-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 8px 8px 8px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
}
[dir="rtl"] .ch-input {
    padding: 8px 16px 8px 8px;
}
.ch-input-text {
    flex: 1;
    min-height: 24px;
    color: #fff;
    font-size: 14px;
    line-height: 24px;
}
.ch-input-text:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, .35);
}
.ch-input-text.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 16px;
    margin-inline-start: 2px;
    vertical-align: middle;
    background: #EE5D38;
    animation: chCaret .8s steps(1) infinite;
}
.ch-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: #EE5D38;
    transition: transform .15s;
}
[dir="rtl"] .ch-send svg {
    transform: scaleX(-1);
}
.ch-send.is-sending {
    transform: scale(.85);
}
.ch-start {
    display: none;
}

/* path panel */
.ch-path {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 26px;
    background: #F7F8FB;
}
.ch-path-title {
    font-size: 18px;
    color: #110E2D;
}
.ch-wait {
    display: none;
    margin-top: 6px;
    color: rgba(17, 14, 45, .5);
    font-size: 13px;
}
.ch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.ch-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(238, 93, 56, .35);
    border-radius: 999px;
    color: #110E2D;
    background: #fff;
    font-size: 13px;
    line-height: 1.6;
}
.ch-chip svg {
    color: #EE5D38;
}
.ch .ch-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: chStep;
}
.ch-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px -12px rgba(17, 14, 45, .3);
}
.ch-step-img {
    width: 44px;
    height: 44px;
    background: #F7DBD4;
}
.ch-step-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ch-step-text {
    color: #110E2D;
    font-size: 14px;
    line-height: 1.7;
}
.ch-step-agent {
    color: #EE5D38;
    font-size: 12px;
}
.ch-done {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}
.ch-done-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    font-size: 14px;
}
.ch-replay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(17, 14, 45, .15);
    border-radius: 999px;
    color: #110E2D;
    background: #fff;
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
}
.ch-note {
    margin-top: 12px;
    color: rgba(17, 14, 45, .45);
    font-size: 12px;
    text-align: center;
}

/* playing (JS adds .ch-ready): everything waits to be shown */
.ch-ready .ch-msg:not(.ch-typing),
.ch-ready .ch-chip,
.ch-ready .ch-step {
    display: none;
}
.ch-ready .ch-msg.is-shown,
.ch-ready .ch-step.is-shown {
    display: flex;
    animation: chIn .35s cubic-bezier(.2, .7, .2, 1);
}
.ch-ready .ch-chip.is-shown {
    display: inline-flex;
    animation: chPop .4s cubic-bezier(.3, 1.6, .5, 1);
}
.ch-ready .ch-typing.is-shown {
    display: flex;
}
.ch-ready .ch-wait {
    display: block;
}
.ch-ready.is-started .ch-wait {
    display: none;
}
.ch-ready.is-done .ch-done {
    display: flex;
    animation: chIn .4s ease;
}
.ch-ready:not(.is-started) .ch-start {
    position: absolute;
    inset: 64px 0 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 14, 45, .55);
    backdrop-filter: blur(3px);
}
.ch-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    box-shadow: 0 0 0 8px rgba(238, 93, 56, .2), 0 16px 34px -12px rgba(238, 93, 56, 1);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    animation: chBreath 2s ease-in-out infinite;
}
[dir="rtl"] .ch-start-btn svg {
    transform: scaleX(-1);
}
@keyframes chIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes chPop {
    from { opacity: 0; transform: scale(.6); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes chDot {
    0%, 100% { opacity: .3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}
@keyframes chCaret {
    50% { opacity: 0; }
}
@keyframes chBreath {
    0%, 100% { box-shadow: 0 0 0 6px rgba(238, 93, 56, .2), 0 16px 34px -12px rgba(238, 93, 56, 1); }
    50% { box-shadow: 0 0 0 14px rgba(238, 93, 56, .08), 0 16px 34px -12px rgba(238, 93, 56, 1); }
}
@media (max-width: 1023px) {
    .ch {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .ch-log {
        height: 360px;
        padding: 14px 12px;
    }
    .ch-msg {
        max-width: 92%;
    }
    .ch-bubble {
        font-size: 13px;
    }
    .ch-path {
        padding: 16px 14px;
    }
    .ch-step-text {
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ch-start-btn,
    .ch-typing .ch-bubble span {
        animation: none;
    }
}

/* ===== "Introducing the LXP and its agents" (views/lxp/_intro.php) ===== */
.in-box {
    margin-top: 40px;
    margin-bottom: 28px;
}
.in-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 22px;
    margin-top: 22px;
}
.in-figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #110E2D;
    box-shadow: 0 20px 44px -22px rgba(17, 14, 45, .7);
}
.in-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    pointer-events: none;
}
.in-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.in-figure:hover img {
    transform: scale(1.03);
}
.in-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.in-first {
    display: flex;
    gap: 14px;
    flex: 1;
    padding: 22px;
    border-radius: 22px;
    background: #F7F8FB;
}
.in-first-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #EE5D38;
    background: #F7DBD4;
}
.in-first p {
    font-size: 14.5px;
    line-height: 2.1;
    color: rgba(17, 14, 45, .75);
    text-align: justify;
}
.in-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    padding: 20px 22px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(260px circle at 0 0, rgba(238, 93, 56, .35), transparent),
        linear-gradient(135deg, #110E2D, #241E58);
}
[dir="rtl"] .in-cta {
    background:
        radial-gradient(260px circle at 100% 0, rgba(238, 93, 56, .35), transparent),
        linear-gradient(225deg, #110E2D, #241E58);
}
.in-cta p {
    font-size: 15px;
    line-height: 2;
}
.in-cta .in-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    box-shadow: 0 12px 26px -12px rgba(238, 93, 56, .95);
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s;
}
.in-cta .in-cta-btn:hover {
    transform: translateY(-2px);
}
[id^="lxp-"] {
    scroll-margin-top: 92px; /* clear the floating page navigator */
}
@media (max-width: 1023px) {
    .in-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .in-first {
        padding: 16px 14px;
    }
    .in-first-icon {
        display: none;
    }
    .in-cta {
        padding: 16px;
    }
    .in-cta .in-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== "On this page": tiles in the intro box + floating navigator (views/lxp/_intro.php) ===== */
.in-jumps {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(17, 14, 45, .12);
}
.in-jumps-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #110E2D;
    font-size: 15px;
}
.in-jumps-label svg {
    color: #EE5D38;
}
.in-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.in-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    overflow: hidden;
    border: 1px solid rgba(17, 14, 45, .08);
    border-radius: 16px;
    color: #110E2D;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .25s, box-shadow .25s, transform .25s, background .25s;
}
.in-tile:hover,
.in-tile:focus-visible {
    border-color: rgba(238, 93, 56, .5);
    background: #FFF8F5;
    box-shadow: 0 14px 26px -16px rgba(238, 93, 56, .7);
    transform: translateY(-2px);
    outline: none;
}
.in-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #EE5D38;
    background: #F7DBD4;
    transition: background .25s, color .25s;
}
.in-tile:hover .in-tile-icon {
    color: #fff;
    background: #EE5D38;
}
.in-tile-label {
    flex: 1;
    min-width: 0;
}
.in-tile-num {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: rgba(17, 14, 45, .07);
    transition: color .25s;
}
.in-tile:hover .in-tile-num {
    color: rgba(238, 93, 56, .35);
}

/* floating navigator */
.pn {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-120%);
    transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.pn.is-on {
    opacity: 1;
    transform: none;
}
.pn-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1180px;
    width: 100%;
    padding: 7px 8px;
    padding-inline-start: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(17, 14, 45, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -16px rgba(17, 14, 45, .6);
    pointer-events: auto;
}
.pn-label {
    flex-shrink: 0;
    color: rgba(255, 255, 255, .55);
    font-size: 12.5px;
    white-space: nowrap;
}
.pn-track {
    display: flex;
    flex: 1;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    padding: 0 10px;
}
.pn-track::-webkit-scrollbar {
    display: none;
}
.pn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 10px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 12.5px;
    white-space: nowrap;
    transition: color .2s, background .2s;
}
.pn-link svg {
    opacity: .7;
}
.pn-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}
.pn-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    box-shadow: 0 8px 18px -8px rgba(238, 93, 56, .9);
}
.pn-link.is-active svg {
    opacity: 1;
}
.pn-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    transition: background .2s;
}
.pn-top:hover {
    background: #EE5D38;
}
.pn-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, .06);
}
.pn-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #EE5D38, #FF9A6B);
    box-shadow: 0 0 8px rgba(238, 93, 56, .8);
}
[dir="rtl"] .pn-progress span {
    margin-left: auto;
    background: linear-gradient(270deg, #EE5D38, #FF9A6B);
}
@media (max-width: 1023px) {
    .in-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .in-tile {
        gap: 8px;
        padding: 10px;
        font-size: 12.5px;
    }
    .in-tile-icon {
        width: 32px;
        height: 32px;
    }
    .in-tile-num {
        display: none;
    }
    .pn {
        top: 8px;
        padding: 0 8px;
    }
    .pn-bar {
        gap: 4px;
        padding: 5px;
        border-radius: 14px;
    }
    .pn-label {
        display: none;
    }
    .pn-track {
        padding: 0 6px;
    }
    .pn-link {
        padding: 7px 10px;
        font-size: 12px;
    }
    .pn-top {
        width: 32px;
        height: 32px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pn {
        transition: none;
    }
}
