/* landings.html (every language): the gallery of every landing page and pre-lander demo.
   Tokens come from brand.css; .browser-bar, .btn, .cta, .reveal and @keyframes marquee from site.css. */

.lg-hero { padding: 128px 0 0; position: relative; overflow: clip; }
.lg-hero .glow { position: absolute; width: 64vw; height: 64vw; right: -18vw; top: -30vw; background: radial-gradient(closest-side, rgba(139,92,255,.22), transparent 70%); pointer-events: none; }
.lg-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 28px 56px; align-items: end; }
.lg-top h1 { font-size: clamp(46px, 7.6vw, 108px); line-height: .92; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
:lang(ru) .lg-top h1 { font-size: clamp(42px, 6.4vw, 92px); }
.lg-side .lede { margin: 0; max-width: 520px; }
.lg-side .lede b { color: var(--text); font-weight: 600; }
.lg-note { margin: 16px 0 0; max-width: 520px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lg-note b { display: inline-block; margin-right: 6px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,196,67,.45); color: var(--gold); font: 700 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.lg-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .lg-top { grid-template-columns: minmax(0, 1fr); } .lg-hero { padding-top: 112px; } }

/* the river: every page's phone screen, drifting past (decorative; the cards below carry the links) */
.lg-river { position: relative; margin-top: clamp(36px, 5vw, 60px); }
.lg-river-clip { overflow: hidden; padding: 6px 0 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.lg-river-row { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.lg-river.paused .lg-river-row { animation-play-state: paused; }
@media (hover: hover) { .lg-river-clip:hover .lg-river-row { animation-play-state: paused; } }
.lg-river-row span { flex: none; width: clamp(84px, 8vw, 112px); aspect-ratio: 375 / 812; margin-right: clamp(12px, 1.4vw, 18px); padding: 3px; border-radius: 14px; background: #131019;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 28px -12px rgba(0,0,0,.85); }
.lg-river-row span:nth-child(even) { translate: 0 18px; }
.lg-river-row img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.lg-pause { position: absolute; right: max(16px, calc(50vw - 600px)); bottom: -12px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(9,8,13,.88); color: var(--text); cursor: pointer; transition: border-color .2s, color .2s; }
.lg-pause:hover { border-color: var(--lime); color: var(--lime); }
.lg-pause svg { width: 14px; height: 14px; }
.lg-pause .i-play, .lg-river.paused .lg-pause .i-pause { display: none; }
.lg-river.paused .lg-pause .i-play { display: block; }
html:not(.js) .lg-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .lg-pause { display: none; } }

/* filter chips: buttons with aria-pressed; without JS the bar is hidden and every group shows */
.lg-wall { padding: clamp(28px, 4vw, 44px) 0 clamp(64px, 8vw, 104px); }
.lg-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; }
html:not(.js) .lg-filter { display: none; }
.lg-filter { position: sticky; top: 72px; z-index: 6; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
/* phones: one swipeable row that stays under the menu bar */
@media (max-width: 900px) {
  .lg-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 10px 16px; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 16px; }
  .lg-filter::-webkit-scrollbar { display: none; }
  .lg-chip { flex: none; }
}
.lg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text);
  font: 600 13.5px/1.2 var(--body); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.lg-chip span { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); font: 700 11px/1.3 var(--mono); text-align: center; transition: inherit; }
.lg-chip:hover { border-color: var(--lime); }
.lg-chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.lg-chip[aria-pressed="true"] span { background: rgba(18,22,10,.14); color: var(--lime-ink); }
.lg-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* groups */
.lg-group { padding: 0; margin-top: clamp(36px, 5vw, 60px); scroll-margin-top: 150px; }
.lg-group[hidden] { display: none; }
.lg-ghead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 10px 40px; align-items: end; padding-top: 22px; margin-bottom: 26px; border-top: 1px solid var(--line); }
.lg-ghead h2 { margin: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; text-wrap: balance; }
.lg-ghead h2 small { display: inline-block; margin-left: 10px; font: 700 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); vertical-align: .5em; white-space: nowrap; }
.lg-ghead p { margin: 0; justify-self: end; max-width: 560px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .lg-ghead { grid-template-columns: minmax(0, 1fr); } .lg-ghead p { justify-self: start; } }

.lg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
/* rows stay full: 2 and 4 pages sit two by two, 5 pages go three over two */
.lg-grid[data-n="2"], .lg-grid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-grid[data-n="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lg-grid[data-n="5"] > * { grid-column: span 2; }
.lg-grid[data-n="5"] > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1000px) {
  .lg-grid, .lg-grid[data-n="5"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-grid[data-n="5"] > *, .lg-grid[data-n="5"] > :nth-child(n+4) { grid-column: auto; }
  .lg-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .lg-grid, .lg-grid[data-n] { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* card: the desktop screen in a browser frame, the phone screen standing in front of it */
.lg-card { container-type: inline-size; position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease); }
.lg-card:hover { border-color: rgba(200,255,46,.55); transform: translateY(-4px); }
.lg-media { position: relative; }
.lg-shot { display: block; overflow: hidden; border-radius: 19px 19px 0 0; background: #0b0a10; text-decoration: none; }
.lg-shot .browser-bar { height: 30px; padding-block: 8px; }
.lg-shot .browser-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; color: var(--muted); }
.lg-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.lg-card:hover .lg-shot img { transform: scale(1.035); }
.lg-phone { position: absolute; right: 14px; bottom: -44px; width: min(22cqw, 112px); aspect-ratio: 375 / 812; padding: 3px; border-radius: 13px; background: #131019;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 18px 30px -8px rgba(0,0,0,.75); transition: transform .6s var(--ease); }
.lg-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.lg-card:hover .lg-phone { transform: translateY(-8px) rotate(-2deg); }
.lg-right { flex: 1; display: flex; flex-direction: column; }
.lg-body { flex: 1; padding: 16px 20px 0; }
.lg-body::before { content: ''; float: right; width: calc(min(22cqw, 112px) + 6px); height: 38px; }
.lg-meta { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.lg-meta b { font: 700 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.lg-meta span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.lg-body h3 { margin: 10px 0 0; font: 700 clamp(18px, 4.4cqw, 22px)/1.22 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.lg-what { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.lg-hand { clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; }
.lg-hand > span { margin-right: 2px; color: var(--muted); font: 700 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lg-hand a, .lg-also a { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.lg-hand a:hover, .lg-also a:hover { border-color: var(--gold); color: var(--gold); }
.lg-also { clear: both; margin: 12px 0 0; font-size: 12.5px; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 20px 0; padding: 12px 0 14px; border-top: 1px solid var(--line); }
.lg-kb { color: var(--text); font: 600 12.5px/1.3 var(--mono); white-space: nowrap; }
.lg-kb small { margin-right: 6px; color: var(--muted); font: inherit; }
.lg-open { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--lime); font: 700 14px/1.3 var(--body); text-decoration: none; text-underline-offset: 4px; }
.lg-open:hover { text-decoration: underline; }
.lg-open i { font-style: normal; transition: transform .3s var(--ease); }
.lg-open:hover i { transform: translate(2px, -2px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* wide card: a group with one page, and the geo-ready kit under the pre-landers */
.lg-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); container-type: normal; }
.lg-wide + .lg-wide, .lg-grid + .lg-wide { margin-top: 26px; }
.lg-wide .lg-shot { border-radius: 19px 0 0 19px; }
.lg-wide .lg-phone { bottom: 16px; right: 16px; width: clamp(76px, 9vw, 112px); }
.lg-wide .lg-body { padding: 26px 26px 0; display: flex; flex-direction: column; }
.lg-wide .lg-body::before { display: none; }
.lg-wide .lg-body h3 { font-size: clamp(20px, 2.2vw, 26px); }
.lg-wide .lg-what { font-size: 15px; }
.lg-wide .lg-foot { margin: auto 26px 0; padding-top: 14px; }
@media (max-width: 760px) {
  .lg-wide { grid-template-columns: minmax(0, 1fr); }
  .lg-wide .lg-shot { border-radius: 19px 19px 0 0; }
  .lg-wide .lg-body { padding: 18px 20px 0; }
  .lg-wide .lg-foot { margin: 16px 20px 0; }
}

.lg-fine { margin: clamp(36px, 5vw, 56px) 0 0; max-width: 720px; color: var(--muted); font-size: 13.5px; }
.lg-cta { padding-top: 0; }
