/* PLACE — applace.ru. Black and white, like the app. */

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #111;
  --line: #222;
  --text: #fff;
  --secondary: #8e8e93;
  --tertiary: #48484a;
  --button: #fff;
  --on-button: #000;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fff;
    --surface: #f2f2f7;
    --line: #e5e5ea;
    --text: #000;
    --secondary: #6c6c70;
    --tertiary: #c7c7cc;
    --button: #000;
    --on-button: #fff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; border-radius: 7px; }

.wordmark {
  font-weight: 600;
  letter-spacing: 0.38em;
  margin-right: -0.38em;
}

.brand .wordmark { font-size: 15px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.lang a, .lang span {
  padding: 4px 11px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--secondary);
}

.lang span { background: var(--button); color: var(--on-button); }

/* Landing */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 20px 40px;
}

.hero .icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 0 0 1px var(--line);
}

.hero .wordmark {
  margin-top: 28px;
  font-size: 34px;
  line-height: 1;
}

.tagline {
  max-width: 440px;
  margin: 18px 0 0;
  font-size: 19px;
  color: var(--secondary);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 11px 24px 11px 18px;
  border-radius: 14px;
  background: var(--button);
  color: var(--on-button);
  text-align: left;
  cursor: default;
  user-select: none;
}

.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }

.store small { display: block; font-size: 11px; line-height: 1.2; opacity: 0.7; }

.store strong { display: block; font-size: 19px; line-height: 1.2; font-weight: 600; }

.soon {
  margin-top: 12px;
  font-size: 13px;
  color: var(--secondary);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.features li {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
}

.features strong { display: block; font-size: 16px; }

.features span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--secondary); }

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
}

/* Documents */

.doc {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.doc h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.doc .updated { margin: 10px 0 0; color: var(--secondary); font-size: 15px; }

.doc h2 {
  margin: 40px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.doc h3 { margin: 24px 0 6px; font-size: 17px; }

.doc p, .doc ul { margin: 10px 0; }

.doc ul { padding-left: 22px; }

.doc li { margin: 6px 0; }

.doc .summary {
  margin-top: 28px;
  padding: 6px 20px;
  border-radius: 18px;
  background: var(--surface);
}

.doc .note {
  padding: 14px 18px;
  border-left: 3px solid var(--text);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
}

/* Footer */

.foot {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--secondary);
}

.foot a { text-decoration: none; }

.foot a:hover { color: var(--text); }

.foot .copy { margin-left: auto; }

@media (max-width: 640px) {
  .foot .copy { margin-left: 0; width: 100%; }
}
