/* The apps page (apps.php) — logical properties, so the same file serves right-to-left pages */
.ap-page { max-width: 1180px; }
.ap-hero { margin: 18px 0 40px; max-width: 780px; }
.ap-kicker { font: 700 12px/1 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--t-accent); margin: 0 0 14px; }
.ap-h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; color: var(--t-text); font-weight: 700; }
.ap-lead { font-size: 1.1rem; line-height: 1.6; color: var(--t-text-secondary); margin: 0 0 22px; }
.ap-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(var(--t-accent-rgb), .08); color: var(--t-text); text-decoration: none; font-size: 14px; font-weight: 600; transition: background .15s; }
.ap-jump a:hover { background: rgba(var(--t-accent-rgb), .16); }
.ap-jump svg { width: 16px; height: 16px; color: var(--t-accent); }

/* a section per app: the words on top, the pictures under them, no frames */
.ap-sec { padding: 56px 0; border-top: 1px solid var(--t-border); scroll-margin-top: 80px; }
.ap-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 48px; }
.ap-k { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-text-dim, var(--t-text-secondary)); }
.ap-k svg { width: 16px; height: 16px; color: var(--t-accent); }
.ap-pill { padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 10.5px; letter-spacing: .04em; background: rgba(var(--t-accent-rgb), .14); color: var(--t-accent); }
.ap-pill.is-live { background: #16a34a; color: #fff; }
.ap-pill.is-review { background: #d97706; color: #fff; }
.ap-sec h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 14px; color: var(--t-text); }
.ap-p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--t-text-secondary); }
.ap-feats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.ap-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--t-text); }
.ap-feats svg { width: 20px; height: 20px; flex: none; margin-top: 1px; padding: 4px; border-radius: 50%; box-sizing: border-box; background: rgba(var(--t-accent-rgb), .14); color: var(--t-accent); }

.ap-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ap-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--t-text); color: var(--t-bg); text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); transition: transform .2s cubic-bezier(.2, .8, .3, 1.3), box-shadow .2s; }
.ap-btn svg, .ap-btn img { width: 22px; height: 22px; flex: none; }
a.ap-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); }
.ap-btn.is-off { opacity: .5; cursor: default; box-shadow: none; }
.ap-btn.is-ghost { background: transparent; color: var(--t-text); box-shadow: inset 0 0 0 1.5px var(--t-border); }
a.ap-btn.is-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--t-text); }
.ap-arr { opacity: .6; }
.ap-req { font-size: 13px; color: var(--t-text-secondary); }
.ap-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; background: rgba(217, 119, 6, .1); color: var(--t-text); border-inline-start: 3px solid #d97706; }

/* the picture of the app: a click opens the gallery */
.ap-top { align-items: center; margin-bottom: 0; }
.ap-cover { min-width: 0; display: flex; justify-content: center; }
.ap-cover-btn { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
.ap-cover-btn { width: 100%; }
.ap-cover-pic { position: relative; display: block; }
/* the pictures carry their own windows and shadows, so no frame here */
.ap-cover-pic img { display: block; width: 100%; height: auto; transition: transform .35s cubic-bezier(.2, .8, .3, 1); }
.ap-cover-btn:hover .ap-cover-pic img { transform: translateY(-4px) scale(1.01); }
.ap-cover-btn:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 8px; border-radius: 16px; }
.ap-more { display: flex; width: fit-content; margin: 10px auto 0; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: rgba(var(--t-accent-rgb), .1); color: var(--t-text); font: 600 13px/1 'Inter', sans-serif; transition: background .15s; }
.ap-cover-btn:hover .ap-more { background: rgba(var(--t-accent-rgb), .18); }
.ap-more svg { color: var(--t-accent); width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-caps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }

/* the gallery: the picture large, its words beside it */
.ap-lb { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(18, 14, 10, .92); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; }
.ap-lb[hidden] { display: none; }
.ap-lb.is-open { opacity: 1; }
.ap-lb-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; width: min(1400px, 100vw - 160px); max-height: 90vh; }
.ap-lb-fig { margin: 0; display: grid; place-items: center; min-width: 0; min-height: 0; }
.ap-lb-img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; opacity: 0; transform: scale(.985); transition: opacity .25s, transform .25s; }
.ap-lb-img.is-in { opacity: 1; transform: none; }
.ap-lb-side { color: #f4ecd8; }
.ap-lb-k { margin: 0 0 12px; font: 700 11.5px/1.2 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #c9a77c; }
.ap-lb-t { margin: 0 0 12px; font: 700 28px/1.15 'Space Grotesk', sans-serif; letter-spacing: -.01em; color: #fff; }
.ap-lb-d { margin: 0 0 26px; font-size: 15.5px; line-height: 1.65; color: rgba(244, 236, 216, .78); }
.ap-lb-th { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.ap-lb-th button { position: static; width: 54px; height: 38px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, .08); cursor: pointer; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .15s, outline-color .15s; }
.ap-lb-th button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ap-lb-th button:hover { opacity: .8; }
.ap-lb-th button[aria-current="true"] { opacity: 1; outline-color: #c9a77c; }
.ap-lb .ap-lb-n { margin: 0; direction: ltr; unicode-bidi: isolate; text-align: start; font: 600 12.5px/1 'Inter', sans-serif; letter-spacing: .08em; color: rgba(244, 236, 216, .55); }
.ap-lb-x, .ap-lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s; }
.ap-lb-x:hover, .ap-lb-nav:hover, .ap-lb-x:focus-visible, .ap-lb-nav:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.ap-lb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ap-lb-x { top: 20px; inset-inline-end: 20px; }
.ap-lb-prev { top: calc(50% - 24px); inset-inline-start: 20px; }
.ap-lb-next { top: calc(50% - 24px); inset-inline-end: 20px; }
[dir="rtl"] .ap-lb-nav svg { transform: scaleX(-1); }

/* Phone */
.ap-ph { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.ap-ph-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--t-accent-rgb), .12); color: var(--t-accent); }
.ap-ph-ic svg { width: 28px; height: 28px; }
.ap-ph .ap-p { margin: 0; max-width: 680px; }

/* the widget for other websites: not an app, a band at the end of the page */
.ap-wg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; margin: 8px 0 56px; padding: 40px 44px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--t-accent-rgb), .13), rgba(var(--t-accent-rgb), .04)); scroll-margin-top: 80px; }
.ap-wg h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 12px; color: var(--t-text); }
.ap-wg .ap-p { margin-bottom: 18px; }
.ap-wg-f { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.ap-wg-f li { padding: 6px 12px; border-radius: 999px; background: var(--t-card, rgba(255, 255, 255, .6)); font-size: 13px; font-weight: 600; color: var(--t-text); }
.ap-wg-demo { min-width: 0; min-height: 330px; }
.ap-wg-demo .ptl-vaktija > a { display: block; margin-top: 6px; font-size: 12px; text-align: center; color: var(--t-text-secondary); }

@media (max-width: 900px) {
    .ap-wg { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; }
    .ap-wg-demo { max-width: 360px; width: 100%; margin: 0 auto; }
    .ap-top { grid-template-columns: 1fr; gap: 26px; }
    .ap-sec { padding: 40px 0; }
    .ap-lb-in { grid-template-columns: 1fr; gap: 18px; width: calc(100vw - 32px); max-height: none; }
    .ap-lb-img { max-height: 60vh; }
    .ap-lb-side { text-align: center; }
    .ap-lb-t { font-size: 22px; }
    .ap-lb-th { justify-content: center; }
    .ap-lb-nav { top: auto; bottom: 18px; }
}
@media (max-width: 520px) {
    .ap-ph { grid-template-columns: 1fr; }
    .ap-btn { flex: 1 1 100%; justify-content: center; }
    .ap-lb-d { margin-bottom: 16px; }
}
