/**
 * css/landing.css — гостевой лендинг (scr-landing). Свой hero-фон вместо
 * фото Севастополя (глобальный .bg НЕ трогаем/не меняем — просто прячем на
 * этом экране через body.landing-mode, см. app.js mountLanding()).
 */

body.landing-mode .bg,
body.landing-mode .grain { display: none; }

#scr-landing {
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--ink);
}

/* ---------- hero ----------
   Сигнатурный элемент вместо дженерик-блюр-блоба: абстрактный "горизонт"
   в цветах бренда (фиолет неба → золотая полоса горизонта). Отсылка к морю —
   аудитория ~90% из Севастополя (см. память project_cabinet_sevastopol_bg),
   но БЕЗ самого фото (оно зарезервировано за экранами после логина). */
.land-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 68px 24px 52px;
  overflow: hidden;
}
.land-hero-bg {
  position: absolute;
  inset: -15% -10% 0;
  z-index: 0;
  background:
    radial-gradient(38% 30% at 72% 12%, rgba(139,92,246,.45), transparent 70%),
    radial-gradient(55% 40% at 50% 82%, rgba(255,184,77,.22), transparent 68%),
    linear-gradient(180deg, #070c16 0%, #12102a 38%, #241542 62%, #3c1f5c 82%, var(--ink) 100%);
  will-change: transform;
}
.land-title {
  position: relative; z-index: 1;
  font-family: 'Russo One', 'Exo 2', sans-serif;
  font-size: clamp(32px, 8vw, 48px);
  color: var(--text);
  letter-spacing: .02em;
}
.land-subtitle {
  position: relative; z-index: 1;
  margin-top: 12px;
  max-width: 380px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.5;
}
.land-chips {
  position: relative; z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  max-width: 340px;
}
.land-chip {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--line-bright);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 5px 12px;
}
.land-cta-top { position: relative; z-index: 1; margin-top: 24px; }

/* ---------- как это работает (реальная последовательность, не декор) ---------- */
.land-steps {
  padding: 40px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
  margin: 0 auto;
}
.land-step { display: flex; gap: 14px; align-items: flex-start; }
.land-step-n {
  font-family: 'Russo One', 'Exo 2', sans-serif;
  font-size: 22px;
  color: var(--brand-hi);
  opacity: .55;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}
.land-step-body h3 { font-size: 15px; color: var(--text); margin-bottom: 2px; }
.land-step-body p { font-size: 13px; color: var(--text-faint); line-height: 1.4; }

/* ---------- фичи: тонкий список, без эмодзи-в-кружке ---------- */
.land-features {
  display: flex;
  flex-direction: column;
  padding: 32px 20px 24px;
  max-width: 420px;
  margin: 0 auto;
}
.land-feature {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.land-feature:last-child { border-bottom: none; }
.land-feature-icon { font-size: 20px; flex-shrink: 0; width: 24px; text-align: center; }
.land-feature h3 { font-size: 14px; color: var(--text); margin-bottom: 2px; }
.land-feature p { font-size: 12px; color: var(--text-faint); line-height: 1.4; }

/* ---------- тарифы ---------- */
.land-tariffs { padding: 8px 20px 40px; }
.land-tariffs h2 { color: var(--text); font-size: 20px; margin-bottom: 14px; text-align: center; }
.land-trf-mount { width: 100%; }
.land-trf-grid, .land-trf-skel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 480px) {
  /* auto-fit, НЕ repeat(N,1fr) фикс-числом колонок — при 1 тарифе (сейчас так)
     фикс-сетка растягивала N колонок, карточка занимала 1/N ширины, остальное
     пустовало (плохо смотрелось на десктопе). auto-fit создаёт ровно столько
     колонок, сколько реально карточек, каждая 240-320px, группа по центру. */
  .land-trf-grid, .land-trf-skel {
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
  }
}
.land-trf-card {
  position: relative;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px;
}
.land-trf-best {
  border-color: rgba(255,184,77,.55);
  box-shadow: 0 0 0 1px rgba(255,184,77,.18), 0 12px 28px -12px rgba(255,184,77,.25);
}
.land-trf-tag {
  position: absolute;
  top: -10px; left: 14px;
  background: var(--gold);
  color: #241542;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 9px;
  border-radius: 999px;
}
.land-trf-card h3 { color: var(--text); font-size: 15px; }
.land-trf-desc { color: var(--text-faint); font-size: 12px; margin: 4px 0 10px; min-height: 16px; }

.land-trf-periods { display: flex; flex-direction: column; }
.land-trf-period {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.land-trf-period:last-child { border-bottom: none; }
.land-trf-period-label { font-size: 13px; color: var(--text-dim); }
.land-trf-period-nums { text-align: right; }
.land-trf-period-price { font-size: 15px; font-weight: 700; color: var(--text); }
.land-trf-period-permonth { display: block; font-size: 11px; color: var(--text-faint); }
.land-trf-period-best .land-trf-period-label { color: var(--text); font-weight: 600; }
.land-trf-period-best .land-trf-period-price { color: var(--gold-hi); }

.land-trf-meta { color: var(--text-faint); font-size: 11px; margin-top: 10px; }
.land-trf-card.land-skel { min-height: 96px; position: relative; overflow: hidden; }
.land-trf-card.land-skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: land-shimmer 1.4s infinite;
}
@keyframes land-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.land-trf-error, .land-trf-empty {
  text-align: center; color: var(--text-faint); font-size: 13px; padding: 20px;
}
.land-trf-error button { margin-top: 10px; }

/* ---------- CTA нижний ---------- */
.land-cta { padding: 8px 20px 56px; text-align: center; }
.land-cta-bottom { width: 100%; max-width: 320px; }

/* ---------- scroll-reveal ---------- */
.land-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.land-reveal.land-in { opacity: 1; transform: translateY(0); }

/* ---------- десктоп (≥980px): у гостя нет сайдбара — отменяем dashboard-grid ----------
   index.html @media(min-width:980px) даёт ЛЮБОМУ .screen: display:grid;grid-template-columns:
   repeat(2,...) — у #scr-landing 4 прямых потомка (hero/features/tariffs/cta), это ломает
   вёрстку в скрамблированную 2×2 сетку. Плюс .phone{padding-left:236px} резервирует гуттер под
   левый сайдбар nav, которого у гостевого лендинга нет (nav скрыт через showNav(false)).
   Правим точечно: #scr-landing (id — специфичнее .screen) обратно в display:block, по центру;
   .phone-паддинг зануляем только когда есть body.landing-mode (ставится в app.js mountLanding()),
   т.е. НЕ трогая .phone для остальных экранов. */
@media (min-width: 980px) {
  body.landing-mode .phone { padding-left: 0; }

  #scr-landing {
    display: block;
    max-width: 940px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .land-hero-bg { animation: none !important; }
  .land-reveal { transition: none; opacity: 1; transform: none; }
  .land-trf-card.land-skel::after { animation: none; }
}
