/* ============================================================================
   ELITE RMB — Homepage visual polish (scoped to .page-landing)
   ----------------------------------------------------------------------------
   Layered on top of the existing ELITE RMB design system (elite-unified.css,
   elite-utilities.css, elite-brand.css). These rules add a professional,
   fintech feel to the public homepage without touching any PHP/backend logic:

     • Hero: a subtle GHANA → RMB → CHINA route strip
     • What We Do: four compact visual service tiles (replaces the text-heavy
       two-panel layout while keeping the same heading + "who we serve" info)
     • Why ELITE RMB / How It Works: consistent duotone icon tiles + a
       subtle connecting line between process steps

   Palette uses the existing brand tokens (navy/blue/green + soft surfaces).
   Dark-mode variants are included.
   ========================================================================= */

/* ---------------------------------------------------------------------------
   1. HERO — Ghana → RMB → China route strip (compact, not crowded)
   --------------------------------------------------------------------------- */
.page-landing .elite-hero-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-top: 1.15rem;
}
.page-landing .elite-hero-route .elite-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .32rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .94);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.page-landing .elite-hero-route .elite-channel-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .24);
    overflow: hidden;
    flex-shrink: 0;
}
.page-landing .elite-hero-route .elite-channel-flag svg {
    display: block;
    width: 20px;
    height: 14px;
}
.page-landing .elite-hero-route .elite-channel-sep {
    color: #2FE58A;
}
.page-landing .elite-hero-route .elite-channel-sep i {
    font-size: .8rem;
}

/* ---------------------------------------------------------------------------
   2. WHAT WE DO — four visual service tiles
   --------------------------------------------------------------------------- */
.page-landing .elite-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 1024px) {
    .page-landing .elite-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .page-landing .elite-service-grid { grid-template-columns: 1fr; }
}

.page-landing .elite-service {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid #D6E3F8;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.page-landing .elite-service:hover {
    border-color: #B9C9E8;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}
.page-landing .elite-service__art {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    flex-shrink: 0;
    background: #EAF1FF;
    color: #1758D1;
    font-size: 1.35rem;
}
.page-landing .elite-service--green .elite-service__art {
    background: #EAF9F0;
    color: #0F7A3D;
}
.page-landing .elite-service h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1A2A5E;
    margin: .8rem 0 .35rem;
}
.page-landing .elite-service p {
    font-size: .87rem;
    line-height: 1.55;
    color: #4B5563;
    margin: 0;
}
.page-landing .elite-service__tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .9rem;
    color: #1758D1;
    font-size: .82rem;
    font-weight: 600;
}
.page-landing .elite-service__tag i { font-size: .7rem; }

/* Who we serve — compact chips under the service tiles */
.page-landing .elite-who {
    margin-top: 2.1rem;
}
.page-landing .elite-who .elite-who__label {
    font-size: .84rem;
    font-weight: 700;
    color: #5B6B85;
    margin: 0 .4rem 0 0;
    white-space: nowrap;
}
.page-landing .elite-who .elite-who__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
}
.page-landing .elite-who .elite-who__chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .85rem;
    border-radius: 999px;
    background: #F5F9FF;
    border: 1px solid #D6E3F8;
    color: #3A4C6B;
    font-size: .84rem;
    font-weight: 600;
}
.page-landing .elite-who .elite-who__chip i { color: #1FAE57; font-size: .72rem; }

/* ---------------------------------------------------------------------------
   3. WHY ELITE RMB — consistent duotone icon tiles
   --------------------------------------------------------------------------- */
.page-landing .swift-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EAF1FF;
    color: #1758D1;
    font-size: 1.15rem;
}
.page-landing .elite-feature--green .swift-feature-icon {
    background: #EAF9F0;
    color: #0F7A3D;
}

/* ---------------------------------------------------------------------------
   4. HOW IT WORKS — icon tiles + subtle connecting line (desktop)
   --------------------------------------------------------------------------- */
.page-landing .elite-step { border-left: 0; }
.page-landing .elite-step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 1.4rem;
    bottom: 1.1rem;
    left: -1px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #1758D1, #1FAE57);
    opacity: .32;
}
.page-landing .elite-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #EAF1FF;
    color: #1758D1;
    font-size: 1.15rem;
    margin-bottom: .55rem;
}
.page-landing .elite-step:nth-child(even) .elite-step__icon {
    background: #EAF9F0;
    color: #0F7A3D;
}
.page-landing .elite-step__num {
    font-size: .95rem;
    color: #5B6B85;
    margin: 0 0 .55rem;
}

/* ---------------------------------------------------------------------------
   DARK MODE
   --------------------------------------------------------------------------- */
html[data-theme="dark"] .page-landing .elite-service {
    background: #172335;
    border-color: #26364a;
}
html[data-theme="dark"] .page-landing .elite-service h3,
html[data-theme="dark"] .page-landing .elite-step__title { color: #f3f7fc; }
html[data-theme="dark"] .page-landing .elite-service p,
html[data-theme="dark"] .page-landing .elite-service__tag,
html[data-theme="dark"] .page-landing .elite-who__label { color: #c3cfdb; }
html[data-theme="dark"] .page-landing .elite-service--green .elite-service__art,
html[data-theme="dark"] .page-landing .elite-feature--green .swift-feature-icon,
html[data-theme="dark"] .page-landing .elite-step:nth-child(even) .elite-step__icon { background: #12291f; color: #6ee7a8; }
html[data-theme="dark"] .page-landing .elite-service .elite-service__art,
html[data-theme="dark"] .page-landing .swift-feature-icon,
html[data-theme="dark"] .page-landing .elite-step__icon { background: #14263f; color: #8fbfe8; }
html[data-theme="dark"] .page-landing .elite-who__chip {
    background: #172335;
    border-color: #26364a;
    color: #c3cfdb;
}

/* ---------------------------------------------------------------------------
   Authenticated dashboard — compact "Create Transaction" CTA in the header
   --------------------------------------------------------------------------- */
.page-client .dash-summary__rates-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
    font-size: .82rem;
    font-weight: 700;
    color: #1758D1;
    text-decoration: none;
}
.page-client .dash-summary__rates-cta:hover { color: #0F47B0; }
html[data-theme="dark"] .page-client .dash-summary__rates-cta { color: #8fbfe8; }
html[data-theme="dark"] .page-client .dash-summary__rates-cta:hover { color: #c6dcff; }