/* Kokos Hub page: the parts of this page only (the lp- prefix). Plan: .design/DESIGN.md, «План страницы под первый экран П1». */
.px { image-rendering: pixelated; }
.btn { text-decoration: none; }
.lp-logo { width: 28px; height: auto; }
.site-head .lp-head-btn { width: auto; min-height: 40px; font-size: 15px; }
.lp-kicker { color: var(--fg-2); font: 500 14px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.lp-small { color: var(--fg-2); font: var(--t-small); }
figure { margin: 0; }

/* ---------- 1. first screen: the headline huge, one Kokos walking along the raised surface ---------- */
.lp-first { display: flex; flex-direction: column; min-height: calc(min(100svh, 940px) - 68px); }
.lp-first__copy { text-align: center; padding-top: clamp(12px, 2vw, 24px); }
.lp-h1 { max-width: 1240px; margin: 0 auto; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -0.03em; }
.lp-first__copy .t-lead { max-width: 560px; margin: 18px auto 22px; }
.lp-first__copy .btn--primary { width: auto; }
.walk { position: relative; flex: 0 0 var(--walk-h, 440px); margin-top: auto; margin-bottom: 32px; }
.lp-first__copy { margin-bottom: 8px; }
.walk::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; border-radius: 20px; background: var(--bg-1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 0 0 1px rgb(255 255 255 / .07); }
.walk .stop { position: absolute; bottom: 0; width: 0; }
.walk .stop b { position: absolute; left: 0; bottom: 22px; translate: -50% 0; white-space: nowrap; display: flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #8f8d9a; transition: color .4s ease; }
.walk .stop b::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.walk .stop.on b { color: var(--fg-2); }
.walk .stop.cur b::before { background: var(--fg-1); width: 8px; height: 8px; }
.walk .stop.cur b { color: var(--fg-1); }
.walk q { position: absolute; left: 0; bottom: var(--q-b, 296px); translate: -50% 8px; white-space: nowrap; quotes: none; text-align: center;
  font: 600 18px/1.2 var(--font-sans); color: var(--fg-1); opacity: 0; transition: opacity .4s ease, translate .5s cubic-bezier(.23, 1, .32, 1), color .4s ease; }
.walk q.in { opacity: 1; translate: -50% 0; }
.walk q.in.past { color: #8f8d9a; }
.walk q time { display: block; margin-bottom: 5px; font: 500 14px/1 var(--font-sans); color: var(--fg-2); letter-spacing: .04em; }
.walk q.in.past time { color: #6d6b7c; }
.walker { position: absolute; left: 0; bottom: 64px; z-index: 2; }
.walker i { position: absolute; bottom: -6px; width: 124px; height: 12px; border-radius: 50%; background: rgb(0 0 0 / .7); z-index: -1; }
.spr { background-repeat: no-repeat; image-rendering: pixelated; }


/* ---------- 2. comparison ---------- */
.lp-compare > .lp-side { padding: 12px 12px 24px; display: flex; flex-direction: column; gap: 18px; }
.lp-pic43 { aspect-ratio: 4 / 3; border-radius: 16px; }
.lp-side figcaption { padding: 0 12px; color: var(--fg-2); font: var(--t-body); font-size: 17px; }
.lp-side figcaption b { display: block; margin-bottom: 6px; color: var(--fg-1); font: 600 20px/1.2 var(--font-sans); }

/* ---------- 3. split: tags over the cars ---------- */
.lp-robot { aspect-ratio: 16 / 9; }
.lp-tag i { font-style: normal; }
.lp-tag[data-at="1"] { --x: 36.5%; --y: 44%; } .lp-tag[data-at="2"] { --x: 58.4%; --y: 40%; } .lp-tag[data-at="3"] { --x: 81.7%; --y: 46%; }
.lp-steps img[data-at="hood"] { --pic-at: 50% 55%; } .lp-steps img[data-at="gauge"] { --pic-at: 45% 50%; }
.lp-tag { position: absolute; z-index: 2; left: var(--x); top: var(--y); translate: -50% -100%; white-space: nowrap; padding: 7px 10px;
  border-radius: 8px; font: 600 13px/1 var(--font-sans); letter-spacing: .02em; }
.lp-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; translate: -50% -4px; rotate: 45deg; background: inherit; }
.lp-tag.is-yes { background: var(--fg-1); color: #111113; }
.lp-tag.is-no { background: var(--bg-3); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.lp-tags-wait .lp-tag { opacity: 0; translate: -50% calc(-100% + 10px); }
.lp-tag { transition: opacity .5s ease, translate .6s cubic-bezier(.23, 1, .32, 1); }
.lp-brief { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg-1);
  box-shadow: inset 0 0 0 1px var(--line-2); font: 500 16px/1.4 var(--font-sans); }
.lp-brief b { color: var(--fg-2); font: 600 13px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 4. steps rail by the clock: 21:00, 21:40, 21:55; the middle picture leads ---------- */
.lp-steps { list-style: none; margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); align-items: start; }
.lp-steps .steps__object { display: block; min-height: 0; margin-bottom: var(--s-5); }
.lp-steps .frame { height: clamp(200px, 19vw, 280px); border-radius: 16px; }
.lp-steps .frame img { object-position: var(--pic-at, 50% 50%); }
.lp-steps time { display: block; margin-bottom: 10px; color: var(--fg-2); font: 600 15px/1 var(--font-sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.lp-steps h3 { margin: 0; font: 800 clamp(20px, 1.8vw, 26px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.lp-steps p { margin-top: 10px; max-width: 380px; font-size: 17px; }

/* ---------- 5. statement with the signboard ---------- */
.lp-big { max-width: 1100px; font-size: clamp(40px, 7vw, 104px); line-height: .98; letter-spacing: -0.035em; }
.lp-sign { width: min(1080px, 100%); aspect-ratio: 1800 / 1005; margin-top: var(--s-6); }
.lp-board { position: absolute; z-index: 2; left: 46.5%; top: 12.5%; width: 45.5%; height: 50%; display: grid; place-items: center; margin: 0; padding: 0 3%;
  color: var(--ink-board); font: 800 clamp(18px, 3.2vw, 40px)/1.05 var(--font-display); letter-spacing: -0.02em; text-align: center; text-wrap: balance;
  transition: opacity .35s ease; }

/* ---------- 6. development: four steps of what I do, Kokos writes them down ---------- */
.lp-dev { align-items: start; }
.lp-dev .split__text { position: sticky; top: 96px; }
.lp-dev__k { display: flex; align-items: flex-end; height: calc(77px * var(--ks, 2) + 24px); }
.lp-path { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.lp-path li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 20px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.lp-path li:last-child { border-bottom: 1px solid var(--line-2); }
.lp-path b { grid-row: span 2; color: var(--fg-2); font: 800 34px/1 var(--font-display); letter-spacing: -0.03em; }
.lp-path h3 { margin: 0; font: 600 clamp(20px, 1.7vw, 24px)/1.25 var(--font-sans); letter-spacing: -0.012em; }
.lp-path p { margin: 0; max-width: 520px; color: var(--fg-2); font-size: 17px; }

/* ---------- 7. questions: Kokos talks on his surface ---------- */
.lp-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lp-faq__k { position: sticky; top: 96px; }
.lp-pad { display: grid; place-items: end center; height: calc(77px * var(--ks, 2) + 90px); margin-top: var(--s-8); padding-bottom: 40px; border-radius: 20px; background: var(--bg-1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 0 0 1px rgb(255 255 255 / .07); }
.lp-faq .faq summary { min-height: 68px; font-size: 19px; }
.lp-faq .faq details > p { font-size: 17px; max-width: 600px; }

/* ---------- 8. final call: one compact panel, the words on the left, the two questions and the button on the right ---------- */
.lp-final { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3.4vw, 44px); border-radius: 20px; background: var(--bg-1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 0 0 1px rgb(255 255 255 / .07); }
.lp-final__say { display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 32px); }
.lp-final__say .t-section { font-size: clamp(26px, 2.6vw, 38px); }
.lp-final__say .lp-small { margin-top: 12px; max-width: 360px; }
.lp-wave { flex: none; height: auto; }
.lp-final__form { display: grid; gap: 18px; justify-items: start; }
.lp-q { display: grid; gap: 10px; }
.lp-q p { color: var(--fg-2); font-size: 16px; }
.lp-final .chips--wrap { padding: 0; }
.lp-final .btn--primary { width: auto; }

.site-foot b { color: var(--fg-1); font-weight: 600; }
/* the footer stands on the page colour across the whole width: the backdrop never shows through it */
.site-foot { background: var(--bg-1); box-shadow: 0 0 0 100vmax var(--bg-1); clip-path: inset(0 -100vmax -100vmax); border-top-color: var(--line-2); margin-top: var(--s-12); }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .lp-first { min-height: calc(100svh - 56px); }
  .lp-first__copy .btn--primary { width: 100%; }
  .walk { margin-bottom: 20px; }
  .walk q { font-size: 16px; }
  .walk .stop:not(.cur) q { opacity: 0; }
  .walk .stop b { font-size: 13px; letter-spacing: 0; gap: 4px; text-transform: none; }
  .walk .stop b::before { display: none; }
  .walker { bottom: 52px; }
  .walker i { width: 124px; }
  .lp-tag { font-size: 13px; padding: 6px 8px; }
  .lp-tag i { display: none; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-dev .split__text, .lp-faq__k { position: static; }
  .lp-path li { grid-template-columns: 52px minmax(0, 1fr); }
  .lp-path b { font-size: 26px; }
  .lp-faq { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .lp-pad { margin-top: var(--s-5); padding-bottom: 28px; }
  .lp-final { grid-template-columns: minmax(0, 1fr); }
  .lp-final__say { flex-direction: column; align-items: flex-start; }
  .lp-steps .frame { height: auto; aspect-ratio: 4 / 3; }
  .lp-final .btn--primary { width: 100%; justify-self: stretch; }
  body { padding-bottom: 72px; }
}
.lp-first { overflow-x: clip; }

/* the backdrop behind the whole page (js/backdrop.js): fixed, under everything, never in the way */
.lp-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-head, main, .site-foot { position: relative; z-index: 1; }
