/* The landing page on the apex.
   ⚠️ Loaded ON TOP of site.css, never instead of it: the tokens, the brand mark and the buttons are
   shared with the invitation page at /i/<code>, and that page must keep working untouched. Everything
   here is prefixed `lp-` or scoped under `.lp` for the same reason — site.css's `.page` is the
   invitation's 480 px column, and a landing page that reused it would inherit the wrong width.
   Dark mode needs no block of its own: every colour below is one of site.css's variables, which the
   media query there already flips. */

.lp {
  --lp-max: 1120px;
  --lp-gutter: 24px;
}

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

/* ── Header ─────────────────────────────────────────────────────────────── */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}

.lp-header .lp-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-nav {
  display: none;
  gap: 28px;
}
.lp-nav a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.lp-nav a:hover { color: var(--primary); }

.lp-header-actions { display: flex; align-items: center; gap: 12px; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.lp-section { padding: 72px 0; }
.lp-section.tinted { background: var(--surface-tinted); }

.lp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-surface-variant);
}

.lp-h2 {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 8px 0 0;
}

.lp-lead {
  color: var(--on-surface-variant);
  font-size: 16px;
  margin: 16px 0 0;
  max-width: 62ch;
}

.lp-head { margin-bottom: 44px; }
.lp-head.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.lp-head.center .lp-lead { margin-left: auto; margin-right: auto; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.lp-hero { padding: 48px 0 72px; }

.lp-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--primary-fixed);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.lp-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--primary);
  flex: none;
}

.lp-h1 {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin: 24px 0 0;
}

.lp-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--on-surface-variant);
  margin: 20px 0 0;
  max-width: 56ch;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}
.lp-cta-row .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

.lp-ticks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--on-surface-variant);
}
.lp-ticks li { display: flex; align-items: center; gap: 8px; }
.lp-ticks svg { color: var(--primary); flex: none; }

/* ── The phone ──────────────────────────────────────────────────────────── */

.lp-phone-slot { display: flex; justify-content: center; position: relative; }

.lp-phone {
  width: 100%;
  max-width: 330px;
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 32, 70, 0.14);
}
.lp-screen {
  background: var(--background);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--on-surface-variant);
  padding: 0 4px;
}
.lp-statusbar strong { color: var(--on-surface); font-family: Manrope, Inter, sans-serif; }

.lp-appbar { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.lp-appbar-mark {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.lp-appbar-title { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 12px; color: var(--primary); }
.lp-appbar-sub { font-size: 10px; color: var(--on-surface-variant); }

.lp-tile {
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.lp-tile-label { font-size: 10px; color: var(--on-surface-variant); }
.lp-tile-value { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 14px; color: var(--primary); }
.lp-tile-note { font-size: 9px; color: var(--on-surface-variant); }

.lp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.lp-alert { display: flex; align-items: center; gap: 10px; }
.lp-alert-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  background: var(--primary-fixed);
  color: var(--primary);
}
.lp-alert-icon.warn { background: #ffdad6; color: #93000a; }
.lp-alert-title { font-size: 11px; font-weight: 700; color: var(--on-surface); }
.lp-alert-sub { font-size: 9px; color: var(--on-surface-variant); }

.lp-capsule {
  position: absolute;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px;
  max-width: 220px;
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 32, 70, 0.12);
}
.lp-capsule-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-fixed);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.lp-capsule .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-surface-variant); font-weight: 600; }
.lp-capsule .v { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 13px; color: var(--primary); }
.lp-capsule .n { font-size: 10px; color: var(--on-surface-variant); }

/* ── Cards, pillars, steps ──────────────────────────────────────────────── */

.lp-grid3 { display: grid; gap: 24px; }

.lp-card {
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.lp-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex: none;
}
.lp-icon.soft { background: var(--primary-fixed); color: var(--primary); }

.lp-card h3 {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
  margin: 0 0 10px;
}
.lp-card p { color: var(--on-surface-variant); font-size: 15px; }

.lp-inset {
  background: var(--background);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.lp-inset .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-inset .strong { font-weight: 700; color: var(--primary); }
.lp-inset .dim { color: var(--on-surface-variant); }

.lp-bar { height: 8px; border-radius: 4px; background: var(--outline); overflow: hidden; }
.lp-bar > span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

.lp-chip {
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--primary-fixed);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.lp-checks { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-checks li { display: flex; gap: 10px; font-size: 14px; }
.lp-checks svg { color: var(--primary); flex: none; margin-top: 2px; }

.lp-step-no {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--outline);
  margin-bottom: 16px;
  user-select: none;
}

/* ── Role tabs ──────────────────────────────────────────────────────────── */

.lp-tabs { display: flex; justify-content: center; margin-bottom: 36px; }
.lp-tablist {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius);
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
}
.lp-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9px;
  background: transparent;
  color: var(--on-surface-variant);
}
.lp-tab[aria-selected="true"] { background: var(--primary); color: var(--on-primary); font-weight: 700; }

.lp-panel[hidden] { display: none; }
.lp-panel { display: grid; gap: 28px; align-items: start; }

.lp-point { display: flex; gap: 16px; align-items: flex-start; }
.lp-point .lp-icon { width: 44px; height: 44px; margin: 0; }
.lp-point h3 { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 17px; color: var(--primary); margin: 0 0 6px; }
.lp-point p { margin: 0; font-size: 14px; color: var(--on-surface-variant); }
.lp-points { display: flex; flex-direction: column; gap: 20px; }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.lp-plan {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.lp-plan .lp-trial {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--primary);
  line-height: 1.1;
}
.lp-plan .lp-checks { text-align: left; margin-top: 28px; }
.lp-plan .button { margin-top: 28px; }

/* ── Final call ─────────────────────────────────────────────────────────── */

.lp-final {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
}
.lp-final h2 {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.12;
  margin: 0;
  color: var(--on-primary);
}
.lp-final p { margin: 18px auto 0; max-width: 56ch; color: var(--primary-fixed); font-size: 17px; }
.lp-final .lp-cta-row { justify-content: center; }
.lp-final .button.primary { background: var(--surface-lowest); color: var(--primary); }
.lp-final .button.secondary { background: var(--primary-container); color: var(--primary-fixed); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.lp-footer { border-top: 1px solid var(--outline); padding: 48px 0 40px; margin-top: 0; }
.lp-footer-grid { display: grid; gap: 32px; }
.lp-footer h4 {
  font-family: Manrope, Inter, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 14px;
}
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-footer a { color: var(--on-surface-variant); text-decoration: none; font-size: 14px; }
.lp-footer a:hover { color: var(--primary); }
.lp-footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  font-size: 13px;
  color: var(--on-surface-variant);
}

/* ── Wider screens ──────────────────────────────────────────────────────── */

@media (min-width: 720px) {
  .lp-section { padding: 88px 0; }
  .lp-grid3 { grid-template-columns: repeat(3, 1fr); }
  .lp-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .lp-capsule { display: flex; }
}

@media (min-width: 960px) {
  .lp-nav { display: flex; }
  .lp-hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .lp-panel { grid-template-columns: 1fr 1fr; gap: 40px; }
  .lp-phone-slot { justify-content: flex-end; }
}

/* site.css sets a tinted surface only in dark mode terms; the landing needs one in both. */
:root { --surface-tinted: #f4f1f0; }
@media (prefers-color-scheme: dark) {
  :root { --surface-tinted: #191919; }
  .lp-alert-icon.warn { background: #5c0d0c; color: #ffdad6; }
  .lp-phone { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
  .lp-final .button.secondary { background: #2c4a78; }
}

/* ── Helpers the markup leans on ────────────────────────────────────────── */
/* Inline styles were pulled out of index.html so the page carries structure and this file carries
   looks — the same split site.css already keeps for the invitation page. */

.lp-button-sm { padding: 10px 18px; font-size: 14px; }

/* «Скоро» is a span, not a link: there is nothing behind it yet, and a dead <a> invites a click that
   does nothing and reads as broken. */
.lp-soon { cursor: default; opacity: 0.85; }

.lp-notice { margin-top: 12px; }
.lp-notice-onprimary { color: var(--primary-fixed); }

.lp-inset-top { margin-top: 0; }
.lp-plan-lead { margin-top: 12px; }
.lp-footer-about { margin-top: 14px; max-width: 38ch; }

.lp-appbar-sub,
.lp-alert-title,
.lp-alert-sub,
.lp-tile-value,
.lp-tile-label,
.lp-tile-note,
.lp-capsule .k,
.lp-capsule .v,
.lp-capsule .n { display: block; }

.lp-capsule-a { left: -10px; top: 56px; }
.lp-capsule-b { right: -14px; bottom: 36px; }
