/* ============================================================
   ProfitData — landing page

   Visual language taken from the reference (luxalgo.com): near-black ground,
   cards a shade above it, hairline borders at 10% white, generous vertical
   rhythm, one blue accent. Their exact tokens where we have an equivalent —
   Палитра переведена в тёмно-синюю 5 сентября 2026; исходно была near-black.
   and red they use (#089981 / #F23645) are already ours; both sites inherited
   them from TradingView.

   Scoped to .lx so nothing here leaks into the app pages.
   ============================================================ */

body.lx {
  /* Тёмно-синяя палитра — та же, что у тёмной темы сайта, только на ступень
     глубже, чтобы фотография в шапке читалась как продолжение страницы. */
  /* ЗЕМЛЯ ТОЖЕ ЗА ТЕМОЙ. Чернила я перевёл, а фон оставил прибитым к чёрному —
     и страница выглядела правильно только потому, что сверху её закрывает
     светом (.pd-glow красит --bg). То есть верный вид держался на постороннем
     слое: убери свет, и в светлой теме главная снова станет чёрной с тёмными
     буквами. Нашли ворота gates/contrast.mjs: они считают подложку по
     предкам, дошли до body и увидели там чёрное там, где глаз видит светлое. */
  --lx-bg:      var(--bg);
  /* Владелец: «не хватает такого же света на главной». Поверхности главной
     были ПЛОТНЫМИ (#0d0d10 поверх #08080b) — почти той же черноты, что фон, и
     страница ниже героя выглядела глухой рядом с остальным сайтом. Теперь они
     ссылаются на общий рецепт стекла: карточка светлее фона, край — волосок.
     Одно место вместо двух десятков правил: --lx-card подставляется во все
     поверхности главной и тарифов. */
  --lx-card:    var(--glass-bg);
  --lx-card-2:  var(--glass-bg-hi);
  --lx-line:    var(--glass-line);
  --lx-line-hi: rgba(255, 255, 255, .18);
  /* ЧЕРНИЛА ГЛАВНОЙ ИДУТ ЗА ТЕМОЙ. Раньше они были прибиты к светлым числам, и
     это сходило с рук, пока фон главной был чёрным в ОБЕИХ темах. Как только
     под страницу лёг общий свет (.pd-glow красит --bg), в светлой теме земля
     стала светлой, а буквы остались белыми — «Plans» и «Free» на тарифах
     пропали почти начисто. Поймано рендером светлой темы, не чтением CSS. */
  --lx-text:    var(--text);
  --lx-dim:     var(--text2);
  /* Выделение — то же, что у всего сайта: в тёмной теме светлая заливка,
     в светлой прежняя синяя. Прибитый светлый цвет давал в светлой теме
     белую надпись на светлой плашке («MOST COMPLETE» пропадала). */
  --lx-blue:    var(--accent);

  background: var(--lx-bg);
  color: var(--lx-text);
  padding-bottom: 0;
}
body.lx::before { display: none; }          /* the app pages' ambient wash doesn't belong here */

/* Шапка на главной СТЕКЛЯННАЯ, как и везде. Прежде она была намеренно
   непрозрачной — сквозь неё просвечивала фотография героя, и меню на главной
   выглядело светлее, чем в остальных разделах. Довод отпал: снимок теперь
   обесцвечен, а стекло стало общим приёмом сайта, и непрозрачная шапка
   выбивалась бы уже она. */
body.lx .app-header { background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--glass-line); }
body.lx .mt-footer  { background: var(--lx-card); border-top-color: var(--lx-line); }

.lx-eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--lx-dim);
  margin-bottom: 14px;
}

/* ── Hero ── */
/* А вот ВНУТРИ героя чернила всегда светлые, какая бы ни была тема: под ними
   тёмная фотография, и тёмные буквы на ней не прочесть. Переопределяем не
   цвет у каждого правила, а сами токены — дальше они наследуются. То же у
   полосы котировок: она лежит на той же фотографии. */
.lx-hero, .lx-strip { --lx-text: #f4f5f7; --lx-dim: #c3c9d2; color: var(--lx-text); }
.lx-hero { position: relative; overflow: hidden; }

/* The artwork sits behind the hero. Two crops: the portrait original on narrow
   screens, a band of it on wide ones — a tall image on a wide hero would show
   only a sliver of sky. */
.lx-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/hero-bg-wide.jpg") center 72% / cover no-repeat;
  /* Сама фотография — синяя, и на главной она занимает весь первый экран:
     сколько ни чисти токены, синим оставался ГЕРОЙ. Обесцвечиваем снимок, а не
     заменяем: кадр остаётся тот же, подобранный, а вуаль под ним рассчитана на
     его яркости — она от обесцвечивания не меняется. Лёгкий контраст вернут
     глубину, которую серый теряет. */
  filter: grayscale(1) contrast(1.06);
}
/* Legibility veil, shaped to the artwork rather than uniform: the sky the headline
   sits on is already near-black, so the veil stays thin up top and thickens only
   across the band the planet's limb crosses. Worst-case white-on-image contrast
   (95th-percentile brightest pixel per zone) is 5.6:1 at its weakest, against a
   4.5:1 requirement. The last stop lands on solid black so the image flows into
   the page instead of ending on a seam. */
.lx-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(8,8,11,.10) 0%, rgba(8,8,11,.06) 26%, rgba(8,8,11,.26) 50%,
    rgba(8,8,11,.36) 72%, rgba(8,8,11,.62) 88%, var(--lx-bg) 100%);
}
@media (max-width: 760px) {
  .lx-hero::before { background-image: url("/hero-bg.jpg"); background-position: center 72%; }
}
.lx-hero-inner { position: relative; z-index: 1; }
.lx-strip { position: relative; z-index: 1; background: rgba(8,8,11,.46); backdrop-filter: blur(8px); }

.lx-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--lx-line);
  background: rgba(255,255,255,.04); font-size: 13px; color: var(--lx-dim);
}
.lx-pill:hover { border-color: var(--lx-line-hi); color: var(--lx-text); }
.lx-pill span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #000;
  background: #fff; padding: 3px 8px; border-radius: 999px;
}

/* Launch field */
.lx-launch {
  position: relative; display: flex; align-items: center; gap: 8px;
  max-width: 560px; margin: 32px auto 0; padding: 7px 7px 7px 20px;
  border-radius: 999px; border: 1px solid var(--lx-line); background: var(--lx-card);
}
.lx-launch:focus-within { border-color: var(--lx-line-hi); }
.lx-launch input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font: 400 15px var(--font); color: var(--lx-text);
}
.lx-launch input::placeholder { color: #6b6f79; }
.lx-launch button {
  flex-shrink: 0; padding: 11px 24px; border: none; border-radius: 999px; cursor: pointer;
  background: #fff; color: #000; font: 600 14.5px var(--font);
}
.lx-launch button:hover { background: #e6e6e6; }

.lx-launch-hits {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 14px;
  padding: 6px; text-align: left; box-shadow: 0 18px 44px rgba(0,0,0,.5);
}
.lx-launch-hits[hidden] { display: none; }
.lx-launch-hits a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
}
.lx-launch-hits a:hover { background: var(--lx-card-2); }
.lx-launch-hits img { width: 22px; height: 22px; border-radius: 50%; }
.lx-launch-hits b { font-size: 13.5px; font-weight: 600; }
.lx-launch-hits i { font-style: normal; font-size: 12.5px; color: var(--lx-dim); }
.lx-launch-hits span {
  margin-left: auto; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--lx-dim); background: rgba(255,255,255,.06); padding: 3px 8px; border-radius: 5px;
}

.lx-hero { padding: 78px 0 0; border-bottom: 1px solid var(--lx-line); }
.lx-hero-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px 54px; text-align: center; }
.lx-hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.06; font-weight: 700;
  letter-spacing: -.035em; margin-bottom: 20px;
}
.lx-sub {
  max-width: 640px; margin: 0 auto; font-size: 16px; line-height: 1.65; color: var(--lx-dim);
}

.lx-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.lx-btn {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; border: 1px solid transparent; transition: .16s;
}
.lx-btn.primary { background: #fff; color: #000; }
.lx-btn.primary:hover { background: #e6e6e6; }
.lx-btn.ghost { border-color: var(--lx-line-hi); color: var(--lx-text); }
.lx-btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.05); }

.lx-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; max-width: 720px; margin: 46px auto 0;
}
.lx-stats b { display: block; font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.lx-stats i { display: block; font-style: normal; font-size: 12px; color: var(--lx-dim); margin-top: 4px; }

/* live quote strip under the hero */
.lx-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  border-top: 1px solid var(--lx-line); overflow-x: auto; scrollbar-width: none;
}
.lx-strip::-webkit-scrollbar { display: none; }
.lx-tick {
  display: flex; align-items: center; gap: 9px; padding: 16px 20px;
  border-right: 1px solid var(--lx-line); white-space: nowrap; color: var(--lx-text); }
.lx-tick:hover { background: var(--lx-card); }
.lx-tick img { width: 22px; height: 22px; border-radius: 50%; }
.lx-tick-name { font-size: 12.5px; font-weight: 600; }
.lx-tick-price { font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; }
.lx-tick-chg { font-size: 12px; font-variant-numeric: tabular-nums; }

/* ── Sections ── */
.lx-sec { max-width: 1120px; margin: 0 auto; padding: 84px 24px 0; }
.lx-sec-head { margin-bottom: 32px; }
.lx-sec-head h2 {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
}
.lx-sec-sub { margin-top: 14px; max-width: 620px; font-size: 15.5px; line-height: 1.65; color: var(--lx-dim); }
.lx-more { font-size: 13.5px; font-weight: 600; color: var(--lx-text); }
.lx-sec-head .lx-more { display: inline-block; margin-top: 12px; }

.lx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; }
/* Карточка — это ссылка, а глобальное правило красит ссылки в акцент, поэтому
   заголовок внутри уезжал в синий. Задаём цвет явно. */
.lx-card {
  display: block; padding: 26px 24px 22px; border-radius: 14px;
  color: var(--lx-text);
  background: var(--lx-card); border: 1px solid var(--lx-line); transition: .16s;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-sheen);
}
.lx-card:hover { border-color: var(--lx-line-hi); background: var(--lx-card-2); }
.lx-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 10px; letter-spacing: -.01em; color: var(--lx-text); }
.lx-card p { font-size: 14px; line-height: 1.6; color: var(--lx-dim); margin-bottom: 16px; }

/* ── Steps ── */
.lx-steps {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--lx-line); border: 1px solid var(--lx-line); border-radius: 14px; overflow: hidden;
}
.lx-steps li { background: var(--lx-card); padding: 26px 22px; }
.lx-steps span {
  display: block; font-size: 12px; font-weight: 700; color: var(--lx-text);
  letter-spacing: .1em; margin-bottom: 12px;
}
.lx-steps b { display: block; font-size: 16px; font-weight: 650; margin-bottom: 8px; }
.lx-steps p { font-size: 13.5px; line-height: 1.6; color: var(--lx-dim); }

/* ── Coverage ── */
.lx-cov { display: grid; gap: 22px; }
.lx-cov-group h4 {
  display: flex; align-items: baseline; gap: 9px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lx-dim); margin-bottom: 12px;
}
.lx-cov-group h4 span { font-size: 11px; color: #5f636d; letter-spacing: 0; }
.lx-cov-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 8px;
  border-radius: 999px; border: 1px solid var(--lx-line); background: var(--lx-card);
  font-size: 12.5px; font-weight: 600; color: var(--lx-text); transition: .14s;
}
.lx-chip:hover { border-color: var(--lx-line-hi); background: var(--lx-card-2); }
.lx-chip img { width: 18px; height: 18px; border-radius: 50%; }
.lx-note { margin-top: 26px; font-size: 13px; line-height: 1.65; color: var(--lx-dim); max-width: 720px; }

/* ── Close ── */
.lx-close {
  max-width: 1120px; margin: 96px auto 0; padding: 66px 24px 78px;
  border-top: 1px solid var(--lx-line); text-align: center;
}
.lx-close h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.03em; }
.lx-close p { margin-top: 12px; font-size: 15px; color: var(--lx-dim); }

/* Idea tiles inherit the landing's surface rather than the app's */
body.lx .mt-tiles { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
body.lx .mt-tile-card { background: var(--lx-card); border-color: var(--lx-line); border-radius: 14px; }
body.lx .mt-tile-card:hover { border-color: var(--lx-line-hi); box-shadow: none; }
body.lx .mt-tile-cover { background: var(--lx-card-2); border-bottom-color: var(--lx-line); }

@media (max-width: 720px) {
  .lx-hero { padding-top: 54px; }
  .lx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .lx-sec { padding-top: 60px; }
  .lx-close { margin-top: 66px; padding: 48px 24px 60px; }
}

/* ── Pricing ── */
.pr-draft {
  max-width: 760px; margin: 0 auto 26px; padding: 12px 16px; border-radius: 10px;
  background: rgba(232,184,75,.10); border: 1px solid rgba(232,184,75,.30);
  color: #e8b84b; font-size: 13px; line-height: 1.6; text-align: center;
}
.pr-toggle {
  display: flex; gap: 2px; margin: 0 auto 30px; width: max-content;
  background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 999px; padding: 3px;
}
.pr-toggle button {
  padding: 7px 20px; border: none; border-radius: 999px; background: none; cursor: pointer;
  font: 600 13px var(--font); color: var(--lx-dim);
}
.pr-toggle button.active { background: #fff; color: #000; }

.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.pr-card {
  position: relative; padding: 28px 24px; border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-sheen);
  text-align: center;
}
.pr-card.featured { border-color: var(--lx-blue); background: var(--lx-card-2); }
.pr-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--lx-blue); color: var(--on-accent); font: 700 10px var(--font);
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.pr-card h3 { font-size: 19px; font-weight: 650; margin-bottom: 6px; }
.pr-tag { font-size: 13px; color: var(--lx-dim); line-height: 1.55; min-height: 40px; }
.pr-price { margin: 18px 0 20px; }
.pr-price b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.pr-price b.pr-unset { color: var(--lx-dim); }
.pr-price i { display: block; font-style: normal; font-size: 12px; color: var(--lx-dim); margin-top: 4px; }
.pr-card .lx-btn { width: 100%; justify-content: center; }

.pr-h3 { margin: 64px 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pr-matrix-wrap { overflow-x: auto; border: 1px solid var(--lx-line); border-radius: 14px; }
.pr-matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.pr-matrix th, .pr-matrix td { padding: 12px 16px; border-bottom: 1px solid var(--lx-line); text-align: center; }
.pr-matrix th:first-child, .pr-matrix td:first-child { text-align: left; color: var(--lx-dim); }
.pr-matrix thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pr-matrix tbody tr:last-child td { border-bottom: none; }
.pr-yes { color: #089981; font-weight: 700; }
.pr-no  { color: var(--text3); }   /* «не входит»: приглушённо, но читаемо в обеих темах */
.pr-val { font-weight: 600; font-variant-numeric: tabular-nums; }

.pr-faq { border: 1px solid var(--lx-line); border-radius: 14px; overflow: hidden; }
.pr-q { border-bottom: 1px solid var(--lx-line); }
.pr-q:last-child { border-bottom: none; }
.pr-q summary {
  padding: 16px 20px; cursor: pointer; font-size: 14.5px; font-weight: 600;
  background: var(--lx-card); list-style: none;
}
.pr-q summary::-webkit-details-marker { display: none; }
.pr-q summary:hover { background: var(--lx-card-2); }
.pr-q p { padding: 0 20px 18px; font-size: 13.5px; line-height: 1.65; color: var(--lx-dim); background: var(--lx-card); }
