/* ============================================================
   Landing pages (ICP) — shared layout on top of base.css tokens.
   All colours come from base.css :root tokens, so light/dark
   (data-theme) works automatically. Scoped under .lp / .lp-*.
   ============================================================ */

.lp {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.lp section { scroll-margin-top: 80px; }

/* ---- Hero ---- */
.lp-hero {
  padding: 112px 0 56px; /* clears the sticky site header */
  border-bottom: 1px solid var(--line);
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 12px;
  margin-bottom: 22px;
}
.lp-h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 18ch;
  text-wrap: balance;
}
.lp-h1 .accent { color: var(--accent); }
.lp-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--mute);
  max-width: 60ch;
  margin: 0 0 28px;
}
.lp-sub strong { color: var(--ink); font-weight: 600; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- Economics callout ---- */
.lp-econ {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0;
  padding: 20px 22px;
  max-width: 640px;
}
.lp-econ .k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 6px;
}
.lp-econ p { margin: 0; color: var(--ink); line-height: 1.55; font-size: 16px; }
.lp-econ .big { color: var(--accent); font-weight: 700; }

/* ---- Generic section ---- */
.lp-sec { padding: 56px 0; border-bottom: 1px solid var(--line); }
.lp-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lp-h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 24ch;
  text-wrap: balance;
}

/* ---- Card grid (pains / answers) ---- */
.lp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  padding: 22px;
}
.lp-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.lp-card p { margin: 0; color: var(--mute); line-height: 1.55; font-size: 15px; }
.lp-card .arrow { color: var(--accent); margin-right: 6px; font-weight: 700; }

/* ---- Steps ---- */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.lp-step { border: 1px solid var(--line); border-radius: 0; padding: 22px; background: var(--surface); }
.lp-step .n {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid var(--line); border-radius: 0;
  width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 14px;
}
.lp-step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.lp-step p { margin: 0; color: var(--mute); line-height: 1.5; font-size: 14px; }

/* ---- Trust block ---- */
.lp-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-trust .item { display: flex; gap: 12px; align-items: flex-start; }
.lp-trust .item .mark { color: var(--accent); font-weight: 700; margin-top: 2px; }
.lp-trust .item p { margin: 0; color: var(--mute); line-height: 1.55; font-size: 15px; }
.lp-trust .item p strong { color: var(--ink); font-weight: 600; }

/* ---- FAQ ---- */
.lp-faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.lp-faq-item:first-child { border-top: 1px solid var(--line); }
.lp-faq-item h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.lp-faq-item p { margin: 0; color: var(--mute); line-height: 1.6; font-size: 15px; }

/* ---- Final CTA ---- */
.lp-final {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  margin-top: 56px;
}
.lp-final h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--ink); margin: 0 0 12px; letter-spacing: -0.015em; }
.lp-final p { color: var(--mute); margin: 0 auto 24px; max-width: 46ch; line-height: 1.6; }
.lp-final .lp-cta-row { justify-content: center; }

/* ---- Related links ---- */
.lp-related { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-related a {
  font-family: var(--mono); font-size: 13px;
  color: var(--mute); text-decoration: none;
  border: 1px solid var(--line); border-radius: 0; padding: 8px 14px;
  transition: color .15s, border-color .15s;
}
.lp-related a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 720px) {
  .lp-grid, .lp-steps, .lp-trust { grid-template-columns: minmax(0, 1fr); }
  .lp-hero { padding: 88px 0 40px; }
}

/* Cabinet login link in the shared header (nav) — muted, distinct from the lead CTA. */
.nav-login { font-size: 13px; color: var(--mute); text-decoration: none; letter-spacing: .01em; white-space: nowrap; transition: color .15s; }
.nav-login:hover { color: var(--accent); }
@media (max-width: 600px) { .nav-login { display: none; } }

/* ============================================================
   Светлая тема (дефолт): лендинг-акценты. На бумаге --accent =
   чернила, поэтому фирменный цвет возвращаем адресно — та же
   зелёная семья, что у панелей главной (#5FA82B/#2E7D46/#4E8A16),
   и лайм-маркер для акцента в H1 (как у hero главной).
   ============================================================ */
html[data-theme="light"] .lp-h1 { line-height: 1.12; }
html[data-theme="light"] .lp-h1 .accent {
  color: #0A0A0B;
  background-image: linear-gradient(#C6FF5A, #C6FF5A);
  background-repeat: no-repeat;
  background-size: 100% 1.0em;
  background-position: left 0 bottom 0;
  padding: 0 10px; margin-left: -10px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html[data-theme="light"] .lp-label { color: #2E7D46; }
html[data-theme="light"] .lp-econ { border-left-color: #8FCE1E; }
html[data-theme="light"] .lp-econ .big { color: #2E7D46; }
html[data-theme="light"] .lp-card .arrow { color: #2E7D46; }
html[data-theme="light"] .lp-step .n { color: #2E7D46; border-color: rgba(95, 168, 43, 0.35); }
html[data-theme="light"] .lp-trust .mark { color: #2E7D46; }
html[data-theme="light"] .lp-related a:hover { color: #2E7D46; border-color: #8FCE1E; }

/* ===== Визуалы шагов «Путь одного платежа» (живые артефакты, 13.07) ===== */
.lp-step .step-art {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 116px; justify-content: center;
}
.step-art .art-cap {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em;
  color: var(--mute); text-align: center;
}
.step-art .qr { width: 64px; height: 64px; }
.step-art .qr rect, .step-art .qr .f rect { fill: var(--ink); stroke: var(--ink); }
.step-art .qr .f rect[fill="none"] { fill: none; }
.step-art .art-rows {
  width: 100%;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 7px;
}
.step-art .art-rows .r {
  display: flex; justify-content: space-between; gap: 10px;
  border-bottom: 1px dashed var(--line); padding-bottom: 6px;
}
.step-art .art-rows .r:last-child { border-bottom: none; padding-bottom: 0; }
.step-art .art-rows .r span:first-child { color: var(--mute); }
.step-art .okmark { width: 46px; height: 46px; stroke: var(--accent); }
html[data-theme="light"] .step-art .okmark { stroke: #2E7D46; }
