/* Shared design system of the site: the same tokens as the app's "Neon Motel" (DesignSystem/Tokens.swift, Palette):
   dark base, pink -> orange gradient, Liquid-Glass-like cards, SF-style system text, big expanded heavy titles.
   No rounded typeface anywhere (owner rule). Titles use a subset of Archivo Expanded (latin) / Montserrat (cyrillic), ~25 KB each,
   loaded only when the page has such glyphs (unicode-range). Used by the home page (home.css on top), articles, markers, collections, pins and legal pages. */

@font-face { font-family: "Expanded"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url(/legal-assets/fonts/expanded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122, U+2190, U+2192; }
@font-face { font-family: "Expanded"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url(/legal-assets/fonts/expanded-cyr.woff2) format("woff2");
  unicode-range: U+0400-045F, U+2116; }

:root {
  --bg: #0B0A14;
  --bg-elevated: #15131F;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.10);
  --glass-stroke: rgba(255, 255, 255, 0.12);
  --text: #F4F2FA;
  --text-2: #A39FB8;
  --ink-2: #D9D6E6;
  --accent-a: #E53FC9;
  --accent-b: #FFA052;
  --verified: #34D399;
  --grad: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  --radius: 22px;
  --radius-s: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Expanded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(229, 63, 201, 0.18), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(255, 160, 82, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent-b); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-b); outline-offset: 3px; border-radius: 8px; }

/* ---- Header with a photo (articles, markers, collections, legal pages) ---- */
.hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.hero img.scene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(4px) saturate(1.15); transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,20,0.15) 0%, rgba(11,10,20,0.55) 55%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--text); font-weight: 600; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 20px rgba(0,0,0,0.45); }
.brand span { font-size: 15px; letter-spacing: 0.01em; }

h1, h2, h3 { font-family: var(--display); }
h1 { margin: 0; font-size: clamp(34px, 7.4vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 .accent { display: block; width: fit-content; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.updated { margin-top: 10px; color: var(--text-2); font-size: 15px; }

main { max-width: 820px; margin: 0 auto; padding: 8px 20px 60px; }

/* ---- Cards ---- */
.card {
  background: var(--glass); border: 1px solid var(--glass-stroke); border-radius: var(--radius);
  padding: 22px 24px; margin: 16px 0;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
.card.highlight { background: linear-gradient(135deg, rgba(229,63,201,0.16), rgba(255,160,82,0.10)); border-color: rgba(255,160,82,0.35); display: flex; gap: 18px; align-items: flex-start; }
.card.highlight img { width: 72px; height: 72px; flex: none; }
.card h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.card p, .card li { color: var(--ink-2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 20px; margin: 8px 0; }
.card li { margin: 4px 0; }
.card strong { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-stroke); color: var(--text); font-size: 14px; font-weight: 600; }
.chip::before { content: "✓"; color: var(--verified); font-weight: 800; }

.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.toc a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--text); background: var(--glass); border: 1px solid var(--glass-stroke); }
.toc a:hover { text-decoration: none; border-color: var(--accent-b); }
.toc a.active { background: var(--grad); border-color: transparent; color: #fff; }

footer { max-width: 820px; margin: 0 auto; padding: 0 20px 48px; color: var(--text-2); font-size: 14px; }
footer .fine { border-top: 1px solid var(--glass-stroke); padding-top: 18px; }

/* ---- Buttons: one style for all pages ---- */
.lead { font-size: 19px; color: var(--ink-2); margin: 14px 0 0; max-width: 620px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 10px 30px rgba(229, 63, 201, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform .18s ease, filter .18s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost, .btn.alt { background: var(--glass); border: 1px solid var(--glass-stroke); box-shadow: none; color: var(--text); }
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.soon { color: var(--text-2); font-size: 15px; }

/* ---- Feature tiles (legal pages) ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.feature { background: var(--glass); border: 1px solid var(--glass-stroke); border-radius: var(--radius); padding: 18px 18px 16px; }
.feature img { width: 64px; height: 64px; display: block; margin-bottom: 8px; filter: drop-shadow(0 8px 18px rgba(229,63,201,0.35)); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

details.faq { border-top: 1px solid var(--glass-stroke); padding: 12px 0; }
details.faq:first-of-type { border-top: 0; padding-top: 4px; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent-b); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq p, details.faq ol, details.faq ul { margin: 8px 0 0; color: var(--ink-2); }

/* ---- Inner pages (article / marker / collection / pin): shared bits ---- */
.backrow { margin: 0 0 12px; }
.back { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--glass); border: 1px solid var(--glass-stroke); }
.back:hover { text-decoration: none; border-color: var(--accent-b); }
a.brand { color: inherit; }
a.brand:hover { text-decoration: none; }
.disc { color: var(--text-2); font-size: 13px; text-align: center; margin: 22px 0 40px; }
.after { color: var(--text-2); font-size: 14px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-stroke); }
.card.share, .card.col { padding: 24px; margin-top: -6px; box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,0.08); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { min-height: 280px; }
  .card { padding: 18px; }
  .card.highlight { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
