/* Главная: editorial cream-акцент (как кабинет), без IG purple/pink. */
.container.lp { max-width: 1120px; padding: 0 16px 72px; }
.lp {
  --lp-card: #121214;
  --lp-line: #26262b;
  --lp-soft: #1b1b1f;
  --lp-text-2: #b4b4bc;
  --lp-on-accent: var(--brand-on-gradient, #0a0a0a);
}
.lp h1, .lp h2, .lp h3 { text-wrap: balance; }
.lp-no-scroll { overflow: hidden; }

/* Кнопка */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--font); color: var(--lp-on-accent); text-decoration: none; cursor: pointer;
  padding: 16px 28px; border: 0; border-radius: 999px; background: var(--brand-gradient, var(--ig-gradient));
  box-shadow: 0 10px 30px rgba(232, 228, 220, 0.12); transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn:visited { color: var(--lp-on-accent); }
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(232, 228, 220, 0.18); }
.lp-btn:focus-visible { outline: 2px solid var(--accent-2, #f5f2eb); outline-offset: 3px; }

/* Hero: текст + «телефон» с перепиской */
.lp-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center;
  padding: 56px 0 40px;
}
.lp-eyebrow {
  margin: 0 0 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-text-2);
}
.lp-hero-title {
  margin: 0; font: 600 clamp(34px, 5.2vw, 58px)/1.04 var(--font-display); letter-spacing: -0.025em;
}
.lp-hero-sub { margin: 18px 0 28px; max-width: 34em; font-size: 18px; line-height: 1.5; color: var(--lp-text-2); }
.lp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.lp-gift { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.lp-gift-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ig-gradient); flex: none; }

.lp-phone-screen {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; background: #000;
}
.lp-phone {
  justify-self: center; width: min(360px, 100%); display: flex; flex-direction: column;
  border-radius: 40px; padding: 14px; background: var(--lp-card); border: 1px solid var(--lp-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.lp-phone-top { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; }
.lp-phone-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: contain; padding: 5px; box-sizing: border-box;
  background: var(--ig-gradient);
}
.lp-phone-name { font-weight: 600; font-size: 15px; }
/* Вкладки скрыты: ролики сменяют друг друга сами, список нужен только скрипту. */
.lp-demo-tabs {
  display: none; gap: 4px; padding: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; background: var(--lp-soft);
}
.lp-demo-tabs::-webkit-scrollbar { display: none; }
.lp-demo-tabs button { flex: 1 0 auto; padding-left: 10px; padding-right: 10px; }
.lp-demo-tabs button, .lp-switch button {
  font: 500 13px/1 var(--font); color: var(--lp-text-2); background: transparent; border: 0;
  border-radius: 999px; padding: 9px 6px; cursor: pointer; white-space: nowrap;
}
.lp-demo-tabs button.is-active, .lp-switch button.is-active {
  color: var(--lp-on-accent); background: var(--brand-gradient, var(--ig-gradient)); font-weight: 600;
}
.lp-demo-tabs button:focus-visible, .lp-switch button:focus-visible {
  outline: 2px solid var(--accent-2, #f5f2eb); outline-offset: 1px;
}
.lp-thread {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; padding: 0 4px;
}
.lp-msg { max-width: 84%; padding: 10px 13px; font-size: 14px; line-height: 1.38; border-radius: 20px; }
.lp-msg--you {
  align-self: flex-end; color: var(--lp-on-accent);
  background: var(--brand-gradient, var(--ig-gradient)); border-bottom-right-radius: 6px;
}
.lp-msg--bot { align-self: flex-start; background: var(--lp-soft); border-bottom-left-radius: 6px; }
.lp-msg-media {
  align-self: flex-start; width: 62%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: #000;
}
.lp-post {
  align-self: flex-start; width: 78%; margin: 0; border-radius: 18px; overflow: hidden; background: var(--lp-soft);
}
.lp-post img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.lp-post figcaption { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; }
.lp-pop { animation: lp-pop .35s ease both; }
@keyframes lp-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Сторис */
.lp-stories { margin-top: 22px; min-width: 0; max-width: 100%; }
/* Ряд листается вбок — правый край мягко гаснет, чтобы было видно, что историй больше. */
.lp-stories-row { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.lp-hero-copy { min-width: 0; }
.lp-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-text-2); }
.lp-stories-row {
  display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity;
}
.lp-stories-row::-webkit-scrollbar { display: none; }
.lp-story {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 84px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); scroll-snap-align: start;
}
.lp-story-ring {
  width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: var(--ig-gradient);
  display: block; box-sizing: border-box; transition: transform .15s ease;
}
.lp-story-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--bg); box-sizing: border-box; background: #000;
}
.lp-story:hover .lp-story-ring { transform: scale(1.05); }
/* Общая тема красит кнопки при нажатии/фокусе светлой подложкой — у сторис её быть не должно. */
.lp-story, .lp-story:hover, .lp-story:active, .lp-story:focus {
  background: none !important; box-shadow: none !important; outline: none; -webkit-tap-highlight-color: transparent;
}
.lp-story:active .lp-story-ring { transform: scale(.96); }
.lp-story:focus-visible { outline: none; }
.lp-story:focus-visible .lp-story-ring { outline: 2px solid #fff; outline-offset: 3px; }
.lp-story-label { font-size: 12.5px; color: var(--lp-text-2); white-space: nowrap; }

/* Секции */
.lp-section { padding: 56px 0 8px; border-top: 1px solid var(--lp-line); margin-top: 32px; }
.lp-h2 { margin: 0 0 10px; font: 600 clamp(26px, 3.4vw, 38px)/1.12 var(--font-display); letter-spacing: -0.02em; }
.lp-lead { margin: 0 0 24px; max-width: 40em; font-size: 16px; line-height: 1.5; color: var(--lp-text-2); }
.lp-note { margin: 14px 0 0; max-width: 34em; font-size: 14px; line-height: 1.45; color: var(--lp-text-2); }

/* Шаги — настоящая последовательность, поэтому с номерами */
.lp-steps-list {
  list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.lp-step { padding: 22px; border-radius: 24px; background: var(--lp-card); border: 1px solid var(--lp-line); }
.lp-step-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  font-weight: 700; font-size: 15px; color: var(--lp-on-accent);
  background: var(--brand-gradient, var(--ig-gradient));
}
.lp-step h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; }
.lp-step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--lp-text-2); }

/* Переключатель вида */
.lp-style { display: grid; grid-template-columns: minmax(0, 560px) 300px; justify-content: space-evenly; gap: 48px; align-items: center; }
.lp-switch {
  display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--lp-soft); border: 1px solid var(--lp-line);
}
.lp-switch button { padding: 11px 16px; font-size: 14px; }
.lp-reel { justify-self: center; width: 100%; max-width: 300px; position: relative; }
.lp-sound {
  position: absolute; left: 12px; bottom: 12px; font: 500 13px/1 var(--font); color: #fff; cursor: pointer;
  padding: 9px 12px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
}
.lp-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lp-res { margin-top: 28px; }
.lp-res-title { margin: 0 0 10px; font-size: 14px; color: var(--lp-text-2); }
.lp-switch--sm button { padding: 9px 18px; }
.lp-reel video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; display: block; background: #000;
  border: 1px solid var(--lp-line);
}

/* «Что умеет платформа»: бенто из живых карточек */
/* Раскладка задана областями — все ряды заполнены, без пустых клеток. Ролики 9:16 — высокие. */
.lp-bento {
  margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px;
  grid-template-areas:
    "prod style voice voice"
    "prod style plan  plan";
}
.lp-bento > :nth-child(1) { grid-area: voice; }
.lp-bento > :nth-child(2) { grid-area: prod; }
.lp-bento > :nth-child(3) { grid-area: plan; }
.lp-bento > :nth-child(4) { grid-area: style; }
.lp-card {
  position: relative; overflow: hidden; border-radius: 26px; background: var(--lp-card); border: 1px solid var(--lp-line);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.lp-card--hero { grid-column: span 2; grid-row: span 2; }
.lp-card--tall { grid-row: span 2; }
.lp-card--wide { grid-column: span 2; }
.lp-card--media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-card--media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.92) 100%);
}
.lp-card-text { position: relative; z-index: 1; padding: 18px 20px; }
.lp-card-text h3 { margin: 0 0 4px; font: 600 19px/1.2 var(--font-display); }
.lp-card-text p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #d8d8de; }
.lp-card--hero .lp-card-text h3 { font-size: 26px; }
.lp-card--hero .lp-card-text p { font-size: 15px; max-width: 30em; }
/* Голос — живой эквалайзер */
.lp-card--voice { background: radial-gradient(120% 90% at 100% 0%, rgba(232,228,220,.18), transparent 60%), var(--lp-card); }
.lp-eq { position: absolute; top: 26px; left: 20px; right: 20px; height: 70px; display: flex; align-items: center; gap: 4px; }
.lp-eq i {
  flex: 1; border-radius: 4px; background: var(--ig-gradient); height: 30%;
  animation: lp-eq 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.09s);
}
@keyframes lp-eq { 0%, 100% { height: 18%; } 50% { height: 95%; } }
/* Пост — мини-карточка поста */
.lp-card--post { justify-content: space-between; }
.lp-mini-post {
  margin: 16px 16px 0; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 16px;
  background: var(--lp-soft);
}
.lp-mini-post img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.lp-mini-post figcaption {
  font-size: 12px; line-height: 1.35; color: var(--lp-text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Контент-план — неделя */
.lp-card--plan { justify-content: space-between; }
.lp-plan { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 20px 20px 0; }
.lp-plan-day {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 14px;
  background: var(--lp-soft); color: var(--lp-text-2); font-size: 12px;
}
.lp-plan-day b { font-size: 18px; color: var(--lp-text-2); }
.lp-plan-day.is-on {
  background: linear-gradient(var(--lp-soft), var(--lp-soft)) padding-box, var(--brand-gradient, var(--ig-gradient)) border-box;
  border: 1px solid transparent;
}
.lp-plan-day.is-on b { color: var(--accent-2, #f5f2eb); }
/* Качество */
.lp-card--quality { justify-content: space-between; }
.lp-quality { padding: 22px 20px 0; display: flex; align-items: baseline; gap: 12px; }
.lp-quality span { font-size: 18px; color: var(--lp-text-2); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.lp-quality b {
  font: 700 46px/1 var(--font-display); background: var(--ig-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Общая тема (style.css) красит любую кнопку при :hover светлым фоном с тёмным текстом,
   а на телефоне hover «залипает» после тапа — у кнопок главной свои состояния. */
.lp .lp-btn:hover { background: var(--brand-gradient, var(--ig-gradient)); color: var(--lp-on-accent); }
.lp .lp-viewer-tap:hover, .lp .lp-viewer-tap:active { background: transparent; transform: none; }
.lp .lp-toggle:hover { background: var(--lp-soft); color: var(--text); }
.lp .lp-toggle.is-on:hover { color: var(--text); }
.lp .lp-demo-tabs button:hover, .lp .lp-switch button:hover { background: transparent; color: var(--text); }
.lp .lp-demo-tabs button.is-active:hover, .lp .lp-switch button.is-active:hover {
  background: var(--brand-gradient, var(--ig-gradient)); color: var(--lp-on-accent);
}
.lp .lp-sound:hover, .lp .lp-viewer-btn:hover { background: rgba(0, 0, 0, .6); color: #fff; }

/* Переключатели опций ролика — каждая включается отдельно */
.lp-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 500 15px/1 var(--font);
  color: var(--lp-text-2); padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--lp-soft); border: 1px solid var(--lp-line); -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, border-color .15s ease;
}
.lp-toggle-dot {
  width: 34px; height: 20px; border-radius: 999px; background: #3a3a40; position: relative; flex: none;
  transition: background .2s ease;
}
.lp-toggle-dot::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform .2s ease;
}
.lp-toggle.is-on { color: var(--text); border-color: rgba(232, 228, 220, .45); }
.lp-toggle.is-on .lp-toggle-dot { background: var(--brand-gradient, var(--ig-gradient)); }
.lp-toggle.is-on .lp-toggle-dot::after { transform: translateX(14px); }
.lp-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Пункты под кнопкой на первом экране */
.lp-perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-perks li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.4; }

/* Кнопка звука-значок, как в Reels */
.lp-sound, .lp-viewer-btn {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  display: grid; place-items: center; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}
.lp-sound { position: absolute; right: 12px; bottom: 12px; left: auto; }
.lp-sound svg, .lp-viewer-btn svg { width: 20px; height: 20px; }
.lp-sound .lp-ico-sound, .lp-viewer-btn .lp-ico-sound { display: none; }
.lp-sound[aria-pressed="true"] .lp-ico-sound, .lp-viewer-btn[aria-pressed="true"] .lp-ico-sound { display: block; }
.lp-sound[aria-pressed="true"] .lp-ico-muted, .lp-viewer-btn[aria-pressed="true"] .lp-ico-muted { display: none; }
.lp-sound:focus-visible, .lp-viewer-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Просмотр сторис как в Instagram */
.lp-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .94); display: grid; place-items: center; }
.lp-viewer[hidden] { display: none; }
.lp-viewer-frame {
  position: relative; width: min(420px, 100vw); height: min(100dvh, calc(min(420px, 100vw) * 16 / 9));
  border-radius: 18px; overflow: hidden; background: #000;
}
.lp-viewer-frame > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-viewer-frame > video[hidden] { display: none; }
.lp-viewer-post { margin: 0; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; background: #111; }
.lp-viewer-post[hidden] { display: none; }
.lp-viewer-post img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.lp-viewer-post figcaption { padding: 16px 18px; font-size: 15px; line-height: 1.45; }
.lp-viewer-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding: 10px 12px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0));
}
.lp-viewer-bars { display: flex; gap: 4px; margin-bottom: 10px; }
.lp-viewer-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.lp-viewer-bars i { display: block; height: 100%; width: 0; background: #fff; }
.lp-viewer-head { display: flex; align-items: center; gap: 10px; }
.lp-viewer-ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; padding: 2px; background: var(--ig-gradient); }
.lp-viewer-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lp-viewer-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-viewer-who span { font-size: 12px; color: rgba(255,255,255,.75); }
.lp-viewer-head .lp-viewer-btn { width: 36px; height: 36px; background: rgba(0,0,0,.35); }
/* Зоны тапа: левая треть — назад, правые две трети — дальше (как в Instagram). */
.lp-viewer-tap {
  position: absolute; top: 72px; bottom: 0; z-index: 1; border: 0; padding: 0; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lp-viewer-tap:focus { outline: none; }
.lp-viewer-tap--prev { left: 0; width: 33%; }
.lp-viewer-tap--next { right: 0; width: 67%; }
@media (max-width: 520px) { .lp-viewer-frame { border-radius: 0; height: 100dvh; } }
/* FAQ */
.lp-faq-item { border-bottom: 1px solid var(--lp-line); max-width: 760px; }
.lp-faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-size: 17px; font-weight: 500;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--lp-text-2);
}
.lp-faq-item[open] summary::after { content: "–"; }
.lp-faq-item summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.lp-faq-item p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--lp-text-2); max-width: 62ch; }

/* Финал */
.lp-final { text-align: center; padding: 72px 0 24px; display: flex; flex-direction: column; align-items: center; }
.lp-final-logo { width: auto; height: 56px; max-width: 100%; margin-bottom: 18px; object-fit: contain; }

/* Телефон */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .lp-steps-list { grid-template-columns: 1fr; }
  .lp-style { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 24px; }
  .lp-eq { top: 18px; height: 48px; }
  .lp-bento {
    grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px;
    grid-template-areas: "prod style" "prod style" "voice voice" "plan plan";
  }
}
@media (max-width: 520px) {
  .lp-hero-sub { font-size: 16px; }
  .lp-btn { width: 100%; }
  .lp-switch { display: grid; grid-auto-columns: 1fr; width: 100%; box-sizing: border-box; }
  .lp-switch button { padding: 10px 6px; font-size: 13px; }
  .lp-bento { grid-auto-rows: 170px; gap: 8px; }
  .lp-card--hero .lp-card-text h3 { font-size: 21px; }
  .lp-section { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-pop { animation: none; }
  .lp-btn, .lp-story-ring { transition: none; }
}
