/* /apps — app library page (added Nov 2026).
   Uses the shared section / badge / title classes from index.css;
   only what is new on this page lives here. .app-logo is in index.css. */

.apps-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* HERO */
.apps-hero {
    padding: 56px 0 72px;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(65, 105, 225, 0.10), transparent 70%),
        linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
    border-bottom: 1px solid #eef1f7;
}

.apps-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
}

.apps-crumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.apps-crumb a {
    color: #4169E1;
    text-decoration: none;
}

.apps-hero-title {
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 16px 0 16px;
    text-wrap: balance;
}

.apps-hero-sub {
    font-size: 17px;
    line-height: 1.65;
    color: #475569;
    max-width: 540px;
    margin: 0 0 26px;
}

.apps-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #d7ddec;
    border-radius: 14px;
    padding: 0 18px;
    height: 58px;
    max-width: 520px;
    color: #64748b;
    box-shadow: 0 12px 34px -18px rgba(65, 105, 225, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.apps-search:focus-within {
    border-color: #4169E1;
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.14);
}

.apps-search svg {
    flex-shrink: 0;
}

.apps-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    color: #0f172a;
    height: 100%;
}

.apps-hero-points {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.apps-hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.apps-hero-points li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Logo wall */
.apps-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 28px;
    box-shadow: 0 30px 70px -40px rgba(30, 58, 138, 0.45);
}

.apps-wall-logo {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    border-radius: 18px;
    background: #f8faff;
    border-color: #eaeef8;
}

.apps-wall-logo img {
    width: 42%;
    height: 42%;
}

/* LIBRARY */
.apps-library {
    padding: 72px 0 88px;
    background: #fff;
}

.apps-lib-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.apps-side {
    position: sticky;
    top: 110px;
}

.apps-side-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 12px 12px;
}

.apps-cats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apps-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.apps-cat span {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 2px 9px;
    min-width: 28px;
    text-align: center;
}

.apps-cat:hover {
    background: #f5f8ff;
    color: #4169E1;
}

.apps-cat.active {
    background: #4169E1;
    color: #fff;
    font-weight: 600;
}

.apps-cat.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.apps-cat:focus-visible {
    outline: 2px solid #4169E1;
    outline-offset: 2px;
}

.apps-side-help {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: #f5f8ff;
    border: 1px solid #e3eaff;
}

.apps-side-help strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 6px;
}

.apps-side-help p {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 10px;
}

.apps-side-help a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #4169E1;
    text-decoration: none;
}

.apps-main-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f7;
}

.apps-main-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.apps-main-count {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
    border-color: rgba(65, 105, 225, 0.45);
    box-shadow: 0 18px 40px -22px rgba(65, 105, 225, 0.45);
    transform: translateY(-3px);
}

.app-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #f8faff;
}

.app-card-logo.app-logo-mark {
    background: #0f172a;
    font-size: 16px;
}

.app-card-logo img {
    width: 26px;
    height: 26px;
}

.app-card-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.app-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.app-card-cat {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.app-card-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    flex: 1;
}

.app-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed #e5e9f2;
}

.app-card-os {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #0f7a55;
    background: rgba(16, 185, 129, 0.10);
    border-radius: 6px;
    padding: 4px 8px;
    white-space: nowrap;
}

.app-card-os-win {
    color: #2f55c8;
    background: rgba(65, 105, 225, 0.10);
}

.app-card-go {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #4169E1;
    white-space: nowrap;
}

.app-card-go svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.app-card:hover .app-card-go svg {
    transform: translateX(3px);
}

.apps-empty {
    margin: 28px 0 0;
    padding: 28px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    background: #f8faff;
    border: 1px dashed #d7ddec;
    border-radius: 16px;
}

.apps-empty a {
    color: #4169E1;
    font-weight: 600;
}

/* FEATURED */
.apps-featured {
    padding: 80px 0;
    background: #f8faff;
}

.apps-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.apps-feat-card {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 26px 24px 24px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.apps-feat-card:hover {
    border-color: rgba(65, 105, 225, 0.3);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.09);
    transform: translateY(-3px);
    background: #fff;
}

.apps-feat-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.apps-feat-logo img {
    width: 28px;
    height: 28px;
}

.apps-feat-logo.app-logo-mark {
    font-size: 17px;
}

.apps-feat-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.apps-feat-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 18px;
}

.apps-feat-price {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.apps-feat-price strong {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

/* STEPS */
.apps-steps {
    padding: 80px 0;
    background: #fff;
}

.apps-steps-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.apps-step {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 28px 24px;
}

.apps-step-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4169E1 0%, #3154c7 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.apps-step h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.apps-step p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
}


/* RESPONSIVE */
@media (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apps-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .apps-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .apps-wall {
        grid-template-columns: repeat(8, 1fr);
        gap: 10px;
        padding: 14px;
        border-radius: 20px;
    }

    .apps-wall-logo {
        border-radius: 12px;
    }

    .apps-lib-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .apps-side {
        position: static;
        min-width: 0;
    }

    .apps-side-title,
    .apps-side-help {
        display: none;
    }

    /* Categories become one swipeable row of chips */
    .apps-cats {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .apps-cats::-webkit-scrollbar {
        display: none;
    }

    .apps-cat {
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
        border: 1px solid #e5e9f2;
        border-radius: 50px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .apps-cat.active {
        border-color: #4169E1;
    }

    .apps-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .apps-hero {
        padding: 32px 0 44px;
    }

    .apps-hero-sub {
        font-size: 16px;
    }

    .apps-wall {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
        padding: 10px;
    }

    .apps-wall-logo {
        border-radius: 9px;
    }

    .apps-library {
        padding: 44px 0 56px;
    }

    .apps-main-title {
        font-size: 22px;
    }

    .apps-grid,
    .apps-featured-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .app-card {
        padding: 16px;
        gap: 12px;
    }

    .apps-featured,
    .apps-steps {
        padding: 56px 0;
    }
}

.app-card[hidden] {
    display: none;
}
