/* normalno.xyz — what the studio site adds on top of the krivo look (site.css):
   the language menu (23 languages do not fit a row of links), the studio's
   app cards, the screenshot strip, the "new" chip and right-to-left fixes.
   Written by hand; tool/normalno_site.py links it with a content hash. */

.top nav { gap: 6px; }

/* Language menu: a <details>, no script (the CSP allows none). */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; color: var(--soft); font-size: 15px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--ink); background: var(--glass); }
.langs summary svg { width: 18px; height: 18px; flex: none; }
.langs ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20;
  margin: 0; padding: 8px; list-style: none; width: min(320px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--page); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--lift);
}
.langs li a {
  display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px;
}
.langs li a:hover { background: var(--field); }
.langs li a[aria-current="page"] { background: var(--field); font-weight: 600; }
@media (max-width: 520px) { .langs summary span { display: none; } }

.mark {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--ink); color: var(--page); font: 700 19px/1 var(--serif);
}

.new {
  display: inline-block; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  background: var(--accent); color: #fff; font: 600 12px/1.6 var(--sans); letter-spacing: 0.04em; text-transform: uppercase;
}

/* Studio home. */
.hero.studio .wrap { display: block; }
.hero.studio h1 { font-size: clamp(56px, 13vw, 112px); line-height: 0.95; margin-bottom: 18px; }
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.app {
  display: grid; grid-template-columns: 72px 1fr 180px; gap: 20px; align-items: center;
  padding: 22px; border-radius: 28px; color: var(--ink); text-decoration: none; overflow: hidden;
}
.app > img { border-radius: 18px; }
.app strong { font: 600 26px/1.2 var(--serif); }
.app p { margin: 6px 0 10px; color: var(--soft); }
.app .more { color: var(--accent); font-weight: 600; }
.app .shot { margin: -22px 0 -60px; }
.app:hover { box-shadow: var(--lift); }
@media (max-width: 720px) {
  .app { grid-template-columns: 56px 1fr; }
  .app > img { width: 56px; height: 56px; border-radius: 14px; }
  .app .shot { display: none; }
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.facts h2 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); margin: 0 0 6px; }
.facts p { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }

/* Screenshot strip on the store-text app pages. */
.gallery {
  list-style: none; margin: 0 -16px; padding: 4px 16px 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(240px, 62vw); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.gallery li { scroll-snap-align: start; }
.gallery .shot img { width: 100%; height: auto; }

.money .eyebrow { margin-bottom: 6px; }
.tile h3 { overflow-wrap: anywhere; }

/* Right to left: site.css was written for one direction. */
[dir="rtl"] .row li::before { margin-inline: 0 0; }
[dir="rtl"] .row.flip .copy { order: 0; }
[dir="rtl"] .btn svg, [dir="rtl"] .langs summary svg { transform: scaleX(-1); }
[dir="rtl"] .faq summary::after { margin-inline-start: auto; margin-inline-end: 0; }

/* Tiles without an icon (store-text Krivo pages, Lapka): site.css lays a tile
   out as icon column + text on phones, which leaves the heading in a 28px column. */
.tiles.bare .tile, .tile:not(:has(svg)) { display: block; }
.tiles.bare .tile p, .tile:not(:has(svg)) p { margin-top: 6px; }

/* What site_pages.py writes as style="" (the CSP here has no 'unsafe-inline'). */
.small.gap-top { margin-top: 18px; }
.block.flush-top { padding-top: 0; }

/* Document pages (legal notice, privacy, support, account deletion). */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 18px; }
.doc h2 { font-size: 24px; margin: 32px 0 8px; }
.doc h3 { font-size: 18px; margin: 22px 0 4px; }
.doc p, .doc li { color: var(--soft); }
.doc a { color: var(--ink); }
footer.site nav strong { color: var(--ink); margin-inline-end: 4px; }
