/* Страницы app.gettiluna.com (решено 1.12): принять приглашение и отписка. Не веб-версия приложения.
   Цвета — значения токенов приложения (app/design/tokens/tokens.json), шрифт Onest из app/design/fonts. */
@font-face { font-family: "Onest"; src: url("/fonts/Onest-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #FCFAF6;
  --card: #FFFDF9;
  --text: #202326;
  --body: #2B2E32;
  --sec: #5A5D61;
  --line: #E9E7E3;
  --line2: #E1DFDB;
  --teal: #02554D;
  --teal-press: #01433D;
  --tint: #EFF5F1;
  --tint2: #D2E6E2;
  --fill: #EDEBE7;
  --attention: #C2352B;
  --focus: #8CCFC5;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.top { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 20px; font-weight: 600; color: var(--teal); text-decoration: none; }
.lang { display: flex; gap: 2px; background: var(--fill); border-radius: 10px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: var(--sec); font: inherit; font-size: 13px; font-weight: 500;
  padding: 4px 10px; border-radius: 8px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(32, 35, 38, 0.06); }

.view { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.view[hidden] { display: none; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 20px; flex: 1; }

h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; text-wrap: balance; }
.lead { margin: 0; color: var(--sec); }
.badge {
  width: 56px; height: 56px; border-radius: 28px; background: var(--tint2);
  display: flex; align-items: center; justify-content: center;
}
.badge.gray { background: var(--fill); }
.heading { display: flex; flex-direction: column; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--sec); }
.field input {
  height: 52px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card);
  padding: 0 16px; font: inherit; font-size: 17px; color: var(--text); width: 100%;
}
.field input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.field .note { font-size: 14px; color: var(--sec); }
.field .error { font-size: 14px; color: var(--attention); }
.field.invalid input { border-color: var(--attention); }

.box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--tint); }
.box p { margin: 0; font-size: 15px; line-height: 21px; color: var(--body); }
.box.plain { background: var(--card); border: 1px solid var(--line); flex-direction: column; gap: 6px; }
.box strong { font-weight: 500; font-size: 16px; color: var(--text); }

.btn {
  display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 27px;
  border: 0; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; width: 100%;
}
.btn.primary { background: var(--teal); color: #FFFFFF; }
.btn.primary:hover { background: var(--teal-press); }
.btn.secondary { background: var(--fill); color: var(--text); font-weight: 500; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.link { text-align: center; color: var(--teal); font-weight: 500; text-decoration: none; padding: 8px; }
.small { font-size: 13px; color: var(--sec); text-align: center; margin: 0; }

.spinner {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--teal);
  animation: spin 0.8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Политика, условия и корень gettiluna.com (решено 2.12): длинный текст, колонка шире. */
.page.doc { max-width: 680px; gap: 32px; }
.doc article { display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: 32px; line-height: 38px; }
.doc h2 { margin: 18px 0 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.doc h3 { margin: 6px 0 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.doc p, .doc li { margin: 0; color: var(--body); line-height: 1.55; }
.doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc a { color: var(--teal); text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc .meta { color: var(--sec); font-size: 14px; }
.doc .summary { background: var(--tint); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.doc strong { font-weight: 600; color: var(--text); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.foot a { color: var(--sec); text-decoration: none; }
.foot a:hover { color: var(--text); }
