/* ═══════════════════════════════════════════════════════
   Вжух Landing — style.css v2
   Marketing-optimized with template gallery, pain points,
   social proof, animated counters
   ═══════════════════════════════════════════════════════ */

:root {
  --primary-text-color: #18181b;
  --brand-color: #6366f1;
  --header-safe-offset: clamp(64px, 11vw, 82px);
  --nav-dot-inactive-color: rgba(0, 0, 0, 0.3);
  --nav-dot-active-color: #6366f1;
  --animation-duration-fast: 50ms;
  --animation-duration-medium: 300ms;
  --animation-duration-slow: 500ms;
  --animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  /* iOS/Android font boosting раздувает мелкий текст и ломает вёрстку */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #e0e7ff;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--primary-text-color);
  -webkit-font-smoothing: antialiased;
}

/* ── Animated gradient background ──── */
#gradient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #e0e7ff, #ddeaf6, #f0f0ff, #faf5ff);
  background-size: 220% 220%;
  animation: gradient-animation 10s ease infinite;
}
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ── Utilities ──── */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-underline {
  text-decoration: none;
}

/* ── Preloader ──── */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #eef2ff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition:
    opacity 0.4s ease-out,
    visibility 0.4s ease-out;
  visibility: visible;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--brand-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Slide Container ──── */
#slide-container {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  touch-action: pan-y;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#slide-container::-webkit-scrollbar {
  display: none;
}

.slide {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1rem;
  box-sizing: border-box;
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .slide {
    padding: 2rem;
  }
}

/* ── Scroll-scale animation ──── */
.slide .content-wrapper {
  transform-origin: center;
  will-change: transform;
}

/* ── Side navigation ──── */
#slide-nav {
  position: fixed;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--nav-dot-inactive-color);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-dot.active {
  background-color: var(--nav-dot-active-color);
  height: 32px;
}

/* ── Top navigation ──── */
header > nav {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top-brand-icon {
  border-radius: 0.95rem;
  overflow: hidden;
  background: #eef2ff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.top-nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  transition:
    color var(--animation-duration-medium),
    background-color var(--animation-duration-medium),
    box-shadow var(--animation-duration-medium);
  font-weight: 500;
}
.top-nav-link.active {
  background-color: white;
  color: var(--primary-text-color);
  font-weight: 600;
  outline: 1px solid rgba(99, 102, 241, 0.08);
}

.top-nav-menu-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.top-nav-menu-container::-webkit-scrollbar {
  display: none;
}
.top-nav-menu-container .top-nav-link {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── CTA nav button pulse ──── */
.cta-nav-btn {
  animation: none;
}
@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
  }
}

/* ── Fade in down animation ──── */
@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-down {
  animation: fade-in-down 0.8s ease-out forwards;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */

.hero-highlight {
  position: relative;
  color: #ef4444;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 3px;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: none;
}
.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}
@media (max-width: 640px) {
  .hero-cta-primary {
    font-size: 0.9rem;
    padding: 0.72rem 1.05rem;
    max-width: 92vw;
    white-space: normal;
  }
}

/* Пилюля растёт под содержимое: жёсткий пиксельный потолок убран,
   иначе на Safari текст с цифрами вылезал за фон. */
.hero-proof-badge {
  max-width: calc(100vw - 2rem);
}

.hero-proof-text {
  min-width: 0;
  white-space: nowrap;
}
.hero-proof-badge > .flex {
  flex-shrink: 0;
}

.hero-subtitle {
  max-width: 38rem;
}

.template-heading-count {
  white-space: nowrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
}

/* ═══════════════════════════════════════════════════════
   TEMPLATE TICKER (Hero бегущая строка)
   ═══════════════════════════════════════════════════════ */

.template-ticker-wrapper {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.template-ticker {
  display: flex;
  gap: 12px;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.template-ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-card {
  flex-shrink: 0;
  width: 140px;
  height: 100px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ticker-card:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.ticker-card-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-card-text {
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
  margin-top: 4px;
  opacity: 0.7;
}

.ticker-card-label {
  position: absolute;
  bottom: 6px;
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   TEMPLATE GALLERY (Section 3)
   ═══════════════════════════════════════════════════════ */

.template-gallery-wrapper {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.template-gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.template-gallery-track[data-direction="left"] {
  animation: gallery-scroll-left 40s linear infinite;
}
.template-gallery-track[data-direction="right"] {
  animation: gallery-scroll-right 40s linear infinite;
}

.template-gallery-track:hover {
  animation-play-state: paused;
}

@keyframes gallery-scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes gallery-scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.gallery-card {
  flex-shrink: 0;
  width: 180px;
  height: 225px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.gallery-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.gallery-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.gallery-card-text {
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
  margin-top: 8px;
  opacity: 0.7;
}

.gallery-card-name {
  position: absolute;
  bottom: 10px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.5;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .gallery-card {
    width: 140px;
    height: 175px;
    padding: 12px 10px;
  }
  .gallery-card-title {
    font-size: 12px;
  }
  .gallery-card-text {
    font-size: 8px;
  }
  .ticker-card {
    width: 120px;
    height: 85px;
  }
}

/* ═══════════════════════════════════════════════════════
   PAIN SECTION
   ═══════════════════════════════════════════════════════ */

.pain-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.pain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(99, 102, 241, 0.08);
  margin: 0 auto 0.75rem;
}
.pain-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.solution-bridge {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(99, 102, 241, 0.1)
  );
  border: 1px dashed rgba(99, 102, 241, 0.3);
}
.solution-arrow {
  font-size: 1.5rem;
  color: var(--brand-color);
  margin-bottom: 0.5rem;
  animation: bounce-down 1.5s ease-in-out infinite;
}
@keyframes bounce-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.pain-swiper {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════════
   SOCIAL PROOF — STATS & TESTIMONIALS
   ═══════════════════════════════════════════════════════ */

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}
@media (min-width: 640px) {
  .stat-number {
    font-size: 2.5rem;
  }
  .stat-label {
    font-size: 0.875rem;
  }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-swiper {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════════
   DEMO CAROUSEL
   ═══════════════════════════════════════════════════════ */

.demo-carousel-container {
  overflow: visible;
}
.demo-slides-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 2rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}
.demo-slide-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: 1rem;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.demo-slide-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: none;
}
.demo-slide-card img {
  width: 100%;
  height: auto;
  display: block;
}

.demo-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--nav-dot-inactive-color);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.demo-dots .dot.active {
  background-color: var(--brand-color);
  width: 24px;
}

/* ═══════════════════════════════════════════════════════
   STEPS (Как работает)
   ═══════════════════════════════════════════════════════ */

.step-card {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}
@media (min-width: 768px) {
  .step-card {
    padding: 2rem;
    border-radius: 1.5rem;
  }
}
.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.step-card:nth-child(2) {
  transition-delay: 0.15s;
}
.step-card:nth-child(3) {
  transition-delay: 0.3s;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-color);
  opacity: 0.2;
  margin-bottom: 0.5rem;
  line-height: 1;
}
@media (min-width: 768px) {
  .step-number {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
}

.steps-swiper {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.steps-mobile-list {
  position: relative;
  display: grid;
  gap: 0.55rem;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}
.steps-mobile-list::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  bottom: 1.7rem;
  left: 1.45rem;
  width: 2px;
  background: rgba(99, 102, 241, 0.16);
}
.step-mobile-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
}
.step-mobile-card--violet {
  margin-left: 0.8rem;
  background: rgba(245, 243, 255, 0.82);
  border-color: rgba(196, 181, 253, 0.38);
}
.step-mobile-card--mint {
  background: rgba(236, 253, 245, 0.78);
  border-color: rgba(167, 243, 208, 0.44);
}
.step-mobile-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--brand-color);
  color: white;
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  font-weight: 700;
}
.step-mobile-card--mint .step-mobile-number {
  background: #10b981;
}
.step-mobile-card h3 {
  margin: 0 0 0.12rem;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 800;
}
.step-mobile-card p {
  color: #6b7280;
  font-size: 0.72rem;
  line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════
   PHONE MOCKUP
   ═══════════════════════════════════════════════════════ */

.phone-mockup {
  position: relative;
  width: 240px;
  height: 490px;
  background: #1a1a1a;
  border-radius: 38px;
  padding: 10px;
  border: 2px solid #333;
  outline: 3px solid #1a1a1a;
  box-shadow: none;
  touch-action: pan-y;
}
.phone-mockup.phone-mockup-lg {
  width: 56vw;
  max-width: 280px;
  height: auto;
  aspect-ratio: 9 / 19.2;
  padding: 2.5vw;
  border-radius: 10vw;
}
@media (min-width: 400px) {
  .phone-mockup.phone-mockup-lg {
    max-width: 300px;
    border-radius: 42px;
    padding: 11px;
  }
}
@media (min-width: 640px) {
  .phone-mockup {
    width: 260px;
    height: 530px;
    padding: 12px;
    border-radius: 42px;
  }
  .phone-mockup.phone-mockup-lg {
    max-width: 320px;
  }
}
@media (min-width: 768px) {
  .phone-mockup {
    width: 320px;
    height: 650px;
    padding: 16px;
    border-radius: 52px;
  }
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}
.phone-mockup-lg .phone-notch {
  top: 2.5vw;
  width: 18vw;
  max-width: 80px;
  height: 5vw;
  max-height: 24px;
}
@media (min-width: 400px) {
  .phone-mockup-lg .phone-notch {
    top: 11px;
    width: 80px;
    height: 24px;
  }
}
@media (min-width: 640px) {
  .phone-notch {
    top: 12px;
    width: 90px;
    height: 26px;
  }
}
@media (min-width: 768px) {
  .phone-notch {
    top: 16px;
    width: 120px;
    height: 32px;
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  position: relative;
}
@media (min-width: 640px) {
  .phone-screen {
    border-radius: 32px;
  }
}
@media (min-width: 768px) {
  .phone-screen {
    border-radius: 36px;
  }
}

.phone-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}
.phone-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(40px);
  pointer-events: none;
}
.phone-carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.phone-carousel-slide.slide-out-left {
  opacity: 0;
  transform: translateX(-40px);
}
.phone-carousel-slide.slide-out-right {
  opacity: 0;
  transform: translateX(40px);
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--nav-dot-inactive-color);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.phone-dot.active {
  background-color: var(--brand-color);
  width: 24px;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */

.cta-card {
  position: relative;
  background: linear-gradient(135deg, #312e81, #4338ca, #6366f1);
  padding: 3rem 2rem;
  border-radius: 2rem;
  box-shadow: none;
  max-width: 56rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 4rem 3rem;
  }
}

.cta-template-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  opacity: 0.06;
  pointer-events: none;
  overflow: hidden;
}

.cta-btn-final {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  background: white;
  color: var(--brand-color);
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: none;
}
.cta-btn-final:hover {
  transform: translateY(-2px);
  box-shadow: none;
  background: #f0f0ff;
}

/* ═══════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.pricing-card {
  position: relative;
  min-height: 215px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.05rem;
  padding: 1.35rem;
  box-shadow: none;
}

.pricing-card--pro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 255, 0.92));
  border-color: rgba(99, 102, 241, 0.46);
  box-shadow: none;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  box-shadow: none;
}

.pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pricing-price-group {
  display: grid;
  justify-items: end;
  gap: 0.18rem;
  text-align: right;
}

.pricing-sale-ribbon {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 0.72rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.pricing-old-price {
  color: #94a3b8;
  font-size: 0.86em;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.pricing-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0;
}

.pricing-subtitle {
  max-width: 12rem;
  margin-top: 0.32rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.pricing-price {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 0.95;
  color: #4f46e5;
  white-space: nowrap;
}

.pricing-price--free {
  font-size: 1.45rem;
}

.pricing-price span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  margin-left: 0.12rem;
}

.pricing-renewal {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.pricing-features li {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.35;
  position: relative;
  padding-left: 1rem;
}

.pricing-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #6366f1;
  font-weight: 800;
}

.pricing-features li.pricing-muted {
  color: #9ca3af;
}

.pricing-features li.pricing-muted::before {
  color: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

/* ── Showcase (визуальные карусели, разлетающиеся карточки) ── */
.showcase-square {
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform, opacity;
  cursor: pointer;
  z-index: 10;
}

#showcase-title {
  z-index: 30;
  pointer-events: none;
  padding-inline: 1rem;
}
#showcase-title .showcase-cta {
  pointer-events: auto;
}
.showcase-square .showcase-img-wrapper {
  width: 9rem;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
.showcase-square:hover .showcase-img-wrapper {
  box-shadow: none;
}
.showcase-square .showcase-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .showcase-square .showcase-img-wrapper {
    width: clamp(9rem, 18vw, 12rem);
  }
}
#showcase-scroll-container {
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 1rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}
#showcase-scroll-container::-webkit-scrollbar {
  display: none;
}
.showcase-mobile-card {
  flex-shrink: 0;
  width: 76vw;
  max-width: 340px;
  scroll-snap-align: center;
}
.showcase-mobile-card .showcase-mobile-img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
  position: relative;
}
.showcase-mobile-card .showcase-mobile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Proof posts: screenshots without inner side bars ── */
.proof-post-card {
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.proof-post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1179 / 1660;
  object-fit: cover;
  display: block;
}
.proof-post-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem 0.85rem;
  text-align: left;
}
.proof-post-caption span {
  color: #9ca3af;
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.proof-post-caption strong {
  color: #374151;
  font-size: 0.78rem;
  line-height: 1.3;
}
.proof-post-caption b {
  color: var(--brand-color);
  font-size: 0.9rem;
}
#showcase-nav .showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--nav-dot-inactive-color);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
#showcase-nav .showcase-dot.active {
  background-color: var(--brand-color);
  width: 24px;
}

/* ── Handwritten visual accents ── */
.handwritten-accent {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  color: var(--brand-color);
  line-height: 1;
  transform: rotate(-1.5deg);
}
.hero-handwritten {
  margin-top: 0.06em;
  font-size: 1.22em;
  letter-spacing: 0.005em;
  line-height: 0.82;
  transform: rotate(-2deg);
}
.section-handwritten {
  margin-bottom: 0.35rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}
.handwritten-underline {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.handwritten-underline::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -1%;
  bottom: -0.08em;
  height: 0.18em;
  border-bottom: 3px solid rgba(99, 102, 241, 0.45);
  border-radius: 50%;
  transform: rotate(-1deg);
  z-index: -1;
}
.flow-handwritten {
  margin-left: 0.25rem;
  font-size: 1.35rem;
}
.inspiration-handwritten,
.seamless-handwritten {
  margin-bottom: 0.5rem;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
}
.interface-handwritten {
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
}

/* ── Compact mobile inspiration layout ── */
.inspiration-mobile-layout {
  display: grid;
  grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}
.inspiration-mobile-shot img {
  display: block;
  width: 100%;
  height: min(43dvh, 340px);
  object-fit: cover;
  object-position: top;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: none;
}
.inspiration-mobile-copy {
  display: grid;
  gap: 0.55rem;
}
.inspiration-mobile-copy article {
  padding: 0.75rem;
  text-align: left;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: none;
}
.inspiration-mobile-copy strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #1f2937;
  font-size: 0.78rem;
}
.inspiration-mobile-copy p {
  color: #6b7280;
  font-size: 0.68rem;
  line-height: 1.35;
}
.inspiration-mobile-flow {
  padding: 0.45rem 0.2rem;
  color: var(--brand-color);
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  transform: rotate(-1deg);
}
.inspiration-mobile-flow span {
  padding-inline: 0.12rem;
}
.inspiration-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: var(--brand-color);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: none;
}

/* ── Platform chips and compact interface phone ── */
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.platform-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: none;
}
.platform-links a:last-child {
  color: var(--brand-color);
  border-color: rgba(99, 102, 241, 0.18);
}
.platform-links-mobile {
  justify-content: center;
  margin-top: 0.55rem;
}
.interface-mobile {
  gap: 0.65rem;
}
.interface-mobile-copy p {
  max-width: 34ch;
  margin-inline: auto;
}
.phone-mockup.phone-mockup-lg.phone-mockup-interface-mobile {
  width: min(56vw, calc((100dvh - 235px) * 0.46875), 250px);
  max-width: 250px;
  min-width: 170px;
}

/* ── Varied section accents without heavy shadows ── */
.slide > .content-wrapper {
  position: relative;
  z-index: 1;
}
.slide .shadow-sm,
.slide .shadow-lg,
.slide .shadow-xl {
  box-shadow: none !important;
}
#demo,
#how,
#proof,
#pricing {
  isolation: isolate;
  overflow: hidden;
}
#demo::before,
#how::before,
#proof::before,
#pricing::before {
  position: absolute;
  z-index: 0;
  color: rgba(99, 102, 241, 0.075);
  font-family: "Caveat", cursive;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-7deg);
}
#demo::before {
  content: "Aa + ✦\FE0E";
  top: 15%;
  right: 4%;
  font-size: clamp(4rem, 11vw, 9rem);
}
#how::before {
  content: "01 → 02 → 03";
  left: 4%;
  bottom: 8%;
  font-size: clamp(2.8rem, 8vw, 6rem);
}
#proof::before {
  /* \FE0E — текстовое начертание: без него iOS рисует ↗ объёмным эмодзи,
     игнорируя цвет и прозрачность, и он перекрывает заголовок */
  content: "↗\FE0E";
  top: 14%;
  right: 5%;
  font-size: clamp(6rem, 14vw, 11rem);
}
#pricing::before {
  content: "попробуй → выбери";
  right: 4%;
  bottom: 6%;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

@media (min-width: 768px) {
  #proof .proof-posts {
    max-width: 31rem;
  }
}

@media (max-width: 767px) {
  .section-handwritten {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
  }
  #how h2 {
    margin-bottom: 0.35rem;
    font-size: 1.55rem;
    line-height: 1.12;
  }
  #how h2 + p {
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }
  #how .text-center.mt-6 {
    margin-top: 0.85rem;
  }
  #how .text-center.mt-6 a {
    padding: 0.68rem 1rem;
    font-size: 0.82rem;
  }
  #proof .proof-content {
    padding-inline: 0.85rem;
  }
  #proof h2 {
    margin-bottom: 0.35rem;
    font-size: 1.38rem;
    line-height: 1.12;
  }
  #proof h2 + p {
    margin-bottom: 0.85rem;
    font-size: 0.74rem;
    line-height: 1.35;
  }
  #proof .proof-posts {
    gap: 0.65rem;
    padding-inline: calc((100% - min(64vw, 230px)) / 2);
    scroll-padding-inline: calc((100% - min(64vw, 230px)) / 2);
  }
  #proof .proof-post-card {
    width: min(64vw, 230px);
  }
  #proof .proof-post-caption {
    padding: 0.52rem 0.65rem 0.58rem;
  }
  #proof .proof-post-caption span {
    font-size: 0.56rem;
  }
  #proof .proof-post-caption strong {
    font-size: 0.67rem;
  }
  #proof .proof-post-caption b {
    font-size: 0.75rem;
  }
  #demo .w-full.text-center {
    margin-bottom: 0.7rem;
  }
  #demo .grid article {
    padding: 0.75rem;
  }
  #demo .grid article > .flex {
    margin-bottom: 0.45rem;
  }
  #demo .grid article h3 {
    font-size: 0.9rem;
  }
  #demo .grid article h3 + p {
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
  }
  #demo .grid article ul {
    font-size: 0.66rem;
    line-height: 1.28;
  }
  #faq .text-center {
    margin-bottom: 0.8rem;
  }
  #faq .text-center > p:first-child {
    margin-bottom: 0.3rem;
    font-size: 0.68rem;
  }
  #faq h2 {
    font-size: 1.35rem;
    line-height: 1.12;
  }
  #faq h2 + p {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }
  #faq .grid {
    gap: 0.5rem;
  }
  #faq article {
    padding: 0.75rem;
  }
  #faq article h3 {
    margin-bottom: 0.18rem;
    font-size: 0.84rem;
  }
  #faq article p {
    font-size: 0.68rem;
    line-height: 1.35;
  }
  footer .content-wrapper {
    padding-inline: 0.8rem;
  }
  footer .footer-grid {
    gap: 1rem 0.75rem;
  }
  footer .footer-grid h3 {
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
  }
  footer .footer-grid p,
  footer .footer-grid ul {
    font-size: 0.68rem;
    line-height: 1.35;
  }
  footer .footer-grid ul {
    display: grid;
    gap: 0.28rem;
  }
  footer .footer-grid .space-y-2 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0;
  }
  footer .footer-grid img {
    width: 2rem;
    height: 2rem;
  }
  footer .footer-grid .mb-4 {
    margin-bottom: 0.45rem;
  }
  footer .footer-bottom {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }
}

@media (max-width: 767px) and (max-height: 720px) {
  .inspiration-intro {
    margin-bottom: 0.55rem;
  }
  .inspiration-handwritten,
  .seamless-handwritten {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
  }
  .inspiration-mobile-shot img {
    height: min(39dvh, 270px);
  }
  .inspiration-mobile-copy article {
    padding: 0.58rem;
  }
  .inspiration-mobile-copy p {
    font-size: 0.63rem;
  }
  .inspiration-mobile-cta {
    margin-top: 0.55rem;
    padding-block: 0.65rem;
  }
  .interface-mobile {
    gap: 0.45rem;
  }
  .interface-handwritten {
    display: none;
  }
  .platform-links-mobile {
    margin-top: 0.35rem;
  }
  .platform-links a {
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  #cta .content-wrapper {
    width: 100%;
    padding-inline: 0.65rem;
  }
  #cta .cta-card {
    width: 100%;
    padding: 1.25rem 1rem;
    border-radius: 1.5rem;
  }
  #cta .cta-card .inline-flex.items-center.rounded-full.bg-white\/20 {
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
  }
  #cta h2 {
    margin-bottom: 0.55rem;
    font-size: 1.75rem;
    line-height: 1.08;
  }
  #cta h2 + p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  #cta .cta-card .flex.flex-col {
    gap: 0.55rem;
    align-items: center;
  }
  #cta .cta-btn-final,
  #cta .cta-btn-final ~ a {
    width: 100%;
    max-width: 19rem;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
  }
  #cta .cta-card .text-xs.text-white\/40 {
    margin-top: 0.65rem;
  }
}

footer a {
  color: inherit;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  #slide-nav {
    display: none;
  }
  .nav-dot {
    width: 6px;
    height: 6px;
  }
  .nav-dot.active {
    height: 24px;
  }
  .slide {
    min-height: 100dvh;
    height: 100dvh;
    justify-content: center;
    padding: calc(var(--header-safe-offset) - 0.2rem) 0.65rem 0.65rem;
  }

  .slide .content-wrapper {
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  #pricing .content-wrapper {
    max-height: calc(100dvh - var(--header-safe-offset) - 0.8rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  #pricing .content-wrapper::-webkit-scrollbar {
    display: none;
  }

  #home .content-wrapper {
    padding-top: 0.15rem !important;
  }

  header {
    padding: 0.35rem 0.5rem !important;
  }

  header > nav {
    padding: 0.3rem !important;
    border-radius: 0.95rem;
  }

  .cta-nav-btn {
    padding: 0.58rem 0.78rem !important;
    font-size: 0.78rem;
  }

  .hero-proof-badge {
    padding: 0.38rem 0.55rem;
    margin-bottom: 0.9rem;
  }

  .hero-proof-text {
    font-size: 0.74rem;
    line-height: 1.15;
    white-space: normal;
    text-align: left;
  }

  .hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.38;
    margin-bottom: 0.95rem;
    max-width: 92%;
  }

  .template-heading {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .pricing-grid {
    gap: 0.68rem;
  }

  .pricing-card {
    min-height: auto;
    padding: 1rem 0.95rem;
    border-radius: 1rem;
  }

  .pricing-title {
    font-size: 0.92rem;
  }

  .pricing-price {
    font-size: 1.38rem;
  }

  .pricing-price--free {
    font-size: 1.18rem;
  }

  .pricing-subtitle,
  .pricing-renewal {
    font-size: 0.72rem;
  }

  .pricing-sale-ribbon {
    margin-bottom: 0.58rem;
    font-size: 0.62rem;
    padding: 0.28rem 0.52rem;
  }

  .pricing-features {
    gap: 0.3rem;
  }

  .pricing-features li {
    font-size: 0.79rem;
    line-height: 1.18;
    padding-left: 0.78rem;
  }

  .pricing-badge {
    top: -8px;
    right: 10px;
    font-size: 10px;
    padding: 3px 8px;
  }

  .pricing-cta {
    font-size: 0.9rem;
    padding: 0.72rem 1.05rem;
  }

  .top-nav-menu-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .top-nav-menu-container::-webkit-scrollbar {
    display: none;
  }
  .top-nav-menu-container .top-nav-link {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .demo-slide-card {
    width: 220px;
  }
}

@media (min-width: 768px) {
  .top-nav-menu-container {
    display: flex;
    position: static;
    flex-direction: row;
    background-color: transparent;
    border-radius: 1.25rem;
    padding: 0.25rem;
    gap: 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

@media (max-width: 900px) {
  .top-nav-menu-container .top-nav-link:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 700px) {
  .top-nav-menu-container .top-nav-link:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --header-safe-offset: clamp(60px, 14vw, 74px);
  }

  .demo-slide-card {
    width: 180px;
  }
  .top-nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
  .top-nav-menu-container .top-nav-link:nth-child(n + 3) {
    display: none;
  }

  .hero-proof-badge {
    max-width: 96%;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.32;
    margin-bottom: 0.8rem;
  }

  .template-heading {
    font-size: 1.1rem;
  }

  #pricing h2 {
    font-size: 1.32rem;
    line-height: 1.15;
  }

  #pricing .content-wrapper {
    padding-top: 0.2rem;
  }
}

/* Final mobile fit pass: every slide stays below the fixed navigation. */
@media (max-width: 767px) {
  .swipe-hint {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  #pricing .content-wrapper {
    max-height: none;
    overflow: visible;
  }
  #pricing .pricing-grid {
    display: flex;
    width: 100vw;
    max-width: none;
    gap: 0.7rem;
    margin-inline: calc(50% - 50vw);
    padding: 0.55rem calc((100vw - min(82vw, 310px)) / 2);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100vw - min(82vw, 310px)) / 2);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  #pricing .pricing-grid::-webkit-scrollbar {
    display: none;
  }
  #pricing .pricing-card {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: center;
  }
  #pricing .pricing-swipe-hint {
    margin-top: 0;
  }
  #pricing .mt-6 {
    margin-top: 0.55rem;
  }
}

@media (max-width: 767px) and (max-height: 720px) {
  #pain h2 {
    font-size: 1.35rem;
    line-height: 1.12;
  }
  #pain h2 + p {
    margin-bottom: 0.75rem;
    font-size: 0.76rem;
    line-height: 1.34;
  }
  #pain .grid {
    gap: 0.55rem;
    margin-bottom: 0.6rem;
  }
  #pain .grid > div {
    padding: 0.7rem;
  }
  #pain .grid > div p {
    font-size: 0.74rem;
    line-height: 1.35;
  }
  #pain .grid + div {
    margin-bottom: 0.65rem;
    padding-block: 0.5rem;
  }
  #pain .flow-handwritten {
    font-size: 1.1rem;
  }
  #pain a {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }

  #about h2 {
    margin-bottom: 0.65rem;
    font-size: 1.35rem;
    line-height: 1.12;
  }
  #about h2 .block {
    margin-top: 0.45rem;
  }
  #about .showcase-mobile-card {
    width: min(64vw, 250px);
  }
  #about #showcase-nav {
    margin-top: 0.25rem;
  }
  #about > .content-wrapper > a {
    margin-top: 0.55rem;
    padding: 0.65rem 1rem;
  }

  #pricing h2 + p {
    margin-bottom: 0.35rem;
    font-size: 0.73rem;
    line-height: 1.3;
  }
  #pricing .pricing-grid {
    padding-block: 0.35rem;
  }
  #pricing .pricing-card {
    padding: 0.78rem;
  }
  #pricing .pricing-head {
    margin-bottom: 0.55rem;
  }
  #pricing .pricing-sale-ribbon {
    margin-bottom: 0.35rem;
  }
}

@media (min-width: 768px) and (max-height: 800px) {
  .slide {
    padding: 5.8rem 1.5rem 0.75rem;
  }

  #home .content-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  #home h1 {
    margin-bottom: 0.7rem;
    font-size: clamp(2.8rem, 5vw, 3.7rem);
  }
  #home .hero-proof-badge {
    margin-bottom: 0.8rem;
  }
  #home .hero-subtitle {
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }
  #home .hero-cta-primary {
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
  }

  #seamless .content-wrapper > .text-center {
    margin-bottom: 0.45rem;
  }
  #seamless h2 {
    font-size: 2.15rem;
  }
  #seamless .demo-slide-card {
    width: 190px;
  }
  #seamless .demo-slides-track {
    padding: 0.45rem 1rem;
  }
  #seamless .demo-dots {
    margin-top: 0.35rem;
  }
  #seamless .content-wrapper > a {
    margin-top: 0.55rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  #proof .proof-posts {
    max-width: 23rem;
  }
  #proof .proof-handwritten {
    margin-bottom: 0.15rem;
    font-size: 1.1rem;
  }
  #proof h2 {
    margin-bottom: 0.4rem;
    font-size: 2rem;
    line-height: 1.05;
  }
  #proof h2 + p {
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    line-height: 1.35;
  }
  #proof .proof-posts {
    gap: 0.65rem;
  }
  #proof .proof-post-caption {
    padding: 0.5rem 0.65rem 0.55rem;
  }
  #proof .proof-post-caption span {
    font-size: 0.55rem;
  }
  #proof .proof-post-caption strong {
    font-size: 0.66rem;
  }
  #proof .proof-post-caption b {
    font-size: 0.74rem;
  }

  #interface .phone-mockup {
    width: 240px;
    height: 490px;
    padding: 10px;
    border-radius: 38px;
  }
  #interface .phone-notch {
    top: 10px;
    width: 80px;
    height: 24px;
  }
  #interface .phone-screen {
    border-radius: 28px;
  }
}

/* ═══════════════════════════════════════════════════════
   SLIDE CONTENT REVEAL + MICRO-MOTION POLISH
   Перелистывание слайдов не трогаем — анимируется только
   появление контента внутри активного слайда.
   ═══════════════════════════════════════════════════════ */

@keyframes slide-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes hint-nudge {
  0%,
  100% {
    transform: rotate(-1.5deg) translateX(0);
  }
  50% {
    transform: rotate(-1.5deg) translateX(6px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Ступенчатое появление: если у content-wrapper один ребёнок-обёртка,
     анимируем её детей, иначе — прямых детей самого wrapper.
     Класс .revealed вешает JS один раз при первом показе слайда —
     без него анимация переигрывалась при каждой прокрутке и всё прыгало. */
  .slide.revealed .content-wrapper > :not(:only-child),
  .slide.revealed .content-wrapper > :only-child > * {
    animation: slide-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .slide.revealed .content-wrapper > :not(:only-child):nth-child(2),
  .slide.revealed .content-wrapper > :only-child > :nth-child(2) {
    animation-delay: 0.07s;
  }
  .slide.revealed .content-wrapper > :not(:only-child):nth-child(3),
  .slide.revealed .content-wrapper > :only-child > :nth-child(3) {
    animation-delay: 0.14s;
  }
  .slide.revealed .content-wrapper > :not(:only-child):nth-child(4),
  .slide.revealed .content-wrapper > :only-child > :nth-child(4) {
    animation-delay: 0.21s;
  }
  .slide.revealed .content-wrapper > :not(:only-child):nth-child(n + 5),
  .slide.revealed .content-wrapper > :only-child > :nth-child(n + 5) {
    animation-delay: 0.28s;
  }

  .phone-mockup {
    animation: phone-float 6s ease-in-out infinite;
  }

  .swipe-hint {
    animation: hint-nudge 1.9s ease-in-out infinite;
  }
}

/* ── Платформы в hero: веб / телеграм / iPhone ── */
.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.55rem;
  margin-top: 1rem;
}
.hero-platforms a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.hero-platforms a svg {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.75;
}
.hero-platforms a:hover {
  color: var(--brand-color);
}
.hero-platforms-dot {
  color: #c7cbd4;
  font-weight: 600;
}
@media (max-width: 767px) and (max-height: 720px) {
  .hero-platforms {
    margin-top: 0.6rem;
  }
}
