/*
 * The static info pages (about.html, faq.html and their ru/ and en/ copies): plain HTML
 * that a crawler reads without running JavaScript. They are served by nginx as files,
 * outside the React app, so they cannot use src/styles/tokens.css: the colours below
 * repeat its values, named after the token they copy. Light and dark follow the system
 * only (theme-init.js would also switch <html lang> to a saved locale).
 */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-var.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491;
}

:root {
  color-scheme: light dark;
  --ink: #14151c; /* --ink */
  --ink-3: #474a57; /* --ink-3 */
  --muted: #676b7a; /* --muted */
  --line: #e3e5ec; /* --line */
  --bg: #f6f7fb; /* --bg-screen */
  --card: #ffffff; /* --card */
  --accent-top: #2460fc; /* --accent-top */
  --accent-bot: #7b45f0; /* --accent-bot */
  --on-accent: #ffffff; /* --on-accent */
  --accent-ink: #5537e8; /* --accent-ink */
  --accent-tint: #eeedff; /* --accent-tint */
  --brand-mark: #7a2bd6; /* --brand-mark */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0fa;
    --ink-3: #bcc0d4;
    --muted: #9296ac;
    --line: #272b45;
    --bg: #0e1020;
    --card: #171a2e;
    --accent-top: #2f66f5;
    --accent-bot: #7c4df5;
    --accent-ink: #a99bff;
    --accent-tint: #1f2250;
    --brand-mark: #9040f0;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent-ink);
}

a:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.top-inner,
main,
.foot-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* No flex gap: it would also split the wordmark's "Softa" from its ".uz". */
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  margin-right: 10px;
}

.brand span {
  color: var(--brand-mark);
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  font-size: 15px;
  font-weight: 600;
}

.top nav a {
  color: var(--ink-3);
  text-decoration: none;
}

.top nav a[aria-current='page'] {
  color: var(--accent-ink);
}

.top nav a.cta {
  color: var(--on-accent);
  background: linear-gradient(90deg, var(--accent-top), var(--accent-bot));
  border-radius: 999px;
  padding: 6px 14px;
}

.langs {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.langs a {
  color: var(--muted);
  text-decoration: none;
}

.langs a[aria-current='true'] {
  color: var(--ink);
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 12px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  margin: 40px 0 12px;
}

h3 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  margin: 24px 0 6px;
}

p,
ul,
ol,
dl {
  margin: 0 0 12px;
  color: var(--ink-3);
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--ink);
}

.lead {
  font-size: 18px;
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
  color: var(--ink);
}

.facts dt:first-of-type,
.facts dt:first-of-type + dd {
  border-top: 0;
}

.note {
  background: var(--accent-tint);
  border-radius: 12px;
  padding: 12px 16px;
}

.foot {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.foot-inner {
  padding-top: 20px;
  padding-bottom: 32px;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.foot p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 560px) {
  h1 {
    font-size: 26px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts dd {
    border-top: 0;
    padding-top: 0;
  }
}
