/*
 * Стили всех страниц lepta.ai. Подключается в <head> каждой страницы.
 * Layout: one calm column on paper; the "click → cash" chain is the only graphic, indigo marks money and action.
 */
:root {
  --bg: #FAF8F5; --surface: #FFFFFF; --fg: #0E0E10; --muted: #67676E; --dot: #B9B6B0;
  --line: #E4E2DE; --accent: #3B3F9E; --accent-soft: #ECEDF8; --on-accent: #FAF8F5; --danger: #B4232A;
  --band: #0E0E10; --band-fg: #F2F1EE; --band-muted: #9C9CA4; --band-accent: #8C90F0; --band-line: #2A2A2F;
  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E0E10; --surface: #17171A; --fg: #F2F1EE; --muted: #9C9CA4; --dot: #4A4A52;
  --line: #2A2A2F; --accent: #8C90F0; --accent-soft: #1F2040; --on-accent: #0E0E10; --danger: #FF8A80;
  --band: #17171A; --band-fg: #F2F1EE; --band-muted: #9C9CA4; --band-accent: #8C90F0; --band-line: #2A2A2F;
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0E0E10; --surface: #17171A; --fg: #F2F1EE; --muted: #9C9CA4; --dot: #4A4A52;
  --line: #2A2A2F; --accent: #8C90F0; --accent-soft: #1F2040; --on-accent: #0E0E10; --danger: #FF8A80;
  --band: #17171A; --band-fg: #F2F1EE; --band-muted: #9C9CA4; --band-accent: #8C90F0; --band-line: #2A2A2F;
  color-scheme: dark }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.label { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.wm { font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.wm small { font-size: inherit; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { font-size: 30px; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.bar nav a.nl { text-decoration: none; color: var(--muted); }
.bar nav a.nl:hover { color: var(--fg); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.lang a { font: 600 12px var(--body); letter-spacing: .04em; text-decoration: none; color: var(--muted); padding: 4px 10px; border-radius: 99px; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="page"] { background: var(--fg); color: var(--bg); }
@media (max-width: 760px) { .bar nav a.nl { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--body); text-decoration: none; padding: 13px 20px; border-radius: 10px; border: 1px solid transparent; transition: transform .15s, background .15s; white-space: nowrap; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* hero */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(40px, 6vw, 72px); display: grid; gap: 28px; }
.tag { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--muted); letter-spacing: -0.01em; }
.hero h1 { font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.04em; max-width: 21ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* chain */
.chain { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 32px; }
.chain svg { width: 100%; height: auto; display: block; overflow: visible; }
.chain .ln { stroke: var(--line); }
.chain .dt { fill: var(--dot); }
.chain .end { fill: var(--accent); }
.chain .pulse { fill: var(--accent); }
.chain text { font-family: var(--body); font-size: 15px; fill: var(--muted); }
.chain text.fin { fill: var(--fg); font-weight: 600; }
.chain text.sub { font-size: 12.5px; }
@media (max-width: 640px) { .chain text.sub { display: none; } .chain text { font-size: 34px; } .chain .ln { stroke-width: 5; } }
@media (prefers-reduced-motion: no-preference) {
  .chain .pulse { animation: travel 4.2s cubic-bezier(.55,.1,.35,1) infinite; }
  @keyframes travel { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 80% { transform: translateX(var(--run)); opacity: 1; } 92%,100% { transform: translateX(var(--run)); opacity: 0; } }
  .chain .end { animation: ping 4.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes ping { 0%,78% { transform: scale(1); } 86% { transform: scale(1.35); } 100% { transform: scale(1); } }
}

/* sections */
section.s { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.s-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.s-head h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; line-height: 1.1; }
.s-head p { color: var(--muted); font-size: 17px; max-width: 58ch; }

/* cards 2 × 2 (or 3 across with .c3): the 1px gap over the line-coloured background draws the dividers */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 26px 24px; display: grid; gap: 10px; align-content: start; min-width: 0; background: var(--surface); }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.card p { color: var(--muted); font-size: 15px; }
.card .fix { color: var(--fg); font-size: 15px; padding-top: 10px; border-top: 1px dashed var(--line); }
.card .fix b { color: var(--accent); font-weight: 600; }
@media (max-width: 960px) { .cards.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards, .cards.c3 { grid-template-columns: 1fr; } }

/* products */
.prods { display: grid; }
.prod { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px 32px; padding-block: 24px; border-top: 1px solid var(--line); align-items: baseline; }
.prod:last-child { border-bottom: 1px solid var(--line); }
.prod .wm { font-size: 30px; }
.prod h3 { font-size: 20px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.prod p { color: var(--muted); max-width: 62ch; margin-top: 4px; }
.prod .tagline { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .prod { grid-template-columns: 1fr; } .prod .wm { font-size: 26px; } }
.more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.extra { background: var(--accent-soft); border-radius: 14px; padding: 22px 24px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.extra b { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; }
.extra p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .extras { grid-template-columns: 1fr; } }

/* why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.why div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.why h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.why p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .why { grid-template-columns: 1fr; } }

/* pilot */
.pilot { background: var(--accent-soft); border-radius: 20px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; }
.big { display: grid; gap: 14px; align-content: start; }
.big .n { font-family: var(--display); font-weight: 800; font-size: clamp(110px, 14vw, 160px); line-height: .82; letter-spacing: -0.06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.big .bl { height: 10px; width: 100%; max-width: 220px; border-radius: 5px; background: var(--accent); }
.big .cap { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { display: grid; gap: 8px; align-content: start; counter-increment: st; min-width: 0; }
.steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font: 600 14px var(--body); }
.steps b { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.steps span { color: var(--muted); font-size: 15px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.price strong { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 15px; }
.pilot-right { display: grid; gap: 28px; align-content: start; min-width: 0; }
@media (max-width: 860px) { .pilot { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } .price { grid-column: auto; } }

/* founder */
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; max-width: 860px; }
.mono { width: 88px; height: 88px; border-radius: 22px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font: 800 34px var(--display); letter-spacing: -0.04em; }
.founder h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.founder .role { color: var(--muted); margin-top: 2px; }
.founder .role b { color: var(--accent); font-weight: 600; }
.founder ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.founder li { padding-left: 22px; position: relative; max-width: 62ch; }
.founder li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 3px; border-radius: 2px; background: var(--accent); }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }

/* faq: question on the left, answer on the right, like the product list */
.faq { display: grid; }
.qa { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 8px 32px; padding-block: 22px; border-top: 1px solid var(--line); align-items: baseline; }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.qa p { color: var(--muted); max-width: 62ch; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }

/* inner pages: smaller hero with the path back to the main page */
.hero.page { padding-block: clamp(32px, 6vw, 80px) clamp(36px, 5vw, 64px); gap: 22px; }
.hero.page h1 { font-size: clamp(32px, 4.4vw, 56px); max-width: 22ch; }
.crumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--fg); }
.crumb .wm { font-size: 20px; color: var(--fg); }

/* numbered steps of "how it works" */
.flow { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: fl; }
.flow li { counter-increment: fl; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px 20px; padding-block: 22px; border-top: 1px solid var(--line); }
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(fl); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font: 600 15px var(--body); }
.flow h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; padding-top: 4px; }
.flow p { color: var(--muted); max-width: 62ch; }

/* a highlighted line with one action */
.callout { margin-top: 32px; background: var(--accent-soft); border-radius: 16px; padding: clamp(22px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.callout div { display: grid; gap: 4px; max-width: 62ch; }
.callout b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.callout p { color: var(--muted); }

/* links to the other products */
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rel a { display: grid; gap: 8px; align-content: start; text-decoration: none; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s; min-width: 0; }
.rel a:hover { border-color: var(--accent); }
.rel .wm { font-size: 22px; line-height: 1.15; }
.rel span { color: var(--muted); font-size: 14px; }

/* WhatsApp link generator */
.tool { margin-bottom: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.tool form { display: grid; gap: 20px; align-content: start; min-width: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { color: var(--muted); font-size: 13.5px; }
.field input, .field textarea { font: 16px/1.45 var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; min-width: 0; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 500 13.5px var(--body); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.chips button:hover { border-color: var(--fg); }
.out { display: grid; gap: 14px; align-content: start; min-width: 0; }
.qr { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; place-items: center; aspect-ratio: 1; }
.qr svg { width: 100%; height: auto; display: block; }
.qr .none { color: #67676E; font-size: 14px; text-align: center; padding: 16px; }
.linkbox { font: 13.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.linkbox.empty, .linkbox.msg { font: 15px/1.5 var(--body); word-break: normal; overflow-wrap: anywhere; }
.linkbox.empty { color: var(--muted); }
.linkbox.msg { white-space: pre-wrap; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-actions .btn { flex: 1 1 auto; justify-content: center; }
.tool-actions .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.note { color: var(--muted); font-size: 13.5px; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } .qr { max-width: 300px; width: 100%; justify-self: center; } }

/* contact band */
.band { background: var(--band); color: var(--band-fg); }
.band .inner { padding-block: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.band h2 { font-weight: 800; font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.04em; line-height: 1.04; }
.band h2 em { font-style: normal; color: var(--band-accent); }
.band p { color: var(--band-muted); margin-top: 16px; max-width: 46ch; }
.contacts { display: grid; gap: 12px; }
.ct { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; padding: 18px 20px; border: 1px solid var(--band-line); border-radius: 12px; transition: border-color .15s, background .15s; }
.ct:hover { border-color: var(--band-accent); background: color-mix(in srgb, var(--band-accent) 8%, transparent); }
.ct .k { font-size: 13px; color: var(--band-muted); }
.ct .v { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ct .ar { color: var(--band-accent); font-size: 22px; }
@media (max-width: 820px) { .band .inner { grid-template-columns: 1fr; } }

/* footer: products on every page, so search engines and people reach them from anywhere */
footer { background: var(--band); color: var(--band-muted); font-size: 13px; }
footer .inner { border-top: 1px solid var(--band-line); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; align-items: baseline; }
footer .wm { color: var(--band-fg); font-size: 20px; text-decoration: none; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; font-size: 14px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--band-fg); }
footer .legal { grid-column: 1 / -1; }
@media (max-width: 760px) { footer .inner { grid-template-columns: minmax(0, 1fr); } footer nav { justify-content: flex-start; } }
