/* LumaShift — фирменный стиль сайта. Только тёмная тема.
   Палитра повторяет тёмную тему приложения (lib/theme/app_theme.dart):
   фон #0C0D10, поверхность #15161A, акцент — приглушённое золото #C9A24B. */

:root {
  --bg: #0c0d10;
  --surface: #15161a;
  --surface-2: #101116;
  --accent: #c9a24b;
  --accent-soft: rgba(201, 162, 75, 0.14);
  --text: #f1f0ec;
  --muted: #9a968e;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  --radius: 20px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 800; }

/* ---------- Шапка ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}
.nav a { color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--text); text-decoration: none; }

.tools { display: flex; gap: 8px; align-items: center; }

.chip {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.chip:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #14120c;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent-soft); }

.btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 20px 0 30px;
  max-width: 34em;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Секции ---------- */

section { padding: 64px 0; }

.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 12px 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }

.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

/* ---------- Тарифы ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.plan:hover { transform: translateY(-4px); }

.plan-plus {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-soft);
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan-price {
  color: var(--muted);
  font-size: 15px;
  margin: 6px 0 24px;
}

.plan ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan li {
  padding-left: 26px;
  position: relative;
  font-size: 15.5px;
  color: var(--text);
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.plan .btn { width: 100%; }

.plan-note {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}

/* ---------- Приватность ---------- */

.privacy-band {
  background: var(--surface);
  border-radius: 26px;
  padding: 44px 40px;
  box-shadow: var(--shadow);
}
.privacy-band ul {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
.privacy-band li {
  color: var(--muted);
  padding-left: 28px;
  position: relative;
  font-size: 15.5px;
}
.privacy-band li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Скачивание ---------- */

.downloads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dl {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.dl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dl .meta { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.dl p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.dl .btn { margin-top: auto; width: 100%; }

.badge-soon {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge-beta {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }

details {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
details[open] { box-shadow: var(--shadow-lg); }
details summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
details[open] summary::after { transform: rotate(225deg); }

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
details p {
  color: var(--muted);
  margin: 14px 0 2px;
  font-size: 15.5px;
  animation: faq-fade-in 0.3s var(--ease);
}

/* ---------- Подвал ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.foot .spacer { margin-left: auto; }

/* ---------- Страница документа (политика) ---------- */

.doc { padding: 56px 24px 24px; max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 42px); margin-bottom: 10px; }
.doc .date { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.doc h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 44px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { font-weight: 800; }

.doc-note {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 36px;
}

/* ---------- Мокап ---------- */

.mock { width: 100%; height: auto; filter: drop-shadow(var(--shadow-lg)); }

/* ---------- Плавное появление при прокрутке ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  details p { animation: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 8px; }
  .cards, .downloads, .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
  .privacy-band ul { grid-template-columns: 1fr; }
  .privacy-band { padding: 32px 24px; }
  .nav { display: none; }
  section { padding: 48px 0; }
  .cta .btn { flex: 1 1 100%; }
}
