.pec-app-page {
    --app-navy: #061b47;
    --app-blue: #174bb7;
    --app-blue-2: #2b67df;
    --app-line: #e2e9f5;
    --app-soft: #f5f8fe;
    color: var(--pec-text);
}

.app-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 82% 25%, rgba(60, 129, 255, .34), transparent 24%),
        radial-gradient(circle at 68% 90%, rgba(0, 190, 205, .12), transparent 26%),
        linear-gradient(125deg, #04163b 0%, #082967 55%, #0e3e97 100%);
}

.app-hero-grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(100deg, rgba(0,0,0,.8), rgba(0,0,0,.28));
}

.app-hero .container { position: relative; z-index: 1; }
.app-kicker,
.app-section-label {
    display: inline-block;
    margin-bottom: 11px;
    color: #f6a623;
    font-size: .82em;
    font-weight: 750;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.app-hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    color: #fff;
    font-size: 3.35em;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-transform: none;
}

.app-lead {
    max-width: 680px;
    margin: 0 0 25px;
    color: rgba(255,255,255,.84);
    font-size: 1.08em;
    line-height: 1.8;
}

.app-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.app-hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.04);
}
.app-hero-actions .btn-outline:hover { color: #fff; background: rgba(255,255,255,.1); }

.app-hero-device {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 20px auto;
}

.app-device-core,
.app-device-node {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.12);
    box-shadow: 0 22px 50px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.3);
    backdrop-filter: blur(12px);
}

.app-device-core {
    left: 50%; top: 50%;
    width: 118px; height: 118px;
    margin: -59px 0 0 -59px;
    border-radius: 32px;
}
.app-device-core img { width: 68px; height: 68px; object-fit: contain; }
.app-device-node { width: 70px; height: 70px; border-radius: 21px; color: #fff; font-size: 2em; }
.app-device-node-apple { left: 8px; top: 76px; }
.app-device-node-android { right: 4px; top: 76px; }
.app-device-node-windows { left: 50%; bottom: 0; margin-left: -35px; }

.app-device-orbit {
    position: absolute;
    left: 50%; top: 50%;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    transform: translate(-50%,-50%);
}
.app-device-orbit-one { width: 260px; height: 260px; }
.app-device-orbit-two { width: 340px; height: 340px; border-style: dashed; opacity: .55; }

.app-platform-section { background: #fff; }
.app-platform-heading { max-width: 760px; margin: 0 0 26px; }
.app-platform-heading h2,
.app-guide-head h2,
.app-help-panel h2 {
    margin: 0;
    color: var(--pec-primary);
    font-size: 2.2em;
    font-weight: 750;
    letter-spacing: -.025em;
}

.app-platform-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.app-platform-tab {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) 20px;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 15px 17px;
    text-align: left;
    border: 1px solid var(--app-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 11px 28px rgba(10,37,90,.045);
    transition: .22s ease;
}

.app-platform-tab:hover,
.app-platform-tab.is-active {
    border-color: #b8caef;
    background: #f8fbff;
    box-shadow: 0 15px 34px rgba(20,70,160,.09);
    transform: translateY(-2px);
}

.app-platform-icon,
.app-guide-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #09265e, #1d56c7);
    font-size: 1.65em;
}

.app-platform-tab strong { display: block; color: #172d51; font-size: 1.05em; }
.app-platform-tab small { display: block; margin-top: 3px; color: #748096; line-height: 1.4; }
.app-tab-arrow { justify-self: end; color: #b2bdd0; font-size: .82em; }
.app-platform-tab.is-active .app-tab-arrow { color: var(--app-blue); }

.app-guides-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe7f4;
    border-radius: 27px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fe 100%);
    box-shadow: 0 24px 58px rgba(10,37,90,.075);
}

.app-guide-panel { padding: 34px 38px 38px; }
.app-guide-panel[hidden] { display: none !important; }
.app-guide-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 25px; }
.app-guide-head h2 { margin-bottom: 7px; font-size: 2em; }
.app-guide-head p { max-width: 760px; margin: 0; color: var(--pec-muted); line-height: 1.75; }
.app-guide-logo { flex: 0 0 58px; width: 58px; height: 58px; font-size: 1.8em; }

.app-apple-switch {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 22px 76px;
    padding: 4px;
    border: 1px solid #dfe7f4;
    border-radius: 12px;
    background: #fff;
}
.app-apple-switch button {
    min-height: 34px;
    padding: 6px 13px;
    border: 0;
    border-radius: 9px;
    color: #607089;
    background: transparent;
    font-size: .9em;
    font-weight: 650;
}
.app-apple-switch button.is-active { color: #fff; background: var(--app-blue); }
.app-subguide-title { margin: 0 0 16px 76px; color: #1c3767; font-size: 1.18em; font-weight: 700; }

.app-step-list {
    position: relative;
    margin-left: 76px;
}
.app-step-list::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(#b7c8ea, #dfe7f5);
}
.app-step {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 16px;
    padding: 0 0 23px;
}
.app-step:last-child { padding-bottom: 0; }
.app-step > span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 4px solid #f8fbff;
    border-radius: 50%;
    color: #fff;
    background: var(--app-blue);
    box-shadow: 0 5px 14px rgba(23,75,183,.2);
    font-size: .86em;
    font-weight: 750;
}
.app-step h4 { margin: 2px 0 5px; color: #19325d; font-size: 1.04em; font-weight: 700; }
.app-step p { margin: 0; color: var(--pec-muted); line-height: 1.7; }
.app-guide-cta { margin: 27px 0 0 76px; }

.app-benefit-section { background: linear-gradient(180deg, #f7faff, #fff); }
.app-benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.app-benefit { display: flex; gap: 15px; padding: 6px 0; }
.app-benefit > em { flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; color: var(--app-blue); background: #eaf1ff; font-size: 1.2em; }
.app-benefit h3 { margin: 1px 0 6px; color: var(--pec-primary); font-size: 1.05em; font-weight: 700; }
.app-benefit p { margin: 0; color: var(--pec-muted); line-height: 1.65; }

.app-help-section { padding-top: 12px; }
.app-help-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 34px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(80,135,255,.28), transparent 24%),
        linear-gradient(125deg, #061b47, #0c3c94);
}
.app-help-panel h2 { margin-bottom: 7px; color: #fff; font-size: 1.75em; }
.app-help-panel p { max-width: 760px; margin: 0; color: rgba(255,255,255,.75); line-height: 1.7; }
.app-help-panel .btn { flex: 0 0 auto; }

html[dir="rtl"] .app-platform-tab { text-align: right; }
html[dir="rtl"] .app-tab-arrow { transform: rotate(180deg); }
html[dir="rtl"] .app-apple-switch,
html[dir="rtl"] .app-subguide-title,
html[dir="rtl"] .app-step-list,
html[dir="rtl"] .app-guide-cta { margin-left: 0; margin-right: 76px; }
html[dir="rtl"] .app-step-list::before { left: auto; right: 18px; }

@media (max-width: 991px) {
    .app-hero { min-height: 390px; }
    .app-hero h1 { font-size: 2.65em; }
    .app-platform-tabs { grid-template-columns: 1fr; }
    .app-benefit-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 767px) {
    .app-hero { min-height: 0; padding: 65px 0 60px; }
    .app-hero h1 { font-size: 2.12em; }
    .app-lead { font-size: 1em; }
    .app-platform-heading h2 { font-size: 1.75em; }
    .app-guide-panel { padding: 26px 20px 28px; }
    .app-guide-head { gap: 13px; }
    .app-guide-head h2 { font-size: 1.55em; }
    .app-guide-logo { flex-basis: 48px; width: 48px; height: 48px; font-size: 1.5em; }
    .app-apple-switch,
    .app-subguide-title,
    .app-step-list,
    .app-guide-cta,
    html[dir="rtl"] .app-apple-switch,
    html[dir="rtl"] .app-subguide-title,
    html[dir="rtl"] .app-step-list,
    html[dir="rtl"] .app-guide-cta { margin-left: 0; margin-right: 0; }
    .app-help-panel { align-items: flex-start; flex-direction: column; padding: 26px 22px; }
}
