/* Лендинг для гостей (landing.html / landing.en.html) — направление «Радар».
   Токены и компоненты — ds.css (тема по data-theme на <html>, как в приложении).
   replay.css здесь не подключается: страница самостоятельная. */
.lp-redirect body { visibility: hidden; }

html { background: var(--ds-bg); -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--ds-bg); color: var(--ds-text);
  font: 400 var(--ds-fs-base)/1.55 var(--font-text);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@supports (overflow: clip) { body.lp { overflow-x: clip; } }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp [hidden] { display: none !important; }
.lp img, .lp svg { display: block; max-width: 100%; }
.lp a:not(.ds-btn) { color: inherit; }
.lp h1, .lp h2, .lp h3, .lp p { margin: 0; }
.lp h1, .lp h2 { font-family: var(--font-display); font-weight: 300; }
.lp :focus-visible { outline: 1px solid var(--ds-text); outline-offset: 3px; border-radius: 2px; }
.lp code { font: 600 0.92em var(--font-text); padding: 1px 6px; border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-s); white-space: nowrap; }

.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--ds-gutter); }

/* видимость кнопок по состоянию входа (/about у вошедшего) */
.lp[data-auth="in"] .lp-out, .lp[data-auth="out"] .lp-in { display: none !important; }

/* ---------- шапка ---------- */
.lp-top {
  position: sticky; top: 0; z-index: 20;
  background: var(--ds-bg); background: color-mix(in srgb, var(--ds-bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ds-line);
  padding-top: env(safe-area-inset-top, 0px);
}
.lp-top-in { display: flex; align-items: center; gap: 8px; height: 60px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font: 300 0.9375rem/1 var(--font-display); letter-spacing: -0.01em; }
.lp-brand svg { width: 26px; height: 26px; flex: none; }
.lp-top .lang-switch { margin-left: auto; }

/* ---------- hero ---------- */
.lp-hero { position: relative; padding: 28px 0 44px; overflow: hidden; isolation: isolate; }
.lp-rings {
  position: absolute; z-index: -1; pointer-events: none; right: -40vw; top: -10vw; width: 120vw; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 79px, var(--ds-line) 79px 80px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}
.lp-hero-grid { display: grid; gap: 32px; }
.lp-kicker { display: flex; align-items: center; gap: 12px; }
.lp-kicker .ds-ruler { flex: 1; max-width: 160px; }
.lp h1 { margin: 14px 0 16px; max-width: 13em; font-size: var(--ds-fs-2xl); line-height: 1.08; letter-spacing: -0.025em; }
.lp h1 em { font-style: normal; color: var(--ds-text-2); }
.lp-lead { font-size: var(--ds-fs-md); color: var(--ds-text-2); max-width: 34em; }
.lp-cta { display: grid; gap: 10px; margin-top: 24px; }
.lp-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: var(--ds-fs-sm); color: var(--ds-text-2); }
.lp-note .ds-led { margin-top: 1px; }
.lp-lang-note { color: var(--ds-text-3); font-size: var(--ds-fs-xs); }

.lp-instrument { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.lp-instrument .ds-scope { max-width: 520px; margin: 0 auto; }
.lp-readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; border-top: 1px solid var(--ds-line); }
.lp-readout > div { padding: 10px 0 0; min-width: 0; }
.lp-readout > div + div { border-left: 1px solid var(--ds-line); padding-left: 12px; }
.lp-readout b { display: block; margin-top: 6px; font: 300 1.0625rem/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-readout .is-ct { color: var(--ds-ct-text); }
.lp-readout .is-bad { color: var(--ds-bad); }

/* карточка эпизода под окуляром — макет без данных матча */
.lp-ep { margin-top: 16px; padding: 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); background: var(--ds-surface); }
.lp-ep-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-ep-head .ds-label { margin-left: auto; }
.lp-ep-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.lp-ep p { font-size: var(--ds-fs-sm); color: var(--ds-text-2); }
.lp-ep-rows { margin: 12px 0 0; padding: 0; list-style: none; }
.lp-ep-rows li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ds-line); font-size: var(--ds-fs-sm); }
.lp-ep-rows b { font-weight: 600; }
.lp-ep-rows span { color: var(--ds-text-2); }
.lp-ep .ds-btn { margin-top: 12px; }
.lp-mock-cap { display: none; margin-top: 12px; color: var(--ds-text-3); font-size: var(--ds-fs-sm); }
.lp-mock-btn[hidden] + .lp-mock-cap { display: block; }

/* сцена на радаре (js/hero.js): карта всегда тёмная — цвета фиксированные */
.hs-ct-dot { fill: #5b9bd5; }
.hs-t-dot { fill: #e0b441; }
.hs-trail { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 5; opacity: .75; }
.hs-trail.hs-ct { stroke: #5b9bd5; }
.hs-trail.hs-t { stroke: #e0b441; }
.hs-smoke { fill: rgba(228, 220, 208, .16); stroke: rgba(228, 220, 208, .35); stroke-width: 1; stroke-dasharray: 2 3; }
.hs-shot { stroke: rgba(255, 255, 255, .85); stroke-width: 1; }
.hs-dead { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.hs-err-ring { fill: none; stroke: #f2674e; stroke-width: 1.2; }
.hs-err-line { fill: none; stroke: #f2674e; stroke-width: 1; }
.hs-err-label { fill: #f2674e; font: 600 17px var(--font-text); letter-spacing: .14em; text-transform: uppercase; }
.hs-map-label { fill: rgba(236, 229, 218, .55); font: 300 34px var(--font-display); }
.hs-ping { fill: none; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: hs-ping 2.6s var(--ds-ease) infinite; }
@keyframes hs-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- секции ---------- */
.lp-sec { padding: 56px 0; border-top: 1px solid var(--ds-line); }
.lp-sec-head { display: grid; gap: 10px; margin-bottom: 28px; }
.lp h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }

.lp-feat { display: grid; gap: 1px; background: var(--ds-line); border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); overflow: hidden; }
.lp-feat article { display: grid; gap: 10px; align-content: start; padding: 22px 20px 24px; background: var(--ds-bg); }
.lp-feat-h { display: flex; align-items: center; justify-content: space-between; }
.lp-feat svg { width: 28px; height: 28px; fill: none; stroke: var(--ds-text); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-feat h3 { margin-top: 6px; font: 600 var(--ds-fs-md)/1.3 var(--font-text); }
.lp-feat p { font-size: var(--ds-fs-sm); color: var(--ds-text-2); }

.lp-mini { display: grid; margin: 20px 0 0; padding: 0; list-style: none; }
.lp-mini li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--ds-line); }
.lp-mini svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--ds-text-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.lp-mini b { font-weight: 600; }
.lp-mini span { font-size: var(--ds-fs-sm); color: var(--ds-text-2); }

.lp-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.lp-steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 0 0 28px; }
.lp-steps li::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1px; background: repeating-linear-gradient(var(--ds-line-3) 0 1px, transparent 1px 6px); }
.lp-steps li:last-child { padding-bottom: 0; }
.lp-steps li:last-child::before { display: none; }
.lp-step-n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ds-line-2); font: 500 0.9375rem/1 var(--font-mono); }
.lp-step-n::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed var(--ds-line); }
.lp-steps li:last-child .lp-step-n { border-color: var(--ds-text); box-shadow: 0 0 18px -6px var(--ds-glow); }
.lp-steps b { display: block; margin: 6px 0; font: 600 var(--ds-fs-md)/1.3 var(--font-text); }
.lp-steps span { font-size: var(--ds-fs-sm); color: var(--ds-text-2); }

/* тарифы Free / Pro */
.lp-prices { display: grid; gap: 12px; }
.lp-price {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 18px;
  border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); background: var(--ds-surface); min-width: 0;
}
.lp-price.is-pro { border-color: var(--ds-line-3); background: var(--ds-surface-2); }
.lp-price h3 { margin: 0; font: 300 var(--ds-fs-lg)/1.2 var(--font-display); letter-spacing: -0.01em; }
.lp-price-val { display: flex; align-items: baseline; gap: 8px; }
.lp-price-val b { font: 300 var(--ds-fs-xl)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lp-price-val span, .lp-price-alt { color: var(--ds-text-3); font-size: var(--ds-fs-sm); }
.lp-price-alt { margin: -4px 0 0; }
.lp-price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lp-price li { position: relative; padding-left: 18px; color: var(--ds-text-2); }
.lp-price li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 1px; background: var(--ds-text-3); }
.lp-price.is-pro li { color: var(--ds-text); }
.lp-price.is-pro li::before { background: var(--ds-text); }
.lp-price .ds-btn { margin-top: auto; align-self: flex-start; }
.lp-price-note { margin: 16px 0 0; max-width: 46em; color: var(--ds-text-3); font-size: var(--ds-fs-xs); line-height: 1.55; }
.lp-price-note a { color: var(--ds-text-2); }
@media (min-width: 720px) { .lp-prices { grid-template-columns: 1fr 1fr; max-width: 820px; } }

.lp-free { display: grid; gap: 28px; align-items: center; }
.lp-free-dial { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.lp-free-dial .ds-dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-free-arc { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); transform: rotate(-90deg); }
.lp-free-arc .a-track { fill: none; stroke: var(--ds-line-2); stroke-width: .6; }
.lp-free-arc .a-val { fill: none; stroke: var(--ds-text); stroke-width: 1; filter: drop-shadow(0 0 2px var(--ds-glow)); }
.lp-free-big { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.lp-free-big b { display: block; font: 300 4.5rem/1 var(--font-display); letter-spacing: -0.04em; }
.lp-free-big .ds-label { display: block; margin-top: 8px; }
.lp-free-dial.is-text .lp-free-big b { display: none; }
.lp-free-dial.is-text .lp-free-big .ds-led { display: inline-block; width: 10px; height: 10px; }
.lp-free-big .ds-led { display: none; }
.lp-free h2 { margin: 10px 0 14px; }
.lp-free p { color: var(--ds-text-2); max-width: 36em; }
.lp-free p + p { margin-top: 10px; }

/* ---------- футер ---------- */
.lp-foot { border-top: 1px solid var(--ds-line); padding: 24px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: var(--ds-fs-xs); color: var(--ds-text-3); }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.lp-foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.lp-foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.lp-foot a { color: var(--ds-text-2); text-decoration: none; }
.lp-foot a:hover { color: var(--ds-text); }

/* ---------- закреплённая панель входа — только на телефоне ---------- */
.lp-bar { display: none; }
@media (max-width: 719.98px) {
  .lp-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px var(--ds-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ds-bg); background: color-mix(in srgb, var(--ds-bg) 88%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--ds-line);
    transform: translateY(100%); visibility: hidden; opacity: 0;
    transition: transform .3s var(--ds-ease), opacity .3s var(--ds-ease), visibility 0s linear .3s;
  }
  .lp-bar.is-on { transform: none; visibility: visible; opacity: 1; transition-delay: 0s; }
  .lp-bar .ds-btn { flex: 1 1 0; min-height: 46px; padding: 0 10px; }
  .lp-bar .ds-btn-primary { flex: 1.3 1 0; }
  .lp-bar-on { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* появление первого экрана */
.lp-rise { animation: lp-rise .7s var(--ds-ease) both; }
.lp-rise-2 { animation-delay: .08s; } .lp-rise-3 { animation-delay: .16s; } .lp-rise-4 { animation-delay: .24s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lp-rise, .hs-ping { animation: none; }
  .lp-bar { transition: none; }
}

@media (min-width: 720px) {
  .lp-hero { padding: 64px 0 72px; }
  .lp-cta { grid-auto-flow: column; justify-content: start; }
  .lp-feat { grid-template-columns: repeat(2, 1fr); }
  .lp-mini { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}
@media (min-width: 1024px) {
  .lp-hero-grid { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 48px; }
  .lp-hero-grid > div:first-child { position: sticky; top: 120px; padding-top: 56px; }
  .lp-instrument .ds-scope { max-width: 480px; }
  .lp-rings { right: -30%; top: -40%; width: 1200px; }
  .lp-feat { grid-template-columns: repeat(4, 1fr); }
  .lp-mini { grid-template-columns: repeat(3, 1fr); }
  .lp-sec-head { grid-template-columns: 1fr 1.4fr; align-items: end; }
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .lp-steps li { grid-template-columns: 1fr; padding: 0; }
  .lp-steps li::before { left: 64px; right: -16px; top: 28px; bottom: auto; width: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--ds-line-3) 0 1px, transparent 1px 6px); }
  .lp-free { grid-template-columns: 300px 1fr; gap: 56px; }
  .lp-free-dial { width: 280px; height: 280px; }
}
