/* RR 27 Nov 2026 - Play Store style Home Index */
:root {
    --ps-bg: #f5f7f6;
    --ps-surface: #ffffff;
    --ps-text: #1c2733;
    --ps-muted: #5f6b77;
    --ps-line: #e3e8e6;
    --ps-green: #0a7c3f;
    --ps-green-dark: #075f30;
    --ps-green-tint: #e6f3eb;
    --ps-search: #eef2f0;
    --ps-radius: 16px;
    --ps-shadow: 0 1px 2px rgba(16, 40, 28, 0.06), 0 4px 16px rgba(16, 40, 28, 0.06);
}

body { background: var(--ps-bg); }

.ps {
    font-family: 'Inter', 'Open Sans', Arial, sans-serif;
    color: var(--ps-text);
    -webkit-font-smoothing: antialiased;
}

.ps *, .ps *::before, .ps *::after { box-sizing: border-box; }

.ps h1, .ps h2, .ps h3, .ps p { font-family: inherit; margin: 0; }
.ps a { text-decoration: none; }

.ps-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* top bar */
.ps-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--ps-line);
    backdrop-filter: saturate(1.4) blur(8px);
}

.ps-bar-in {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

.ps-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    color: var(--ps-text);
}

.ps-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #12a05a, var(--ps-green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.ps-mark img { max-width: 100%; max-height: 100%; }

.ps-brand-text b {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--ps-text);
    line-height: 1.2;
}

.ps-brand-text small {
    display: block;
    font-size: 12px;
    color: var(--ps-muted);
}

.ps-search {
    flex: 1;
    max-width: 580px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 8px 0 18px;
    background: var(--ps-search);
    border: 1px solid transparent;
    border-radius: 24px;
    transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ps-search:focus-within {
    background: #fff;
    border-color: var(--ps-line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ps-search > .fa { color: var(--ps-muted); font-size: 16px; }

.ps .ps-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ps-text);
    padding: 0;
    box-shadow: none;
}

.ps-search input::-webkit-search-cancel-button { display: none; }

.ps .ps-clear {
    display: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ps-muted);
    cursor: pointer;
    font-size: 15px;
}

.ps .ps-clear:hover { background: var(--ps-line); }
.ps-search.has-text .ps-clear { display: block; }

/* hero */
.ps-main { padding-top: 24px; padding-bottom: 40px; }

.ps-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 44px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 70% 110%, rgba(255, 255, 255, 0.10) 0, rgba(255, 255, 255, 0) 40%),
        linear-gradient(120deg, #075f30 0%, #0a7c3f 45%, #13a35c 100%);
}

.ps-hero-text { flex: 1; position: relative; z-index: 1; }

.ps-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.ps .ps-hero h1 {
    color: #fff;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.8px;
    max-width: 560px;
}

.ps .ps-hero-text > p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.55;
    max-width: 520px;
    margin-top: 14px;
}

.ps-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ps-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 10px 16px;
    min-width: 120px;
}

.ps-stat b { display: block; font-size: 20px; font-weight: 800; }
.ps-stat span { font-size: 12.5px; color: rgba(255, 255, 255, 0.82); }

.ps-collage {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 84px);
    gap: 16px;
    transform: rotate(-8deg);
    margin-right: 8px;
}

.ps-collage .ps-ico {
    --s: 84px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.ps-collage .ps-ico:nth-child(3n+2) { transform: translateY(22px); }

/* section head */
.ps-section { margin-top: 36px; }

.ps-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ps .ps-head h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--ps-text);
}

.ps-head p, .ps-count {
    font-size: 13.5px;
    color: var(--ps-muted);
    margin-top: 2px;
}

.ps-arrows { display: flex; gap: 8px; }

.ps .ps-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ps-line);
    background: #fff;
    color: var(--ps-text);
    cursor: pointer;
    transition: background 0.15s;
}

.ps .ps-arrow:hover { background: var(--ps-green-tint); }

/* app icon */
.ps-ico {
    --s: 64px;
    width: var(--s);
    height: var(--s);
    flex: 0 0 var(--s);
    border-radius: 22%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
    position: relative;
}

.ps-ico::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.ps-ico img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    transition: opacity 0.15s;
}

.ps-ico.ps-plain img { width: 100%; height: 100%; object-fit: cover; }
.ps-ico.ps-wait img { opacity: 0; }

/* generated icon */
.ps-ico.ps-gen {
    background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.16) 100%);
    color: #fff;
}

.ps-ico.ps-gen .fa {
    font-size: calc(var(--s) * 0.44);
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* top rail */
.ps-rail-wrap { position: relative; }

.ps-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.ps-rail::-webkit-scrollbar { display: none; }

.ps-tile {
    flex: 0 0 136px;
    scroll-snap-align: start;
    padding: 10px;
    border-radius: var(--ps-radius);
    color: var(--ps-text);
    transition: background 0.15s;
}

.ps-tile:hover { background: #fff; box-shadow: var(--ps-shadow); color: var(--ps-text); }

.ps-tile .ps-ico { --s: 116px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }

.ps-tile-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.ps-tile-meta {
    font-size: 12.5px;
    color: var(--ps-muted);
    margin-top: 4px;
}

.ps-rank {
    display: inline-block;
    min-width: 18px;
    font-weight: 700;
    color: var(--ps-green);
    margin-right: 4px;
}

/* all apps grid */
.ps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.ps-app {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px 14px;
    background: var(--ps-surface);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    padding: 14px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.ps-app:hover { box-shadow: var(--ps-shadow); border-color: #d4ddd8; }

.ps-info { min-width: 0; }

.ps .ps-app h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps .ps-app h3 a { color: var(--ps-text); }
.ps .ps-app h3 a:hover { color: var(--ps-green); }

.ps-dev {
    font-size: 12.5px;
    color: var(--ps-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-dl {
    font-size: 12.5px;
    color: var(--ps-muted);
    margin-top: 4px;
}

.ps-dl .fa { color: var(--ps-green); margin-right: 3px; }
.ps-dl b { color: var(--ps-text); font-weight: 600; }

.ps .ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    border-radius: 18px;
    background: var(--ps-green);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
}

.ps .ps-btn:hover, .ps .ps-btn:focus { background: var(--ps-green-dark); color: #fff; }

.ps-cta { display: flex; flex-direction: column; gap: 6px; }

.ps-extra {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px dashed var(--ps-line);
}

.ps .ps-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 15px;
    border: 1px solid var(--ps-line);
    background: #fff;
    color: var(--ps-text);
    font-size: 12.5px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.ps .ps-chip .fa { color: var(--ps-green); }
.ps .ps-chip:hover { background: var(--ps-green-tint); border-color: #bfdccb; color: var(--ps-green-dark); }

.ps-off { font-size: 12.5px; color: var(--ps-muted); }

.ps-empty {
    display: none;
    text-align: center;
    padding: 60px 16px;
    color: var(--ps-muted);
}

.ps-empty .fa {
    display: block;
    font-size: 40px;
    color: #c3cec8;
    margin-bottom: 12px;
}

.ps-empty b { display: block; color: var(--ps-text); font-size: 16px; margin-bottom: 4px; }

/* search mode */
.ps.is-search .ps-hero,
.ps.is-search #psTop { display: none; }

/* footer */
.ps-foot {
    background: #fff;
    border-top: 1px solid var(--ps-line);
    padding: 28px 0 22px;
}

.ps-foot-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.ps-foot-brand { display: flex; align-items: center; gap: 12px; }
.ps-foot-brand .ps-mark { width: 38px; height: 38px; }
.ps-foot-brand b { display: block; font-size: 14.5px; }
.ps-foot-brand span { font-size: 12.5px; color: var(--ps-muted); }

.ps-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ps-muted); }
.ps-trust .fa { color: var(--ps-green); margin-right: 6px; }

.ps .ps-copy {
    width: 100%;
    font-size: 12px;
    color: var(--ps-muted);
    border-top: 1px solid var(--ps-line);
    padding-top: 16px;
}

/* responsive */
@media (max-width: 991px) {
    .ps-hero { padding: 32px; }
    .ps .ps-hero h1 { font-size: 30px; }
    .ps-collage { grid-template-columns: repeat(2, 72px); }
    .ps-collage .ps-ico { --s: 72px; }
    .ps-collage .ps-ico:nth-child(n+5) { display: none; }
    .ps-collage .ps-ico:nth-child(3n+2) { transform: none; }
    .ps-collage .ps-ico:nth-child(2n) { transform: translateY(20px); }
}

@media (max-width: 767px) {
    .ps-wrap { padding: 0 16px; }
    .ps-bar-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
    .ps-search { flex-basis: 100%; max-width: none; height: 44px; }
    .ps-main { padding-top: 16px; }
    .ps-hero { padding: 24px 20px; border-radius: 20px; }
    .ps-collage { display: none; }
    .ps .ps-hero h1 { font-size: 25px; letter-spacing: -0.4px; }
    .ps .ps-hero-text > p { font-size: 14.5px; }
    .ps-eyebrow { margin-bottom: 14px; }
    .ps-stats { gap: 8px; margin-top: 20px; }
    .ps-stat { flex: 1; min-width: 0; padding: 8px 10px; }
    .ps-stat b { font-size: 17px; }
    .ps-stat-os { display: none; }
    .ps-stat span { font-size: 11.5px; }
    .ps-section { margin-top: 28px; }
    .ps .ps-head h2 { font-size: 19px; }
    .ps-arrows { display: none; }
    .ps-tile { flex-basis: 108px; padding: 6px; }
    .ps-tile .ps-ico { --s: 96px; }
    .ps-grid { grid-template-columns: 1fr; gap: 10px; }
    .ps-app { padding: 12px; gap: 4px 12px; }
    .ps-app .ps-ico { --s: 56px; }
    .ps .ps-btn { height: 34px; padding: 0 14px; font-size: 13px; }
    .ps-foot-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .ps .ps-btn span { display: none; }
    .ps .ps-btn { width: 40px; padding: 0; }
}
/* RR 27 Nov 2026 End */
