/* marketplace.css */

.pg-marketplace {
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-family: var(--sans);
    color: var(--ink2);
    line-height: 1.6;
}

.pg-marketplace a { text-decoration: none; color: inherit; }
.pg-marketplace img { max-width: 100%; display: block; }

.pg-marketplace .mp-mx { max-width: 1180px; margin: 0 auto; }
.pg-marketplace .mp-mx--center { text-align: center; }

/* ── Eyebrow / section labels ─────────────────────────────────────────────── */

.mp-sp {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--slate);
    max-width: 700px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.mp-hero {
    position: relative;
    padding: 80px 24px 72px;
    background: var(--white);
    overflow: hidden;
    animation: marketplaceGlow 8s ease-in-out infinite;
}

.mp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(var(--blue-rgb),.1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.mp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-conic-gradient(rgba(var(--blue-rgb),0.05) 0% 25%, transparent 0% 50%),
        radial-gradient(circle at 1px 1px, rgba(var(--blue-rgb),0.1) 2px, transparent 0px);
    background-size: 80px 80px, 40px 40px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
    animation: puzzleAssemble 12s ease-in-out infinite;
}

@keyframes puzzleAssemble {
    0%    { background-size: 100px 100px, 50px 50px; opacity: 0.4; }
    40%,60%{ background-size: 60px 60px, 30px 30px; background-position: 30px 30px, -15px -15px; opacity: 1; }
    100%  { background-size: 100px 100px, 50px 50px; opacity: 0.4; }
}

@keyframes marketplaceGlow {
    0%, 100% { background-color: var(--white); }
    50%       { background-color: var(--snow); }
}

.mp-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.mp-hero-text { max-width: 560px; text-align: start; }
.mp-hero-text .mp-eye { text-align: start; }

.mp-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.mp-hero h1 em { color: var(--blue); font-style: normal; }

.mp-hero-sub {
    font-size: 17px;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 26px;
}

.mp-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.mp-chk { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink2); }
.mp-chk i { color: var(--blue); font-size: 13px; font-weight: 700; flex-shrink: 0; }

.mp-hero-actions { display: flex; gap: 14px; }

.mp-hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

/* ── App-store hero visual (distinct from the integrations orb) ───────────── */
.mp-store {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(160deg, var(--snow) 0%, var(--blue-l) 100%);
    border: 2px solid var(--blue-xl);
    border-radius: var(--r-xl);
    padding: 18px;
    box-shadow: 0 24px 60px -30px rgba(var(--blue-rgb), .45);
}
.mp-store-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 6px 14px;
}
.mp-store-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); }
.mp-store-dot:nth-child(1) { background: var(--red); }
.mp-store-dot:nth-child(2) { background: var(--amber); }
.mp-store-dot:nth-child(3) { background: var(--green); }
.mp-store-title {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}
.mp-store-title i { color: var(--blue); }

/* ── Orb ──────────────────────────────────────────────────────────────────── */

@keyframes mni-spin         { 100% { transform: rotate(360deg); } }
@keyframes mni-spin-reverse { 100% { transform: rotate(-360deg); } }

/* ── Mobile Apps Section ──────────────────────────────────────────────────── */

.mp-mobile-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
    color: var(--slate);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mp-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--mist);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: mp-spin 0.7s linear infinite;
}
@keyframes mp-spin { 100% { transform: rotate(360deg); } }

/* ── BYOC Section ─────────────────────────────────────────────────────────── */

.mp-feat {
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 24px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.25s, box-shadow 0.25s !important;
}

.mp-feat .ef-icon {
    width: 36px;
    height: 36px;
    color: var(--blue);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-feat .ef-icon svg { width: 100%; height: 100%; }
.mp-feat h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.mp-feat p  { font-size: 16px; font-weight: 600; color: var(--slate); line-height: 1.6; }

/* ── App Directory ────────────────────────────────────────────────────────── */
.mp-grid-sec { padding: var(--sec-y) 24px; background: var(--white); }

.mp-directory {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.mp-dir-category h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--mist);
    padding-bottom: 10px;
}

.mp-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mp-app-card {
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.25s, box-shadow 0.25s !important;
}

.mp-app-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--mist);
}

.mp-app-card .app-icon { font-size: 28px; margin-bottom: 12px; height: 40px; display: flex; align-items: center; }
/* featured Solutions cards (linked, FA icon in a tinted tile) */
a.mp-app-card--sol { text-decoration: none; color: inherit; }
.mp-app-card--sol .app-icon { height: auto; }
.mp-app-card--sol .app-icon i { font-size: 22px; color: var(--blue); background: var(--blue-l); inline-size: 46px; block-size: 46px; border-radius: var(--r-m); display: inline-flex; align-items: center; justify-content: center; }
.mp-app-card--sol:first-child .app-icon i { color: var(--green); background: var(--green-l); }
.mp-app-card--sol:hover { border-color: var(--blue); }
.mp-app-card h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mp-app-card p  { font-size: 16px; font-weight: 600; color: var(--slate); line-height: 1.5; margin: 0; }

/* Customization pointer — uses the standard section identity (mp-eye / mp-sh / mp-sp) */
.mp-cz { padding: var(--sec-y) 24px; }

/* ── Mobile Store card (OS selector) ── */

.mob-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
/* download-source switch (Official store ⟷ Direct download) — shows only when both exist */
.mob-switch { width: fit-content; margin: 0 auto 12px; display: flex; gap: 3px; background: var(--blue-l); border: 1px solid var(--mist); border-radius: 12px; padding: 3px; }
.mob-sw {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 700; color: var(--slate);
    background: transparent; border: 0; border-radius: 9px;
    padding: 7px 13px; cursor: pointer; white-space: nowrap;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.mob-sw:hover { color: var(--ink2); }
.mob-sw.is-active { background: var(--white); color: var(--blue); box-shadow: 0 2px 6px rgba(16, 42, 90, .10); }
.mob-tab {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--ink2);
    background: var(--snow); border: 2px solid var(--mist); border-radius: var(--r-xl);
    padding: 9px 16px; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mob-tab:hover { border-color: var(--blue-xl); }
.mob-tab.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.mob-apps { display: grid; gap: 10px; }
.mob-app {
    display: flex; align-items: center; gap: 14px;
    background: var(--snow); border: 2px solid var(--mist); border-radius: var(--r-xl);
    padding: 14px 16px; text-align: start;
}
/* the whole app card is the button (link) */
a.mob-app { text-decoration: none; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.mob-app:hover { border-color: var(--blue-xl); box-shadow: 0 12px 26px -16px rgba(var(--blue-rgb), .4); transform: translateY(-1px); }
.mob-app-go { flex: 0 0 auto; color: var(--blue); font-size: 18px; }
.mob-app--soon { opacity: .9; }
.mob-app-ic {
    width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--blue-l); color: var(--blue); font-size: 20px;
}
.mob-app-tx { flex: 1 1 auto; min-width: 0; }
.mob-app-tx .mob-app-nm { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--ink); }
.mob-app-tx p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--slate); }

.mob-soon {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    font-size: 12.5px; font-weight: 700; color: var(--gold-h); background: var(--amber-l);
    border-radius: 999px; padding: 6px 12px;
}
.mob-empty { text-align: center; color: var(--slate); padding: 22px; font-size: 14px; }
@media (max-width: 600px) {
    .mob-app { flex-wrap: wrap; }
    .mob-get, .mob-soon { width: 100%; justify-content: center; }
}

/* Mobile Store rendered inside the hero window (.mp-store) — keep it compact */
.mp-store .mob-tabs { margin-bottom: 12px; }
.mp-store .mob-tab { padding: 8px 13px; font-size: 13px; }
.mp-store .mob-apps { max-height: 296px; overflow-y: auto; }
.mp-store .mob-app { padding: 12px; gap: 11px; }
.mp-store .mob-app-ic { width: 40px; height: 40px; font-size: 18px; }
.mp-store .mob-app-tx .mob-app-nm { font-size: 14px; }
.mp-store .mob-app-tx p { font-size: 12px; }

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.mp-feat.hm-vis,
.mp-app-card.hm-vis {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .mp-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .mp-hero-text { margin: 0 auto; }
    
    .mp-app-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .mp-app-grid { grid-template-columns: 1fr; }

}