/* Лендинг pockbot.com (#163, LND-1) — вид макета B: openspec/changes/pbl-163-landing/concepts/B.html (565d31ca)
   и concepts/landing.css. Цвета — токены darkColors скина mbl (src/design/skins/mbl), у каждого — имя токена;
   шрифт — Inter веб-копии assets/mbl/fonts/web/ (латиница и кириллица, LND-8). */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --screen: #000000;             /* screen */
  --card-border: #2C2D34;        /* cardBorder */
  --primary: #024DE7;            /* primary — бренд: кнопка, выбор */
  --primary-soft: #0A1D45;       /* primarySoft */
  --primary-soft-border: #2F56A8;/* primarySoftBorder */
  --primary-soft-text: #A3C8FF;  /* primarySoftText */
  --ink: #F4F7FA;                /* ink */
  --muted: #B2B4BE;              /* muted */
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--screen); color: var(--ink); }
body {
  font: 400 17px/1.45 "Inter", sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  background: #000;
}
/* Пока скрипт не подставил язык — строки не видны, чтобы страница не мигала английским (без скрипта видно английское). */
html[data-i18n="pending"] [data-i18n] { visibility: hidden; }
h1 { font-weight: 700; margin: 14px 0 12px; letter-spacing: -0.02em; font-size: 38px; line-height: 1.1; }
p { margin: 0; }

/* Один экран: ролик на всю высоту под шапкой, текст и кнопка — внизу поверх затемнения (LND-1). */
.stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.wrap { position: relative; display: flex; flex-direction: column; flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Шапка: только имя приложения — кнопка на странице одна. */
.top { position: relative; z-index: 2; display: flex; align-items: center; height: 60px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand b { color: var(--primary-soft-text); font-weight: 700; }

/* Шоурил фоном: видео (или постер — CSS и атрибут poster) под затемнением снизу. */
.reel {
  position: absolute; inset: 64px 0 0 0; overflow: hidden;
  background: #000 url("media/reel-mobile.webp") center top / cover no-repeat;
}
.reel-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: transparent; }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.95) 55%, #000 100%); }
/* Тень сверху справа на телефоне (как в B 565d31ca): край кадра не спорит с шапкой. */
.reel::before { content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 150px; z-index: 1; pointer-events: none; background: radial-gradient(120% 100% at 100% 0%, #000 72%, rgba(0,0,0,0) 100%); }
.reel .tag {
  position: absolute; left: 20px; top: 12px; z-index: 1; padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .7); color: var(--ink); font-size: 16px; font-weight: 600; border: 1px solid var(--card-border);
}
.reel .tag::before { content: "\25B6\FE0E\00A0"; }

/* Кнопка полного ролика (LND-2): 72×72, с клавиатуры, подпись для диктора — aria-label. */
.play {
  position: absolute; left: 72%; top: 46%; z-index: 1; transform: translate(-50%, -50%);
  width: 72px; height: 72px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .6); border: 2px solid rgba(244, 247, 250, .85); display: grid; place-items: center;
}
/* Без ролика в сборке плашка и кнопка скрыты атрибутом hidden (landing.js, m3112): display .play его не перебивает. */
.reel [hidden] { display: none; }
.play::after { content: ""; margin-left: 6px; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }

.copy { position: relative; z-index: 2; margin-top: auto; padding: 0 0 max(36px, env(safe-area-inset-bottom)); }
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid var(--primary-soft-border); color: var(--primary-soft-text);
  font-size: 16px; font-weight: 600;
}
.lead { color: var(--muted); font-size: 18px; }
.cta-row { margin-top: 24px; }
/* Главная кнопка — синяя кнопка-пилюля приложения, 56 px. */
a.cta {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px; border-radius: 999px;
  background: var(--primary); color: #fff;
  font: 700 19px/1 "Inter", sans-serif; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(2, 77, 231, .35);
}
a.cta::after { content: ""; width: 8px; height: 8px; border-right: 2.5px solid #fff; border-top: 2.5px solid #fff; transform: rotate(45deg); }
.note { color: var(--muted); font-size: 16px; margin-top: 12px; }

a.cta:focus-visible, .play:focus-visible, .close:focus-visible { outline: 3px solid var(--primary-soft-text); outline-offset: 3px; }

/* Полный ролик — окно с элементами управления; крестик и Esc закрывают (LND-2). */
.full { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: var(--ink); }
.full::backdrop { background: #000; }
.full video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; padding: 0; cursor: pointer;
  border-radius: 50%; background: rgba(0, 0, 0, .7); border: 1px solid var(--card-border);
}
.close::before, .close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.close::before { transform: translate(-50%, -50%) rotate(45deg); }
.close::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (min-width: 900px) {
  h1 { font-size: 60px; }
  .lead { font-size: 21px; }
  .reel { background: #000 url("media/reel-desktop.webp") 72% center / contain no-repeat; }
  .reel-video { object-fit: contain; object-position: 72% center; }
  .reel::after { background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 38%, rgba(0,0,0,0) 62%); }
  .reel::before { display: none; }
  .reel .tag { left: auto; right: 34%; top: 32px; }
  .play { left: 70%; top: 50%; }
  .copy { margin: auto 0; max-width: 560px; padding: 0; }
  a.cta { display: inline-flex; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
