/* PictoParty — landing page ("Sketch Party" theme)
   Marketing home for wishrooms.app. Reuses the design tokens, fonts, buttons and
   brand from app.css; this file only adds the landing-specific layout (hero, feature
   cards, how-to steps, gallery mockups, CTA band, footer). Colors/fonts come from the
   :root tokens in app.css — no hardcoded brand values here. */

/* The landing scrolls normally (it is NOT bound by the app's fit-to-screen contract). */
.page-landing { min-height: 100%; overflow-x: hidden; scroll-behavior: smooth; }
.page-landing main { position: relative; z-index: 1; }
#features, #how { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { .page-landing { scroll-behavior: auto; } }

/* ===================== Header / nav ===================== */
.lp-header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  /* reserve the top-right corner for the floating language switcher (🌐) */
  padding-right: clamp(4.6rem, 8vw, 6rem);
  border-bottom: 2.5px dashed var(--line);
  background: rgba(253, 246, 236, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.page-landing .brand-wrap { gap: 10px; }
.page-landing .brand { font-size: clamp(1.45rem, 4.5vw, 1.95rem); }
.page-landing .brand-mark { width: 42px; height: 42px; }
.page-landing .brand-mark svg { width: 26px; height: 26px; }

.lp-nav { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.6rem); }
.lp-nav__link {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); padding: .25rem .15rem; border-bottom: 3px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
.lp-nav__link:hover { color: var(--violet); border-bottom-color: var(--violet); }
.lp-nav__play.btn {
  min-width: auto; width: auto; height: auto; align-self: center;
  padding: .5rem 1.15rem; font-size: 1.1rem; box-shadow: var(--pop-2);
  background: var(--violet-deep);
}
.lp-nav__play.btn:hover { box-shadow: 4px 4px 0 0 var(--ink); }
.lp-nav__play.btn:active { box-shadow: 1px 1px 0 0 var(--ink); }

/* Кнопки лендинга центрируют подпись по вертикали. У больших кнопок (.lp-btn-lg)
   вертикальный padding обнулён при фикс. height — без флекс-центрирования текст
   прижимался к верхней грани (виден баг «съехавшего» текста). */
.page-landing .btn { display: inline-flex; align-items: center; justify-content: center; }

/* ===================== Hero ===================== */
.lp-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  /* max-width includes the side padding so the CONTENT box (1140px) lines up exactly with
     .lp-section__inner (max-width:1140 centered) — same left/right edges as the cards below. */
  max-width: calc(1140px + 2 * clamp(1rem, 4vw, 2.5rem)); margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vh, 3.5rem);
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  letter-spacing: .6px; text-transform: uppercase; color: var(--violet-deep);
  background: var(--violet-soft); border: 2.5px solid var(--ink);
  border-radius: var(--r-pill); padding: .3rem .9rem; box-shadow: var(--pop-2);
}
.lp-hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; letter-spacing: .3px;
  margin: 1.1rem 0 0;
}
.lp-hero__title span { display: block; }
.lp-accent {
  color: var(--violet); width: max-content; max-width: 100%; padding-bottom: .16em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10' fill='none'%3E%3Cpath d='M2 6C14 1 26 1 38 6S62 11 74 6 98 1 118 5' stroke='%237c5cfc' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: left bottom; background-size: 132px .55em;
}
.lp-hero__sub {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--ink-soft);
  line-height: 1.5; margin: 1.2rem 0 0; max-width: 34em;
}
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.7rem 0 0; }
.lp-btn-lg.btn { font-size: 1.4rem; height: 64px; padding: 0 2.1rem; min-width: 188px; }
.lp-btn-ghost.btn { background: var(--paper-2); color: var(--ink); }
.lp-btn-ghost.btn:hover { background: var(--sun); }
.lp-hero__trust { margin: 1.2rem 0 0; font-weight: 700; color: var(--ink-soft); font-size: .95rem; }

/* ---- Hero art: easel board + floating chat + avatars ---- */
.lp-hero__art { position: relative; display: flex; justify-content: center; align-items: center; min-width: 0; }
.lp-hero__art::before {
  content: ""; position: absolute; left: -15%; top: -6%; width: 88px; height: 88px; z-index: 5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 38 38' fill='none'%3E%3Cpath d='M19 3l4.6 9.3L34 13.8l-7.5 7.3L28.3 32 19 26.7 9.7 32l1.8-10.9L4 13.8l10.4-1.5z' fill='%23ffc83d' stroke='%232a2440' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-12deg);
}
.lp-hero__art::after {
  content: ""; position: absolute; right: -11%; bottom: -10%; width: 92px; height: 64px; z-index: 5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80' fill='none'%3E%3Cpath d='M8 56c14-34 44-44 70-22' stroke='%2318c8a8' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M96 20l3 8 8 3-8 3-3 8-3-8-8-3 8-3z' fill='%23ff5e8a' stroke='%232a2440' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(6deg);
}
/* На узких десктоп-ширинах доска заполняет колонку и звёздам некуда уйти от бейджей —
   там декоративные звёзды прячем (на широких экранах они стоят чисто в углах). */
@media (max-width: 1150px) {
  .lp-hero__art::before, .lp-hero__art::after { display: none; }
}
.lp-board {
  position: relative; z-index: 1; width: min(100%, 480px);
  animation: lpFloat 6s ease-in-out infinite;
}
.lp-board__frame {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: var(--paper-2); border: 3px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-3), var(--soft); overflow: hidden;
  display: grid; place-items: center; padding: 8%;
}
.lp-board__frame svg { width: 100%; height: 100%; }
.lp-timer {
  position: absolute; top: -16px; right: 16px; z-index: 3;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  font-variant-numeric: tabular-nums; color: var(--ink); background: var(--sun);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: .25rem .8rem; box-shadow: var(--pop-2);
}
.lp-secret {
  position: absolute; top: 14px; left: -14px; z-index: 3;
  display: inline-flex; align-items: baseline; gap: .35rem;
  font-weight: 800; color: var(--ink); background: var(--paper-2);
  border: 2.5px solid var(--ink); border-radius: var(--r-md);
  padding: .3rem .7rem; box-shadow: var(--pop-2); transform: rotate(-4deg); font-size: .9rem;
}
.lp-secret b { font-family: var(--font-display); color: var(--violet); letter-spacing: .5px; font-size: 1rem; }
.lp-players { position: absolute; left: -10px; bottom: -18px; z-index: 3; display: flex; }
.lp-players img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--ink); background: var(--violet-soft); box-shadow: var(--pop-2);
  margin-left: -14px;
}
.lp-players img:first-child { margin-left: 0; }
.lp-bubble {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: .45rem;
  background: var(--paper-3); border: 2.5px solid var(--ink); border-radius: 14px;
  padding: .4rem .7rem; box-shadow: var(--pop-2); font-weight: 800; font-size: .92rem;
  max-width: 70%;
}
.lp-bubble img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; flex: 0 0 auto; }
.lp-bubble--1 { right: -22px; top: 30%; transform: rotate(3deg); }
.lp-bubble--2 { right: -10px; bottom: 14%; background: #d7f6ef; transform: rotate(-2deg); }
.lp-bubble--2 .lp-check { color: var(--teal); font-family: var(--font-display); }

@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ===================== Generic section ===================== */
.lp-section { padding: clamp(2.6rem, 7vh, 4.6rem) clamp(1rem, 4vw, 2.5rem); }
.lp-section__inner { max-width: 1140px; margin: 0 auto; }
.lp-section--alt {
  background: var(--paper-3);
  border-top: 2.5px dashed var(--line); border-bottom: 2.5px dashed var(--line);
}
.lp-h2 {
  font-family: var(--font-display); font-weight: 800; text-align: center; line-height: 1.06;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 auto; padding-bottom: 18px; width: max-content; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10' fill='none'%3E%3Cpath d='M2 6C14 1 26 1 38 6S62 11 74 6 98 1 118 5' stroke='%237c5cfc' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center bottom; background-size: 180px 9px;
}
.lp-sub { text-align: center; color: var(--ink-soft); font-weight: 600; font-size: 1.1rem; margin: 1rem auto 0; max-width: 40em; }

/* ===================== Feature cards ===================== */
.lp-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: clamp(1.6rem, 4vh, 2.8rem);
}
.lp-feature {
  background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: var(--r-lg);
  padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--pop-1);
  transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .14s ease;
}
.lp-feature:hover { transform: translate(-2px, -3px); box-shadow: 7px 7px 0 0 var(--ink); }
.lp-feature__icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem;
  border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--pop-2);
  margin-bottom: 1rem; transform: rotate(-5deg);
}
.lp-feature:nth-child(1) .lp-feature__icon { background: var(--violet-soft); }
.lp-feature:nth-child(2) .lp-feature__icon { background: #d9f1ff; }
.lp-feature:nth-child(3) .lp-feature__icon { background: #d7f6ef; }
.lp-feature:nth-child(4) .lp-feature__icon { background: var(--paper-3); }
.lp-feature__title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 0 0 .4rem; }
.lp-feature__desc { color: var(--ink-soft); font-weight: 600; line-height: 1.45; margin: 0; font-size: 1rem; }

/* ===================== How-to steps ===================== */
.lp-steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem); margin: clamp(2rem, 5vh, 3rem) 0 0; padding: 0;
}
.lp-step {
  position: relative; text-align: center;
  background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: var(--r-lg);
  padding: 2rem 1.3rem 1.4rem; box-shadow: var(--pop-1);
}
.lp-step__badge {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--violet); color: #fff; border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop-2); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
}
.lp-step:nth-child(2) .lp-step__badge { background: var(--teal); color: var(--ink); }
.lp-step:nth-child(3) .lp-step__badge { background: var(--coral); }
.lp-step__title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: .7rem 0 .35rem; }
.lp-step__desc { color: var(--ink-soft); font-weight: 600; line-height: 1.45; margin: 0; }

/* ===================== Gallery (app mockups) ===================== */
.lp-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: clamp(1.6rem, 4vh, 2.8rem);
}
.lp-shot { display: flex; flex-direction: column; gap: .7rem; margin: 0; }
.lp-window {
  background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-1), var(--soft); overflow: hidden;
}
.lp-window__bar { display: flex; align-items: center; gap: .4rem; padding: .5rem .7rem; border-bottom: 2.5px dashed var(--line); background: var(--paper-3); }
.lp-window__dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); }
.lp-window__dot:nth-child(1) { background: var(--coral); }
.lp-window__dot:nth-child(2) { background: var(--sun); }
.lp-window__dot:nth-child(3) { background: var(--teal); }
.lp-window__url {
  margin-left: .5rem; font-size: .68rem; font-weight: 800; color: var(--ink-soft);
  background: var(--paper-2); border: 2px solid var(--line); border-radius: var(--r-pill);
  padding: .12rem .6rem; font-variant-numeric: tabular-nums;
}
.lp-window__body { padding: clamp(.7rem, 2vw, 1rem); aspect-ratio: 4 / 3; overflow: hidden; }
.lp-shot__cap { text-align: center; font-weight: 700; color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* mini app components inside the gallery windows */
.lp-mini { height: 100%; display: flex; flex-direction: column; gap: .4rem; }
.lp-mini__title { font-family: var(--font-display); font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: space-between; }
.lp-badge { background: var(--sky); border: 2px solid var(--ink); border-radius: var(--r-pill); padding: .04rem .5rem; font-size: .72rem; font-weight: 800; box-shadow: var(--pop-2); }
.lp-row { display: flex; align-items: center; gap: .5rem; padding: .32rem .45rem; border-radius: var(--r-sm); border: 2px solid var(--ink); background: var(--paper-2); box-shadow: var(--pop-2); }
.lp-row img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; flex: 0 0 auto; }
.lp-row__name { font-weight: 800; font-size: .82rem; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row__extra { font-family: var(--font-display); font-weight: 800; color: var(--violet); font-size: .85rem; }
.lp-modecard { margin-top: auto; text-align: center; background: var(--violet-soft); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: .45rem; box-shadow: var(--pop-2); position: relative; }
.lp-modecard b { font-family: var(--font-display); font-size: .95rem; }
.lp-modecard span { display: block; color: var(--ink-soft); font-size: .68rem; font-weight: 700; }

.lp-mini-board { position: relative; flex: 1 1 auto; background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: var(--r-md); box-shadow: var(--pop-2); display: grid; place-items: center; padding: 6%; overflow: hidden; }
.lp-mini-board svg { width: 100%; height: 100%; }
.lp-mini-board .lp-timer { position: absolute; top: 8px; right: 8px; font-size: .9rem; padding: .1rem .5rem; box-shadow: var(--pop-2); }
.lp-mini-tools { display: flex; gap: .4rem; justify-content: center; }
.lp-chip { font-family: var(--font-display); font-weight: 700; font-size: .8rem; padding: .2rem .6rem; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--paper-2); box-shadow: var(--pop-2); }
.lp-chip--active { background: var(--violet-deep); color: #fff; }

.lp-mini-win { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: .1rem; }
.lp-mini-win span { color: var(--violet); }
.lp-leader { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem .55rem; border: 2px solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--pop-2); font-weight: 800; font-size: .82rem; background: var(--paper-2); }
.lp-leader:nth-child(2) { background: var(--sun); }
.lp-leader:nth-child(3) { background: #e9eef5; }
.lp-leader:nth-child(4) { background: #ffe0c4; }
.lp-leader__rank { font-family: var(--font-display); }

/* ===================== Final CTA band ===================== */
.lp-cta-band {
  position: relative; text-align: center; overflow: hidden;
  background: var(--violet-deep); color: #fff;
  border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  padding: clamp(2.6rem, 7vh, 4.4rem) clamp(1rem, 4vw, 2.5rem);
}
.lp-cta-band__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.lp-cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; line-height: 1.05; }
.lp-cta-band p { font-size: 1.15rem; font-weight: 600; margin: 1rem 0 1.8rem; color: #fff; }
.lp-cta-band .lp-btn-lg.btn { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.lp-cta-band .lp-btn-lg.btn:hover { background: #ffd45e; }
.lp-cta-band::before, .lp-cta-band::after {
  content: ""; position: absolute; z-index: 0; opacity: .85; pointer-events: none;
  background-repeat: no-repeat; background-size: contain;
}
.lp-cta-band::before {
  left: 5%; top: 18%; width: 70px; height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' fill='none'%3E%3Cpath d='M19 3l4.6 9.3L34 13.8l-7.5 7.3L28.3 32 19 26.7 9.7 32l1.8-10.9L4 13.8l10.4-1.5z' fill='%23ffc83d' stroke='%232a2440' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: rotate(-14deg);
}
.lp-cta-band::after {
  right: 6%; bottom: 16%; width: 64px; height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' fill='none'%3E%3Ccircle cx='19' cy='19' r='13' fill='%2318c8a8' stroke='%232a2440' stroke-width='2.6'/%3E%3C/svg%3E");
  transform: rotate(8deg);
}

/* ===================== Footer ===================== */
.lp-footer {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  padding: 2.2rem 1.5rem 2.6rem; border-top: 2.5px dashed var(--line);
}
.lp-footer .brand-wrap { gap: 8px; }
.lp-footer .brand { font-size: 1.5rem; }
.lp-footer__tagline { font-weight: 700; color: var(--ink-soft); margin: .3rem 0 0; }
.lp-footer__small { color: var(--ink-soft); font-size: .85rem; font-weight: 600; }

/* ===================== Responsive ===================== */
@media (max-width: 880px) {
  .lp-hero { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .lp-hero__title, .lp-accent { margin-left: auto; margin-right: auto; }
  .lp-hero__sub { margin-left: auto; margin-right: auto; }
  .lp-hero__cta { justify-content: center; }
  .lp-hero__art { order: -1; margin-top: .5rem; }
  .lp-board { width: min(86%, 380px); }
  .lp-gallery { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .lp-steps { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; gap: 2.4rem; }
}
@media (max-width: 560px) {
  .lp-nav__link { display: none; }
  .page-landing .brand { font-size: 1.4rem; }
  .lp-hero__cta .btn { width: 100%; }
  .lp-eyebrow { font-size: .78rem; }
}

/* ===================== Desktop: герой и кнопка «Играть» в первом экране ===================== */
/* Шире колонка текста — длинный заголовок не дробится на 4 строки, поэтому герой ниже и
   кнопка «Играть» видна без прокрутки. На нормальных/высоких экранах размеры ПОЛНЫЕ (как в
   остальных секциях, без растягивания на весь экран и без пустых полей). Ужимаем только на
   низких окнах ноутбуков (max-height), и тем сильнее, чем ниже окно. */
@media (min-width: 881px) {
  .lp-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (min-width: 881px) and (max-height: 860px) {
  .lp-hero { padding-top: clamp(2.25rem, 4.8vh, 3.75rem); padding-bottom: clamp(1rem, 3vh, 2.6rem); }
  .lp-hero__title { font-size: clamp(2.4rem, 7.6vh, 4rem); margin-top: clamp(.5rem, 1.4vh, 1rem); }
  .lp-hero__sub { margin-top: clamp(.7rem, 1.7vh, 1.2rem); }
  .lp-hero__cta { margin-top: clamp(.9rem, 2.1vh, 1.6rem); }
  .lp-hero__trust { margin-top: clamp(.6rem, 1.5vh, 1.1rem); }
}
@media (min-width: 881px) and (max-height: 700px) {
  .lp-hero__title { font-size: clamp(2.1rem, 6.4vh, 3.4rem); }
  .lp-hero__sub { font-size: 1.1rem; }
  .lp-btn-lg.btn { height: 58px; font-size: 1.3rem; }
  .lp-board { width: min(100%, 420px); }
}
