/* RE:RISE systems — apps section (/apps/, /apps/<slug>/).
   Loaded after the live styles.css and only adds components (prefix ap-). Tokens come from styles.css :root. */

:root { --ap-accent: var(--cyan); --ap-glow: rgba(57,200,255,.22); }
@supports (color: color-mix(in srgb, red, blue)) {
  .ap-app, .ap-big, .ap-card--app, .ap-game, .ap-tile { --ap-glow: color-mix(in srgb, var(--ap-accent) 22%, transparent); }
}

/* header: the live site has UA/EN <button>s; the static pages have 9 languages -> a compact dropdown with the same button look */
.ap-lang { position: relative; }
.ap-lang summary {
  min-width: 64px; min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; list-style: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.04); color: var(--text); font-weight: 700; font-size: 14px; user-select: none;
}
.ap-lang summary::-webkit-details-marker { display: none; }
.ap-lang summary svg { width: 12px; height: 12px; opacity: .7; transition: transform .18s; }
.ap-lang summary:hover, .ap-lang[open] summary { border-color: var(--line-strong); background: rgba(57,200,255,.12); }
.ap-lang[open] summary svg { transform: rotate(180deg); }
.ap-lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 300; min-width: 200px; margin: 0; padding: 6px; list-style: none; display: grid; gap: 2px;
  background: rgba(8,12,18,.98); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.ap-lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; color: var(--text); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: normal; white-space: nowrap; }
.header .menu a { white-space: nowrap; }
.ap-lang-menu a b { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ap-lang-menu a:hover, .ap-lang-menu a:focus-visible { background: rgba(255,255,255,.06); }
.ap-lang-menu a.active { background: rgba(57,200,255,.12); color: #fff; }
.ap-lang-menu a.active b { color: var(--cyan); }
.flag-pl { background: linear-gradient(#fff 0 50%, #dc143c 50%); }
.flag-de { background: linear-gradient(#000 0 33.4%, #dd0000 33.4% 66.7%, #ffce00 66.7%); }
.flag-fr { background: linear-gradient(90deg, #0055a4 0 33.4%, #fff 33.4% 66.7%, #ef4135 66.7%); }
.flag-it { background: linear-gradient(90deg, #009246 0 33.4%, #fff 33.4% 66.7%, #ce2b37 66.7%); }
.flag-es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag-sv { background: linear-gradient(90deg, transparent 31%, #fecc00 31% 45%, transparent 45%), linear-gradient(transparent 40%, #fecc00 40% 60%, transparent 60%), #006aa7; }
.flag-et { background: linear-gradient(#0072ce 0 33.4%, #000 33.4% 66.7%, #fff 66.7%); }
.ap-lang-menu .flag { flex: none; }
/* the live mobile header clips .nav (overflow: hidden); let the open menu show */
.header .nav:has(.ap-lang[open]) { overflow: visible; }
@media (max-width: 640px) {
  .ap-lang summary { min-width: 0; min-height: 32px; padding: 0 8px; font-size: 13px; gap: 6px; }
  .ap-lang-menu { min-width: 190px; }
}

.ap { overflow-x: clip; }
.ap a { transition: color .18s, border-color .18s, background .18s, transform .18s; }

/* ---------- shared bits ---------- */
.ap-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ap-crumbs a:hover { color: #fff; }
.ap-crumbs i { font-style: normal; color: rgba(255,255,255,.28); }
.ap-crumbs [aria-current] { color: var(--cyan); }

.ap-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: var(--text); }
.ap-kicker b { color: var(--cyan); font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.ap-kicker b::after { content: ""; display: inline-block; width: 26px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--line-strong); }
.ap-head { margin-bottom: 34px; max-width: 760px; }
.ap-head--row { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ap-h2 { margin: 14px 0 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; font-weight: 800; }
.ap-lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; }

.ap-section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.ap-features { padding: 84px 0; }
.ap-section--last { border-bottom: 0; }

.ap-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ap-link svg { width: 16px; height: 16px; transition: transform .18s; }
.ap-link:hover svg, a:hover > .ap-link svg, .ap-card--app:hover .ap-link svg, .ap-game:hover .ap-link svg { transform: translateX(3px); }

.ap-sq { flex: 0 0 auto; width: 8px; height: 8px; margin-top: .55em; border-radius: 1px; background: var(--cyan); box-shadow: 0 0 12px rgba(57,200,255,.8); }

.ap-status { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.035);
  color: #d6dee8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ap-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ap-status--live { border-color: rgba(123,216,143,.4); }
.ap-status--live i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.ap-actions .ap-status { min-height: 52px; padding: 0 18px; }

.ap-play { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px 0 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: #000; color: #fff; }
.ap-play:hover { border-color: rgba(255,255,255,.6); transform: translateY(-1px); }
.ap-play svg { width: 24px; height: 24px; }
.ap-play span { display: grid; line-height: 1.1; }
.ap-play small { font-size: 10px; letter-spacing: .08em; color: #d6dee8; }
.ap-play b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

.ap-id { display: flex; align-items: center; gap: 18px; }
.ap-icon { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 20px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 34px var(--ap-glow); }
.ap-id--sm .ap-icon { width: 60px; height: 60px; border-radius: 15px; }
.ap-name { margin: 4px 0 0; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.ap-id--sm .ap-name { font-size: 24px; }

.ap-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ap-list li { position: relative; padding-left: 20px; color: #d6dee8; font-size: 15px; line-height: 1.5; }
.ap-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 1px; background: var(--cyan); box-shadow: 0 0 8px rgba(57,200,255,.7); }

.ap-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(21,31,43,.88), rgba(11,16,23,.88)); }
.ap-card h3 { margin: 0 0 14px; font-size: 21px; line-height: 1.2; }
.ap-card p { margin: 0; color: var(--muted); }

/* ---------- phone ---------- */
.ap-phone { position: relative; width: min(318px, 74vw); padding: 7px; border-radius: 36px; background: #0c1118;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 34px 80px rgba(0,0,0,.58), 0 0 70px var(--ap-glow); }
.ap-screen { display: grid; aspect-ratio: var(--ratio, 720 / 1353); overflow: hidden; border-radius: 29px; background: #05080d; }
.ap-screen img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease; }
.ap-screen img.is-on { opacity: 1; }
.ap-screen video { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; background: #05080d; }
.ap-reel { position: absolute; left: 50%; bottom: -40px; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(5,7,10,.78); backdrop-filter: blur(10px); color: #fff; font: inherit;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.ap-reel:hover { border-color: var(--line-strong); }
.ap-reel-dot { width: 0; height: 0; border-left: 9px solid var(--cyan); border-top: 6px solid transparent; border-bottom: 6px solid transparent; filter: drop-shadow(0 0 6px var(--cyan)); }
.ap-phone.is-playing .ap-reel { display: none; }
.ap-phone:has(.ap-reel) { margin-bottom: 30px; }
.ap-phone--free { padding: 0; background: none; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 34px 80px rgba(0,0,0,.58), 0 0 70px var(--ap-glow); }
.ap-phone--free .ap-screen { border-radius: 22px; }

/* ---------- hero ---------- */
.ap-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, rgba(5,7,10,.97) 0%, rgba(5,7,10,.86) 46%, rgba(5,7,10,.5) 100%), url("../img/planet-hero.webp") 60% 78% / cover no-repeat; }
.ap-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 76% 52%, var(--ap-glow), transparent 34%); }
.ap-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; background: linear-gradient(180deg, transparent, rgba(5,7,10,.85)); }
.ap-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding: 52px 0 76px; min-height: 680px; }
.ap-hero-copy { min-width: 0; }
.ap-hero h1 { margin: 26px 0 16px; font-size: clamp(32px, 3.9vw, 52px); line-height: 1.08; font-weight: 800; max-width: 660px; letter-spacing: -.01em; }
.ap-hero-lead { max-width: 600px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.ap-actions .btn { min-height: 52px; padding: 0 22px; }
.ap-facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 600px; }
.ap-facts div { padding: 0 28px; border-left: 1px solid var(--line); }
.ap-facts div:first-child { padding-left: 0; border-left: 0; }
.ap-facts dt { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ap-facts dd { margin: 4px 0 0; color: #e6edf4; font-size: 14px; font-weight: 650; }

.ap-hero-visual { position: relative; display: grid; place-items: center; min-width: 0; padding: 20px 0; }
.ap-hero-visual .ap-phone { width: min(336px, 74vw); transform: rotate(-1.3deg); }
.ap-hint { margin: 14px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ap-orbit { position: absolute; left: 50%; top: 50%; width: min(560px, 120%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(57,200,255,.14); }
.ap-orbit::before, .ap-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.ap-orbit::before { inset: 13%; border: 1px dashed rgba(57,200,255,.16); animation: ap-spin 90s linear infinite; }
.ap-orbit::after { left: calc(50% - 4px); top: -4px; width: 8px; height: 8px; border-radius: 1px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); transform-origin: 4px calc(min(560px, 120vw) / 2 + 4px); }
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* ---------- audience ---------- */
.ap-audience { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ap-audience .ap-head { margin: 0; }
.ap-aud { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ap-aud li { display: flex; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); color: #e6edf4; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.ap-aud li:hover { border-color: var(--line-strong); background: rgba(57,200,255,.05); }

/* ---------- feature scenes ---------- */
.ap-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4vw, 56px); margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 78% 50%, var(--ap-glow), transparent 38%), linear-gradient(180deg, rgba(21,31,43,.72), rgba(8,12,17,.9)); }
.ap-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 41px 41px;
  -webkit-mask-image: radial-gradient(circle at 78% 50%, #000, transparent 46%); mask-image: radial-gradient(circle at 78% 50%, #000, transparent 46%); }
.ap-scene--flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: radial-gradient(circle at 22% 50%, var(--ap-glow), transparent 38%), linear-gradient(180deg, rgba(21,31,43,.72), rgba(8,12,17,.9)); }
.ap-scene--flip::before { -webkit-mask-image: radial-gradient(circle at 22% 50%, #000, transparent 46%); mask-image: radial-gradient(circle at 22% 50%, #000, transparent 46%); }
.ap-scene--flip .ap-scene-visual { order: -1; }
.ap-scene-visual { display: grid; place-items: center; min-width: 0; }
.ap-scene-visual .ap-phone { width: min(300px, 70vw); }
.ap-scene .ap-phone { transform: rotate(-1.4deg); }
.ap-scene--flip .ap-phone { transform: rotate(1.4deg); }
.ap-tabs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: none; }
.ap-tab { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; padding: 18px 20px 18px 16px; border: 1px solid transparent; border-left: 2px solid rgba(255,255,255,.1);
  border-radius: 0 8px 8px 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.ap-tab:hover { background: rgba(255,255,255,.03); }
.ap-tab.is-on { border-color: var(--line); border-left-color: var(--cyan); background: linear-gradient(90deg, rgba(57,200,255,.09), rgba(255,255,255,.02)); }
.ap-tab-n { padding-top: 3px; color: rgba(174,184,197,.7); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.ap-tab.is-on .ap-tab-n { color: var(--cyan); }
.ap-tab-t b { display: block; font-size: 19px; line-height: 1.3; font-weight: 750; }
.ap-tab-t span { display: block; margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ap-tab:not(.is-on) .ap-tab-t b { color: #d6dee8; }
.ap-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- details ---------- */
.ap-details { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ap-card--privacy { border-color: rgba(123,216,143,.28); background: radial-gradient(circle at 0 0, rgba(123,216,143,.10), transparent 50%), linear-gradient(180deg, rgba(21,31,43,.88), rgba(11,16,23,.88)); }
.ap-card--privacy p { color: #d6dee8; font-size: 15.5px; line-height: 1.65; }
.ap-card--privacy .ap-link { margin-top: 20px; color: var(--green); }
.ap-card-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border: 1px solid rgba(123,216,143,.35); border-radius: 8px; color: var(--green); }
.ap-card-ico svg { width: 24px; height: 24px; }
.ap-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chips li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.03); color: #d6dee8; font-size: 13px; font-weight: 600; }
.ap-dev { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.ap-dev span { display: block; margin-bottom: 4px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ap-dev a { color: #fff; }

/* ---------- FAQ ---------- */
.ap-faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ap-faq-grid > div:first-child { position: sticky; top: 110px; }
.ap-faq { border-top: 1px solid var(--line); }
.ap-faq details { border-bottom: 1px solid var(--line); }
.ap-faq summary { position: relative; display: block; padding: 22px 48px 22px 0; font-size: 17.5px; font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after, .ap-faq summary::before { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--cyan); transition: transform .25s; }
.ap-faq summary::before { transform: rotate(90deg); }
.ap-faq details[open] summary::before { transform: rotate(0); }
.ap-faq details[open] summary { color: #fff; }
.ap-faq summary:hover { color: #fff; }
.ap-faq details p { margin: -6px 0 0; padding: 0 48px 24px 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- related tiles ---------- */
.ap-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ap-tile { display: grid; grid-template-columns: 56px minmax(0, 1fr) 18px; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, rgba(21,31,43,.88), rgba(11,16,23,.88)); }
.ap-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ap-tile img { width: 56px; height: 56px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); }
.ap-tile h3 { margin: 0; font-size: 17px; }
.ap-tile p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.ap-tile > svg { width: 18px; height: 18px; color: var(--cyan); }

.ap .cta-band h2 { font-size: clamp(22px, 2.6vw, 32px); }
.ap .cta-band .btn { flex: 0 0 auto; }

/* ---------- footer app links ---------- */
.ap-footer-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.ap-footer-apps span { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ap-footer-apps a { color: var(--muted); font-size: 13px; font-weight: 600; }
.ap-footer-apps a:hover { color: #fff; }

/* ---------- catalog ---------- */
.ap-hero--hub .ap-hero-grid { min-height: 600px; }
.ap-hero--hub h1 { margin-top: 12px; }
.ap-hero--hub .ap-crumbs { margin-bottom: 30px; }
.ap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 600px; }
.ap-stats div { padding: 0 30px; border-left: 1px solid var(--line); }
.ap-stats div:first-child { padding-left: 0; border-left: 0; }
.ap-stats b { display: block; font-size: 34px; line-height: 1; font-weight: 800; }
.ap-stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.ap-constellation { position: relative; width: min(500px, 100%); aspect-ratio: 1; margin-inline: auto; }
.ap-constellation::before, .ap-constellation::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(57,200,255,.16); pointer-events: none; }
.ap-constellation::before { inset: 4%; }
.ap-constellation::after { inset: 26%; border-style: dashed; animation: ap-spin 120s linear infinite; }
.ap-constellation a { position: absolute; z-index: 1; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 24%; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.ap-constellation a:hover { transform: translate(-50%, -50%) scale(1.06); }
.ap-constellation img { width: 100%; height: 100%; border-radius: 24%; border: 1px solid rgba(255,255,255,.16); }
.ap-constellation a:nth-child(1) { left: 50%; top: 50%; width: 27%; box-shadow: 0 0 60px rgba(20,184,166,.35), 0 18px 40px rgba(0,0,0,.5); }
.ap-constellation a:nth-child(2) { left: 50%; top: 9%; }
.ap-constellation a:nth-child(3) { left: 88%; top: 30%; }
.ap-constellation a:nth-child(4) { left: 86%; top: 73%; }
.ap-constellation a:nth-child(5) { left: 50%; top: 92%; }
.ap-constellation a:nth-child(6) { left: 13%; top: 72%; }
.ap-constellation a:nth-child(7) { left: 12%; top: 29%; }

.ap-bigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ap-big { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 480px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 82% 70%, var(--ap-glow), transparent 45%), linear-gradient(180deg, rgba(21,31,43,.88), rgba(8,12,17,.92)); }
.ap-big:hover { border-color: var(--line-strong); }
.ap-big-copy { display: flex; flex-direction: column; padding: 32px 0 32px 32px; min-width: 0; }
.ap-big-h { margin: 22px 0 18px; font-size: 21px; font-weight: 750; line-height: 1.3; }
.ap-big .ap-list li { font-size: 14px; }
.ap-big-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: auto; padding-top: 26px; }
.ap-big-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 290px; }
.ap-big-btns .btn { width: 100%; }
.ap-big-visual { position: relative; display: block; min-width: 0; }
.ap-big-visual .ap-phone { position: absolute; left: 50%; top: 40px; width: min(250px, 90%); transform: translateX(-46%) rotate(2deg); }
.ap-big:hover .ap-big-visual .ap-phone { transform: translateX(-46%) rotate(2deg) translateY(-6px); }
.ap-big-visual .ap-phone { transition: transform .4s ease; }
.ap-name a:hover { color: var(--cyan); }

.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ap-card--app { display: flex; flex-direction: column; padding: 28px; overflow: hidden; isolation: isolate; }
.ap-card--app::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, var(--ap-glow), transparent 70%); }
.ap-card--app:hover { border-color: var(--line-strong); }
.ap-card-t { margin: 20px 0 8px !important; color: var(--text) !important; font-size: 17px; font-weight: 700; }
.ap-card--app > p:not(.ap-card-t) { font-size: 15px; line-height: 1.6; }
.ap-card-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; height: 190px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.ap-card-shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); }
.ap-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.ap-card-shots + .ap-card-foot { margin-top: 0; }
.ap-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.ap-game { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 360px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; isolation: isolate; background: #05080d; }
.ap-game:hover { border-color: var(--line-strong); }
.ap-game-bg { position: absolute; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; z-index: -2; }
.ap-game::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #070b10 36%, rgba(7,11,16,.6) 58%, rgba(7,11,16,.05) 100%); }
.ap-game-copy { display: flex; flex-direction: column; padding: 32px; }
.ap-game-copy > p { margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ap-game .ap-card-foot { border-top: 1px solid var(--line); }

/* ---------- closed testing: recruit testers ---------- */
.ap-status--test { border-color: rgba(57,200,255,.5); background: rgba(57,200,255,.1); color: #e8f7ff; }
.ap-status--test i { animation: ap-pulse 1.8s ease-in-out infinite; }
@keyframes ap-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(57,200,255,.7); } 50% { box-shadow: 0 0 0 6px rgba(57,200,255,0); } }
.ap-hero-badge { margin-top: 26px; }
.ap-hero-badge + h1 { margin-top: 16px; }
.ap-cta { min-height: 52px !important; padding: 0 24px !important; gap: 10px; font-size: 13px; box-shadow: 0 10px 34px rgba(10,108,255,.35); }
.ap-cta svg { width: 16px; height: 16px; }

.ap-test { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 85% 0%, rgba(57,200,255,.14), transparent 40%), radial-gradient(circle at 0% 100%, rgba(123,216,143,.07), transparent 40%), linear-gradient(180deg, #071019, #05080c); }
.ap-test::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 82px 82px;
  -webkit-mask-image: radial-gradient(circle at 80% 30%, #000, transparent 60%); mask-image: radial-gradient(circle at 80% 30%, #000, transparent 60%); }
.ap-test-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ap-test .ap-kicker b { font-size: 16px; }
.ap-why { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.ap-why li { display: flex; gap: 14px; }
.ap-why b { display: block; font-size: 17px; }
.ap-why div span { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ap-test-go { margin: 0 0 14px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ap-test-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ap-test-faq { margin-top: 34px; }
.ap-test-faq .ap-faq summary { padding: 16px 40px 16px 0; font-size: 15.5px; }
.ap-test-faq .ap-faq details p { font-size: 14.5px; padding-bottom: 18px; }
.ap-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n btn" "h btn" "p btn"; column-gap: 24px; align-items: center;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(21,31,43,.86), rgba(11,16,23,.86)); }
.ap-step:first-child { border-color: rgba(57,200,255,.35); box-shadow: 0 0 40px rgba(57,200,255,.07); }
.ap-step-n { grid-area: n; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ap-step h3 { grid-area: h; margin: 5px 0 3px; font-size: 16.5px; line-height: 1.3; }
.ap-step p { grid-area: p; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ap-step .btn { grid-area: btn; gap: 8px; white-space: nowrap; }
.ap-step .btn svg { width: 15px; height: 15px; }
.ap-test-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; color: #d6dee8; font-size: 14px; line-height: 1.55; }
.ap-test-note svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: var(--cyan); }

.ap-sticky { display: none; }
@media (max-width: 900px) {
  .ap-test-grid { grid-template-columns: 1fr; }
  .ap-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px; min-height: 64px;
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); background: rgba(5,7,10,.94); backdrop-filter: blur(16px);
    box-shadow: 0 -12px 30px rgba(0,0,0,.45); transform: translateY(110%); transition: transform .35s ease; }
  .ap-sticky.show { transform: none; }
  .ap-sticky img { width: 36px; height: 36px; border-radius: 9px; }
  .ap-sticky span { min-width: 0; flex: 1 1 auto; display: grid; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
  .ap-sticky b { color: #fff; font-size: 14px; }
  .ap-sticky em { flex: 0 0 auto; padding: 10px 12px; border-radius: 8px; background: linear-gradient(135deg, #0a6cff, #05a6d9); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
}
@media (max-width: 640px) {
  .ap-step { grid-template-columns: 1fr; grid-template-areas: "n" "h" "p" "btn"; padding: 20px; }
  .ap-step .btn { margin-top: 16px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ap-status--test i { animation: none; } .ap-sticky { transition: none; } }

/* ---------- motion ---------- */
.ap-js .ap-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.ap-js .ap-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ap-js .ap-reveal { opacity: 1; transform: none; transition: none; }
  .ap-orbit::before, .ap-constellation::after { animation: none; }
  .ap-screen img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ap-bigs { grid-template-columns: 1fr; }
  .ap-big { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}
@media (max-width: 900px) {
  .ap-section { padding: 64px 0; }
  .ap-hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 34px 0 56px; gap: 36px; }
  .ap-hero::before { background: radial-gradient(circle at 50% 78%, var(--ap-glow), transparent 40%); }
  .ap-hero-visual .ap-phone { width: min(280px, 72vw); }
  .ap-app .ap-hero-grid { gap: 0; }
  .ap-app .ap-hero-copy { display: contents; }
  .ap-app .ap-hero-visual { order: 1; margin-top: 34px; }
  .ap-app .ap-facts { order: 2; margin-top: 30px; }
  .ap-orbit { width: min(440px, 112vw); }
  .ap-audience, .ap-faq-grid { grid-template-columns: 1fr; }
  .ap-faq-grid > div:first-child { position: static; }
  .ap-scene, .ap-scene--flip { grid-template-columns: 1fr; background: radial-gradient(circle at 50% 22%, var(--ap-glow), transparent 40%), linear-gradient(180deg, rgba(21,31,43,.72), rgba(8,12,17,.9)); }
  .ap-scene::before { -webkit-mask-image: radial-gradient(circle at 50% 22%, #000, transparent 46%); mask-image: radial-gradient(circle at 50% 22%, #000, transparent 46%); }
  .ap-scene-visual, .ap-scene--flip .ap-scene-visual { order: -1; }
  .ap-scene-visual .ap-phone { width: min(250px, 64vw); }
  .ap-details { grid-template-columns: 1fr 1fr; }
  .ap-card--privacy { grid-column: 1 / -1; }
  .ap-tiles { grid-template-columns: 1fr; }
  .ap-grid { grid-template-columns: 1fr; }
  .ap-constellation { width: min(400px, 100%); }
  .ap-game { grid-template-columns: 1fr; }
  .ap-game-bg { position: relative; width: 100%; height: auto; aspect-ratio: 720 / 352; order: -1; }
  .ap-game::before { background: linear-gradient(180deg, transparent 20%, #070b10 52%); }
}
@media (max-width: 640px) {
  .ap-section { padding: 52px 0; }
  .ap-head { margin-bottom: 24px; }
  .ap-head--row { flex-wrap: wrap; }
  .ap-hero h1 { font-size: 31px; margin-top: 22px; }
  .ap-hero-lead { font-size: 16px; }
  .ap-icon { width: 68px; height: 68px; border-radius: 17px; }
  .ap-name { font-size: 24px; }
  .ap-crumbs { margin-bottom: 20px; font-size: 11px; }
  .ap-actions .btn, .ap-actions .ap-play, .ap-actions .ap-status { flex: 1 1 100%; justify-content: center; }
  .ap-actions .ap-more { display: none; }
  .ap-hint { text-align: center; }
  .ap-facts, .ap-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-facts div, .ap-stats div { padding: 0 12px; }
  .ap-facts dd { font-size: 13px; }
  .ap-stats b { font-size: 28px; }
  .ap-stats span { font-size: 10.5px; }
  .ap-aud { grid-template-columns: 1fr; }
  .ap-aud li { padding: 16px 18px; }
  .ap-scene { padding: 22px 14px 14px; }
  .ap-tab { padding: 14px 12px 14px 10px; grid-template-columns: 34px minmax(0, 1fr); }
  .ap-tab-t b { font-size: 17px; }
  .ap-tab-t span { font-size: 14.5px; }
  .ap-details { grid-template-columns: 1fr; }
  .ap-card { padding: 22px; }
  .ap-faq summary { font-size: 16px; padding-right: 36px; }
  .ap-faq details p { padding-right: 0; }
  .ap .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .ap .cta-band .btn { width: 100%; }
  .ap-big { grid-template-columns: 1fr; min-height: 0; }
  .ap-big-copy { padding: 24px 22px 0; }
  .ap-big-visual { height: 300px; overflow: hidden; }
  .ap-big-visual .ap-phone { top: 26px; width: 230px; }
  .ap-big-foot, .ap-big-btns { align-self: stretch; }
  .ap-big-btns .btn { flex: 1 1 auto; }
  .ap-card--app { padding: 22px; }
  .ap-card-shots { height: 150px; }
  .ap-game-copy { padding: 22px; }
  .ap-footer-apps { gap: 8px 16px; }
}

@media (max-width: 900px) { body:has([data-sticky]) .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
