/* ===== Landing extras (kept minimal so the original look stays intact) ===== */

* { -webkit-tap-highlight-color: transparent; }

html { scrollbar-gutter: stable; }

/* install button rendered as a link */
a.install-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

/* screenshots: native horizontal swipe / drag scroller */
.screenshots-container .embla {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.screenshots-container .embla::-webkit-scrollbar { display: none; }
.screenshots-container .embla.dragging { cursor: grabbing; scroll-snap-type: none; }
.screenshots-container .embla__container { transform: none !important; }
.embla__slide { scroll-snap-align: center; }
.embla__slide img { pointer-events: none; user-select: none; }

/* description expand */
.app-description__text-wrapper { transition: max-height .35s ease; }
.app-description__arrow { transition: transform .3s ease; }
.app-description.expanded .app-description__arrow { transform: rotate(90deg); }
.app-description.expanded .app-description__fade { opacity: 0; }

/* helpful buttons pressed state */
.helpful-btn.voted { background: rgba(1, 135, 95, .1); border-color: var(--color-primary); color: var(--color-primary); }

/* ===== see all reviews sheet ===== */
.reviews-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.reviews-sheet.open { opacity: 1; pointer-events: auto; }
.reviews-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  opacity: .6;
  transition: transform .28s ease, opacity .28s ease;
}
.reviews-sheet.open .reviews-sheet__panel { transform: none; opacity: 1; }
.reviews-sheet__bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  z-index: 2;
}
.reviews-sheet__title { font-size: 18px; font-weight: 600; margin: 0; color: var(--color-text-primary); }
.reviews-sheet__close {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.reviews-sheet__close:hover { background: var(--color-bg-tertiary); }
.reviews-sheet__body { overflow-y: auto; padding: 4px 8px 40px; }
.reviews-sheet .user-review { margin-top: 0; padding: 16px; border-bottom: 1px solid var(--color-border, #f0f1f3); }
.reviews-sheet .review-date { font-size: 12px; color: var(--color-text-secondary); }
.reviews-sheet__summary { display: flex; gap: 20px; align-items: center; padding: 16px; }

/* scroll lock */
body.locked { overflow: hidden; }

/* lightbox */
.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .85);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.shot-lightbox.open { opacity: 1; pointer-events: auto; }
.shot-lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: 12px;
  box-shadow: 0 10px 40px #0009;
}
.shot-lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: #fff2;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* install pulse on mobile */
@media (max-width: 480px) {
  .install-button.primary { position: relative; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== шторка полного описания "About this app" (в духе Google Play) ===== */
.desc-sheet {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.desc-sheet.open { opacity: 1; pointer-events: auto; }
.desc-sheet__panel {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary, #fff);
  border-radius: 16px 16px 0 0;
  transform: translateY(28px);
  transition: transform .28s ease;
  box-shadow: 0 -8px 30px #0003;
}
.desc-sheet.open .desc-sheet__panel { transform: none; }
.desc-sheet__bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eceff3;
  background: inherit;
  border-radius: 16px 16px 0 0;
}
.desc-sheet__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary, #0f172a);
}
.desc-sheet__close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-primary, #0f172a);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.desc-sheet__close:hover { background: #0000000d; }
.desc-sheet__body { overflow-y: auto; padding: 18px 20px 36px; overscroll-behavior: contain; }
.desc-sheet__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary, #0f172a);
  white-space: pre-line;
  word-break: break-word;
}
@media (min-width: 640px) {
  .desc-sheet { align-items: center; }
  .desc-sheet__panel { border-radius: 16px; max-height: 80vh; }
  .desc-sheet__bar { border-radius: 16px 16px 0 0; }
}